@abcagency/hc-ui-components 1.3.77 → 1.3.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (492) hide show
  1. package/dist/components/containers/jobListing/listing-details-container.js +3 -1
  2. package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
  3. package/dist/components/containers/list/item-list-container.js.map +1 -1
  4. package/dist/components/containers/maps/map-container.js +1 -0
  5. package/dist/components/containers/maps/map-container.js.map +1 -1
  6. package/dist/components/modules/buttons/button-group-apply.js +26 -9
  7. package/dist/components/modules/buttons/button-group-apply.js.map +1 -1
  8. package/dist/components/modules/buttons/default.js +19 -3
  9. package/dist/components/modules/buttons/default.js.map +1 -1
  10. package/dist/components/modules/dialogs/apply-dialog.js +38 -8
  11. package/dist/components/modules/dialogs/apply-dialog.js.map +1 -1
  12. package/dist/components/modules/jobListing/listing-details.js +2 -0
  13. package/dist/components/modules/jobListing/listing-details.js.map +1 -1
  14. package/dist/constants/eventTypes.js +3 -0
  15. package/dist/constants/eventTypes.js.map +1 -1
  16. package/dist/constants/placeTypes.js +0 -1
  17. package/dist/constants/placeTypes.js.map +1 -1
  18. package/dist/contexts/mapListContext.js +2 -1
  19. package/dist/contexts/mapListContext.js.map +1 -1
  20. package/dist/types/components/modules/buttons/button-group-apply.d.ts +2 -1
  21. package/dist/types/components/modules/buttons/default.d.ts +4 -1
  22. package/dist/types/components/modules/dialogs/apply-dialog.d.ts +5 -1
  23. package/dist/types/components/modules/jobListing/listing-details.d.ts +2 -1
  24. package/dist/types/constants/eventTypes.d.ts +3 -0
  25. package/dist/types/contexts/mapListContext.d.ts +2 -0
  26. package/dist/types/util/sortUtil.d.ts +1 -1
  27. package/dist/util/filterUtil.js.map +1 -1
  28. package/dist/util/sortUtil.js +12 -16
  29. package/dist/util/sortUtil.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/components/containers/jobListing/listing-details-container.js +2 -1
  32. package/src/components/containers/list/item-list-container.tsx +1 -0
  33. package/src/components/containers/maps/map-container.js +2 -0
  34. package/src/components/modules/buttons/button-group-apply.js +17 -9
  35. package/src/components/modules/buttons/default.js +11 -3
  36. package/src/components/modules/dialogs/apply-dialog.js +52 -36
  37. package/src/components/modules/jobListing/listing-details.js +2 -0
  38. package/src/constants/eventTypes.js +3 -0
  39. package/src/constants/placeTypes.js +0 -1
  40. package/src/contexts/mapListContext.tsx +4 -0
  41. package/src/util/filterUtil.js +0 -1
  42. package/src/util/sortUtil.js +13 -20
  43. package/dist/components/modules/buttons/commute-pill.js +0 -18
  44. package/dist/components/modules/buttons/commute-pill.js.map +0 -1
  45. package/dist/components/modules/list/item-expand-card/recruiter-contact-nav.js +0 -38
  46. package/dist/components/modules/list/item-expand-card/recruiter-contact-nav.js.map +0 -1
  47. package/dist/components/modules/list/item-expand-card/recruiter-details.js +0 -40
  48. package/dist/components/modules/list/item-expand-card/recruiter-details.js.map +0 -1
  49. package/dist/components/modules/list/item-expand-card/recruiter-headshot.js +0 -20
  50. package/dist/components/modules/list/item-expand-card/recruiter-headshot.js.map +0 -1
  51. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -802
  52. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  53. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -679
  54. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  55. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -343
  56. 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
  57. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -140
  58. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  59. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
  60. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  61. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/combobox/combobox.js +0 -33
  62. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +0 -1
  63. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/keyboard.js +0 -4
  64. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
  65. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/transition.js +0 -19
  66. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/transition.js.map +0 -1
  67. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js +0 -8
  68. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js.map +0 -1
  69. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-computed.js +0 -8
  70. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-computed.js.map +0 -1
  71. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-controllable.js +0 -7
  72. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +0 -1
  73. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -7
  74. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
  75. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -7
  76. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
  77. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -7
  78. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
  79. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -7
  80. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
  81. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-id.js +0 -9
  82. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-id.js.map +0 -1
  83. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +0 -7
  84. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +0 -1
  85. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -7
  86. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
  87. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -7
  88. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
  89. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -10
  90. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
  91. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -7
  92. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
  93. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -7
  94. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
  95. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -7
  96. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
  97. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -7
  98. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
  99. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -6
  100. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
  101. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -11
  102. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
  103. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -8
  104. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
  105. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-watch.js +0 -7
  106. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +0 -1
  107. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -7
  108. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
  109. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/hidden.js +0 -6
  110. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/hidden.js.map +0 -1
  111. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -6
  112. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
  113. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/active-element-history.js +0 -6
  114. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +0 -1
  115. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/bugs.js +0 -4
  116. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
  117. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -4
  118. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
  119. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/class-names.js +0 -4
  120. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
  121. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/disposables.js +0 -6
  122. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
  123. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/document-ready.js +0 -4
  124. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/document-ready.js.map +0 -1
  125. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/env.js +0 -4
  126. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
  127. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -7
  128. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
  129. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/form.js +0 -4
  130. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/form.js.map +0 -1
  131. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/match.js +0 -4
  132. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
  133. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -4
  134. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
  135. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/once.js +0 -4
  136. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/once.js.map +0 -1
  137. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/owner.js +0 -6
  138. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
  139. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/platform.js +0 -4
  140. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
  141. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/render.js +0 -11
  142. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
  143. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@iconify/react/dist/iconify.js +0 -1928
  144. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@iconify/react/dist/iconify.js.map +0 -1
  145. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/number/dist/index.js +0 -7
  146. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/number/dist/index.js.map +0 -1
  147. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/primitive/dist/index.js +0 -12
  148. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  149. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-accordion/dist/index.js +0 -304
  150. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-accordion/dist/index.js.map +0 -1
  151. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
  152. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  153. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
  154. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collapsible/dist/index.js.map +0 -1
  155. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
  156. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  157. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
  158. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  159. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-context/dist/index.js +0 -80
  160. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  161. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dialog/dist/index.js +0 -320
  162. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  163. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
  164. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  165. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
  166. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  167. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
  168. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  169. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
  170. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  171. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-id/dist/index.js +0 -16
  172. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  173. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-popper/dist/index.js +0 -279
  174. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  175. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
  176. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  177. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
  178. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  179. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
  180. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  181. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
  182. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  183. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-select/dist/index.js +0 -1109
  184. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-select/dist/index.js.map +0 -1
  185. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
  186. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  187. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
  188. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-tabs/dist/index.js.map +0 -1
  189. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
  190. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  191. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
  192. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  193. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
  194. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  195. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
  196. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  197. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -16
  198. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-previous/dist/index.js.map +0 -1
  199. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
  200. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  201. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
  202. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  203. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@react-google-maps/api/dist/esm.js +0 -8515
  204. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@react-google-maps/api/dist/esm.js.map +0 -1
  205. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@remix-run/router/dist/router.js +0 -271
  206. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@remix-run/router/dist/router.js.map +0 -1
  207. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -43
  208. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
  209. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -669
  210. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
  211. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -61
  212. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
  213. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  214. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  215. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/fuse.js/dist/fuse.js +0 -1779
  216. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/fuse.js/dist/fuse.js.map +0 -1
  217. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/get-nonce/dist/es2015/index.js +0 -9
  218. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  219. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -10
  220. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  221. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
  222. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  223. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
  224. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  225. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
  226. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  227. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
  228. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  229. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
  230. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  231. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
  232. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  233. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
  234. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  235. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
  236. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  237. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
  238. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  239. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router/dist/index.js +0 -280
  240. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router/dist/index.js.map +0 -1
  241. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router-dom/dist/index.js +0 -201
  242. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router-dom/dist/index.js.map +0 -1
  243. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
  244. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  245. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
  246. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  247. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
  248. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  249. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2530
  250. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
  251. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tslib/tslib.es6.js +0 -57
  252. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tslib/tslib.es6.js.map +0 -1
  253. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
  254. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  255. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -49
  256. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  257. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
  258. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  259. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-places-autocomplete/dist/index.esm.js +0 -243
  260. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-places-autocomplete/dist/index.esm.js.map +0 -1
  261. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
  262. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  263. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
  264. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  265. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -802
  266. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  267. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -679
  268. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  269. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -343
  270. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  271. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -140
  272. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  273. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
  274. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  275. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +0 -33
  276. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +0 -1
  277. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +0 -4
  278. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
  279. package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js +0 -19
  280. package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js.map +0 -1
  281. package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js +0 -8
  282. package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js.map +0 -1
  283. package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js +0 -8
  284. package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js.map +0 -1
  285. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +0 -7
  286. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +0 -1
  287. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -7
  288. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
  289. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -7
  290. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
  291. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -7
  292. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
  293. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -7
  294. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
  295. package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js +0 -9
  296. package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js.map +0 -1
  297. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +0 -7
  298. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +0 -1
  299. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -7
  300. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
  301. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -7
  302. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
  303. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -10
  304. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
  305. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -7
  306. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
  307. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -7
  308. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
  309. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -7
  310. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
  311. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -7
  312. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
  313. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -6
  314. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
  315. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -11
  316. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
  317. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -8
  318. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
  319. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +0 -7
  320. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +0 -1
  321. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -7
  322. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
  323. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +0 -6
  324. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js.map +0 -1
  325. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -6
  326. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
  327. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +0 -6
  328. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +0 -1
  329. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +0 -4
  330. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
  331. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -4
  332. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
  333. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +0 -4
  334. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
  335. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +0 -6
  336. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
  337. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +0 -4
  338. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js.map +0 -1
  339. package/dist/node_modules/@headlessui/react/dist/utils/env.js +0 -4
  340. package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
  341. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -7
  342. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
  343. package/dist/node_modules/@headlessui/react/dist/utils/form.js +0 -4
  344. package/dist/node_modules/@headlessui/react/dist/utils/form.js.map +0 -1
  345. package/dist/node_modules/@headlessui/react/dist/utils/match.js +0 -4
  346. package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
  347. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -4
  348. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
  349. package/dist/node_modules/@headlessui/react/dist/utils/once.js +0 -4
  350. package/dist/node_modules/@headlessui/react/dist/utils/once.js.map +0 -1
  351. package/dist/node_modules/@headlessui/react/dist/utils/owner.js +0 -6
  352. package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
  353. package/dist/node_modules/@headlessui/react/dist/utils/platform.js +0 -4
  354. package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
  355. package/dist/node_modules/@headlessui/react/dist/utils/render.js +0 -11
  356. package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
  357. package/dist/node_modules/@iconify/react/dist/iconify.js +0 -1928
  358. package/dist/node_modules/@iconify/react/dist/iconify.js.map +0 -1
  359. package/dist/node_modules/@radix-ui/number/dist/index.js +0 -7
  360. package/dist/node_modules/@radix-ui/number/dist/index.js.map +0 -1
  361. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -12
  362. package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  363. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +0 -304
  364. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js.map +0 -1
  365. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
  366. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  367. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
  368. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +0 -1
  369. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
  370. package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  371. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
  372. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  373. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -80
  374. package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  375. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -320
  376. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  377. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
  378. package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  379. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
  380. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  381. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
  382. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  383. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
  384. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  385. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -16
  386. package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  387. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -279
  388. package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  389. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
  390. package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  391. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
  392. package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  393. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
  394. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  395. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
  396. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  397. package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -1109
  398. package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +0 -1
  399. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
  400. package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  401. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
  402. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js.map +0 -1
  403. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
  404. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  405. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
  406. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  407. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
  408. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  409. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
  410. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  411. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -16
  412. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js.map +0 -1
  413. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
  414. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  415. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
  416. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  417. package/dist/node_modules/@react-google-maps/api/dist/esm.js +0 -8515
  418. package/dist/node_modules/@react-google-maps/api/dist/esm.js.map +0 -1
  419. package/dist/node_modules/@remix-run/router/dist/router.js +0 -271
  420. package/dist/node_modules/@remix-run/router/dist/router.js.map +0 -1
  421. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -43
  422. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
  423. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -669
  424. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
  425. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -61
  426. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
  427. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  428. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  429. package/dist/node_modules/fuse.js/dist/fuse.js +0 -1779
  430. package/dist/node_modules/fuse.js/dist/fuse.js.map +0 -1
  431. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -9
  432. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  433. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -17
  434. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  435. package/dist/node_modules/react/jsx-runtime.js +0 -12
  436. package/dist/node_modules/react/jsx-runtime.js.map +0 -1
  437. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -10
  438. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  439. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
  440. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  441. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
  442. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  443. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
  444. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  445. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
  446. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  447. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
  448. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  449. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
  450. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  451. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
  452. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  453. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
  454. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  455. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
  456. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  457. package/dist/node_modules/react-router/dist/index.js +0 -280
  458. package/dist/node_modules/react-router/dist/index.js.map +0 -1
  459. package/dist/node_modules/react-router-dom/dist/index.js +0 -201
  460. package/dist/node_modules/react-router-dom/dist/index.js.map +0 -1
  461. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
  462. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  463. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
  464. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  465. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
  466. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  467. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2530
  468. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
  469. package/dist/node_modules/tslib/tslib.es6.js +0 -57
  470. package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
  471. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
  472. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  473. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -49
  474. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  475. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
  476. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  477. package/dist/node_modules/use-places-autocomplete/dist/index.esm.js +0 -243
  478. package/dist/node_modules/use-places-autocomplete/dist/index.esm.js.map +0 -1
  479. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
  480. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  481. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
  482. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  483. package/dist/services/recruiterService.js +0 -16
  484. package/dist/services/recruiterService.js.map +0 -1
  485. package/dist/types/components/modules/buttons/commute-pill.d.ts +0 -5
  486. package/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +0 -17
  487. package/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +0 -21
  488. package/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +0 -8
  489. package/dist/wellspan-careers-web/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -49
  490. package/dist/wellspan-careers-web/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  491. package/dist/wellspan-careers-web/node_modules/react/jsx-runtime.js +0 -12
  492. package/dist/wellspan-careers-web/node_modules/react/jsx-runtime.js.map +0 -1
@@ -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;;;;"}
@@ -3,7 +3,6 @@ var placeTypes = {
3
3
  STORE: "shopping",
4
4
  TOURIST_ATTRACTION: "attractions",
5
5
  TRANSIT_STATION: "transit",
6
- AIRPORT: "airport",
7
6
  SCHOOL: "schools",
8
7
  PLACE_OF_WORSHIP: "worship"
9
8
  };
@@ -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\tAIRPORT: \"airport\",\n\tSCHOOL: \"schools\",\n\tPLACE_OF_WORSHIP: \"worship\"\n};\n"],"names":["placeTypes","FOOD","STORE","TOURIST_ATTRACTION","TRANSIT_STATION","AIRPORT","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,OAAO,EAAE,SAAS;AAClBC,EAAAA,MAAM,EAAE,SAAS;AACjBC,EAAAA,gBAAgB,EAAE,SAAA;AACnB;;;;"}
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,IAA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ACV,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,C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,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,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,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A,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","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,EAAEA,QAAAA;GAAU,CAAA;AACzD;;;;"}
@@ -1,11 +1,12 @@
1
+ import { toConsumableArray as _toConsumableArray } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+
1
3
  var dynamicSort = function dynamicSort(items, fieldName) {
2
4
  var order = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "asc";
3
5
  var favorites = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
4
- if (!items || !items.length) {
5
- return [];
6
- }
6
+ if (!items || !items.length) return [];
7
+ var sortedItems = _toConsumableArray(items);
7
8
  if (fieldName === "favorite") {
8
- items.forEach(function (x) {
9
+ sortedItems.forEach(function (x) {
9
10
  if (x.fields) {
10
11
  var _favorites$includes;
11
12
  x.fields.favorite = (_favorites$includes = favorites.includes(x.id)) !== null && _favorites$includes !== void 0 ? _favorites$includes : false;
@@ -13,21 +14,16 @@ var dynamicSort = function dynamicSort(items, fieldName) {
13
14
  });
14
15
  }
15
16
  var inferType = function inferType(value) {
16
- if (!isNaN(Date.parse(value)) && isNaN(value)) {
17
- return "date";
18
- } else if (!isNaN(parseFloat(value)) && isFinite(value)) {
19
- return "number";
20
- } else if (value === true || value === false) {
21
- return "bool";
22
- } else {
23
- return "string";
24
- }
17
+ if (!isNaN(Date.parse(value)) && isNaN(value)) return "date";
18
+ if (!isNaN(parseFloat(value)) && isFinite(value)) return "number";
19
+ if (value === true || value === false) return "bool";
20
+ return "string";
25
21
  };
26
- var dataType = inferType(items[0].fields[fieldName]);
27
- return items.sort(function (a, b) {
22
+ var dataType = inferType(sortedItems[0].fields[fieldName]);
23
+ return sortedItems.sort(function (a, b) {
28
24
  var valA = a.fields[fieldName];
29
25
  var valB = b.fields[fieldName];
30
- if (valA == null || valA == undefined || valB == null || valB == undefined) return;
26
+ if (valA == null || valB == null) return 0;
31
27
  var comparison = 0;
32
28
  if (dataType === "string") {
33
29
  comparison = valA.localeCompare(valB);
@@ -1 +1 @@
1
- {"version":3,"file":"sortUtil.js","sources":["../../src/util/sortUtil.js"],"sourcesContent":["export const dynamicSort = (items, fieldName, order = \"asc\", favorites = null) => {\n\tif (!items || !items.length) {\n\t\treturn [];\n\t}\n\n\tif (fieldName === \"favorite\") {\n\t\titems.forEach(x => {\n\t\t\tif (x.fields) {\n\t\t\t\tx.fields.favorite = favorites.includes(x.id) ?? false;\n\t\t\t}\n\t\t});\n\t}\n\n\tconst inferType = value => {\n\t\tif (!isNaN(Date.parse(value)) && isNaN(value)) {\n\t\t\treturn \"date\";\n\t\t} else if (!isNaN(parseFloat(value)) && isFinite(value)) {\n\t\t\treturn \"number\";\n\t\t} else if (value === true || value === false){\n\t\t\treturn \"bool\";\n\t\t}\n\t\telse {\n\t\t\treturn \"string\";\n\t\t}\n\t};\n\n\tconst dataType = inferType(items[0].fields[fieldName]);\n\n\treturn items.sort((a, b) => {\n\t\tlet valA = a.fields[fieldName];\n\t\tlet valB = b.fields[fieldName];\n\n\t\tif (valA == null || valA == undefined || valB == null || valB == undefined) return;\n\t\tlet comparison = 0;\n\n\t\tif (dataType === \"string\") {\n\t\t\tcomparison = valA.localeCompare(valB);\n\t\t} else if (dataType === \"number\") {\n\t\t\tcomparison = valA - valB;\n\t\t} else if (dataType === \"date\") {\n\t\t\tcomparison = new Date(valA) - new Date(valB);\n\t\t}else if (dataType === \"bool\") {\n\t\t\tcomparison = valA === valB ? 0 : valA ? -1 : 1;\n\t\t}\n\t\treturn order === \"desc\" ? comparison * -1 : comparison;\n\t});\n};"],"names":["dynamicSort","items","fieldName","order","arguments","length","undefined","favorites","forEach","x","fields","_favorites$includes","favorite","includes","id","inferType","value","isNaN","Date","parse","parseFloat","isFinite","dataType","sort","a","b","valA","valB","comparison","localeCompare"],"mappings":"AAAO,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,KAAK,EAAEC,SAAS,EAAsC;AAAA,EAAA,IAApCC,KAAK,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,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export const dynamicSort = (items, fieldName, order = \"asc\", favorites = null) => {\n\tif (!items || !items.length) return [];\n\n\tconst sortedItems = [...items];\n\tif (fieldName === \"favorite\") {\n\t\tsortedItems.forEach(x => {\n\t\t\tif (x.fields) {\n\t\t\t\tx.fields.favorite = favorites.includes(x.id) ?? false;\n\t\t\t}\n\t\t});\n\t}\n\n\tconst inferType = value => {\n\t\tif (!isNaN(Date.parse(value)) && isNaN(value)) return \"date\";\n\t\tif (!isNaN(parseFloat(value)) && isFinite(value)) return \"number\";\n\t\tif (value === true || value === false) return \"bool\";\n\t\treturn \"string\";\n\t};\n\n\tconst dataType = inferType(sortedItems[0].fields[fieldName]);\n\n\treturn sortedItems.sort((a, b) => {\n\t\tlet valA = a.fields[fieldName];\n\t\tlet valB = b.fields[fieldName];\n\t\tif (valA == null || valB == null) return 0;\n\n\t\tlet comparison = 0;\n\t\tif (dataType === \"string\") {\n\t\t\tcomparison = valA.localeCompare(valB);\n\t\t} else if (dataType === \"number\") {\n\t\t\tcomparison = valA - valB;\n\t\t} else if (dataType === \"date\") {\n\t\t\tcomparison = new Date(valA) - new Date(valB);\n\t\t} else if (dataType === \"bool\") {\n\t\t\tcomparison = valA === valB ? 0 : valA ? -1 : 1;\n\t\t}\n\n\t\treturn order === \"desc\" ? comparison * -1 : comparison;\n\t});\n};\n"],"names":["dynamicSort","items","fieldName","order","arguments","length","undefined","favorites","sortedItems","_toConsumableArray","forEach","x","fields","_favorites$includes","favorite","includes","id","inferType","value","isNaN","Date","parse","parseFloat","isFinite","dataType","sort","a","b","valA","valB","comparison","localeCompare"],"mappings":";;AAAO,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,KAAK,EAAEC,SAAS,EAAsC;AAAA,EAAA,IAApCC,KAAK,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,KAAK,CAAA;AAAA,EAAA,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AS,CAAC,CAAC,CAAA;EAE5D,OAAOM,WAAW,CAACiB,IAAI,CAAC,UAACC,CAAC,EAAEC,CAAC,EAAK;AACjC,IAAA,IAAIC,IAAI,GAAGF,CAAC,CAACd,MAAM,CAACV,SAAS,CAAC,CAAA;AAC9B,IAAA,IAAI2B,IAAI,GAAGF,CAAC,CAACf,MAAM,CAACV,SAAS,CAAC,CAAA;IAC9B,IAAI0B,IAAI,IAAI,IAAI,IAAIC,IAAI,IAAI,IAAI,EAAE,OAAO,CAAC,CAAA;IAE1C,IAAIC,UAAU,GAAG,CAAC,CAAA;IAClB,IAAIN,QAAQ,KAAK,QAAQ,EAAE;AAC1BM,MAAAA,UAAU,GAAGF,IAAI,CAACG,aAAa,CAACF,IAAI,CAAC,CAAA;AACtC,KAAC,MAAM,IAAIL,QAAQ,KAAK,QAAQ,EAAE;MACjCM,UAAU,GAAGF,IAAI,GAAGC,IAAI,CAAA;AACzB,KAAC,MAAM,IAAIL,QAAQ,KAAK,MAAM,EAAE;MAC/BM,UAAU,GAAG,IAAIV,IAAI,CAACQ,IAAI,CAAC,GAAG,IAAIR,IAAI,CAACS,IAAI,CAAC,CAAA;AAC7C,KAAC,MAAM,IAAIL,QAAQ,KAAK,MAAM,EAAE;AAC/BM,MAAAA,UAAU,GAAGF,IAAI,KAAKC,IAAI,GAAG,CAAC,GAAGD,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAC/C,KAAA;IAEA,OAAOzB,KAAK,KAAK,MAAM,GAAG2B,UAAU,GAAG,CAAC,CAAC,GAAGA,UAAU,CAAA;AACvD,GAAC,CAAC,CAAA;AACH;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abcagency/hc-ui-components",
3
- "version": "1.3.77",
3
+ "version": "1.3.79",
4
4
  "description": "UI Components for HireControl",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -7,7 +7,7 @@ import ListingDetails from '~/components/modules/jobListing/listing-details';
7
7
  const ListingDetailsContainer = ({ item, recruiter }) => {
8
8
  const { trackEvent, eventTypes } = useTrackEvent();
9
9
  const { travelTime } = useMap();
10
- const { siteConfig, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, easyApplyText } = useMapList();
10
+ const { siteConfig, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, easyApplyText, isIframe } = useMapList();
11
11
 
12
12
  const {
13
13
  useDetailsPostMessage,
@@ -29,6 +29,7 @@ const ListingDetailsContainer = ({ item, recruiter }) => {
29
29
  linkFormat={linkFormat}
30
30
  easyApplyUrl={easyApplyUrl}
31
31
  easyApplyText={easyApplyText}
32
+ isIframe={isIframe}
32
33
  useApplyDialog={useApplyDialog}
33
34
  internalApplyLink={internalApplyLink}
34
35
  companyName={companyName}
@@ -42,6 +42,7 @@ const ItemsListContainer: React.FC<ItemsListContainerProps> = ({
42
42
  setSortSetting(sortSetting);
43
43
  };
44
44
  //fieldsShown.push('favorite');
45
+
45
46
  return (
46
47
  <ItemsList
47
48
  fieldNames={fieldNames}
@@ -257,6 +257,8 @@ const MapContainer = ({ markerConfigs, infoWindowClasses, clusterGridSize = 60 }
257
257
  return null;
258
258
  }
259
259
  const mapItemsKey = mapItems.map(item => item.id).join("-");
260
+
261
+ console.log(location);
260
262
  return (
261
263
  <Map
262
264
  zoom={zoom}
@@ -12,6 +12,7 @@ const ButtonGroupApply = ({
12
12
  linkFormat,
13
13
  easyApplyUrl,
14
14
  applyNowText = 'Apply Now',
15
+ isIframe,
15
16
  detailsUrl,
16
17
  detailsText = 'View Details',
17
18
  easyApplyText,
@@ -32,6 +33,10 @@ const ButtonGroupApply = ({
32
33
  //console.log('calling trackApplyNow');
33
34
  trackEvent(eventTypes.APPLY_NOW_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });
34
35
  };
36
+ const trackApplyOpen = () => {
37
+ //console.log('calling trackApplyOpen');
38
+ trackEvent(eventTypes.APPLY_OPEN_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });
39
+ };
35
40
  const trackEasyApply = () => {
36
41
  //console.log('calling trackEasyApply');
37
42
  trackEvent(eventTypes.EASY_APPLY_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });
@@ -40,10 +45,7 @@ const ButtonGroupApply = ({
40
45
  //console.log('calling trackViewDetails');
41
46
  trackEvent(eventTypes.VIEW_DETAILS_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });
42
47
  };
43
- // console.log(detailsUrl);
44
- // console.log(useDetailsPostMessage);
45
- // console.log(navigateToDetails);
46
- // console.log(useDetailsPostMessage === true && !navigateToDetails, 'query result');
48
+
47
49
  return (
48
50
  <nav
49
51
  className={twMerge`
@@ -68,7 +70,9 @@ const ButtonGroupApply = ({
68
70
  variant={detailsButtonVariant}
69
71
  className={"map-details-button"}
70
72
  size={buttonSize}
71
- onClick={trackViewDetails}
73
+ execOnClick={trackViewDetails}
74
+ isIframe={isIframe}
75
+ iframeMsgType={"DETAILS_LINK"}
72
76
  >
73
77
  {detailsText}
74
78
  </Button.Anchor>
@@ -80,18 +84,20 @@ const ButtonGroupApply = ({
80
84
  variant={applyButtonVariant}
81
85
  size={buttonSize}
82
86
  className={"map-apply-now-button"}
83
- onClick={trackApplyNow}
87
+ execOnClick={trackApplyNow}
88
+ isIframe={isIframe}
89
+ iframeMsgType={"APPLY_NOW_LINK"}
84
90
  >
85
91
  {applyNowText}
86
92
  </Button.Anchor>
87
93
  }
88
94
  {item.applyOnline == 1 && item.applyUrl && includeDialog &&
89
- <ApplyDialog applyUrl={item.applyUrl} internalApplyLink={internalApplyLink} companyName={companyName}>
95
+ <ApplyDialog applyUrl={item.applyUrl} internalApplyLink={internalApplyLink} companyName={companyName} item={item} trackEvent={trackEvent} eventTypes={eventTypes} isIframe={isIframe}>
90
96
  <Button.Anchor
91
97
  variant={applyButtonVariant}
92
98
  size={buttonSize}
93
99
  className={"map-apply-now-button"}
94
- onClick={trackApplyNow} // TODO: Move event to popup
100
+ execOnClick={trackApplyOpen}
95
101
  >
96
102
  {applyNowText}
97
103
  </Button.Anchor>
@@ -103,7 +109,9 @@ const ButtonGroupApply = ({
103
109
  variant={applyButtonVariant}
104
110
  size={buttonSize}
105
111
  className={"map-apply-now-button"}
106
- onClick={trackEasyApply}
112
+ execOnClick={trackEasyApply}
113
+ isIframe={isIframe}
114
+ iframeMsgType={"EASY_APPLY_LINK"}
107
115
  >
108
116
  {easyApplyText}
109
117
  </Button.Anchor>
@@ -53,6 +53,10 @@ const Button = ({
53
53
  );
54
54
  };
55
55
 
56
+ const postMessage = (href, msgType) => {
57
+ window.parent.postMessage({ href: href, type: msgType }, "*");
58
+ };
59
+
56
60
  export const Anchor = ({
57
61
  children,
58
62
  href,
@@ -62,6 +66,9 @@ export const Anchor = ({
62
66
  isBlock,
63
67
  hasUnderline,
64
68
  target = '_blank',
69
+ execOnClick = null,
70
+ isIframe = false,
71
+ iframeMsgType,
65
72
  ...rest
66
73
  }) => {
67
74
  return (
@@ -69,9 +76,11 @@ export const Anchor = ({
69
76
  href={href}
70
77
  target={target}
71
78
  className={buttonClasses(variant, size, isBlock, hasUnderline, className)}
72
- onClick={href === '#' ? e => {
79
+ onClick={isIframe ? e => {
73
80
  e.preventDefault();
74
- } : null}
81
+ execOnClick();
82
+ postMessage(href, iframeMsgType);
83
+ } : href === '#' ? e => { e.preventDefault(); execOnClick(); } : execOnClick}
75
84
  {...rest}
76
85
  >
77
86
  {children}
@@ -174,7 +183,6 @@ export const ButtonIcon = ({
174
183
  }) => {
175
184
  return (
176
185
  <Icon
177
-
178
186
  icon={icon}
179
187
  size={size}
180
188
  className={className ?? ''}