@abcagency/hc-ui-components 1.3.67 → 1.3.69
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 +1 -1
- package/dist/components/containers/accordions/map-accordion-item-container.js +4 -7
- package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
- package/dist/components/containers/filter/commute-container.js +1 -1
- package/dist/components/containers/list/list-item/list-item-container.js +3 -4
- package/dist/components/containers/list/list-item/list-item-container.js.map +1 -1
- package/dist/components/containers/maps/info-window-content-container.js +0 -2
- package/dist/components/containers/maps/info-window-content-container.js.map +1 -1
- package/dist/components/containers/maps/map-container.js +1 -1
- package/dist/components/containers/maps/map-marker-container.js +1 -1
- package/dist/components/modules/accordions/default.js +2 -2
- package/dist/components/modules/buttons/button-group-apply.js +2 -5
- package/dist/components/modules/buttons/button-group-apply.js.map +1 -1
- package/dist/components/modules/buttons/commute-pill.js.map +1 -1
- package/dist/components/modules/buttons/default.js +2 -2
- package/dist/components/modules/cards/default.js +2 -2
- package/dist/components/modules/dialogs/apply-dialog.js +1 -1
- package/dist/components/modules/filter/commute.js +2 -2
- package/dist/components/modules/filter/sort.js +2 -2
- package/dist/components/modules/grid.js +1 -1
- package/dist/components/modules/icon.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/components/modules/maps/info-window-content.js +3 -2
- package/dist/components/modules/maps/info-window-content.js.map +1 -1
- package/dist/components/modules/maps/map-marker.js +1 -1
- package/dist/components/modules/maps/map.js +1 -1
- package/dist/components/modules/maps/place-marker.js +1 -1
- package/dist/components/modules/maps/tabs.js +1 -1
- package/dist/types/components/containers/list/list-item/list-item-container.d.ts +1 -2
- package/dist/types/components/modules/buttons/button-group-apply.d.ts +1 -4
- package/dist/util/filterUtil.js +1 -1
- package/package.json +1 -1
- package/src/components/containers/accordions/map-accordion-item-container.js +0 -1
- package/src/components/containers/list/list-item/list-item-container.js +0 -1
- package/src/components/containers/maps/info-window-content-container.js +2 -3
- package/src/components/modules/buttons/button-group-apply.js +0 -3
- package/src/components/modules/maps/info-window-content.js +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { slicedToArray as _slicedToArray, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
|
-
import { useLoadScript } from '../
|
|
3
|
+
import { useLoadScript } from '../node_modules/@react-google-maps/api/dist/esm.js';
|
|
4
4
|
import Grid from './modules/grid.js';
|
|
5
5
|
import FilterContainer from './containers/filter/filter-container.js';
|
|
6
6
|
import MapListContainer from './containers/maps/map-list-container.js';
|
|
@@ -26,21 +26,18 @@ var MapAccordionItemContainer = function MapAccordionItemContainer(_ref) {
|
|
|
26
26
|
var setSelectedItemAndZoomMap = function setSelectedItemAndZoomMap(item, isActive) {
|
|
27
27
|
if (isActive) {
|
|
28
28
|
localStorage.removeItem("selectedListItem");
|
|
29
|
-
mapItems.find(function (x) {
|
|
30
|
-
return Object.prototype.hasOwnProperty.call(x.items, item.id);
|
|
31
|
-
}) || null;
|
|
32
29
|
selectItem(null, null, 9, {
|
|
33
30
|
lat: 39.8283,
|
|
34
31
|
lng: -98.5795
|
|
35
32
|
});
|
|
36
33
|
} else {
|
|
37
34
|
setStorageObject("selectedListItem", item);
|
|
38
|
-
var
|
|
35
|
+
var location = mapItems.find(function (x) {
|
|
39
36
|
return Object.prototype.hasOwnProperty.call(x.items, item.id);
|
|
40
37
|
}) || null;
|
|
41
|
-
selectItem(item,
|
|
42
|
-
lat:
|
|
43
|
-
lng:
|
|
38
|
+
selectItem(item, location, 12, {
|
|
39
|
+
lat: location === null || location === void 0 ? void 0 : location.latitude,
|
|
40
|
+
lng: location === null || location === void 0 ? void 0 : location.longitude
|
|
44
41
|
});
|
|
45
42
|
}
|
|
46
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-accordion-item-container.js","sources":["../../../../src/components/containers/accordions/map-accordion-item-container.js"],"sourcesContent":["import React from 'react';\nimport { useMap } from '~/contexts/mapContext';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\nimport { setStorageObject } from '~/util/localStorageUtil';\nimport MapAccordionItem from '~/components/modules/accordions/MapAccordionItem';\nimport ListItemContainer from '~/components/containers/list/list-item/list-item-container';\n\nconst MapAccordionItemContainer = ({\n\tshowMap,\n\titem,\n\titemRefs,\n\tfieldsShown,\n\titemExpandedContent,\n\tspecialFeatures,\n\tisActive,\n\thasListItemSelected\n}) => {\n\tconst { mapItems, recruiters } = useMapList();\n\tconst { selectItem } = useMap();\n\tconst { trackEvent, eventTypes } = useTrackEvent();\n\n\tconst setSelectedItemAndZoomMap = (item, isActive) => {\n\t\tif (isActive) {\n\t\t\tlocalStorage.removeItem(\"selectedListItem\");\n\t\t\
|
|
1
|
+
{"version":3,"file":"map-accordion-item-container.js","sources":["../../../../src/components/containers/accordions/map-accordion-item-container.js"],"sourcesContent":["import React from 'react';\nimport { useMap } from '~/contexts/mapContext';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\nimport { setStorageObject } from '~/util/localStorageUtil';\nimport MapAccordionItem from '~/components/modules/accordions/MapAccordionItem';\nimport ListItemContainer from '~/components/containers/list/list-item/list-item-container';\n\nconst MapAccordionItemContainer = ({\n\tshowMap,\n\titem,\n\titemRefs,\n\tfieldsShown,\n\titemExpandedContent,\n\tspecialFeatures,\n\tisActive,\n\thasListItemSelected\n}) => {\n\tconst { mapItems, recruiters } = useMapList();\n\tconst { selectItem } = useMap();\n\tconst { trackEvent, eventTypes } = useTrackEvent();\n\n\tconst setSelectedItemAndZoomMap = (item, isActive) => {\n\t\tif (isActive) {\n\t\t\tlocalStorage.removeItem(\"selectedListItem\");\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\tconst location = mapItems.find(x => Object.prototype.hasOwnProperty.call(x.items, 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\n\tconst handleItemClick = item => {\n\t\ttrackEvent(eventTypes.JOB_LISTING_SELECTED, {\n\t\t\tjobTitle: item.fields.position,\n\t\t\tjobCategory: item.fields.category,\n\t\t\tentityDisplayName: item?.mapDetails?.entityDisplayName\n\t\t});\n\n\t\tsetSelectedItemAndZoomMap(item, isActive);\n\t};\n\n\treturn (\n\t\t<MapAccordionItem\n\t\t\titem={item}\n\t\t\titemRefs={itemRefs}\n\t\t\titemExpandedContent={itemExpandedContent}\n\t\t\tisActive={isActive}\n\t\t\trecruiter={recruiters[item.recruiterId]}\n\t\t>\n\t\t\t<ListItemContainer\n\t\t\t\tshowMap={showMap}\n\t\t\t\titem={item}\n\t\t\t\titemRefs={itemRefs}\n\t\t\t\tfieldsShown={fieldsShown}\n\t\t\t\tspecialFeatures={specialFeatures}\n\t\t\t\tisActive={isActive}\n\t\t\t\thasListItemSelected={hasListItemSelected}\n\t\t\t\tonClick={() => handleItemClick(item)}\n\t\t\t/>\n\t\t</MapAccordionItem>\n\t);\n};\n\nexport default MapAccordionItemContainer;\n"],"names":["MapAccordionItemContainer","_ref","showMap","item","itemRefs","fieldsShown","itemExpandedContent","specialFeatures","isActive","hasListItemSelected","_useMapList","useMapList","mapItems","recruiters","_useMap","useMap","selectItem","_useTrackEvent","useTrackEvent","trackEvent","eventTypes","setSelectedItemAndZoomMap","localStorage","removeItem","lat","lng","setStorageObject","location","find","x","Object","prototype","hasOwnProperty","call","items","id","latitude","longitude","handleItemClick","_item$mapDetails","JOB_LISTING_SELECTED","jobTitle","fields","position","jobCategory","category","entityDisplayName","mapDetails","React","createElement","MapAccordionItem","recruiter","recru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,gBAAgB,EAAA;AAChB/C,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,mBAAmB,EAAEA,mBAAoB;AACzCE,IAAAA,QAAQ,EAAEA,QAAS;AACnB2C,IAAAA,SAAS,EAAEtC,UAAU,CAACV,IAAI,CAACiD,WAAW,CAAA;AAAE,GAAA,eAExCJ,cAAA,CAAAC,aAAA,CAACI,iBAAiB,EAAA;AACjBnD,IAAAA,OAAO,EAAEA,OAAQ;AACjBC,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,QAAQ,EAAEA,QAAS;AACnBC,IAAAA,WAAW,EAAEA,WAAY;AACzBE,IAAAA,eAAe,EAAEA,eAAgB;AACjCC,IAAAA,QAAQ,EAAEA,QAAS;AACnBC,IAAAA,mBAAmB,EAAEA,mBAAoB;IACzC6C,OAAO,EAAE,SAAAA,OAAA,GAAA;MAAA,OAAMhB,eAAe,CAACnC,IAAI,CAAC,CAAA;AAAA,KAAA;AAAC,GACrC,CACgB,CAAC,CAAA;AAErB;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { slicedToArray as _slicedToArray, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
3
|
-
import usePlacesAutocomplete, { getLatLng, getGeocode } from '../../../
|
|
3
|
+
import usePlacesAutocomplete, { getLatLng, getGeocode } from '../../../node_modules/use-places-autocomplete/dist/index.esm.js';
|
|
4
4
|
import { useMapList } from '../../../contexts/mapListContext.js';
|
|
5
5
|
import { useTrackEvent } from '../../../contexts/trackEventContext.js';
|
|
6
6
|
import { getStorageItem } from '../../../util/localStorageUtil.js';
|
|
@@ -4,16 +4,15 @@ import { useMapList } from '../../../../contexts/mapListContext.js';
|
|
|
4
4
|
import { useTrackEvent } from '../../../../contexts/trackEventContext.js';
|
|
5
5
|
import ListItem from '../../../modules/list/list-item/list-item.js';
|
|
6
6
|
|
|
7
|
-
var _excluded = ["isActive", "showMap", "item", "itemRefs", "fieldsShown", "specialFeatures", "
|
|
7
|
+
var _excluded = ["isActive", "showMap", "item", "itemRefs", "fieldsShown", "specialFeatures", "bodyClassName", "onItemSelected"];
|
|
8
8
|
var ListItemContainer = function ListItemContainer(_ref) {
|
|
9
9
|
var isActive = _ref.isActive,
|
|
10
10
|
showMap = _ref.showMap,
|
|
11
11
|
item = _ref.item,
|
|
12
12
|
itemRefs = _ref.itemRefs,
|
|
13
13
|
fieldsShown = _ref.fieldsShown,
|
|
14
|
-
specialFeatures = _ref.specialFeatures
|
|
15
|
-
_ref.
|
|
16
|
-
var bodyClassName = _ref.bodyClassName,
|
|
14
|
+
specialFeatures = _ref.specialFeatures,
|
|
15
|
+
bodyClassName = _ref.bodyClassName,
|
|
17
16
|
onItemSelected = _ref.onItemSelected,
|
|
18
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
18
|
var _useMapList = useMapList(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-container.js","sources":["../../../../../src/components/containers/list/list-item/list-item-container.js"],"sourcesContent":["import React, { useState } from 'react';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\nimport ListItem from '~/components/modules/list/list-item/list-item';\n\nconst ListItemContainer = ({\n\tisActive,\n\tshowMap,\n\titem,\n\titemRefs,\n\tfieldsShown,\n\tspecialFeatures,\n\
|
|
1
|
+
{"version":3,"file":"list-item-container.js","sources":["../../../../../src/components/containers/list/list-item/list-item-container.js"],"sourcesContent":["import React, { useState } from 'react';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\nimport ListItem from '~/components/modules/list/list-item/list-item';\n\nconst ListItemContainer = ({\n\tisActive,\n\tshowMap,\n\titem,\n\titemRefs,\n\tfieldsShown,\n\tspecialFeatures,\n\tbodyClassName,\n\tonItemSelected,\n\t...props\n}) => {\n\tconst { siteConfig, favorites, handleSettingFavorites, setMobileTab } = useMapList();\n\tconst { trackEvent, eventTypes } = useTrackEvent();\n\n\treturn (\n\t\t<ListItem\n\t\t\tisActive={isActive}\n\t\t\tshowMap={showMap}\n\t\t\titem={item}\n\t\t\titemRefs={itemRefs}\n\t\t\tfieldsShown={fieldsShown}\n\t\t\tspecialFeatures={specialFeatures}\n\t\t\tclassName={isActive ? \"!hc-border-secondary hc-border hc-border-b-0\" : \"hc-opacity-85\"}\n\t\t\tbodyClassName={bodyClassName}\n\t\t\tonItemSelected={onItemSelected}\n\t\t\tsetMobileTab={setMobileTab}\n\t\t\tsiteConfig={siteConfig}\n\t\t\ttrackEvent={trackEvent}\n\t\t\teventTypes={eventTypes}\n\t\t\tfavorites={favorites}\n\t\t\thandleSettingFavorites={handleSettingFavorites}\n\t\t\t{...props}\n\t\t/>\n\t);\n};\n\nexport default ListItemContainer;\n"],"names":["ListItemContainer","_ref","isActive","showMap","item","itemRefs","fieldsShown","specialFeatures","bodyClassName","onItemSelected","props","_objectWithoutProperties","_excluded","_useMapList","useMapList","siteConfig","favorites","handleSettingFavorites","setMobileTab","_useTrackEvent","useTrackEvent","trackEvent","eventTypes","React","createElement","ListItem","_extends","className"],"mappings":";;;;;;;AAKA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAUjB;AAAA,EAAA,IATLC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IACJC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IACXC,eAAe,GAAAN,IAAA,CAAfM,eAAe;IACfC,aAAa,GAAAP,IAAA,CAAbO,aAAa;IACbC,cAAc,GAAAR,IAAA,CAAdQ,cAAc;AACXC,IAAAA,KAAK,GAAAC,wBAAA,CAAAV,IAAA,EAAAW,SAAA,CAAA,CAAA;AAER,EAAA,IAAAC,WAAA,GAAwEC,UAAU,EAAE;IAA5EC,UAAU,GAAAF,WAAA,CAAVE,UAAU;IAAEC,SAAS,GAAAH,WAAA,CAATG,SAAS;IAAEC,sBAAsB,GAAAJ,WAAA,CAAtBI,sBAAsB;IAAEC,YAAY,GAAAL,WAAA,CAAZK,YAAY,CAAA;AACnE,EAAA,IAAAC,cAAA,GAAmCC,aAAa,EAAE;IAA1CC,UAAU,GAAAF,cAAA,CAAVE,UAAU;IAAEC,UAAU,GAAAH,cAAA,CAAVG,UAAU,CAAA;AAE9B,EAAA,oBACCC,cAAA,CAAAC,aAAA,CAACC,QAAQ,EAAAC,QAAA,CAAA;AACRxB,IAAAA,QAAQ,EAAEA,QAAS;AACnBC,IAAAA,OAAO,EAAEA,OAAQ;AACjBC,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,QAAQ,EAAEA,QAAS;AACnBC,IAAAA,WAAW,EAAEA,WAAY;AACzBC,IAAAA,eAAe,EAAEA,eAAgB;AACjCoB,IAAAA,SAAS,EAAEzB,QAAQ,GAAG,8CAA8C,GAAG,eAAgB;AACvFM,IAAAA,aAAa,EAAEA,aAAc;AAC7BC,IAAAA,cAAc,EAAEA,cAAe;AAC/BS,IAAAA,YAAY,EAAEA,YAAa;AAC3BH,IAAAA,UAAU,EAAEA,UAAW;AACvBM,IAAAA,UAAU,EAAEA,UAAW;AACvBC,IAAAA,UAAU,EAAEA,UAAW;AACvBN,IAAAA,SAAS,EAAEA,SAAU;AACrBC,IAAAA,sBAAsB,EAAEA,sBAAAA;GACpBP,EAAAA,KAAK,CACT,CAAC,CAAA;AAEJ;;;;"}
|
|
@@ -7,7 +7,6 @@ import { useTrackEvent } from '../../../contexts/trackEventContext.js';
|
|
|
7
7
|
var InfoWindowContentContainer = function InfoWindowContentContainer(_ref) {
|
|
8
8
|
var _items$0$mapDetails, _items$0$mapDetails2, _items$0$mapDetails3, _items$0$mapDetails4;
|
|
9
9
|
var item = _ref.item;
|
|
10
|
-
_ref.filterListingsByLocation;
|
|
11
10
|
var _useTrackEvent = useTrackEvent(),
|
|
12
11
|
trackEvent = _useTrackEvent.trackEvent,
|
|
13
12
|
eventTypes = _useTrackEvent.eventTypes;
|
|
@@ -16,7 +15,6 @@ var InfoWindowContentContainer = function InfoWindowContentContainer(_ref) {
|
|
|
16
15
|
setMobileTab = _useMapList.setMobileTab,
|
|
17
16
|
selectedFilters = _useMapList.selectedFilters,
|
|
18
17
|
siteConfig = _useMapList.siteConfig;
|
|
19
|
-
_useMapList.filteredListings;
|
|
20
18
|
var fieldsShown = siteConfig.locationFiltersShown;
|
|
21
19
|
var items = item && item.items ? Object.values(item.items) : null;
|
|
22
20
|
var addressParts = [(_items$0$mapDetails = items[0].mapDetails) === null || _items$0$mapDetails === void 0 || (_items$0$mapDetails = _items$0$mapDetails.address) === null || _items$0$mapDetails === void 0 ? void 0 : _items$0$mapDetails.street, (_items$0$mapDetails2 = items[0].mapDetails) === null || _items$0$mapDetails2 === void 0 || (_items$0$mapDetails2 = _items$0$mapDetails2.address) === null || _items$0$mapDetails2 === void 0 ? void 0 : _items$0$mapDetails2.city, (_items$0$mapDetails3 = items[0].mapDetails) === null || _items$0$mapDetails3 === void 0 || (_items$0$mapDetails3 = _items$0$mapDetails3.address) === null || _items$0$mapDetails3 === void 0 ? void 0 : _items$0$mapDetails3.state, (_items$0$mapDetails4 = items[0].mapDetails) === null || _items$0$mapDetails4 === void 0 || (_items$0$mapDetails4 = _items$0$mapDetails4.address) === null || _items$0$mapDetails4 === void 0 ? void 0 : _items$0$mapDetails4.zip];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-window-content-container.js","sources":["../../../../src/components/containers/maps/info-window-content-container.js"],"sourcesContent":["import React from 'react';\nimport InfoWindowContent from '~/components/modules/maps/info-window-content';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\n\nconst InfoWindowContentContainer = ({\n\titem
|
|
1
|
+
{"version":3,"file":"info-window-content-container.js","sources":["../../../../src/components/containers/maps/info-window-content-container.js"],"sourcesContent":["import React from 'react';\nimport InfoWindowContent from '~/components/modules/maps/info-window-content';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\n\nconst InfoWindowContentContainer = ({\n\titem\n}) => {\n\tconst { trackEvent, eventTypes } = useTrackEvent();\n\tconst { setSelectedFilters, setMobileTab, selectedFilters, siteConfig } = useMapList();\n\tconst fieldsShown = siteConfig.locationFiltersShown;\n\tlet items = item && item.items ? Object.values(item.items) : null;\n\n\tconst addressParts = [\n\t\titems[0].mapDetails?.address?.street,\n\t\titems[0].mapDetails?.address?.city,\n\t\titems[0].mapDetails?.address?.state,\n\t\titems[0].mapDetails?.address?.zip\n\t];\n\tconst fullAddress = addressParts.filter(Boolean).join(', ');\n\n\tconst applyFilters = () => {\n\t\tsetMobileTab(\"listTab\");\n\t\tconst newFilters = { ...selectedFilters };\n\t\tlet filters = [];\n\n\t\tif (fieldsShown.includes('cityState')) {\n\t\t\tnewFilters.cityState = { [items[0].fields.cityState]: true };\n\t\t\tfilters.push({ filterType: 'cityState', filterChecked: items[0].fields.cityState });\n\t\t}\n\n\t\tif (fieldsShown.includes('city')) {\n\t\t\tnewFilters.city = { [items[0].fields.city]: true };\n\t\t\tfilters.push({ filterType: 'city', filterChecked: items[0].fields.city });\n\t\t}\n\n\t\tif (fieldsShown.includes('state')) {\n\t\t\tnewFilters.state = { [items[0].fields.state]: true };\n\t\t\tfilters.push({ filterType: 'state', filterChecked: items[0].fields.state });\n\t\t}\n\n\t\tnewFilters.entityName = { [items[0].fields.entityName]: true };\n\t\tfilters.push({ filterType: 'entityName', filterChecked: items[0].fields.entityName });\n\n\t\ttrackEvent(eventTypes.VIEW_JOBS_AT_Location, { filtersApplied: filters });\n\t\tsetSelectedFilters(newFilters);\n\t};\n\n\treturn <InfoWindowContent items={items} fullAddress={fullAddress} applyFilters={applyFilters} mapInfoWindowConfig={siteConfig.mapInfoWindowConfig}/>;\n};\n\nexport default InfoWindowContentContainer;\n"],"names":["InfoWindowContentContainer","_ref","_items$0$mapDetails","_items$0$mapDetails2","_items$0$mapDetails3","_items$0$mapDetails4","item","_useTrackEvent","useTrackEvent","trackEvent","eventTypes","_useMapList","useMapList","setSelectedFilters","setMobileTab","selectedFilters","siteConfig","fieldsShown","locationFiltersShown","items","Object","values","addressParts","mapDetails","address","street","city","state","zip","fullAddress","filter","Boolean","join","applyFilters","newFilters","_objectSpread","filters","includes","cityState","_defineProperty","fields","push","filterType","filterChecked","entityName","VIEW_JOBS_AT_Location","filtersApplied","React","createElement","InfoWindowContent","mapInfoWindowConfig"],"mappings":";;;;;;AAKA,IAAMA,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAAC,IAAA,EAE1B;AAAA,EAAA,IAAAC,mBAAA,EAAAC,oBAAA,EAAAC,oBAAA,EAAAC,oBAAA,CAAA;AAAA,EAAA,IADLC,IAAI,GAAAL,IAAA,CAAJK,IAAI,CAAA;AAEJ,EAAA,IAAAC,cAAA,GAAmCC,aAAa,EAAE;IAA1CC,UAAU,GAAAF,cAAA,CAAVE,UAAU;IAAEC,UAAU,GAAAH,cAAA,CAAVG,UAAU,CAAA;AAC9B,EAAA,IAAAC,WAAA,GAA0EC,UAAU,EAAE;IAA9EC,kBAAkB,GAAAF,WAAA,CAAlBE,kBAAkB;IAAEC,YAAY,GAAAH,WAAA,CAAZG,YAAY;IAAEC,eAAe,GAAAJ,WAAA,CAAfI,eAAe;IAAEC,UAAU,GAAAL,WAAA,CAAVK,UAAU,CAAA;AACrE,EAAA,IAAMC,WAAW,GAAGD,UAAU,CAACE,oBAAoB,CAAA;AACnD,EAAA,IAAIC,KAAK,GAAGb,IAAI,IAAIA,IAAI,CAACa,KAAK,GAAGC,MAAM,CAACC,MAAM,CAACf,IAAI,CAACa,KAAK,CAAC,GAAG,IAAI,CA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,CAAC,CAAC,CAAC,CAACqB,MAAM,CAACI,UAAU,EAAG,IAAI,CAAE,CAAA;IAC9DR,OAAO,CAACK,IAAI,CAAC;AAAEC,MAAAA,UAAU,EAAE,YAAY;AAAEC,MAAAA,aAAa,EAAExB,KAAK,CAAC,CAAC,CAAC,CAACqB,MAAM,CAACI,UAAAA;AAAW,KAAC,CAAC,CAAA;AAErFnC,IAAAA,UAAU,CAACC,UAAU,CAACmC,qBAAqB,EAAE;AAAEC,MAAAA,cAAc,EAAEV,OAAAA;AAAQ,KAAC,CAAC,CAAA;IACzEvB,kBAAkB,CAACqB,UAAU,CAAC,CAAA;GAC9B,CAAA;AAED,EAAA,oBAAOa,cAAA,CAAAC,aAAA,CAACC,iBAAiB,EAAA;AAAC9B,IAAAA,KAAK,EAAEA,KAAM;AAACU,IAAAA,WAAW,EAAEA,WAAY;AAACI,IAAAA,YAAY,EAAEA,YAAa;IAACiB,mBAAmB,EAAElC,UAAU,CAACkC,mBAAAA;AAAoB,GAAC,CAAC,CAAA;AACrJ;;;;"}
|
|
@@ -6,7 +6,7 @@ import { useMap } from '../../../contexts/mapContext.js';
|
|
|
6
6
|
import { useMapList } from '../../../contexts/mapListContext.js';
|
|
7
7
|
import { pinIcon, markerIcon, markerIconSelected } from '../../../util/mapIconUtil.js';
|
|
8
8
|
import Map from '../../modules/maps/map.js';
|
|
9
|
-
import { MarkerClustererF } from '../../../
|
|
9
|
+
import { MarkerClustererF } from '../../../node_modules/@react-google-maps/api/dist/esm.js';
|
|
10
10
|
import { clusterOptions } from '../../../util/mapUtil.js';
|
|
11
11
|
|
|
12
12
|
var MapContainer = function MapContainer(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect } from 'react';
|
|
2
2
|
import MapMarker from '../../modules/maps/map-marker.js';
|
|
3
|
-
import { InfoWindow } from '../../../
|
|
3
|
+
import { InfoWindow } from '../../../node_modules/@react-google-maps/api/dist/esm.js';
|
|
4
4
|
import CardInfoWindow from '../../modules/maps/info-window-card.js';
|
|
5
5
|
import InfoWindowContentContainer from './info-window-content-container.js';
|
|
6
6
|
import { useMap } from '../../../contexts/mapContext.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default, { forwardRef } from 'react';
|
|
3
|
-
import { Root as Root2, Item, Header, Trigger as Trigger2, Content as Content2 } from '../../../
|
|
4
|
-
import { twMerge } from '../../../
|
|
3
|
+
import { Root as Root2, Item, Header, Trigger as Trigger2, Content as Content2 } from '../../../node_modules/@radix-ui/react-accordion/dist/index.js';
|
|
4
|
+
import { twMerge } from '../../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
5
5
|
import IconContained from '../icon.js';
|
|
6
6
|
|
|
7
7
|
var _excluded = ["id", "children", "className"],
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { twMerge } from '../../../
|
|
3
|
+
import { twMerge } from '../../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
4
4
|
import Button from './default.js';
|
|
5
5
|
import ApplyDialog from '../dialogs/apply-dialog.js';
|
|
6
6
|
|
|
7
7
|
var _templateObject;
|
|
8
8
|
var ButtonGroupApply = function ButtonGroupApply(_ref) {
|
|
9
9
|
var _item$slug;
|
|
10
|
-
_ref.
|
|
11
|
-
_ref.navigateToDetails;
|
|
12
|
-
_ref.navigateToEasyApply;
|
|
13
|
-
var Link = _ref.Link,
|
|
10
|
+
var Link = _ref.Link,
|
|
14
11
|
linkFormat = _ref.linkFormat,
|
|
15
12
|
easyApplyUrl = _ref.easyApplyUrl,
|
|
16
13
|
_ref$applyNowText = _ref.applyNowText,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group-apply.js","sources":["../../../../src/components/modules/buttons/button-group-apply.js"],"sourcesContent":["import React from 'react';\nimport { twMerge } from 'tailwind-merge';\n\nimport Button from '~/components/modules/buttons/default';\nimport ApplyDialog from '../dialogs/apply-dialog';\n\nconst ButtonGroupApply = ({\n\
|
|
1
|
+
{"version":3,"file":"button-group-apply.js","sources":["../../../../src/components/modules/buttons/button-group-apply.js"],"sourcesContent":["import React from 'react';\nimport { twMerge } from 'tailwind-merge';\n\nimport Button from '~/components/modules/buttons/default';\nimport ApplyDialog from '../dialogs/apply-dialog';\n\nconst ButtonGroupApply = ({\n\tLink,\n\tlinkFormat,\n\teasyApplyUrl,\n\tapplyNowText = 'Apply Now',\n\tdetailsUrl,\n\tdetailsText = 'View Details',\n\teasyApplyText,\n\tclassName,\n\tbuttonSize = 'sm',\n\tapplyButtonVariant = 'primary',\n\tdetailsButtonVariant = 'outline',\n\tincludeDialog = false,\n\tinternalApplyLink,\n\titem,\n\tcompanyName,\n\ttrackEvent,\n\teventTypes\n}) => {\n\tconst href = linkFormat.replace('[slug]', item.slug ?? item.id);\n\n\tconst trackApplyNow = () => {\n\t\t//console.log('calling trackApplyNow');\n\t\ttrackEvent(eventTypes.APPLY_NOW_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\tconst trackEasyApply = () => {\n\t\t//console.log('calling trackEasyApply');\n\t\ttrackEvent(eventTypes.EASY_APPLY_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\tconst trackViewDetails = () => {\n\t\t//console.log('calling trackViewDetails');\n\t\ttrackEvent(eventTypes.VIEW_DETAILS_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\t// console.log(detailsUrl);\n\t// console.log(useDetailsPostMessage);\n\t// console.log(navigateToDetails);\n\t// console.log(useDetailsPostMessage === true && !navigateToDetails, 'query result');\n\treturn (\n\t\t<nav\n\t\t\tclassName={twMerge`\n hc-flex hc-flex-row hc-justify-between hc-gap-2 hc-w-full\n ${className ?? ''}\n `}\n\t\t>\n\t\t\t{Link ? (\n\t\t\t\t<Button.Link\n\t\t\t\t\tLink={Link}\n\t\t\t\t\thref={href}\n\t\t\t\t\tvariant={detailsButtonVariant}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tclassName={\"map-details-button\"}\n\t\t\t\t\tsendEvent = {trackViewDetails}\n\t\t\t\t>\n\t\t\t\t\t{detailsText}\n\t\t\t\t</Button.Link>\n\t\t\t) : detailsUrl ? (\n\t\t\t\t<Button.Anchor\n\t\t\t\t\thref={detailsUrl}\n\t\t\t\t\tvariant={detailsButtonVariant}\n\t\t\t\t\tclassName={\"map-details-button\"}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tonClick={trackViewDetails}\n\t\t\t\t>\n\t\t\t\t\t{detailsText}\n\t\t\t\t</Button.Anchor>\n\t\t\t) : null}\n\n\t\t\t{item.applyOnline == 1 && item.applyUrl && !includeDialog &&\n\t\t\t\t<Button.Anchor\n\t\t\t\t\thref={item.applyUrl}\n\t\t\t\t\tvariant={applyButtonVariant}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tclassName={\"map-apply-now-button\"}\n\t\t\t\t\tonClick={trackApplyNow}\n\t\t\t\t>\n\t\t\t\t\t{applyNowText}\n\t\t\t\t</Button.Anchor>\n\t\t\t}\n\t\t\t{item.applyOnline == 1 && item.applyUrl && includeDialog &&\n\t\t\t\t<ApplyDialog applyUrl={item.applyUrl} internalApplyLink={internalApplyLink} companyName={companyName}>\n\t\t\t\t\t<Button.Anchor\n\t\t\t\t\t\tvariant={applyButtonVariant}\n\t\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\t\tclassName={\"map-apply-now-button\"}\n\t\t\t\t\t\tonClick={trackApplyNow} // TODO: Move event to popup\n\t\t\t\t\t>\n\t\t\t\t\t\t{applyNowText}\n\t\t\t\t\t</Button.Anchor>\n\t\t\t\t</ApplyDialog>\n\t\t\t}\n\t\t\t{item.easyApply == 1 && easyApplyUrl &&\n\t\t\t\t<Button.Anchor\n\t\t\t\t\thref={`${easyApplyUrl}${item.id}`}\n\t\t\t\t\tvariant={applyButtonVariant}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tclassName={\"map-apply-now-button\"}\n\t\t\t\t\tonClick={trackEasyApply}\n\t\t\t\t>\n\t\t\t\t\t{easyApplyText}\n\t\t\t\t</Button.Anchor>\n\t\t\t}\n\t\t</nav>\n\t);\n};\n\nexport default ButtonGroupApply;\n"],"names":["ButtonGroupApply","_ref","_item$slug","Link","linkFormat","easyApplyUrl","_ref$applyNowText","applyNowText","detailsUrl","_ref$detailsText","detailsText","easyApplyText","className","_ref$buttonSize","buttonSize","_ref$applyButtonVaria","applyButtonVariant","_ref$detailsButtonVar","detailsButtonVariant","_ref$includeDialog","includeDialog","internalApplyLink","item","companyName","trackEvent","eventTypes","href","replace","slug","id","trackApplyNow","APPLY_NOW_CLICKED","jobCategory","fields","category","jobCategoryClass","categoryClass","jobEntity","entityName","jobListingId","jobSchedule","schedule","trackEasyApply","EASY_APPLY_CLICKED","trackViewDetails","VIEW_DETAILS_CLICKED","React","createElement","twMerge","_templateObject","_taggedTemplateLiteral","Button","variant","size","sendEvent","Anchor","onClick","applyOnline","applyUrl","ApplyDialog","easyApply","concat"],"mappings":";;;;;;;AAMA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAkBhB;AAAA,EAAA,IAAAC,UAAA,CAAA;AAAA,EAAA,IAjBLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IACJC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IAAAC,iBAAA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S,EAAE,sBAAuB;AAClC4C,IAAAA,OAAO,EAAE1B,aAAAA;AAAc,GAAA,EAEtBvB,YACa,CAAC,EAEhBe,IAAI,CAACmC,WAAW,IAAI,CAAC,IAAInC,IAAI,CAACoC,QAAQ,IAAItC,aAAa,iBACvD0B,cAAA,CAAAC,aAAA,CAACY,WAAW,EAAA;IAACD,QAAQ,EAAEpC,IAAI,CAACoC,QAAS;AAACrC,IAAAA,iBAAiB,EAAEA,iBAAkB;AAACE,IAAAA,WAAW,EAAEA,WAAAA;AAAY,GAAA,eACpGuB,cAAA,CAAAC,aAAA,CAACI,MAAM,CAACI,MAAM,EAAA;AACbH,IAAAA,OAAO,EAAEpC,kBAAmB;AAC5BqC,IAAAA,IAAI,EAAEvC,UAAW;AACjBF,IAAAA,SAAS,EAAE,sBAAuB;IAClC4C,OAAO,EAAE1B,aAAc;AAAC,GAAA,EAEvBvB,YACa,CACH,CAAC,EAEde,IAAI,CAACsC,SAAS,IAAI,CAAC,IAAIvD,YAAY,iBACnCyC,cAAA,CAAAC,aAAA,CAACI,MAAM,CAACI,MAAM,EAAA;IACb7B,IAAI,EAAA,EAAA,CAAAmC,MAAA,CAAKxD,YAAY,CAAA,CAAAwD,MAAA,CAAGvC,IAAI,CAACO,EAAE,CAAG;AAClCuB,IAAAA,OAAO,EAAEpC,kBAAmB;AAC5BqC,IAAAA,IAAI,EAAEvC,UAAW;AACjBF,IAAAA,SAAS,EAAE,sBAAuB;AAClC4C,IAAAA,OAAO,EAAEd,cAAAA;GAER/B,EAAAA,aACa,CAEZ,CAAC,CAAA;AAER;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commute-pill.js","sources":["../../../../src/components/modules/buttons/commute-pill.js"],"sourcesContent":["import React from 'react';\n\nimport Icon from '~/components/modules/icon';\nimport PillWrapper from '~/components/modules/buttons/pill-wrapper';\n\nconst CommutePill = ({ travelTime }) => {\n\tif (!travelTime) return;\n\treturn (\n\t\t<div className=\"pt-2\">\n\t\t\t<PillWrapper >\n\t\t\t\t<Icon\n\t\t\t\t\ticon=\"ri:pin-distance-fill\"\n\t\t\t\t\tsize=\"hc-size-5\"\n\t\t\t\t\tclassName=\"hc-text-uiAccent/30\"\n\t\t\t\t/>\n\t\t\t\tcommute time = {travelTime}\n\t\t\t</PillWrapper>\n\t\t</div>\n\t);\n};\n\nexport default CommutePill;\n"],"names":["CommutePill","_ref","travelTime","React","createElement","className","PillWrapper","Icon","icon","size"],"mappings":";;;;AAKA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAAuB;AAAA,EAAA,IAAjBC,UAAU,GAAAD,IAAA,CAAVC,UAAU,CAAA;EAChC,IAAI,CAACA,UAAU,EAAE,OAAA;EACjB,oBACCC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,MAAA;GACdF,eAAAA,cAAA,CAAAC,aAAA,CAACE,WAAW,qBACXH,cAAA,CAAAC,aAAA,CAACG,aAAI,EAAA;AACJC,IAAAA,IAAI,EAAC,sBAAsB;AAC3BC,IAAAA,IAAI,EAAC,WAAW;AAChBJ,IAAAA,SAAS,EAAC,qBAAA;AAAqB,GAC/B,CAAC,EAAA,iBACa,EAACH,UACJ,CACT,CAAC,CAAA;AAER;;;;"}
|
|
1
|
+
{"version":3,"file":"commute-pill.js","sources":["../../../../src/components/modules/buttons/commute-pill.js"],"sourcesContent":["import React from 'react';\r\n\r\nimport Icon from '~/components/modules/icon';\r\nimport PillWrapper from '~/components/modules/buttons/pill-wrapper';\r\n\r\nconst CommutePill = ({ travelTime }) => {\r\n\tif (!travelTime) return;\r\n\treturn (\r\n\t\t<div className=\"pt-2\">\r\n\t\t\t<PillWrapper >\r\n\t\t\t\t<Icon\r\n\t\t\t\t\ticon=\"ri:pin-distance-fill\"\r\n\t\t\t\t\tsize=\"hc-size-5\"\r\n\t\t\t\t\tclassName=\"hc-text-uiAccent/30\"\r\n\t\t\t\t/>\r\n\t\t\t\tcommute time = {travelTime}\r\n\t\t\t</PillWrapper>\r\n\t\t</div>\r\n\t);\r\n};\r\n\r\nexport default CommutePill;\r\n"],"names":["CommutePill","_ref","travelTime","React","createElement","className","PillWrapper","Icon","icon","size"],"mappings":";;;;AAKA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAAuB;AAAA,EAAA,IAAjBC,UAAU,GAAAD,IAAA,CAAVC,UAAU,CAAA;EAChC,IAAI,CAACA,UAAU,EAAE,OAAA;EACjB,oBACCC,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AAAKC,IAAAA,SAAS,EAAC,MAAA;GACdF,eAAAA,cAAA,CAAAC,aAAA,CAACE,WAAW,qBACXH,cAAA,CAAAC,aAAA,CAACG,aAAI,EAAA;AACJC,IAAAA,IAAI,EAAC,sBAAsB;AAC3BC,IAAAA,IAAI,EAAC,WAAW;AAChBJ,IAAAA,SAAS,EAAC,qBAAA;AAAqB,GAC/B,CAAC,EAAA,iBACa,EAACH,UACJ,CACT,CAAC,CAAA;AAER;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default, { forwardRef } from 'react';
|
|
3
|
-
import { Link } from '../../../
|
|
4
|
-
import { twMerge } from '../../../
|
|
3
|
+
import { Link } from '../../../node_modules/react-router-dom/dist/index.js';
|
|
4
|
+
import { twMerge } from '../../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
5
5
|
import IconContained from '../icon.js';
|
|
6
6
|
|
|
7
7
|
var _excluded = ["children", "href", "className", "size", "variant", "isBlock", "hasUnderline", "target"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default, { forwardRef } from 'react';
|
|
3
|
-
import { Link } from '../../../
|
|
4
|
-
import { twMerge } from '../../../
|
|
3
|
+
import { Link } from '../../../node_modules/react-router-dom/dist/index.js';
|
|
4
|
+
import { twMerge } from '../../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { Root, Trigger, Portal, Overlay, Content, Title, Description, Close } from '../../../
|
|
2
|
+
import { Root, Trigger, Portal, Overlay, Content, Title, Description, Close } from '../../../node_modules/@radix-ui/react-dialog/dist/index.js';
|
|
3
3
|
import Button from '../buttons/default.js';
|
|
4
4
|
import IconContained from '../icon.js';
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { Fragment } from 'react';
|
|
2
2
|
import Button from '../buttons/default.js';
|
|
3
3
|
import IconContained from '../icon.js';
|
|
4
|
-
import { Combobox as qt } from '../../../
|
|
5
|
-
import { Transition as qe } from '../../../
|
|
4
|
+
import { Combobox as qt } from '../../../node_modules/@headlessui/react/dist/components/combobox/combobox.js';
|
|
5
|
+
import { Transition as qe } from '../../../node_modules/@headlessui/react/dist/components/transitions/transition.js';
|
|
6
6
|
|
|
7
7
|
var FilterCommute = function FilterCommute(_ref) {
|
|
8
8
|
var className = _ref.className,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default, { forwardRef } from 'react';
|
|
3
|
-
import { Item, ItemText, ItemIndicator, Root as Root2, Trigger, Value, Icon, Portal, Content as Content2, ScrollUpButton, Viewport, Group, ScrollDownButton } from '../../../
|
|
4
|
-
import { twMerge } from '../../../
|
|
3
|
+
import { Item, ItemText, ItemIndicator, Root as Root2, Trigger, Value, Icon, Portal, Content as Content2, ScrollUpButton, Viewport, Group, ScrollDownButton } from '../../../node_modules/@radix-ui/react-select/dist/index.js';
|
|
4
|
+
import { twMerge } from '../../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
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__default, { forwardRef } from 'react';
|
|
3
|
-
import { twMerge } from '../../
|
|
3
|
+
import { twMerge } from '../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
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 { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { Icon } from '../../
|
|
3
|
+
import { Icon } from '../../node_modules/@iconify/react/dist/iconify.js';
|
|
4
4
|
|
|
5
5
|
var _excluded = ["className", "size", "icon", "iconClasses", "title"];
|
|
6
6
|
var IconContained = function IconContained(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { twMerge } from '../../../
|
|
3
|
+
import { twMerge } from '../../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
4
4
|
import Grid from '../grid.js';
|
|
5
5
|
import HeaderItem from './header-item.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { twMerge } from '../../../../
|
|
3
|
+
import { twMerge } from '../../../../node_modules/tailwind-merge/dist/bundle-mjs.js';
|
|
4
4
|
|
|
5
5
|
var _excluded = ["className", "content"];
|
|
6
6
|
var CardItemExpand = function CardItemExpand(_ref) {
|
|
@@ -14,8 +14,9 @@ var InfoWindowContent = function InfoWindowContent(_ref) {
|
|
|
14
14
|
var displayHeader = entityDisplayName;
|
|
15
15
|
var displayAddress = fullAddress;
|
|
16
16
|
if (mapInfoWindowConfig) {
|
|
17
|
-
if (mapInfoWindowConfig.entityHeaderField && mapDetails[mapInfoWindowConfig.entityHeaderField]) {
|
|
18
|
-
|
|
17
|
+
if (mapInfoWindowConfig.entityHeaderField && (mapDetails[mapInfoWindowConfig.entityHeaderField] || mapDetails.address[mapInfoWindowConfig.entityHeaderField])) {
|
|
18
|
+
var _mapDetails$mapInfoWi;
|
|
19
|
+
displayHeader = (_mapDetails$mapInfoWi = mapDetails[mapInfoWindowConfig.entityHeaderField]) !== null && _mapDetails$mapInfoWi !== void 0 ? _mapDetails$mapInfoWi : mapDetails.address[mapInfoWindowConfig.entityHeaderField];
|
|
19
20
|
}
|
|
20
21
|
if (mapInfoWindowConfig.showEntityAddressFields) {
|
|
21
22
|
var addressFields = mapInfoWindowConfig.showEntityAddressFields.map(function (field) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-window-content.js","sources":["../../../../src/components/modules/maps/info-window-content.js"],"sourcesContent":["import React from 'react';\n\nconst InfoWindowContent = ({\n\titems,\n\tfullAddress,\n\tapplyFilters,\n\tmapInfoWindowConfig\n}) => {\n\tif (!items || items.length < 0) {\n\t\treturn null;\n\t}\n\n\tlet mapDetails = items[0].mapDetails;\n\tlet entityDisplayName = mapDetails?.entityDisplayName;\n\tlet address = mapDetails?.address;\n\n\tlet displayHeader = entityDisplayName;\n\tlet displayAddress = fullAddress;\n\n\tif (mapInfoWindowConfig) {\n\t\tif (mapInfoWindowConfig.entityHeaderField && mapDetails[mapInfoWindowConfig.entityHeaderField]) {\n\t\t\tdisplayHeader = mapDetails[mapInfoWindowConfig.entityHeaderField];\n\t\t}\n\n\t\tif (mapInfoWindowConfig.showEntityAddressFields) {\n\t\t\tconst addressFields = mapInfoWindowConfig.showEntityAddressFields\n\t\t\t\t.map(field => address[field])\n\t\t\t\t.filter(Boolean)\n\t\t\t\t.join(', ');\n\t\t\tdisplayAddress = addressFields;\n\t\t}\n\t} else {\n\t\tif (!entityDisplayName.includes(address?.street) && !entityDisplayName.includes(address?.zip)) {\n\t\t\tdisplayAddress = fullAddress;\n\t\t} else {\n\t\t\tdisplayAddress = '';\n\t\t}\n\t}\n\n\treturn (\n\t\t<div className=\"hc-flex-auto hc-p-2\">\n\t\t\t<div>\n\t\t\t\t<div>\n\t\t\t\t\t<h4 className=\"hc-text-lg hc-font-bold hc-leading-tight hc-mb-3\">\n\t\t\t\t\t\t{displayHeader}\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>{displayAddress}</p>\n\t\t\t\t\t<div className=\"hc-pt-2\">\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tclassName=\"hc-cursor-pointer hover:hc-opacity-70 hc-text-primary\"\n\t\t\t\t\t\t\tonClick={applyFilters}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{items.length > 1\n\t\t\t\t\t\t\t\t? `View All ${items.length} jobs at this location`\n\t\t\t\t\t\t\t\t: `View job at this location`}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default InfoWindowContent;\n"],"names":["InfoWindowContent","_ref","items","fullAddress","applyFilters","mapInfoWindowConfig","length","mapDetails","entityDisplayName","address","displayHeader","displayAddress","entityHeaderField","showEntityAddressFields","addressFields","map","field","filter","Boolean","join","includes","street","zip","React","createElement","className","onClick","concat"],"mappings":";;AAEA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAKjB;AAAA,EAAA,IAJLC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IACXC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IACZC,mBAAmB,GAAAJ,IAAA,CAAnBI,mBAAmB,CAAA;EAEnB,IAAI,CAACH,KAAK,IAAIA,KAAK,CAACI,MAAM,GAAG,CAAC,EAAE;AAC/B,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;AAEA,EAAA,IAAIC,UAAU,GAAGL,KAAK,CAAC,CAAC,CAAC,CAACK,UAAU,CAAA;EACpC,IAAIC,iBAAiB,GAAGD,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAVA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,UAAU,CAAEC,iBAAiB,CAAA;EACrD,IAAIC,OAAO,GAAGF,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAVA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,UAAU,CAAEE,OAAO,CAAA;EAEjC,IAAIC,aAAa,GAAGF,iBAAiB,CAAA;EACrC,IAAIG,cAAc,GAAGR,WAAW,CAAA;AAEhC,EAAA,IAAIE,mBAAmB,EAAE;IACxB,IAAIA,mBAAmB,CAACO,iBAAiB,
|
|
1
|
+
{"version":3,"file":"info-window-content.js","sources":["../../../../src/components/modules/maps/info-window-content.js"],"sourcesContent":["import React from 'react';\n\nconst InfoWindowContent = ({\n\titems,\n\tfullAddress,\n\tapplyFilters,\n\tmapInfoWindowConfig\n}) => {\n\tif (!items || items.length < 0) {\n\t\treturn null;\n\t}\n\n\tlet mapDetails = items[0].mapDetails;\n\tlet entityDisplayName = mapDetails?.entityDisplayName;\n\tlet address = mapDetails?.address;\n\n\tlet displayHeader = entityDisplayName;\n\tlet displayAddress = fullAddress;\n\n\tif (mapInfoWindowConfig) {\n\t\tif (mapInfoWindowConfig.entityHeaderField && (mapDetails[mapInfoWindowConfig.entityHeaderField] || mapDetails.address[mapInfoWindowConfig.entityHeaderField])) {\n\t\t\tdisplayHeader = mapDetails[mapInfoWindowConfig.entityHeaderField] ?? mapDetails.address[mapInfoWindowConfig.entityHeaderField];\n\t\t}\n\n\t\tif (mapInfoWindowConfig.showEntityAddressFields) {\n\t\t\tconst addressFields = mapInfoWindowConfig.showEntityAddressFields\n\t\t\t\t.map(field => address[field])\n\t\t\t\t.filter(Boolean)\n\t\t\t\t.join(', ');\n\t\t\tdisplayAddress = addressFields;\n\t\t}\n\t} else {\n\t\tif (!entityDisplayName.includes(address?.street) && !entityDisplayName.includes(address?.zip)) {\n\t\t\tdisplayAddress = fullAddress;\n\t\t} else {\n\t\t\tdisplayAddress = '';\n\t\t}\n\t}\n\n\treturn (\n\t\t<div className=\"hc-flex-auto hc-p-2\">\n\t\t\t<div>\n\t\t\t\t<div>\n\t\t\t\t\t<h4 className=\"hc-text-lg hc-font-bold hc-leading-tight hc-mb-3\">\n\t\t\t\t\t\t{displayHeader}\n\t\t\t\t\t</h4>\n\t\t\t\t\t<p>{displayAddress}</p>\n\t\t\t\t\t<div className=\"hc-pt-2\">\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tclassName=\"hc-cursor-pointer hover:hc-opacity-70 hc-text-primary\"\n\t\t\t\t\t\t\tonClick={applyFilters}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{items.length > 1\n\t\t\t\t\t\t\t\t? `View All ${items.length} jobs at this location`\n\t\t\t\t\t\t\t\t: `View job at this location`}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default InfoWindowContent;\n"],"names":["InfoWindowContent","_ref","items","fullAddress","applyFilters","mapInfoWindowConfig","length","mapDetails","entityDisplayName","address","displayHeader","displayAddress","entityHeaderField","_mapDetails$mapInfoWi","showEntityAddressFields","addressFields","map","field","filter","Bool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,SAAA;GACdF,eAAAA,cAAA,CAAAC,aAAA,CAAA,QAAA,EAAA;AACCC,IAAAA,SAAS,EAAC,uDAAuD;AACjEC,IAAAA,OAAO,EAAEvB,YAAAA;AAAa,GAAA,EAErBF,KAAK,CAACI,MAAM,GAAG,CAAC,eAAAsB,MAAA,CACF1B,KAAK,CAACI,MAAM,EAEpB,wBAAA,CAAA,GAAA,2BAAA,CACJ,CACD,CACD,CACD,CAAC,CAAA;AAER;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { MarkerF } from '../../../
|
|
2
|
+
import { MarkerF } from '../../../node_modules/@react-google-maps/api/dist/esm.js';
|
|
3
3
|
|
|
4
4
|
var MapMarker = function MapMarker(_ref) {
|
|
5
5
|
var position = _ref.position,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { GoogleMap } from '../../../
|
|
2
|
+
import { GoogleMap } from '../../../node_modules/@react-google-maps/api/dist/esm.js';
|
|
3
3
|
import ShowAllButton from '../buttons/show-all-button.js';
|
|
4
4
|
|
|
5
5
|
var Map = function Map(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { Marker, InfoWindowF } from '../../../
|
|
2
|
+
import { Marker, InfoWindowF } from '../../../node_modules/@react-google-maps/api/dist/esm.js';
|
|
3
3
|
|
|
4
4
|
var PlaceMarker = function PlaceMarker(_ref) {
|
|
5
5
|
var marker = _ref.marker,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { Root as Root2, List, Trigger, Content } from '../../../
|
|
2
|
+
import { Root as Root2, List, Trigger, Content } from '../../../node_modules/@radix-ui/react-tabs/dist/index.js';
|
|
3
3
|
import Button from '../buttons/default.js';
|
|
4
4
|
import { useMapList } from '../../../contexts/mapListContext.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ListItemContainer;
|
|
2
|
-
declare function ListItemContainer({ isActive, showMap, item, itemRefs, fieldsShown, specialFeatures,
|
|
2
|
+
declare function ListItemContainer({ isActive, showMap, item, itemRefs, fieldsShown, specialFeatures, bodyClassName, onItemSelected, ...props }: {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
isActive: any;
|
|
5
5
|
showMap: any;
|
|
@@ -7,7 +7,6 @@ declare function ListItemContainer({ isActive, showMap, item, itemRefs, fieldsSh
|
|
|
7
7
|
itemRefs: any;
|
|
8
8
|
fieldsShown: any;
|
|
9
9
|
specialFeatures: any;
|
|
10
|
-
className: any;
|
|
11
10
|
bodyClassName: any;
|
|
12
11
|
onItemSelected: any;
|
|
13
12
|
}): React.JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export default ButtonGroupApply;
|
|
2
|
-
declare function ButtonGroupApply({
|
|
3
|
-
useDetailsPostMessage: any;
|
|
4
|
-
navigateToDetails: any;
|
|
5
|
-
navigateToEasyApply: any;
|
|
2
|
+
declare function ButtonGroupApply({ Link, linkFormat, easyApplyUrl, applyNowText, detailsUrl, detailsText, easyApplyText, className, buttonSize, applyButtonVariant, detailsButtonVariant, includeDialog, internalApplyLink, item, companyName, trackEvent, eventTypes }: {
|
|
6
3
|
Link: any;
|
|
7
4
|
linkFormat: any;
|
|
8
5
|
easyApplyUrl: any;
|
package/dist/util/filterUtil.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { slicedToArray as _slicedToArray, typeof as _typeof, toConsumableArray as _toConsumableArray, defineProperty as _defineProperty, createForOfIteratorHelper as _createForOfIteratorHelper } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import { getDistinctItemsByProximity } from './mapUtil.js';
|
|
3
|
-
import Fuse from '../
|
|
3
|
+
import Fuse from '../node_modules/fuse.js/dist/fuse.js';
|
|
4
4
|
|
|
5
5
|
var getFilterOptions = function getFilterOptions(listings, filteredListings, field) {
|
|
6
6
|
var excludeZeroCount = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
package/package.json
CHANGED
|
@@ -23,7 +23,6 @@ const MapAccordionItemContainer = ({
|
|
|
23
23
|
const setSelectedItemAndZoomMap = (item, isActive) => {
|
|
24
24
|
if (isActive) {
|
|
25
25
|
localStorage.removeItem("selectedListItem");
|
|
26
|
-
const location = mapItems.find(x => Object.prototype.hasOwnProperty.call(x.items, item.id)) || null;
|
|
27
26
|
selectItem(null, null, 9, { lat: 39.8283, lng: -98.5795 });
|
|
28
27
|
} else {
|
|
29
28
|
setStorageObject("selectedListItem", item);
|
|
@@ -4,11 +4,10 @@ import { useMapList } from '~/contexts/mapListContext';
|
|
|
4
4
|
import { useTrackEvent } from '~/contexts/trackEventContext';
|
|
5
5
|
|
|
6
6
|
const InfoWindowContentContainer = ({
|
|
7
|
-
item
|
|
8
|
-
filterListingsByLocation
|
|
7
|
+
item
|
|
9
8
|
}) => {
|
|
10
9
|
const { trackEvent, eventTypes } = useTrackEvent();
|
|
11
|
-
const { setSelectedFilters, setMobileTab, selectedFilters, siteConfig
|
|
10
|
+
const { setSelectedFilters, setMobileTab, selectedFilters, siteConfig } = useMapList();
|
|
12
11
|
const fieldsShown = siteConfig.locationFiltersShown;
|
|
13
12
|
let items = item && item.items ? Object.values(item.items) : null;
|
|
14
13
|
|
|
@@ -18,8 +18,8 @@ const InfoWindowContent = ({
|
|
|
18
18
|
let displayAddress = fullAddress;
|
|
19
19
|
|
|
20
20
|
if (mapInfoWindowConfig) {
|
|
21
|
-
if (mapInfoWindowConfig.entityHeaderField && mapDetails[mapInfoWindowConfig.entityHeaderField]) {
|
|
22
|
-
displayHeader = mapDetails[mapInfoWindowConfig.entityHeaderField];
|
|
21
|
+
if (mapInfoWindowConfig.entityHeaderField && (mapDetails[mapInfoWindowConfig.entityHeaderField] || mapDetails.address[mapInfoWindowConfig.entityHeaderField])) {
|
|
22
|
+
displayHeader = mapDetails[mapInfoWindowConfig.entityHeaderField] ?? mapDetails.address[mapInfoWindowConfig.entityHeaderField];
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
if (mapInfoWindowConfig.showEntityAddressFields) {
|