@abcagency/hc-ui-components 1.5.1 → 1.5.3
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/components/HireControlMap.js +52 -22
- package/dist/components/HireControlMap.js.map +1 -1
- package/dist/components/containers/accordions/filter-container.js +13 -5
- package/dist/components/containers/accordions/filter-container.js.map +1 -1
- package/dist/components/containers/accordions/filter-item-container.js +9 -9
- package/dist/components/containers/accordions/filter-item-container.js.map +1 -1
- package/dist/components/containers/accordions/map-accordion-item-container.js +10 -5
- package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
- package/dist/components/containers/filter/commute-container.js +3 -3
- package/dist/components/containers/filter/commute-container.js.map +1 -1
- package/dist/components/containers/filter/filter-container.js +6 -5
- package/dist/components/containers/filter/filter-container.js.map +1 -1
- package/dist/components/containers/filter/filter-item-container.js +12 -12
- package/dist/components/containers/filter/filter-item-container.js.map +1 -1
- package/dist/components/containers/filter/location-container.js +6 -5
- package/dist/components/containers/filter/location-container.js.map +1 -1
- package/dist/components/containers/filter/points-of-interest-container.js +5 -5
- package/dist/components/containers/filter/points-of-interest-container.js.map +1 -1
- package/dist/components/containers/filter/points-of-interest-radio-item-container.js +2 -2
- package/dist/components/containers/filter/points-of-interest-radio-item-container.js.map +1 -1
- package/dist/components/containers/filter/search-container.js +2 -2
- package/dist/components/containers/filter/search-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 +8 -8
- package/dist/components/containers/list/item-list-container.js.map +1 -1
- package/dist/components/containers/list/list-item/list-item-container.js +2 -2
- package/dist/components/containers/list/list-item/list-item-container.js.map +1 -1
- package/dist/components/containers/maps/info-window-content-container.js +2 -2
- package/dist/components/containers/maps/info-window-content-container.js.map +1 -1
- package/dist/components/containers/maps/map-container.js +8 -9
- package/dist/components/containers/maps/map-container.js.map +1 -1
- package/dist/components/containers/maps/map-list-container.js +5 -5
- package/dist/components/containers/maps/map-list-container.js.map +1 -1
- package/dist/components/containers/maps/map-marker-container.js +6 -6
- package/dist/components/containers/maps/map-marker-container.js.map +1 -1
- package/dist/components/modules/accordions/MapAccordionItem.js +5 -5
- package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
- package/dist/components/modules/accordions/default.js +15 -15
- package/dist/components/modules/accordions/default.js.map +1 -1
- package/dist/components/modules/accordions/filterItem.js +4 -4
- package/dist/components/modules/accordions/filterItem.js.map +1 -1
- package/dist/components/modules/accordions/filters.js +6 -6
- package/dist/components/modules/accordions/filters.js.map +1 -1
- package/dist/components/modules/buttons/button-group-apply.js +19 -19
- package/dist/components/modules/buttons/button-group-apply.js.map +1 -1
- package/dist/components/modules/buttons/default.js +9 -9
- package/dist/components/modules/buttons/default.js.map +1 -1
- package/dist/components/modules/buttons/items-pill.js +2 -2
- package/dist/components/modules/buttons/items-pill.js.map +1 -1
- package/dist/components/modules/buttons/pill-wrapper.js +2 -2
- package/dist/components/modules/buttons/pill-wrapper.js.map +1 -1
- package/dist/components/modules/buttons/show-all-button.js +3 -3
- package/dist/components/modules/buttons/show-all-button.js.map +1 -1
- package/dist/components/modules/cards/default.js +11 -11
- package/dist/components/modules/cards/default.js.map +1 -1
- package/dist/components/modules/cards/filter.js +5 -5
- package/dist/components/modules/cards/filter.js.map +1 -1
- package/dist/components/modules/dialogs/apply-dialog.js +19 -19
- package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
- package/dist/components/modules/filter/commute.js +18 -19
- package/dist/components/modules/filter/commute.js.map +1 -1
- package/dist/components/modules/filter/index.js +10 -10
- package/dist/components/modules/filter/index.js.map +1 -1
- package/dist/components/modules/filter/item.js +6 -6
- package/dist/components/modules/filter/item.js.map +1 -1
- package/dist/components/modules/filter/location.js +6 -6
- package/dist/components/modules/filter/location.js.map +1 -1
- package/dist/components/modules/filter/radio-item.js +6 -6
- package/dist/components/modules/filter/radio-item.js.map +1 -1
- package/dist/components/modules/filter/search.js +10 -10
- package/dist/components/modules/filter/search.js.map +1 -1
- package/dist/components/modules/filter/sort.js +28 -28
- package/dist/components/modules/filter/sort.js.map +1 -1
- package/dist/components/modules/grid.js +4 -4
- package/dist/components/modules/grid.js.map +1 -1
- package/dist/components/modules/icon.js +4 -4
- package/dist/components/modules/icon.js.map +1 -1
- package/dist/components/modules/jobListing/listing-details.js +4 -4
- package/dist/components/modules/jobListing/listing-details.js.map +1 -1
- package/dist/components/modules/list/field-mapper-desktop.js +8 -8
- package/dist/components/modules/list/field-mapper-desktop.js.map +1 -1
- package/dist/components/modules/list/field-mapper-mobile.js +18 -18
- package/dist/components/modules/list/field-mapper-mobile.js.map +1 -1
- package/dist/components/modules/list/header-item.js +7 -7
- package/dist/components/modules/list/header-item.js.map +1 -1
- package/dist/components/modules/list/header.js +5 -5
- package/dist/components/modules/list/header.js.map +1 -1
- package/dist/components/modules/list/item-expand-card/index.js +3 -3
- package/dist/components/modules/list/item-expand-card/index.js.map +1 -1
- package/dist/components/modules/list/item-list.js +15 -15
- package/dist/components/modules/list/item-list.js.map +1 -1
- package/dist/components/modules/list/list-item/list-item.js +13 -13
- package/dist/components/modules/list/list-item/list-item.js.map +1 -1
- package/dist/components/modules/maps/info-window-card.js +2 -2
- package/dist/components/modules/maps/info-window-card.js.map +1 -1
- package/dist/components/modules/maps/info-window-content.js +5 -5
- package/dist/components/modules/maps/info-window-content.js.map +1 -1
- package/dist/components/modules/maps/map-list.js +5 -5
- package/dist/components/modules/maps/map-list.js.map +1 -1
- package/dist/components/modules/maps/map-marker.js +3 -3
- package/dist/components/modules/maps/map-marker.js.map +1 -1
- package/dist/components/modules/maps/map.js +5 -5
- package/dist/components/modules/maps/map.js.map +1 -1
- package/dist/components/modules/maps/place-marker.js +5 -5
- package/dist/components/modules/maps/place-marker.js.map +1 -1
- package/dist/components/modules/maps/tabs.js +21 -21
- package/dist/components/modules/maps/tabs.js.map +1 -1
- package/dist/contexts/mapContext.js +18 -18
- package/dist/contexts/mapContext.js.map +1 -1
- package/dist/contexts/mapListContext.js +28 -24
- package/dist/contexts/mapListContext.js.map +1 -1
- package/dist/contexts/placesContext.js +2 -2
- package/dist/contexts/placesContext.js.map +1 -1
- package/dist/contexts/themeContext.js +2 -2
- package/dist/contexts/themeContext.js.map +1 -1
- package/dist/contexts/trackEventContext.js +2 -2
- package/dist/contexts/trackEventContext.js.map +1 -1
- package/dist/services/listingAggregatorService.js +19 -15
- package/dist/services/listingAggregatorService.js.map +1 -1
- package/dist/services/listingEntityService.js +3 -2
- package/dist/services/listingEntityService.js.map +1 -1
- package/dist/services/listingService.js +1 -16
- package/dist/services/listingService.js.map +1 -1
- package/dist/styles/index.css +1 -3
- package/dist/types/contexts/mapContext.d.ts +1 -0
- package/dist/types/services/listingAggregatorService.d.ts +2 -2
- package/dist/types/services/listingEntityService.d.ts +2 -3
- package/dist/types/types/GetListingParams.d.ts +1 -1
- package/dist/types/types/ListingEntity.d.ts +2 -1
- package/dist/types/types/ListingFields.d.ts +4 -2
- package/dist/types/types/Listings.d.ts +0 -1
- package/dist/types/util/algoliaSearchUtil.d.ts +4 -0
- package/dist/types/util/filterUtil.d.ts +2 -2
- package/dist/types/util/mapUtil.d.ts +3 -3
- package/dist/util/algoliaSearchUtil.js +133 -0
- package/dist/util/algoliaSearchUtil.js.map +1 -0
- package/dist/util/filterUtil.js +129 -66
- package/dist/util/filterUtil.js.map +1 -1
- package/dist/util/loading.js +3 -3
- package/dist/util/loading.js.map +1 -1
- package/dist/util/mapUtil.js +37 -25
- package/dist/util/mapUtil.js.map +1 -1
- package/package.json +60 -17
- package/src/components/HireControlMap.js +35 -9
- package/src/components/containers/accordions/filter-container.js +6 -1
- package/src/components/containers/accordions/filter-item-container.js +2 -2
- package/src/components/containers/accordions/map-accordion-item-container.js +6 -2
- package/src/components/containers/filter/filter-container.js +3 -2
- package/src/components/containers/filter/filter-item-container.js +10 -10
- package/src/components/containers/filter/location-container.js +3 -3
- package/src/components/containers/list/item-list-container.tsx +3 -3
- package/src/components/containers/maps/info-window-content-container.js +1 -1
- package/src/components/containers/maps/map-container.js +2 -1
- package/src/components/modules/buttons/button-group-apply.js +8 -8
- package/src/components/modules/dialogs/apply-dialog.js +2 -2
- package/src/components/modules/list/field-mapper-desktop.jsx +2 -2
- package/src/components/modules/list/field-mapper-mobile.jsx +8 -8
- package/src/components/modules/list/header-item.js +1 -1
- package/src/components/modules/maps/map-list.js +1 -1
- package/src/contexts/mapContext.tsx +17 -16
- package/src/contexts/mapListContext.tsx +55 -49
- package/src/services/listingAggregatorService.ts +29 -21
- package/src/services/listingEntityService.ts +3 -3
- package/src/services/listingService.ts +1 -11
- package/src/styles/components.css +30 -0
- package/src/types/GetListingParams.ts +1 -1
- package/src/types/ListingEntity.ts +2 -1
- package/src/types/ListingFields.ts +4 -2
- package/src/types/Listings.ts +0 -1
- package/src/util/algoliaSearchUtil.js +91 -0
- package/src/util/filterUtil.js +19 -8
- package/src/util/mapUtil.js +52 -41
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
3
|
-
import { twMerge } from '../../../
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { twMerge } from '../../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
4
4
|
import Grid from '../grid.js';
|
|
5
5
|
import HeaderItem from './header-item.js';
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ var ListHeader = function ListHeader(_ref) {
|
|
|
16
16
|
_ref$includeFavorite = _ref.includeFavorite,
|
|
17
17
|
includeFavorite = _ref$includeFavorite === void 0 ? false : _ref$includeFavorite,
|
|
18
18
|
scrollbarWidth = _ref.scrollbarWidth;
|
|
19
|
-
return /*#__PURE__*/
|
|
19
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
20
20
|
columns: "hc-grid-flow-col hc-auto-cols-fr",
|
|
21
21
|
gap: "hc-gap-0",
|
|
22
22
|
style: {
|
|
@@ -24,14 +24,14 @@ var ListHeader = function ListHeader(_ref) {
|
|
|
24
24
|
},
|
|
25
25
|
className: twMerge(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\thc-hidden md:hc-grid hc-bg-uiAccent/10 hc-border-b hc-border-uiAccent/10 hc-sticky hc-top-0 hc-z-10\n\t\t\t\t", "\n\t\t\t"])), className !== null && className !== void 0 ? className : "")
|
|
26
26
|
}, fieldsShown.map(function (field) {
|
|
27
|
-
return /*#__PURE__*/
|
|
27
|
+
return /*#__PURE__*/React.createElement(HeaderItem, {
|
|
28
28
|
key: field,
|
|
29
29
|
isSortable: fieldIsSortable,
|
|
30
30
|
sortSetting: sortSetting,
|
|
31
31
|
field: field,
|
|
32
32
|
setSortSetting: setSortSetting
|
|
33
33
|
}, fieldNames[field]);
|
|
34
|
-
}), includeFavorite == true && /*#__PURE__*/
|
|
34
|
+
}), includeFavorite == true && /*#__PURE__*/React.createElement(HeaderItem, {
|
|
35
35
|
key: "favorite",
|
|
36
36
|
isSortable: true,
|
|
37
37
|
sortSetting: sortSetting,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sources":["../../../../src/components/modules/list/header.js"],"sourcesContent":["import React from 'react';\nimport { twMerge } from 'tailwind-merge';\n\nimport Grid from '~/components/modules/grid';\nimport HeaderItem from '~/components/modules/list/header-item';\n\nconst ListHeader = ({\n\tclassName,\n\tfieldsShown,\n\tfieldNames,\n\tfieldIsSortable = true,\n\tsetSortSetting,\n\tsortSetting,\n\tincludeFavorite = false,\n\tscrollbarWidth\n}) => {\n\treturn (\n\t\t<Grid\n\t\t\tcolumns=\"hc-grid-flow-col hc-auto-cols-fr\"\n\t\t\tgap=\"hc-gap-0\"\n\t\t\tstyle={{ paddingRight: `${scrollbarWidth && scrollbarWidth > 0 ? scrollbarWidth + 6 : 1 }px` }}\n\t\t\tclassName={twMerge`\n\t\t\t\thc-hidden md:hc-grid hc-bg-uiAccent/10 hc-border-b hc-border-uiAccent/10 hc-sticky hc-top-0 hc-z-10\n\t\t\t\t${className ?? \"\"}\n\t\t\t`}\n\t\t>\n\t\t\t{fieldsShown.map(field => (\n\t\t\t\t<HeaderItem\n\t\t\t\t\tkey={field}\n\t\t\t\t\tisSortable={fieldIsSortable}\n\t\t\t\t\tsortSetting={sortSetting}\n\t\t\t\t\tfield={field}\n\t\t\t\t\tsetSortSetting={setSortSetting}\n\t\t\t\t>\n\t\t\t\t\t{fieldNames[field]}\n\t\t\t\t</HeaderItem>\n\t\t\t))}\n\t\t\t{ includeFavorite == true &&\n\t\t\t<HeaderItem key={\"favorite\"}\n\t\t\t\tisSortable={true}\n\t\t\t\tsortSetting={sortSetting}\n\t\t\t\tfield={\"favorite\"}\n\t\t\t\tsetSortSetting={setSortSetting}\n\t\t\t>\n\t\t\t\tFavorite\n\t\t\t</HeaderItem>\n\t\t\t}\n\t\t</Grid>\n\t);\n};\n\nexport default ListHeader;\n"],"names":["ListHeader","_ref","className","fieldsShown","fieldNames","_ref$fieldIsSortable","fieldIsSortable","setSortSetting","sortSetting","_ref$includeFavorite","includeFavorite","scrollbarWidth","React","createElement","Grid","columns","gap","style","paddingRight","concat","twMerge","_templateObject","_taggedTemplateLiteral","map","field","HeaderItem","key","isSortable"],"mappings":";;;;;;;AAMA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EASV;AAAA,EAAA,IARLC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IACXC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IAAAC,oBAAA,GAAAJ,IAAA,CACVK,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,oBAAA;IACtBE,cAAc,GAAAN,IAAA,CAAdM,cAAc;IACdC,WAAW,GAAAP,IAAA,CAAXO,WAAW;IAAAC,oBAAA,GAAAR,IAAA,CACXS,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,oBAAA;IACvBE,cAAc,GAAAV,IAAA,CAAdU,cAAc,CAAA;AAEd,EAAA,oBACCC,
|
|
1
|
+
{"version":3,"file":"header.js","sources":["../../../../src/components/modules/list/header.js"],"sourcesContent":["import React from 'react';\nimport { twMerge } from 'tailwind-merge';\n\nimport Grid from '~/components/modules/grid';\nimport HeaderItem from '~/components/modules/list/header-item';\n\nconst ListHeader = ({\n\tclassName,\n\tfieldsShown,\n\tfieldNames,\n\tfieldIsSortable = true,\n\tsetSortSetting,\n\tsortSetting,\n\tincludeFavorite = false,\n\tscrollbarWidth\n}) => {\n\treturn (\n\t\t<Grid\n\t\t\tcolumns=\"hc-grid-flow-col hc-auto-cols-fr\"\n\t\t\tgap=\"hc-gap-0\"\n\t\t\tstyle={{ paddingRight: `${scrollbarWidth && scrollbarWidth > 0 ? scrollbarWidth + 6 : 1 }px` }}\n\t\t\tclassName={twMerge`\n\t\t\t\thc-hidden md:hc-grid hc-bg-uiAccent/10 hc-border-b hc-border-uiAccent/10 hc-sticky hc-top-0 hc-z-10\n\t\t\t\t${className ?? \"\"}\n\t\t\t`}\n\t\t>\n\t\t\t{fieldsShown.map(field => (\n\t\t\t\t<HeaderItem\n\t\t\t\t\tkey={field}\n\t\t\t\t\tisSortable={fieldIsSortable}\n\t\t\t\t\tsortSetting={sortSetting}\n\t\t\t\t\tfield={field}\n\t\t\t\t\tsetSortSetting={setSortSetting}\n\t\t\t\t>\n\t\t\t\t\t{fieldNames[field]}\n\t\t\t\t</HeaderItem>\n\t\t\t))}\n\t\t\t{ includeFavorite == true &&\n\t\t\t<HeaderItem key={\"favorite\"}\n\t\t\t\tisSortable={true}\n\t\t\t\tsortSetting={sortSetting}\n\t\t\t\tfield={\"favorite\"}\n\t\t\t\tsetSortSetting={setSortSetting}\n\t\t\t>\n\t\t\t\tFavorite\n\t\t\t</HeaderItem>\n\t\t\t}\n\t\t</Grid>\n\t);\n};\n\nexport default ListHeader;\n"],"names":["ListHeader","_ref","className","fieldsShown","fieldNames","_ref$fieldIsSortable","fieldIsSortable","setSortSetting","sortSetting","_ref$includeFavorite","includeFavorite","scrollbarWidth","React","createElement","Grid","columns","gap","style","paddingRight","concat","twMerge","_templateObject","_taggedTemplateLiteral","map","field","HeaderItem","key","isSortable"],"mappings":";;;;;;;AAMA,IAAMA,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EASV;AAAA,EAAA,IARLC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IACXC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IAAAC,oBAAA,GAAAJ,IAAA,CACVK,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,oBAAA;IACtBE,cAAc,GAAAN,IAAA,CAAdM,cAAc;IACdC,WAAW,GAAAP,IAAA,CAAXO,WAAW;IAAAC,oBAAA,GAAAR,IAAA,CACXS,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,oBAAA;IACvBE,cAAc,GAAAV,IAAA,CAAdU,cAAc,CAAA;AAEd,EAAA,oBACCC,KAAA,CAAAC,aAAA,CAACC,IAAI,EAAA;AACJC,IAAAA,OAAO,EAAC,kCAAkC;AAC1CC,IAAAA,GAAG,EAAC,UAAU;AACdC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,YAAY,EAAAC,EAAAA,CAAAA,MAAA,CAAKR,cAAc,IAAIA,cAAc,GAAG,CAAC,GAAGA,cAAc,GAAG,CAAC,GAAG,CAAC,EAAA,IAAA,CAAA;KAAQ;AAC/FT,IAAAA,SAAS,EAAEkB,OAAO,CAAAC,eAAA,KAAAA,eAAA,GAAAC,sBAAA,CAAA,CAAA,yHAAA,EAAA,UAAA,CAAA,CAAA,CAAA,EAEfpB,SAAS,KAATA,IAAAA,IAAAA,SAAS,KAATA,KAAAA,CAAAA,GAAAA,SAAS,GAAI,EAAE,CAAA;AAChB,GAAA,EAEDC,WAAW,CAACoB,GAAG,CAAC,UAAAC,KAAK,EAAA;AAAA,IAAA,oBACrBZ,KAAA,CAAAC,aAAA,CAACY,UAAU,EAAA;AACVC,MAAAA,GAAG,EAAEF,KAAM;AACXG,MAAAA,UAAU,EAAErB,eAAgB;AAC5BE,MAAAA,WAAW,EAAEA,WAAY;AACzBgB,MAAAA,KAAK,EAAEA,KAAM;AACbjB,MAAAA,cAAc,EAAEA,cAAAA;AAAe,KAAA,EAE9BH,UAAU,CAACoB,KAAK,CACN,CAAC,CAAA;GACb,CAAC,EACAd,eAAe,IAAI,IAAI,iBACzBE,KAAA,CAAAC,aAAA,CAACY,UAAU,EAAA;AAACC,IAAAA,GAAG,EAAE,UAAW;AAC3BC,IAAAA,UAAU,EAAE,IAAK;AACjBnB,IAAAA,WAAW,EAAEA,WAAY;AACzBgB,IAAAA,KAAK,EAAE,UAAW;AAClBjB,IAAAA,cAAc,EAAEA,cAAAA;GAChB,EAAA,UAEW,CAEP,CAAC,CAAA;AAET;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
3
|
-
import { twMerge } from '../../../../
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { twMerge } from '../../../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
4
4
|
|
|
5
5
|
var _excluded = ["className", "content"];
|
|
6
6
|
var CardItemExpand = function CardItemExpand(_ref) {
|
|
7
7
|
var className = _ref.className,
|
|
8
8
|
content = _ref.content,
|
|
9
9
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
11
11
|
className: twMerge('hc-flex hc-flex-col lg:hc-flex-row hc-flex-wrap hc-items-stretch hc-gap-x-4 hc-w-full lg:hc-pt-2 hc-border-t hc-border-uiAccent/20', className !== null && className !== void 0 ? className : '')
|
|
12
12
|
}, props), content);
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/modules/list/item-expand-card/index.js"],"sourcesContent":["import React from 'react';\nimport { twMerge } from 'tailwind-merge';\n\nconst CardItemExpand = ({\n\tclassName,\n\tcontent,\n\t...props\n}) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={twMerge(\n\t\t\t\t'hc-flex hc-flex-col lg:hc-flex-row hc-flex-wrap hc-items-stretch hc-gap-x-4 hc-w-full lg:hc-pt-2 hc-border-t hc-border-uiAccent/20',\n\t\t\t\tclassName ?? ''\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{content}\n\t\t</div>\n\t);\n};\n\nexport default CardItemExpand;\n"],"names":["CardItemExpand","_ref","className","content","props","_objectWithoutProperties","_excluded","React","createElement","_extends","twMerge"],"mappings":";;;;;AAGA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAId;AAAA,EAAA,IAHLC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,OAAO,GAAAF,IAAA,CAAPE,OAAO;AACJC,IAAAA,KAAK,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAER,EAAA,oBACCC,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/modules/list/item-expand-card/index.js"],"sourcesContent":["import React from 'react';\nimport { twMerge } from 'tailwind-merge';\n\nconst CardItemExpand = ({\n\tclassName,\n\tcontent,\n\t...props\n}) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={twMerge(\n\t\t\t\t'hc-flex hc-flex-col lg:hc-flex-row hc-flex-wrap hc-items-stretch hc-gap-x-4 hc-w-full lg:hc-pt-2 hc-border-t hc-border-uiAccent/20',\n\t\t\t\tclassName ?? ''\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{content}\n\t\t</div>\n\t);\n};\n\nexport default CardItemExpand;\n"],"names":["CardItemExpand","_ref","className","content","props","_objectWithoutProperties","_excluded","React","createElement","_extends","twMerge"],"mappings":";;;;;AAGA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAId;AAAA,EAAA,IAHLC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTC,OAAO,GAAAF,IAAA,CAAPE,OAAO;AACJC,IAAAA,KAAK,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAER,EAAA,oBACCC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,QAAA,CAAA;IACCP,SAAS,EAAEQ,OAAO,CACjB,oIAAoI,EACpIR,SAAS,KAAA,IAAA,IAATA,SAAS,KAAA,KAAA,CAAA,GAATA,SAAS,GAAI,EACd,CAAA;GACIE,EAAAA,KAAK,CAERD,EAAAA,OACG,CAAC,CAAA;AAER;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import ListHeader from './header.js';
|
|
3
3
|
import FilterSort from '../filter/sort.js';
|
|
4
4
|
import Loading from '../../../util/loading.js';
|
|
@@ -28,26 +28,26 @@ const ItemsList = ({ fieldNames, showMap, fieldsShown, filteredListings, loading
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}, [scrollContainerRef]);
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
loading &&
|
|
35
|
-
!loading &&
|
|
31
|
+
return (React.createElement("div", { className: "hc-relative hc-bg-white md:hc-px-4 hc-flex hc-flex-col hc-h-[100%]" },
|
|
32
|
+
React.createElement("div", { className: "hc-flex hc-flex-wrap hc-items-center hc-justify-between hc-gap-4 md:hc-mb-2 hc-p-3 md:hc-p-0 hc-bg-uiAccent/10 md:hc-bg-transparent hc-border-b md:hc-border-none hc-border-uiAccent/20" },
|
|
33
|
+
React.createElement("h2", { className: "hc-text-gray-500 hc-font-semibold hc-text-xs md:hc-text-sm" },
|
|
34
|
+
loading && React.createElement("span", null, "Loading..."),
|
|
35
|
+
!loading && React.createElement("span", null,
|
|
36
36
|
filteredListings.length,
|
|
37
37
|
" results")),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
React.createElement("div", { className: "hc-block md:hc-hidden" },
|
|
39
|
+
React.createElement(FilterSort, { className: '', fields: fieldsShown, setSortSetting: setSortSetting, fieldNames: fieldNames }))),
|
|
40
|
+
React.createElement("div", null,
|
|
41
|
+
React.createElement(ListHeader, { className: '', setSortSetting: setSortSetting, sortSetting: sortSetting, fieldsShown: fieldsShown, fieldNames: fieldNames, includeFavorite: includeFavorite, scrollbarWidth: scrollbarWidth })),
|
|
42
|
+
React.createElement("div", { ref: scrollContainerRef, className: `
|
|
43
43
|
hc-flex-grow hc-overflow-y-auto
|
|
44
44
|
${showMap ? " hc-max-h-[88%] md:hc-max-[100%]" : "md:hc-max-h-[95%] hc-max-h-[95%]"}
|
|
45
45
|
` },
|
|
46
|
-
loading ? (
|
|
47
|
-
|
|
48
|
-
filteredListings.length >= itemLimit &&
|
|
46
|
+
loading ? (React.createElement("div", { className: "hc-flex hc-justify-center hc-items-center hc-pt-20" },
|
|
47
|
+
React.createElement(Loading, null))) : (children),
|
|
48
|
+
filteredListings.length >= itemLimit && React.createElement("div", { ref: loader, style: { height: "100px", textAlign: "center" } },
|
|
49
49
|
" ",
|
|
50
|
-
|
|
50
|
+
React.createElement(Loading, null)))));
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
export { ItemsList as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-list.js","sources":["../../../../src/components/modules/list/item-list.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState, RefObject, ReactNode } from 'react';\nimport Header from '~/components/modules/list/header';\nimport Sort from '~/components/modules/filter/sort';\nimport Loading from \"~/util/loading\";\nimport { Listing } from '~/types/Listings';\n\ninterface ItemsListProps {\n fieldNames: Record<string, string>;\n showMap: boolean;\n fieldsShown: string[];\n filteredListings: Listing[];\n loading: boolean;\n sortSetting: any;\n setSortSetting: (setting: any) => void;\n itemLimit: number;\n loader: RefObject<HTMLDivElement>;\n scrollContainerRef: RefObject<HTMLDivElement>;\n itemRefs: any;\n selectedListItem: Listing | null;\n children: ReactNode;\n includeFavorite: boolean;\n}\n\nconst ItemsList: React.FC<ItemsListProps> = ({\n fieldNames,\n showMap,\n fieldsShown,\n filteredListings,\n loading,\n sortSetting,\n setSortSetting,\n itemLimit,\n loader,\n scrollContainerRef,\n includeFavorite = false,\n children\n}) => {\n const [scrollbarWidth, setScrollbarWidth] = useState<number>(0);\n\n const checkScrollbar = () => {\n if (scrollContainerRef.current) {\n const { scrollHeight, clientHeight, offsetWidth, clientWidth } = scrollContainerRef.current;\n const hasVerticalScrollbar = scrollHeight > clientHeight;\n const newScrollbarWidth = hasVerticalScrollbar ? offsetWidth - clientWidth : 0;\n setScrollbarWidth(newScrollbarWidth);\n }\n };\n\n useEffect(() => {\n checkScrollbar();\n\n const resizeObserver = new ResizeObserver(() => checkScrollbar());\n const mutationObserver = new MutationObserver(() => checkScrollbar());\n\n if (scrollContainerRef.current) {\n resizeObserver.observe(scrollContainerRef.current);\n mutationObserver.observe(scrollContainerRef.current, { childList: true, subtree: true, attributes: true });\n }\n\n return () => {\n if (scrollContainerRef.current) {\n resizeObserver.unobserve(scrollContainerRef.current);\n mutationObserver.disconnect();\n }\n };\n }, [scrollContainerRef]);\n\n return (\n <div className=\"hc-relative hc-bg-white md:hc-px-4 hc-flex hc-flex-col hc-h-[100%]\">\n <div className=\"hc-flex hc-flex-wrap hc-items-center hc-justify-between hc-gap-4 md:hc-mb-2 hc-p-3 md:hc-p-0 hc-bg-uiAccent/10 md:hc-bg-transparent hc-border-b md:hc-border-none hc-border-uiAccent/20\">\n <h2 className=\"hc-text-gray-500 hc-font-semibold hc-text-xs md:hc-text-sm\">\n {loading && <span>Loading...</span>}\n {!loading && <span>{filteredListings.length} results</span>}\n </h2>\n <div className=\"hc-block md:hc-hidden\">\n <Sort\n className={''}\n fields={fieldsShown}\n setSortSetting={setSortSetting}\n fieldNames={fieldNames}\n />\n </div>\n </div>\n <div>\n <Header\n className={''}\n setSortSetting={setSortSetting}\n sortSetting={sortSetting}\n fieldsShown={fieldsShown}\n fieldNames={fieldNames}\n includeFavorite={includeFavorite}\n scrollbarWidth={scrollbarWidth}\n />\n </div>\n <div\n ref={scrollContainerRef}\n className={`\n hc-flex-grow hc-overflow-y-auto\n ${showMap ? \" hc-max-h-[88%] md:hc-max-[100%]\" : \"md:hc-max-h-[95%] hc-max-h-[95%]\"}\n `}\n >\n {loading ? (\n <div className=\"hc-flex hc-justify-center hc-items-center hc-pt-20\">\n <Loading />\n </div>\n ) : (\n children\n )}\n {filteredListings.length >= itemLimit &&<div ref={loader} style={{ height: \"100px\", textAlign: \"center\" }}> <Loading /></div>}\n </div>\n </div>\n );\n};\n\nexport default ItemsList;\n"],"names":["
|
|
1
|
+
{"version":3,"file":"item-list.js","sources":["../../../../src/components/modules/list/item-list.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState, RefObject, ReactNode } from 'react';\nimport Header from '~/components/modules/list/header';\nimport Sort from '~/components/modules/filter/sort';\nimport Loading from \"~/util/loading\";\nimport { Listing } from '~/types/Listings';\n\ninterface ItemsListProps {\n fieldNames: Record<string, string>;\n showMap: boolean;\n fieldsShown: string[];\n filteredListings: Listing[];\n loading: boolean;\n sortSetting: any;\n setSortSetting: (setting: any) => void;\n itemLimit: number;\n loader: RefObject<HTMLDivElement>;\n scrollContainerRef: RefObject<HTMLDivElement>;\n itemRefs: any;\n selectedListItem: Listing | null;\n children: ReactNode;\n includeFavorite: boolean;\n}\n\nconst ItemsList: React.FC<ItemsListProps> = ({\n fieldNames,\n showMap,\n fieldsShown,\n filteredListings,\n loading,\n sortSetting,\n setSortSetting,\n itemLimit,\n loader,\n scrollContainerRef,\n includeFavorite = false,\n children\n}) => {\n const [scrollbarWidth, setScrollbarWidth] = useState<number>(0);\n\n const checkScrollbar = () => {\n if (scrollContainerRef.current) {\n const { scrollHeight, clientHeight, offsetWidth, clientWidth } = scrollContainerRef.current;\n const hasVerticalScrollbar = scrollHeight > clientHeight;\n const newScrollbarWidth = hasVerticalScrollbar ? offsetWidth - clientWidth : 0;\n setScrollbarWidth(newScrollbarWidth);\n }\n };\n\n useEffect(() => {\n checkScrollbar();\n\n const resizeObserver = new ResizeObserver(() => checkScrollbar());\n const mutationObserver = new MutationObserver(() => checkScrollbar());\n\n if (scrollContainerRef.current) {\n resizeObserver.observe(scrollContainerRef.current);\n mutationObserver.observe(scrollContainerRef.current, { childList: true, subtree: true, attributes: true });\n }\n\n return () => {\n if (scrollContainerRef.current) {\n resizeObserver.unobserve(scrollContainerRef.current);\n mutationObserver.disconnect();\n }\n };\n }, [scrollContainerRef]);\n\n return (\n <div className=\"hc-relative hc-bg-white md:hc-px-4 hc-flex hc-flex-col hc-h-[100%]\">\n <div className=\"hc-flex hc-flex-wrap hc-items-center hc-justify-between hc-gap-4 md:hc-mb-2 hc-p-3 md:hc-p-0 hc-bg-uiAccent/10 md:hc-bg-transparent hc-border-b md:hc-border-none hc-border-uiAccent/20\">\n <h2 className=\"hc-text-gray-500 hc-font-semibold hc-text-xs md:hc-text-sm\">\n {loading && <span>Loading...</span>}\n {!loading && <span>{filteredListings.length} results</span>}\n </h2>\n <div className=\"hc-block md:hc-hidden\">\n <Sort\n className={''}\n fields={fieldsShown}\n setSortSetting={setSortSetting}\n fieldNames={fieldNames}\n />\n </div>\n </div>\n <div>\n <Header\n className={''}\n setSortSetting={setSortSetting}\n sortSetting={sortSetting}\n fieldsShown={fieldsShown}\n fieldNames={fieldNames}\n includeFavorite={includeFavorite}\n scrollbarWidth={scrollbarWidth}\n />\n </div>\n <div\n ref={scrollContainerRef}\n className={`\n hc-flex-grow hc-overflow-y-auto\n ${showMap ? \" hc-max-h-[88%] md:hc-max-[100%]\" : \"md:hc-max-h-[95%] hc-max-h-[95%]\"}\n `}\n >\n {loading ? (\n <div className=\"hc-flex hc-justify-center hc-items-center hc-pt-20\">\n <Loading />\n </div>\n ) : (\n children\n )}\n {filteredListings.length >= itemLimit &&<div ref={loader} style={{ height: \"100px\", textAlign: \"center\" }}> <Loading /></div>}\n </div>\n </div>\n );\n};\n\nexport default ItemsList;\n"],"names":["Sort","Header"],"mappings":";;;;;AAuBA,MAAM,SAAS,GAA6B,CAAC,EAC3C,UAAU,EACV,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,WAAW,EACX,cAAc,EACd,SAAS,EACT,MAAM,EACN,kBAAkB,EAClB,eAAe,GAAG,KAAK,EACvB,QAAQ,EACT,KAAI;IACH,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC,CAAC;IAEhE,MAAM,cAAc,GAAG,MAAK;QAC1B,IAAI,kBAAkB,CAAC,OAAO,EAAE;AAC9B,YAAA,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,kBAAkB,CAAC,OAAO,CAAC;AAC5F,YAAA,MAAM,oBAAoB,GAAG,YAAY,GAAG,YAAY,CAAC;AACzD,YAAA,MAAM,iBAAiB,GAAG,oBAAoB,GAAG,WAAW,GAAG,WAAW,GAAG,CAAC,CAAC;YAC/E,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;AACtC,SAAA;AACH,KAAC,CAAC;IAEF,SAAS,CAAC,MAAK;AACb,QAAA,cAAc,EAAE,CAAC;QAEjB,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,MAAM,cAAc,EAAE,CAAC,CAAC;QAClE,MAAM,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,MAAM,c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N,QAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,IAAA;AACE,YAAA,KAAA,CAAA,aAAA,CAACC,UAAM,EAAA,EACL,SAAS,EAAE,EAAE,EACb,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,GAC9B,CACE;AACN,QAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACE,GAAG,EAAE,kBAAkB,EACvB,SAAS,EAAE,CAAA;;AAEP,UAAA,EAAA,OAAO,GAAG,kCAAkC,GAAG,kCAAkC,CAAA;AACpF,QAAA,CAAA,EAAA;AAEA,YAAA,OAAO,IACN,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAC,oDAAoD,EAAA;gBACjE,KAAC,CAAA,aAAA,CAAA,OAAO,OAAG,CACP,KAEN,QAAQ,CACT;YACE,gBAAgB,CAAC,MAAM,IAAI,SAAS,IAAG,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAA;;AAAG,gBAAA,KAAA,CAAA,aAAA,CAAC,OAAO,EAAG,IAAA,CAAA,CAAM,CAC3H,CACF,EACN;AACJ;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, toConsumableArray as _toConsumableArray } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
3
|
import Grid from '../../grid.js';
|
|
4
4
|
import IconContained from '../../icon.js';
|
|
5
5
|
import FieldMapperDesktop from '../field-mapper-desktop.js';
|
|
@@ -44,32 +44,32 @@ var ListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
44
44
|
isFavorite = !isFavorite;
|
|
45
45
|
handleSettingFavorites(updatedFavorites);
|
|
46
46
|
};
|
|
47
|
-
return /*#__PURE__*/
|
|
47
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
48
48
|
ref: ref,
|
|
49
49
|
onClick: function onClick() {
|
|
50
50
|
handleClick();
|
|
51
51
|
},
|
|
52
52
|
className: "\n\t\t\t\thc-group hc-relative hc-flex md:hc-flex-col hc-w-full hc-text-left hc-bg-clip-border hc-border hc-border-transparent hc-break-words hc-overflow-hidden hc-cursor-pointer hc-transition-colors hover:hc-bg-uiAccent/5 focus:hover:hc-bg-uiAccent/5\n\t\t\t\t".concat(isActive ? "hc-bg-uiAccent/5 hc-border-secondary hc-border" : "hc-text-uiText hc-bg-white", "\n\t\t\t\t").concat(className !== null && className !== void 0 ? className : "", "\n\t\t\t\t")
|
|
53
|
-
}, props), /*#__PURE__*/
|
|
53
|
+
}, props), /*#__PURE__*/React.createElement(Grid, {
|
|
54
54
|
columns: "hc-pl-2 hc-md-pl-0 hc-grid-flow-col hc-auto-cols-fr",
|
|
55
55
|
gap: "hc-gap-0",
|
|
56
56
|
className: "\n hc-block md:hc-grid hc-py-2 hc-w-full hc-grow hc-leading-tight hc-text-sm md:hc-text-xs lg:hc-text-sm\n ".concat(bodyClassName !== null && bodyClassName !== void 0 ? bodyClassName : "", "\n ")
|
|
57
|
-
}, /*#__PURE__*/
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Grid.Item, {
|
|
58
58
|
className: "hc-hidden md:hc-block md:hc-absolute md:hc-left-1.5 hc-top-1.5"
|
|
59
|
-
}, /*#__PURE__*/
|
|
59
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
60
60
|
className: "hc-sr-only"
|
|
61
|
-
}, "Expand row"), /*#__PURE__*/
|
|
61
|
+
}, "Expand row"), /*#__PURE__*/React.createElement(IconContained, {
|
|
62
62
|
icon: "fluent-emoji-high-contrast:plus",
|
|
63
63
|
size: "hc-size-2.5",
|
|
64
64
|
className: "\n hc-opacity-0 hc-text-uiText/60 hc-transition group-hover:hc-opacity-100 group-active:hc-opacity-100\n ".concat(isActive ? "hc-opacity-100 hc-rotate-45" : "", "\n ")
|
|
65
|
-
})), /*#__PURE__*/
|
|
65
|
+
})), /*#__PURE__*/React.createElement(FieldMapperDesktop, {
|
|
66
66
|
item: item,
|
|
67
67
|
fieldsShown: fieldsShown,
|
|
68
68
|
specialFeatures: specialFeatures,
|
|
69
69
|
isFavorite: isFavorite,
|
|
70
70
|
includeFavorite: includeFavorite,
|
|
71
71
|
handleFavouriteClick: handleFavouriteClick
|
|
72
|
-
}), /*#__PURE__*/
|
|
72
|
+
}), /*#__PURE__*/React.createElement(FieldMapperMobile, {
|
|
73
73
|
item: item,
|
|
74
74
|
fieldsShown: fieldsShown,
|
|
75
75
|
specialFeatures: specialFeatures,
|
|
@@ -79,10 +79,10 @@ var ListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
79
79
|
}), includeFavorite &&
|
|
80
80
|
/*#__PURE__*/
|
|
81
81
|
/* DESKTOP ONLY: This favorites icon is hidden on mobile (hc-hidden) and visible on desktop (md:hc-block) */
|
|
82
|
-
|
|
82
|
+
React.createElement(Grid.Item, {
|
|
83
83
|
key: "favorites",
|
|
84
84
|
className: "hc-hidden md:hc-block hc-col-span-1 hc-px-2"
|
|
85
|
-
}, /*#__PURE__*/
|
|
85
|
+
}, /*#__PURE__*/React.createElement(IconContained, {
|
|
86
86
|
icon: isFavorite ? "mdi:heart" : "mdi:heart-outline",
|
|
87
87
|
size: "hc-size-3.5",
|
|
88
88
|
iconClasses: isFavorite ? "hc-text-primary" : "",
|
|
@@ -91,20 +91,20 @@ var ListItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
91
91
|
onClick: function onClick(e) {
|
|
92
92
|
handleFavouriteClick(e, item);
|
|
93
93
|
}
|
|
94
|
-
}))), showMap && /*#__PURE__*/
|
|
94
|
+
}))), showMap && /*#__PURE__*/React.createElement("div", {
|
|
95
95
|
onClick: function onClick() {
|
|
96
96
|
setMobileTab("mapTab");
|
|
97
97
|
handleClick();
|
|
98
98
|
},
|
|
99
99
|
className: "md:hc-hidden hc-w-2/5 sm:hc-w-1/3 hc-p-1.5 hc-my-1 hc-bg-uiAccent/5 hc-border hc-border-uiAccent/10 hc-rounded-sm"
|
|
100
|
-
}, /*#__PURE__*/
|
|
100
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
101
101
|
src: (_item$mapDetails = item.mapDetails) === null || _item$mapDetails === void 0 ? void 0 : _item$mapDetails.staticMapUrl,
|
|
102
102
|
alt: "Map of location for ".concat(item.fields.position),
|
|
103
103
|
className: "hc-w-full hc-h-full hc-object-cover"
|
|
104
104
|
})));
|
|
105
105
|
});
|
|
106
106
|
ListItem.displayName = "ListItem";
|
|
107
|
-
var ListItem$1 = /*#__PURE__*/
|
|
107
|
+
var ListItem$1 = /*#__PURE__*/React.memo(ListItem, function (prevProps, nextProps) {
|
|
108
108
|
return prevProps.isActive === nextProps.isActive && prevProps.favorites === nextProps.favorites && prevProps.item.id === nextProps.item.id && prevProps.item.fields.travelTime === nextProps.item.fields.travelTime && prevProps.fieldsShown === nextProps.fieldsShown && prevProps.bodyClassName === nextProps.bodyClassName && prevProps.className === nextProps.className;
|
|
109
109
|
});
|
|
110
110
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.js","sources":["../../../../../src/components/modules/list/list-item/list-item.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport Grid from '~/components/modules/grid';\nimport Icon from '~/components/modules/icon';\nimport FieldMapper from '~/components/modules/list/field-mapper-desktop';\nimport FieldMapperMobile from '~/components/modules/list/field-mapper-mobile';\nconst ListItem = forwardRef(\n\t(\n\t\t{\n\t\t\tisActive,\n\t\t\tbodyClassName,\n\t\t\tclassName,\n\t\t\titem,\n\t\t\tfieldsShown,\n\t\t\tspecialFeatures,\n\t\t\tonItemSelected,\n\t\t\tshowMap,\n\t\t\tsetMobileTab,\n\t\t\thandleSettingFavorites,\n\t\t\tfavorites,\n\t\t\tincludeFavorite = true,\n\t\t\tsiteConfig,\n\t\t\t...props\n\t\t},\n\t\tref\n\t) => {\n\t\tconst mapPinColor = !showMap ? null : siteConfig.colors.primary.replace(\"#\", \"\");\n\n\t\tconst handleClick = () => {\n\t\t\tif (onItemSelected) {\n\t\t\t\tonItemSelected(item);\n\t\t\t}\n\t\t};\n\t\tlet isFavorite = favorites.includes(item.id);\n\n\t\tconst handleFavouriteClick = (event, item) => {\n\t\t\tif(!includeFavorite)return;\n\t\t\tevent.stopPropagation();\n\t\t\tlet updatedFavorites;\n\t\t\tif (isFavorite) {\n\t\t\t\tupdatedFavorites = favorites.filter(fav => fav !== item.id);\n\t\t\t} else {\n\t\t\t\tupdatedFavorites = [...favorites, item.id];\n\t\t\t}\n\t\t\tisFavorite = !isFavorite;\n\t\t\thandleSettingFavorites(updatedFavorites);\n\t\t};\n\t\treturn (\n\t\t\t<button\n\t\t\t\tref={ref}\n\t\t\t\tonClick={() => { handleClick(); }}\n\t\t\t\tclassName={`\n\t\t\t\thc-group hc-relative hc-flex md:hc-flex-col hc-w-full hc-text-left hc-bg-clip-border hc-border hc-border-transparent hc-break-words hc-overflow-hidden hc-cursor-pointer hc-transition-colors hover:hc-bg-uiAccent/5 focus:hover:hc-bg-uiAccent/5\n\t\t\t\t${isActive ? \"hc-bg-uiAccent/5 hc-border-secondary hc-border\" : \"hc-text-uiText hc-bg-white\"}\n\t\t\t\t${className ?? \"\"}\n\t\t\t\t`}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{/* This Grid is displayed as block on mobile and grid on desktop */}\n\t\t\t\t<Grid\n\t\t\t\t\tcolumns=\"hc-pl-2 hc-md-pl-0 hc-grid-flow-col hc-auto-cols-fr\"\n\t\t\t\t\tgap=\"hc-gap-0\"\n\t\t\t\t\tclassName={`\n hc-block md:hc-grid hc-py-2 hc-w-full hc-grow hc-leading-tight hc-text-sm md:hc-text-xs lg:hc-text-sm\n ${bodyClassName ?? \"\"}\n `}\n\t\t\t\t>\n\t\t\t\t\t{/* DESKTOP ONLY: This expand icon is hidden on mobile (hc-hidden) and visible on desktop (md:hc-block) */}\n\t\t\t\t\t<Grid.Item className=\"hc-hidden md:hc-block md:hc-absolute md:hc-left-1.5 hc-top-1.5\">\n\t\t\t\t\t\t<span className=\"hc-sr-only\">Expand row</span>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon=\"fluent-emoji-high-contrast:plus\"\n\t\t\t\t\t\t\tsize=\"hc-size-2.5\"\n\t\t\t\t\t\t\tclassName={`\n hc-opacity-0 hc-text-uiText/60 hc-transition group-hover:hc-opacity-100 group-active:hc-opacity-100\n ${isActive ? \"hc-opacity-100 hc-rotate-45\" : \"\"}\n `}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Grid.Item>\n\t\t\t\t\t<FieldMapper\n\t\t\t\t\t\titem={item}\n\t\t\t\t\t\tfieldsShown={fieldsShown}\n\t\t\t\t\t\tspecialFeatures={specialFeatures}\n\t\t\t\t\t\tisFavorite={isFavorite}\n\t\t\t\t\t\tincludeFavorite={includeFavorite}\n\t\t\t\t\t\thandleFavouriteClick={handleFavouriteClick}\n\t\t\t\t\t/>\n\t\t\t\t\t<FieldMapperMobile\n\t\t\t\t\t\titem={item}\n\t\t\t\t\t\tfieldsShown={fieldsShown}\n\t\t\t\t\t\tspecialFeatures={specialFeatures}\n\t\t\t\t\t\tisFavorite={isFavorite}\n\t\t\t\t\t\tincludeFavorite={includeFavorite}\n\t\t\t\t\t\thandleFavouriteClick={handleFavouriteClick}\n\t\t\t\t\t/>\n\t\t\t\t\t{includeFavorite &&\n\t\t\t\t\t/* DESKTOP ONLY: This favorites icon is hidden on mobile (hc-hidden) and visible on desktop (md:hc-block) */\n\t\t\t\t\t<Grid.Item\n\t\t\t\t\t\tkey={\"favorites\"}\n\t\t\t\t\t\tclassName=\"hc-hidden md:hc-block hc-col-span-1 hc-px-2\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={isFavorite ? \"mdi:heart\" : \"mdi:heart-outline\"}\n\t\t\t\t\t\t\tsize=\"hc-size-3.5\"\n\t\t\t\t\t\t\ticonClasses={isFavorite ? \"hc-text-primary\" : \"\"}\n\t\t\t\t\t\t\ttitle={!isFavorite ? 'Add job to favorites' : 'Remove job from favorites'}\n\t\t\t\t\t\t\tclassName=\"hc-pr-2 hc-transition-opacity hc-duration-300 hc-cursor-pointer hc-opacity-100\"\n\t\t\t\t\t\t\tonClick={e => {handleFavouriteClick(e, item);}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Grid.Item>\n\t\t\t\t\t}\n\t\t\t\t</Grid>\n\t\t\t\t{/* MOBILE ONLY: This map section is visible on mobile and hidden on desktop (md:hc-hidden) */}\n\t\t\t\t{showMap && (\n\t\t\t\t\t<div onClick={() => { setMobileTab(\"mapTab\"); handleClick(); }} className=\"md:hc-hidden hc-w-2/5 sm:hc-w-1/3 hc-p-1.5 hc-my-1 hc-bg-uiAccent/5 hc-border hc-border-uiAccent/10 hc-rounded-sm\">\n\t\t\t\t\t\t<img\n\t\t\t\t\t\t\tsrc={item.mapDetails?.staticMapUrl}\n\t\t\t\t\t\t\talt={`Map of location for ${item.fields.position}`}\n\t\t\t\t\t\t\tclassName=\"hc-w-full hc-h-full hc-object-cover\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</button>\n\t\t);\n\t}\n);\n\nListItem.displayName = \"ListItem\";\n\nexport default React.memo(ListItem, (prevProps, nextProps) => {\n\treturn (\n\t\tprevProps.isActive === nextProps.isActive &&\n\t\tprevProps.favorites === nextProps.favorites &&\n prevProps.item.id === nextProps.item.id &&\n\tprevProps.item.fields.travelTime === nextProps.item.fields.travelTime &&\n prevProps.fieldsShown === nextProps.fieldsShown &&\n prevProps.bodyClassName === nextProps.bodyClassName &&\n prevProps.className === nextProps.className\n\t);\n});"],"names":["ListItem","forwardRef","_ref","ref","_item$mapDetails","isActive","bodyClassName","className","item","fieldsShown","specialFeatures","onItemSelected","showMap","setMobileTab","handleSettingFavorites","favorites","_ref$includeFavorite","includeFavorite","siteConfig","props","_objectWithoutProperties","_excluded","colors","primary","replace","handleClick","isFavorite","includes","id","handleFavouriteClick","event","stopPropagation","updatedFavorites","filter","fav","concat","_toConsumableArray","React","createElement","_extends","onClick","Grid","columns","gap","Item","Icon","icon","size","FieldMapper","FieldMapperMobile","key","iconClasses","title","e","src","mapDetails","staticMapUrl","alt","fields","position","displayName","memo","prevProps","nextProps","travelTime"],"mappings":";;;;;;;;AAKA,IAAMA,QAAQ,gBAAGC,UAAU,CAC1B,UAAAC,IAAA,EAiBCC,GAAG,EACC;AAAA,EAAA,IAAAC,gBAAA,CAAA;AAAA,EAAA,IAhBHC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,aAAa,GAAAJ,IAAA,CAAbI,aAAa;IACbC,SAAS,GAAAL,IAAA,CAATK,SAAS;IACTC,IAAI,GAAAN,IAAA,CAAJM,IAAI;IACJC,WAAW,GAAAP,IAAA,CAAXO,WAAW;IACXC,eAAe,GAAAR,IAAA,CAAfQ,eAAe;IACfC,cAAc,GAAAT,IAAA,CAAdS,cAAc;IACdC,OAAO,GAAAV,IAAA,CAAPU,OAAO;IACPC,YAAY,GAAAX,IAAA,CAAZW,YAAY;IACZC,sBAAsB,GAAAZ,IAAA,CAAtBY,sBAAsB;IACtBC,SAAS,GAAAb,IAAA,CAATa,SAAS;IAAAC,oBAAA,GAAAd,IAAA,CACTe,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,oBAAA;IACtBE,UAAU,GAAAhB,IAAA,CAAVgB,UAAU;AACPC,IAAAA,KAAK,GAAAC,wBAAA,CAAAlB,IAAA,EAAAmB,SAAA,CAAA,CAAA;AAIT,EAAoB,CAACT,OA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A,sBAAA,CAAAtB,MAAA,CAAyB3B,IAAI,CAACkD,MAAM,CAACC,QAAQ,CAAG;AACnDpD,IAAAA,SAAS,EAAC,qCAAA;GACV,CACG,CAEC,CAAC,CAAA;AAEX,CACD,CAAC,CAAA;AAEDP,QAAQ,CAAC4D,WAAW,GAAG,UAAU,CAAA;AAEjC,iBAAevB,aAAAA,cAAK,CAACwB,IAAI,CAAC7D,QAAQ,EAAE,UAAC8D,SAAS,EAAEC,SAAS,EAAK;AAC7D,EAAA,OACCD,SAAS,CAACzD,QAAQ,KAAK0D,SAAS,CAAC1D,QAAQ,IACzCyD,SAAS,CAAC/C,SAAS,KAAKgD,SAAS,CAAChD,SAAS,IACzC+C,SAAS,CAACtD,IAAI,CAACoB,EAAE,KAAKmC,SAAS,CAACvD,IAAI,CAACoB,EAAE,IAC1CkC,SAAS,CAACtD,IAAI,CAACkD,MAAM,CAACM,UAAU,KAAKD,SAAS,CAACvD,IAAI,CAACkD,MAAM,CAACM,UAAU,IAClEF,SAAS,CAACrD,WAAW,KAAKsD,SAAS,CAACtD,WAAW,IAC/CqD,SAAS,CAACxD,aAAa,KAAKyD,SAAS,CAACzD,aAAa,IACnDwD,SAAS,CAACvD,SAAS,KAAKwD,SAAS,CAACxD,SAAS,CAAA;AAE/C,CAAC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"list-item.js","sources":["../../../../../src/components/modules/list/list-item/list-item.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport Grid from '~/components/modules/grid';\nimport Icon from '~/components/modules/icon';\nimport FieldMapper from '~/components/modules/list/field-mapper-desktop';\nimport FieldMapperMobile from '~/components/modules/list/field-mapper-mobile';\nconst ListItem = forwardRef(\n\t(\n\t\t{\n\t\t\tisActive,\n\t\t\tbodyClassName,\n\t\t\tclassName,\n\t\t\titem,\n\t\t\tfieldsShown,\n\t\t\tspecialFeatures,\n\t\t\tonItemSelected,\n\t\t\tshowMap,\n\t\t\tsetMobileTab,\n\t\t\thandleSettingFavorites,\n\t\t\tfavorites,\n\t\t\tincludeFavorite = true,\n\t\t\tsiteConfig,\n\t\t\t...props\n\t\t},\n\t\tref\n\t) => {\n\t\tconst mapPinColor = !showMap ? null : siteConfig.colors.primary.replace(\"#\", \"\");\n\n\t\tconst handleClick = () => {\n\t\t\tif (onItemSelected) {\n\t\t\t\tonItemSelected(item);\n\t\t\t}\n\t\t};\n\t\tlet isFavorite = favorites.includes(item.id);\n\n\t\tconst handleFavouriteClick = (event, item) => {\n\t\t\tif(!includeFavorite)return;\n\t\t\tevent.stopPropagation();\n\t\t\tlet updatedFavorites;\n\t\t\tif (isFavorite) {\n\t\t\t\tupdatedFavorites = favorites.filter(fav => fav !== item.id);\n\t\t\t} else {\n\t\t\t\tupdatedFavorites = [...favorites, item.id];\n\t\t\t}\n\t\t\tisFavorite = !isFavorite;\n\t\t\thandleSettingFavorites(updatedFavorites);\n\t\t};\n\t\treturn (\n\t\t\t<button\n\t\t\t\tref={ref}\n\t\t\t\tonClick={() => { handleClick(); }}\n\t\t\t\tclassName={`\n\t\t\t\thc-group hc-relative hc-flex md:hc-flex-col hc-w-full hc-text-left hc-bg-clip-border hc-border hc-border-transparent hc-break-words hc-overflow-hidden hc-cursor-pointer hc-transition-colors hover:hc-bg-uiAccent/5 focus:hover:hc-bg-uiAccent/5\n\t\t\t\t${isActive ? \"hc-bg-uiAccent/5 hc-border-secondary hc-border\" : \"hc-text-uiText hc-bg-white\"}\n\t\t\t\t${className ?? \"\"}\n\t\t\t\t`}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{/* This Grid is displayed as block on mobile and grid on desktop */}\n\t\t\t\t<Grid\n\t\t\t\t\tcolumns=\"hc-pl-2 hc-md-pl-0 hc-grid-flow-col hc-auto-cols-fr\"\n\t\t\t\t\tgap=\"hc-gap-0\"\n\t\t\t\t\tclassName={`\n hc-block md:hc-grid hc-py-2 hc-w-full hc-grow hc-leading-tight hc-text-sm md:hc-text-xs lg:hc-text-sm\n ${bodyClassName ?? \"\"}\n `}\n\t\t\t\t>\n\t\t\t\t\t{/* DESKTOP ONLY: This expand icon is hidden on mobile (hc-hidden) and visible on desktop (md:hc-block) */}\n\t\t\t\t\t<Grid.Item className=\"hc-hidden md:hc-block md:hc-absolute md:hc-left-1.5 hc-top-1.5\">\n\t\t\t\t\t\t<span className=\"hc-sr-only\">Expand row</span>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon=\"fluent-emoji-high-contrast:plus\"\n\t\t\t\t\t\t\tsize=\"hc-size-2.5\"\n\t\t\t\t\t\t\tclassName={`\n hc-opacity-0 hc-text-uiText/60 hc-transition group-hover:hc-opacity-100 group-active:hc-opacity-100\n ${isActive ? \"hc-opacity-100 hc-rotate-45\" : \"\"}\n `}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Grid.Item>\n\t\t\t\t\t<FieldMapper\n\t\t\t\t\t\titem={item}\n\t\t\t\t\t\tfieldsShown={fieldsShown}\n\t\t\t\t\t\tspecialFeatures={specialFeatures}\n\t\t\t\t\t\tisFavorite={isFavorite}\n\t\t\t\t\t\tincludeFavorite={includeFavorite}\n\t\t\t\t\t\thandleFavouriteClick={handleFavouriteClick}\n\t\t\t\t\t/>\n\t\t\t\t\t<FieldMapperMobile\n\t\t\t\t\t\titem={item}\n\t\t\t\t\t\tfieldsShown={fieldsShown}\n\t\t\t\t\t\tspecialFeatures={specialFeatures}\n\t\t\t\t\t\tisFavorite={isFavorite}\n\t\t\t\t\t\tincludeFavorite={includeFavorite}\n\t\t\t\t\t\thandleFavouriteClick={handleFavouriteClick}\n\t\t\t\t\t/>\n\t\t\t\t\t{includeFavorite &&\n\t\t\t\t\t/* DESKTOP ONLY: This favorites icon is hidden on mobile (hc-hidden) and visible on desktop (md:hc-block) */\n\t\t\t\t\t<Grid.Item\n\t\t\t\t\t\tkey={\"favorites\"}\n\t\t\t\t\t\tclassName=\"hc-hidden md:hc-block hc-col-span-1 hc-px-2\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={isFavorite ? \"mdi:heart\" : \"mdi:heart-outline\"}\n\t\t\t\t\t\t\tsize=\"hc-size-3.5\"\n\t\t\t\t\t\t\ticonClasses={isFavorite ? \"hc-text-primary\" : \"\"}\n\t\t\t\t\t\t\ttitle={!isFavorite ? 'Add job to favorites' : 'Remove job from favorites'}\n\t\t\t\t\t\t\tclassName=\"hc-pr-2 hc-transition-opacity hc-duration-300 hc-cursor-pointer hc-opacity-100\"\n\t\t\t\t\t\t\tonClick={e => {handleFavouriteClick(e, item);}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Grid.Item>\n\t\t\t\t\t}\n\t\t\t\t</Grid>\n\t\t\t\t{/* MOBILE ONLY: This map section is visible on mobile and hidden on desktop (md:hc-hidden) */}\n\t\t\t\t{showMap && (\n\t\t\t\t\t<div onClick={() => { setMobileTab(\"mapTab\"); handleClick(); }} className=\"md:hc-hidden hc-w-2/5 sm:hc-w-1/3 hc-p-1.5 hc-my-1 hc-bg-uiAccent/5 hc-border hc-border-uiAccent/10 hc-rounded-sm\">\n\t\t\t\t\t\t<img\n\t\t\t\t\t\t\tsrc={item.mapDetails?.staticMapUrl}\n\t\t\t\t\t\t\talt={`Map of location for ${item.fields.position}`}\n\t\t\t\t\t\t\tclassName=\"hc-w-full hc-h-full hc-object-cover\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</button>\n\t\t);\n\t}\n);\n\nListItem.displayName = \"ListItem\";\n\nexport default React.memo(ListItem, (prevProps, nextProps) => {\n\treturn (\n\t\tprevProps.isActive === nextProps.isActive &&\n\t\tprevProps.favorites === nextProps.favorites &&\n prevProps.item.id === nextProps.item.id &&\n\tprevProps.item.fields.travelTime === nextProps.item.fields.travelTime &&\n prevProps.fieldsShown === nextProps.fieldsShown &&\n prevProps.bodyClassName === nextProps.bodyClassName &&\n prevProps.className === nextProps.className\n\t);\n});"],"names":["ListItem","forwardRef","_ref","ref","_item$mapDetails","isActive","bodyClassName","className","item","fieldsShown","specialFeatures","onItemSelected","showMap","setMobileTab","handleSettingFavorites","favorites","_ref$includeFavorite","includeFavorite","siteConfig","props","_objectWithoutProperties","_excluded","colors","primary","replace","handleClick","isFavorite","includes","id","handleFavouriteClick","event","stopPropagation","updatedFavorites","filter","fav","concat","_toConsumableArray","React","createElement","_extends","onClick","Grid","columns","gap","Item","Icon","icon","size","FieldMapper","FieldMapperMobile","key","iconClasses","title","e","src","mapDetails","staticMapUrl","alt","fields","position","displayName","memo","prevProps","nextProps","travelTime"],"mappings":";;;;;;;;AAKA,IAAMA,QAAQ,gBAAGC,UAAU,CAC1B,UAAAC,IAAA,EAiBCC,GAAG,EACC;AAAA,EAAA,IAAAC,gBAAA,CAAA;AAAA,EAAA,IAhBHC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,aAAa,GAAAJ,IAAA,CAAbI,aAAa;IACbC,SAAS,GAAAL,IAAA,CAATK,SAAS;IACTC,IAAI,GAAAN,IAAA,CAAJM,IAAI;IACJC,WAAW,GAAAP,IAAA,CAAXO,WAAW;IACXC,eAAe,GAAAR,IAAA,CAAfQ,eAAe;IACfC,cAAc,GAAAT,IAAA,CAAdS,cAAc;IACdC,OAAO,GAAAV,IAAA,CAAPU,OAAO;IACPC,YAAY,GAAAX,IAAA,CAAZW,YAAY;IACZC,sBAAsB,GAAAZ,IAAA,CAAtBY,sBAAsB;IACtBC,SAAS,GAAAb,IAAA,CAATa,SAAS;IAAAC,oBAAA,GAAAd,IAAA,CACTe,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,oBAAA;IACtBE,UAAU,GAAAhB,IAAA,CAAVgB,UAAU;AACPC,IAAAA,KAAK,GAAAC,wBAAA,CAAAlB,IAAA,EAAAmB,SAAA,CAAA,CAAA;AAIT,EAAoB,CAACT,OAAO,GAAG,IAAI,GAAGM,UAAU,CAACI,MAAM,CAACC,O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AAM,CAACC,QAAQ,CAAG;AACnDpD,IAAAA,SAAS,EAAC,qCAAA;GACV,CACG,CAEC,CAAC,CAAA;AAEX,CACD,CAAC,CAAA;AAEDP,QAAQ,CAAC4D,WAAW,GAAG,UAAU,CAAA;AAEjC,iBAAevB,aAAAA,KAAK,CAACwB,IAAI,CAAC7D,QAAQ,EAAE,UAAC8D,SAAS,EAAEC,SAAS,EAAK;AAC7D,EAAA,OACCD,SAAS,CAACzD,QAAQ,KAAK0D,SAAS,CAAC1D,QAAQ,IACzCyD,SAAS,CAAC/C,SAAS,KAAKgD,SAAS,CAAChD,SAAS,IACzC+C,SAAS,CAACtD,IAAI,CAACoB,EAAE,KAAKmC,SAAS,CAACvD,IAAI,CAACoB,EAAE,IAC1CkC,SAAS,CAACtD,IAAI,CAACkD,MAAM,CAACM,UAAU,KAAKD,SAAS,CAACvD,IAAI,CAACkD,MAAM,CAACM,UAAU,IAClEF,SAAS,CAACrD,WAAW,KAAKsD,SAAS,CAACtD,WAAW,IAC/CqD,SAAS,CAACxD,aAAa,KAAKyD,SAAS,CAACzD,aAAa,IACnDwD,SAAS,CAACvD,SAAS,KAAKwD,SAAS,CAACxD,SAAS,CAAA;AAE/C,CAAC,CAAC;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
var CardInfoWindow = function CardInfoWindow(_ref) {
|
|
4
4
|
var className = _ref.className,
|
|
5
5
|
content = _ref.content,
|
|
6
6
|
id = _ref.id;
|
|
7
|
-
return /*#__PURE__*/
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8
8
|
id: id,
|
|
9
9
|
className: "\n\t\t\thc-relative hc-flex hc-flex-col hc-break-words hc-bg-clip-border\n\t\t\t\t".concat(className !== null && className !== void 0 ? className : "", "\n\t\t\t")
|
|
10
10
|
}, content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-window-card.js","sources":["../../../../src/components/modules/maps/info-window-card.js"],"sourcesContent":["import React from 'react';\n\nconst CardInfoWindow = ({ className, content, id }) => {\n\treturn (\n\t\t<div\n\t\t\tid={id}\n\t\t\tclassName={`\n\t\t\thc-relative hc-flex hc-flex-col hc-break-words hc-bg-clip-border\n\t\t\t\t${className ?? \"\"}\n\t\t\t`}\n\t\t>\n\t\t\t{content}\n\t\t</div>\n\t);\n};\n\nexport default CardInfoWindow;\n"],"names":["CardInfoWindow","_ref","className","content","id","React","createElement","concat"],"mappings":";;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAAmC;AAAA,EAAA,IAA7BC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IAAEC,EAAE,GAAAH,IAAA,CAAFG,EAAE,CAAA;EAC/C,oBACCC,
|
|
1
|
+
{"version":3,"file":"info-window-card.js","sources":["../../../../src/components/modules/maps/info-window-card.js"],"sourcesContent":["import React from 'react';\n\nconst CardInfoWindow = ({ className, content, id }) => {\n\treturn (\n\t\t<div\n\t\t\tid={id}\n\t\t\tclassName={`\n\t\t\thc-relative hc-flex hc-flex-col hc-break-words hc-bg-clip-border\n\t\t\t\t${className ?? \"\"}\n\t\t\t`}\n\t\t>\n\t\t\t{content}\n\t\t</div>\n\t);\n};\n\nexport default CardInfoWindow;\n"],"names":["CardInfoWindow","_ref","className","content","id","React","createElement","concat"],"mappings":";;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAAmC;AAAA,EAAA,IAA7BC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IAAEC,EAAE,GAAAH,IAAA,CAAFG,EAAE,CAAA;EAC/C,oBACCC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACCF,IAAAA,EAAE,EAAEA,EAAG;IACPF,SAAS,EAAA,oFAAA,CAAAK,MAAA,CAENL,SAAS,aAATA,SAAS,KAAA,KAAA,CAAA,GAATA,SAAS,GAAI,EAAE,EAAA,UAAA,CAAA;AAChB,GAAA,EAEDC,OACG,CAAC,CAAA;AAER;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
var InfoWindowContent = function InfoWindowContent(_ref) {
|
|
4
4
|
var items = _ref.items,
|
|
@@ -31,13 +31,13 @@ var InfoWindowContent = function InfoWindowContent(_ref) {
|
|
|
31
31
|
displayAddress = '';
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
35
35
|
className: "hc-flex-auto hc-p-2"
|
|
36
|
-
}, /*#__PURE__*/
|
|
36
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h4", {
|
|
37
37
|
className: "hc-text-lg hc-font-bold hc-leading-tight hc-mb-3"
|
|
38
|
-
}, displayHeader), /*#__PURE__*/
|
|
38
|
+
}, displayHeader), /*#__PURE__*/React.createElement("p", null, displayAddress), /*#__PURE__*/React.createElement("div", {
|
|
39
39
|
className: "hc-pt-2"
|
|
40
|
-
}, /*#__PURE__*/
|
|
40
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
41
41
|
className: "hc-cursor-pointer hover:hc-opacity-70 hc-text-primary",
|
|
42
42
|
onClick: applyFilters
|
|
43
43
|
}, items.length > 1 ? "View All ".concat(items.length, " jobs at this location") : "View job at this location")))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-window-content.js","sources":["../../../../src/components/modules/maps/info-window-content.js"],"sourcesContent":["import React from 'react';\n\nconst InfoWindowContent = ({\n\titems,\n\tfullAddress,\n\tapplyFilters,\n\tmapInfoWindowConfig\n}) => {\n\tif (!items || items.length < 0) {\n\t\treturn null;\n\t}\n\n\tlet mapDetails = items[0].mapDetails;\n\tlet entityDisplayName = mapDetails?.entityDisplayName;\n\tlet address = mapDetails?.address;\n\n\tlet displayHeader = entityDisplayName;\n\tlet displayAddress = fullAddress;\n\n\tif (mapInfoWindowConfig) {\n\t\tif (mapInfoWindowConfig.entityHeaderField && (mapDetails[mapInfoWindowConfig.entityHeaderField] || mapDetails.address[mapInfoWindowConfig.entityHeaderField])) {\n\t\t\tdisplayHeader = mapDetails[mapInfoWindowConfig.entityHeaderField] ?? mapDetails.address[mapInfoWindowConfig.entityHeaderField];\n\n\t\t}\n\n\t\tif (mapInfoWindowConfig.showEntityAddressFields) {\n\t\t\tconst addressFields = mapInfoWindowConfig.showEntityAddressFields\n\t\t\t\t.map(field => address[field])\n\t\t\t\t.filter(Boolean)\n\t\t\t\t.join(', ');\n\t\t\tdisplayAddress = addressFields;\n\t\t}\n\t} else {\n\t\tif (!entityDisplayName.includes(address?.street) && !entityDisplayName.includes(address?.zip)) {\n\t\t\tdisplayAddress = fullAddress;\n\t\t} else {\n\t\t\tdisplayAddress = '';\n\t\t}\n\t}\n\n\treturn (\n\t\t<div className=\"hc-flex-auto hc-p-2\">\n\t\t\t<div>\n\t\t\t\t<div>\n\t\t\t\t\t<h4 className=\"hc-text-lg hc-font-bold hc-leading-tight hc-mb-3\">\n\t\t\t\t\t\t{displayHeader}\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>{displayAddress}</p>\n\t\t\t\t\t<div className=\"hc-pt-2\">\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tclassName=\"hc-cursor-pointer hover:hc-opacity-70 hc-text-primary\"\n\t\t\t\t\t\t\tonClick={applyFilters}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{items.length > 1\n\t\t\t\t\t\t\t\t? `View All ${items.length} jobs at this location`\n\t\t\t\t\t\t\t\t: `View job at this location`}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default InfoWindowContent;\n"],"names":["InfoWindowContent","_ref","items","fullAddress","applyFilters","mapInfoWindowConfig","length","mapDetails","entityDisplayName","address","displayHeader","displayAddress","entityHeaderField","_mapDetails$mapInfoWi","showEntityAddressFields","addressFields","map","field","filter","Boolean","join","includes","street","zip","React","createElement","className","onClick","concat"],"mappings":";;AAEA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAKjB;AAAA,EAAA,IAJLC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IACXC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACZC,mBAAmB,GAAAJ,IAAA,CAAnBI,mBAAmB,CAAA;EAEnB,IAAI,CAACH,KAAK,IAAIA,KAAK,CAACI,MAAM,GAAG,CAAC,EAAE;AAC/B,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;AAEA,EAAA,IAAIC,UAAU,GAAGL,KAAK,CAAC,CAAC,CAAC,CAACK,UAAU,CAAA;EACpC,IAAIC,iBAAiB,GAAGD,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAVA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,UAAU,CAAEC,iBAAiB,CAAA;EACrD,IAAIC,OAAO,GAAGF,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAVA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,UAAU,CAAEE,OAAO,CAAA;EAEjC,IAAIC,aAAa,GAAGF,iBAAiB,CAAA;EACrC,IAAIG,cAAc,GAAGR,WAAW,CAAA;AAEhC,EAAA,IAAIE,mBAAmB,EAAE;IACxB,IAAIA,mBAAmB,CAACO,iBAAiB,KAAKL,UAAU,CAACF,mBAAmB,CAACO,iBAAiB,CAAC,IAAIL,UAAU,CAACE,OAAO,CAACJ,mBAAmB,CAACO,iBAAiB,CAAC,CAAC,EAAE;AAAA,MAAA,IAAAC,qBAAA,CAAA;MAC9JH,aAAa,GAAA,CAAAG,qBAAA,GAAGN,UAAU,CAACF,mBAAmB,CAACO,iBAAiB,CAAC,MAAA,IAAA,IAAAC,qBAAA,KAAAA,KAAAA,CAAAA,GAAAA,qBAAA,GAAIN,UAAU,CAACE,OAAO,CAACJ,mBAAmB,CAACO,iBAAiB,CAAC,CAAA;AAE/H,KAAA;IAEA,IAAIP,mBAAmB,CAACS,uBAAuB,EAAE;MAChD,IAAMC,aAAa,GAAGV,mBAAmB,CAACS,uBAAuB,CAC/DE,GAAG,CAAC,UAAAC,KAAK,EAAA;QAAA,OAAIR,OAAO,CAACQ,KAAK,CAAC,CAAA;OAAC,CAAA,CAC5BC,MAAM,CAACC,OAAO,CAAC,CACfC,IAAI,CAAC,IAAI,CAAC,CAAA;AACZT,MAAAA,cAAc,GAAGI,aAAa,CAAA;AAC/B,KAAA;AACD,GAAC,MAAM;IACN,IAAI,CAACP,iBAAiB,CAACa,QAAQ,CAACZ,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAPA,OAAO,CAAEa,MAAM,CAAC,IAAI,CAACd,iBAAiB,CAACa,QAAQ,CAACZ,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAPA,OAAO,CAAEc,GAAG,CAAC,EAAE;AAC9FZ,MAAAA,cAAc,GAAGR,WAAW,CAAA;AAC7B,KAAC,MAAM;AACNQ,MAAAA,cAAc,GAAG,EAAE,CAAA;AACpB,KAAA;AACD,GAAA;EAEA,oBACCa,
|
|
1
|
+
{"version":3,"file":"info-window-content.js","sources":["../../../../src/components/modules/maps/info-window-content.js"],"sourcesContent":["import React from 'react';\n\nconst InfoWindowContent = ({\n\titems,\n\tfullAddress,\n\tapplyFilters,\n\tmapInfoWindowConfig\n}) => {\n\tif (!items || items.length < 0) {\n\t\treturn null;\n\t}\n\n\tlet mapDetails = items[0].mapDetails;\n\tlet entityDisplayName = mapDetails?.entityDisplayName;\n\tlet address = mapDetails?.address;\n\n\tlet displayHeader = entityDisplayName;\n\tlet displayAddress = fullAddress;\n\n\tif (mapInfoWindowConfig) {\n\t\tif (mapInfoWindowConfig.entityHeaderField && (mapDetails[mapInfoWindowConfig.entityHeaderField] || mapDetails.address[mapInfoWindowConfig.entityHeaderField])) {\n\t\t\tdisplayHeader = mapDetails[mapInfoWindowConfig.entityHeaderField] ?? mapDetails.address[mapInfoWindowConfig.entityHeaderField];\n\n\t\t}\n\n\t\tif (mapInfoWindowConfig.showEntityAddressFields) {\n\t\t\tconst addressFields = mapInfoWindowConfig.showEntityAddressFields\n\t\t\t\t.map(field => address[field])\n\t\t\t\t.filter(Boolean)\n\t\t\t\t.join(', ');\n\t\t\tdisplayAddress = addressFields;\n\t\t}\n\t} else {\n\t\tif (!entityDisplayName.includes(address?.street) && !entityDisplayName.includes(address?.zip)) {\n\t\t\tdisplayAddress = fullAddress;\n\t\t} else {\n\t\t\tdisplayAddress = '';\n\t\t}\n\t}\n\n\treturn (\n\t\t<div className=\"hc-flex-auto hc-p-2\">\n\t\t\t<div>\n\t\t\t\t<div>\n\t\t\t\t\t<h4 className=\"hc-text-lg hc-font-bold hc-leading-tight hc-mb-3\">\n\t\t\t\t\t\t{displayHeader}\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>{displayAddress}</p>\n\t\t\t\t\t<div className=\"hc-pt-2\">\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tclassName=\"hc-cursor-pointer hover:hc-opacity-70 hc-text-primary\"\n\t\t\t\t\t\t\tonClick={applyFilters}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{items.length > 1\n\t\t\t\t\t\t\t\t? `View All ${items.length} jobs at this location`\n\t\t\t\t\t\t\t\t: `View job at this location`}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default InfoWindowContent;\n"],"names":["InfoWindowContent","_ref","items","fullAddress","applyFilters","mapInfoWindowConfig","length","mapDetails","entityDisplayName","address","displayHeader","displayAddress","entityHeaderField","_mapDetails$mapInfoWi","showEntityAddressFields","addressFields","map","field","filter","Boolean","join","includes","street","zip","React","createElement","className","onClick","concat"],"mappings":";;AAEA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAKjB;AAAA,EAAA,IAJLC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IACXC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACZC,mBAAmB,GAAAJ,IAAA,CAAnBI,mBAAmB,CAAA;EAEnB,IAAI,CAACH,KAAK,IAAIA,KAAK,CAACI,MAAM,GAAG,CAAC,EAAE;AAC/B,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;AAEA,EAAA,IAAIC,UAAU,GAAGL,KAAK,CAAC,CAAC,CAAC,CAACK,UAAU,CAAA;EACpC,IAAIC,iBAAiB,GAAGD,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAVA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,UAAU,CAAEC,iBAAiB,CAAA;EACrD,IAAIC,OAAO,GAAGF,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAVA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,UAAU,CAAEE,OAAO,CAAA;EAEjC,IAAIC,aAAa,GAAGF,iBAAiB,CAAA;EACrC,IAAIG,cAAc,GAAGR,WAAW,CAAA;AAEhC,EAAA,IAAIE,mBAAmB,EAAE;IACxB,IAAIA,mBAAmB,CAACO,iBAAiB,KAAKL,UAAU,CAACF,mBAAmB,CAACO,iBAAiB,CAAC,IAAIL,UAAU,CAACE,OAAO,CAACJ,mBAAmB,CAACO,iBAAiB,CAAC,CAAC,EAAE;AAAA,MAAA,IAAAC,qBAAA,CAAA;MAC9JH,aAAa,GAAA,CAAAG,qBAAA,GAAGN,UAAU,CAACF,mBAAmB,CAACO,iBAA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AAA,EAAAA,IAAAA,EAAAA,cAAkB,CAAC,eACvBa,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,SAAA;GACdF,eAAAA,KAAA,CAAAC,aAAA,CAAA,QAAA,EAAA;AACCC,IAAAA,SAAS,EAAC,uDAAuD;AACjEC,IAAAA,OAAO,EAAEvB,YAAAA;AAAa,GAAA,EAErBF,KAAK,CAACI,MAAM,GAAG,CAAC,eAAAsB,MAAA,CACF1B,KAAK,CAACI,MAAM,EAEpB,wBAAA,CAAA,GAAA,2BAAA,CACJ,CACD,CACD,CACD,CAAC,CAAA;AAER;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import MapTabs from './tabs.js';
|
|
3
3
|
|
|
4
4
|
var MapList = function MapList(_ref) {
|
|
@@ -9,12 +9,12 @@ var MapList = function MapList(_ref) {
|
|
|
9
9
|
filter = _ref.filter,
|
|
10
10
|
mapPosition = _ref.mapPosition,
|
|
11
11
|
containerStyle = _ref.containerStyle;
|
|
12
|
-
return /*#__PURE__*/
|
|
12
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
13
13
|
style: containerStyle,
|
|
14
|
-
className: "\n\t\t\t\t\t".concat(showMap === false ? "md:hc-grid-rows-[100%]" : "md:hc-grid-rows-[50%_50%]", "\n\t\t\t\t\thc-hidden md:hc-grid
|
|
15
|
-
}, mapPosition && mapPosition === 'top' && showMap ? /*#__PURE__*/
|
|
14
|
+
className: "\n\t\t\t\t\t".concat(showMap === false ? "md:hc-grid-rows-[100%]" : "md:hc-grid-rows-[50%_50%]", "\n\t\t\t\t\thc-hidden md:hc-grid hc-overflow-hidden hc-relative bg-gray-100\n\t\t\t\t")
|
|
15
|
+
}, mapPosition && mapPosition === 'top' && showMap ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, map), /*#__PURE__*/React.createElement("div", null, list)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, list), /*#__PURE__*/React.createElement("div", null, showMap && map))), /*#__PURE__*/React.createElement("div", {
|
|
16
16
|
className: "md:hc-hidden"
|
|
17
|
-
}, /*#__PURE__*/
|
|
17
|
+
}, /*#__PURE__*/React.createElement(MapTabs, {
|
|
18
18
|
showMap: showMap,
|
|
19
19
|
list: list,
|
|
20
20
|
map: !loading && showMap && map,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-list.js","sources":["../../../../src/components/modules/maps/map-list.js"],"sourcesContent":["import React from 'react';\nimport Tabs from '~/components/modules/maps/tabs';\n\nconst MapList = ({ showMap, loading, list, map, filter, mapPosition, containerStyle }) => {\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tstyle={containerStyle}\n\t\t\t\tclassName={`\n\t\t\t\t\t${showMap === false ? \"md:hc-grid-rows-[100%]\" : \"md:hc-grid-rows-[50%_50%]\"}\n\t\t\t\t\thc-hidden md:hc-grid
|
|
1
|
+
{"version":3,"file":"map-list.js","sources":["../../../../src/components/modules/maps/map-list.js"],"sourcesContent":["import React from 'react';\nimport Tabs from '~/components/modules/maps/tabs';\n\nconst MapList = ({ showMap, loading, list, map, filter, mapPosition, containerStyle }) => {\n\treturn (\n\t\t<>\n\t\t\t<div\n\t\t\t\tstyle={containerStyle}\n\t\t\t\tclassName={`\n\t\t\t\t\t${showMap === false ? \"md:hc-grid-rows-[100%]\" : \"md:hc-grid-rows-[50%_50%]\"}\n\t\t\t\t\thc-hidden md:hc-grid hc-overflow-hidden hc-relative bg-gray-100\n\t\t\t\t`}\n\t\t\t>\n\t\t\t\t{mapPosition && mapPosition === 'top' && showMap ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<div>{map}</div>\n\t\t\t\t\t\t<div>{list}</div>\n\t\t\t\t\t</>\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<div>{list}</div>\n\t\t\t\t\t\t<div>{showMap && map}</div>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\n\t\t\t</div>\n\t\t\t<div className=\"md:hc-hidden\">\n\t\t\t\t<Tabs\n\t\t\t\t\tshowMap={showMap}\n\t\t\t\t\tlist={list}\n\t\t\t\t\tmap={!loading && showMap && map}\n\t\t\t\t\tfilter={filter}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</>\n\t);\n};\n\nexport default MapList;\n"],"names":["MapList","_ref","showMap","loading","list","map","filter","mapPosition","containerStyle","React","createElement","Fragment","style","className","concat","Tabs"],"mappings":";;;AAGA,IAAMA,OAAO,GAAG,SAAVA,OAAOA,CAAAC,IAAA,EAA6E;AAAA,EAAA,IAAvEC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IAAEC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IAAEC,GAAG,GAAAJ,IAAA,CAAHI,GAAG;IAAEC,MAAM,GAAAL,IAAA,CAANK,MAAM;IAAEC,WAAW,GAAAN,IAAA,CAAXM,WAAW;IAAEC,cAAc,GAAAP,IAAA,CAAdO,cAAc,CAAA;EAClF,oBACCC,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACCF,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACCE,IAAAA,KAAK,EAAEJ,cAAe;IACtBK,SAAS,EAAA,cAAA,CAAAC,MAAA,CACNZ,OAAO,KAAK,KAAK,GAAG,wBAAwB,GAAG,2BAA2B,EAAA,uFAAA,CAAA;GAI5EK,EAAAA,WAAW,IAAIA,WAAW,KAAK,KAAK,IAAIL,OAAO,gBAC/CO,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EACCF,IAAAA,eAAAA,KAAA,CAAAC,aAAA,CAAML,KAAAA,EAAAA,IAAAA,EAAAA,GAAS,CAAC,eAChBI,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA,IAAA,EAAMN,IAAU,CACf,CAAC,gBAEHK,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAE,QAAA,EAAA,IAAA,eACCF,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA,IAAA,EAAMN,IAAU,CAAC,eACjBK,KAAA,CAAAC,aAAA,CAAMR,KAAAA,EAAAA,IAAAA,EAAAA,OAAO,IAAIG,GAAS,CACzB,CAGC,CAAC,eACNI,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKG,IAAAA,SAAS,EAAC,cAAA;AAAc,GAAA,eAC5BJ,KAAA,CAAAC,aAAA,CAACK,OAAI,EAAA;AACJb,IAAAA,OAAO,EAAEA,OAAQ;AACjBE,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,GAAG,EAAE,CAACF,OAAO,IAAID,OAAO,IAAIG,GAAI;AAChCC,IAAAA,MAAM,EAAEA,MAAAA;GACR,CACG,CACJ,CAAC,CAAA;AAEL;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MarkerF } from '
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MarkerF } from '@react-google-maps/api';
|
|
3
3
|
|
|
4
4
|
var MapMarker = function MapMarker(_ref) {
|
|
5
5
|
var position = _ref.position,
|
|
@@ -10,7 +10,7 @@ var MapMarker = function MapMarker(_ref) {
|
|
|
10
10
|
onClick = _ref.onClick,
|
|
11
11
|
clusterer = _ref.clusterer,
|
|
12
12
|
children = _ref.children;
|
|
13
|
-
return /*#__PURE__*/
|
|
13
|
+
return /*#__PURE__*/React.createElement(MarkerF, {
|
|
14
14
|
position: position,
|
|
15
15
|
title: title,
|
|
16
16
|
options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-marker.js","sources":["../../../../src/components/modules/maps/map-marker.js"],"sourcesContent":["import React from 'react';\nimport { MarkerF } from '@react-google-maps/api';\n\nconst MapMarker = ({\n\tposition,\n\ttitle,\n\ticon,\n\tzIndex,\n\tonLoad,\n\tonClick,\n\tclusterer,\n\tchildren\n}) => {\n\treturn (\n\t\t<MarkerF\n\t\t\tposition={position}\n\t\t\ttitle={title}\n\t\t\toptions={{ icon: icon }}\n\t\t\tzIndex={zIndex}\n\t\t\tonLoad={onLoad}\n\t\t\tonClick={onClick}\n\t\t\tclusterer={clusterer}\n\t\t>\n\t\t\t{children}\n\t\t</MarkerF>\n\t);\n};\n\nexport default MapMarker;\n"],"names":["MapMarker","_ref","position","title","icon","zIndex","onLoad","onClick","clusterer","children","React","createElement","MarkerF","options"],"mappings":";;;AAGA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAST;AAAA,EAAA,IARLC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IACJC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,MAAM,GAAAL,IAAA,CAANK,MAAM;IACNC,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,SAAS,GAAAP,IAAA,CAATO,SAAS;IACTC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ,CAAA;AAER,EAAA,oBACCC,
|
|
1
|
+
{"version":3,"file":"map-marker.js","sources":["../../../../src/components/modules/maps/map-marker.js"],"sourcesContent":["import React from 'react';\nimport { MarkerF } from '@react-google-maps/api';\n\nconst MapMarker = ({\n\tposition,\n\ttitle,\n\ticon,\n\tzIndex,\n\tonLoad,\n\tonClick,\n\tclusterer,\n\tchildren\n}) => {\n\treturn (\n\t\t<MarkerF\n\t\t\tposition={position}\n\t\t\ttitle={title}\n\t\t\toptions={{ icon: icon }}\n\t\t\tzIndex={zIndex}\n\t\t\tonLoad={onLoad}\n\t\t\tonClick={onClick}\n\t\t\tclusterer={clusterer}\n\t\t>\n\t\t\t{children}\n\t\t</MarkerF>\n\t);\n};\n\nexport default MapMarker;\n"],"names":["MapMarker","_ref","position","title","icon","zIndex","onLoad","onClick","clusterer","children","React","createElement","MarkerF","options"],"mappings":";;;AAGA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAST;AAAA,EAAA,IARLC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IACJC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,MAAM,GAAAL,IAAA,CAANK,MAAM;IACNC,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,SAAS,GAAAP,IAAA,CAATO,SAAS;IACTC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ,CAAA;AAER,EAAA,oBACCC,KAAA,CAAAC,aAAA,CAACC,OAAO,EAAA;AACPV,IAAAA,QAAQ,EAAEA,QAAS;AACnBC,IAAAA,KAAK,EAAEA,KAAM;AACbU,IAAAA,OAAO,EAAE;AAAET,MAAAA,IAAI,EAAEA,IAAAA;KAAO;AACxBC,IAAAA,MAAM,EAAEA,MAAO;AACfC,IAAAA,MAAM,EAAEA,MAAO;AACfC,IAAAA,OAAO,EAAEA,OAAQ;AACjBC,IAAAA,SAAS,EAAEA,SAAAA;AAAU,GAAA,EAEpBC,QACO,CAAC,CAAA;AAEZ;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { GoogleMap } from '
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GoogleMap } from '@react-google-maps/api';
|
|
3
3
|
import ShowAllButton from '../buttons/show-all-button.js';
|
|
4
4
|
|
|
5
5
|
var Map = function Map(_ref) {
|
|
@@ -17,10 +17,10 @@ var Map = function Map(_ref) {
|
|
|
17
17
|
filteredListingsLength = _ref.filteredListingsLength,
|
|
18
18
|
setSelectedFilters = _ref.setSelectedFilters,
|
|
19
19
|
children = _ref.children;
|
|
20
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, zoom && center && /*#__PURE__*/React.createElement("div", {
|
|
21
21
|
ref: mapContainerRef,
|
|
22
22
|
className: "hc-h-full hc-relative"
|
|
23
|
-
}, /*#__PURE__*/
|
|
23
|
+
}, /*#__PURE__*/React.createElement(GoogleMap, {
|
|
24
24
|
zoom: zoom,
|
|
25
25
|
onLoad: onLoad,
|
|
26
26
|
onIdle: onIdle,
|
|
@@ -38,7 +38,7 @@ var Map = function Map(_ref) {
|
|
|
38
38
|
}]
|
|
39
39
|
}]
|
|
40
40
|
}
|
|
41
|
-
}, children), mapInteracted && /*#__PURE__*/
|
|
41
|
+
}, children), mapInteracted && /*#__PURE__*/React.createElement(ShowAllButton, {
|
|
42
42
|
mapInteracted: mapInteracted,
|
|
43
43
|
setMapInteracted: setMapInteracted,
|
|
44
44
|
fitBounds: fitBounds,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map.js","sources":["../../../../src/components/modules/maps/map.js"],"sourcesContent":["import React from 'react';\nimport { GoogleMap } from \"@react-google-maps/api\";\nimport ShowAllButton from \"~/components/modules/buttons/show-all-button\";\n\nconst Map = ({\n\tzoom,\n\tcenter,\n\tmapContainerRef,\n\tonLoad,\n\tonIdle,\n\tmapInteracted,\n\tpinIconUrl,\n\tsetMapInteracted,\n\tfitBounds,\n\tmapRef,\n\tsetQuery,\n\tfilteredListingsLength,\n\tsetSelectedFilters,\n\tchildren\n}) => {\n\treturn (\n\t\t<>\n\t\t\t{zoom && center && (\n\t\t\t\t<div ref={mapContainerRef} className=\"hc-h-full hc-relative\">\n\t\t\t\t\t<GoogleMap\n\t\t\t\t\t\tzoom={zoom}\n\t\t\t\t\t\tonLoad={onLoad}\n\t\t\t\t\t\tonIdle={onIdle}\n\t\t\t\t\t\tcenter={center}\n\t\t\t\t\t\tmapContainerStyle={{\n\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\theight: \"100%\"\n\t\t\t\t\t\t}}\n\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\tstyles: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tfeatureType: \"poi\",\n\t\t\t\t\t\t\t\t\telementType: \"labels\",\n\t\t\t\t\t\t\t\t\tstylers: [{ visibility: \"off\" }]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</GoogleMap>\n\t\t\t\t\t{mapInteracted && (\n\t\t\t\t\t\t<ShowAllButton\n\t\t\t\t\t\t\tmapInteracted={mapInteracted}\n\t\t\t\t\t\t\tsetMapInteracted={setMapInteracted}\n\t\t\t\t\t\t\tfitBounds={fitBounds}\n\t\t\t\t\t\t\tmapRef={mapRef}\n\t\t\t\t\t\t\tpinIconUrl={pinIconUrl}\n\t\t\t\t\t\t\tsetQuery={setQuery}\n\t\t\t\t\t\t\tlistingCount={filteredListingsLength}\n\t\t\t\t\t\t\tsetSelectedFilters={setSelectedFilters}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default Map;\n"],"names":["Map","_ref","zoom","center","mapContainerRef","onLoad","onIdle","mapInteracted","pinIconUrl","setMapInteracted","fitBounds","mapRef","setQuery","filteredListingsLength","setSelectedFilters","children","React","createElement","Fragment","ref","className","GoogleMap","mapContainerStyle","width","height","options","styles","featureType","elementType","stylers","visibility","ShowAllButton","listingCount"],"mappings":";;;;AAIA,IAAMA,GAAG,GAAG,SAANA,GAAGA,CAAAC,IAAA,EAeH;AAAA,EAAA,IAdLC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,eAAe,GAAAH,IAAA,CAAfG,eAAe;IACfC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,MAAM,GAAAL,IAAA,CAANK,MAAM;IACNC,aAAa,GAAAN,IAAA,CAAbM,aAAa;IACbC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACVC,gBAAgB,GAAAR,IAAA,CAAhBQ,gBAAgB;IAChBC,SAAS,GAAAT,IAAA,CAATS,SAAS;IACTC,MAAM,GAAAV,IAAA,CAANU,MAAM;IACNC,QAAQ,GAAAX,IAAA,CAARW,QAAQ;IACRC,sBAAsB,GAAAZ,IAAA,CAAtBY,sBAAsB;IACtBC,kBAAkB,GAAAb,IAAA,CAAlBa,kBAAkB;IAClBC,QAAQ,GAAAd,IAAA,CAARc,QAAQ,CAAA;AAER,EAAA,oBACCC,
|
|
1
|
+
{"version":3,"file":"map.js","sources":["../../../../src/components/modules/maps/map.js"],"sourcesContent":["import React from 'react';\nimport { GoogleMap } from \"@react-google-maps/api\";\nimport ShowAllButton from \"~/components/modules/buttons/show-all-button\";\n\nconst Map = ({\n\tzoom,\n\tcenter,\n\tmapContainerRef,\n\tonLoad,\n\tonIdle,\n\tmapInteracted,\n\tpinIconUrl,\n\tsetMapInteracted,\n\tfitBounds,\n\tmapRef,\n\tsetQuery,\n\tfilteredListingsLength,\n\tsetSelectedFilters,\n\tchildren\n}) => {\n\treturn (\n\t\t<>\n\t\t\t{zoom && center && (\n\t\t\t\t<div ref={mapContainerRef} className=\"hc-h-full hc-relative\">\n\t\t\t\t\t<GoogleMap\n\t\t\t\t\t\tzoom={zoom}\n\t\t\t\t\t\tonLoad={onLoad}\n\t\t\t\t\t\tonIdle={onIdle}\n\t\t\t\t\t\tcenter={center}\n\t\t\t\t\t\tmapContainerStyle={{\n\t\t\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\t\t\theight: \"100%\"\n\t\t\t\t\t\t}}\n\t\t\t\t\t\toptions={{\n\t\t\t\t\t\t\tstyles: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tfeatureType: \"poi\",\n\t\t\t\t\t\t\t\t\telementType: \"labels\",\n\t\t\t\t\t\t\t\t\tstylers: [{ visibility: \"off\" }]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</GoogleMap>\n\t\t\t\t\t{mapInteracted && (\n\t\t\t\t\t\t<ShowAllButton\n\t\t\t\t\t\t\tmapInteracted={mapInteracted}\n\t\t\t\t\t\t\tsetMapInteracted={setMapInteracted}\n\t\t\t\t\t\t\tfitBounds={fitBounds}\n\t\t\t\t\t\t\tmapRef={mapRef}\n\t\t\t\t\t\t\tpinIconUrl={pinIconUrl}\n\t\t\t\t\t\t\tsetQuery={setQuery}\n\t\t\t\t\t\t\tlistingCount={filteredListingsLength}\n\t\t\t\t\t\t\tsetSelectedFilters={setSelectedFilters}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default Map;\n"],"names":["Map","_ref","zoom","center","mapContainerRef","onLoad","onIdle","mapInteracted","pinIconUrl","setMapInteracted","fitBounds","mapRef","setQuery","filteredListingsLength","setSelectedFilters","children","React","createElement","Fragment","ref","className","GoogleMap","mapContainerStyle","width","height","options","styles","featureType","elementType","stylers","visibility","ShowAllButton","listingCount"],"mappings":";;;;AAIA,IAAMA,GAAG,GAAG,SAANA,GAAGA,CAAAC,IAAA,EAeH;AAAA,EAAA,IAdLC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,MAAM,GAAAF,IAAA,CAANE,MAAM;IACNC,eAAe,GAAAH,IAAA,CAAfG,eAAe;IACfC,MAAM,GAAAJ,IAAA,CAANI,MAAM;IACNC,MAAM,GAAAL,IAAA,CAANK,MAAM;IACNC,aAAa,GAAAN,IAAA,CAAbM,aAAa;IACbC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IACVC,gBAAgB,GAAAR,IAAA,CAAhBQ,gBAAgB;IAChBC,SAAS,GAAAT,IAAA,CAATS,SAAS;IACTC,MAAM,GAAAV,IAAA,CAANU,MAAM;IAC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ACrCC,IAAAA,kBAAkB,EAAEA,kBAAAA;GACpB,CAEE,CAEL,CAAC,CAAA;AAEL;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Marker, InfoWindowF } from '
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Marker, InfoWindowF } from '@react-google-maps/api';
|
|
3
3
|
|
|
4
4
|
var PlaceMarker = function PlaceMarker(_ref) {
|
|
5
5
|
var marker = _ref.marker,
|
|
@@ -13,7 +13,7 @@ var PlaceMarker = function PlaceMarker(_ref) {
|
|
|
13
13
|
setSelectedPlaceMarker(markerKey);
|
|
14
14
|
setPlacesWindow(true);
|
|
15
15
|
};
|
|
16
|
-
return /*#__PURE__*/
|
|
16
|
+
return /*#__PURE__*/React.createElement(Marker, {
|
|
17
17
|
key: markerKey,
|
|
18
18
|
position: marker.position,
|
|
19
19
|
title: marker.title,
|
|
@@ -22,7 +22,7 @@ var PlaceMarker = function PlaceMarker(_ref) {
|
|
|
22
22
|
optimized: false
|
|
23
23
|
},
|
|
24
24
|
onClick: placeMarkerClickHandler
|
|
25
|
-
}, selectedPlaceMarker === markerKey && placesWindow && marker && /*#__PURE__*/
|
|
25
|
+
}, selectedPlaceMarker === markerKey && placesWindow && marker && /*#__PURE__*/React.createElement(InfoWindowF, {
|
|
26
26
|
position: marker.position,
|
|
27
27
|
onCloseClick: function onCloseClick() {
|
|
28
28
|
return setPlacesWindow(false);
|
|
@@ -30,7 +30,7 @@ var PlaceMarker = function PlaceMarker(_ref) {
|
|
|
30
30
|
options: {
|
|
31
31
|
maxWidth: 400
|
|
32
32
|
}
|
|
33
|
-
}, /*#__PURE__*/
|
|
33
|
+
}, /*#__PURE__*/React.createElement("div", null, marker.title)));
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export { PlaceMarker as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"place-marker.js","sources":["../../../../src/components/modules/maps/place-marker.js"],"sourcesContent":["import React from 'react';\nimport { Marker, InfoWindowF } from '@react-google-maps/api';\n\nconst PlaceMarker = ({\n\tmarker,\n\tindex,\n\tselectedPlaceMarker,\n\tsetSelectedPlaceMarker,\n\tplacesWindow,\n\tsetPlacesWindow\n}) => {\n\tconst markerKey = `marker-${marker.title}-${index}`;\n\n\tconst placeMarkerClickHandler = () => {\n\t\tsetSelectedPlaceMarker(markerKey);\n\t\tsetPlacesWindow(true);\n\t};\n\n\treturn (\n\t\t<Marker\n\t\t\tkey={markerKey}\n\t\t\tposition={marker.position}\n\t\t\ttitle={marker.title}\n\t\t\ticon={marker.icon}\n\t\t\toptions={{ optimized: false }}\n\t\t\tonClick={placeMarkerClickHandler}\n\t\t>\n\t\t\t{selectedPlaceMarker === markerKey && placesWindow && marker && (\n\t\t\t\t<InfoWindowF\n\t\t\t\t\tposition={marker.position}\n\t\t\t\t\tonCloseClick={() => setPlacesWindow(false)}\n\t\t\t\t\toptions={{ maxWidth: 400 }}\n\t\t\t\t>\n\t\t\t\t\t<div>{marker.title}</div>\n\t\t\t\t</InfoWindowF>\n\t\t\t)}\n\t\t</Marker>\n\t);\n};\n\nexport default PlaceMarker;\n"],"names":["PlaceMarker","_ref","marker","index","selectedPlaceMarker","setSelectedPlaceMarker","placesWindow","setPlacesWindow","markerKey","concat","title","placeMarkerClickHandler","React","createElement","Marker","key","position","icon","options","optimized","onClick","InfoWindowF","onCloseClick","maxWidth"],"mappings":";;;AAGA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAOX;AAAA,EAAA,IANLC,MAAM,GAAAD,IAAA,CAANC,MAAM;IACNC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,mBAAmB,GAAAH,IAAA,CAAnBG,mBAAmB;IACnBC,sBAAsB,GAAAJ,IAAA,CAAtBI,sBAAsB;IACtBC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,eAAe,GAAAN,IAAA,CAAfM,eAAe,CAAA;EAEf,IAAMC,SAAS,GAAAC,SAAAA,CAAAA,MAAA,CAAaP,MAAM,CAACQ,KAAK,EAAAD,GAAAA,CAAAA,CAAAA,MAAA,CAAIN,KAAK,CAAE,CAAA;AAEnD,EAAA,IAAMQ,uBAAuB,GAAG,SAA1BA,uBAAuBA,GAAS;IACrCN,sBAAsB,CAACG,SAAS,CAAC,CAAA;IACjCD,eAAe,CAAC,IAAI,CAAC,CAAA;GACrB,CAAA;AAED,EAAA,oBACCK,
|
|
1
|
+
{"version":3,"file":"place-marker.js","sources":["../../../../src/components/modules/maps/place-marker.js"],"sourcesContent":["import React from 'react';\nimport { Marker, InfoWindowF } from '@react-google-maps/api';\n\nconst PlaceMarker = ({\n\tmarker,\n\tindex,\n\tselectedPlaceMarker,\n\tsetSelectedPlaceMarker,\n\tplacesWindow,\n\tsetPlacesWindow\n}) => {\n\tconst markerKey = `marker-${marker.title}-${index}`;\n\n\tconst placeMarkerClickHandler = () => {\n\t\tsetSelectedPlaceMarker(markerKey);\n\t\tsetPlacesWindow(true);\n\t};\n\n\treturn (\n\t\t<Marker\n\t\t\tkey={markerKey}\n\t\t\tposition={marker.position}\n\t\t\ttitle={marker.title}\n\t\t\ticon={marker.icon}\n\t\t\toptions={{ optimized: false }}\n\t\t\tonClick={placeMarkerClickHandler}\n\t\t>\n\t\t\t{selectedPlaceMarker === markerKey && placesWindow && marker && (\n\t\t\t\t<InfoWindowF\n\t\t\t\t\tposition={marker.position}\n\t\t\t\t\tonCloseClick={() => setPlacesWindow(false)}\n\t\t\t\t\toptions={{ maxWidth: 400 }}\n\t\t\t\t>\n\t\t\t\t\t<div>{marker.title}</div>\n\t\t\t\t</InfoWindowF>\n\t\t\t)}\n\t\t</Marker>\n\t);\n};\n\nexport default PlaceMarker;\n"],"names":["PlaceMarker","_ref","marker","index","selectedPlaceMarker","setSelectedPlaceMarker","placesWindow","setPlacesWindow","markerKey","concat","title","placeMarkerClickHandler","React","createElement","Marker","key","position","icon","options","optimized","onClick","InfoWindowF","onCloseClick","maxWidth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