@abcagency/hc-ui-components 1.7.5 → 1.7.6
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 +95 -165
- package/dist/components/HireControlMap.js.map +1 -1
- package/dist/components/modules/accordions/default.js +1 -1
- package/dist/components/modules/buttons/button-group-apply.js +1 -1
- package/dist/components/modules/buttons/default.js +1 -1
- package/dist/components/modules/cards/default.js +1 -1
- package/dist/components/modules/filter/sort.js +1 -1
- package/dist/components/modules/grid.js +1 -1
- package/dist/components/modules/list/header.js +1 -1
- package/dist/components/modules/list/item-expand-card/index.js +1 -1
- package/dist/contexts/mapListContext.js +33 -38
- package/dist/contexts/mapListContext.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/util/algoliaSearchUtil.js +1 -1
- package/dist/util/filterUtil.js +1 -1
- package/dist/util/twMerge.js +1 -1
- package/package.json +1 -1
- package/src/apis/hcApi.ts +9 -2
- package/src/components/HireControlMap.js +19 -54
- package/src/contexts/mapListContext.tsx +34 -37
- package/src/index.js +1 -0
- package/dist/apis/hcApi.js +0 -91
- package/dist/apis/hcApi.js.map +0 -1
- package/dist/clientToken.js +0 -10
- package/dist/clientToken.js.map +0 -1
- package/dist/components/modules/skeleton/map-skeleton.js +0 -50
- package/dist/components/modules/skeleton/map-skeleton.js.map +0 -1
- package/dist/node_modules/@algolia/client-common/dist/common.js +0 -541
- package/dist/node_modules/@algolia/client-common/dist/common.js.map +0 -1
- package/dist/node_modules/@algolia/requester-browser-xhr/dist/requester.xhr.js +0 -4
- package/dist/node_modules/@algolia/requester-browser-xhr/dist/requester.xhr.js.map +0 -1
- package/dist/node_modules/@algolia/requester-node-http/dist/requester.http.js +0 -82
- package/dist/node_modules/@algolia/requester-node-http/dist/requester.http.js.map +0 -1
- package/dist/node_modules/algoliasearch/dist/lite/builds/browser.js +0 -272
- package/dist/node_modules/algoliasearch/dist/lite/builds/browser.js.map +0 -1
- package/dist/node_modules/algoliasearch/dist/lite/builds/node.js +0 -269
- package/dist/node_modules/algoliasearch/dist/lite/builds/node.js.map +0 -1
- package/dist/node_modules/fuse.js/dist/fuse.js +0 -1779
- package/dist/node_modules/fuse.js/dist/fuse.js.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2580
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
- package/dist/services/configService.js +0 -15
- package/dist/services/configService.js.map +0 -1
- package/dist/services/listingAggregatorService.js +0 -41
- package/dist/services/listingAggregatorService.js.map +0 -1
- package/dist/services/listingEntityService.js +0 -16
- package/dist/services/listingEntityService.js.map +0 -1
- package/dist/services/listingService.js +0 -15
- package/dist/services/listingService.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { slicedToArray as _slicedToArray, extends as _extends, objectWithoutProperties as _objectWithoutProperties
|
|
2
|
-
import React, { useState
|
|
1
|
+
import { slicedToArray as _slicedToArray, extends as _extends, objectWithoutProperties as _objectWithoutProperties } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
3
|
import { useLoadScript } from '@react-google-maps/api';
|
|
4
4
|
import Grid from './modules/grid.js';
|
|
5
5
|
import FilterContainer from './containers/filter/filter-container.js';
|
|
@@ -9,8 +9,6 @@ import { PlacesProvider } from '../contexts/placesContext.js';
|
|
|
9
9
|
import { MapListProvider } from '../contexts/mapListContext.js';
|
|
10
10
|
import { TrackEventProvider } from '../contexts/trackEventContext.js';
|
|
11
11
|
import { ThemeProvider } from '../contexts/themeContext.js';
|
|
12
|
-
import { getMapConfig } from '../services/configService.js';
|
|
13
|
-
import { setClientAuthKey } from '../clientToken.js';
|
|
14
12
|
import { initializeAlgoliaSearch } from '../util/algoliaSearchUtil.js';
|
|
15
13
|
|
|
16
14
|
var _excluded = ["children", "siteConfig", "trackEvent", "googleMapsApiKey"];
|
|
@@ -18,77 +16,16 @@ var _excluded = ["children", "siteConfig", "trackEvent", "googleMapsApiKey"];
|
|
|
18
16
|
// Libraries for Google Maps
|
|
19
17
|
var LIBRARIES = ['places'];
|
|
20
18
|
|
|
21
|
-
//
|
|
22
|
-
function useSiteConfig(clientToken) {
|
|
23
|
-
var siteConfiguration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
24
|
-
var _useState = useState(siteConfiguration),
|
|
25
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
-
siteConfig = _useState2[0],
|
|
27
|
-
setSiteConfig = _useState2[1];
|
|
28
|
-
var _useState3 = useState(!siteConfiguration),
|
|
29
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
30
|
-
isLoading = _useState4[0],
|
|
31
|
-
setIsLoading = _useState4[1]; // If config provided, not loading
|
|
32
|
-
var _useState5 = useState(null),
|
|
33
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
34
|
-
error = _useState6[0],
|
|
35
|
-
setError = _useState6[1];
|
|
36
|
-
useEffect(function () {
|
|
37
|
-
var fetchSiteConfig = /*#__PURE__*/function () {
|
|
38
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
39
|
-
var configData;
|
|
40
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
41
|
-
while (1) switch (_context.prev = _context.next) {
|
|
42
|
-
case 0:
|
|
43
|
-
_context.prev = 0;
|
|
44
|
-
setClientAuthKey(clientToken);
|
|
45
|
-
_context.next = 4;
|
|
46
|
-
return getMapConfig();
|
|
47
|
-
case 4:
|
|
48
|
-
configData = _context.sent;
|
|
49
|
-
setSiteConfig(configData);
|
|
50
|
-
_context.next = 12;
|
|
51
|
-
break;
|
|
52
|
-
case 8:
|
|
53
|
-
_context.prev = 8;
|
|
54
|
-
_context.t0 = _context["catch"](0);
|
|
55
|
-
console.error('Failed to fetch site configuration:', _context.t0);
|
|
56
|
-
setError(_context.t0);
|
|
57
|
-
case 12:
|
|
58
|
-
_context.prev = 12;
|
|
59
|
-
setIsLoading(false);
|
|
60
|
-
return _context.finish(12);
|
|
61
|
-
case 15:
|
|
62
|
-
case "end":
|
|
63
|
-
return _context.stop();
|
|
64
|
-
}
|
|
65
|
-
}, _callee, null, [[0, 8, 12, 15]]);
|
|
66
|
-
}));
|
|
67
|
-
return function fetchSiteConfig() {
|
|
68
|
-
return _ref.apply(this, arguments);
|
|
69
|
-
};
|
|
70
|
-
}();
|
|
71
|
-
if (!siteConfig) {
|
|
72
|
-
fetchSiteConfig();
|
|
73
|
-
} else {
|
|
74
|
-
setIsLoading(false); // Config already provided
|
|
75
|
-
}
|
|
76
|
-
}, [clientToken, siteConfig]);
|
|
77
|
-
return {
|
|
78
|
-
siteConfig: siteConfig,
|
|
79
|
-
isLoading: isLoading,
|
|
80
|
-
error: error
|
|
81
|
-
};
|
|
82
|
-
}
|
|
19
|
+
// Since all data is now passed in statically, no need to fetch config
|
|
83
20
|
|
|
84
21
|
// Component to handle all context providers
|
|
85
|
-
var ContextProviders = function ContextProviders(
|
|
22
|
+
var ContextProviders = function ContextProviders(_ref) {
|
|
86
23
|
var _siteConfig$pointsOfI;
|
|
87
|
-
var children =
|
|
88
|
-
siteConfig =
|
|
89
|
-
trackEvent =
|
|
90
|
-
googleMapsApiKey =
|
|
91
|
-
mapListProps = _objectWithoutProperties(
|
|
24
|
+
var children = _ref.children,
|
|
25
|
+
siteConfig = _ref.siteConfig,
|
|
26
|
+
trackEvent = _ref.trackEvent,
|
|
27
|
+
googleMapsApiKey = _ref.googleMapsApiKey,
|
|
28
|
+
mapListProps = _objectWithoutProperties(_ref, _excluded);
|
|
92
29
|
return /*#__PURE__*/React.createElement(TrackEventProvider, {
|
|
93
30
|
trackEvent: trackEvent
|
|
94
31
|
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
@@ -124,71 +61,71 @@ var ContextProviders = function ContextProviders(_ref2) {
|
|
|
124
61
|
|
|
125
62
|
// Main component
|
|
126
63
|
//
|
|
127
|
-
var HireControlMap = function HireControlMap(
|
|
128
|
-
var
|
|
129
|
-
|
|
130
|
-
googleMapsApiKey =
|
|
131
|
-
|
|
132
|
-
containerStyle =
|
|
64
|
+
var HireControlMap = function HireControlMap(_ref2) {
|
|
65
|
+
var _siteConfiguration$po;
|
|
66
|
+
_ref2.clientToken;
|
|
67
|
+
var googleMapsApiKey = _ref2.googleMapsApiKey,
|
|
68
|
+
_ref2$containerStyle = _ref2.containerStyle,
|
|
69
|
+
containerStyle = _ref2$containerStyle === void 0 ? {
|
|
133
70
|
height: '100vh'
|
|
134
|
-
} :
|
|
135
|
-
|
|
136
|
-
navigateToDetails =
|
|
137
|
-
|
|
138
|
-
navigateToEasyApply =
|
|
139
|
-
|
|
140
|
-
handleUrlUpdate =
|
|
141
|
-
|
|
142
|
-
Link =
|
|
143
|
-
|
|
144
|
-
linkFormat =
|
|
145
|
-
|
|
146
|
-
easyApplyUrl =
|
|
147
|
-
|
|
148
|
-
easyApplyText =
|
|
149
|
-
|
|
150
|
-
isIframe =
|
|
151
|
-
|
|
152
|
-
hideMap =
|
|
153
|
-
|
|
154
|
-
hideFilters =
|
|
155
|
-
|
|
156
|
-
noEntities =
|
|
157
|
-
|
|
158
|
-
trackEvent =
|
|
71
|
+
} : _ref2$containerStyle,
|
|
72
|
+
_ref2$navigateToDetai = _ref2.navigateToDetails,
|
|
73
|
+
navigateToDetails = _ref2$navigateToDetai === void 0 ? null : _ref2$navigateToDetai,
|
|
74
|
+
_ref2$navigateToEasyA = _ref2.navigateToEasyApply,
|
|
75
|
+
navigateToEasyApply = _ref2$navigateToEasyA === void 0 ? null : _ref2$navigateToEasyA,
|
|
76
|
+
_ref2$handleUrlUpdate = _ref2.handleUrlUpdate,
|
|
77
|
+
handleUrlUpdate = _ref2$handleUrlUpdate === void 0 ? null : _ref2$handleUrlUpdate,
|
|
78
|
+
_ref2$Link = _ref2.Link,
|
|
79
|
+
Link = _ref2$Link === void 0 ? null : _ref2$Link,
|
|
80
|
+
_ref2$linkFormat = _ref2.linkFormat,
|
|
81
|
+
linkFormat = _ref2$linkFormat === void 0 ? '/jobs/[slug]' : _ref2$linkFormat,
|
|
82
|
+
_ref2$easyApplyUrl = _ref2.easyApplyUrl,
|
|
83
|
+
easyApplyUrl = _ref2$easyApplyUrl === void 0 ? null : _ref2$easyApplyUrl,
|
|
84
|
+
_ref2$easyApplyText = _ref2.easyApplyText,
|
|
85
|
+
easyApplyText = _ref2$easyApplyText === void 0 ? 'Easy Apply' : _ref2$easyApplyText,
|
|
86
|
+
_ref2$isIframe = _ref2.isIframe,
|
|
87
|
+
isIframe = _ref2$isIframe === void 0 ? false : _ref2$isIframe,
|
|
88
|
+
_ref2$hideMap = _ref2.hideMap,
|
|
89
|
+
hideMap = _ref2$hideMap === void 0 ? false : _ref2$hideMap,
|
|
90
|
+
_ref2$hideFilters = _ref2.hideFilters,
|
|
91
|
+
hideFilters = _ref2$hideFilters === void 0 ? false : _ref2$hideFilters,
|
|
92
|
+
_ref2$noEntities = _ref2.noEntities,
|
|
93
|
+
noEntities = _ref2$noEntities === void 0 ? false : _ref2$noEntities,
|
|
94
|
+
_ref2$trackEvent = _ref2.trackEvent,
|
|
95
|
+
trackEvent = _ref2$trackEvent === void 0 ? function (eventType, eventObj) {
|
|
159
96
|
console.log(eventType);
|
|
160
97
|
console.log(eventObj);
|
|
161
|
-
} :
|
|
162
|
-
|
|
163
|
-
listings =
|
|
164
|
-
|
|
165
|
-
entities =
|
|
166
|
-
|
|
167
|
-
getListingEntitiesCallback =
|
|
168
|
-
|
|
169
|
-
defaultFilters =
|
|
170
|
-
|
|
171
|
-
hiddenFilters =
|
|
172
|
-
|
|
173
|
-
setFiltersUrl =
|
|
174
|
-
|
|
175
|
-
ExpandListComponent =
|
|
176
|
-
|
|
177
|
-
additionalMapMarkers =
|
|
178
|
-
|
|
179
|
-
defaultZoomOverride =
|
|
180
|
-
|
|
181
|
-
siteConfiguration =
|
|
182
|
-
|
|
183
|
-
localStorageKey =
|
|
184
|
-
|
|
185
|
-
algoliaAppId =
|
|
186
|
-
|
|
187
|
-
algoliaApiKey =
|
|
188
|
-
|
|
189
|
-
algoliaIndexName =
|
|
190
|
-
|
|
191
|
-
filterConfig =
|
|
98
|
+
} : _ref2$trackEvent,
|
|
99
|
+
_ref2$listings = _ref2.listings,
|
|
100
|
+
listings = _ref2$listings === void 0 ? [] : _ref2$listings,
|
|
101
|
+
_ref2$entities = _ref2.entities,
|
|
102
|
+
entities = _ref2$entities === void 0 ? [] : _ref2$entities,
|
|
103
|
+
_ref2$getListingEntit = _ref2.getListingEntitiesCallback,
|
|
104
|
+
getListingEntitiesCallback = _ref2$getListingEntit === void 0 ? null : _ref2$getListingEntit,
|
|
105
|
+
_ref2$defaultFilters = _ref2.defaultFilters,
|
|
106
|
+
defaultFilters = _ref2$defaultFilters === void 0 ? null : _ref2$defaultFilters,
|
|
107
|
+
_ref2$hiddenFilters = _ref2.hiddenFilters,
|
|
108
|
+
hiddenFilters = _ref2$hiddenFilters === void 0 ? null : _ref2$hiddenFilters,
|
|
109
|
+
_ref2$setFiltersUrl = _ref2.setFiltersUrl,
|
|
110
|
+
setFiltersUrl = _ref2$setFiltersUrl === void 0 ? null : _ref2$setFiltersUrl,
|
|
111
|
+
_ref2$ExpandListCompo = _ref2.ExpandListComponent,
|
|
112
|
+
ExpandListComponent = _ref2$ExpandListCompo === void 0 ? null : _ref2$ExpandListCompo,
|
|
113
|
+
_ref2$additionalMapMa = _ref2.additionalMapMarkers,
|
|
114
|
+
additionalMapMarkers = _ref2$additionalMapMa === void 0 ? [] : _ref2$additionalMapMa,
|
|
115
|
+
_ref2$defaultZoomOver = _ref2.defaultZoomOverride,
|
|
116
|
+
defaultZoomOverride = _ref2$defaultZoomOver === void 0 ? null : _ref2$defaultZoomOver,
|
|
117
|
+
_ref2$siteConfigurati = _ref2.siteConfiguration,
|
|
118
|
+
siteConfiguration = _ref2$siteConfigurati === void 0 ? null : _ref2$siteConfigurati,
|
|
119
|
+
_ref2$localStorageKey = _ref2.localStorageKey,
|
|
120
|
+
localStorageKey = _ref2$localStorageKey === void 0 ? 'defaultKey.' : _ref2$localStorageKey,
|
|
121
|
+
_ref2$algoliaAppId = _ref2.algoliaAppId,
|
|
122
|
+
algoliaAppId = _ref2$algoliaAppId === void 0 ? null : _ref2$algoliaAppId,
|
|
123
|
+
_ref2$algoliaApiKey = _ref2.algoliaApiKey,
|
|
124
|
+
algoliaApiKey = _ref2$algoliaApiKey === void 0 ? null : _ref2$algoliaApiKey,
|
|
125
|
+
_ref2$algoliaIndexNam = _ref2.algoliaIndexName,
|
|
126
|
+
algoliaIndexName = _ref2$algoliaIndexNam === void 0 ? null : _ref2$algoliaIndexNam,
|
|
127
|
+
_ref2$filterConfig = _ref2.filterConfig,
|
|
128
|
+
filterConfig = _ref2$filterConfig === void 0 ? {
|
|
192
129
|
hideZeroResults: false,
|
|
193
130
|
// Hide filter options with 0 results
|
|
194
131
|
dynamicCounts: true,
|
|
@@ -226,14 +163,9 @@ var HireControlMap = function HireControlMap(_ref3) {
|
|
|
226
163
|
// Show jobs button
|
|
227
164
|
filterFooter: '' // Footer with buttons
|
|
228
165
|
}
|
|
229
|
-
} :
|
|
230
|
-
// Load site configuration (non-blocking)
|
|
231
|
-
var _useSiteConfig = useSiteConfig(clientToken, siteConfiguration),
|
|
232
|
-
siteConfig = _useSiteConfig.siteConfig,
|
|
233
|
-
error = _useSiteConfig.error;
|
|
234
|
-
|
|
166
|
+
} : _ref2$filterConfig;
|
|
235
167
|
// Initialize Algolia immediately if credentials are provided
|
|
236
|
-
var
|
|
168
|
+
var _useState = useState(function () {
|
|
237
169
|
if (algoliaAppId && algoliaApiKey && algoliaIndexName) {
|
|
238
170
|
var initialized = initializeAlgoliaSearch(algoliaAppId, algoliaApiKey, algoliaIndexName);
|
|
239
171
|
if (initialized) {
|
|
@@ -243,9 +175,9 @@ var HireControlMap = function HireControlMap(_ref3) {
|
|
|
243
175
|
}
|
|
244
176
|
return false;
|
|
245
177
|
}),
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
178
|
+
_useState2 = _slicedToArray(_useState, 2);
|
|
179
|
+
_useState2[0];
|
|
180
|
+
_useState2[1];
|
|
249
181
|
|
|
250
182
|
// Load Google Maps (non-blocking - map component will handle this)
|
|
251
183
|
var _useLoadScript = useLoadScript({
|
|
@@ -269,15 +201,13 @@ var HireControlMap = function HireControlMap(_ref3) {
|
|
|
269
201
|
className: "hc-p-4"
|
|
270
202
|
}, "Error loading Google Maps");
|
|
271
203
|
}
|
|
272
|
-
|
|
204
|
+
|
|
205
|
+
// siteConfiguration is now required - all data passed in statically
|
|
206
|
+
if (!siteConfiguration) {
|
|
207
|
+
console.error('Site configuration is required');
|
|
273
208
|
return /*#__PURE__*/React.createElement("div", {
|
|
274
209
|
className: "hc-p-4"
|
|
275
|
-
}, "
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// Render immediately even if config is loading - use defaults or provided siteConfiguration
|
|
279
|
-
if (!siteConfig) {
|
|
280
|
-
return null; // Brief flash, config should load very quickly
|
|
210
|
+
}, "Site configuration is required");
|
|
281
211
|
}
|
|
282
212
|
|
|
283
213
|
// Prepare props for MapListProvider
|
|
@@ -291,7 +221,7 @@ var HireControlMap = function HireControlMap(_ref3) {
|
|
|
291
221
|
easyApplyText: easyApplyText,
|
|
292
222
|
listings: listings,
|
|
293
223
|
entities: entities,
|
|
294
|
-
siteConfig:
|
|
224
|
+
siteConfig: siteConfiguration,
|
|
295
225
|
getListingEntitiesCallback: getListingEntitiesCallback,
|
|
296
226
|
setFiltersUrl: setFiltersUrl,
|
|
297
227
|
hiddenFilters: hiddenFilters,
|
|
@@ -311,24 +241,24 @@ var HireControlMap = function HireControlMap(_ref3) {
|
|
|
311
241
|
};
|
|
312
242
|
|
|
313
243
|
// Calculate effective showMap value
|
|
314
|
-
var effectiveShowMap = hideMap ? false :
|
|
244
|
+
var effectiveShowMap = hideMap ? false : siteConfiguration.showMap;
|
|
315
245
|
|
|
316
246
|
// Prepare marker configuration
|
|
317
247
|
var markerConfigs = {
|
|
318
|
-
fillColor:
|
|
319
|
-
strokeColor:
|
|
320
|
-
selectedFillColor:
|
|
321
|
-
selectedStrokeColor:
|
|
248
|
+
fillColor: siteConfiguration.colors.primary,
|
|
249
|
+
strokeColor: siteConfiguration.colors.primaryDark,
|
|
250
|
+
selectedFillColor: siteConfiguration.colors.secondary,
|
|
251
|
+
selectedStrokeColor: siteConfiguration.colors.secondaryDark,
|
|
322
252
|
placeMarkers: {
|
|
323
|
-
colors:
|
|
324
|
-
size:
|
|
253
|
+
colors: siteConfiguration.pointsOfInterestConfig.placeMarkerColors,
|
|
254
|
+
size: siteConfiguration.pointsOfInterestConfig.placeMarkerSize
|
|
325
255
|
}
|
|
326
256
|
};
|
|
327
257
|
|
|
328
258
|
// Render immediately - individual components handle their own loading
|
|
329
259
|
// Only Google Maps components will wait for isMapsLoaded
|
|
330
260
|
return /*#__PURE__*/React.createElement(ContextProviders, _extends({
|
|
331
|
-
siteConfig:
|
|
261
|
+
siteConfig: siteConfiguration,
|
|
332
262
|
trackEvent: trackEvent,
|
|
333
263
|
googleMapsApiKey: googleMapsApiKey || process.env.GOOGLE_MAPS_API_KEY
|
|
334
264
|
}, mapListProps), /*#__PURE__*/React.createElement(Grid, {
|
|
@@ -346,12 +276,12 @@ var HireControlMap = function HireControlMap(_ref3) {
|
|
|
346
276
|
className: "hc-hidden md:hc-block"
|
|
347
277
|
})), /*#__PURE__*/React.createElement(MapListContainer, {
|
|
348
278
|
containerStyle: containerStyle,
|
|
349
|
-
mapPosition:
|
|
279
|
+
mapPosition: siteConfiguration.mapPosition,
|
|
350
280
|
showMap: effectiveShowMap,
|
|
351
|
-
fieldsShown:
|
|
352
|
-
specialFeatures:
|
|
353
|
-
fieldNames:
|
|
354
|
-
placeMappings: (
|
|
281
|
+
fieldsShown: siteConfiguration.fieldsShown,
|
|
282
|
+
specialFeatures: siteConfiguration.specialFeatures,
|
|
283
|
+
fieldNames: siteConfiguration.fieldNames,
|
|
284
|
+
placeMappings: (_siteConfiguration$po = siteConfiguration.pointsOfInterestConfig.placeMappings) !== null && _siteConfiguration$po !== void 0 ? _siteConfiguration$po : {},
|
|
355
285
|
markerConfigs: markerConfigs
|
|
356
286
|
})));
|
|
357
287
|
};
|
|
@@ -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/containers/filter/filter-container';\nimport MapList from '~/components/containers/maps/map-list-container';\n\n// Context imports\nimport { MapProvider } from '~/contexts/mapContext';\nimport { PlacesProvider } from '~/contexts/placesContext';\nimport { MapListProvider } from '~/contexts/mapListContext';\nimport { TrackEventProvider } from '~/contexts/trackEventContext';\nimport { ThemeProvider } from '~/contexts/themeContext';\n\nimport { getMapConfig } from '~/services/configService';\nimport { setClientAuthKey } from '~/clientToken.js';\nimport { initializeAlgoliaSearch } from '~/util/algoliaSearchUtil';\n\n// Libraries for Google Maps\nconst LIBRARIES = ['places'];\n\n// Custom hook to fetch site configuration\nfunction useSiteConfig(clientToken, siteConfiguration = null) {\n\tconst [siteConfig, setSiteConfig] = useState(siteConfiguration);\n\tconst [isLoading, setIsLoading] = useState(!siteConfiguration); // If config provided, not loading\n\tconst [error, setError] = useState(null);\n\n\tuseEffect(() => {\n\t\tconst fetchSiteConfig = async () => {\n\t\t\ttry {\n\t\t\t\tsetClientAuthKey(clientToken);\n\t\t\t\tconst configData = await getMapConfig(clientToken);\n\t\t\t\tsetSiteConfig(configData);\n\t\t\t} catch (err) {\n\t\t\t\tconsole.error('Failed to fetch site configuration:', err);\n\t\t\t\tsetError(err);\n\t\t\t} finally {\n\t\t\t\tsetIsLoading(false);\n\t\t\t}\n\t\t};\n\t\tif(!siteConfig){\n\t\t\tfetchSiteConfig();\n\t\t} else {\n\t\t\tsetIsLoading(false); // Config already provided\n\t\t}\n\t}, [clientToken, siteConfig]);\n\n\treturn { siteConfig, isLoading, error };\n}\n\n// Component to handle all context providers\nconst ContextProviders = ({ children, siteConfig, trackEvent, googleMapsApiKey, ...mapListProps }) => { return(\n\t<TrackEventProvider trackEvent={trackEvent}>\n\t\t<ThemeProvider\n\t\t\tuiText={siteConfig.colors.uiText}\n\t\t\tuiAccent={siteConfig.colors.uiAccent}\n\t\t\tprimary={siteConfig.colors.primary}\n\t\t\tprimaryDark={siteConfig.colors.primaryDark}\n\t\t\tsecondary={siteConfig.colors.secondary}\n\t\t\tsecondaryDark={siteConfig.colors.secondaryDark}\n\t\t>\n\t\t\t<MapListProvider siteConfig={siteConfig} googleMapsApiKey={googleMapsApiKey} {...mapListProps}>\n\t\t\t\t<MapProvider resetFilters={mapListProps.resetFilters} defaultZoomOverride={mapListProps.defaultZoomOverride} localStorageKey={mapListProps.localStorageKey}>\n\t\t\t\t\t<PlacesProvider\n\t\t\t\t\t\tplaceMappings={siteConfig.pointsOfInterestConfig.placeMappings ?? {}}\n\t\t\t\t\t\tadditionalMapMarkers={mapListProps.additionalMapMarkers}\n\t\t\t\t\t\tgoogleMapsApiKey={googleMapsApiKey}\n\t\t\t\t\t\tmarkerColors={{\n\t\t\t\t\t\t\tfillColor: siteConfig.colors.primary,\n\t\t\t\t\t\t\tstrokeColor: siteConfig.colors.primaryDark,\n\t\t\t\t\t\t\tselectedFillColor: siteConfig.colors.secondary,\n\t\t\t\t\t\t\tselectedStrokeColor: siteConfig.colors.secondaryDark,\n\t\t\t\t\t\t\tplaceMarkers: {\n\t\t\t\t\t\t\t\tcolors: siteConfig.pointsOfInterestConfig.placeMarkerColors,\n\t\t\t\t\t\t\t\tsize: siteConfig.pointsOfInterestConfig.placeMarkerSize\n\t\t\t\t\t\t\t}\n\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</PlacesProvider>\n\t\t\t\t</MapProvider>\n\t\t\t</MapListProvider>\n\t\t</ThemeProvider>\n\t</TrackEventProvider>\n);};\n\n// Main component\n//\nexport const HireControlMap = ({\n\tclientToken,\n\tgoogleMapsApiKey, // Required: Google Maps API key from Next.js\n\tcontainerStyle = { height: '100vh' },\n\tnavigateToDetails = null,\n\tnavigateToEasyApply = null,\n\thandleUrlUpdate = null,\n\tLink = null,\n\tlinkFormat = '/jobs/[slug]',\n\teasyApplyUrl = null,\n\teasyApplyText = 'Easy Apply',\n\tisIframe = false,\n\thideMap = false, // Override to hide map even if siteConfig.showMap is true\n\thideFilters = false, // Hide the entire filter section\n\tnoEntities = false, // Skip entity fetching and hide entity-related filters\n\ttrackEvent = (eventType, eventObj) => {\n\t\tconsole.log(eventType);\n\t\tconsole.log(eventObj);\n\t},\n\t//providing listings entities and a getListingEntities function should negate the need for map code to fetch data\n\tlistings = [],\n\tentities = [],\n\tgetListingEntitiesCallback = null,\n\tdefaultFilters = null,\n\thiddenFilters = null,\n\tsetFiltersUrl = null,\n\tExpandListComponent = null,\n\tadditionalMapMarkers = [],\n\tdefaultZoomOverride = null,\n\t//Default site configuration file passed here stops need to fetch from api\n\tsiteConfiguration = null,\n\tlocalStorageKey = 'defaultKey.',\n\t// Algolia search configuration (optional)\n\talgoliaAppId = null,\n\talgoliaApiKey = null,\n\talgoliaIndexName = null,\n\t/**\n\t * Filter configuration (optional)\n\t * @param {boolean} hideZeroResults - Hide filter options with 0 results (default: false)\n\t * @param {boolean} dynamicCounts - Update counts based on active filters.\n\t * If false, shows initial/total counts (default: true)\n\t * @param {boolean} showFavorites - Show favorites special feature filter (default: true)\n\t * @param {boolean} collapsedByDefault - Start with all filter sections collapsed (default: false)\n\t * @param {boolean} sortAlphabetically - Sort filter options alphabetically instead of by count (default: false)\n\t * @param {object} classNames - Custom Tailwind classes to apply to filter components\n\t * @param {string} classNames.filterContainer - Classes for the main filter container wrapper\n\t * @param {string} classNames.filterContent - Classes for the scrollable filter content area\n\t * @param {string} classNames.filterAccordion - Classes for each filter accordion section\n\t * @param {string} classNames.filterAccordionHeader - Classes for accordion header/trigger\n\t * @param {string} classNames.filterAccordionContent - Classes for accordion content area\n\t * @param {string} classNames.filterItem - Classes for individual filter items (checkboxes/options)\n\t * @param {string} classNames.filterItemLabel - Classes for filter item labels\n\t * @param {string} classNames.filterItemCheckbox - Classes for filter item checkboxes\n\t * @param {string} classNames.filterItemCount - Classes for filter item count badges\n\t * @param {string} classNames.searchInput - Classes for search input field\n\t * @param {string} classNames.resetButton - Classes for reset all button\n\t * @param {string} classNames.showJobsButton - Classes for show jobs button\n\t * @param {string} classNames.filterFooter - Classes for the footer containing buttons\n\t */\n\tfilterConfig = {\n\t\thideZeroResults: false, // Hide filter options with 0 results\n\t\tdynamicCounts: true, // Update counts based on other active filters (false = show initial counts only)\n\t\tshowFavorites: true, // Show favorites filter\n\t\tcollapsedByDefault: false, // Start with all filter sections collapsed\n\t\tsortAlphabetically: false, // Sort filter options alphabetically instead of by count\n\t\tclassNames: {\n\t\t\tfilterContainer: '', // Main filter container wrapper\n\t\t\tfilterContent: '', // Scrollable content area\n\t\t\tfilterAccordion: '', // Filter accordion section\n\t\t\tfilterAccordionHeader: '', // Accordion header/trigger\n\t\t\tfilterAccordionContent: '', // Accordion content body\n\t\t\tfilterItem: '', // Individual filter items\n\t\t\tfilterItemLabel: '', // Filter item labels\n\t\t\tfilterItemCheckbox: '', // Filter item checkboxes\n\t\t\tfilterItemCount: '', // Filter item count badges\n\t\t\tsearchInput: '', // Search input field\n\t\t\tresetButton: '', // Reset all button\n\t\t\tshowJobsButton: '', // Show jobs button\n\t\t\tfilterFooter: '' // Footer with buttons\n\t\t}\n\t}\n}) => {\n\t// Load site configuration (non-blocking)\n\tconst { siteConfig, isLoading: isConfigLoading, error } = useSiteConfig(clientToken, siteConfiguration);\n\n\t// Initialize Algolia immediately if credentials are provided\n\tconst [algoliaInitialized, setAlgoliaInitialized] = useState(() => {\n\t\tif (algoliaAppId && algoliaApiKey && algoliaIndexName) {\n\t\t\tconst initialized = initializeAlgoliaSearch(algoliaAppId, algoliaApiKey, algoliaIndexName);\n\t\t\tif (initialized) {\n\t\t\t\tconsole.log('Algolia search initialized successfully');\n\t\t\t}\n\t\t\treturn initialized;\n\t\t}\n\t\treturn false;\n\t});\n\n\t// Load Google Maps (non-blocking - map component will handle this)\n\tconst { isLoaded: isMapsLoaded, loadError } = useLoadScript({\n\t\tgoogleMapsApiKey: googleMapsApiKey,\n\t\tversion: 'quarterly',\n\t\tlibraries: LIBRARIES\n\t});\n\n\t// Only show errors for critical failures\n\tif (!googleMapsApiKey) {\n\t\tconsole.error('Google Maps API key is required');\n\t\treturn <div className=\"hc-p-4\">Google Maps API key is required</div>;\n\t}\n\n\tif (loadError) {\n\t\tconsole.error('Google Maps failed to load:', loadError);\n\t\treturn <div className=\"hc-p-4\">Error loading Google Maps</div>;\n\t}\n\n\tif (error) {\n\t\treturn <div className=\"hc-p-4\">Error loading configuration</div>;\n\t}\n\n\t// Render immediately even if config is loading - use defaults or provided siteConfiguration\n\tif (!siteConfig) {\n\t\treturn null; // Brief flash, config should load very quickly\n\t}\n\n\t// Prepare props for MapListProvider\n\tconst mapListProps = {\n\t\tresetFilters: false,\n\t\tnavigateToDetails,\n\t\tnavigateToEasyApply,\n\t\tLink,\n\t\tlinkFormat,\n\t\teasyApplyUrl,\n\t\teasyApplyText,\n\t\tlistings,\n\t\tentities,\n\t\tsiteConfig,\n\t\tgetListingEntitiesCallback,\n\t\tsetFiltersUrl,\n\t\thiddenFilters,\n\t\thandleUrlUpdate,\n\t\tdefaultFilters,\n\t\tdefaultZoomOverride, // will usually fit bounds\n\t\tcontainerStyle,\n\t\tExpandListComponent: ExpandListComponent ?? null,\n\t\tadditionalMapMarkers,\n\t\tisIframe,\n\t\tlocalStorageKey,\n\t\thideMap,\n\t\thideFilters,\n\t\tnoEntities,\n\t\tfilterConfig\n\t};\n\n\t// Calculate effective showMap value\n\tconst effectiveShowMap = hideMap ? false : siteConfig.showMap;\n\n\t// Prepare marker configuration\n\tconst markerConfigs = {\n\t\tfillColor: siteConfig.colors.primary,\n\t\tstrokeColor: siteConfig.colors.primaryDark,\n\t\tselectedFillColor: siteConfig.colors.secondary,\n\t\tselectedStrokeColor: siteConfig.colors.secondaryDark,\n\t\tplaceMarkers: {\n\t\t\tcolors: siteConfig.pointsOfInterestConfig.placeMarkerColors,\n\t\t\tsize: siteConfig.pointsOfInterestConfig.placeMarkerSize\n\t\t}\n\t};\n\n\t// Render immediately - individual components handle their own loading\n\t// Only Google Maps components will wait for isMapsLoaded\n\treturn (\n\t\t<ContextProviders\n\t\t\tsiteConfig={siteConfig}\n\t\t\ttrackEvent={trackEvent}\n\t\t\tgoogleMapsApiKey={googleMapsApiKey || process.env.GOOGLE_MAPS_API_KEY}\n\t\t\t{...mapListProps}\n\t\t>\n\t\t\t<Grid\n\t\t\t\tas='section'\n\t\t\t\tid='job-search-interface'\n\t\t\t\tcolumns={hideFilters ? 'hc-grid-cols-1' : 'md:hc-grid-cols-[1fr_2.5fr] lg:hc-grid-cols-[1fr_3.5fr]'}\n\t\t\t\tgap='hc-gap-0'\n\t\t\t\tautoRows={false}\n\t\t\t\tclassName={'hc-bundle hc-items-stretch hc-divide-x hc-divide-uiAccent/20'}\n\t\t\t>\n\t\t\t\t{!hideFilters && (\n\t\t\t\t\t<Grid.Item className='hc-bg-gray-100'>\n\t\t\t\t\t\t<Filter isDesktop={true} showMap={effectiveShowMap} className='hc-hidden md:hc-block' />\n\t\t\t\t\t</Grid.Item>\n\t\t\t\t)}\n\t\t\t\t<MapList\n\t\t\t\t\tcontainerStyle={containerStyle}\n\t\t\t\t\tmapPosition={siteConfig.mapPosition}\n\t\t\t\t\tshowMap={effectiveShowMap}\n\t\t\t\t\tfieldsShown={siteConfig.fieldsShown}\n\t\t\t\t\tspecialFeatures={siteConfig.specialFeatures}\n\t\t\t\t\tfieldNames={siteConfig.fieldNames}\n\t\t\t\t\tplaceMappings={siteConfig.pointsOfInterestConfig.placeMappings ?? {}}\n\t\t\t\t\tmarkerConfigs={markerConfigs}\n\t\t\t\t/>\n\t\t\t</Grid>\n\t\t</ContextProviders>\n\t);\n};\n\nexport default HireControlMap;\n"],"names":["LIBRARIES","useSiteConfig","clientToken","siteConfiguration","arguments","length","undefined","_useState","useState","_useState2","_slicedToArray","siteConfig","setSiteConfig","_useState3","_useState4","isLoading","setIsLoading","_useState5","_useState6","error","setError","useEffect","fetchSiteConfig","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","configData","wrap","_callee$","_context","prev","next","setClientAuthKey","getMapConfig","sent","t0","console","finish","stop","apply","ContextProviders","_ref2","_siteConfig$pointsOfI","children","trackEvent","googleMapsApiKey","mapListProps","_objectWithoutProperties","_excluded","React","createElement","TrackEventProvider","ThemeProvider","uiText","colors","uiAccent","primary","primaryDark","secondary","secondaryDark","MapListProvider","_extends","MapProvider","resetFilters","defaultZoomOverride","localStorageKey","PlacesProvider","placeMappings","pointsOfInterestConfig","additionalMapMarkers","markerColors","fillColor","strokeColor","selectedFillColor","selectedStrokeColor","placeMarkers","placeMarkerColors","size","placeMarkerSize","HireControlMap","_ref3","_siteConfig$pointsOfI2","_ref3$containerStyle","containerStyle","height","_ref3$navigateToDetai","navigateToDetails","_ref3$navigateToEasyA","navigateToEasyApply","_ref3$handleUrlUpdate","handleUrlUpdate","_ref3$Link","Link","_ref3$linkFormat","linkFormat","_ref3$easyApplyUrl","easyApplyUrl","_ref3$easyApplyText","easyApplyText","_ref3$isIframe","isIframe","_ref3$hideMap","hideMap","_ref3$hideFilters","hideFilters","_ref3$noEntities","noEntities","_ref3$trackEvent","eventType","eventObj","log","_ref3$listings","listings","_ref3$entities","entities","_ref3$getListingEntit","getListingEntitiesCallback","_ref3$defaultFilters","defaultFilters","_ref3$hiddenFilters","hiddenFilters","_ref3$setFiltersUrl","setFiltersUrl","_ref3$ExpandListCompo","ExpandListComponent","_ref3$additionalMapMa","_ref3$defaultZoomOver","_ref3$siteConfigurati","_ref3$localStorageKey","_ref3$algoliaAppId","algoliaAppId","_ref3$algoliaApiKey","algoliaApiKey","_ref3$algoliaIndexNam","algoliaIndexName","_ref3$filterConfig","filterConfig","hideZeroResults","dynamicCounts","showFavorites","collapsedByDefault","sortAlphabetically","classNames","filterContainer","filterContent","filterAccordion","filterAccordionHeader","filterAccordionContent","filterItem","filterItemLabel","filterItemCheckbox","filterItemCount","searchInput","resetButton","showJobsButton","filterFooter","_useSiteConfig","_useState7","initialized","initializeAlgoliaSearch","_useState8","algoliaInitialized","setAlgoliaInitialized","_useLoadScript","useLoadScript","version","libraries","isLoaded","loadError","className","effectiveShowMap","showMap","markerConfigs","process","env","GOOGLE_MAPS_API_KEY","Grid","as","id","columns","gap","autoRows","Item","Filter","isDesktop","MapList","mapPosition","fieldsShown","specialFeatures","fieldNames"],"mappings":";;;;;;;;;;;;;;;;;AAkBA;AACA,IAAMA,SAAS,GAAG,CAAC,QAAQ,CAAC,CAAA;;AAE5B;AACA,SAASC,aAAaA,CAACC,WAAW,EAA4B;AAAA,EAAA,IAA1BC,iBAAiB,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,IAAI,CAAA;AAC3D,EAAA,IAAAG,SAAA,GAAoCC,QAAQ,CAACL,iBAAiB,CAAC;IAAAM,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAxDI,IAAAA,UAAU,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,aAAa,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AAChC,EAAA,IAAAI,UAAA,GAAkCL,QAAQ,CAAC,CAACL,iBAAiB,CAAC;IAAAW,UAAA,GAAAJ,cAAA,CAAAG,UAAA,EAAA,CAAA,CAAA;AAAvDE,IAAAA,SAAS,GAAAD,UAAA,CAAA,CAAA,CAAA;IAAEE,YAAY,GAAAF,UAAA,CAAA,CAAA,CAAA,CAAiC;AA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7F,cAAc;;;;"}
|
|
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/containers/filter/filter-container';\nimport MapList from '~/components/containers/maps/map-list-container';\n\n// Context imports\nimport { MapProvider } from '~/contexts/mapContext';\nimport { PlacesProvider } from '~/contexts/placesContext';\nimport { MapListProvider } from '~/contexts/mapListContext';\nimport { TrackEventProvider } from '~/contexts/trackEventContext';\nimport { ThemeProvider } from '~/contexts/themeContext';\n\nimport { initializeAlgoliaSearch } from '~/util/algoliaSearchUtil';\n\n// Libraries for Google Maps\nconst LIBRARIES = ['places'];\n\n// Since all data is now passed in statically, no need to fetch config\n\n// Component to handle all context providers\nconst ContextProviders = ({ children, siteConfig, trackEvent, googleMapsApiKey, ...mapListProps }) => { return(\n\t<TrackEventProvider trackEvent={trackEvent}>\n\t\t<ThemeProvider\n\t\t\tuiText={siteConfig.colors.uiText}\n\t\t\tuiAccent={siteConfig.colors.uiAccent}\n\t\t\tprimary={siteConfig.colors.primary}\n\t\t\tprimaryDark={siteConfig.colors.primaryDark}\n\t\t\tsecondary={siteConfig.colors.secondary}\n\t\t\tsecondaryDark={siteConfig.colors.secondaryDark}\n\t\t>\n\t\t\t<MapListProvider siteConfig={siteConfig} googleMapsApiKey={googleMapsApiKey} {...mapListProps}>\n\t\t\t\t<MapProvider resetFilters={mapListProps.resetFilters} defaultZoomOverride={mapListProps.defaultZoomOverride} localStorageKey={mapListProps.localStorageKey}>\n\t\t\t\t\t<PlacesProvider\n\t\t\t\t\t\tplaceMappings={siteConfig.pointsOfInterestConfig.placeMappings ?? {}}\n\t\t\t\t\t\tadditionalMapMarkers={mapListProps.additionalMapMarkers}\n\t\t\t\t\t\tgoogleMapsApiKey={googleMapsApiKey}\n\t\t\t\t\t\tmarkerColors={{\n\t\t\t\t\t\t\tfillColor: siteConfig.colors.primary,\n\t\t\t\t\t\t\tstrokeColor: siteConfig.colors.primaryDark,\n\t\t\t\t\t\t\tselectedFillColor: siteConfig.colors.secondary,\n\t\t\t\t\t\t\tselectedStrokeColor: siteConfig.colors.secondaryDark,\n\t\t\t\t\t\t\tplaceMarkers: {\n\t\t\t\t\t\t\t\tcolors: siteConfig.pointsOfInterestConfig.placeMarkerColors,\n\t\t\t\t\t\t\t\tsize: siteConfig.pointsOfInterestConfig.placeMarkerSize\n\t\t\t\t\t\t\t}\n\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</PlacesProvider>\n\t\t\t\t</MapProvider>\n\t\t\t</MapListProvider>\n\t\t</ThemeProvider>\n\t</TrackEventProvider>\n);};\n\n// Main component\n//\nexport const HireControlMap = ({\n\tclientToken,\n\tgoogleMapsApiKey, // Required: Google Maps API key from Next.js\n\tcontainerStyle = { height: '100vh' },\n\tnavigateToDetails = null,\n\tnavigateToEasyApply = null,\n\thandleUrlUpdate = null,\n\tLink = null,\n\tlinkFormat = '/jobs/[slug]',\n\teasyApplyUrl = null,\n\teasyApplyText = 'Easy Apply',\n\tisIframe = false,\n\thideMap = false, // Override to hide map even if siteConfig.showMap is true\n\thideFilters = false, // Hide the entire filter section\n\tnoEntities = false, // Skip entity fetching and hide entity-related filters\n\ttrackEvent = (eventType, eventObj) => {\n\t\tconsole.log(eventType);\n\t\tconsole.log(eventObj);\n\t},\n\t//providing listings entities and a getListingEntities function should negate the need for map code to fetch data\n\tlistings = [],\n\tentities = [],\n\tgetListingEntitiesCallback = null,\n\tdefaultFilters = null,\n\thiddenFilters = null,\n\tsetFiltersUrl = null,\n\tExpandListComponent = null,\n\tadditionalMapMarkers = [],\n\tdefaultZoomOverride = null,\n\t//Default site configuration file passed here stops need to fetch from api\n\tsiteConfiguration = null,\n\tlocalStorageKey = 'defaultKey.',\n\t// Algolia search configuration (optional)\n\talgoliaAppId = null,\n\talgoliaApiKey = null,\n\talgoliaIndexName = null,\n\t/**\n\t * Filter configuration (optional)\n\t * @param {boolean} hideZeroResults - Hide filter options with 0 results (default: false)\n\t * @param {boolean} dynamicCounts - Update counts based on active filters.\n\t * If false, shows initial/total counts (default: true)\n\t * @param {boolean} showFavorites - Show favorites special feature filter (default: true)\n\t * @param {boolean} collapsedByDefault - Start with all filter sections collapsed (default: false)\n\t * @param {boolean} sortAlphabetically - Sort filter options alphabetically instead of by count (default: false)\n\t * @param {object} classNames - Custom Tailwind classes to apply to filter components\n\t * @param {string} classNames.filterContainer - Classes for the main filter container wrapper\n\t * @param {string} classNames.filterContent - Classes for the scrollable filter content area\n\t * @param {string} classNames.filterAccordion - Classes for each filter accordion section\n\t * @param {string} classNames.filterAccordionHeader - Classes for accordion header/trigger\n\t * @param {string} classNames.filterAccordionContent - Classes for accordion content area\n\t * @param {string} classNames.filterItem - Classes for individual filter items (checkboxes/options)\n\t * @param {string} classNames.filterItemLabel - Classes for filter item labels\n\t * @param {string} classNames.filterItemCheckbox - Classes for filter item checkboxes\n\t * @param {string} classNames.filterItemCount - Classes for filter item count badges\n\t * @param {string} classNames.searchInput - Classes for search input field\n\t * @param {string} classNames.resetButton - Classes for reset all button\n\t * @param {string} classNames.showJobsButton - Classes for show jobs button\n\t * @param {string} classNames.filterFooter - Classes for the footer containing buttons\n\t */\n\tfilterConfig = {\n\t\thideZeroResults: false, // Hide filter options with 0 results\n\t\tdynamicCounts: true, // Update counts based on other active filters (false = show initial counts only)\n\t\tshowFavorites: true, // Show favorites filter\n\t\tcollapsedByDefault: false, // Start with all filter sections collapsed\n\t\tsortAlphabetically: false, // Sort filter options alphabetically instead of by count\n\t\tclassNames: {\n\t\t\tfilterContainer: '', // Main filter container wrapper\n\t\t\tfilterContent: '', // Scrollable content area\n\t\t\tfilterAccordion: '', // Filter accordion section\n\t\t\tfilterAccordionHeader: '', // Accordion header/trigger\n\t\t\tfilterAccordionContent: '', // Accordion content body\n\t\t\tfilterItem: '', // Individual filter items\n\t\t\tfilterItemLabel: '', // Filter item labels\n\t\t\tfilterItemCheckbox: '', // Filter item checkboxes\n\t\t\tfilterItemCount: '', // Filter item count badges\n\t\t\tsearchInput: '', // Search input field\n\t\t\tresetButton: '', // Reset all button\n\t\t\tshowJobsButton: '', // Show jobs button\n\t\t\tfilterFooter: '' // Footer with buttons\n\t\t}\n\t}\n}) => {\n\t// Initialize Algolia immediately if credentials are provided\n\tconst [algoliaInitialized, setAlgoliaInitialized] = useState(() => {\n\t\tif (algoliaAppId && algoliaApiKey && algoliaIndexName) {\n\t\t\tconst initialized = initializeAlgoliaSearch(algoliaAppId, algoliaApiKey, algoliaIndexName);\n\t\t\tif (initialized) {\n\t\t\t\tconsole.log('Algolia search initialized successfully');\n\t\t\t}\n\t\t\treturn initialized;\n\t\t}\n\t\treturn false;\n\t});\n\n\t// Load Google Maps (non-blocking - map component will handle this)\n\tconst { isLoaded: isMapsLoaded, loadError } = useLoadScript({\n\t\tgoogleMapsApiKey: googleMapsApiKey,\n\t\tversion: 'quarterly',\n\t\tlibraries: LIBRARIES\n\t});\n\n\t// Only show errors for critical failures\n\tif (!googleMapsApiKey) {\n\t\tconsole.error('Google Maps API key is required');\n\t\treturn <div className=\"hc-p-4\">Google Maps API key is required</div>;\n\t}\n\n\tif (loadError) {\n\t\tconsole.error('Google Maps failed to load:', loadError);\n\t\treturn <div className=\"hc-p-4\">Error loading Google Maps</div>;\n\t}\n\n\t// siteConfiguration is now required - all data passed in statically\n\tif (!siteConfiguration) {\n\t\tconsole.error('Site configuration is required');\n\t\treturn <div className=\"hc-p-4\">Site configuration is required</div>;\n\t}\n\n\t// Prepare props for MapListProvider\n\tconst mapListProps = {\n\t\tresetFilters: false,\n\t\tnavigateToDetails,\n\t\tnavigateToEasyApply,\n\t\tLink,\n\t\tlinkFormat,\n\t\teasyApplyUrl,\n\t\teasyApplyText,\n\t\tlistings,\n\t\tentities,\n\t\tsiteConfig: siteConfiguration,\n\t\tgetListingEntitiesCallback,\n\t\tsetFiltersUrl,\n\t\thiddenFilters,\n\t\thandleUrlUpdate,\n\t\tdefaultFilters,\n\t\tdefaultZoomOverride, // will usually fit bounds\n\t\tcontainerStyle,\n\t\tExpandListComponent: ExpandListComponent ?? null,\n\t\tadditionalMapMarkers,\n\t\tisIframe,\n\t\tlocalStorageKey,\n\t\thideMap,\n\t\thideFilters,\n\t\tnoEntities,\n\t\tfilterConfig\n\t};\n\n\t// Calculate effective showMap value\n\tconst effectiveShowMap = hideMap ? false : siteConfiguration.showMap;\n\n\t// Prepare marker configuration\n\tconst markerConfigs = {\n\t\tfillColor: siteConfiguration.colors.primary,\n\t\tstrokeColor: siteConfiguration.colors.primaryDark,\n\t\tselectedFillColor: siteConfiguration.colors.secondary,\n\t\tselectedStrokeColor: siteConfiguration.colors.secondaryDark,\n\t\tplaceMarkers: {\n\t\t\tcolors: siteConfiguration.pointsOfInterestConfig.placeMarkerColors,\n\t\t\tsize: siteConfiguration.pointsOfInterestConfig.placeMarkerSize\n\t\t}\n\t};\n\n\t// Render immediately - individual components handle their own loading\n\t// Only Google Maps components will wait for isMapsLoaded\n\treturn (\n\t\t<ContextProviders\n\t\t\tsiteConfig={siteConfiguration}\n\t\t\ttrackEvent={trackEvent}\n\t\t\tgoogleMapsApiKey={googleMapsApiKey || process.env.GOOGLE_MAPS_API_KEY}\n\t\t\t{...mapListProps}\n\t\t>\n\t\t\t<Grid\n\t\t\t\tas='section'\n\t\t\t\tid='job-search-interface'\n\t\t\t\tcolumns={hideFilters ? 'hc-grid-cols-1' : 'md:hc-grid-cols-[1fr_2.5fr] lg:hc-grid-cols-[1fr_3.5fr]'}\n\t\t\t\tgap='hc-gap-0'\n\t\t\t\tautoRows={false}\n\t\t\t\tclassName={'hc-bundle hc-items-stretch hc-divide-x hc-divide-uiAccent/20'}\n\t\t\t>\n\t\t\t\t{!hideFilters && (\n\t\t\t\t\t<Grid.Item className='hc-bg-gray-100'>\n\t\t\t\t\t\t<Filter isDesktop={true} showMap={effectiveShowMap} className='hc-hidden md:hc-block' />\n\t\t\t\t\t</Grid.Item>\n\t\t\t\t)}\n\t\t\t\t<MapList\n\t\t\t\t\tcontainerStyle={containerStyle}\n\t\t\t\t\tmapPosition={siteConfiguration.mapPosition}\n\t\t\t\t\tshowMap={effectiveShowMap}\n\t\t\t\t\tfieldsShown={siteConfiguration.fieldsShown}\n\t\t\t\t\tspecialFeatures={siteConfiguration.specialFeatures}\n\t\t\t\t\tfieldNames={siteConfiguration.fieldNames}\n\t\t\t\t\tplaceMappings={siteConfiguration.pointsOfInterestConfig.placeMappings ?? {}}\n\t\t\t\t\tmarkerConfigs={markerConfigs}\n\t\t\t\t/>\n\t\t\t</Grid>\n\t\t</ContextProviders>\n\t);\n};\n\nexport default HireControlMap;\n"],"names":["LIBRARIES","ContextProviders","_ref","_siteConfig$pointsOfI","children","siteConfig","trackEvent","googleMapsApiKey","mapListProps","_objectWithoutProperties","_excluded","React","createElement","TrackEventProvider","ThemeProvider","uiText","colors","uiAccent","primary","primaryDark","secondary","secondaryDark","MapListProvider","_extends","MapProvider","resetFilters","defaultZoomOverride","localStorageKey","PlacesProvider","placeMappings","pointsOfInterestConfig","additionalMapMarkers","markerColors","fillColor","strokeColor","selectedFillColor","selectedStrokeColor","placeMarkers","placeMarkerColors","size","placeMarkerSize","HireControlMap","_ref2","_siteConfiguration$po","clientToken","_ref2$containerStyle","containerStyle","height","_ref2$navigateToDetai","navigateToDetails","_ref2$navigateToEasyA","navigateToEasyApply","_ref2$handleUrlUpdate","handleUrlUpdate","_ref2$Link","Link","_ref2$linkFormat","linkFormat","_ref2$easyApplyUrl","easyApplyUrl","_ref2$easyApplyText","easyApplyText","_ref2$isIframe","isIframe","_ref2$hideMap","hideMap","_ref2$hideFilters","hideFilters","_ref2$noEntities","noEntities","_ref2$trackEvent","eventType","eventObj","console","log","_ref2$listings","listings","_ref2$entities","entities","_ref2$getListingEntit","getListingEntitiesCallback","_ref2$defaultFilters","defaultFilters","_ref2$hiddenFilters","hiddenFilters","_ref2$setFiltersUrl","setFiltersUrl","_ref2$ExpandListCompo","ExpandListComponent","_ref2$additionalMapMa","_ref2$defaultZoomOver","_ref2$siteConfigurati","siteConfiguration","_ref2$localStorageKey","_ref2$algoliaAppId","algoliaAppId","_ref2$algoliaApiKey","algoliaApiKey","_ref2$algoliaIndexNam","algoliaIndexName","_ref2$filterConfig","filterConfig","hideZeroResults","dynamicCounts","showFavorites","collapsedByDefault","sortAlphabetically","classNames","filterContainer","filterContent","filterAccordion","filterAccordionHeader","filterAccordionContent","filterItem","filterItemLabel","filterItemCheckbox","filterItemCount","searchInput","resetButton","showJobsButton","filterFooter","_useState","useState","initialized","initializeAlgoliaSearch","_useState2","_slicedToArray","algoliaInitialized","setAlgoliaInitialized","_useLoadScript","useLoadScript","version","libraries","isLoaded","loadError","error","className","effectiveShowMap","showMap","markerConfigs","process","env","GOOGLE_MAPS_API_KEY","Grid","as","id","columns","gap","autoRows","Item","Filter","isDesktop","MapList","mapPosition","fieldsShown","specialFeatures","fieldNames"],"mappings":";;;;;;;;;;;;;;;AAgBA;AACA,IAAMA,SAAS,GAAG,CAAC,QAAQ,CAAC,CAAA;;AAE5B;;AAEA;AACA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAgF;AAAA,EAAA,IAAAC,qBAAA,CAAA;AAAA,EAAA,IAA1EC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IAAEC,UAAU,GAAAJ,IAAA,CAAVI,UAAU;IAAEC,gBAAgB,GAAAL,IAAA,CAAhBK,gBAAgB;AAAKC,IAAAA,YAAY,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA,CAAA,CAAA;AAAS,EAAA,oBACvGC,KAAA,CAAAC,aAAA,CAACC,kBAAkB,EAAA;AAACP,IAAAA,UAAU,EAAEA,UAAAA;AAAW,GAAA,eAC1CK,KAAA,CAAAC,aAAA,CAACE,aAAa,EAAA;AACbC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BabelHelpers.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import * as RadixAccordion from '@radix-ui/react-accordion';
|
|
4
|
-
import { twMerge } from '
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import IconContained from '../icon.js';
|
|
6
6
|
|
|
7
7
|
var _excluded = ["id", "children", "className"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { twMerge } from '
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import Button from './default.js';
|
|
5
5
|
import ApplyDialog from '../dialogs/apply-dialog.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
|
-
import { twMerge } from '
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import IconContained from '../icon.js';
|
|
6
6
|
|
|
7
7
|
var _excluded = ["children", "href", "className", "size", "variant", "isBlock", "hasUnderline", "target", "execOnClick", "isIframe", "iframeMsgType"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
|
-
import { twMerge } from '
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
|
|
6
6
|
var _excluded = ["as", "className", "hasShadow", "image", "body", "children", "footer"],
|
|
7
7
|
_excluded2 = ["as", "href", "className", "hasShadow", "image", "body", "children", "footer"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import * as Select from '@radix-ui/react-select';
|
|
4
|
-
import { twMerge } from '
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import IconContained from '../icon.js';
|
|
6
6
|
import Button from '../buttons/default.js';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import { twMerge } from '
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
|
|
5
5
|
var _excluded = ["as", "children", "className", "autoRows", "columns", "gap"];
|
|
6
6
|
var Grid = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { twMerge } from '
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import Grid from '../grid.js';
|
|
5
5
|
import HeaderItem from './header-item.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { twMerge } from '
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
|
|
5
5
|
var _excluded = ["className", "content"];
|
|
6
6
|
var CardItemExpand = function CardItemExpand(_ref) {
|