@abcagency/hc-ui-components 1.3.76 → 1.3.78
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/containers/jobListing/listing-details-container.js +3 -1
- package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
- package/dist/components/containers/list/item-list-container.js.map +1 -1
- package/dist/components/containers/maps/map-container.js +24 -9
- package/dist/components/containers/maps/map-container.js.map +1 -1
- package/dist/components/modules/buttons/button-group-apply.js +26 -9
- package/dist/components/modules/buttons/button-group-apply.js.map +1 -1
- package/dist/components/modules/buttons/default.js +19 -3
- package/dist/components/modules/buttons/default.js.map +1 -1
- package/dist/components/modules/dialogs/apply-dialog.js +38 -8
- package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
- package/dist/components/modules/jobListing/listing-details.js +2 -0
- package/dist/components/modules/jobListing/listing-details.js.map +1 -1
- package/dist/constants/eventTypes.js +3 -0
- package/dist/constants/eventTypes.js.map +1 -1
- package/dist/constants/placeTypes.js +0 -1
- package/dist/constants/placeTypes.js.map +1 -1
- package/dist/contexts/mapListContext.js +2 -1
- package/dist/contexts/mapListContext.js.map +1 -1
- package/dist/types/components/modules/buttons/button-group-apply.d.ts +2 -1
- package/dist/types/components/modules/buttons/default.d.ts +4 -1
- package/dist/types/components/modules/dialogs/apply-dialog.d.ts +5 -1
- package/dist/types/components/modules/jobListing/listing-details.d.ts +2 -1
- package/dist/types/constants/eventTypes.d.ts +3 -0
- package/dist/types/contexts/mapListContext.d.ts +2 -0
- package/dist/types/util/sortUtil.d.ts +1 -1
- package/dist/util/filterUtil.js.map +1 -1
- package/dist/util/mapIconUtil.js +18 -18
- package/dist/util/mapIconUtil.js.map +1 -1
- package/dist/util/sortUtil.js +12 -16
- package/dist/util/sortUtil.js.map +1 -1
- package/package.json +1 -1
- package/src/components/containers/jobListing/listing-details-container.js +2 -1
- package/src/components/containers/list/item-list-container.tsx +1 -0
- package/src/components/containers/maps/map-container.js +56 -24
- package/src/components/modules/buttons/button-group-apply.js +17 -9
- package/src/components/modules/buttons/default.js +11 -3
- package/src/components/modules/dialogs/apply-dialog.js +52 -36
- package/src/components/modules/jobListing/listing-details.js +2 -0
- package/src/constants/eventTypes.js +3 -0
- package/src/constants/placeTypes.js +0 -1
- package/src/contexts/mapListContext.tsx +4 -0
- package/src/util/filterUtil.js +0 -1
- package/src/util/mapIconUtil.js +8 -32
- package/src/util/sortUtil.js +13 -20
- package/dist/components/modules/buttons/commute-pill.js +0 -18
- package/dist/components/modules/buttons/commute-pill.js.map +0 -1
- package/dist/components/modules/list/item-expand-card/recruiter-contact-nav.js +0 -38
- package/dist/components/modules/list/item-expand-card/recruiter-contact-nav.js.map +0 -1
- package/dist/components/modules/list/item-expand-card/recruiter-details.js +0 -40
- package/dist/components/modules/list/item-expand-card/recruiter-details.js.map +0 -1
- package/dist/components/modules/list/item-expand-card/recruiter-headshot.js +0 -20
- package/dist/components/modules/list/item-expand-card/recruiter-headshot.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -802
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -679
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -343
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -140
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/combobox/combobox.js +0 -33
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/keyboard.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/transition.js +0 -19
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/transition.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js +0 -8
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-computed.js +0 -8
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-computed.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-controllable.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-id.js +0 -9
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-id.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -10
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -6
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -11
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -8
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-watch.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/hidden.js +0 -6
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/hidden.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -6
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/active-element-history.js +0 -6
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/bugs.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/class-names.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/disposables.js +0 -6
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/document-ready.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/document-ready.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/env.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/form.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/form.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/match.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/once.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/once.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/owner.js +0 -6
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/platform.js +0 -4
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/render.js +0 -11
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@iconify/react/dist/iconify.js +0 -1928
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@iconify/react/dist/iconify.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/number/dist/index.js +0 -7
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/number/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/primitive/dist/index.js +0 -12
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-accordion/dist/index.js +0 -304
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-accordion/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collapsible/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-context/dist/index.js +0 -80
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dialog/dist/index.js +0 -320
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-id/dist/index.js +0 -16
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-popper/dist/index.js +0 -279
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-select/dist/index.js +0 -1109
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-select/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-tabs/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -16
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-previous/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@react-google-maps/api/dist/esm.js +0 -8515
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@react-google-maps/api/dist/esm.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@remix-run/router/dist/router.js +0 -271
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@remix-run/router/dist/router.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -43
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -669
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -61
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/aria-hidden/dist/es2015/index.js +0 -137
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/fuse.js/dist/fuse.js +0 -1779
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/fuse.js/dist/fuse.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/get-nonce/dist/es2015/index.js +0 -9
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -10
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router/dist/index.js +0 -280
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router-dom/dist/index.js +0 -201
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router-dom/dist/index.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2530
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tslib/tslib.es6.js +0 -57
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -49
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-places-autocomplete/dist/index.esm.js +0 -243
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-places-autocomplete/dist/index.esm.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -802
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -679
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -343
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -140
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +0 -33
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js +0 -19
- package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js +0 -8
- package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js +0 -8
- package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js +0 -9
- package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -10
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -6
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -11
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -8
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +0 -6
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -6
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +0 -6
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +0 -6
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/env.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/form.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/form.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/match.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/once.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/once.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js +0 -6
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js +0 -4
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/render.js +0 -11
- package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
- package/dist/node_modules/@iconify/react/dist/iconify.js +0 -1928
- package/dist/node_modules/@iconify/react/dist/iconify.js.map +0 -1
- package/dist/node_modules/@radix-ui/number/dist/index.js +0 -7
- package/dist/node_modules/@radix-ui/number/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +0 -304
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -80
- package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -320
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -279
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -1109
- package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -16
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
- package/dist/node_modules/@react-google-maps/api/dist/esm.js +0 -8515
- package/dist/node_modules/@react-google-maps/api/dist/esm.js.map +0 -1
- package/dist/node_modules/@remix-run/router/dist/router.js +0 -271
- package/dist/node_modules/@remix-run/router/dist/router.js.map +0 -1
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -43
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -669
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -61
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
- package/dist/node_modules/aria-hidden/dist/es2015/index.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/get-nonce/dist/es2015/index.js +0 -9
- package/dist/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -17
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.js +0 -12
- package/dist/node_modules/react/jsx-runtime.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -10
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
- package/dist/node_modules/react-router/dist/index.js +0 -280
- package/dist/node_modules/react-router/dist/index.js.map +0 -1
- package/dist/node_modules/react-router-dom/dist/index.js +0 -201
- package/dist/node_modules/react-router-dom/dist/index.js.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2530
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.js +0 -57
- package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -49
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
- package/dist/node_modules/use-places-autocomplete/dist/index.esm.js +0 -243
- package/dist/node_modules/use-places-autocomplete/dist/index.esm.js.map +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
- package/dist/services/recruiterService.js +0 -16
- package/dist/services/recruiterService.js.map +0 -1
- package/dist/types/components/modules/buttons/commute-pill.d.ts +0 -5
- package/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +0 -17
- package/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +0 -21
- package/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +0 -8
- package/dist/wellspan-careers-web/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -49
- package/dist/wellspan-careers-web/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
- package/dist/wellspan-careers-web/node_modules/react/jsx-runtime.js +0 -12
- package/dist/wellspan-careers-web/node_modules/react/jsx-runtime.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-dialog.js","sources":["../../../../src/components/modules/dialogs/apply-dialog.js"],"sourcesContent":["import React from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\n\nimport Button from '~/components/modules/buttons/default';\nimport Icon from '~/components/modules/icon';\n\nconst ApplyDialog = ({ children, applyUrl, internalApplyLink, companyName }) => (\n\n\t<Dialog.Root >\n\t\t<Dialog.Trigger asChild>\n\t\t\t{children}\n\t\t</Dialog.Trigger>\n\t\t<Dialog.Portal>\n\t\t\t<Dialog.Overlay className=\"hc-bg-black/50 hc-fixed hc-inset-0 hc-animate-overlayShow\" />\n\t\t\t<Dialog.Content className=\"z-99 hc-fit-content hc-h-fit hc-animate-contentShow hc-fixed hc-inset-0 hc-m-auto hc-max-h-[85vh] hc-w-[90vw] hc-max-w-[450px] hc-rounded-[6px] hc-bg-white hc-p-[25px] hc-shadow-lg focus:hc-outline-none hc-flex hc-flex-col hc-items-center hc-text-center\">\n\t\t\t\t<Dialog.Title className=\"hc-text-[17px] hc-font-medium hc-w-full\">\n\t\t\t\t\tCareer Opportunities\n\t\t\t\t</Dialog.Title>\n\t\t\t\t<Dialog.Description className=\"hc-mt-4 hc-mb-5 hc-text-[15px] hc-leading-normal hc-w-full\">\n\t\t\t\t\tAre you currently a {companyName} employee?\n\t\t\t\t</Dialog.Description>\n\t\t\t\t<div className=\"hc-flex hc-justify-center hc-space-x-4 hc-w-full\">\n\t\t\t\t\t<Dialog.Close asChild>\n\t\t\t\t\t\t<Button.Anchor variant=\"outline\" href={internalApplyLink}>\n\t\t\t\t\t\t\tYes\n\t\t\t\t\t\t</Button.Anchor>\n\t\t\t\t\t</Dialog.Close>\n\t\t\t\t\t<Dialog.Close asChild>\n\t\t\t\t\t\t<Button.Anchor variant=\"primary\" href={applyUrl}>\n\t\t\t\t\t\t\tNo\n\t\t\t\t\t\t</Button.Anchor>\n\t\t\t\t\t</Dialog.Close>\n\t\t\t\t</div>\n\t\t\t\t<Dialog.Close asChild>\n\t\t\t\t\t<Button.Anchor className=\"hc-absolute hc-top-[10px] hc-right-[10px] hc-inline-flex hc-h-[25px] hc-w-[25px] hc-items-center hc-justify-center hc-rounded-full focus:hc-outline-none\"\n\t\t\t\t\t\tvariant=\"ghost\" aria-label=\"Close\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon=\"mdi:times\"\n\t\t\t\t\t\t\tclassName=\"hc-cursor-pointer hc-text-black hover:hc-text-gray-500 hover:hc-opacity-75\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Button.Anchor>\n\t\t\t\t</Dialog.Close>\n\t\t\t</Dialog.Content>\n\t\t</Dialog.Portal>\n\t</Dialog.Root>\n);\n\nexport default ApplyDialog;\n"],"names":["ApplyDialog","_ref","children","applyUrl","internalApplyLink","companyName","React","createElement","Dialog","asChild","className","Button","Anchor","variant","href","Icon","icon"],"mappings":";;;;;AAMA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,
|
|
1
|
+
{"version":3,"file":"apply-dialog.js","sources":["../../../../src/components/modules/dialogs/apply-dialog.js"],"sourcesContent":["import React from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\n\nimport Button from '~/components/modules/buttons/default';\nimport Icon from '~/components/modules/icon';\n\nconst ApplyDialog = ({ children, applyUrl, internalApplyLink, companyName, item, trackEvent, eventTypes, isIframe }) => {\n\tconst trackApplyOption1 = () => {\n\t\t//console.log('calling trackApplyOption1');\n\t\ttrackEvent(eventTypes.APPLY_OPTION_1_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\tconst trackApplyOption2 = () => {\n\t\t//console.log('calling trackApplyOption2');\n\t\ttrackEvent(eventTypes.APPLY_OPTION_2_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\n\treturn (\n\t\t<Dialog.Root >\n\t\t\t<Dialog.Trigger asChild>\n\t\t\t\t<div>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</Dialog.Trigger>\n\t\t\t<Dialog.Portal>\n\t\t\t\t<Dialog.Overlay className=\"hc-bg-black/50 hc-fixed hc-inset-0 hc-animate-overlayShow\" />\n\t\t\t\t<Dialog.Content className=\"z-99 hc-fit-content hc-h-fit hc-animate-contentShow hc-fixed hc-inset-0 hc-m-auto hc-max-h-[85vh] hc-w-[90vw] hc-max-w-[450px] hc-rounded-[6px] hc-bg-white hc-p-[25px] hc-shadow-lg focus:hc-outline-none hc-flex hc-flex-col hc-items-center hc-text-center\">\n\t\t\t\t\t<Dialog.Title className=\"hc-text-[17px] hc-font-medium hc-w-full\">\n\t\t\t\t\t\tCareer Opportunities\n\t\t\t\t\t</Dialog.Title>\n\t\t\t\t\t<Dialog.Description className=\"hc-mt-4 hc-mb-5 hc-text-[15px] hc-leading-normal hc-w-full\">\n\t\t\t\t\t\tAre you currently a {companyName} employee?\n\t\t\t\t\t</Dialog.Description>\n\t\t\t\t\t<div className=\"hc-flex hc-justify-center hc-space-x-4 hc-w-full\">\n\t\t\t\t\t\t<Dialog.Close asChild>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<Button.Anchor variant=\"outline\" href={internalApplyLink} execOnClick={trackApplyOption1} isIframe={isIframe} iframeMsgType={\"APPLY_EMPLOYEE_YES_LINK\"}>\n\t\t\t\t\t\t\t\t\tYes\n\t\t\t\t\t\t\t\t</Button.Anchor>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</Dialog.Close>\n\t\t\t\t\t\t<Dialog.Close asChild>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<Button.Anchor variant=\"primary\" href={applyUrl} execOnClick={trackApplyOption2} isIframe={isIframe} iframeMsgType={\"APPLY_NOW_LINK\"}>\n\t\t\t\t\t\t\t\t\tNo\n\t\t\t\t\t\t\t\t</Button.Anchor>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</Dialog.Close>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Dialog.Close asChild>\n\t\t\t\t\t\t<Button.Anchor className=\"hc-absolute hc-top-[10px] hc-right-[10px] hc-inline-flex hc-h-[25px] hc-w-[25px] hc-items-center hc-justify-center hc-rounded-full focus:hc-outline-none\"\n\t\t\t\t\t\t\tvariant=\"ghost\" aria-label=\"Close\">\n\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\ticon=\"mdi:times\"\n\t\t\t\t\t\t\t\tclassName=\"hc-cursor-pointer hc-text-black hover:hc-text-gray-500 hover:hc-opacity-75\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</Button.Anchor>\n\t\t\t\t\t</Dialog.Close>\n\t\t\t\t</Dialog.Content>\n\t\t\t</Dialog.Portal>\n\t\t</Dialog.Root>\n\t);\n};\n\nexport default ApplyDialog;\n"],"names":["ApplyDialog","_ref","children","applyUrl","internalApplyLink","companyName","item","trackEvent","eventTypes","isIframe","trackApplyOption1","APPLY_OPTION_1_CLICKED","jobCategory","fields","category","jobCategoryClass","categoryClass","jobEntity","entityName","jobListingId","id","jobSchedule","schedule","trackApplyOption2","APPLY_OPTION_2_CLICKED","React","createElement","Dialog","asChild","className","Button","Anchor","variant","href","execOnClick","iframeMsgType","Icon","icon"],"mappings":";;;;;AAMA,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAAuG;AAAA,EAAA,IAAjGC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,iBAAiB,GAAAH,IAAA,CAAjBG,iBAAiB;IAAEC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IAAEC,IAAI,GAAAL,IAAA,CAAJK,IAAI;IAAEC,UAAU,GAAAN,IAAA,CAAVM,UAAU;IAAEC,UAAU,GAAAP,IAAA,CAAVO,UAAU;IAAEC,QAAQ,GAAAR,IAAA,CAARQ,QAAQ,CAAA;AAChH,EAAA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAS;AAC/B;AACAH,IAAAA,UAAU,CAACC,UAAU,CAACG,sBAAsB,EAAE;AAAEC,MAAAA,WAAW,EAAEN,IAAI,CAACO,MAAM,CAACC,QAAQ;AAAEC,MAAAA,gBAAgB,EAAET,IAAI,CAACO,MAAM,CAACG,aAAa;AAAEC,MAAAA,SAAS,EAAEX,IAAI,CAACO,MAAM,CAACK,UAAU;MAAEC,YAAY,EAAEb,IAAI,CAACc,EAAE;AAAEC,MAAAA,WAAW,EAAEf,IAAI,CAACO,MAAM,CAACS,QAAAA;AAAS,KAAC,CAAC,CAAA;GAC9N,CAAA;AACD,EAAA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAS;AAC/B;AACAhB,IAAAA,UAAU,CAACC,UAAU,CAACgB,sBAAsB,EAAE;AAAEZ,MAAAA,WAAW,EAAEN,IAAI,CAACO,MAAM,CAACC,QAAQ;AAAEC,MAAAA,gBAAgB,EAAET,IAAI,CAACO,MAAM,CAACG,aAAa;AAAEC,MAAAA,SAAS,EAAEX,IAAI,C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AA,QAAQ,EAAEA,QAAS;AAAC0B,IAAAA,aAAa,EAAE,yBAAA;GAA2B,EAAA,KAEzI,CACX,CACQ,CAAC,eACfV,cAAA,CAAAC,aAAA,CAACC,KAAY,EAAA;IAACC,OAAO,EAAA,IAAA;GACpBH,eAAAA,cAAA,CAAAC,aAAA,CACCD,KAAAA,EAAAA,IAAAA,eAAAA,cAAA,CAAAC,aAAA,CAACI,MAAM,CAACC,MAAM,EAAA;AAACC,IAAAA,OAAO,EAAC,SAAS;AAACC,IAAAA,IAAI,EAAE9B,QAAS;AAAC+B,IAAAA,WAAW,EAAEX,iBAAkB;AAACd,IAAAA,QAAQ,EAAEA,QAAS;AAAC0B,IAAAA,aAAa,EAAE,gBAAA;AAAiB,GAAA,EAAC,IAEvH,CACX,CACQ,CACV,CAAC,eACNV,cAAA,CAAAC,aAAA,CAACC,KAAY,EAAA;IAACC,OAAO,EAAA,IAAA;AAAA,GAAA,eACpBH,cAAA,CAAAC,aAAA,CAACI,MAAM,CAACC,MAAM,EAAA;AAACF,IAAAA,SAAS,EAAC,0JAA0J;AAClLG,IAAAA,OAAO,EAAC,OAAO;IAAC,YAAW,EAAA,OAAA;AAAO,GAAA,eAClCP,cAAA,CAAAC,aAAA,CAACU,aAAI,EAAA;AACJC,IAAAA,IAAI,EAAC,WAAW;AAChBR,IAAAA,SAAS,EAAC,4EAAA;AAA4E,GACtF,CACa,CACF,CACC,CACF,CACH,CAAC,CAAA;AAEhB;;;;"}
|
|
@@ -10,6 +10,7 @@ var ListingDetails = function ListingDetails(_ref) {
|
|
|
10
10
|
linkFormat = _ref.linkFormat,
|
|
11
11
|
easyApplyUrl = _ref.easyApplyUrl,
|
|
12
12
|
easyApplyText = _ref.easyApplyText,
|
|
13
|
+
isIframe = _ref.isIframe,
|
|
13
14
|
useApplyDialog = _ref.useApplyDialog,
|
|
14
15
|
internalApplyLink = _ref.internalApplyLink,
|
|
15
16
|
companyName = _ref.companyName,
|
|
@@ -31,6 +32,7 @@ var ListingDetails = function ListingDetails(_ref) {
|
|
|
31
32
|
linkFormat: linkFormat,
|
|
32
33
|
easyApplyUrl: easyApplyUrl,
|
|
33
34
|
easyApplyText: easyApplyText,
|
|
35
|
+
isIframe: isIframe,
|
|
34
36
|
includeDialog: useApplyDialog,
|
|
35
37
|
internalApplyLink: internalApplyLink,
|
|
36
38
|
companyName: companyName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listing-details.js","sources":["../../../../src/components/modules/jobListing/listing-details.js"],"sourcesContent":["import React from 'react';\nimport ApplyButtonGroup from '~/components/modules/buttons/button-group-apply';\n\nconst ListingDetails = ({\n\titem,\n\tuseDetailsPostMessage,\n\tnavigateToDetails,\n\tnavigateToEasyApply,\n\tLink,\n\tlinkFormat,\n\teasyApplyUrl,\n\teasyApplyText,\n\tuseApplyDialog,\n\tinternalApplyLink,\n\tcompanyName,\n\tjobsDomain,\n\ttrackEvent,\n\teventTypes\n}) => {\n\tif (!item) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className=\"hc-w-full\">\n\t\t\t<div className=\"hc-grow hc-flex hc-flex-wrap hc-items-center hc-gap-4\">\n\t\t\t\t<ApplyButtonGroup\n\t\t\t\t\tuseDetailsPostMessage={useDetailsPostMessage}\n\t\t\t\t\tnavigateToDetails={navigateToDetails}\n\t\t\t\t\tnavigateToEasyApply={navigateToEasyApply}\n\t\t\t\t\tLink={Link}\n\t\t\t\t\tlinkFormat={linkFormat}\n\t\t\t\t\teasyApplyUrl={easyApplyUrl}\n\t\t\t\t\teasyApplyText={easyApplyText}\n\t\t\t\t\tincludeDialog={useApplyDialog}\n\t\t\t\t\tinternalApplyLink={internalApplyLink}\n\t\t\t\t\tcompanyName={companyName}\n\t\t\t\t\titem={item}\n\t\t\t\t\ttrackEvent={trackEvent}\n\t\t\t\t\teventTypes={eventTypes}\n\t\t\t\t\tdetailsUrl={item.useClientJobUrl ? item?.detailsUrl : `${jobsDomain}${item.id}`}\n\t\t\t\t\tclassName={`\n lg:hc-w-auto hc-order-first lg:hc-order-last md:hc-self-center hc-py-2 lg:hc-p-0 lg:hc-mb-0 hc-border-b lg:hc-border-none hc-border-uiAccent/20\n lg:hc-flex-row\n `}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default ListingDetails;\n\n"],"names":["ListingDetails","_ref","item","useDetailsPostMessage","navigateToDetails","navigateToEasyApply","Link","linkFormat","easyApplyUrl","easyApplyText","useApplyDialog","internalApplyLink","companyName","jobsDomain","trackEvent","eventTypes","React","createElement","className","ApplyButtonGroup","includeDialog","detailsUrl","useClientJobUrl","concat","id"],"mappings":";;;AAGA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,
|
|
1
|
+
{"version":3,"file":"listing-details.js","sources":["../../../../src/components/modules/jobListing/listing-details.js"],"sourcesContent":["import React from 'react';\nimport ApplyButtonGroup from '~/components/modules/buttons/button-group-apply';\n\nconst ListingDetails = ({\n\titem,\n\tuseDetailsPostMessage,\n\tnavigateToDetails,\n\tnavigateToEasyApply,\n\tLink,\n\tlinkFormat,\n\teasyApplyUrl,\n\teasyApplyText,\n\tisIframe,\n\tuseApplyDialog,\n\tinternalApplyLink,\n\tcompanyName,\n\tjobsDomain,\n\ttrackEvent,\n\teventTypes\n}) => {\n\tif (!item) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className=\"hc-w-full\">\n\t\t\t<div className=\"hc-grow hc-flex hc-flex-wrap hc-items-center hc-gap-4\">\n\t\t\t\t<ApplyButtonGroup\n\t\t\t\t\tuseDetailsPostMessage={useDetailsPostMessage}\n\t\t\t\t\tnavigateToDetails={navigateToDetails}\n\t\t\t\t\tnavigateToEasyApply={navigateToEasyApply}\n\t\t\t\t\tLink={Link}\n\t\t\t\t\tlinkFormat={linkFormat}\n\t\t\t\t\teasyApplyUrl={easyApplyUrl}\n\t\t\t\t\teasyApplyText={easyApplyText}\n\t\t\t\t\tisIframe={isIframe}\n\t\t\t\t\tincludeDialog={useApplyDialog}\n\t\t\t\t\tinternalApplyLink={internalApplyLink}\n\t\t\t\t\tcompanyName={companyName}\n\t\t\t\t\titem={item}\n\t\t\t\t\ttrackEvent={trackEvent}\n\t\t\t\t\teventTypes={eventTypes}\n\t\t\t\t\tdetailsUrl={item.useClientJobUrl ? item?.detailsUrl : `${jobsDomain}${item.id}`}\n\t\t\t\t\tclassName={`\n lg:hc-w-auto hc-order-first lg:hc-order-last md:hc-self-center hc-py-2 lg:hc-p-0 lg:hc-mb-0 hc-border-b lg:hc-border-none hc-border-uiAccent/20\n lg:hc-flex-row\n `}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default ListingDetails;\n\n"],"names":["ListingDetails","_ref","item","useDetailsPostMessage","navigateToDetails","navigateToEasyApply","Link","linkFormat","easyApplyUrl","easyApplyText","isIframe","useApplyDialog","internalApplyLink","companyName","jobsDomain","trackEvent","eventTypes","React","createElement","className","ApplyButtonGroup","includeDialog","detailsUrl","useClientJobUrl","concat","id"],"mappings":";;;AAGA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAgBd;AAAA,EAAA,IAfLC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,qBAAqB,GAAAF,IAAA,CAArBE,qBAAqB;IACrBC,iBAAiB,GAAAH,IAAA,CAAjBG,iBAAiB;IACjBC,mBAAmB,GAAAJ,IAAA,CAAnBI,mBAAmB;IACnBC,IAAI,GAAAL,IAAA,CAAJK,IAAI;IACJC,UAAU,GAAAN,IAAA,CAAVM,UAAU;IACVC,YAAY,GAAAP,IAAA,CAAZO,YAAY;IACZC,aAAa,GAAAR,IAAA,CAAbQ,aAAa;IACbC,QAAQ,GAAAT,IAAA,CAARS,QAAQ;IACRC,cAAc,GAAAV,IAAA,CAAdU,cAAc;IACdC,iBAAiB,GAAAX,IAAA,CAAjBW,iBAAiB;IACjBC,WAAW,GAAAZ,IAAA,CAAXY,WAAW;IACXC,UA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@@ var eventTypes = {
|
|
|
3
3
|
MAP_MARKER_CLICKED: "map_marker_clicked",
|
|
4
4
|
JOB_LISTING_SELECTED: "job_listing_selected",
|
|
5
5
|
APPLY_NOW_CLICKED: "apply_now_clicked",
|
|
6
|
+
APPLY_OPEN_CLICKED: "apply_open_clicked",
|
|
7
|
+
APPLY_OPTION_1_CLICKED: "apply_option_1_clicked",
|
|
8
|
+
APPLY_OPTION_2_CLICKED: "apply_option_2_clicked",
|
|
6
9
|
EASY_APPLY_CLICKED: "easy_apply_clicked",
|
|
7
10
|
VIEW_DETAILS_CLICKED: "view_details_clicked",
|
|
8
11
|
COMMUTE_ORIGIN_ADDED: "commute_origin_added",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventTypes.js","sources":["../../src/constants/eventTypes.js"],"sourcesContent":["export const eventTypes = {\n\tFILTER_APPLIED: \"filter_applied\",\n\tMAP_MARKER_CLICKED: \"map_marker_clicked\",\n\tJOB_LISTING_SELECTED: \"job_listing_selected\",\n\tAPPLY_NOW_CLICKED: \"apply_now_clicked\",\n\tEASY_APPLY_CLICKED: \"easy_apply_clicked\",\n\tVIEW_DETAILS_CLICKED: \"view_details_clicked\",\n\tCOMMUTE_ORIGIN_ADDED: \"commute_origin_added\",\n\tPOI_APPLIED: \"point_of_interest_applied\",\n\tVIEW_JOBS_AT_Location: \"view_jobs_at_location_clicked\",\n\tFAVORITE_SELECTED: \"favorite_job_selected\",\n\tLIST_SORTED: \"jobs_list_sorted\",\n\tFILTERS_RESET: \"filter_reset_button_clicked\",\n\tEXTERNAL_LINK_CLICKED: \"external_link_clicked\"\n};\n"],"names":["eventTypes","FILTER_APPLIED","MAP_MARKER_CLICKED","JOB_LISTING_SELECTED","APPLY_NOW_CLICKED","EASY_APPLY_CLICKED","VIEW_DETAILS_CLICKED","COMMUTE_ORIGIN_ADDED","POI_APPLIED","VIEW_JOBS_AT_Location","FAVORITE_SELECTED","LIST_SORTED","FILTERS_RESET","EXTERNAL_LINK_CLICKED"],"mappings":"AAAO,IAAMA,UAAU,GAAG;AACzBC,EAAAA,cAAc,EAAE,gBAAgB;AAChCC,EAAAA,kBAAkB,EAAE,oBAAoB;AACxCC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,iBAAiB,EAAE,mBAAmB;AACtCC,EAAAA,kBAAkB,EAAE,oBAAoB;AACxCC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,WAAW,EAAE,2BAA2B;AACxCC,EAAAA,qBAAqB,EAAE,+BAA+B;AACtDC,EAAAA,iBAAiB,EAAE,uBAAuB;AAC1CC,EAAAA,WAAW,EAAE,kBAAkB;AAC/BC,EAAAA,aAAa,EAAE,6BAA6B;AAC5CC,EAAAA,qBAAqB,EAAE,uBAAA;AACxB;;;;"}
|
|
1
|
+
{"version":3,"file":"eventTypes.js","sources":["../../src/constants/eventTypes.js"],"sourcesContent":["export const eventTypes = {\n\tFILTER_APPLIED: \"filter_applied\",\n\tMAP_MARKER_CLICKED: \"map_marker_clicked\",\n\tJOB_LISTING_SELECTED: \"job_listing_selected\",\n\tAPPLY_NOW_CLICKED: \"apply_now_clicked\",\n\tAPPLY_OPEN_CLICKED: \"apply_open_clicked\",\n\tAPPLY_OPTION_1_CLICKED: \"apply_option_1_clicked\",\n\tAPPLY_OPTION_2_CLICKED: \"apply_option_2_clicked\",\n\tEASY_APPLY_CLICKED: \"easy_apply_clicked\",\n\tVIEW_DETAILS_CLICKED: \"view_details_clicked\",\n\tCOMMUTE_ORIGIN_ADDED: \"commute_origin_added\",\n\tPOI_APPLIED: \"point_of_interest_applied\",\n\tVIEW_JOBS_AT_Location: \"view_jobs_at_location_clicked\",\n\tFAVORITE_SELECTED: \"favorite_job_selected\",\n\tLIST_SORTED: \"jobs_list_sorted\",\n\tFILTERS_RESET: \"filter_reset_button_clicked\",\n\tEXTERNAL_LINK_CLICKED: \"external_link_clicked\"\n};\n"],"names":["eventTypes","FILTER_APPLIED","MAP_MARKER_CLICKED","JOB_LISTING_SELECTED","APPLY_NOW_CLICKED","APPLY_OPEN_CLICKED","APPLY_OPTION_1_CLICKED","APPLY_OPTION_2_CLICKED","EASY_APPLY_CLICKED","VIEW_DETAILS_CLICKED","COMMUTE_ORIGIN_ADDED","POI_APPLIED","VIEW_JOBS_AT_Location","FAVORITE_SELECTED","LIST_SORTED","FILTERS_RESET","EXTERNAL_LINK_CLICKED"],"mappings":"AAAO,IAAMA,UAAU,GAAG;AACzBC,EAAAA,cAAc,EAAE,gBAAgB;AAChCC,EAAAA,kBAAkB,EAAE,oBAAoB;AACxCC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,iBAAiB,EAAE,mBAAmB;AACtCC,EAAAA,kBAAkB,EAAE,oBAAoB;AACxCC,EAAAA,sBAAsB,EAAE,wBAAwB;AAChDC,EAAAA,sBAAsB,EAAE,wBAAwB;AAChDC,EAAAA,kBAAkB,EAAE,oBAAoB;AACxCC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,WAAW,EAAE,2BAA2B;AACxCC,EAAAA,qBAAqB,EAAE,+BAA+B;AACtDC,EAAAA,iBAAiB,EAAE,uBAAuB;AAC1CC,EAAAA,WAAW,EAAE,kBAAkB;AAC/BC,EAAAA,aAAa,EAAE,6BAA6B;AAC5CC,EAAAA,qBAAqB,EAAE,uBAAA;AACxB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeTypes.js","sources":["../../src/constants/placeTypes.js"],"sourcesContent":["export const placeTypes = {\n\tFOOD: \"food\",\n\tSTORE: \"shopping\",\n\tTOURIST_ATTRACTION: \"attractions\",\n\tTRANSIT_STATION: \"transit\",\n\
|
|
1
|
+
{"version":3,"file":"placeTypes.js","sources":["../../src/constants/placeTypes.js"],"sourcesContent":["export const placeTypes = {\n\tFOOD: \"food\",\n\tSTORE: \"shopping\",\n\tTOURIST_ATTRACTION: \"attractions\",\n\tTRANSIT_STATION: \"transit\",\n\tSCHOOL: \"schools\",\n\tPLACE_OF_WORSHIP: \"worship\"\n};\n"],"names":["placeTypes","FOOD","STORE","TOURIST_ATTRACTION","TRANSIT_STATION","SCHOOL","PLACE_OF_WORSHIP"],"mappings":"AAAO,IAAMA,UAAU,GAAG;AACzBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,KAAK,EAAE,UAAU;AACjBC,EAAAA,kBAAkB,EAAE,aAAa;AACjCC,EAAAA,eAAe,EAAE,SAAS;AAC1BC,EAAAA,MAAM,EAAE,SAAS;AACjBC,EAAAA,gBAAgB,EAAE,SAAA;AACnB;;;;"}
|
|
@@ -20,7 +20,7 @@ const getQuery = () => {
|
|
|
20
20
|
}
|
|
21
21
|
return query;
|
|
22
22
|
};
|
|
23
|
-
const MapListProvider = ({ children, siteConfig, resetFilters, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, easyApplyText, trackEvent, listings = [], entities = [], setFiltersUrl, hiddenFilters, handleUrlUpdate, defaultFilters, containerStyle, ExpandListComponent }) => {
|
|
23
|
+
const MapListProvider = ({ children, siteConfig, resetFilters, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, easyApplyText, isIframe, trackEvent, listings = [], entities = [], setFiltersUrl, hiddenFilters, handleUrlUpdate, defaultFilters, containerStyle, ExpandListComponent }) => {
|
|
24
24
|
const firstLoadFilters = () => {
|
|
25
25
|
let urlFilters = filtersFromURL(window.location)?.filters;
|
|
26
26
|
return (setFiltersUrl === true && urlFilters && Object.keys(urlFilters).length > 0) ? urlFilters : getStorageObject('selectedFilters', {}) || {};
|
|
@@ -206,6 +206,7 @@ const MapListProvider = ({ children, siteConfig, resetFilters, navigateToDetails
|
|
|
206
206
|
linkFormat,
|
|
207
207
|
easyApplyUrl,
|
|
208
208
|
easyApplyText,
|
|
209
|
+
isIframe,
|
|
209
210
|
sortSetting,
|
|
210
211
|
setSortSetting,
|
|
211
212
|
trackEvent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapListContext.js","sources":["../../src/contexts/mapListContext.tsx"],"sourcesContent":["import React, { createContext, useState, useEffect, useContext, ReactNode } from 'react';\n\nimport { generateFilterOptions, applyFilters, filterListingsByLocation } from '~/util/filterUtil';\nimport { getStorageObject, setStorageObject } from '~/util/localStorageUtil';\nimport { updateURLWithFilters, filtersFromURL } from '~/util/urlFilterUtil';\n\nimport { getListingEntities } from \"~/services/listingEntityService\";\nimport fetchListings from '~/services/listingAggregatorService';\n\nimport { Listing } from '~/types/Listings';\nimport { ListingEntity } from '~/types/ListingEntity';\nimport { Recruiter } from '~/types/Recruiter';\nimport { MapConfig, MapConfig as SiteConfig } from '~/types/config/MapConfig';\n\ninterface MapListContextProps {\n loading: boolean;\n allListings: Listing[];\n filteredListings: Listing[];\n mapItems: any;\n query: string | null;\n setNewFilteredListings: (filteredListings: Listing[]) => void;\n setQuery: (query: string | null) => void;\n listingEntities: Record<number, ListingEntity> | null;\n selectedFilters: Record<string, any>;\n setSelectedFilters: (filters: Record<string, any>) => void;\n filterOptions: any;\n recruiters: Record<number, Recruiter>;\n handleFilterListingsByLocation: (selectedLocation: any) => void;\n filterDialogIsOpen: boolean;\n setFilterDialogIsOpen: (isOpen: boolean) => void;\n setMobileTab: (tab: string) => void;\n mobileTab: string;\n siteConfig: SiteConfig;\n favorites: number[];\n resetEntityFilter: () => void;\n handleSettingFavorites: (favorites: number[] | null) => void;\n setFilterByFavorites: (filter: boolean) => void;\n filterByFavorites: boolean;\n commuteLocation: any | null;\n setCommuteLocation: (location: any | null) => void;\n navigateToDetails: (id: number) => void;\n navigateToEasyApply: (id: number) => void;\n Link: React.ComponentType<any>;\n linkFormat: string;\n easyApplyUrl: string;\n easyApplyText: string;\n sortSetting: { field: string; type: string };\n setSortSetting: (setting: { field: string; type: string }) => void;\n trackEvent: (event: string) => void;\n defaultFilters?: Record<string, any>;\n hiddenFilters?: string[];\n containerStyle?: any;\n ExpandListComponent?: React.ComponentType<{ listing: any }> | ((listing: any) => JSX.Element) | null;\n}\n\nconst MapListContext = createContext<MapListContextProps | undefined>(undefined);\n\nexport const useMapList = () => {\n\tconst context = useContext(MapListContext);\n\tif (!context) {\n\t\tthrow new Error('useMapList must be used within a MapListProvider');\n\t}\n\treturn context;\n};\n\nconst getQuery = (): string | null => {\n\tlet query: string | null = null;\n\tif (typeof window !== 'undefined') {\n\t\tquery = localStorage.getItem('query');\n\t}\n\treturn query;\n};\n\ninterface MapListProviderProps {\n children: ReactNode;\n siteConfig: MapConfig;\n resetFilters: boolean;\n navigateToDetails: (id: number) => void;\n navigateToEasyApply: (id: number) => void;\n Link: React.ComponentType<any>;\n linkFormat: string;\n easyApplyUrl: string;\n easyApplyText: string;\n trackEvent: (event: string) => void;\n listings?: Listing[];\n\tentities?: ListingEntity[];\n setFiltersUrl?:boolean;\n hiddenFilters?: string[];\n handleUrlUpdate: (searchParams: string) => void;\n defaultFilters?: Record<string, any>;\n containerStyle?: any;\n ExpandListComponent?: React.ComponentType<{ listing: Listing }> | ((listing: Listing) => JSX.Element) | null;\n}\n\nexport const MapListProvider: React.FC<MapListProviderProps> = ({\n\tchildren,\n\tsiteConfig,\n\tresetFilters,\n\tnavigateToDetails,\n\tnavigateToEasyApply,\n\tLink,\n\tlinkFormat,\n\teasyApplyUrl,\n\teasyApplyText,\n\ttrackEvent,\n\tlistings = [],\n\tentities = [],\n\tsetFiltersUrl,\n\thiddenFilters,\n\thandleUrlUpdate,\n\tdefaultFilters,\n\tcontainerStyle,\n\tExpandListComponent\n}) => {\n\tconst firstLoadFilters = () =>{\n\t\tlet urlFilters = filtersFromURL(window.location)?.filters;\n\t\treturn (setFiltersUrl === true && urlFilters && Object.keys(urlFilters).length > 0) ? urlFilters : getStorageObject('selectedFilters', {}) || {}\n\t}\n\tconst [allListings, setAllListings] = useState<Listing[]>([]);\n\tconst [filteredListings, setFilteredListings] = useState<Listing[]>([]);\n\tconst [loading, setLoading] = useState<boolean>(false);\n\tconst [mapItems, setMapItems] = useState<any>(getStorageObject('mapItems', []) || []);\n\tconst [query, setQuery] = useState<string | null>(() => resetFilters ? null : getQuery());\n\tconst [sortSetting, setSortSetting] = useState<{ field: string; type: string }>(getStorageObject('sortSetting', { field: 'position', type: 'asc' }) || { field: 'position', type: 'asc' });\n\tconst [listingEntities, setListingEntities] = useState<Record<number, ListingEntity> | null>({});\n\tconst [firstLoad, setFirstLoad] = useState<boolean>(true);\n\tconst [commuteLocation, setCommuteLocation] = useState<any | null>(getStorageObject('commuteLocation'));\n\tconst [selectedFilters, setSelectedFilters] = useState<Record<string, any>>(() => resetFilters ? {} : firstLoadFilters());\n\tconst [filterOptions, setFilterOptions] = useState<any>();\n\tconst [recruiters, setRecruiters] = useState<Record<number, Recruiter>>({});\n\tconst [filterDialogIsOpen, setFilterDialogIsOpen] = useState<boolean>(false);\n\tconst [mobileTab, setMobileTab] = useState<string>(\"listTab\");\n\tconst [favorites, setFavorites] = useState<number[]>([]);\n\tconst [filterByFavorites, setFilterByFavorites] = useState<boolean>(false);\n\n\tconst setNewFilteredListings = (filteredListings: Listing[]) => {\n\t\tsetFilteredListings(filteredListings);\n\t};\n\n\tuseEffect(() => {\n\t\tif (!sortSetting) return;\n\t\tlocalStorage.setItem('sortSetting', JSON.stringify(sortSetting));\n\t\tsetNewFilteredListings(filteredListings);\n\t}, [sortSetting]);\n\n\tuseEffect(() => {\n\t\tconst loadedFavorites = JSON.parse(localStorage.getItem('favorites') || '[]');\n\t\tsetFavorites(loadedFavorites);\n\t}, []);\n\n\tuseEffect(() => {\n\t\tsetStorageObject(\"commuteLocation\", commuteLocation);\n\t}, [commuteLocation]);\n\n\tuseEffect(() => {\n\t\tif (!commuteLocation) return;\n\n\t\tasync function fetchEntities() {\n\t\t\tconst distinctEntityIds = [\n\t\t\t\t...new Set(allListings.map(listing => listing.entityId ?? -1))\n\t\t\t];\n\t\t\ttry {\n\t\t\t\tconst fetchedEntities = await getListingEntities(\n\t\t\t\t\tdistinctEntityIds,\n\t\t\t\t\t`${commuteLocation.lat}, ${commuteLocation.lng}`\n\t\t\t\t);\n\t\t\t\tsetListingEntities(fetchedEntities);\n\t\t\t\tconst newFilteredListings: Listing[] = [...filteredListings] ?? [];\n\t\t\t\tfor (let i = 0; i < allListings.length; i++) {\n\t\t\t\t\tconst listing = newFilteredListings[i];\n\t\t\t\t\tif (\n\t\t\t\t\t\tlisting &&\n\t\t\t\t\t\tlisting.fields &&\n\t\t\t\t\t\tlisting.entityId !== undefined &&\n\t\t\t\t\t\tlisting.entityId !== -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tconst entityId = listing.entityId;\n\t\t\t\t\t\tconst travelTime = fetchedEntities[entityId]?.travelTime;\n\n\t\t\t\t\t\tif (travelTime !== undefined && listing.fields) {\n\t\t\t\t\t\t\tlisting.fields.travelTime = travelTime;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error(\"Failed to fetch listing entities:\", error);\n\t\t\t}\n\t\t}\n\n\t\tfetchEntities();\n\t}, [commuteLocation, allListings, siteConfig.companyId]);\n\n\tuseEffect(() => {\n\t\tconst handleFetchListings = async () => {\n\t\t\tif (!getStorageObject('listings') ?? [].length) {\n\t\t\t\tsetLoading(true);\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tconst {\n\t\t\t\t\tlistingsResult,\n\t\t\t\t\tfetchedEntities,\n\t\t\t\t\tdistinctItems\n\t\t\t\t} = await fetchListings(commuteLocation, entities, listings);\n\t\t\t\tif (defaultFilters) {\n\t\t\t\t\tconst filteredListings = listingsResult.filter(listing => {\n\t\t\t\t\tif (!listing.fields) return false;\n\n\t\t\t\t\treturn Object.keys(defaultFilters).every(filterKey => {\n\t\t\t\t\t\tconst filterValues = defaultFilters[filterKey as keyof typeof defaultFilters];\n\t\t\t\t\t\tconst listingValue = listing.fields ? listing.fields[filterKey as keyof typeof listing.fields] : null;\n\t\t\t\t\t\treturn filterValues.includes(listingValue);\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tsetAllListings(filteredListings);\n\t\t\t} else {\n\t\t\t\tsetAllListings(listingsResult);\n\t\t\t}\n\t\t\t\tsetListingEntities(fetchedEntities);\n\t\t\t\tsetMapItems(distinctItems);\n\t\t\t} catch (error) {\n\t\t\t\tconsole.log(error);\n\t\t\t}\n\t\t\tsetLoading(false);\n\t\t};\n\t\thandleFetchListings();\n\t}, [query, siteConfig, commuteLocation]);\n\n\tuseEffect(() => {\n\t\tconst processListings = () => {\n\t\t\tlet filteredListings: Listing[];\n\t\t\tlet tempSelectedFilters = selectedFilters;\n\t\t\tlet tempQuery = query;\n\n\t\t\tconst { mapItems, filteredListings: tempFilteredListings } = applyFilters(\n\t\t\t\tallListings,\n\t\t\t\ttempSelectedFilters,\n\t\t\t\ttempQuery,\n\t\t\t\tlistingEntities,\n\t\t\t\tfavorites,\n\t\t\t\tsiteConfig\n\t\t\t);\n\t\t\tfilteredListings = tempFilteredListings;\n\n\t\t\tif (filterByFavorites) {\n\t\t\t\tfilteredListings = filteredListings.filter((x: Listing) => favorites.includes(x.id));\n\t\t\t}\n\t\t\tsetNewFilteredListings(filteredListings);\n\t\t\tif (firstLoad && tempSelectedFilters) {\n\t\t\t\t// Update URL with filters if needed\n\t\t\t} else if (Object.keys(tempSelectedFilters).length === 0 && !firstLoad) {\n\t\t\t\tlocalStorage.removeItem('selectedFilters');\n\t\t\t} else if (!firstLoad) {\n\t\t\t\tsetStorageObject('selectedFilters', tempSelectedFilters);\n\t\t\t}\n\t\t\tif(setFiltersUrl === true)\n\t\t\t{\n\t\t\t\tupdateURLWithFilters(tempSelectedFilters, window.location, tempQuery, handleUrlUpdate);\n\t\t\t}\n\t\t\ttempQuery != null ? localStorage.setItem('query', tempQuery) : localStorage.removeItem('query');\n\t\t\tsetMapItems(mapItems);\n\n\t\t\tif (tempSelectedFilters) {\n\t\t\t\tconst keys = Object.keys(tempSelectedFilters);\n\t\t\t\tconst lastKey = keys[keys.length - 1];\n\t\t\t\tconst options = generateFilterOptions(\n\t\t\t\t\tfilteredListings,\n\t\t\t\t\tallListings,\n\t\t\t\t\tsiteConfig,\n\t\t\t\t\tfilterOptions,\n\t\t\t\t\tlastKey,\n\t\t\t\t\tfavorites,\n\t\t\t\t\ttempSelectedFilters\n\t\t\t\t);\n\t\t\t\tif (options) {\n\t\t\t\t\tsetFilterOptions(options);\n\t\t\t\t\tif (firstLoad) setFirstLoad(false);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tprocessListings();\n\t}, [selectedFilters, query, listingEntities, filterByFavorites, favorites]);\n\n\tconst handleFilterListingsByLocation = (selectedLocation: any) => {\n\t\tconst { filteredListings } = filterListingsByLocation(\n\t\t\tallListings,\n\t\t\tselectedLocation,\n\t\t\tlistingEntities\n\t\t);\n\t\tsetNewFilteredListings(filteredListings);\n\t};\n\n\tconst resetEntityFilter = () => {\n\t\tlet newFilters = {...selectedFilters};\n\t\tdelete newFilters.entityId;\n\t\tsetSelectedFilters(newFilters);\n\t}\n\n\tconst handleSettingFavorites = (newFavorites: number[] | null) => {\n\t\tif (newFavorites == null) {\n\t\t\tlocalStorage.removeItem('favorites');\n\t\t} else {\n\t\t\tsetFavorites(newFavorites);\n\t\t\tlocalStorage.setItem('favorites', JSON.stringify(newFavorites));\n\t\t}\n\t};\n\n\treturn (\n\t\t<MapListContext.Provider value={{\n\t\t\tloading,\n\t\t\tallListings,\n\t\t\tfilteredListings,\n\t\t\tmapItems,\n\t\t\tquery,\n\t\t\tsetNewFilteredListings,\n\t\t\tsetQuery,\n\t\t\tlistingEntities,\n\t\t\tselectedFilters,\n\t\t\tsetSelectedFilters,\n\t\t\tfilterOptions,\n\t\t\trecruiters,\n\t\t\thandleFilterListingsByLocation,\n\t\t\tfilterDialogIsOpen,\n\t\t\tsetFilterDialogIsOpen,\n\t\t\tsetMobileTab,\n\t\t\tmobileTab,\n\t\t\tsiteConfig,\n\t\t\tfavorites,\n\t\t\thandleSettingFavorites,\n\t\t\tresetEntityFilter,\n\t\t\tsetFilterByFavorites,\n\t\t\tfilterByFavorites,\n\t\t\tcommuteLocation,\n\t\t\tsetCommuteLocation,\n\t\t\tnavigateToDetails,\n\t\t\tnavigateToEasyApply,\n\t\t\tLink,\n\t\t\tlinkFormat,\n\t\t\teasyApplyUrl,\n\t\t\teasyApplyText,\n\t\t\tsortSetting,\n\t\t\tsetSortSetting,\n\t\t\ttrackEvent,\n\t\t\tdefaultFilters,\n\t\t\thiddenFilters,\n\t\t\tcontainerStyle,\n\t\t\tExpandListComponent\n\t\t}}>\n\t\t\t{children}\n\t\t</MapListContext.Provider>\n\t);\n};\n"],"names":["React"],"mappings":";;;;;;;AAuDA,MAAM,cAAc,GAAG,aAAa,CAAkC,SAAS,CAAC,CAAC;AAE1E,MAAM,UAAU,GAAG,MAAK;AAC9B,IAAA,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE;AACb,QAAA,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;AACpE,KAAA;AACD,IAAA,OAAO,OAAO,CAAC;AAChB,EAAE;AAEF,MAAM,QAAQ,GAAG,MAAoB;IACpC,IAAI,KAAK,GAAkB,IAAI,CAAC;AAChC,IAAA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AAClC,QAAA,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AACtC,KAAA;AACD,IAAA,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;MAuBW,eAAe,GAAmC,CAAC,EAC/D,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,EAAE,EACb,aAAa,EACb,aAA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B,CAAC,CAAC;AAC1C,KAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,MAAK;AAC9B,QAAA,IAAI,UAAU,GAAG,EAAC,GAAG,eAAe,EAAC,CAAC;QACtC,OAAO,UAAU,CAAC,QAAQ,CAAC;QAC3B,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAChC,KAAC,CAAA;AAED,IAAA,MAAM,sBAAsB,GAAG,CAAC,YAA6B,KAAI;QAChE,IAAI,YAAY,IAAI,IAAI,EAAE;AACzB,YAAA,YAAY,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;AACrC,SAAA;AAAM,aAAA;YACN,YAAY,CAAC,YAAY,CAAC,CAAC;AAC3B,YAAA,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;AAChE,SAAA;AACF,KAAC,CAAC;AAEF,IAAA,QACCA,cAAC,CAAA,aAAA,CAAA,cAAc,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAE;YAC/B,OAAO;YACP,WAAW;YACX,gBAAgB;YAChB,QAAQ;YACR,KAAK;YACL,sBAAsB;YACtB,QAAQ;YACR,eAAe;YACf,eAAe;YACf,kBAAkB;YAClB,aAAa;YACb,UAAU;YACV,8BAA8B;YAC9B,kBAAkB;YAClB,qBAAqB;YACrB,YAAY;YACZ,SAAS;YACT,UAAU;YACV,SAAS;YACT,sBAAsB;YACtB,iBAAiB;YACjB,oBAAoB;YACpB,iBAAiB;YACjB,eAAe;YACf,kBAAkB;YAClB,iBAAiB;YACjB,mBAAmB;YACnB,IAAI;YACJ,UAAU;YACV,YAAY;YACZ,aAAa;YACb,WAAW;YACX,cAAc;YACd,UAAU;YACV,cAAc;YACd,aAAa;YACb,cAAc;YACd,mBAAmB;SACnB,EACC,EAAA,QAAQ,CACgB,EACzB;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"mapListContext.js","sources":["../../src/contexts/mapListContext.tsx"],"sourcesContent":["import React, { createContext, useState, useEffect, useContext, ReactNode } from 'react';\n\nimport { generateFilterOptions, applyFilters, filterListingsByLocation } from '~/util/filterUtil';\nimport { getStorageObject, setStorageObject } from '~/util/localStorageUtil';\nimport { updateURLWithFilters, filtersFromURL } from '~/util/urlFilterUtil';\n\nimport { getListingEntities } from \"~/services/listingEntityService\";\nimport fetchListings from '~/services/listingAggregatorService';\n\nimport { Listing } from '~/types/Listings';\nimport { ListingEntity } from '~/types/ListingEntity';\nimport { Recruiter } from '~/types/Recruiter';\nimport { MapConfig, MapConfig as SiteConfig } from '~/types/config/MapConfig';\n\ninterface MapListContextProps {\n loading: boolean;\n allListings: Listing[];\n filteredListings: Listing[];\n mapItems: any;\n query: string | null;\n setNewFilteredListings: (filteredListings: Listing[]) => void;\n setQuery: (query: string | null) => void;\n listingEntities: Record<number, ListingEntity> | null;\n selectedFilters: Record<string, any>;\n setSelectedFilters: (filters: Record<string, any>) => void;\n filterOptions: any;\n recruiters: Record<number, Recruiter>;\n handleFilterListingsByLocation: (selectedLocation: any) => void;\n filterDialogIsOpen: boolean;\n setFilterDialogIsOpen: (isOpen: boolean) => void;\n setMobileTab: (tab: string) => void;\n mobileTab: string;\n siteConfig: SiteConfig;\n favorites: number[];\n resetEntityFilter: () => void;\n handleSettingFavorites: (favorites: number[] | null) => void;\n setFilterByFavorites: (filter: boolean) => void;\n filterByFavorites: boolean;\n commuteLocation: any | null;\n setCommuteLocation: (location: any | null) => void;\n navigateToDetails: (id: number) => void;\n navigateToEasyApply: (id: number) => void;\n Link: React.ComponentType<any>;\n linkFormat: string;\n easyApplyUrl: string;\n easyApplyText: string;\n\tisIframe: boolean;\n sortSetting: { field: string; type: string };\n setSortSetting: (setting: { field: string; type: string }) => void;\n trackEvent: (event: string) => void;\n defaultFilters?: Record<string, any>;\n hiddenFilters?: string[];\n containerStyle?: any;\n ExpandListComponent?: React.ComponentType<{ listing: any }> | ((listing: any) => JSX.Element) | null;\n}\n\nconst MapListContext = createContext<MapListContextProps | undefined>(undefined);\n\nexport const useMapList = () => {\n\tconst context = useContext(MapListContext);\n\tif (!context) {\n\t\tthrow new Error('useMapList must be used within a MapListProvider');\n\t}\n\treturn context;\n};\n\nconst getQuery = (): string | null => {\n\tlet query: string | null = null;\n\tif (typeof window !== 'undefined') {\n\t\tquery = localStorage.getItem('query');\n\t}\n\treturn query;\n};\n\ninterface MapListProviderProps {\n children: ReactNode;\n siteConfig: MapConfig;\n resetFilters: boolean;\n navigateToDetails: (id: number) => void;\n navigateToEasyApply: (id: number) => void;\n Link: React.ComponentType<any>;\n linkFormat: string;\n easyApplyUrl: string;\n easyApplyText: string;\n\tisIframe: boolean;\n trackEvent: (event: string) => void;\n listings?: Listing[];\n\tentities?: ListingEntity[];\n setFiltersUrl?:boolean;\n hiddenFilters?: string[];\n handleUrlUpdate: (searchParams: string) => void;\n defaultFilters?: Record<string, any>;\n containerStyle?: any;\n ExpandListComponent?: React.ComponentType<{ listing: Listing }> | ((listing: Listing) => JSX.Element) | null;\n}\n\nexport const MapListProvider: React.FC<MapListProviderProps> = ({\n\tchildren,\n\tsiteConfig,\n\tresetFilters,\n\tnavigateToDetails,\n\tnavigateToEasyApply,\n\tLink,\n\tlinkFormat,\n\teasyApplyUrl,\n\teasyApplyText,\n\tisIframe,\n\ttrackEvent,\n\tlistings = [],\n\tentities = [],\n\tsetFiltersUrl,\n\thiddenFilters,\n\thandleUrlUpdate,\n\tdefaultFilters,\n\tcontainerStyle,\n\tExpandListComponent\n}) => {\n\tconst firstLoadFilters = () =>{\n\t\tlet urlFilters = filtersFromURL(window.location)?.filters;\n\t\treturn (setFiltersUrl === true && urlFilters && Object.keys(urlFilters).length > 0) ? urlFilters : getStorageObject('selectedFilters', {}) || {}\n\t}\n\tconst [allListings, setAllListings] = useState<Listing[]>([]);\n\tconst [filteredListings, setFilteredListings] = useState<Listing[]>([]);\n\tconst [loading, setLoading] = useState<boolean>(false);\n\tconst [mapItems, setMapItems] = useState<any>(getStorageObject('mapItems', []) || []);\n\tconst [query, setQuery] = useState<string | null>(() => resetFilters ? null : getQuery());\n\tconst [sortSetting, setSortSetting] = useState<{ field: string; type: string }>(getStorageObject('sortSetting', { field: 'position', type: 'asc' }) || { field: 'position', type: 'asc' });\n\tconst [listingEntities, setListingEntities] = useState<Record<number, ListingEntity> | null>({});\n\tconst [firstLoad, setFirstLoad] = useState<boolean>(true);\n\tconst [commuteLocation, setCommuteLocation] = useState<any | null>(getStorageObject('commuteLocation'));\n\tconst [selectedFilters, setSelectedFilters] = useState<Record<string, any>>(() => resetFilters ? {} : firstLoadFilters());\n\tconst [filterOptions, setFilterOptions] = useState<any>();\n\tconst [recruiters, setRecruiters] = useState<Record<number, Recruiter>>({});\n\tconst [filterDialogIsOpen, setFilterDialogIsOpen] = useState<boolean>(false);\n\tconst [mobileTab, setMobileTab] = useState<string>(\"listTab\");\n\tconst [favorites, setFavorites] = useState<number[]>([]);\n\tconst [filterByFavorites, setFilterByFavorites] = useState<boolean>(false);\n\n\tconst setNewFilteredListings = (filteredListings: Listing[]) => {\n\t\tsetFilteredListings(filteredListings);\n\t};\n\n\tuseEffect(() => {\n\t\tif (!sortSetting) return;\n\t\tlocalStorage.setItem('sortSetting', JSON.stringify(sortSetting));\n\t\tsetNewFilteredListings(filteredListings);\n\t}, [sortSetting]);\n\n\tuseEffect(() => {\n\t\tconst loadedFavorites = JSON.parse(localStorage.getItem('favorites') || '[]');\n\t\tsetFavorites(loadedFavorites);\n\t}, []);\n\n\tuseEffect(() => {\n\t\tsetStorageObject(\"commuteLocation\", commuteLocation);\n\t}, [commuteLocation]);\n\n\tuseEffect(() => {\n\t\tif (!commuteLocation) return;\n\n\t\tasync function fetchEntities() {\n\t\t\tconst distinctEntityIds = [\n\t\t\t\t...new Set(allListings.map(listing => listing.entityId ?? -1))\n\t\t\t];\n\t\t\ttry {\n\t\t\t\tconst fetchedEntities = await getListingEntities(\n\t\t\t\t\tdistinctEntityIds,\n\t\t\t\t\t`${commuteLocation.lat}, ${commuteLocation.lng}`\n\t\t\t\t);\n\t\t\t\tsetListingEntities(fetchedEntities);\n\t\t\t\tconst newFilteredListings: Listing[] = [...filteredListings] ?? [];\n\t\t\t\tfor (let i = 0; i < allListings.length; i++) {\n\t\t\t\t\tconst listing = newFilteredListings[i];\n\t\t\t\t\tif (\n\t\t\t\t\t\tlisting &&\n\t\t\t\t\t\tlisting.fields &&\n\t\t\t\t\t\tlisting.entityId !== undefined &&\n\t\t\t\t\t\tlisting.entityId !== -1\n\t\t\t\t\t) {\n\t\t\t\t\t\tconst entityId = listing.entityId;\n\t\t\t\t\t\tconst travelTime = fetchedEntities[entityId]?.travelTime;\n\n\t\t\t\t\t\tif (travelTime !== undefined && listing.fields) {\n\t\t\t\t\t\t\tlisting.fields.travelTime = travelTime;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error(\"Failed to fetch listing entities:\", error);\n\t\t\t}\n\t\t}\n\n\t\tfetchEntities();\n\t}, [commuteLocation, allListings, siteConfig.companyId]);\n\n\tuseEffect(() => {\n\t\tconst handleFetchListings = async () => {\n\t\t\tif (!getStorageObject('listings') ?? [].length) {\n\t\t\t\tsetLoading(true);\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tconst {\n\t\t\t\t\tlistingsResult,\n\t\t\t\t\tfetchedEntities,\n\t\t\t\t\tdistinctItems\n\t\t\t\t} = await fetchListings(commuteLocation, entities, listings);\n\t\t\t\tif (defaultFilters) {\n\t\t\t\t\tconst filteredListings = listingsResult.filter(listing => {\n\t\t\t\t\tif (!listing.fields) return false;\n\n\t\t\t\t\treturn Object.keys(defaultFilters).every(filterKey => {\n\t\t\t\t\t\tconst filterValues = defaultFilters[filterKey as keyof typeof defaultFilters];\n\t\t\t\t\t\tconst listingValue = listing.fields ? listing.fields[filterKey as keyof typeof listing.fields] : null;\n\t\t\t\t\t\treturn filterValues.includes(listingValue);\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tsetAllListings(filteredListings);\n\t\t\t} else {\n\t\t\t\tsetAllListings(listingsResult);\n\t\t\t}\n\t\t\t\tsetListingEntities(fetchedEntities);\n\t\t\t\tsetMapItems(distinctItems);\n\t\t\t} catch (error) {\n\t\t\t\tconsole.log(error);\n\t\t\t}\n\t\t\tsetLoading(false);\n\t\t};\n\t\thandleFetchListings();\n\t}, [query, siteConfig, commuteLocation]);\n\n\tuseEffect(() => {\n\t\tconst processListings = () => {\n\t\t\tlet filteredListings: Listing[];\n\t\t\tlet tempSelectedFilters = selectedFilters;\n\t\t\tlet tempQuery = query;\n\n\t\t\tconst { mapItems, filteredListings: tempFilteredListings } = applyFilters(\n\t\t\t\tallListings,\n\t\t\t\ttempSelectedFilters,\n\t\t\t\ttempQuery,\n\t\t\t\tlistingEntities,\n\t\t\t\tfavorites,\n\t\t\t\tsiteConfig\n\t\t\t);\n\t\t\tfilteredListings = tempFilteredListings;\n\n\t\t\tif (filterByFavorites) {\n\t\t\t\tfilteredListings = filteredListings.filter((x: Listing) => favorites.includes(x.id));\n\t\t\t}\n\t\t\tsetNewFilteredListings(filteredListings);\n\t\t\tif (firstLoad && tempSelectedFilters) {\n\t\t\t\t// Update URL with filters if needed\n\t\t\t} else if (Object.keys(tempSelectedFilters).length === 0 && !firstLoad) {\n\t\t\t\tlocalStorage.removeItem('selectedFilters');\n\t\t\t} else if (!firstLoad) {\n\t\t\t\tsetStorageObject('selectedFilters', tempSelectedFilters);\n\t\t\t}\n\t\t\tif(setFiltersUrl === true)\n\t\t\t{\n\t\t\t\tupdateURLWithFilters(tempSelectedFilters, window.location, tempQuery, handleUrlUpdate);\n\t\t\t}\n\t\t\ttempQuery != null ? localStorage.setItem('query', tempQuery) : localStorage.removeItem('query');\n\t\t\tsetMapItems(mapItems);\n\n\t\t\tif (tempSelectedFilters) {\n\t\t\t\tconst keys = Object.keys(tempSelectedFilters);\n\t\t\t\tconst lastKey = keys[keys.length - 1];\n\t\t\t\tconst options = generateFilterOptions(\n\t\t\t\t\tfilteredListings,\n\t\t\t\t\tallListings,\n\t\t\t\t\tsiteConfig,\n\t\t\t\t\tfilterOptions,\n\t\t\t\t\tlastKey,\n\t\t\t\t\tfavorites,\n\t\t\t\t\ttempSelectedFilters\n\t\t\t\t);\n\t\t\t\tif (options) {\n\t\t\t\t\tsetFilterOptions(options);\n\t\t\t\t\tif (firstLoad) setFirstLoad(false);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tprocessListings();\n\t}, [selectedFilters, query, listingEntities, filterByFavorites, favorites]);\n\n\tconst handleFilterListingsByLocation = (selectedLocation: any) => {\n\t\tconst { filteredListings } = filterListingsByLocation(\n\t\t\tallListings,\n\t\t\tselectedLocation,\n\t\t\tlistingEntities\n\t\t);\n\t\tsetNewFilteredListings(filteredListings);\n\t};\n\n\tconst resetEntityFilter = () => {\n\t\tlet newFilters = {...selectedFilters};\n\t\tdelete newFilters.entityId;\n\t\tsetSelectedFilters(newFilters);\n\t}\n\n\tconst handleSettingFavorites = (newFavorites: number[] | null) => {\n\t\tif (newFavorites == null) {\n\t\t\tlocalStorage.removeItem('favorites');\n\t\t} else {\n\t\t\tsetFavorites(newFavorites);\n\t\t\tlocalStorage.setItem('favorites', JSON.stringify(newFavorites));\n\t\t}\n\t};\n\n\treturn (\n\t\t<MapListContext.Provider value={{\n\t\t\tloading,\n\t\t\tallListings,\n\t\t\tfilteredListings,\n\t\t\tmapItems,\n\t\t\tquery,\n\t\t\tsetNewFilteredListings,\n\t\t\tsetQuery,\n\t\t\tlistingEntities,\n\t\t\tselectedFilters,\n\t\t\tsetSelectedFilters,\n\t\t\tfilterOptions,\n\t\t\trecruiters,\n\t\t\thandleFilterListingsByLocation,\n\t\t\tfilterDialogIsOpen,\n\t\t\tsetFilterDialogIsOpen,\n\t\t\tsetMobileTab,\n\t\t\tmobileTab,\n\t\t\tsiteConfig,\n\t\t\tfavorites,\n\t\t\thandleSettingFavorites,\n\t\t\tresetEntityFilter,\n\t\t\tsetFilterByFavorites,\n\t\t\tfilterByFavorites,\n\t\t\tcommuteLocation,\n\t\t\tsetCommuteLocation,\n\t\t\tnavigateToDetails,\n\t\t\tnavigateToEasyApply,\n\t\t\tLink,\n\t\t\tlinkFormat,\n\t\t\teasyApplyUrl,\n\t\t\teasyApplyText,\n\t\t\tisIframe,\n\t\t\tsortSetting,\n\t\t\tsetSortSetting,\n\t\t\ttrackEvent,\n\t\t\tdefaultFilters,\n\t\t\thiddenFilters,\n\t\t\tcontainerStyle,\n\t\t\tExpandListComponent\n\t\t}}>\n\t\t\t{children}\n\t\t</MapListContext.Provider>\n\t);\n};\n"],"names":["React"],"mappings":";;;;;;;AAwDA,MAAM,cAAc,GAAG,aAAa,CAAkC,SAAS,CAAC,CAAC;AAE1E,MAAM,UAAU,GAAG,MAAK;AAC9B,IAAA,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE;AACb,QAAA,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;AACpE,KAAA;AACD,IAAA,OAAO,OAAO,CAAC;AAChB,EAAE;AAEF,MAAM,QAAQ,GAAG,MAAoB;IACpC,IAAI,KAAK,GAAkB,IAAI,CAAC;AAChC,IAAA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AAClC,QAAA,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AACtC,KAAA;AACD,IAAA,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;MAwBW,eAAe,GAAmC,CAAC,EAC/D,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,UAAU,EACV,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,EAAE,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,KAAI;IACJ,MAAM,gB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AAA,IAAI,UAAU,GAAG,EAAC,GAAG,eAAe,EAAC,CAAC;QACtC,OAAO,UAAU,CAAC,QAAQ,CAAC;QAC3B,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAChC,KAAC,CAAA;AAED,IAAA,MAAM,sBAAsB,GAAG,CAAC,YAA6B,KAAI;QAChE,IAAI,YAAY,IAAI,IAAI,EAAE;AACzB,YAAA,YAAY,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;AACrC,SAAA;AAAM,aAAA;YACN,YAAY,CAAC,YAAY,CAAC,CAAC;AAC3B,YAAA,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;AAChE,SAAA;AACF,KAAC,CAAC;AAEF,IAAA,QACCA,cAAC,CAAA,aAAA,CAAA,cAAc,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAE;YAC/B,OAAO;YACP,WAAW;YACX,gBAAgB;YAChB,QAAQ;YACR,KAAK;YACL,sBAAsB;YACtB,QAAQ;YACR,eAAe;YACf,eAAe;YACf,kBAAkB;YAClB,aAAa;YACb,UAAU;YACV,8BAA8B;YAC9B,kBAAkB;YAClB,qBAAqB;YACrB,YAAY;YACZ,SAAS;YACT,UAAU;YACV,SAAS;YACT,sBAAsB;YACtB,iBAAiB;YACjB,oBAAoB;YACpB,iBAAiB;YACjB,eAAe;YACf,kBAAkB;YAClB,iBAAiB;YACjB,mBAAmB;YACnB,IAAI;YACJ,UAAU;YACV,YAAY;YACZ,aAAa;YACb,QAAQ;YACR,WAAW;YACX,cAAc;YACd,UAAU;YACV,cAAc;YACd,aAAa;YACb,cAAc;YACd,mBAAmB;SACnB,EACC,EAAA,QAAQ,CACgB,EACzB;AACH;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ButtonGroupApply;
|
|
2
|
-
declare function ButtonGroupApply({ useDetailsPostMessage, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, applyNowText, detailsUrl, detailsText, easyApplyText, className, buttonSize, applyButtonVariant, detailsButtonVariant, includeDialog, internalApplyLink, item, companyName, trackEvent, eventTypes }: {
|
|
2
|
+
declare function ButtonGroupApply({ useDetailsPostMessage, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, applyNowText, isIframe, detailsUrl, detailsText, easyApplyText, className, buttonSize, applyButtonVariant, detailsButtonVariant, includeDialog, internalApplyLink, item, companyName, trackEvent, eventTypes }: {
|
|
3
3
|
useDetailsPostMessage: any;
|
|
4
4
|
navigateToDetails: any;
|
|
5
5
|
navigateToEasyApply: any;
|
|
@@ -7,6 +7,7 @@ declare function ButtonGroupApply({ useDetailsPostMessage, navigateToDetails, na
|
|
|
7
7
|
linkFormat: any;
|
|
8
8
|
easyApplyUrl: any;
|
|
9
9
|
applyNowText?: string | undefined;
|
|
10
|
+
isIframe: any;
|
|
10
11
|
detailsUrl: any;
|
|
11
12
|
detailsText?: string | undefined;
|
|
12
13
|
easyApplyText: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function Anchor({ children, href, className, size, variant, isBlock, hasUnderline, target, ...rest }: {
|
|
1
|
+
export function Anchor({ children, href, className, size, variant, isBlock, hasUnderline, target, execOnClick, isIframe, iframeMsgType, ...rest }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
children: any;
|
|
4
4
|
href: any;
|
|
@@ -8,6 +8,9 @@ export function Anchor({ children, href, className, size, variant, isBlock, hasU
|
|
|
8
8
|
isBlock: any;
|
|
9
9
|
hasUnderline: any;
|
|
10
10
|
target?: string | undefined;
|
|
11
|
+
execOnClick?: null | undefined;
|
|
12
|
+
isIframe?: boolean | undefined;
|
|
13
|
+
iframeMsgType: any;
|
|
11
14
|
}): React.JSX.Element;
|
|
12
15
|
export function AnchorLink({ children, Link, href, className, size, variant, isBlock, hasUnderline, ...rest }: {
|
|
13
16
|
[x: string]: any;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export default ApplyDialog;
|
|
2
|
-
declare function ApplyDialog({ children, applyUrl, internalApplyLink, companyName }: {
|
|
2
|
+
declare function ApplyDialog({ children, applyUrl, internalApplyLink, companyName, item, trackEvent, eventTypes, isIframe }: {
|
|
3
3
|
children: any;
|
|
4
4
|
applyUrl: any;
|
|
5
5
|
internalApplyLink: any;
|
|
6
6
|
companyName: any;
|
|
7
|
+
item: any;
|
|
8
|
+
trackEvent: any;
|
|
9
|
+
eventTypes: any;
|
|
10
|
+
isIframe: any;
|
|
7
11
|
}): React.JSX.Element;
|
|
8
12
|
import React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ListingDetails;
|
|
2
|
-
declare function ListingDetails({ item, useDetailsPostMessage, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, easyApplyText, useApplyDialog, internalApplyLink, companyName, jobsDomain, trackEvent, eventTypes }: {
|
|
2
|
+
declare function ListingDetails({ item, useDetailsPostMessage, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, easyApplyText, isIframe, useApplyDialog, internalApplyLink, companyName, jobsDomain, trackEvent, eventTypes }: {
|
|
3
3
|
item: any;
|
|
4
4
|
useDetailsPostMessage: any;
|
|
5
5
|
navigateToDetails: any;
|
|
@@ -8,6 +8,7 @@ declare function ListingDetails({ item, useDetailsPostMessage, navigateToDetails
|
|
|
8
8
|
linkFormat: any;
|
|
9
9
|
easyApplyUrl: any;
|
|
10
10
|
easyApplyText: any;
|
|
11
|
+
isIframe: any;
|
|
11
12
|
useApplyDialog: any;
|
|
12
13
|
internalApplyLink: any;
|
|
13
14
|
companyName: any;
|
|
@@ -3,6 +3,9 @@ export namespace eventTypes {
|
|
|
3
3
|
const MAP_MARKER_CLICKED: string;
|
|
4
4
|
const JOB_LISTING_SELECTED: string;
|
|
5
5
|
const APPLY_NOW_CLICKED: string;
|
|
6
|
+
const APPLY_OPEN_CLICKED: string;
|
|
7
|
+
const APPLY_OPTION_1_CLICKED: string;
|
|
8
|
+
const APPLY_OPTION_2_CLICKED: string;
|
|
6
9
|
const EASY_APPLY_CLICKED: string;
|
|
7
10
|
const VIEW_DETAILS_CLICKED: string;
|
|
8
11
|
const COMMUTE_ORIGIN_ADDED: string;
|
|
@@ -35,6 +35,7 @@ interface MapListContextProps {
|
|
|
35
35
|
linkFormat: string;
|
|
36
36
|
easyApplyUrl: string;
|
|
37
37
|
easyApplyText: string;
|
|
38
|
+
isIframe: boolean;
|
|
38
39
|
sortSetting: {
|
|
39
40
|
field: string;
|
|
40
41
|
type: string;
|
|
@@ -62,6 +63,7 @@ interface MapListProviderProps {
|
|
|
62
63
|
linkFormat: string;
|
|
63
64
|
easyApplyUrl: string;
|
|
64
65
|
easyApplyText: string;
|
|
66
|
+
isIframe: boolean;
|
|
65
67
|
trackEvent: (event: string) => void;
|
|
66
68
|
listings?: Listing[];
|
|
67
69
|
entities?: ListingEntity[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function dynamicSort(items: any, fieldName: any, order?: string, favorites?: null): any;
|
|
1
|
+
export function dynamicSort(items: any, fieldName: any, order?: string, favorites?: null): any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterUtil.js","sources":["../../src/util/filterUtil.js"],"sourcesContent":["/* eslint-disable no-undef */\nimport { getDistinctItemsByProximity } from '~/util/mapUtil';\n\nimport Fuse from 'fuse.js';\n\nexport const getFilterOptions = (listings, filteredListings, field, excludeZeroCount = null) => {\n\tconst options = new Set();\n\tlistings.forEach(listing => {\n\t\tif (listing.fields[field]) {\n\t\t\toptions.add(listing.fields[field]);\n\t\t}\n\t});\n\n\tconst optionCounts = {};\n\toptions.forEach(option => {\n\t\toptionCounts[option] = 0;\n\t});\n\n\tfilteredListings.forEach(listing => {\n\t\tconst value = listing.fields[field];\n\t\tif (value && optionCounts.hasOwnProperty(value)) {\n\t\t\toptionCounts[value] += 1;\n\t\t}\n\t});\n\n\treturn Array.from(options)\n\t\t.sort()\n\t\t.map(option => ({\n\t\t\tname: option,\n\t\t\tcount: optionCounts[option] || 0\n\t\t}))\n\t\t.filter(option => !(excludeZeroCount === true && option.count === 0));\n};\n\nexport const getSpecialFeatureOptions = (listings, filteredListings, siteConfig, favorites) => {\n\tconst specialFeatures = siteConfig.specialFeatures;\n\tconst featureCounts = Object.keys(specialFeatures).sort().reduce((acc, key) => {\n\t\tacc[specialFeatures[key]] = 0;\n\t\treturn acc;\n\t}, {});\n\n\tfilteredListings.forEach(listing => {\n\t\tObject.entries(specialFeatures).forEach(([featureKey, featureName]) => {\n\t\t\tif (listing.fields[featureKey] == 1) {\n\t\t\t\tfeatureCounts[featureName] += 1;\n\t\t\t}\n\t\t});\n\t});\n\n\tconst specialFeatureOptions = Object.entries(featureCounts).map(([name, count]) => ({\n\t\tname,\n\t\tcount\n\t}));\n\n\tfor (let option of specialFeatureOptions) {\n\t\tif (option.name === 'Favorite') {\n\t\t\toption.count = filteredListings.filter(x => favorites.includes(x.id)).length;\n\t\t}\n\t}\n\n\treturn specialFeatureOptions;\n};\n\nconst getPointsOfInterestOptions = pointsOfInterestNames => {\n\treturn Object.entries(pointsOfInterestNames).sort().map(([key, name]) => ({\n\t\tkey,\n\t\tname\n\t}));\n};\n\nexport const generateFilterOptions = (\n\tfilteredListings,\n\tallListings,\n\tsiteConfig,\n\tfilterOptions,\n\tparentField,\n\tfavorites,\n\tselectedFilters\n) => {\n\tif (allListings.length > 0) {\n\t\tconst dynamicFilters = siteConfig.fieldFiltersShown.map(fieldName => {\n\t\t\tif (fieldName === parentField && filterOptions?.filters) {\n\t\t\t\treturn filterOptions.filters.find(filter => filter.id === fieldName);\n\t\t\t}\n\t\t\tif(fieldName == 'categoryClass'){\n\t\t\t\treturn {\n\t\t\t\t\tid: fieldName,\n\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\titems: getFilterOptions(allListings, allListings, fieldName)\n\t\t\t\t};\n\t\t\t}\n\t\t\tif(fieldName == 'category' && selectedFilters.categoryClass){\n\t\t\t\tconst categoryClassKeys = Object.keys(selectedFilters.categoryClass);\n\t\t\t\tconst filteredListings = allListings.filter(\n\t\t\t\t\tx => categoryClassKeys.includes(x.fields?.categoryClass)\n\t\t\t\t);\n\t\t\t\treturn {\n\t\t\t\t\tid: fieldName,\n\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\titems: getFilterOptions(allListings, filteredListings, fieldName, false)\n\t\t\t\t};\n\t\t\t}\n\t\t\tif (fieldName == \"specialFeatures\") {\n\t\t\t\treturn {\n\t\t\t\t\tid: fieldName,\n\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\titems: getSpecialFeatureOptions(allListings, filteredListings, siteConfig, favorites).sort()\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tid: fieldName,\n\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\titems: getFilterOptions(allListings, filteredListings, fieldName)\n\t\t\t};\n\t\t});\n\n\t\tconst locations =\n\t\t\tsiteConfig.locationFiltersShown.map((fieldName, index) => {\n\t\t\t\tlet locationFilteredListings = allListings;\n\t\t\t\tlocationFilteredListings = allListings.filter(listing => {\n\t\t\t\t\treturn Object.entries(selectedFilters).every(([key, value]) => {\n\t\t\t\t\t\tif (siteConfig.locationFiltersShown.includes(key)) return true;\n\t\t\t\t\t\tif (value && typeof value === 'object' && value[listing.fields[key]] === true) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tif (index === 0) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tid: fieldName,\n\t\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\t\titems: getFilterOptions(allListings, locationFilteredListings, fieldName, true)\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\t if (fieldName === 'entityName' && filterOptions?.locations) {\n\t\t\t\t\tconst cityIncluded = siteConfig.locationFiltersShown.includes('city');\n\t\t\t\t\tconst stateIncluded = siteConfig.locationFiltersShown.includes('state');\n\t\t\t\t\tconst cityStateIncluded = siteConfig.locationFiltersShown.includes('cityState');\n\t\t\t\t\tconst uniqueCities = cityIncluded ? [...new Set(filteredListings.map(listing => listing.fields.city))] : [];\n\t\t\t\t\tconst uniqueStates = stateIncluded ? [...new Set(filteredListings.map(listing => listing.fields.state))] : [];\n\t\t\t\t\tconst uniqueCityStates = cityStateIncluded ? [...new Set(filteredListings.map(listing => listing.fields.cityState))] : [];\n\t\t\t\t\tconst filteredByLocation = locationFilteredListings.filter(listing => {\n\t\t\t\t\t\tconst cityMatches = cityIncluded ? uniqueCities.includes(listing.fields.city) : true;\n\t\t\t\t\t\tconst stateMatches = stateIncluded ? uniqueStates.includes(listing.fields.state) : true;\n\t\t\t\t\t\tconst cityStateMatches = cityStateIncluded ? uniqueCityStates.includes(listing.fields.cityState) : true;\n\t\t\t\t\t\treturn cityMatches && stateMatches && cityStateMatches;\n\t\t\t\t\t});\n\t\t\t\t\treturn {\n\t\t\t\t\t\tid: fieldName,\n\t\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\t\titems: getFilterOptions(allListings, filteredByLocation, fieldName, true)\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tif (fieldName === 'city') {\n\t\t\t\t\tif (siteConfig.locationFiltersShown.includes('state') && selectedFilters.state) {\n\t\t\t\t\t\tconst selectedStates = Object.keys(selectedFilters.state).filter(\n\t\t\t\t\t\t\tstate => selectedFilters.state[state] === true\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tconst filteredByLocation = locationFilteredListings.filter(listing =>\n\t\t\t\t\t\t\tselectedStates.includes(listing.fields.state)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tid: fieldName,\n\t\t\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\t\t\titems: getFilterOptions(allListings, filteredByLocation, fieldName, true)\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn {\n\t\t\t\t\tid: fieldName,\n\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\titems: getFilterOptions(allListings, filteredListings, fieldName, true)\n\t\t\t\t};\n\t\t\t});\n\n\t\tconst pointsOfInterest = {\n\t\t\tid: \"pointsOfInterest\",\n\t\t\ttitle: siteConfig.pointsOfInterestConfig.title,\n\t\t\titems: getPointsOfInterestOptions(\n\t\t\t\tsiteConfig.pointsOfInterestConfig.pointsOfInterestNames\n\t\t\t)\n\t\t};\n\n\t\treturn {\n\t\t\tfilters: dynamicFilters,\n\t\t\tlocations: locations,\n\t\t\tpointsOfInterest: pointsOfInterest\n\t\t};\n\t}\n\n\treturn null;\n};\n\nexport const applyFilters = (\n\tallListings,\n\tselectedFilters,\n\tquery,\n\tlistingEntities,\n\tfavorites,\n\tsiteConfig\n) => {\n\tlet results = allListings;\n\tlet invertedSpecialFeaturesMap;\n\tif (siteConfig.specialFeatures) {\n\t\tinvertedSpecialFeaturesMap = Object.entries(siteConfig.specialFeatures).reduce((acc, [key, value]) => {\n\t\t\tacc[value] = key;\n\t\t\treturn acc;\n\t\t}, {});\n\n\t}\n\tconst hasFavorite = !!selectedFilters.specialFeatures && !!selectedFilters.specialFeatures.Favorite;\n\n\tif (hasFavorite && selectedFilters.specialFeatures.Favorite == true) {\n\t\tresults = results.filter(x => favorites.includes(x.id));\n\t}\n\tvar favorite;\n\tif (hasFavorite) {\n\t\tfavorite = selectedFilters.specialFeatures.Favorite;\n\t\tdelete selectedFilters.specialFeatures.Favorite;\n\t}\n\tfor (const [field, filterItems] of Object.entries(selectedFilters)) {\n\t\tconst formattedField = field;\n\t\tif (field === \"pointsOfInterest\") continue;\n\t\tif (field === \"specialFeatures\" && invertedSpecialFeaturesMap && Object.keys(filterItems).length > 0) {\n\t\t\tresults = results.filter(listing => {\n\t\t\t\treturn Object.entries(filterItems).some(([filterName, filterValue]) => {\n\t\t\t\t\tconst listingFieldName = invertedSpecialFeaturesMap[filterName];\n\t\t\t\t\treturn filterValue && listing.fields[listingFieldName] == 1;\n\t\t\t\t});\n\t\t\t});\n\t\t} else if (Object.keys(filterItems).length > 0) {\n\t\t\tresults = results.filter(listing =>\n\t\t\t\tfilterItems.hasOwnProperty(listing.fields[formattedField])\n\t\t\t);\n\t\t}\n\t}\n\tif (query) {\n\t\tresults = searchResults(results, query);\n\t}\n\tconst distinctItems = getDistinctItemsByProximity(results, listingEntities);\n\tif (hasFavorite) {\n\t\tselectedFilters.specialFeatures.Favorite = favorite;\n\t}\n\n\treturn { filteredListings: results, mapItems: distinctItems };\n};\n\nfunction searchResults(results, query) {\n\tconst fields = [\n\t\t'id',\n\t\t'uniqueId',\n\t\t'fields.posted',\n\t\t'fields.subtitle',\n\t\t'fields.education',\n\t\t'fields.position',\n\t\t'fields.category',\n\t\t'fields.categoryclass',\n\t\t'fields.shift',\n\t\t'fields.citystate',\n\t\t'fields.city',\n\t\t'fields.state',\n\t\t'fields.schedule',\n\t\t'fields.customflag1',\n\t\t'fields.bonus',\n\t\t'fields.remote',\n\t\t'fields.useclientjoburl',\n\t\t'fields.datecreated',\n\t\t'fields.datelastedited'\n\t];\n\n\tconst options = {\n\t\tincludeScore: true,\n\t\tthreshold: 0.3,\n\t\tkeys: fields\n\t};\n\n\tconst fuse = new Fuse(results, options);\n\tconst lowerCaseQuery = query.toLowerCase();\n\tconst queryTerms = lowerCaseQuery.split(' ');\n\n\tconst exactIdMatch = results.find(result => result.id.toString() === query || result.uniqueId === query);\n\tif (exactIdMatch) {\n\t\treturn [exactIdMatch];\n\t}\n\n\tconst fuseQuery = queryTerms.map(term => ({\n\t\t$or: fields.map(field => ({ [field]: term }))\n\t}));\n\n\tconst fuseResults = fuse.search({ $and: fuseQuery });\n\n\treturn fuseResults.map(result => result.item);\n}\n\nexport const filterListingsByLocation = (\n\tallListings,\n\tselectedLocation,\n\tlistingEntities\n) => {\n\tlet results = allListings;\n\tif (selectedLocation !== null) {\n\t\tresults = results.filter(item =>\n\t\t\tselectedLocation.items.hasOwnProperty(item.id)\n\t\t);\n\t}\n\tconst mapItems = getDistinctItemsByProximity(results, listingEntities);\n\treturn { filteredListings: results, mapItems: mapItems };\n};\n"],"names":["getFilterOptions","listings","filteredListings","field","excludeZeroCount","arguments","length","undefined","options","Set","forEach","listing","fields","add","optionCounts","option","value","hasOwnProperty","Array","from","sort","map","name","count","filter","getSpecialFeatureOptions","siteConfig","favorites","specialFeatures","featureCounts","Object","keys","reduce","acc","key","entries","_ref","_ref2","_slicedToArray","featureKey","featureName","specialFeatureOptions","_ref3","_ref4","_iterator","_createForOfIteratorHelper","_step","s","n","done","x","includes","id","err","e","f","getPointsOfInterestOptions","pointsOfInterestNames","_ref5","_ref6","generateFilterOptions","allListings","filterOptions","parentField","selectedFilters","dynamicFilters","fieldFiltersShown","fieldName","filters","find","title","fieldNames","items","categoryClass","categoryClassKeys","_x$fields","locations","locationFiltersShown","index","locationFilteredListings","every","_ref7","_ref8","_typeof","cityIncluded","stateIncluded","cityStateIncluded","uniqueCities","_toConsumableArray","city","uniqueStates","state","uniqueCityStates","cityState","filteredByLocation","cityMatches","stateMatches","cityStateMatches","selectedStates","pointsOfInterest","pointsOfInterestConfig","applyFilters","query","listingEntities","results","invertedSpecialFeaturesMap","_ref9","_ref10","hasFavorite","Favorite","favorite","_loop","_Object$entries$_i","_Object$entries","_i","filterItems","formattedField","some","_ref11","_ref12","filterName","filterValue","listingFieldName","searchResults","distinctItems","getDistinctItemsByProximity","mapItems","includeScore","threshold","fuse","Fuse","lowerCaseQuery","toLowerCase","queryTerms","split","exactIdMatch","result","toString","uniqueId","fuseQuery","term","$or","_defineProperty","fuseResults","search","$and","item","filterListingsByLocation","selectedLocation"],"mappings":";;;;AAKO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,QAAQ,EAAEC,gBAAgB,EAAEC,KAAK,EAA8B;AAAA,E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EA,EAAA,IAAMI,SAAS,GAAGN,UAAU,CAAChH,GAAG,CAAC,UAAAuH,IAAI,EAAA;IAAA,OAAK;AACzCC,MAAAA,GAAG,EAAEjI,MAAM,CAACS,GAAG,CAAC,UAAAlB,KAAK,EAAA;AAAA,QAAA,OAAA2I,eAAA,CAAA,EAAA,EAAQ3I,KAAK,EAAGyI,IAAI,CAAA,CAAA;OAAG,CAAA;KAC5C,CAAA;AAAA,GAAC,CAAC,CAAA;AAEH,EAAA,IAAMG,WAAW,GAAGd,IAAI,CAACe,MAAM,CAAC;AAAEC,IAAAA,IAAI,EAAEN,SAAAA;AAAU,GAAC,CAAC,CAAA;AAEpD,EAAA,OAAOI,WAAW,CAAC1H,GAAG,CAAC,UAAAmH,MAAM,EAAA;IAAA,OAAIA,MAAM,CAACU,IAAI,CAAA;GAAC,CAAA,CAAA;AAC9C,CAAA;AAEO,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CACpCtF,WAAW,EACXuF,gBAAgB,EAChB7C,eAAe,EACX;EACJ,IAAIC,OAAO,GAAG3C,WAAW,CAAA;EACzB,IAAIuF,gBAAgB,KAAK,IAAI,EAAE;AAC9B5C,IAAAA,OAAO,GAAGA,OAAO,CAAChF,MAAM,CAAC,UAAA0H,IAAI,EAAA;MAAA,OAC5BE,gBAAgB,CAAC5E,KAAK,CAACvD,cAAc,CAACiI,IAAI,CAAC9F,EAAE,CAAC,CAAA;AAAA,KAC/C,CAAC,CAAA;AACF,GAAA;AACA,EAAA,IAAM0E,QAAQ,GAAGD,2BAA2B,CAACrB,OAAO,EAAED,eAAe,CAAC,CAAA;EACtE,OAAO;AAAErG,IAAAA,gBAAgB,EAAEsG,OAAO;AAAEsB,IAAAA,QAAQ,EAAEA,QAAAA;GAAU,CAAA;AACzD;;;;"}
|
|
1
|
+
{"version":3,"file":"filterUtil.js","sources":["../../src/util/filterUtil.js"],"sourcesContent":["/* eslint-disable no-undef */\nimport { getDistinctItemsByProximity } from '~/util/mapUtil';\n\nimport Fuse from 'fuse.js';\n\nexport const getFilterOptions = (listings, filteredListings, field, excludeZeroCount = null) => {\n\tconst options = new Set();\n\tlistings.forEach(listing => {\n\t\tif (listing.fields[field]) {\n\t\t\toptions.add(listing.fields[field]);\n\t\t}\n\t});\n\n\tconst optionCounts = {};\n\toptions.forEach(option => {\n\t\toptionCounts[option] = 0;\n\t});\n\n\tfilteredListings.forEach(listing => {\n\t\tconst value = listing.fields[field];\n\t\tif (value && optionCounts.hasOwnProperty(value)) {\n\t\t\toptionCounts[value] += 1;\n\t\t}\n\t});\n\n\treturn Array.from(options)\n\t\t.sort()\n\t\t.map(option => ({\n\t\t\tname: option,\n\t\t\tcount: optionCounts[option] || 0\n\t\t}))\n\t\t.filter(option => !(excludeZeroCount === true && option.count === 0));\n};\n\nexport const getSpecialFeatureOptions = (listings, filteredListings, siteConfig, favorites) => {\n\tconst specialFeatures = siteConfig.specialFeatures;\n\tconst featureCounts = Object.keys(specialFeatures).sort().reduce((acc, key) => {\n\t\tacc[specialFeatures[key]] = 0;\n\t\treturn acc;\n\t}, {});\n\n\tfilteredListings.forEach(listing => {\n\t\tObject.entries(specialFeatures).forEach(([featureKey, featureName]) => {\n\t\t\tif (listing.fields[featureKey] == 1) {\n\t\t\t\tfeatureCounts[featureName] += 1;\n\t\t\t}\n\t\t});\n\t});\n\n\tconst specialFeatureOptions = Object.entries(featureCounts).map(([name, count]) => ({\n\t\tname,\n\t\tcount\n\t}));\n\n\tfor (let option of specialFeatureOptions) {\n\t\tif (option.name === 'Favorite') {\n\t\t\toption.count = filteredListings.filter(x => favorites.includes(x.id)).length;\n\t\t}\n\t}\n\n\treturn specialFeatureOptions;\n};\n\nconst getPointsOfInterestOptions = pointsOfInterestNames => {\n\treturn Object.entries(pointsOfInterestNames).sort().map(([key, name]) => ({\n\t\tkey,\n\t\tname\n\t}));\n};\n\nexport const generateFilterOptions = (\n\tfilteredListings,\n\tallListings,\n\tsiteConfig,\n\tfilterOptions,\n\tparentField,\n\tfavorites,\n\tselectedFilters\n) => {\n\tif (allListings.length > 0) {\n\t\tconst dynamicFilters = siteConfig.fieldFiltersShown.map(fieldName => {\n\t\t\tif (fieldName === parentField && filterOptions?.filters) {\n\t\t\t\treturn filterOptions.filters.find(filter => filter.id === fieldName);\n\t\t\t}\n\t\t\tif(fieldName == 'categoryClass'){\n\t\t\t\treturn {\n\t\t\t\t\tid: fieldName,\n\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\titems: getFilterOptions(allListings, allListings, fieldName)\n\t\t\t\t};\n\t\t\t}\n\t\t\tif(fieldName == 'category' && selectedFilters.categoryClass){\n\t\t\t\tconst categoryClassKeys = Object.keys(selectedFilters.categoryClass);\n\t\t\t\tconst filteredListings = allListings.filter(\n\t\t\t\t\tx => categoryClassKeys.includes(x.fields?.categoryClass)\n\t\t\t\t);\n\t\t\t\treturn {\n\t\t\t\t\tid: fieldName,\n\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\titems: getFilterOptions(allListings, filteredListings, fieldName, false)\n\t\t\t\t};\n\t\t\t}\n\t\t\tif (fieldName == \"specialFeatures\") {\n\t\t\t\treturn {\n\t\t\t\t\tid: fieldName,\n\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\titems: getSpecialFeatureOptions(allListings, filteredListings, siteConfig, favorites).sort()\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tid: fieldName,\n\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\titems: getFilterOptions(allListings, filteredListings, fieldName)\n\t\t\t};\n\t\t});\n\n\t\tconst locations =\n\t\t\tsiteConfig.locationFiltersShown.map((fieldName, index) => {\n\t\t\t\tlet locationFilteredListings = allListings;\n\t\t\t\tlocationFilteredListings = allListings.filter(listing => {\n\t\t\t\t\treturn Object.entries(selectedFilters).every(([key, value]) => {\n\t\t\t\t\t\tif (siteConfig.locationFiltersShown.includes(key)) return true;\n\t\t\t\t\t\tif (value && typeof value === 'object' && value[listing.fields[key]] === true) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tif (index === 0) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tid: fieldName,\n\t\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\t\titems: getFilterOptions(allListings, locationFilteredListings, fieldName, true)\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\t if (fieldName === 'entityName' && filterOptions?.locations) {\n\t\t\t\t\tconst cityIncluded = siteConfig.locationFiltersShown.includes('city');\n\t\t\t\t\tconst stateIncluded = siteConfig.locationFiltersShown.includes('state');\n\t\t\t\t\tconst cityStateIncluded = siteConfig.locationFiltersShown.includes('cityState');\n\t\t\t\t\tconst uniqueCities = cityIncluded ? [...new Set(filteredListings.map(listing => listing.fields.city))] : [];\n\t\t\t\t\tconst uniqueStates = stateIncluded ? [...new Set(filteredListings.map(listing => listing.fields.state))] : [];\n\t\t\t\t\tconst uniqueCityStates = cityStateIncluded ? [...new Set(filteredListings.map(listing => listing.fields.cityState))] : [];\n\t\t\t\t\tconst filteredByLocation = locationFilteredListings.filter(listing => {\n\t\t\t\t\t\tconst cityMatches = cityIncluded ? uniqueCities.includes(listing.fields.city) : true;\n\t\t\t\t\t\tconst stateMatches = stateIncluded ? uniqueStates.includes(listing.fields.state) : true;\n\t\t\t\t\t\tconst cityStateMatches = cityStateIncluded ? uniqueCityStates.includes(listing.fields.cityState) : true;\n\t\t\t\t\t\treturn cityMatches && stateMatches && cityStateMatches;\n\t\t\t\t\t});\n\t\t\t\t\treturn {\n\t\t\t\t\t\tid: fieldName,\n\t\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\t\titems: getFilterOptions(allListings, filteredByLocation, fieldName, true)\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tif (fieldName === 'city') {\n\t\t\t\t\tif (siteConfig.locationFiltersShown.includes('state') && selectedFilters.state) {\n\t\t\t\t\t\tconst selectedStates = Object.keys(selectedFilters.state).filter(\n\t\t\t\t\t\t\tstate => selectedFilters.state[state] === true\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tconst filteredByLocation = locationFilteredListings.filter(listing =>\n\t\t\t\t\t\t\tselectedStates.includes(listing.fields.state)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tid: fieldName,\n\t\t\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\t\t\titems: getFilterOptions(allListings, filteredByLocation, fieldName, true)\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn {\n\t\t\t\t\tid: fieldName,\n\t\t\t\t\ttitle: siteConfig.fieldNames[fieldName],\n\t\t\t\t\titems: getFilterOptions(allListings, filteredListings, fieldName, true)\n\t\t\t\t};\n\t\t\t});\n\n\t\tconst pointsOfInterest = {\n\t\t\tid: \"pointsOfInterest\",\n\t\t\ttitle: siteConfig.pointsOfInterestConfig.title,\n\t\t\titems: getPointsOfInterestOptions(\n\t\t\t\tsiteConfig.pointsOfInterestConfig.pointsOfInterestNames\n\t\t\t)\n\t\t};\n\n\t\treturn {\n\t\t\tfilters: dynamicFilters,\n\t\t\tlocations: locations,\n\t\t\tpointsOfInterest: pointsOfInterest\n\t\t};\n\t}\n\n\treturn null;\n};\n\nexport const applyFilters = (\n\tallListings,\n\tselectedFilters,\n\tquery,\n\tlistingEntities,\n\tfavorites,\n\tsiteConfig\n) => {\n\tlet results = allListings;\n\tlet invertedSpecialFeaturesMap;\n\tif (siteConfig.specialFeatures) {\n\t\tinvertedSpecialFeaturesMap = Object.entries(siteConfig.specialFeatures).reduce((acc, [key, value]) => {\n\t\t\tacc[value] = key;\n\t\t\treturn acc;\n\t\t}, {});\n\n\t}\n\tconst hasFavorite = !!selectedFilters.specialFeatures && !!selectedFilters.specialFeatures.Favorite;\n\n\tif (hasFavorite && selectedFilters.specialFeatures.Favorite == true) {\n\t\tresults = results.filter(x => favorites.includes(x.id));\n\t}\n\tvar favorite;\n\tif (hasFavorite) {\n\t\tfavorite = selectedFilters.specialFeatures.Favorite;\n\t\tdelete selectedFilters.specialFeatures.Favorite;\n\t}\n\tfor (const [field, filterItems] of Object.entries(selectedFilters)) {\n\t\tconst formattedField = field;\n\t\tif (field === \"pointsOfInterest\") continue;\n\t\tif (field === \"specialFeatures\" && invertedSpecialFeaturesMap && Object.keys(filterItems).length > 0) {\n\t\t\tresults = results.filter(listing => {\n\t\t\t\treturn Object.entries(filterItems).some(([filterName, filterValue]) => {\n\t\t\t\t\tconst listingFieldName = invertedSpecialFeaturesMap[filterName];\n\t\t\t\t\treturn filterValue && listing.fields[listingFieldName] == 1;\n\t\t\t\t});\n\t\t\t});\n\t\t} else if (Object.keys(filterItems).length > 0) {\n\t\t\tresults = results.filter(listing =>\n\t\t\t\tfilterItems.hasOwnProperty(listing.fields[formattedField])\n\t\t\t);\n\t\t}\n\t}\n\tif (query) {\n\t\tresults = searchResults(results, query);\n\t}\n\tconst distinctItems = getDistinctItemsByProximity(results, listingEntities);\n\tif (hasFavorite) {\n\t\tselectedFilters.specialFeatures.Favorite = favorite;\n\t}\n\treturn { filteredListings: results, mapItems: distinctItems };\n};\n\nfunction searchResults(results, query) {\n\tconst fields = [\n\t\t'id',\n\t\t'uniqueId',\n\t\t'fields.posted',\n\t\t'fields.subtitle',\n\t\t'fields.education',\n\t\t'fields.position',\n\t\t'fields.category',\n\t\t'fields.categoryclass',\n\t\t'fields.shift',\n\t\t'fields.citystate',\n\t\t'fields.city',\n\t\t'fields.state',\n\t\t'fields.schedule',\n\t\t'fields.customflag1',\n\t\t'fields.bonus',\n\t\t'fields.remote',\n\t\t'fields.useclientjoburl',\n\t\t'fields.datecreated',\n\t\t'fields.datelastedited'\n\t];\n\n\tconst options = {\n\t\tincludeScore: true,\n\t\tthreshold: 0.3,\n\t\tkeys: fields\n\t};\n\n\tconst fuse = new Fuse(results, options);\n\tconst lowerCaseQuery = query.toLowerCase();\n\tconst queryTerms = lowerCaseQuery.split(' ');\n\n\tconst exactIdMatch = results.find(result => result.id.toString() === query || result.uniqueId === query);\n\tif (exactIdMatch) {\n\t\treturn [exactIdMatch];\n\t}\n\n\tconst fuseQuery = queryTerms.map(term => ({\n\t\t$or: fields.map(field => ({ [field]: term }))\n\t}));\n\n\tconst fuseResults = fuse.search({ $and: fuseQuery });\n\n\treturn fuseResults.map(result => result.item);\n}\n\nexport const filterListingsByLocation = (\n\tallListings,\n\tselectedLocation,\n\tlistingEntities\n) => {\n\tlet results = allListings;\n\tif (selectedLocation !== null) {\n\t\tresults = results.filter(item =>\n\t\t\tselectedLocation.items.hasOwnProperty(item.id)\n\t\t);\n\t}\n\tconst mapItems = getDistinctItemsByProximity(results, listingEntities);\n\treturn { filteredListings: results, mapItems: mapItems };\n};\n"],"names":["getFilterOptions","listings","filteredListings","field","excludeZeroCount","arguments","length","undefined","options","Set","forEach","listing","fields","add","optionCounts","option","value","hasOwnProperty","Array","from","sort","map","name","count","filter","getSpecialFeatureOptions","siteConfig","favorites","specialFeatures","featureCounts","Object","keys","reduce","acc","key","entries","_ref","_ref2","_slicedToArray","featureKey","featureName","specialFeatureOptions","_ref3","_ref4","_iterator","_createForOfIteratorHelper","_step","s","n","done","x","includes","id","err","e","f","getPointsOfInterestOptions","pointsOfInterestNames","_ref5","_ref6","generateFilterOptions","allListings","filterOptions","parentField","selectedFilters","dynamicFilters","fieldFiltersShown","fieldName","filters","find","title","fieldNames","items","categoryClass","categoryClassKeys","_x$fields","locations","locationFiltersShown","index","locationFilteredListings","every","_ref7","_ref8","_typeof","cityIncluded","stateIncluded","cityStateIncluded","uniqueCities","_toConsumableArray","city","uniqueStates","state","uniqueCityStates","cityState","filteredByLocation","cityMatches","stateMatches","cityStateMatches","selectedStates","pointsOfInterest","pointsOfInterestConfig","applyFilters","query","listingEntities","results","invertedSpecialFeaturesMap","_ref9","_ref10","hasFavorite","Favorite","favorite","_loop","_Object$entries$_i","_Object$entries","_i","filterItems","formattedField","some","_ref11","_ref12","filterName","filterValue","listingFieldName","searchResults","distinctItems","getDistinctItemsByProximity","mapItems","includeScore","threshold","fuse","Fuse","lowerCaseQuery","toLowerCase","queryTerms","split","exactIdMatch","result","toString","uniqueId","fuseQuery","term","$or","_defineProperty","fuseResults","search","$and","item","filterListingsByLocation","selectedLocation"],"mappings":";;;;AAKO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,QAAQ,EAAEC,gBAAgB,EAAEC,KAAK,EAA8B;AAAA,EAAA,IAA5BC,gBAAgB,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,IAAI,CAAA;AAC1F,EAAA,IAAMG,OAAO,GAAG,IAAIC,GAAG,EAAE,CAAA;AACzBR,EAAAA,QAAQ,CAACS,OAAO,CAAC,UAAAC,OAAO,EAAI;AAC3B,IAAA,IAAIA,OAAO,CAACC,MAAM,CAACT,KAAK,CAAC,EAAE;MAC1BK,OAAO,CAACK,GAAG,CAACF,OAAO,CAACC,MAAM,CAACT,KAAK,CAAC,CAAC,CAAA;AACnC,KAAA;AACD,GAAC,CAAC,CAAA;EAEF,IAAMW,YAAY,GAAG,EAAE,CAAA;AACvBN,EAAAA,OAAO,CAACE,OAAO,CAAC,UAAAK,MAAM,EAAI;AACzBD,IAAAA,YAAY,CAACC,MAAM,CAAC,GAAG,CAAC,CAAA;AACzB,GAAC,CAAC,CAAA;AAEFb,EAAAA,gBAAgB,CAACQ,OAAO,CAAC,UAAAC,OAAO,EAAI;AACnC,IAAA,IAAMK,KAAK,GAAGL,OAAO,CAACC,MAAM,CAACT,KAAK,CAAC,CAAA;IACnC,IAAIa,KAAK,IAAIF,YAAY,CAACG,cAAc,CAACD,KAAK,CAAC,EAAE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K,CAACvD,cAAc,CAACiI,IAAI,CAAC9F,EAAE,CAAC,CAAA;AAAA,KAC/C,CAAC,CAAA;AACF,GAAA;AACA,EAAA,IAAM0E,QAAQ,GAAGD,2BAA2B,CAACrB,OAAO,EAAED,eAAe,CAAC,CAAA;EACtE,OAAO;AAAErG,IAAAA,gBAAgB,EAAEsG,OAAO;AAAEsB,IAAAA,QAAQ,EAAEA,QAAAA;GAAU,CAAA;AACzD;;;;"}
|
package/dist/util/mapIconUtil.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';
|
|
1
2
|
import { placeTypes } from '../constants/placeTypes.js';
|
|
2
3
|
|
|
3
|
-
/* eslint-disable no-undef */
|
|
4
4
|
var customSVGIcon = function customSVGIcon(type) {
|
|
5
5
|
var fillColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "#FFFFFF";
|
|
6
6
|
var strokeColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "#000000";
|
|
@@ -20,9 +20,6 @@ var customSVGIcon = function customSVGIcon(type) {
|
|
|
20
20
|
case placeTypes.STORE:
|
|
21
21
|
svg = "<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t\t\t\t\tviewBox=\"0 0 60.8 89.6\" preserveAspectRatio=\"xMidYMid meet\" style=\"enable-background:new 0 0 60.8 89.6;\" xml:space=\"preserve\">\n\t\t\t\t\t<style type=\"text/css\">\n\t\t\t\t\t.st0{fill:".concat(fillColor, "; stroke:").concat(strokeColor, ";}\n\t\t\t\t\t.svg-background{fill:").concat(backgroundFill, "; stroke:").concat(backgroundStroke, ";}\n\t\t\t\t\t</style>\n\t\t\t\t\t<g>\n\t\t\t\t\t\t<path class=\"svg-background\" d=\"M30.4,3.9C14.3,3.9,1.3,16.8,1.3,33c0,21,18.6,29.1,29.1,56.6C40.9,62.1,59.5,54.9,59.5,33C60.3,16.8,46.6,3.9,30.4,3.9z\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t\t<path class=\"st0\" d=\"M45.4,27.7L42,41.1c-0.1,0.6-0.7,1-1.3,1c1.8,0,3.3,1.5,3.3,3.3s-1.5,3.3-3.3,3.3s-3.3-1.5-3.3-3.3\n\t\t\t\t\t\ts1.5-3.3,3.3-3.3H23.3c1.8,0,3.3,1.5,3.3,3.3s-1.5,3.3-3.3,3.3S20,47.2,20,45.4s1.5-3.3,3.3-3.3c-0.6,0-1.2-0.4-1.3-1l-4.1-16.4\n\t\t\t\t\t\th-1.3c-0.7,0-1.3-0.6-1.3-1.3s0.6-1.3,1.3-1.3h2.3c0.6,0,1.2,0.4,1.3,1l0.8,3h23.1c0.4,0,0.8,0.2,1.1,0.5\n\t\t\t\t\t\tC45.4,26.9,45.5,27.3,45.4,27.7z\"/>\n\t\t\t\t\t<path d=\"M41.4,45.5c0-0.4-0.3-0.7-0.7-0.7S40,45.1,40,45.5C40.1,46.2,41.4,46.2,41.4,45.5z\"/>\n\t\t\t\t\t<path d=\"M24,45.5c0-0.4-0.3-0.7-0.7-0.7s-0.7,0.3-0.7,0.7C22.6,46.2,24,46.2,24,45.5z\"/>\n\t\t\t\t\t</svg>\n\t\t\t\t\t");
|
|
22
22
|
break;
|
|
23
|
-
case placeTypes.AIRPORT:
|
|
24
|
-
svg = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\" width=\"80\" height=\"80\">\n <!-- Blue Background Circle -->\n <circle cx=\"480\" cy=\"-480\" r=\"480\" fill=\"#0470FF\"/>\n\n <!-- White Airplane Icon -->\n <path fill=\"#FFFFFF\" d=\"M280-80v-100l120-84v-144L80-280v-120l320-224v-176q0-33 23.5-56.5T480-880q33 0 56.5 23.5T560-800v176l320 224v120L560-408v144l120 84v100l-200-60-200 60Z\"/>\n</svg>\n";
|
|
25
|
-
break;
|
|
26
23
|
case placeTypes.TRANSIT_STATION:
|
|
27
24
|
svg = "<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t\t\t\t\tviewBox=\"0 0 60.8 89.6\" preserveAspectRatio=\"xMidYMid meet\" style=\"enable-background:new 0 0 60.8 89.6;\" xml:space=\"preserve\">\n\t\t\t\t\t<style type=\"text/css\">\n\t\t\t\t\t.st0{fill:".concat(fillColor, "; stroke:").concat(strokeColor, ";}\n\t\t\t\t\t.svg-background{fill:").concat(backgroundFill, "; stroke:").concat(backgroundStroke, ";}\n\t\t\t\t\t</style>\n\t\t\t\t\t<g>\n\t\t\t\t\t\t<path class=\"svg-background\" d=\"M30.4,3.9C14.3,3.9,1.3,16.8,1.3,33c0,21,18.6,29.1,29.1,56.6C40.9,62.1,59.5,54.9,59.5,33C60.3,16.8,46.6,3.9,30.4,3.9z\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t</g>\n\t\t\t\t\t<path class=\"st0\" d=\"M26.3,41.3h-2.8L20.7,44h-1.4v-1.4l1.4-1.4c-2.3,0-4.2-1.9-4.2-4.2V26c0-2.3,1.9-4.2,4.2-4.2h9.7\n\t\t\t\t\t\tc2.3,0,4.2,1.9,4.2,4.2v1.4h-2.8v-2.8H19.3v9.7h6.9v7H26.3z\"/>\n\t\t\t\t\t<path class=\"st0\" d=\"M44.3,43c0,0.5-0.4,1-1,1h-0.8c-0.5,0-1-0.5-1-1.1v-1.7H30.4V43c0,0.5-0.4,1.1-0.9,1.1h-0.9c-0.5,0-1-0.5-1-1\n\t\t\t\t\t\tv-7.6l2-5.7c0.2-0.6,0.7-0.9,1.4-0.9h10c0.6,0,1.1,0.4,1.3,0.9l2,5.7V43z\"/>\n\t\t\t\t\t<circle cx=\"20.7\" cy=\"37.1\" r=\"1.4\"/>\n\t\t\t\t\t<circle cx=\"41.5\" cy=\"37.1\" r=\"1.4\"/>\n\t\t\t\t\t<circle cx=\"30.4\" cy=\"37.1\" r=\"1.4\"/>\n\t\t\t\t\t<polygon points=\"31,30.2 29.6,34.4 42.4,34.4 40.9,30.2 \"/>\n\t\t\t\t\t</svg>\n\t\t\t\t\t");
|
|
28
25
|
break;
|
|
@@ -44,23 +41,26 @@ var markerIconProps = function markerIconProps(placeMarkerConfigs, type) {
|
|
|
44
41
|
anchor: new google.maps.Point(scaledWidth / 2, scaledHeight)
|
|
45
42
|
};
|
|
46
43
|
};
|
|
47
|
-
var
|
|
48
|
-
var count = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
49
|
-
var svg = "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"-6 -4 24 24\">\n <path d=\"".concat(iconPath, "\" fill=\"").concat(markerConfigs.fillColor, "\"/>\n <text x=\"5.5\" y=\"8\" font-family=\"Arial\" font-size=\"5\" text-anchor=\"middle\" fill=\"white\">").concat(count, "</text>\n </svg>\n ");
|
|
44
|
+
var iconProps = function iconProps() {
|
|
50
45
|
return {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
path: iconPath,
|
|
47
|
+
fillOpacity: 1,
|
|
48
|
+
strokeWeight: 1.75,
|
|
49
|
+
scale: 1.6,
|
|
50
|
+
anchor: new google.maps.Point(12, 17)
|
|
54
51
|
};
|
|
55
52
|
};
|
|
53
|
+
var markerIcon = function markerIcon(markerConfigs) {
|
|
54
|
+
return _objectSpread2(_objectSpread2({}, iconProps()), {}, {
|
|
55
|
+
fillColor: markerConfigs.fillColor,
|
|
56
|
+
strokeColor: markerConfigs.strokeColor
|
|
57
|
+
});
|
|
58
|
+
};
|
|
56
59
|
var markerIconSelected = function markerIconSelected(markerConfigs) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
scaledSize: new window.google.maps.Size(50, 50),
|
|
62
|
-
anchor: new window.google.maps.Point(12, 17)
|
|
63
|
-
};
|
|
60
|
+
return _objectSpread2(_objectSpread2({}, iconProps()), {}, {
|
|
61
|
+
fillColor: markerConfigs.selectedFillColor,
|
|
62
|
+
strokeColor: markerConfigs.selectedStrokeColor
|
|
63
|
+
});
|
|
64
64
|
};
|
|
65
65
|
var pinIcon = function pinIcon(markerConfigs) {
|
|
66
66
|
var fillColor = markerConfigs.fillColor,
|
|
@@ -69,5 +69,5 @@ var pinIcon = function pinIcon(markerConfigs) {
|
|
|
69
69
|
return "data:image/svg+xml;utf8,".concat(encodeURIComponent(svg));
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
export { iconPath, markerIcon, markerIconProps, markerIconSelected, pinIcon };
|
|
72
|
+
export { iconPath, iconProps, markerIcon, markerIconProps, markerIconSelected, pinIcon };
|
|
73
73
|
//# sourceMappingURL=mapIconUtil.js.map
|