@abcagency/hc-ui-components 1.2.8 → 1.2.9

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.
Files changed (132) hide show
  1. package/dist/_virtual/_rollupPluginBabelHelpers.js +516 -516
  2. package/dist/apis/hcApi.js +189 -189
  3. package/dist/apis/hcApi.js.map +1 -1
  4. package/dist/clientToken.js +10 -10
  5. package/dist/clientToken.js.map +1 -1
  6. package/dist/components/HireControlMap.js +135 -135
  7. package/dist/components/HireControlMap.js.map +1 -1
  8. package/dist/components/modules/accordions/MapAccordionItem.js +76 -76
  9. package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
  10. package/dist/components/modules/accordions/default.js +108 -108
  11. package/dist/components/modules/accordions/default.js.map +1 -1
  12. package/dist/components/modules/accordions/filterItem.js +50 -50
  13. package/dist/components/modules/accordions/filterItem.js.map +1 -1
  14. package/dist/components/modules/accordions/filters.js +46 -46
  15. package/dist/components/modules/accordions/filters.js.map +1 -1
  16. package/dist/components/modules/buttons/button-group-apply.js +87 -87
  17. package/dist/components/modules/buttons/button-group-apply.js.map +1 -1
  18. package/dist/components/modules/buttons/commute-pill.js +18 -18
  19. package/dist/components/modules/buttons/commute-pill.js.map +1 -1
  20. package/dist/components/modules/buttons/default.js +145 -145
  21. package/dist/components/modules/buttons/default.js.map +1 -1
  22. package/dist/components/modules/buttons/items-pill.js +23 -23
  23. package/dist/components/modules/buttons/items-pill.js.map +1 -1
  24. package/dist/components/modules/buttons/pill-wrapper.js +20 -20
  25. package/dist/components/modules/buttons/pill-wrapper.js.map +1 -1
  26. package/dist/components/modules/buttons/show-all-button.js +39 -39
  27. package/dist/components/modules/buttons/show-all-button.js.map +1 -1
  28. package/dist/components/modules/cards/default.js +102 -102
  29. package/dist/components/modules/cards/default.js.map +1 -1
  30. package/dist/components/modules/cards/filter.js +38 -38
  31. package/dist/components/modules/cards/filter.js.map +1 -1
  32. package/dist/components/modules/dialogs/apply-dialog.js +46 -46
  33. package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
  34. package/dist/components/modules/filter/commute.js +184 -184
  35. package/dist/components/modules/filter/commute.js.map +1 -1
  36. package/dist/components/modules/filter/index.js +79 -79
  37. package/dist/components/modules/filter/index.js.map +1 -1
  38. package/dist/components/modules/filter/item.js +71 -71
  39. package/dist/components/modules/filter/item.js.map +1 -1
  40. package/dist/components/modules/filter/location.js +68 -68
  41. package/dist/components/modules/filter/location.js.map +1 -1
  42. package/dist/components/modules/filter/points-of-interest.js +38 -38
  43. package/dist/components/modules/filter/points-of-interest.js.map +1 -1
  44. package/dist/components/modules/filter/radio-item.js +46 -46
  45. package/dist/components/modules/filter/radio-item.js.map +1 -1
  46. package/dist/components/modules/filter/search.js +83 -83
  47. package/dist/components/modules/filter/search.js.map +1 -1
  48. package/dist/components/modules/filter/sort.js +93 -93
  49. package/dist/components/modules/filter/sort.js.map +1 -1
  50. package/dist/components/modules/grid.js +39 -39
  51. package/dist/components/modules/grid.js.map +1 -1
  52. package/dist/components/modules/icon.js +23 -23
  53. package/dist/components/modules/icon.js.map +1 -1
  54. package/dist/components/modules/jobListing/listing-details.js +71 -71
  55. package/dist/components/modules/jobListing/listing-details.js.map +1 -1
  56. package/dist/components/modules/maps/info-window-card.js +14 -14
  57. package/dist/components/modules/maps/info-window-card.js.map +1 -1
  58. package/dist/components/modules/maps/info-window-content.js +49 -39
  59. package/dist/components/modules/maps/info-window-content.js.map +1 -1
  60. package/dist/components/modules/maps/list/field-mapper.js +88 -88
  61. package/dist/components/modules/maps/list/field-mapper.js.map +1 -1
  62. package/dist/components/modules/maps/list/header-item.js +59 -59
  63. package/dist/components/modules/maps/list/header-item.js.map +1 -1
  64. package/dist/components/modules/maps/list/header.js +37 -37
  65. package/dist/components/modules/maps/list/header.js.map +1 -1
  66. package/dist/components/modules/maps/list/index.js +93 -93
  67. package/dist/components/modules/maps/list/index.js.map +1 -1
  68. package/dist/components/modules/maps/list/item-expand-card/index.js +16 -16
  69. package/dist/components/modules/maps/list/item-expand-card/index.js.map +1 -1
  70. package/dist/components/modules/maps/list/item-expand-card/recruiter-contact-nav.js +38 -38
  71. package/dist/components/modules/maps/list/item-expand-card/recruiter-contact-nav.js.map +1 -1
  72. package/dist/components/modules/maps/list/item-expand-card/recruiter-details.js +40 -40
  73. package/dist/components/modules/maps/list/item-expand-card/recruiter-details.js.map +1 -1
  74. package/dist/components/modules/maps/list/item-expand-card/recruiter-headshot.js +20 -20
  75. package/dist/components/modules/maps/list/item-expand-card/recruiter-headshot.js.map +1 -1
  76. package/dist/components/modules/maps/list/list-item/index.js +98 -98
  77. package/dist/components/modules/maps/list/list-item/index.js.map +1 -1
  78. package/dist/components/modules/maps/map-list.js +57 -57
  79. package/dist/components/modules/maps/map-list.js.map +1 -1
  80. package/dist/components/modules/maps/map-marker.js +85 -85
  81. package/dist/components/modules/maps/map-marker.js.map +1 -1
  82. package/dist/components/modules/maps/map.js +201 -201
  83. package/dist/components/modules/maps/map.js.map +1 -1
  84. package/dist/components/modules/maps/place-marker.js +37 -37
  85. package/dist/components/modules/maps/place-marker.js.map +1 -1
  86. package/dist/components/modules/maps/tabs.js +84 -84
  87. package/dist/components/modules/maps/tabs.js.map +1 -1
  88. package/dist/constants/placeTypes.js +11 -11
  89. package/dist/constants/placeTypes.js.map +1 -1
  90. package/dist/contexts/mapContext.js +133 -133
  91. package/dist/contexts/mapContext.js.map +1 -1
  92. package/dist/contexts/mapListContext.js +280 -280
  93. package/dist/contexts/mapListContext.js.map +1 -1
  94. package/dist/contexts/placesContext.js +152 -152
  95. package/dist/contexts/placesContext.js.map +1 -1
  96. package/dist/hooks/useList.js +119 -119
  97. package/dist/hooks/useList.js.map +1 -1
  98. package/dist/index.js +2 -2
  99. package/dist/services/_virtual/_rollupPluginBabelHelpers.js +372 -372
  100. package/dist/services/apis/hcApi.js +189 -189
  101. package/dist/services/apis/hcApi.js.map +1 -1
  102. package/dist/services/clientToken.js +7 -7
  103. package/dist/services/clientToken.js.map +1 -1
  104. package/dist/services/configService.js +33 -33
  105. package/dist/services/configService.js.map +1 -1
  106. package/dist/services/googlePlacesNearbyService.js +61 -61
  107. package/dist/services/googlePlacesNearbyService.js.map +1 -1
  108. package/dist/services/listingAggregatorService.js +56 -56
  109. package/dist/services/listingAggregatorService.js.map +1 -1
  110. package/dist/services/listingEntityService.js +36 -36
  111. package/dist/services/listingEntityService.js.map +1 -1
  112. package/dist/services/listingService.js +64 -64
  113. package/dist/services/listingService.js.map +1 -1
  114. package/dist/services/recruiterService.js +36 -36
  115. package/dist/services/recruiterService.js.map +1 -1
  116. package/dist/services/styles/index.css +2 -2
  117. package/dist/styles/index.css +2 -2
  118. package/dist/util/filterUtil.js +213 -213
  119. package/dist/util/filterUtil.js.map +1 -1
  120. package/dist/util/loading.js +16 -16
  121. package/dist/util/loading.js.map +1 -1
  122. package/dist/util/localStorageUtil.js +32 -32
  123. package/dist/util/localStorageUtil.js.map +1 -1
  124. package/dist/util/mapIconUtil.js +73 -73
  125. package/dist/util/mapIconUtil.js.map +1 -1
  126. package/dist/util/mapUtil.js +76 -76
  127. package/dist/util/mapUtil.js.map +1 -1
  128. package/dist/util/sortUtil.js +33 -33
  129. package/dist/util/sortUtil.js.map +1 -1
  130. package/dist/util/stringUtils.js +9 -9
  131. package/dist/util/stringUtils.js.map +1 -1
  132. package/package.json +1 -1
@@ -1,135 +1,135 @@
1
- import { slicedToArray as _slicedToArray, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from '../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { useState, useEffect } from 'react';
3
- import { useLoadScript } from '@react-google-maps/api';
4
- import Grid from './modules/grid.js';
5
- import Filter from './modules/filter/index.js';
6
- import MapList from './modules/maps/map-list.js';
7
- import { MapProvider } from '../contexts/mapContext.js';
8
- import { PlacesProvider } from '../contexts/placesContext.js';
9
- import { MapListProvider } from '../contexts/mapListContext.js';
10
- import { getMapConfig } from '../services/configService.js';
11
- import { setClientAuthKey } from '../clientToken.js';
12
-
13
- var libraries = ['places'];
14
- var HireControlMap = function HireControlMap(_ref) {
15
- var clientToken = _ref.clientToken,
16
- _ref$navigateToDetail = _ref.navigateToDetails,
17
- navigateToDetails = _ref$navigateToDetail === void 0 ? null : _ref$navigateToDetail,
18
- _ref$navigateToEasyAp = _ref.navigateToEasyApply,
19
- navigateToEasyApply = _ref$navigateToEasyAp === void 0 ? null : _ref$navigateToEasyAp,
20
- _ref$Link = _ref.Link,
21
- Link = _ref$Link === void 0 ? null : _ref$Link,
22
- _ref$linkFormat = _ref.linkFormat,
23
- linkFormat = _ref$linkFormat === void 0 ? '/jobs/[slug]' : _ref$linkFormat;
24
- var _useState = useState(null),
25
- _useState2 = _slicedToArray(_useState, 2),
26
- siteConfig = _useState2[0],
27
- setSiteconfig = _useState2[1];
28
- useEffect(function () {
29
- setClientAuthKey(clientToken);
30
- var fetchSiteConfig = /*#__PURE__*/function () {
31
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32
- var configData;
33
- return _regeneratorRuntime().wrap(function _callee$(_context) {
34
- while (1) switch (_context.prev = _context.next) {
35
- case 0:
36
- _context.prev = 0;
37
- _context.next = 3;
38
- return getMapConfig(clientToken);
39
- case 3:
40
- configData = _context.sent;
41
- setSiteconfig(configData);
42
- _context.next = 10;
43
- break;
44
- case 7:
45
- _context.prev = 7;
46
- _context.t0 = _context["catch"](0);
47
- console.error('Failed to fetch site configuration:', _context.t0);
48
- case 10:
49
- case "end":
50
- return _context.stop();
51
- }
52
- }, _callee, null, [[0, 7]]);
53
- }));
54
- return function fetchSiteConfig() {
55
- return _ref2.apply(this, arguments);
56
- };
57
- }();
58
- fetchSiteConfig();
59
- }, [clientToken]);
60
- var _useLoadScript = useLoadScript({
61
- googleMapsApiKey: "AIzaSyAXPlfaoMCrmjNV1u-vFYdLBi7GkGeh4S4",
62
- version: 'quarterly',
63
- libraries: libraries
64
- }),
65
- isLoaded = _useLoadScript.isLoaded;
66
- return /*#__PURE__*/React.createElement("div", null, isLoaded && siteConfig && /*#__PURE__*/React.createElement(HomeBody, {
67
- siteConfig: siteConfig,
68
- navigateToDetails: navigateToDetails,
69
- navigateToEasyApply: navigateToEasyApply,
70
- Link: Link,
71
- linkFormat: linkFormat
72
- }));
73
- };
74
- var HomeBody = function HomeBody(_ref3) {
75
- var _siteConfig$pointsOfI, _siteConfig$pointsOfI2;
76
- var siteConfig = _ref3.siteConfig,
77
- navigateToDetails = _ref3.navigateToDetails,
78
- navigateToEasyApply = _ref3.navigateToEasyApply,
79
- Link = _ref3.Link,
80
- linkFormat = _ref3.linkFormat;
81
- var resetFilters = false;
82
- return /*#__PURE__*/React.createElement(MapListProvider, {
83
- siteConfig: siteConfig,
84
- resetFilters: resetFilters,
85
- avigateToDetails: navigateToDetails,
86
- navigateToEasyApply: navigateToEasyApply,
87
- Link: Link,
88
- linkFormat: linkFormat
89
- }, /*#__PURE__*/React.createElement(MapProvider, {
90
- resetFilters: resetFilters
91
- }, /*#__PURE__*/React.createElement(PlacesProvider, {
92
- placeMappings: (_siteConfig$pointsOfI = siteConfig.pointsOfInterestConfig.placeMappings) !== null && _siteConfig$pointsOfI !== void 0 ? _siteConfig$pointsOfI : {},
93
- markerColors: {
94
- fillColor: siteConfig.colors.primary,
95
- strokeColor: siteConfig.colors.primaryDark,
96
- selectedFillColor: siteConfig.colors.secondary,
97
- selectedStrokeColor: siteConfig.colors.secondaryDark,
98
- placeMarkers: {
99
- colors: siteConfig.pointsOfInterestConfig.placeMarkerColors,
100
- size: siteConfig.pointsOfInterestConfig.placeMarkerSize
101
- }
102
- }
103
- }, /*#__PURE__*/React.createElement(Grid, {
104
- as: "section",
105
- id: "job-search-interface",
106
- columns: "md:hc-grid-cols-[1fr_2.5fr] lg:hc-grid-cols-[1fr_3.5fr]",
107
- gap: "hc-gap-0",
108
- autoRows: false,
109
- className: "hc-items-stretch hc-h-screen hc-min-h-[30rem] hc-divide-x hc-divide-uiAccent/20"
110
- }, /*#__PURE__*/React.createElement(Grid.Item, {
111
- className: "hc-bg-gray-100"
112
- }, /*#__PURE__*/React.createElement(Filter, {
113
- showMap: siteConfig.showMap,
114
- className: "hc-hidden md:hc-block"
115
- })), /*#__PURE__*/React.createElement(MapList, {
116
- markerConfigs: {
117
- fillColor: siteConfig.colors.primary,
118
- strokeColor: siteConfig.colors.primaryDark,
119
- selectedFillColor: siteConfig.colors.secondary,
120
- selectedStrokeColor: siteConfig.colors.secondaryDark,
121
- placeMarkers: {
122
- colors: siteConfig.pointsOfInterestConfig.placeMarkerColors,
123
- size: siteConfig.pointsOfInterestConfig.placeMarkerSize
124
- }
125
- },
126
- showMap: siteConfig.showMap,
127
- fieldsShown: siteConfig.fieldsShown,
128
- specialFeatures: siteConfig.specialFeatures,
129
- fieldNames: siteConfig.fieldNames,
130
- placeMappings: (_siteConfig$pointsOfI2 = siteConfig.pointsOfInterestConfig.placeMappings) !== null && _siteConfig$pointsOfI2 !== void 0 ? _siteConfig$pointsOfI2 : {}
131
- })))));
132
- };
133
-
134
- export { HireControlMap, HireControlMap as default };
135
- //# sourceMappingURL=HireControlMap.js.map
1
+ import { slicedToArray as _slicedToArray, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React, { useState, useEffect } from 'react';
3
+ import { useLoadScript } from '@react-google-maps/api';
4
+ import Grid from './modules/grid.js';
5
+ import Filter from './modules/filter/index.js';
6
+ import MapList from './modules/maps/map-list.js';
7
+ import { MapProvider } from '../contexts/mapContext.js';
8
+ import { PlacesProvider } from '../contexts/placesContext.js';
9
+ import { MapListProvider } from '../contexts/mapListContext.js';
10
+ import { getMapConfig } from '../services/configService.js';
11
+ import { setClientAuthKey } from '../clientToken.js';
12
+
13
+ var libraries = ['places'];
14
+ var HireControlMap = function HireControlMap(_ref) {
15
+ var clientToken = _ref.clientToken,
16
+ _ref$navigateToDetail = _ref.navigateToDetails,
17
+ navigateToDetails = _ref$navigateToDetail === void 0 ? null : _ref$navigateToDetail,
18
+ _ref$navigateToEasyAp = _ref.navigateToEasyApply,
19
+ navigateToEasyApply = _ref$navigateToEasyAp === void 0 ? null : _ref$navigateToEasyAp,
20
+ _ref$Link = _ref.Link,
21
+ Link = _ref$Link === void 0 ? null : _ref$Link,
22
+ _ref$linkFormat = _ref.linkFormat,
23
+ linkFormat = _ref$linkFormat === void 0 ? '/jobs/[slug]' : _ref$linkFormat;
24
+ var _useState = useState(null),
25
+ _useState2 = _slicedToArray(_useState, 2),
26
+ siteConfig = _useState2[0],
27
+ setSiteconfig = _useState2[1];
28
+ useEffect(function () {
29
+ setClientAuthKey(clientToken);
30
+ var fetchSiteConfig = /*#__PURE__*/function () {
31
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32
+ var configData;
33
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
34
+ while (1) switch (_context.prev = _context.next) {
35
+ case 0:
36
+ _context.prev = 0;
37
+ _context.next = 3;
38
+ return getMapConfig(clientToken);
39
+ case 3:
40
+ configData = _context.sent;
41
+ setSiteconfig(configData);
42
+ _context.next = 10;
43
+ break;
44
+ case 7:
45
+ _context.prev = 7;
46
+ _context.t0 = _context["catch"](0);
47
+ console.error('Failed to fetch site configuration:', _context.t0);
48
+ case 10:
49
+ case "end":
50
+ return _context.stop();
51
+ }
52
+ }, _callee, null, [[0, 7]]);
53
+ }));
54
+ return function fetchSiteConfig() {
55
+ return _ref2.apply(this, arguments);
56
+ };
57
+ }();
58
+ fetchSiteConfig();
59
+ }, [clientToken]);
60
+ var _useLoadScript = useLoadScript({
61
+ googleMapsApiKey: "AIzaSyAXPlfaoMCrmjNV1u-vFYdLBi7GkGeh4S4",
62
+ version: 'quarterly',
63
+ libraries: libraries
64
+ }),
65
+ isLoaded = _useLoadScript.isLoaded;
66
+ return /*#__PURE__*/React.createElement("div", null, isLoaded && siteConfig && /*#__PURE__*/React.createElement(HomeBody, {
67
+ siteConfig: siteConfig,
68
+ navigateToDetails: navigateToDetails,
69
+ navigateToEasyApply: navigateToEasyApply,
70
+ Link: Link,
71
+ linkFormat: linkFormat
72
+ }));
73
+ };
74
+ var HomeBody = function HomeBody(_ref3) {
75
+ var _siteConfig$pointsOfI, _siteConfig$pointsOfI2;
76
+ var siteConfig = _ref3.siteConfig,
77
+ navigateToDetails = _ref3.navigateToDetails,
78
+ navigateToEasyApply = _ref3.navigateToEasyApply,
79
+ Link = _ref3.Link,
80
+ linkFormat = _ref3.linkFormat;
81
+ var resetFilters = false;
82
+ return /*#__PURE__*/React.createElement(MapListProvider, {
83
+ siteConfig: siteConfig,
84
+ resetFilters: resetFilters,
85
+ avigateToDetails: navigateToDetails,
86
+ navigateToEasyApply: navigateToEasyApply,
87
+ Link: Link,
88
+ linkFormat: linkFormat
89
+ }, /*#__PURE__*/React.createElement(MapProvider, {
90
+ resetFilters: resetFilters
91
+ }, /*#__PURE__*/React.createElement(PlacesProvider, {
92
+ placeMappings: (_siteConfig$pointsOfI = siteConfig.pointsOfInterestConfig.placeMappings) !== null && _siteConfig$pointsOfI !== void 0 ? _siteConfig$pointsOfI : {},
93
+ markerColors: {
94
+ fillColor: siteConfig.colors.primary,
95
+ strokeColor: siteConfig.colors.primaryDark,
96
+ selectedFillColor: siteConfig.colors.secondary,
97
+ selectedStrokeColor: siteConfig.colors.secondaryDark,
98
+ placeMarkers: {
99
+ colors: siteConfig.pointsOfInterestConfig.placeMarkerColors,
100
+ size: siteConfig.pointsOfInterestConfig.placeMarkerSize
101
+ }
102
+ }
103
+ }, /*#__PURE__*/React.createElement(Grid, {
104
+ as: "section",
105
+ id: "job-search-interface",
106
+ columns: "md:hc-grid-cols-[1fr_2.5fr] lg:hc-grid-cols-[1fr_3.5fr]",
107
+ gap: "hc-gap-0",
108
+ autoRows: false,
109
+ className: "hc-items-stretch hc-h-screen hc-min-h-[30rem] hc-divide-x hc-divide-uiAccent/20"
110
+ }, /*#__PURE__*/React.createElement(Grid.Item, {
111
+ className: "hc-bg-gray-100"
112
+ }, /*#__PURE__*/React.createElement(Filter, {
113
+ showMap: siteConfig.showMap,
114
+ className: "hc-hidden md:hc-block"
115
+ })), /*#__PURE__*/React.createElement(MapList, {
116
+ markerConfigs: {
117
+ fillColor: siteConfig.colors.primary,
118
+ strokeColor: siteConfig.colors.primaryDark,
119
+ selectedFillColor: siteConfig.colors.secondary,
120
+ selectedStrokeColor: siteConfig.colors.secondaryDark,
121
+ placeMarkers: {
122
+ colors: siteConfig.pointsOfInterestConfig.placeMarkerColors,
123
+ size: siteConfig.pointsOfInterestConfig.placeMarkerSize
124
+ }
125
+ },
126
+ showMap: siteConfig.showMap,
127
+ fieldsShown: siteConfig.fieldsShown,
128
+ specialFeatures: siteConfig.specialFeatures,
129
+ fieldNames: siteConfig.fieldNames,
130
+ placeMappings: (_siteConfig$pointsOfI2 = siteConfig.pointsOfInterestConfig.placeMappings) !== null && _siteConfig$pointsOfI2 !== void 0 ? _siteConfig$pointsOfI2 : {}
131
+ })))));
132
+ };
133
+
134
+ export { HireControlMap, HireControlMap as default };
135
+ //# sourceMappingURL=HireControlMap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HireControlMap.js","sources":["../../src/components/HireControlMap.js"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { useLoadScript } from '@react-google-maps/api';\n\nimport Grid from '~/components/modules/grid';\nimport Filter from '~/components/modules/filter';\nimport MapList from '~/components/modules/maps/map-list';\n\nimport { MapProvider } from '~/contexts/mapContext';\nimport { PlacesProvider } from '~/contexts/placesContext';\nimport { MapListProvider } from '~/contexts/mapListContext';\n\nimport { getMapConfig } from '~/services/configService';\nimport { setClientAuthKey } from '~/clientToken.js';\n\nimport '../styles/index.css';\n\nconst libraries = ['places'];\n\nexport const HireControlMap = ({\n\tclientToken,\n\tnavigateToDetails = null,\n\tnavigateToEasyApply = null,\n\tLink = null,\n\tlinkFormat = '/jobs/[slug]'\n}) => {\n\tconst [siteConfig, setSiteconfig] = useState(null);\n\n\tuseEffect(() => {\n\t\tsetClientAuthKey(clientToken);\n\t\tconst fetchSiteConfig = async () => {\n\t\t\ttry {\n\t\t\t\tconst configData = await getMapConfig(clientToken);\n\t\t\t\tsetSiteconfig(configData);\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error('Failed to fetch site configuration:', error);\n\t\t\t}\n\t\t};\n\n\t\tfetchSiteConfig();\n\t}, [clientToken]);\n\n\tconst { isLoaded } = useLoadScript({\n\t\tgoogleMapsApiKey: process.env.GOOGLE_MAPS_API_KEY,\n\t\tversion: 'quarterly',\n\t\tlibraries: libraries,\n\t});\n\n\treturn (\n\t\t<div>\n\t\t\t{isLoaded && siteConfig && (\n\t\t\t\t<HomeBody\n\t\t\t\t\tsiteConfig={siteConfig}\n\t\t\t\t\tnavigateToDetails={navigateToDetails}\n\t\t\t\t\tnavigateToEasyApply={navigateToEasyApply}\n\t\t\t\t\tLink={Link}\n\t\t\t\t\tlinkFormat={linkFormat}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nconst HomeBody = ({ siteConfig, navigateToDetails, navigateToEasyApply, Link, linkFormat }) => {\n\tconst resetFilters = false;\n\n\treturn (\n\t\t<MapListProvider\n\t\t\tsiteConfig={siteConfig}\n\t\t\tresetFilters={resetFilters}\n\t\t\tavigateToDetails={navigateToDetails}\n\t\t\tnavigateToEasyApply={navigateToEasyApply}\n\t\t\tLink={Link}\n\t\t\tlinkFormat={linkFormat}\n\t\t>\n\t\t\t<MapProvider resetFilters={resetFilters}>\n\t\t\t\t<PlacesProvider\n\t\t\t\t\tplaceMappings={siteConfig.pointsOfInterestConfig.placeMappings ?? {}}\n\t\t\t\t\tmarkerColors={{\n\t\t\t\t\t\tfillColor: siteConfig.colors.primary,\n\t\t\t\t\t\tstrokeColor: siteConfig.colors.primaryDark,\n\t\t\t\t\t\tselectedFillColor: siteConfig.colors.secondary,\n\t\t\t\t\t\tselectedStrokeColor: siteConfig.colors.secondaryDark,\n\t\t\t\t\t\tplaceMarkers: {\n\t\t\t\t\t\t\tcolors: siteConfig.pointsOfInterestConfig.placeMarkerColors,\n\t\t\t\t\t\t\tsize: siteConfig.pointsOfInterestConfig.placeMarkerSize,\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Grid\n\t\t\t\t\t\tas='section'\n\t\t\t\t\t\tid='job-search-interface'\n\t\t\t\t\t\tcolumns='md:hc-grid-cols-[1fr_2.5fr] lg:hc-grid-cols-[1fr_3.5fr]'\n\t\t\t\t\t\tgap='hc-gap-0'\n\t\t\t\t\t\tautoRows={false}\n\t\t\t\t\t\tclassName='hc-items-stretch hc-h-screen hc-min-h-[30rem] hc-divide-x hc-divide-uiAccent/20'\n\t\t\t\t\t>\n\t\t\t\t\t\t<Grid.Item className='hc-bg-gray-100'>\n\t\t\t\t\t\t\t<Filter showMap={siteConfig.showMap} className='hc-hidden md:hc-block' />\n\t\t\t\t\t\t</Grid.Item>\n\t\t\t\t\t\t<MapList\n\t\t\t\t\t\t\tmarkerConfigs={{\n\t\t\t\t\t\t\t\tfillColor: siteConfig.colors.primary,\n\t\t\t\t\t\t\t\tstrokeColor: siteConfig.colors.primaryDark,\n\t\t\t\t\t\t\t\tselectedFillColor: siteConfig.colors.secondary,\n\t\t\t\t\t\t\t\tselectedStrokeColor: siteConfig.colors.secondaryDark,\n\t\t\t\t\t\t\t\tplaceMarkers: {\n\t\t\t\t\t\t\t\t\tcolors: siteConfig.pointsOfInterestConfig.placeMarkerColors,\n\t\t\t\t\t\t\t\t\tsize: siteConfig.pointsOfInterestConfig.placeMarkerSize,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tshowMap={siteConfig.showMap}\n\t\t\t\t\t\t\tfieldsShown={siteConfig.fieldsShown}\n\t\t\t\t\t\t\tspecialFeatures={siteConfig.specialFeatures}\n\t\t\t\t\t\t\tfieldNames={siteConfig.fieldNames}\n\t\t\t\t\t\t\tplaceMappings={siteConfig.pointsOfInterestConfig.placeMappings ?? {}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Grid>\n\t\t\t\t</PlacesProvider>\n\t\t\t</MapProvider>\n\t\t</MapListProvider>\n\t);\n};\n\nexport default HireControlMap;\n"],"names":["libraries","HireControlMap","_ref","clientToken","_ref$navigateToDetail","navigateToDetails","_ref$navigateToEasyAp","navigateToEasyApply","_ref$Link","Link","_ref$linkFormat","linkFormat","_useState","useState","_useState2","_slicedToArray","siteConfig","setSiteconfig","useEffect","setClientAuthKey","fetchSiteConfig","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","configData","wrap","_callee$","_context","prev","next","getMapConfig","sent","t0","console","error","stop","apply","arguments","_useLoadScript","useLoadScript","googleMapsApiKey","version","isLoaded","React","createElement","HomeBody","_ref3","_siteConfig$pointsOfI","_siteConfig$pointsOfI2","resetFilters","MapListProvider","avigateToDetails","MapProvider","PlacesProvider","placeMappings","pointsOfInterestConfig","markerColors","fillColor","colors","primary","strokeColor","primaryDark","selectedFillColor","secondary","selectedStrokeColor","secondaryDark","placeMarkers","placeMarkerColors","size","placeMarkerSize","Grid","as","id","columns","gap","autoRows","className","Item","Filter","showMap","MapList","markerConfigs","fieldsShown","specialFeatures","fieldNames"],"mappings":";;;;;;;;;;;;AAgBA,IAAMA,SAAS,GAAG,CAAC,QAAQ,CAAC,CAAA;IAEfC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAMrB;AAAA,EAAA,IALLC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IAAAC,qBAAA,GAAAF,IAAA,CACXG,iBAAiB;AAAjBA,IAAAA,iBAAiB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,qBAAA;IAAAE,qBAAA,GAAAJ,IAAA,CACxBK,mBAAmB;AAAnBA,IAAAA,mBAAmB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,qBAAA;IAAAE,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ACC;IACFU,OAAO,EAAEjE,UAAU,CAACiE,OAAQ;IAC5BG,WAAW,EAAEpE,UAAU,CAACoE,WAAY;IACpCC,eAAe,EAAErE,UAAU,CAACqE,eAAgB;IAC5CC,UAAU,EAAEtE,UAAU,CAACsE,UAAW;AAClC9B,IAAAA,aAAa,EAAAN,CAAAA,sBAAA,GAAElC,UAAU,CAACyC,sBAAsB,CAACD,aAAa,MAAAN,IAAAA,IAAAA,sBAAA,KAAAA,KAAAA,CAAAA,GAAAA,sBAAA,GAAI,EAAC;AAAE,GACrE,CACI,CACS,CACJ,CACG,CAAC,CAAA;AAEpB,CAAC;;;;"}
1
+ {"version":3,"file":"HireControlMap.js","sources":["../../src/components/HireControlMap.js"],"sourcesContent":["import React, { useEffect, useState } from 'react';\r\nimport { useLoadScript } from '@react-google-maps/api';\r\n\r\nimport Grid from '~/components/modules/grid';\r\nimport Filter from '~/components/modules/filter';\r\nimport MapList from '~/components/modules/maps/map-list';\r\n\r\nimport { MapProvider } from '~/contexts/mapContext';\r\nimport { PlacesProvider } from '~/contexts/placesContext';\r\nimport { MapListProvider } from '~/contexts/mapListContext';\r\n\r\nimport { getMapConfig } from '~/services/configService';\r\nimport { setClientAuthKey } from '~/clientToken.js';\r\n\r\nimport '../styles/index.css';\r\n\r\nconst libraries = ['places'];\r\n\r\nexport const HireControlMap = ({\r\n\tclientToken,\r\n\tnavigateToDetails = null,\r\n\tnavigateToEasyApply = null,\r\n\tLink = null,\r\n\tlinkFormat = '/jobs/[slug]'\r\n}) => {\r\n\tconst [siteConfig, setSiteconfig] = useState(null);\r\n\r\n\tuseEffect(() => {\r\n\t\tsetClientAuthKey(clientToken);\r\n\t\tconst fetchSiteConfig = async () => {\r\n\t\t\ttry {\r\n\t\t\t\tconst configData = await getMapConfig(clientToken);\r\n\t\t\t\tsetSiteconfig(configData);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error('Failed to fetch site configuration:', error);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfetchSiteConfig();\r\n\t}, [clientToken]);\r\n\r\n\tconst { isLoaded } = useLoadScript({\r\n\t\tgoogleMapsApiKey: process.env.GOOGLE_MAPS_API_KEY,\r\n\t\tversion: 'quarterly',\r\n\t\tlibraries: libraries,\r\n\t});\r\n\r\n\treturn (\r\n\t\t<div>\r\n\t\t\t{isLoaded && siteConfig && (\r\n\t\t\t\t<HomeBody\r\n\t\t\t\t\tsiteConfig={siteConfig}\r\n\t\t\t\t\tnavigateToDetails={navigateToDetails}\r\n\t\t\t\t\tnavigateToEasyApply={navigateToEasyApply}\r\n\t\t\t\t\tLink={Link}\r\n\t\t\t\t\tlinkFormat={linkFormat}\r\n\t\t\t\t/>\r\n\t\t\t)}\r\n\t\t</div>\r\n\t);\r\n};\r\n\r\nconst HomeBody = ({ siteConfig, navigateToDetails, navigateToEasyApply, Link, linkFormat }) => {\r\n\tconst resetFilters = false;\r\n\r\n\treturn (\r\n\t\t<MapListProvider\r\n\t\t\tsiteConfig={siteConfig}\r\n\t\t\tresetFilters={resetFilters}\r\n\t\t\tavigateToDetails={navigateToDetails}\r\n\t\t\tnavigateToEasyApply={navigateToEasyApply}\r\n\t\t\tLink={Link}\r\n\t\t\tlinkFormat={linkFormat}\r\n\t\t>\r\n\t\t\t<MapProvider resetFilters={resetFilters}>\r\n\t\t\t\t<PlacesProvider\r\n\t\t\t\t\tplaceMappings={siteConfig.pointsOfInterestConfig.placeMappings ?? {}}\r\n\t\t\t\t\tmarkerColors={{\r\n\t\t\t\t\t\tfillColor: siteConfig.colors.primary,\r\n\t\t\t\t\t\tstrokeColor: siteConfig.colors.primaryDark,\r\n\t\t\t\t\t\tselectedFillColor: siteConfig.colors.secondary,\r\n\t\t\t\t\t\tselectedStrokeColor: siteConfig.colors.secondaryDark,\r\n\t\t\t\t\t\tplaceMarkers: {\r\n\t\t\t\t\t\t\tcolors: siteConfig.pointsOfInterestConfig.placeMarkerColors,\r\n\t\t\t\t\t\t\tsize: siteConfig.pointsOfInterestConfig.placeMarkerSize,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t}}\r\n\t\t\t\t>\r\n\t\t\t\t\t<Grid\r\n\t\t\t\t\t\tas='section'\r\n\t\t\t\t\t\tid='job-search-interface'\r\n\t\t\t\t\t\tcolumns='md:hc-grid-cols-[1fr_2.5fr] lg:hc-grid-cols-[1fr_3.5fr]'\r\n\t\t\t\t\t\tgap='hc-gap-0'\r\n\t\t\t\t\t\tautoRows={false}\r\n\t\t\t\t\t\tclassName='hc-items-stretch hc-h-screen hc-min-h-[30rem] hc-divide-x hc-divide-uiAccent/20'\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<Grid.Item className='hc-bg-gray-100'>\r\n\t\t\t\t\t\t\t<Filter showMap={siteConfig.showMap} className='hc-hidden md:hc-block' />\r\n\t\t\t\t\t\t</Grid.Item>\r\n\t\t\t\t\t\t<MapList\r\n\t\t\t\t\t\t\tmarkerConfigs={{\r\n\t\t\t\t\t\t\t\tfillColor: siteConfig.colors.primary,\r\n\t\t\t\t\t\t\t\tstrokeColor: siteConfig.colors.primaryDark,\r\n\t\t\t\t\t\t\t\tselectedFillColor: siteConfig.colors.secondary,\r\n\t\t\t\t\t\t\t\tselectedStrokeColor: siteConfig.colors.secondaryDark,\r\n\t\t\t\t\t\t\t\tplaceMarkers: {\r\n\t\t\t\t\t\t\t\t\tcolors: siteConfig.pointsOfInterestConfig.placeMarkerColors,\r\n\t\t\t\t\t\t\t\t\tsize: siteConfig.pointsOfInterestConfig.placeMarkerSize,\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tshowMap={siteConfig.showMap}\r\n\t\t\t\t\t\t\tfieldsShown={siteConfig.fieldsShown}\r\n\t\t\t\t\t\t\tspecialFeatures={siteConfig.specialFeatures}\r\n\t\t\t\t\t\t\tfieldNames={siteConfig.fieldNames}\r\n\t\t\t\t\t\t\tplaceMappings={siteConfig.pointsOfInterestConfig.placeMappings ?? {}}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t</Grid>\r\n\t\t\t\t</PlacesProvider>\r\n\t\t\t</MapProvider>\r\n\t\t</MapListProvider>\r\n\t);\r\n};\r\n\r\nexport default HireControlMap;\r\n"],"names":["libraries","HireControlMap","_ref","clientToken","_ref$navigateToDetail","navigateToDetails","_ref$navigateToEasyAp","navigateToEasyApply","_ref$Link","Link","_ref$linkFormat","linkFormat","_useState","useState","_useState2","_slicedToArray","siteConfig","setSiteconfig","useEffect","setClientAuthKey","fetchSiteConfig","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","configData","wrap","_callee$","_context","prev","next","getMapConfig","sent","t0","console","error","stop","apply","arguments","_useLoadScript","useLoadScript","googleMapsApiKey","version","isLoaded","React","createElement","HomeBody","_ref3","_siteConfig$pointsOfI","_siteConfig$pointsOfI2","resetFilters","MapListProvider","avigateToDetails","MapProvider","PlacesProvider","placeMappings","pointsOfInterestConfig","markerColors","fillColor","colors","primary","strokeColor","primaryDark","selectedFillColor","secondary","selectedStrokeColor","secondaryDark","placeMarkers","placeMarkerColors","size","placeMarkerSize","Grid","as","id","columns","gap","autoRows","className","Item","Filter","showMap","MapList","markerConfigs","fieldsShown","specialFeatures","fieldNames"],"mappings":";;;;;;;;;;;;AAgBA,IAAMA,SAAS,GAAG,CAAC,QAAQ,CAAC,CAAA;IAEfC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAMrB;AAAA,EAAA,IALLC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IAAAC,qBAAA,GAAAF,IAAA,CACXG,iBAAiB;AAAjBA,IAAAA,iBAAiB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,qBAAA;IAAAE,qBAAA,GAAAJ,IAAA,CACxBK,mBAAmB;AAAnBA,IAAAA,mBAAmB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,qBAAA;IAAAE,SAAA,GAAAN,IAAA,CAC1BO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AU,CAACiE,OAAQ;IAC5BG,WAAW,EAAEpE,UAAU,CAACoE,WAAY;IACpCC,eAAe,EAAErE,UAAU,CAACqE,eAAgB;IAC5CC,UAAU,EAAEtE,UAAU,CAACsE,UAAW;AAClC9B,IAAAA,aAAa,EAAAN,CAAAA,sBAAA,GAAElC,UAAU,CAACyC,sBAAsB,CAACD,aAAa,MAAAN,IAAAA,IAAAA,sBAAA,KAAAA,KAAAA,CAAAA,GAAAA,sBAAA,GAAI,EAAC;AAAE,GACrE,CACI,CACS,CACJ,CACG,CAAC,CAAA;AAEpB,CAAC;;;;"}
@@ -1,76 +1,76 @@
1
- import React from 'react';
2
- import Accordion from './default.js';
3
- import ListItem from '../maps/list/list-item/index.js';
4
- import CardItemExpand from '../maps/list/item-expand-card/index.js';
5
- import { useMap } from '../../../contexts/mapContext.js';
6
- import { useMapList } from '../../../contexts/mapListContext.js';
7
- import { setStorageObject } from '../../../util/localStorageUtil.js';
8
-
9
- var MapAccordionItem = function MapAccordionItem(_ref) {
10
- var item = _ref.item,
11
- itemRefs = _ref.itemRefs,
12
- itemExpandedContent = _ref.itemExpandedContent,
13
- fieldsShown = _ref.fieldsShown,
14
- showMap = _ref.showMap,
15
- hasListItemSelected = _ref.hasListItemSelected,
16
- specialFeatures = _ref.specialFeatures,
17
- isActive = _ref.isActive;
18
- var _useMapList = useMapList(),
19
- mapItems = _useMapList.mapItems,
20
- recruiters = _useMapList.recruiters,
21
- setMobileTab = _useMapList.setMobileTab,
22
- favorites = _useMapList.favorites,
23
- handleSettingFavorites = _useMapList.handleSettingFavorites;
24
- var _useMap = useMap(),
25
- selectItem = _useMap.selectItem;
26
- var setSelectedItemAndZoomMap = function setSelectedItemAndZoomMap(item) {
27
- if (isActive) {
28
- localStorage.removeItem("selectedListItem");
29
- mapItems.find(function (x) {
30
- return x.items.hasOwnProperty(item.id);
31
- }) || null;
32
- selectItem(null, null, 9, {
33
- lat: 39.8283,
34
- lng: -98.5795
35
- });
36
- } else {
37
- setStorageObject("selectedListItem", item);
38
- var location = mapItems.find(function (x) {
39
- return x.items.hasOwnProperty(item.id);
40
- }) || null;
41
- selectItem(item, location, 12, {
42
- lat: location === null || location === void 0 ? void 0 : location.latitude,
43
- lng: location === null || location === void 0 ? void 0 : location.longitude
44
- });
45
- }
46
- };
47
- return /*#__PURE__*/React.createElement(Accordion.Item, {
48
- key: item.id,
49
- id: item.id
50
- }, /*#__PURE__*/React.createElement(Accordion.Trigger.Blank, null, /*#__PURE__*/React.createElement(ListItem, {
51
- ref: function ref(el) {
52
- return itemRefs.current[item.id] = el;
53
- },
54
- id: item.id,
55
- key: item.id,
56
- item: item,
57
- fieldsShown: fieldsShown,
58
- onClick: function onClick() {
59
- return setSelectedItemAndZoomMap(item);
60
- },
61
- showMap: showMap,
62
- isActive: isActive,
63
- setMobileTab: setMobileTab,
64
- specialFeatures: specialFeatures,
65
- className: hasListItemSelected ? isActive ? "!hc-border-secondary hc-border hc-border-b-0" : "hc-opacity-85" : "",
66
- favorites: favorites,
67
- setFavorites: handleSettingFavorites
68
- })), isActive && /*#__PURE__*/React.createElement(Accordion.Content, {
69
- bodyClassName: "hc-px-2 hc-py-2 hc-pt-0 hc-bg-uiAccent/5 hc-border-secondary hc-border hc-border-t-0"
70
- }, /*#__PURE__*/React.createElement(CardItemExpand, {
71
- content: itemExpandedContent(item, recruiters)
72
- })));
73
- };
74
-
75
- export { MapAccordionItem as default };
76
- //# sourceMappingURL=MapAccordionItem.js.map
1
+ import React from 'react';
2
+ import Accordion from './default.js';
3
+ import ListItem from '../maps/list/list-item/index.js';
4
+ import CardItemExpand from '../maps/list/item-expand-card/index.js';
5
+ import { useMap } from '../../../contexts/mapContext.js';
6
+ import { useMapList } from '../../../contexts/mapListContext.js';
7
+ import { setStorageObject } from '../../../util/localStorageUtil.js';
8
+
9
+ var MapAccordionItem = function MapAccordionItem(_ref) {
10
+ var item = _ref.item,
11
+ itemRefs = _ref.itemRefs,
12
+ itemExpandedContent = _ref.itemExpandedContent,
13
+ fieldsShown = _ref.fieldsShown,
14
+ showMap = _ref.showMap,
15
+ hasListItemSelected = _ref.hasListItemSelected,
16
+ specialFeatures = _ref.specialFeatures,
17
+ isActive = _ref.isActive;
18
+ var _useMapList = useMapList(),
19
+ mapItems = _useMapList.mapItems,
20
+ recruiters = _useMapList.recruiters,
21
+ setMobileTab = _useMapList.setMobileTab,
22
+ favorites = _useMapList.favorites,
23
+ handleSettingFavorites = _useMapList.handleSettingFavorites;
24
+ var _useMap = useMap(),
25
+ selectItem = _useMap.selectItem;
26
+ var setSelectedItemAndZoomMap = function setSelectedItemAndZoomMap(item) {
27
+ if (isActive) {
28
+ localStorage.removeItem("selectedListItem");
29
+ mapItems.find(function (x) {
30
+ return x.items.hasOwnProperty(item.id);
31
+ }) || null;
32
+ selectItem(null, null, 9, {
33
+ lat: 39.8283,
34
+ lng: -98.5795
35
+ });
36
+ } else {
37
+ setStorageObject("selectedListItem", item);
38
+ var location = mapItems.find(function (x) {
39
+ return x.items.hasOwnProperty(item.id);
40
+ }) || null;
41
+ selectItem(item, location, 12, {
42
+ lat: location === null || location === void 0 ? void 0 : location.latitude,
43
+ lng: location === null || location === void 0 ? void 0 : location.longitude
44
+ });
45
+ }
46
+ };
47
+ return /*#__PURE__*/React.createElement(Accordion.Item, {
48
+ key: item.id,
49
+ id: item.id
50
+ }, /*#__PURE__*/React.createElement(Accordion.Trigger.Blank, null, /*#__PURE__*/React.createElement(ListItem, {
51
+ ref: function ref(el) {
52
+ return itemRefs.current[item.id] = el;
53
+ },
54
+ id: item.id,
55
+ key: item.id,
56
+ item: item,
57
+ fieldsShown: fieldsShown,
58
+ onClick: function onClick() {
59
+ return setSelectedItemAndZoomMap(item);
60
+ },
61
+ showMap: showMap,
62
+ isActive: isActive,
63
+ setMobileTab: setMobileTab,
64
+ specialFeatures: specialFeatures,
65
+ className: hasListItemSelected ? isActive ? "!hc-border-secondary hc-border hc-border-b-0" : "hc-opacity-85" : "",
66
+ favorites: favorites,
67
+ setFavorites: handleSettingFavorites
68
+ })), isActive && /*#__PURE__*/React.createElement(Accordion.Content, {
69
+ bodyClassName: "hc-px-2 hc-py-2 hc-pt-0 hc-bg-uiAccent/5 hc-border-secondary hc-border hc-border-t-0"
70
+ }, /*#__PURE__*/React.createElement(CardItemExpand, {
71
+ content: itemExpandedContent(item, recruiters)
72
+ })));
73
+ };
74
+
75
+ export { MapAccordionItem as default };
76
+ //# sourceMappingURL=MapAccordionItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MapAccordionItem.js","sources":["../../../../src/components/modules/accordions/MapAccordionItem.js"],"sourcesContent":["import React from 'react'\n\nimport Accordion from '~/components/modules/accordions/default';\nimport ListItem from '~/components/modules/maps/list/list-item';\nimport ItemExpandCard from '~/components/modules/maps/list/item-expand-card';\n\nimport { useMap } from '~/contexts/mapContext';\nimport { useMapList } from '~/contexts/mapListContext';\n\nimport { setStorageObject } from '~/util/localStorageUtil';\n\nconst MapAccordionItem = ({\n\titem,\n\titemRefs,\n\titemExpandedContent,\n\tfieldsShown,\n\tshowMap,\n\thasListItemSelected,\n\tspecialFeatures,\n\tisActive\n}) => {\n\tconst {\n\t\tmapItems,\n\t\trecruiters,\n\t\tsetMobileTab,\n\t\tfavorites,\n\t\thandleSettingFavorites\n\t} = useMapList();\n\tconst { selectItem } = useMap();\n\tconst setSelectedItemAndZoomMap = item => {\n\t\tif (isActive) {\n\t\t\tlocalStorage.removeItem(\"selectedListItem\");\n\t\t\tmapItems.find(x => x.items.hasOwnProperty(item.id)) || null;\n\t\t\tselectItem(null, null, 9, { lat: 39.8283, lng: -98.5795 });\n\t\t} else {\n\t\t\tsetStorageObject(\"selectedListItem\", item);\n\t\t\tlet location = mapItems.find(x => x.items.hasOwnProperty(item.id)) || null;\n\t\t\tselectItem(item, location, 12, {\n\t\t\t\tlat: location?.latitude,\n\t\t\t\tlng: location?.longitude\n\t\t\t});\n\t\t}\n\t};\n\treturn (\n\t\t<Accordion.Item key={item.id} id={item.id}>\n\t\t\t<Accordion.Trigger.Blank>\n\t\t\t\t<ListItem\n\t\t\t\t\tref={el => (itemRefs.current[item.id] = el)}\n\t\t\t\t\tid={item.id}\n\t\t\t\t\tkey={item.id}\n\t\t\t\t\titem={item}\n\t\t\t\t\tfieldsShown={fieldsShown}\n\t\t\t\t\tonClick={() => setSelectedItemAndZoomMap(item)}\n\t\t\t\t\tshowMap={showMap}\n\t\t\t\t\tisActive={isActive}\n\t\t\t\t\tsetMobileTab={setMobileTab}\n\t\t\t\t\tspecialFeatures={specialFeatures}\n\t\t\t\t\tclassName={hasListItemSelected ? isActive ? \"!hc-border-secondary hc-border hc-border-b-0\" : \"hc-opacity-85\" : \"\"}\n\t\t\t\t\tfavorites={favorites}\n\t\t\t\t\tsetFavorites={handleSettingFavorites}\n\t\t\t\t/>\n\t\t\t</Accordion.Trigger.Blank>\n\t\t\t{isActive &&\n\t\t\t\t<Accordion.Content bodyClassName=\"hc-px-2 hc-py-2 hc-pt-0 hc-bg-uiAccent/5 hc-border-secondary hc-border hc-border-t-0\">\n\t\t\t\t\t<ItemExpandCard content={itemExpandedContent(item, recruiters)} />\n\t\t\t\t</Accordion.Content>\n\t\t\t}\n\t\t</Accordion.Item>\n\t);\n};\n\nexport default MapAccordionItem;\n"],"names":["MapAccordionItem","_ref","item","itemRefs","itemExpandedContent","fieldsShown","showMap","hasListItemSelected","specialFeatures","isActive","_useMapList","useMapList","mapItems","recruiters","setMobileTab","favorites","handleSettingFavorites","_useMap","useMap","selectItem","setSelectedItemAndZoomMap","localStorage","removeItem","find","x","items","hasOwnProperty","id","lat","lng","setStorageObject","location","latitude","longitude","React","createElement","Accordion","Item","key","Trigger","Blank","ListItem","ref","el","current","onClick","className","setFavorites","Content","bodyClassName","ItemExpandCard","content"],"mappings":";;;;;;;;AAWA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAShB;AAAA,EAAA,IARLC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,QAAQ,GA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AO,EAAEA,OAAQ;AACjBG,IAAAA,QAAQ,EAAEA,QAAS;AACnBK,IAAAA,YAAY,EAAEA,YAAa;AAC3BN,IAAAA,eAAe,EAAEA,eAAgB;IACjCsC,SAAS,EAAEvC,mBAAmB,GAAGE,QAAQ,GAAG,8CAA8C,GAAG,eAAe,GAAG,EAAG;AAClHM,IAAAA,SAAS,EAAEA,SAAU;AACrBgC,IAAAA,YAAY,EAAE/B,sBAAAA;GACd,CACuB,CAAC,EACzBP,QAAQ,iBACRyB,KAAA,CAAAC,aAAA,CAACC,SAAS,CAACY,OAAO,EAAA;AAACC,IAAAA,aAAa,EAAC,sFAAA;AAAsF,GAAA,eACtHf,KAAA,CAAAC,aAAA,CAACe,cAAc,EAAA;AAACC,IAAAA,OAAO,EAAE/C,mBAAmB,CAACF,IAAI,EAAEW,UAAU,CAAA;GAAI,CAC/C,CAEL,CAAC,CAAA;AAEnB;;;;"}
1
+ {"version":3,"file":"MapAccordionItem.js","sources":["../../../../src/components/modules/accordions/MapAccordionItem.js"],"sourcesContent":["import React from 'react'\r\n\r\nimport Accordion from '~/components/modules/accordions/default';\r\nimport ListItem from '~/components/modules/maps/list/list-item';\r\nimport ItemExpandCard from '~/components/modules/maps/list/item-expand-card';\r\n\r\nimport { useMap } from '~/contexts/mapContext';\r\nimport { useMapList } from '~/contexts/mapListContext';\r\n\r\nimport { setStorageObject } from '~/util/localStorageUtil';\r\n\r\nconst MapAccordionItem = ({\r\n\titem,\r\n\titemRefs,\r\n\titemExpandedContent,\r\n\tfieldsShown,\r\n\tshowMap,\r\n\thasListItemSelected,\r\n\tspecialFeatures,\r\n\tisActive\r\n}) => {\r\n\tconst {\r\n\t\tmapItems,\r\n\t\trecruiters,\r\n\t\tsetMobileTab,\r\n\t\tfavorites,\r\n\t\thandleSettingFavorites\r\n\t} = useMapList();\r\n\tconst { selectItem } = useMap();\r\n\tconst setSelectedItemAndZoomMap = item => {\r\n\t\tif (isActive) {\r\n\t\t\tlocalStorage.removeItem(\"selectedListItem\");\r\n\t\t\tmapItems.find(x => x.items.hasOwnProperty(item.id)) || null;\r\n\t\t\tselectItem(null, null, 9, { lat: 39.8283, lng: -98.5795 });\r\n\t\t} else {\r\n\t\t\tsetStorageObject(\"selectedListItem\", item);\r\n\t\t\tlet location = mapItems.find(x => x.items.hasOwnProperty(item.id)) || null;\r\n\t\t\tselectItem(item, location, 12, {\r\n\t\t\t\tlat: location?.latitude,\r\n\t\t\t\tlng: location?.longitude\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\treturn (\r\n\t\t<Accordion.Item key={item.id} id={item.id}>\r\n\t\t\t<Accordion.Trigger.Blank>\r\n\t\t\t\t<ListItem\r\n\t\t\t\t\tref={el => (itemRefs.current[item.id] = el)}\r\n\t\t\t\t\tid={item.id}\r\n\t\t\t\t\tkey={item.id}\r\n\t\t\t\t\titem={item}\r\n\t\t\t\t\tfieldsShown={fieldsShown}\r\n\t\t\t\t\tonClick={() => setSelectedItemAndZoomMap(item)}\r\n\t\t\t\t\tshowMap={showMap}\r\n\t\t\t\t\tisActive={isActive}\r\n\t\t\t\t\tsetMobileTab={setMobileTab}\r\n\t\t\t\t\tspecialFeatures={specialFeatures}\r\n\t\t\t\t\tclassName={hasListItemSelected ? isActive ? \"!hc-border-secondary hc-border hc-border-b-0\" : \"hc-opacity-85\" : \"\"}\r\n\t\t\t\t\tfavorites={favorites}\r\n\t\t\t\t\tsetFavorites={handleSettingFavorites}\r\n\t\t\t\t/>\r\n\t\t\t</Accordion.Trigger.Blank>\r\n\t\t\t{isActive &&\r\n\t\t\t\t<Accordion.Content bodyClassName=\"hc-px-2 hc-py-2 hc-pt-0 hc-bg-uiAccent/5 hc-border-secondary hc-border hc-border-t-0\">\r\n\t\t\t\t\t<ItemExpandCard content={itemExpandedContent(item, recruiters)} />\r\n\t\t\t\t</Accordion.Content>\r\n\t\t\t}\r\n\t\t</Accordion.Item>\r\n\t);\r\n};\r\n\r\nexport default MapAccordionItem;\r\n"],"names":["MapAccordionItem","_ref","item","itemRefs","itemExpandedContent","fieldsShown","showMap","hasListItemSelected","specialFeatures","isActive","_useMapList","useMapList","mapItems","recruiters","setMobileTab","favorites","handleSettingFavorites","_useMap","useMap","selectItem","setSelectedItemAndZoomMap","localStorage","removeItem","find","x","items","hasOwnProperty","id","lat","lng","setStorageObject","location","latitude","longitude","React","createElement","Accordion","Item","key","Trigger","Blank","ListItem","ref","el","current","onClick","className","setFavorites","Content","bodyClassName","ItemExpandCard","content"],"mappings":";;;;;;;;AAWA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAShB;AAAA,EAAA,IARLC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,mBAAmB,GAAAH,IAAA,CAAnBG,mBAAmB;IACnBC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IACXC,OAAO,GAAAL,IAAA,CAAPK,OAAO;IACPC,mBAAmB,GAAAN,IAAA,CAAnBM,mBAAmB;IACnBC,eAAe,GAAAP,IAAA,CAAfO,eAAe;IACfC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ,CAAA;AAER,EAAA,IAAAC,WAAA,GAMIC,UAAU,EAAE;IALfC,QAAQ,GAAAF,WAAA,CAARE,QAAQ;IACRC,UAAU,GAAAH,WAAA,CAAVG,UAAU;IACVC,YAAY,GAAAJ,WAAA,CAAZI,YAAY;IACZC,SAAS,GAAAL,WAAA,CAATK,SAAS;IACTC,sBAAsB,GAAAN,WAAA,CAAtBM,sBAAsB,CAAA;AAEvB,EAAA,IAAAC,OAAA,GAAuBC,MAAM,EAAE;IAAvBC,UAAU,GAAAF,OAAA,CAAVE,UAAU,CAAA;AAClB,EAAA,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAGlB,IAAI,EAAI;AACzC,IAAA,IAAIO,QAAQ,EAAE;AACbY,MAAAA,YAAY,CAACC,UAAU,CAAC,kBAAkB,CAAC,CAAA;A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