@abcagency/hc-ui-components 1.3.76 → 1.3.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (495) 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 +24 -9
  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/mapIconUtil.js +18 -18
  29. package/dist/util/mapIconUtil.js.map +1 -1
  30. package/dist/util/sortUtil.js +12 -16
  31. package/dist/util/sortUtil.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/components/containers/jobListing/listing-details-container.js +2 -1
  34. package/src/components/containers/list/item-list-container.tsx +1 -0
  35. package/src/components/containers/maps/map-container.js +56 -24
  36. package/src/components/modules/buttons/button-group-apply.js +17 -9
  37. package/src/components/modules/buttons/default.js +11 -3
  38. package/src/components/modules/dialogs/apply-dialog.js +52 -36
  39. package/src/components/modules/jobListing/listing-details.js +2 -0
  40. package/src/constants/eventTypes.js +3 -0
  41. package/src/constants/placeTypes.js +0 -1
  42. package/src/contexts/mapListContext.tsx +4 -0
  43. package/src/util/filterUtil.js +0 -1
  44. package/src/util/mapIconUtil.js +8 -32
  45. package/src/util/sortUtil.js +13 -20
  46. package/dist/components/modules/buttons/commute-pill.js +0 -18
  47. package/dist/components/modules/buttons/commute-pill.js.map +0 -1
  48. package/dist/components/modules/list/item-expand-card/recruiter-contact-nav.js +0 -38
  49. package/dist/components/modules/list/item-expand-card/recruiter-contact-nav.js.map +0 -1
  50. package/dist/components/modules/list/item-expand-card/recruiter-details.js +0 -40
  51. package/dist/components/modules/list/item-expand-card/recruiter-details.js.map +0 -1
  52. package/dist/components/modules/list/item-expand-card/recruiter-headshot.js +0 -20
  53. package/dist/components/modules/list/item-expand-card/recruiter-headshot.js.map +0 -1
  54. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -802
  55. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  56. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -679
  57. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  58. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -343
  59. 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
  60. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -140
  61. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  62. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
  63. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  64. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/combobox/combobox.js +0 -33
  65. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +0 -1
  66. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/keyboard.js +0 -4
  67. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
  68. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/transition.js +0 -19
  69. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/transition.js.map +0 -1
  70. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js +0 -8
  71. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js.map +0 -1
  72. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-computed.js +0 -8
  73. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-computed.js.map +0 -1
  74. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-controllable.js +0 -7
  75. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +0 -1
  76. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -7
  77. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
  78. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -7
  79. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
  80. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -7
  81. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
  82. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -7
  83. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
  84. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-id.js +0 -9
  85. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-id.js.map +0 -1
  86. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +0 -7
  87. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +0 -1
  88. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -7
  89. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
  90. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -7
  91. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
  92. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -10
  93. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
  94. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -7
  95. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
  96. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -7
  97. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
  98. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -7
  99. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
  100. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -7
  101. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
  102. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -6
  103. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
  104. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -11
  105. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
  106. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -8
  107. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
  108. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-watch.js +0 -7
  109. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +0 -1
  110. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -7
  111. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
  112. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/hidden.js +0 -6
  113. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/hidden.js.map +0 -1
  114. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -6
  115. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
  116. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/active-element-history.js +0 -6
  117. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +0 -1
  118. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/bugs.js +0 -4
  119. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
  120. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -4
  121. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
  122. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/class-names.js +0 -4
  123. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
  124. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/disposables.js +0 -6
  125. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
  126. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/document-ready.js +0 -4
  127. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/document-ready.js.map +0 -1
  128. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/env.js +0 -4
  129. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
  130. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -7
  131. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
  132. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/form.js +0 -4
  133. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/form.js.map +0 -1
  134. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/match.js +0 -4
  135. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
  136. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -4
  137. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
  138. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/once.js +0 -4
  139. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/once.js.map +0 -1
  140. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/owner.js +0 -6
  141. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
  142. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/platform.js +0 -4
  143. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
  144. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/render.js +0 -11
  145. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
  146. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@iconify/react/dist/iconify.js +0 -1928
  147. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@iconify/react/dist/iconify.js.map +0 -1
  148. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/number/dist/index.js +0 -7
  149. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/number/dist/index.js.map +0 -1
  150. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/primitive/dist/index.js +0 -12
  151. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  152. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-accordion/dist/index.js +0 -304
  153. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-accordion/dist/index.js.map +0 -1
  154. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
  155. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  156. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
  157. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collapsible/dist/index.js.map +0 -1
  158. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
  159. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  160. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
  161. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  162. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-context/dist/index.js +0 -80
  163. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  164. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dialog/dist/index.js +0 -320
  165. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  166. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
  167. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  168. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
  169. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  170. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
  171. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  172. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
  173. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  174. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-id/dist/index.js +0 -16
  175. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  176. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-popper/dist/index.js +0 -279
  177. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  178. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
  179. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  180. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
  181. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  182. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
  183. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  184. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
  185. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  186. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-select/dist/index.js +0 -1109
  187. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-select/dist/index.js.map +0 -1
  188. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
  189. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  190. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
  191. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-tabs/dist/index.js.map +0 -1
  192. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
  193. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  194. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
  195. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  196. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
  197. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  198. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
  199. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  200. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -16
  201. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-previous/dist/index.js.map +0 -1
  202. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
  203. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  204. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
  205. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  206. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@react-google-maps/api/dist/esm.js +0 -8515
  207. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@react-google-maps/api/dist/esm.js.map +0 -1
  208. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@remix-run/router/dist/router.js +0 -271
  209. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@remix-run/router/dist/router.js.map +0 -1
  210. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -43
  211. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
  212. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -669
  213. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
  214. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -61
  215. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
  216. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  217. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  218. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/fuse.js/dist/fuse.js +0 -1779
  219. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/fuse.js/dist/fuse.js.map +0 -1
  220. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/get-nonce/dist/es2015/index.js +0 -9
  221. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  222. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -10
  223. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  224. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
  225. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  226. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
  227. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  228. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
  229. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  230. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
  231. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  232. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
  233. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  234. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
  235. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  236. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
  237. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  238. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
  239. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  240. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
  241. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  242. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router/dist/index.js +0 -280
  243. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router/dist/index.js.map +0 -1
  244. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router-dom/dist/index.js +0 -201
  245. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router-dom/dist/index.js.map +0 -1
  246. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
  247. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  248. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
  249. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  250. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
  251. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  252. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2530
  253. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
  254. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tslib/tslib.es6.js +0 -57
  255. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tslib/tslib.es6.js.map +0 -1
  256. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
  257. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  258. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -49
  259. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  260. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
  261. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  262. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-places-autocomplete/dist/index.esm.js +0 -243
  263. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-places-autocomplete/dist/index.esm.js.map +0 -1
  264. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
  265. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  266. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
  267. package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  268. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -802
  269. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
  270. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -679
  271. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
  272. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -343
  273. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
  274. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -140
  275. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
  276. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
  277. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
  278. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +0 -33
  279. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +0 -1
  280. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +0 -4
  281. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
  282. package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js +0 -19
  283. package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js.map +0 -1
  284. package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js +0 -8
  285. package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js.map +0 -1
  286. package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js +0 -8
  287. package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js.map +0 -1
  288. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +0 -7
  289. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +0 -1
  290. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -7
  291. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
  292. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -7
  293. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
  294. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -7
  295. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
  296. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -7
  297. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
  298. package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js +0 -9
  299. package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js.map +0 -1
  300. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +0 -7
  301. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +0 -1
  302. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -7
  303. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
  304. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -7
  305. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
  306. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -10
  307. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
  308. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -7
  309. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
  310. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -7
  311. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
  312. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -7
  313. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
  314. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -7
  315. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
  316. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -6
  317. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
  318. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -11
  319. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
  320. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -8
  321. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
  322. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +0 -7
  323. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +0 -1
  324. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -7
  325. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
  326. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +0 -6
  327. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js.map +0 -1
  328. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -6
  329. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
  330. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +0 -6
  331. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +0 -1
  332. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +0 -4
  333. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
  334. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -4
  335. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
  336. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +0 -4
  337. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
  338. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +0 -6
  339. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
  340. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +0 -4
  341. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js.map +0 -1
  342. package/dist/node_modules/@headlessui/react/dist/utils/env.js +0 -4
  343. package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
  344. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -7
  345. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
  346. package/dist/node_modules/@headlessui/react/dist/utils/form.js +0 -4
  347. package/dist/node_modules/@headlessui/react/dist/utils/form.js.map +0 -1
  348. package/dist/node_modules/@headlessui/react/dist/utils/match.js +0 -4
  349. package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
  350. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -4
  351. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
  352. package/dist/node_modules/@headlessui/react/dist/utils/once.js +0 -4
  353. package/dist/node_modules/@headlessui/react/dist/utils/once.js.map +0 -1
  354. package/dist/node_modules/@headlessui/react/dist/utils/owner.js +0 -6
  355. package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
  356. package/dist/node_modules/@headlessui/react/dist/utils/platform.js +0 -4
  357. package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
  358. package/dist/node_modules/@headlessui/react/dist/utils/render.js +0 -11
  359. package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
  360. package/dist/node_modules/@iconify/react/dist/iconify.js +0 -1928
  361. package/dist/node_modules/@iconify/react/dist/iconify.js.map +0 -1
  362. package/dist/node_modules/@radix-ui/number/dist/index.js +0 -7
  363. package/dist/node_modules/@radix-ui/number/dist/index.js.map +0 -1
  364. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -12
  365. package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
  366. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +0 -304
  367. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js.map +0 -1
  368. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -26
  369. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
  370. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -145
  371. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +0 -1
  372. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -69
  373. package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +0 -1
  374. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -19
  375. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
  376. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -80
  377. package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
  378. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -320
  379. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js.map +0 -1
  380. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -12
  381. package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +0 -1
  382. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -212
  383. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
  384. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -27
  385. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +0 -1
  386. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -208
  387. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +0 -1
  388. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -16
  389. package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
  390. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -279
  391. package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
  392. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -18
  393. package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
  394. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -120
  395. package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
  396. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -42
  397. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
  398. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -221
  399. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
  400. package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -1109
  401. package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +0 -1
  402. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -82
  403. package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -1
  404. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -187
  405. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js.map +0 -1
  406. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
  407. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
  408. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -47
  409. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
  410. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -19
  411. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
  412. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -8
  413. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
  414. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -16
  415. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js.map +0 -1
  416. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -41
  417. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
  418. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -35
  419. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
  420. package/dist/node_modules/@react-google-maps/api/dist/esm.js +0 -8515
  421. package/dist/node_modules/@react-google-maps/api/dist/esm.js.map +0 -1
  422. package/dist/node_modules/@remix-run/router/dist/router.js +0 -271
  423. package/dist/node_modules/@remix-run/router/dist/router.js.map +0 -1
  424. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -43
  425. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
  426. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -669
  427. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
  428. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -61
  429. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
  430. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  431. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +0 -1
  432. package/dist/node_modules/fuse.js/dist/fuse.js +0 -1779
  433. package/dist/node_modules/fuse.js/dist/fuse.js.map +0 -1
  434. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -9
  435. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +0 -1
  436. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -17
  437. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  438. package/dist/node_modules/react/jsx-runtime.js +0 -12
  439. package/dist/node_modules/react/jsx-runtime.js.map +0 -1
  440. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -10
  441. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +0 -1
  442. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -161
  443. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +0 -1
  444. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -39
  445. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +0 -1
  446. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -22
  447. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +0 -1
  448. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -107
  449. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +0 -1
  450. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -6
  451. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +0 -1
  452. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -8
  453. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +0 -1
  454. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -57
  455. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +0 -1
  456. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -11
  457. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +0 -1
  458. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -32
  459. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +0 -1
  460. package/dist/node_modules/react-router/dist/index.js +0 -280
  461. package/dist/node_modules/react-router/dist/index.js.map +0 -1
  462. package/dist/node_modules/react-router-dom/dist/index.js +0 -201
  463. package/dist/node_modules/react-router-dom/dist/index.js.map +0 -1
  464. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -20
  465. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +0 -1
  466. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -26
  467. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +0 -1
  468. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -52
  469. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +0 -1
  470. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2530
  471. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
  472. package/dist/node_modules/tslib/tslib.es6.js +0 -57
  473. package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
  474. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -25
  475. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  476. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -49
  477. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  478. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -43
  479. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  480. package/dist/node_modules/use-places-autocomplete/dist/index.esm.js +0 -243
  481. package/dist/node_modules/use-places-autocomplete/dist/index.esm.js.map +0 -1
  482. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -22
  483. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +0 -1
  484. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -78
  485. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  486. package/dist/services/recruiterService.js +0 -16
  487. package/dist/services/recruiterService.js.map +0 -1
  488. package/dist/types/components/modules/buttons/commute-pill.d.ts +0 -5
  489. package/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +0 -17
  490. package/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +0 -21
  491. package/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +0 -8
  492. package/dist/wellspan-careers-web/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -49
  493. package/dist/wellspan-careers-web/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  494. package/dist/wellspan-careers-web/node_modules/react/jsx-runtime.js +0 -12
  495. package/dist/wellspan-careers-web/node_modules/react/jsx-runtime.js.map +0 -1
@@ -19,7 +19,8 @@ var ListingDetailsContainer = function ListingDetailsContainer(_ref) {
19
19
  Link = _useMapList.Link,
20
20
  linkFormat = _useMapList.linkFormat,
21
21
  easyApplyUrl = _useMapList.easyApplyUrl,
22
- easyApplyText = _useMapList.easyApplyText;
22
+ easyApplyText = _useMapList.easyApplyText,
23
+ isIframe = _useMapList.isIframe;
23
24
  var useDetailsPostMessage = siteConfig.useDetailsPostMessage,
24
25
  useApplyDialog = siteConfig.useApplyDialog,
25
26
  internalApplyLink = siteConfig.internalApplyLink,
@@ -36,6 +37,7 @@ var ListingDetailsContainer = function ListingDetailsContainer(_ref) {
36
37
  linkFormat: linkFormat,
37
38
  easyApplyUrl: easyApplyUrl,
38
39
  easyApplyText: easyApplyText,
40
+ isIframe: isIframe,
39
41
  useApplyDialog: useApplyDialog,
40
42
  internalApplyLink: internalApplyLink,
41
43
  companyName: companyName,
@@ -1 +1 @@
1
- {"version":3,"file":"listing-details-container.js","sources":["../../../../src/components/containers/jobListing/listing-details-container.js"],"sourcesContent":["import React from 'react';\nimport { useMap } from '~/contexts/mapContext';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\nimport ListingDetails from '~/components/modules/jobListing/listing-details';\n\nconst ListingDetailsContainer = ({ item, recruiter }) => {\n\tconst { trackEvent, eventTypes } = useTrackEvent();\n\tconst { travelTime } = useMap();\n\tconst { siteConfig, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, easyApplyText } = useMapList();\n\n\tconst {\n\t useDetailsPostMessage,\n\t useApplyDialog,\n\t internalApplyLink,\n\t companyName,\n\t jobsDomain\n\t} = siteConfig;\n\n\treturn (\n\t <ListingDetails\n\t\t\titem={item}\n\t\t\trecruiter={recruiter}\n\t\t\ttravelTime={travelTime}\n\t\t\tuseDetailsPostMessage={useDetailsPostMessage}\n\t\t\tnavigateToDetails={navigateToDetails}\n\t\t\tnavigateToEasyApply={navigateToEasyApply}\n\t\t\tLink={Link}\n\t\t\tlinkFormat={linkFormat}\n\t\t\teasyApplyUrl={easyApplyUrl}\n\t\t\teasyApplyText={easyApplyText}\n\t\t\tuseApplyDialog={useApplyDialog}\n\t\t\tinternalApplyLink={internalApplyLink}\n\t\t\tcompanyName={companyName}\n\t\t\tjobsDomain={jobsDomain}\n\t\t\ttrackEvent={trackEvent}\n\t\t\teventTypes={eventTypes}\n\t />\n\t);\n};\n\nexport default ListingDetailsContainer;\n"],"names":["ListingDetailsContainer","_ref","item","recruiter","_useTrackEvent","useTrackEvent","trackEvent","eventTypes","_useMap","useMap","travelTime","_useMapList","useMapList","siteConfig","navigateToDetails","navigateToEasyApply","Link","linkFormat","easyApplyUrl","easyApplyText","useDetailsPostMessage","useApplyDialog","internalApplyLink","companyName","jobsDomain","React","createElement","ListingDetails"],"mappings":";;;;;;AAMA,IAAMA,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,IAAA,EAA4B;AAAA,EAAA,IAAtBC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS,CAAA;AACjD,EAAA,IAAAC,cAAA,GAAmCC,aAAa,EAAE;IAA1CC,UAAU,GAAAF,cAAA,CAAVE,UAAU;IAAEC,UAAU,GAAAH,cAAA,CA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BlB,IAAAA,UAAU,EAAEA,UAAW;AACvBC,IAAAA,UAAU,EAAEA,UAAAA;AAAW,GACtB,CAAC,CAAA;AAEL;;;;"}
1
+ {"version":3,"file":"listing-details-container.js","sources":["../../../../src/components/containers/jobListing/listing-details-container.js"],"sourcesContent":["import React from 'react';\nimport { useMap } from '~/contexts/mapContext';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\nimport ListingDetails from '~/components/modules/jobListing/listing-details';\n\nconst ListingDetailsContainer = ({ item, recruiter }) => {\n\tconst { trackEvent, eventTypes } = useTrackEvent();\n\tconst { travelTime } = useMap();\n\tconst { siteConfig, navigateToDetails, navigateToEasyApply, Link, linkFormat, easyApplyUrl, easyApplyText, isIframe } = useMapList();\n\n\tconst {\n\t useDetailsPostMessage,\n\t useApplyDialog,\n\t internalApplyLink,\n\t companyName,\n\t jobsDomain\n\t} = siteConfig;\n\n\treturn (\n\t <ListingDetails\n\t\t\titem={item}\n\t\t\trecruiter={recruiter}\n\t\t\ttravelTime={travelTime}\n\t\t\tuseDetailsPostMessage={useDetailsPostMessage}\n\t\t\tnavigateToDetails={navigateToDetails}\n\t\t\tnavigateToEasyApply={navigateToEasyApply}\n\t\t\tLink={Link}\n\t\t\tlinkFormat={linkFormat}\n\t\t\teasyApplyUrl={easyApplyUrl}\n\t\t\teasyApplyText={easyApplyText}\n\t\t\tisIframe={isIframe}\n\t\t\tuseApplyDialog={useApplyDialog}\n\t\t\tinternalApplyLink={internalApplyLink}\n\t\t\tcompanyName={companyName}\n\t\t\tjobsDomain={jobsDomain}\n\t\t\ttrackEvent={trackEvent}\n\t\t\teventTypes={eventTypes}\n\t />\n\t);\n};\n\nexport default ListingDetailsContainer;\n"],"names":["ListingDetailsContainer","_ref","item","recruiter","_useTrackEvent","useTrackEvent","trackEvent","eventTypes","_useMap","useMap","travelTime","_useMapList","useMapList","siteConfig","navigateToDetails","navigateToEasyApply","Link","linkFormat","easyApplyUrl","easyApplyText","isIframe","useDetailsPostMessage","useApplyDialog","internalApplyLink","companyName","jobsDomain","React","createElement","ListingDetails"],"mappings":";;;;;;AAMA,IAAMA,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,IAAA,EAA4B;AAAA,EAAA,IAAtBC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS,CAAA;AACjD,EAAA,IAAAC,cAAA,GAAmCC,aAAa,EAAE;IAA1CC,UAAU,GAAAF,cAAA,CAAVE,UAAU;IAAEC,UAAU,GAAAH,cAAA,CAAVG,UAAU,CAAA;AAC9B,EAAA,IAAAC,OAAA,GAAuBC,MAAM,EAAE;IAAvBC,UAAU,GAAAF,OAAA,CAAVE,UAAU,CAAA;AAClB,EAAA,IAAAC,WAAA,GAAwHC,UAAU,EAAE;IAA5HC,UAAU,GAAAF,WAAA,CAAVE,UAAU;IAAEC,iBAAiB,GAAAH,WAAA,CAAjBG,iBAAiB;IAAEC,mBAAmB,GAAAJ,WAAA,CAAnBI,mBAAmB;IAAEC,IAAI,GAAAL,WAAA,CAAJK,IAAI;IAAEC,UAAU,GAAAN,WAAA,CAAVM,UAAU;IAAEC,YAAY,GAAAP,WAAA,CAAZO,YAAY;IAAEC,aAAa,GAAAR,WAAA,CAAbQ,aAAa;IAAEC,QAAQ,GAAAT,WAAA,CAARS,QAAQ,CAAA;AAEnH,EAAA,IACEC,qBAAqB,GAKnBR,UAAU,CALZQ,qBAAqB;IACrBC,cAAc,GAIZT,UAAU,CAJZS,cAAc;IACdC,iBAAiB,GAGfV,UAAU,CAHZU,iBAAiB;IACjBC,WAAW,GAETX,UAAU,CAFZW,WAAW;IACXC,UAAU,GACRZ,UAAU,CADZY,UAAU,CAAA;AAGZ,EAAA,oBACEC,cAAA,CAAAC,aAAA,CAACC,cAAc,EAAA;AACf1B,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,SAAS,EAAEA,SAAU;AACrBO,IAAAA,UAAU,EAAEA,UAAW;AACvBW,IAAAA,qBAAqB,EAAEA,qBAAsB;AAC7CP,IAAAA,iBAAiB,EAAEA,iBAAkB;AACrCC,IAAAA,mBAAmB,EAAEA,mBAAoB;AACzCC,IAAAA,IAAI,EAAEA,IAAK;AACXC,IAAAA,UAAU,EAAEA,UAAW;AACvBC,IAAAA,YAAY,EAAEA,YAAa;AAC3BC,IAAAA,aAAa,EAAEA,aAAc;AAC7BC,IAAAA,QAAQ,EAAEA,QAAS;AACnBE,IAAAA,cAAc,EAAEA,cAAe;AAC/BC,IAAAA,iBAAiB,EAAEA,iBAAkB;AACrCC,IAAAA,WAAW,EAAEA,WAAY;AACzBC,IAAAA,UAAU,EAAEA,UAAW;AACvBnB,IAAAA,UAAU,EAAEA,UAAW;AACvBC,IAAAA,UAAU,EAAEA,UAAAA;AAAW,GACtB,CAAC,CAAA;AAEL;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"item-list-container.js","sources":["../../../../src/components/containers/list/item-list-container.tsx"],"sourcesContent":["import React from 'react';\nimport useListLogic from '~/hooks/useList';\nimport { useMap } from '~/contexts/mapContext';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\nimport ItemsList from '~/components/modules/list/item-list';\nimport Accordion from '~/components/modules/accordions/default';\nimport MapAccordionItemContainer from '~/components/containers/accordions/map-accordion-item-container';\nimport { dynamicSort } from '~/util/sortUtil';\nimport { Listing } from '~/types/Listings';\nimport ListingDetailsContainer from '../jobListing/listing-details-container';\n\ninterface ItemsListContainerProps {\n fieldNames: Record<string, string>;\n showMap: boolean;\n fieldsShown: string[];\n specialFeatures: any;\n}\n\nconst ItemsListContainer: React.FC<ItemsListContainerProps> = ({\n\tfieldNames,\n\tshowMap,\n\tfieldsShown,\n\tspecialFeatures\n}) => {\n\tconst { filteredListings, loading, commuteLocation, sortSetting, setSortSetting, ExpandListComponent, favorites } = useMapList();\n\tconst { itemLimit, loader, scrollContainerRef, itemRefs } = useListLogic(filteredListings as any);\n\tconst { selectedListItem } = useMap();\n\tconst { trackEvent, eventTypes } = useTrackEvent() as any;\n\tconst itemExpandedContent = (item: any, recruiter: any) =>\n\t\titem ? (ExpandListComponent ? <ExpandListComponent listing={item} /> : <ListingDetailsContainer item={item} recruiter={recruiter} />) : null;\n\n\tif (!fieldsShown.includes('travelTime') && commuteLocation != null && Object.entries(commuteLocation).length > 0) {\n\t\tfieldsShown.push('travelTime');\n\t\tfieldNames['travelTime'] = 'Commute';\n\t} else if (fieldsShown.includes('travelTime') && !commuteLocation) {\n\t\tfieldsShown = fieldsShown.filter(x => x !== 'travelTime');\n\t}\n\n\tconst setTrackedSortSetting = (sortSetting: { field: string; type: string }) => {\n\t\ttrackEvent(eventTypes.LIST_SORTED, sortSetting);\n\t\tsetSortSetting(sortSetting);\n\t};\n\t\t//fieldsShown.push('favorite');\n\treturn (\n\t\t<ItemsList\n\t\t\tfieldNames={fieldNames}\n\t\t\tshowMap={showMap}\n\t\t\tfieldsShown={fieldsShown}\n\t\t\tfilteredListings={filteredListings}\n\t\t\tloading={loading}\n\t\t\tsortSetting={sortSetting}\n\t\t\tsetSortSetting={setTrackedSortSetting}\n\t\t\titemLimit={itemLimit}\n\t\t\tloader={loader}\n\t\t\tscrollContainerRef={scrollContainerRef}\n\t\t\titemRefs={itemRefs}\n\t\t\tselectedListItem={selectedListItem}\n\t\t\tincludeFavorite={true}\n\t\t>\n\t\t\t<Accordion className=\"hc-divide-y hc-divide-uiAccent/10 hc-z-[1000] hc-h-[100%]\" defaultValue={selectedListItem?.id}>\n\t\t\t\t{(sortSetting ? dynamicSort(filteredListings, sortSetting.field, sortSetting.type, favorites as any) : filteredListings)\n\t\t\t\t\t.slice(0, itemLimit)\n\t\t\t\t\t.map((item: Listing) => (\n\t\t\t\t\t\t<MapAccordionItemContainer\n\t\t\t\t\t\t\tkey={item.id}\n\t\t\t\t\t\t\tshowMap={showMap}\n\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\titemRefs={itemRefs}\n\t\t\t\t\t\t\tfieldsShown={fieldsShown}\n\t\t\t\t\t\t\titemExpandedContent={itemExpandedContent}\n\t\t\t\t\t\t\tspecialFeatures={specialFeatures}\n\t\t\t\t\t\t\tisActive={selectedListItem?.id === item.id}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t</Accordion>\n\t\t</ItemsList>\n\t);\n};\n\nexport default ItemsListContainer;\n"],"names":["React"],"mappings":";;;;;;;;;;;AAmBA,MAAM,kBAAkB,GAAsC,CAAC,EAC9D,UAAU,EACV,OAAO,EACP,WAAW,EACX,eAAe,EACf,KAAI;AACJ,IAAA,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,CAAC;AACjI,IAAA,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC,gBAAuB,CAAC,CAAC;AAClG,IAAA,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,EAAE,CAAC;IACtC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,aAAa,EAAS,CAAC;IAC1D,MAAM,mBAAmB,GAAG,CAAC,IAAS,EAAE,SAAc,KACrD,IAAI,IAAI,mBAAmB,GAAIA,cAAA,CAAA,aAAA,CAAC,mBAAmB,EAAC,EAAA,OAAO,EAAE,IAAI,EAAA,CAAI,GAAGA,6BAAC,uBAAuB,EAAA,EAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAI,CAAA,IAAI,IAAI,CAAC;IAE/I,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,eAAe,IAAI,IAAI,IAAI,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;AACjH,QAAA,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC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E,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,mBAAmB,EACxC,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,gBAAgB,EAAE,EAAE,KAAK,IAAI,CAAC,EAAE,EACzC,CAAA,CACF,CAAC,CACQ,CACD,EACX;AACH;;;;"}
1
+ {"version":3,"file":"item-list-container.js","sources":["../../../../src/components/containers/list/item-list-container.tsx"],"sourcesContent":["import React from 'react';\nimport useListLogic from '~/hooks/useList';\nimport { useMap } from '~/contexts/mapContext';\nimport { useMapList } from '~/contexts/mapListContext';\nimport { useTrackEvent } from '~/contexts/trackEventContext';\nimport ItemsList from '~/components/modules/list/item-list';\nimport Accordion from '~/components/modules/accordions/default';\nimport MapAccordionItemContainer from '~/components/containers/accordions/map-accordion-item-container';\nimport { dynamicSort } from '~/util/sortUtil';\nimport { Listing } from '~/types/Listings';\nimport ListingDetailsContainer from '../jobListing/listing-details-container';\n\ninterface ItemsListContainerProps {\n fieldNames: Record<string, string>;\n showMap: boolean;\n fieldsShown: string[];\n specialFeatures: any;\n}\n\nconst ItemsListContainer: React.FC<ItemsListContainerProps> = ({\n\tfieldNames,\n\tshowMap,\n\tfieldsShown,\n\tspecialFeatures\n}) => {\n\tconst { filteredListings, loading, commuteLocation, sortSetting, setSortSetting, ExpandListComponent, favorites } = useMapList();\n\tconst { itemLimit, loader, scrollContainerRef, itemRefs } = useListLogic(filteredListings as any);\n\tconst { selectedListItem } = useMap();\n\tconst { trackEvent, eventTypes } = useTrackEvent() as any;\n\tconst itemExpandedContent = (item: any, recruiter: any) =>\n\t\titem ? (ExpandListComponent ? <ExpandListComponent listing={item} /> : <ListingDetailsContainer item={item} recruiter={recruiter} />) : null;\n\n\tif (!fieldsShown.includes('travelTime') && commuteLocation != null && Object.entries(commuteLocation).length > 0) {\n\t\tfieldsShown.push('travelTime');\n\t\tfieldNames['travelTime'] = 'Commute';\n\t} else if (fieldsShown.includes('travelTime') && !commuteLocation) {\n\t\tfieldsShown = fieldsShown.filter(x => x !== 'travelTime');\n\t}\n\n\tconst setTrackedSortSetting = (sortSetting: { field: string; type: string }) => {\n\t\ttrackEvent(eventTypes.LIST_SORTED, sortSetting);\n\t\tsetSortSetting(sortSetting);\n\t};\n\t\t//fieldsShown.push('favorite');\n\n\treturn (\n\t\t<ItemsList\n\t\t\tfieldNames={fieldNames}\n\t\t\tshowMap={showMap}\n\t\t\tfieldsShown={fieldsShown}\n\t\t\tfilteredListings={filteredListings}\n\t\t\tloading={loading}\n\t\t\tsortSetting={sortSetting}\n\t\t\tsetSortSetting={setTrackedSortSetting}\n\t\t\titemLimit={itemLimit}\n\t\t\tloader={loader}\n\t\t\tscrollContainerRef={scrollContainerRef}\n\t\t\titemRefs={itemRefs}\n\t\t\tselectedListItem={selectedListItem}\n\t\t\tincludeFavorite={true}\n\t\t>\n\t\t\t<Accordion className=\"hc-divide-y hc-divide-uiAccent/10 hc-z-[1000] hc-h-[100%]\" defaultValue={selectedListItem?.id}>\n\t\t\t\t{(sortSetting ? dynamicSort(filteredListings, sortSetting.field, sortSetting.type, favorites as any) : filteredListings)\n\t\t\t\t\t.slice(0, itemLimit)\n\t\t\t\t\t.map((item: Listing) => (\n\t\t\t\t\t\t<MapAccordionItemContainer\n\t\t\t\t\t\t\tkey={item.id}\n\t\t\t\t\t\t\tshowMap={showMap}\n\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\titemRefs={itemRefs}\n\t\t\t\t\t\t\tfieldsShown={fieldsShown}\n\t\t\t\t\t\t\titemExpandedContent={itemExpandedContent}\n\t\t\t\t\t\t\tspecialFeatures={specialFeatures}\n\t\t\t\t\t\t\tisActive={selectedListItem?.id === item.id}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t</Accordion>\n\t\t</ItemsList>\n\t);\n};\n\nexport default ItemsListContainer;\n"],"names":["React"],"mappings":";;;;;;;;;;;AAmBA,MAAM,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slicedToArray(_useState, 2),
36
36
  mapItems = _useState2[0],
37
37
  setMapItems = _useState2[1];
38
+ var _useState3 = useState([]),
39
+ _useState4 = _slicedToArray(_useState3, 2),
40
+ markersToHideFromBounds = _useState4[0],
41
+ setMarkersToHideFromBounds = _useState4[1];
38
42
  var mapRef = useRef();
39
43
  var markerRefs = useRef({});
40
44
  var mapContainerRef = useRef(null);
@@ -62,13 +66,17 @@ var MapContainer = function MapContainer(_ref) {
62
66
  if (!oldMapItems || oldMapItems.length === 0) return;
63
67
  if (!siteConfig.defaultMapState || mapInteracted || selectedFilters !== null && selectedFilters !== void 0 && selectedFilters.state || selectedFilters !== null && selectedFilters !== void 0 && selectedFilters.city) {
64
68
  setMapItems(oldMapItems);
69
+ setMarkersToHideFromBounds([]);
65
70
  return;
66
71
  }
67
- var filteredMapItems = oldMapItems.filter(function (x) {
68
- return x.address.state == siteConfig.defaultMapState;
72
+ var markersToHide = oldMapItems.filter(function (x) {
73
+ return x.address.state !== siteConfig.defaultMapState;
74
+ }).map(function (item) {
75
+ return item.id;
69
76
  });
70
- setMapItems(filteredMapItems);
71
- }, [oldMapItems, selectedFilters, siteConfig]);
77
+ setMarkersToHideFromBounds(markersToHide);
78
+ setMapItems(oldMapItems);
79
+ }, [oldMapItems, selectedFilters, siteConfig, mapInteracted]);
72
80
  useEffect(function () {
73
81
  if (mapContainerRef.current) {
74
82
  var handleScroll = function handleScroll() {
@@ -90,10 +98,12 @@ var MapContainer = function MapContainer(_ref) {
90
98
  if (mapRef.current) {
91
99
  var mapInstance = mapRef.current;
92
100
  var dragStartListener = mapInstance.addListener("dragstart", function () {
93
- return setMapInteracted(true);
101
+ setMapInteracted(true);
102
+ setMarkersToHideFromBounds([]);
94
103
  });
95
104
  var mouseDownListener = mapInstance.addListener("mousedown", function () {
96
- return setMapInteracted(true);
105
+ setMapInteracted(true);
106
+ setMarkersToHideFromBounds([]);
97
107
  });
98
108
  return function () {
99
109
  google.maps.event.removeListener(dragStartListener);
@@ -129,6 +139,9 @@ var MapContainer = function MapContainer(_ref) {
129
139
  if ((mapInteracted === false || overload) && mapItems != null) {
130
140
  var bounds = new window.google.maps.LatLngBounds();
131
141
  mapItems.forEach(function (item) {
142
+ if (!mapInteracted && markersToHideFromBounds.includes(item.id)) {
143
+ return;
144
+ }
132
145
  bounds.extend(new google.maps.LatLng(item.latitude, item.longitude));
133
146
  });
134
147
  if (siteConfig.optionalShowLocationClusterConfig) {
@@ -152,6 +165,7 @@ var MapContainer = function MapContainer(_ref) {
152
165
  };
153
166
  var markerClickHandler = function markerClickHandler(mapLocation) {
154
167
  setMapInteracted(true);
168
+ setMarkersToHideFromBounds([]);
155
169
  selectLocationEntity(mapLocation);
156
170
  };
157
171
  var onLoad = function onLoad(map) {
@@ -209,6 +223,7 @@ var MapContainer = function MapContainer(_ref) {
209
223
  var mapItemsKey = mapItems.map(function (item) {
210
224
  return item.id;
211
225
  }).join("-");
226
+ console.log(location);
212
227
  return /*#__PURE__*/React__default.createElement(Map, {
213
228
  zoom: zoom,
214
229
  center: center,
@@ -238,7 +253,7 @@ var MapContainer = function MapContainer(_ref) {
238
253
  onClick: onClusterClick
239
254
  }, function (clusterer) {
240
255
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, mapItems.map(function (item) {
241
- var markerCount = Object.values(item.items).length;
256
+ Object.values(item.items).length;
242
257
  return /*#__PURE__*/React__default.createElement(MapMarkerContainer, {
243
258
  key: item.id,
244
259
  item: item,
@@ -248,8 +263,8 @@ var MapContainer = function MapContainer(_ref) {
248
263
  setSelectedLocation: setLocation,
249
264
  markerClickHandler: markerClickHandler,
250
265
  clusterer: clusterer,
251
- markerIcon: markerIcon(markerConfigs, markerCount),
252
- markerIconSelected: markerIconSelected(markerConfigs, markerCount),
266
+ markerIcon: markerIcon(markerConfigs),
267
+ markerIconSelected: markerIconSelected(markerConfigs),
253
268
  setMapInteracted: setMapInteracted
254
269
  });
255
270
  }), additionalMapMarkers && additionalMapMarkers.map(function (marker, index) {
@@ -1 +1 @@
1
- {"version":3,"file":"map-container.js","sources":["../../../../src/components/containers/maps/map-container.js"],"sourcesContent":["\"use client\";\n\nimport React, { useEffect, useRef, useState } from \"react\";\n\nimport MapMarker from \"~/components/containers/maps/map-marker-container\";\nimport PlaceMarker from \"~/components/modules/maps/place-marker\";\n\nimport { usePlaces } from \"~/contexts/placesContext\";\nimport { useMap } from \"~/contexts/mapContext\";\nimport { useMapList } from \"~/contexts/mapListContext\";\n\nimport { markerIconSelected, markerIcon, pinIcon } from \"~/util/mapIconUtil\";\n\nimport Map from \"~/components/modules/maps/map\";\nimport { MarkerClustererF, Marker } from \"@react-google-maps/api\";\nimport { clusterOptions } from \"~/util/mapUtil\";\n\nconst MapContainer = ({ markerConfigs, infoWindowClasses, clusterGridSize = 60 }) => {\n\tconst { location, zoom, center, selectLocationEntity, setLocation, mapInteracted, setMapInteracted, defaultZoomOverride } = useMap();\n\n\tconst { mapItems: oldMapItems, filteredListings,selectedFilters, setSelectedFilters, setQuery, siteConfig } = useMapList();\n\tconst [mapItems, setMapItems] = useState(null);\n\n\tconst mapRef = useRef();\n\tconst markerRefs = useRef({});\n\tconst mapContainerRef = useRef(null);\n\tconst {\n\t\tpoiMarkers,\n\t\tsetCurrentCenter,\n\t\tcurrentCenter,\n\t\tsetCurrentZoom,\n\t\tcurrentZoom,\n\t\tselectedPlaceMarker,\n\t\tsetSelectedPlaceMarker,\n\t\tplacesWindow,\n\t\tsetPlacesWindow,\n\t\tadditionalMapMarkers\n\t} = usePlaces();\n\n\tconst onIdle = () => {\n\t\tif (!currentCenter || !mapRef.current) return;\n\t\tconst newCenter = mapRef.current.getCenter().toJSON();\n\t\tconst newZoom = mapRef.current.zoom;\n\t\tsetCurrentCenter(newCenter);\n\n\t\tif (newZoom !== currentZoom) {\n\t\t\tsetCurrentZoom(newZoom);\n\t\t}\n\t};\n\n\tuseEffect(() => {\n\t if (!oldMapItems || oldMapItems.length === 0) return;\n\n\t\tif(!siteConfig.defaultMapState || mapInteracted || selectedFilters?.state || selectedFilters?.city){\n\n\t\t\tsetMapItems(oldMapItems);\n\t\t\treturn;\n\t\t}\n\n\t\tlet filteredMapItems = oldMapItems.filter(x => x.address.state == siteConfig.defaultMapState);\n\t\tsetMapItems(filteredMapItems);\n\t},[oldMapItems, selectedFilters, siteConfig]);\n\n\tuseEffect(() => {\n\t\tif (mapContainerRef.current) {\n\t\t\tconst handleScroll = () => {\n\t\t\t\tsetMapInteracted(true);\n\t\t\t};\n\t\t\tvar mapContainerRefCurrent = mapContainerRef.current;\n\t\t\tmapContainerRef.current.addEventListener(\"wheel\", handleScroll);\n\t\t\treturn () => mapContainerRefCurrent.removeEventListener(\"wheel\", handleScroll);\n\t\t}\n\t}, [mapContainerRef.current]);\n\n\tuseEffect(() => {\n\t\tif(mapRef.current && defaultZoomOverride && !mapInteracted && !location){\n\t\t\tmapRef.current.setZoom(defaultZoomOverride);\n\t\t}\n\t}, [mapInteracted]);\n\n\tuseEffect(() => {\n\t\tif (mapRef.current) {\n\t\t\tconst mapInstance = mapRef.current;\n\t\t\tconst dragStartListener = mapInstance.addListener(\"dragstart\", () => setMapInteracted(true));\n\t\t\tconst mouseDownListener = mapInstance.addListener(\"mousedown\", () => setMapInteracted(true));\n\t\t\treturn () => {\n\t\t\t\tgoogle.maps.event.removeListener(dragStartListener);\n\t\t\t\tgoogle.maps.event.removeListener(mouseDownListener);\n\t\t\t};\n\t\t}\n\t}, [mapRef.current, mapContainerRef.current]);\n\n\tuseEffect(() => {\n\t\tif (((mapItems && mapItems.length > 0) || poiMarkers.length > 0) && mapRef.current && !mapInteracted) {\n\t\t\tfitBounds(mapRef.current);\n\t\t}\n\t}, [mapItems, mapRef.current, location]);\n\n\tuseEffect(() => {\n\t\tif (((mapItems && mapItems.length > 0) || poiMarkers.length > 0) && mapRef.current && !mapInteracted) {\n\t\t\tfitBounds(mapRef.current, true);\n\t\t}\n\t\tif (mapRef.current && !mapInteracted) {\n\t\t\tconst currZoom = mapRef.current.zoom;\n\t\t\tconst setZoomVal = currZoom < 13 ? currZoom : 12;\n\t\t\tmapRef.current.setZoom(setZoomVal);\n\t\t}\n\t}, [filteredListings]);\n\n\tuseEffect(() => {\n\t\tif (!mapRef.current || !location || mapInteracted) return;\n\t\tmapRef.current.panTo(new google.maps.LatLng(location.latitude, location.longitude));\n\t\tif (mapRef.current) {\n\t\t\tconst setZoomVal = zoom < 13 ? zoom : 12;\n\t\t\tmapRef.current.setZoom(setZoomVal);\n\t\t}\n\t}, [location, zoom, mapRef.current]);\n\n\tconst fitBounds = (map, overload = false) => {\n\t\tif ((mapInteracted === false || overload) && mapItems != null) {\n\t\t\tconst bounds = new window.google.maps.LatLngBounds();\n\t\t\tmapItems.forEach(item => {\n\t\t\t\tbounds.extend(new google.maps.LatLng(item.latitude, item.longitude));\n\t\t\t});\n\t\t\tif (siteConfig.optionalShowLocationClusterConfig) {\n\t\t\t\tconst configLocation = new google.maps.LatLng(\n\t\t\t\t\tsiteConfig.optionalShowLocationClusterConfig.latitude,\n\t\t\t\t\tsiteConfig.optionalShowLocationClusterConfig.longitude\n\t\t\t\t);\n\t\t\t\tmap.panTo(configLocation);\n\t\t\t\tbounds.extend(\n\t\t\t\t\tnew google.maps.LatLng(\n\t\t\t\t\t\tsiteConfig.optionalShowLocationClusterConfig.latitude,\n\t\t\t\t\t\tsiteConfig.optionalShowLocationClusterConfig.longitude\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t\tif (!map) return;\n\t\t\tconst currentCenter = map.getCenter();\n\t\t\tmap.fitBounds(bounds);\n\t\t\tconst newCenter = bounds.getCenter();\n\t\t\tif (currentCenter && newCenter) {\n\t\t\t\tmap.panTo(newCenter);\n\t\t\t}\n\t\t}\n\t\tif(defaultZoomOverride && !mapInteracted && !location){\n\t\t\tmapRef.current.setZoom(defaultZoomOverride);\n\t\t}\n\t\telse if (mapRef.current.zoom > 17) {\n\t\t\tmapRef.current.setZoom(16);\n\t\t}\n\t};\n\n\tconst markerClickHandler = mapLocation => {\n\t\tsetMapInteracted(true);\n\t\tselectLocationEntity(mapLocation);\n\t};\n\n\tconst onLoad = map => {\n\t\tif (!location || location === null) {\n\t\t\tmapRef.current = map;\n\t\t\tfitBounds(map, true);\n\t\t\treturn;\n\t\t}\n\t\tmapRef.current = map;\n\n\t\tif (mapInteracted === false) {\n\t\t\tmapRef.current.panTo(new google.maps.LatLng(location.latitude, location.longitude));\n\n\t\t\tmapRef.current.setZoom(zoom);\n\t\t}\n\t};\n\n\tconst pinIconUrl = pinIcon({\n\t\tfillColor: markerConfigs.fillColor,\n\t\tstrokeColor: markerConfigs.strokeColor\n\t});\n\n\tconst onClusterClick = cluster => {\n\t\tif (\n\t\t\t!siteConfig.optionalShowLocationClusterConfig ||\n\t\tmapRef.current.zoom > siteConfig.optionalShowLocationClusterConfig.showForZoomLevelLessThan\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!cluster || typeof cluster.getMarkers !== \"function\") {\n\t\t\tconsole.error(\"Cluster object or getMarkers method not available.\");\n\t\t\treturn;\n\t\t}\n\n\t\tconst markers = cluster.getMarkers();\n\n\t\tif (!markers || markers.length === 0) {\n\t\t\tconsole.error(\"No markers found in the cluster.\");\n\t\t\treturn;\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tconst bounds = new window.google.maps.LatLngBounds();\n\n\t\t\tmarkers.forEach(marker => {\n\t\t\t\tbounds.extend(marker.getPosition());\n\t\t\t});\n\t\t\tconst clusterCenter = bounds.getCenter();\n\n\t\t\tconst configLat = siteConfig.optionalShowLocationClusterConfig.latitude;\n\t\t\tconst configLng = siteConfig.optionalShowLocationClusterConfig.longitude;\n\n\t\t\tconst latDiff = clusterCenter.lat() - configLat;\n\t\t\tconst lngDiff = clusterCenter.lng() - configLng;\n\t\t\tconst distance = Math.sqrt(latDiff * latDiff + lngDiff * lngDiff);\n\n\t\t\tconst distanceThreshold = 1;\n\t\t\tif (distance <= distanceThreshold) {\n\t\t\t\tbounds.extend(new google.maps.LatLng(configLat, configLng));\n\t\t\t}\n\n\t\t\tif (mapRef.current) {\n\t\t\t\tmapRef.current.fitBounds(bounds);\n\t\t\t}\n\t\t}, 300);\n\t};\n\tif (!mapItems) {\n\t\treturn null;\n\t}\n\tconst mapItemsKey = mapItems.map(item => item.id).join(\"-\");\n\treturn (\n\t\t<Map\n\t\t\tzoom={zoom}\n\t\t\tcenter={center}\n\t\t\tmapContainerRef={mapContainerRef}\n\t\t\tonLoad={onLoad}\n\t\t\tonIdle={onIdle}\n\t\t\tmapInteracted={mapInteracted}\n\t\t\tpinIconUrl={pinIconUrl}\n\t\t\tsetMapInteracted={setMapInteracted}\n\t\t\tfitBounds={fitBounds}\n\t\t\tmapRef={mapRef}\n\t\t\tsetQuery={setQuery}\n\t\t\tfilteredListingsLength={filteredListings.length}\n\t\t\tsetSelectedFilters={setSelectedFilters}\n\t\t>\n\n\t\t\t<MarkerClustererF\n\t\t\t\tkey={mapItemsKey}\n\t\t\t \t\tcalculator={markers => {\n\t\t\t\t\tconst totalCount = markers.reduce((sum, marker) => sum + (marker.get(\"count\") || 1), 0);\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\ttext: totalCount.toString(),\n\t\t\t\t\t\tindex: Math.min(5, Math.floor(totalCount / 10))\n\t\t\t\t\t};}}\n\t\t\t\toptions={{\n\t\t\t\t\t...clusterOptions(clusterGridSize, markerConfigs.fillColor)\n\n\t\t\t\t}}\n\t\t\t\tonClick={onClusterClick}\n\t\t\t>\n\n\t\t\t\t{clusterer => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{mapItems.map(item => {\n\t\t\t\t\t\t\tlet markerCount = Object.values(item.items).length;\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<MapMarker\n\t\t\t\t\t\t\t\t\tkey={item.id}\n\t\t\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\t\t\tselectedLocation={location}\n\t\t\t\t\t\t\t\t\tmarkerRefs={markerRefs}\n\t\t\t\t\t\t\t\t\tinfoWindowClasses={infoWindowClasses}\n\t\t\t\t\t\t\t\t\tsetSelectedLocation={setLocation}\n\t\t\t\t\t\t\t\t\tmarkerClickHandler={markerClickHandler}\n\t\t\t\t\t\t\t\t\tclusterer={clusterer}\n\t\t\t\t\t\t\t\t\tmarkerIcon={markerIcon(markerConfigs, markerCount)}\n\t\t\t\t\t\t\t\t\tmarkerIconSelected={markerIconSelected(markerConfigs, markerCount)}\n\t\t\t\t\t\t\t\t\tsetMapInteracted={setMapInteracted}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);}\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{additionalMapMarkers &&\n additionalMapMarkers.map(\n \t(marker, index) =>\n \t\tcurrentZoom >= marker.minZoom &&\n currentZoom <= marker.maxZoom && (\n \t\t\t<Marker\n \t\t\t\tkey={`marker-${marker.title}-${index}`}\n \t\t\t\tposition={marker.position}\n \t\t\t\ttitle={marker.title}\n \t\t\t\ticon={{\n \t\t\t\t\turl: marker.iconUrl,\n \t\t\t\t\tscaledSize: new window.google.maps.Size(40, 40)\n \t\t\t\t}}\n \t\t\t/>\n \t\t)\n )}\n\n\t\t\t\t\t\t{poiMarkers &&\n poiMarkers.markers.map((marker, index) => (\n \t<PlaceMarker\n \t\tkey={`marker-${marker.title}-${index}`}\n \t\tmarker={marker}\n \t\tindex={index}\n \t\tselectedPlaceMarker={selectedPlaceMarker}\n \t\tplacesWindow={placesWindow}\n \t\tsetPlacesWindow={setPlacesWindow}\n \t\tsetSelectedPlaceMarker={setSelectedPlaceMarker}\n \t/>\n ))}\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t</MarkerClustererF>\n\t\t</Map>\n\t);\n};\n\nexport default MapContainer;\n\n"],"names":["MapContainer","_ref","markerConfigs","infoWindowClasses","_ref$clusterGridSize","clusterGridSize","_useMap","useMap","location","zoom","center","selectLocationEntity","setLocation","mapInteracted","setMapInteracted","defaultZoomOverride","_useMapList","useMapList","oldMapItems","mapItems","filteredListings","selectedFilters","setSelectedFilters","setQuery","siteConfig","_useState","useState","_useState2","_slicedToArray","setMapItems","mapRef","useRef","markerRefs","mapContainerRef","_usePlaces","usePlaces","poiMarkers","setCurrentCenter","currentCenter","setCurrentZoom","currentZoom","selectedPlaceMarker","setSelectedPlaceMarker","placesWindow","setPlacesWindow","additionalMapMarkers","onIdle","current","newCenter","getCenter","toJSON","newZoom","useEffect","length","defaultMapState","state","city","filteredMapItems","filter","x","address","handleScroll","mapContainerRefCurrent","addEventListener","removeEventListener","setZoom","mapInstance","dragStartListener","addListener","mouseDownListener","google","maps","event","removeListener","fitBounds","currZoom","setZoomVal","panTo","LatLng","latitude","longitude","map","overload","arguments","undefined","bounds","window","LatLngBounds","forEach","item","extend","optionalShowLocationClusterConfig","configLocation","markerClickHandler","mapLocation","onLoad","pinIconUrl","pinIcon","fillColor","strokeColor","onClusterClick","cluster","showForZoomLevelLessThan","getMarkers","console","error","markers","setTimeout","marker","getPosition","clusterCenter","configLat","configLng","latDiff","lat","lngDiff","lng","distance","Math","sqrt","distanceThreshold","mapItemsKey","id","join","React","createElement","Map","filteredListingsLength","MarkerClustererF","key","calculator","totalCount","reduce","sum","get","text","toString","index","min","floor","options","_objectSpread","clusterOptions","onClick","clusterer","Fragment","markerCount","Object","values","items","MapMarker","selectedLocation","setSelectedLocation","markerIcon","markerIconSelected","minZoom","maxZoom","Marker","concat","title","position","icon","url","iconUrl","scaledSize","Size","PlaceMarker"],"mappings":";;;;;;;;;;;;AAiBA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAmE;AAAA,EAAA,IAA7DC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IAAEC,iBAAiB,GAAAF,IAAA,CAAjBE,iBAAiB;IAAAC,oBAAA,GAAAH,IAAA,CAAEI,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,oBAAA,CAAA;AAC7E,EAAA,IAAA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YAAY,EAAEA,YAAa;AAC3BC,QAAAA,eAAe,EAAEA,eAAgB;AACjCF,QAAAA,sBAAsB,EAAEA,sBAAAA;AAAuB,OAC/C,CAAC,CAAA;AAAA,KACF,CACR,CAAC,CAAA;AAAA,GAEa,CACd,CAAC,CAAA;AAER;;;;"}
1
+ {"version":3,"file":"map-container.js","sources":["../../../../src/components/containers/maps/map-container.js"],"sourcesContent":["\"use client\";\n\nimport React, { useEffect, useRef, useState } from \"react\";\n\nimport MapMarker from \"~/components/containers/maps/map-marker-container\";\nimport PlaceMarker from \"~/components/modules/maps/place-marker\";\n\nimport { usePlaces } from \"~/contexts/placesContext\";\nimport { useMap } from \"~/contexts/mapContext\";\nimport { useMapList } from \"~/contexts/mapListContext\";\n\nimport { markerIconSelected, markerIcon, pinIcon } from \"~/util/mapIconUtil\";\n\nimport Map from \"~/components/modules/maps/map\";\nimport { MarkerClustererF, Marker } from \"@react-google-maps/api\";\nimport { clusterOptions } from \"~/util/mapUtil\";\n\nconst MapContainer = ({ markerConfigs, infoWindowClasses, clusterGridSize = 60 }) => {\n\tconst {\n\t\tlocation,\n\t\tzoom,\n\t\tcenter,\n\t\tselectLocationEntity,\n\t\tsetLocation,\n\t\tmapInteracted,\n\t\tsetMapInteracted,\n\t\tdefaultZoomOverride\n\t} = useMap();\n\n\tconst {\n\t\tmapItems: oldMapItems,\n\t\tfilteredListings,\n\t\tselectedFilters,\n\t\tsetSelectedFilters,\n\t\tsetQuery,\n\t\tsiteConfig\n\t} = useMapList();\n\tconst [mapItems, setMapItems] = useState(null);\n\tconst [markersToHideFromBounds, setMarkersToHideFromBounds] = useState([]);\n\n\tconst mapRef = useRef();\n\tconst markerRefs = useRef({});\n\tconst mapContainerRef = useRef(null);\n\tconst {\n\t\tpoiMarkers,\n\t\tsetCurrentCenter,\n\t\tcurrentCenter,\n\t\tsetCurrentZoom,\n\t\tcurrentZoom,\n\t\tselectedPlaceMarker,\n\t\tsetSelectedPlaceMarker,\n\t\tplacesWindow,\n\t\tsetPlacesWindow,\n\t\tadditionalMapMarkers\n\t} = usePlaces();\n\n\tconst onIdle = () => {\n\t\tif (!currentCenter || !mapRef.current) return;\n\t\tconst newCenter = mapRef.current.getCenter().toJSON();\n\t\tconst newZoom = mapRef.current.zoom;\n\t\tsetCurrentCenter(newCenter);\n\n\t\tif (newZoom !== currentZoom) {\n\t\t\tsetCurrentZoom(newZoom);\n\t\t}\n\t};\n\n\tuseEffect(() => {\n\t\tif (!oldMapItems || oldMapItems.length === 0) return;\n\n\t\tif (!siteConfig.defaultMapState || mapInteracted || selectedFilters?.state || selectedFilters?.city) {\n\t\t\tsetMapItems(oldMapItems);\n\t\t\tsetMarkersToHideFromBounds([]);\n\t\t\treturn;\n\t\t}\n\n\t\tconst markersToHide = oldMapItems\n\t\t\t.filter(x => x.address.state !== siteConfig.defaultMapState)\n\t\t\t.map(item => item.id);\n\n\t\tsetMarkersToHideFromBounds(markersToHide);\n\t\tsetMapItems(oldMapItems);\n\t}, [oldMapItems, selectedFilters, siteConfig, mapInteracted]);\n\n\tuseEffect(() => {\n\t\tif (mapContainerRef.current) {\n\t\t\tconst handleScroll = () => {\n\t\t\t\tsetMapInteracted(true);\n\t\t\t};\n\t\t\tvar mapContainerRefCurrent = mapContainerRef.current;\n\t\t\tmapContainerRef.current.addEventListener(\"wheel\", handleScroll);\n\t\t\treturn () => mapContainerRefCurrent.removeEventListener(\"wheel\", handleScroll);\n\t\t}\n\t}, [mapContainerRef.current]);\n\n\tuseEffect(() => {\n\t\tif (mapRef.current && defaultZoomOverride && !mapInteracted && !location) {\n\t\t\tmapRef.current.setZoom(defaultZoomOverride);\n\t\t}\n\t}, [mapInteracted]);\n\n\tuseEffect(() => {\n\t\tif (mapRef.current) {\n\t\t\tconst mapInstance = mapRef.current;\n\t\t\tconst dragStartListener = mapInstance.addListener(\"dragstart\", () => {\n\t\t\t\tsetMapInteracted(true);\n\t\t\t\tsetMarkersToHideFromBounds([]);\n\t\t\t});\n\t\t\tconst mouseDownListener = mapInstance.addListener(\"mousedown\", () => {\n\t\t\t\tsetMapInteracted(true);\n\t\t\t\tsetMarkersToHideFromBounds([]);\n\t\t\t});\n\t\t\treturn () => {\n\t\t\t\tgoogle.maps.event.removeListener(dragStartListener);\n\t\t\t\tgoogle.maps.event.removeListener(mouseDownListener);\n\t\t\t};\n\t\t}\n\t}, [mapRef.current, mapContainerRef.current]);\n\n\tuseEffect(() => {\n\t\tif (((mapItems && mapItems.length > 0) || poiMarkers.length > 0) && mapRef.current && !mapInteracted) {\n\t\t\tfitBounds(mapRef.current);\n\t\t}\n\t}, [mapItems, mapRef.current, location]);\n\n\tuseEffect(() => {\n\t\tif (((mapItems && mapItems.length > 0) || poiMarkers.length > 0) && mapRef.current && !mapInteracted) {\n\t\t\tfitBounds(mapRef.current, true);\n\t\t}\n\t\tif (mapRef.current && !mapInteracted) {\n\t\t\tconst currZoom = mapRef.current.zoom;\n\t\t\tconst setZoomVal = currZoom < 13 ? currZoom : 12;\n\t\t\tmapRef.current.setZoom(setZoomVal);\n\t\t}\n\t}, [filteredListings]);\n\n\tuseEffect(() => {\n\t\tif (!mapRef.current || !location || mapInteracted) return;\n\t\tmapRef.current.panTo(new google.maps.LatLng(location.latitude, location.longitude));\n\t\tif (mapRef.current) {\n\t\t\tconst setZoomVal = zoom < 13 ? zoom : 12;\n\t\t\tmapRef.current.setZoom(setZoomVal);\n\t\t}\n\t}, [location, zoom, mapRef.current]);\n\n\tconst fitBounds = (map, overload = false) => {\n\t\tif ((mapInteracted === false || overload) && mapItems != null) {\n\t\t\tconst bounds = new window.google.maps.LatLngBounds();\n\n\t\t\tmapItems.forEach(item => {\n\t\t\t\tif (!mapInteracted && markersToHideFromBounds.includes(item.id)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tbounds.extend(new google.maps.LatLng(item.latitude, item.longitude));\n\t\t\t});\n\n\t\t\tif (siteConfig.optionalShowLocationClusterConfig) {\n\t\t\t\tconst configLocation = new google.maps.LatLng(\n\t\t\t\t\tsiteConfig.optionalShowLocationClusterConfig.latitude,\n\t\t\t\t\tsiteConfig.optionalShowLocationClusterConfig.longitude\n\t\t\t\t);\n\t\t\t\tmap.panTo(configLocation);\n\t\t\t\tbounds.extend(\n\t\t\t\t\tnew google.maps.LatLng(\n\t\t\t\t\t\tsiteConfig.optionalShowLocationClusterConfig.latitude,\n\t\t\t\t\t\tsiteConfig.optionalShowLocationClusterConfig.longitude\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t\tif (!map) return;\n\t\t\tconst currentCenter = map.getCenter();\n\t\t\tmap.fitBounds(bounds);\n\t\t\tconst newCenter = bounds.getCenter();\n\t\t\tif (currentCenter && newCenter) {\n\t\t\t\tmap.panTo(newCenter);\n\t\t\t}\n\t\t}\n\t\tif (defaultZoomOverride && !mapInteracted && !location) {\n\t\t\tmapRef.current.setZoom(defaultZoomOverride);\n\t\t} else if (mapRef.current.zoom > 17) {\n\t\t\tmapRef.current.setZoom(16);\n\t\t}\n\t};\n\n\tconst markerClickHandler = mapLocation => {\n\t\tsetMapInteracted(true);\n\t\tsetMarkersToHideFromBounds([]);\n\t\tselectLocationEntity(mapLocation);\n\t};\n\n\tconst onLoad = map => {\n\t\tif (!location || location === null) {\n\t\t\tmapRef.current = map;\n\t\t\tfitBounds(map, true);\n\t\t\treturn;\n\t\t}\n\t\tmapRef.current = map;\n\n\t\tif (mapInteracted === false) {\n\t\t\tmapRef.current.panTo(new google.maps.LatLng(location.latitude, location.longitude));\n\n\t\t\tmapRef.current.setZoom(zoom);\n\t\t}\n\t};\n\n\tconst pinIconUrl = pinIcon({\n\t\tfillColor: markerConfigs.fillColor,\n\t\tstrokeColor: markerConfigs.strokeColor\n\t});\n\n\tconst onClusterClick = cluster => {\n\t\tif (\n\t\t\t!siteConfig.optionalShowLocationClusterConfig ||\n mapRef.current.zoom > siteConfig.optionalShowLocationClusterConfig.showForZoomLevelLessThan\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!cluster || typeof cluster.getMarkers !== \"function\") {\n\t\t\tconsole.error(\"Cluster object or getMarkers method not available.\");\n\t\t\treturn;\n\t\t}\n\n\t\tconst markers = cluster.getMarkers();\n\n\t\tif (!markers || markers.length === 0) {\n\t\t\tconsole.error(\"No markers found in the cluster.\");\n\t\t\treturn;\n\t\t}\n\n\t\tsetTimeout(() => {\n\t\t\tconst bounds = new window.google.maps.LatLngBounds();\n\n\t\t\tmarkers.forEach(marker => {\n\t\t\t\tbounds.extend(marker.getPosition());\n\t\t\t});\n\t\t\tconst clusterCenter = bounds.getCenter();\n\n\t\t\tconst configLat = siteConfig.optionalShowLocationClusterConfig.latitude;\n\t\t\tconst configLng = siteConfig.optionalShowLocationClusterConfig.longitude;\n\n\t\t\tconst latDiff = clusterCenter.lat() - configLat;\n\t\t\tconst lngDiff = clusterCenter.lng() - configLng;\n\t\t\tconst distance = Math.sqrt(latDiff * latDiff + lngDiff * lngDiff);\n\n\t\t\tconst distanceThreshold = 1;\n\t\t\tif (distance <= distanceThreshold) {\n\t\t\t\tbounds.extend(new google.maps.LatLng(configLat, configLng));\n\t\t\t}\n\n\t\t\tif (mapRef.current) {\n\t\t\t\tmapRef.current.fitBounds(bounds);\n\t\t\t}\n\t\t}, 300);\n\t};\n\tif (!mapItems) {\n\t\treturn null;\n\t}\n\tconst mapItemsKey = mapItems.map(item => item.id).join(\"-\");\n\n\tconsole.log(location);\n\treturn (\n\t\t<Map\n\t\t\tzoom={zoom}\n\t\t\tcenter={center}\n\t\t\tmapContainerRef={mapContainerRef}\n\t\t\tonLoad={onLoad}\n\t\t\tonIdle={onIdle}\n\t\t\tmapInteracted={mapInteracted}\n\t\t\tpinIconUrl={pinIconUrl}\n\t\t\tsetMapInteracted={setMapInteracted}\n\t\t\tfitBounds={fitBounds}\n\t\t\tmapRef={mapRef}\n\t\t\tsetQuery={setQuery}\n\t\t\tfilteredListingsLength={filteredListings.length}\n\t\t\tsetSelectedFilters={setSelectedFilters}\n\t\t>\n\t\t\t<MarkerClustererF\n\t\t\t\tkey={mapItemsKey}\n\t\t\t\tcalculator={markers => {\n\t\t\t\t\tconst totalCount = markers.reduce((sum, marker) => sum + (marker.get(\"count\") || 1), 0);\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\ttext: totalCount.toString(),\n\t\t\t\t\t\tindex: Math.min(5, Math.floor(totalCount / 10))\n\t\t\t\t\t};\n\t\t\t\t}}\n\t\t\t\toptions={{\n\t\t\t\t\t...clusterOptions(clusterGridSize, markerConfigs.fillColor)\n\t\t\t\t}}\n\t\t\t\tonClick={onClusterClick}\n\t\t\t>\n\t\t\t\t{clusterer => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{mapItems.map(item => {\n\t\t\t\t\t\t\tconst markerCount = Object.values(item.items).length;\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<MapMarker\n\t\t\t\t\t\t\t\t\tkey={item.id}\n\t\t\t\t\t\t\t\t\titem={item}\n\t\t\t\t\t\t\t\t\tselectedLocation={location}\n\t\t\t\t\t\t\t\t\tmarkerRefs={markerRefs}\n\t\t\t\t\t\t\t\t\tinfoWindowClasses={infoWindowClasses}\n\t\t\t\t\t\t\t\t\tsetSelectedLocation={setLocation}\n\t\t\t\t\t\t\t\t\tmarkerClickHandler={markerClickHandler}\n\t\t\t\t\t\t\t\t\tclusterer={clusterer}\n\t\t\t\t\t\t\t\t\tmarkerIcon={markerIcon(markerConfigs, markerCount)}\n\t\t\t\t\t\t\t\t\tmarkerIconSelected={markerIconSelected(markerConfigs, markerCount)}\n\t\t\t\t\t\t\t\t\tsetMapInteracted={setMapInteracted}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\n\t\t\t\t\t\t{additionalMapMarkers &&\n additionalMapMarkers.map(\n \t(marker, index) =>\n \t\tcurrentZoom >= marker.minZoom &&\n currentZoom <= marker.maxZoom && (\n \t\t\t<Marker\n \t\t\t\tkey={`marker-${marker.title}-${index}`}\n \t\t\t\tposition={marker.position}\n \t\t\t\ttitle={marker.title}\n \t\t\t\ticon={{\n \t\t\t\t\turl: marker.iconUrl,\n \t\t\t\t\tscaledSize: new window.google.maps.Size(40, 40)\n \t\t\t\t}}\n \t\t\t/>\n \t\t)\n )}\n\n\t\t\t\t\t\t{poiMarkers &&\n poiMarkers.markers.map((marker, index) => (\n \t<PlaceMarker\n \t\tkey={`marker-${marker.title}-${index}`}\n \t\tmarker={marker}\n \t\tindex={index}\n \t\tselectedPlaceMarker={selectedPlaceMarker}\n \t\tplacesWindow={placesWindow}\n \t\tsetPlacesWindow={setPlacesWindow}\n \t\tsetSelectedPlaceMarker={setSelectedPlaceMarker}\n \t/>\n ))}\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t</MarkerClustererF>\n\t\t</Map>\n\t);\n};\n\nexport default MapContainer;\n\n"],"names":["MapContainer","_ref","markerConfigs","infoWindowClasses","_ref$clusterGridSize","clusterGridSize","_useMap","useMap","location","zoom","center","selectLocationEntity","setLocation","mapInteracted","setMapInteracted","defaultZoomOverride","_useMapList","useMapList","oldMapItems","mapItems","filteredListings","selectedFilters","setSelectedFilters","setQuery","siteConfig","_useState","useState","_useState2","_slicedToArray","setMapItems","_useState3","_useState4","markersToHideFromBounds","setMarkersToHideFromBounds","mapRef","useRef","markerRefs","mapContainerRef","_usePlaces","usePlaces","poiMarkers","setCurrentCenter","currentCenter","setCurrentZoom","currentZoom","selectedPlaceMarker","setSelectedPlaceMarker","placesWindow","setPlacesWindow","additionalMapMarkers","onIdle","current","newCenter","getCenter","toJSON","newZoom","useEffect","length","defaultMapState","state","city","markersToHide","filter","x","address","map","item","id","handleScroll","mapContainerRefCurrent","addEventListener","removeEventListener","setZoom","mapInstance","dragStartListener","addListener","mouseDownListener","google","maps","event","removeListener","fitBounds","currZoom","setZoomVal","panTo","LatLng","latitude","longitude","overload","arguments","undefined","bounds","window","LatLngBounds","forEach","includes","extend","optionalShowLocationClusterConfig","configLocation","markerClickHandler","mapLocation","onLoad","pinIconUrl","pinIcon","fillColor","strokeColor","onClusterClick","cluster","showForZoomLevelLessThan","getMarkers","console","error","markers","setTimeout","marker","getPosition","clusterCenter","configLat","configLng","latDiff","lat","lngDiff","lng","distance","Math","sqrt","distanceThreshold","mapItemsKey","join","log","React","createElement","Map","filteredListingsLength","MarkerClustererF","key","calculator","totalCount","reduce","sum","get","text","toString","index","min","floor","options","_objectSpread","clusterOptions","onClick","clusterer","Fragment","Object","values","items","MapMarker","selectedLocation","setSelectedLocation","markerIcon","markerIconSelected","minZoom","maxZoom","Marker","concat","title","position","icon","url","iconUrl","scaledSize","Size","PlaceMarker"],"mappings":";;;;;;;;;;;;AAiBA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAmE;AAAA,EAAA,IAA7DC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IAAEC,iBAAiB,GAAAF,IAAA,CAAjBE,iBAAiB;IAAAC,oBAAA,GAAAH,IAAA,CAAEI,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,oBAAA,CAAA;AAC7E,EAAA,IAAAE,OAAA,GASIC,MAAM,EAAE;IARXC,QAAQ,GAAAF,OAAA,CAARE,QAAQ;IACRC,IAAI,GAAAH,OAAA,CAAJG,IAAI;IACJC,MAAM,GAAAJ,OAAA,CAANI,MAAM;IACNC,oBAAoB,GAAAL,OAAA,CAApBK,oBAAoB;IACpBC,WAAW,GAAAN,OAAA,CAAXM,WAAW;IACXC,aAAa,GAAAP,OAAA,CAAbO,aAAa;IACbC,gBAAgB,GAAAR,OAAA,CAAhBQ,gBAAgB;IAChBC,mBAAmB,GAAAT,OAAA,CAAnBS,mBAAmB,CAAA;AAGpB,EAAA,IAAAC,WAAA,GAOIC,UAAU,EAAE;IANLC,WAAW,GAAAF,WAAA,CAArBG,QAAQ;IACRC,gBAAgB,GAAAJ,WAAA,CAAhBI,gBAAgB;IAChBC,eAA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AAA,CAAIpB,KAAK,CAAG;AACvC7B,QAAAA,MAAM,EAAEA,MAAO;AACf6B,QAAAA,KAAK,EAAEA,KAAM;AACblG,QAAAA,mBAAmB,EAAEA,mBAAoB;AACzCE,QAAAA,YAAY,EAAEA,YAAa;AAC3BC,QAAAA,eAAe,EAAEA,eAAgB;AACjCF,QAAAA,sBAAsB,EAAEA,sBAAAA;AAAuB,OAC/C,CAAC,CAAA;AAAA,KACF,CACR,CAAC,CAAA;AAAA,GAEa,CACd,CAAC,CAAA;AAER;;;;"}
@@ -15,6 +15,7 @@ var ButtonGroupApply = function ButtonGroupApply(_ref) {
15
15
  easyApplyUrl = _ref.easyApplyUrl,
16
16
  _ref$applyNowText = _ref.applyNowText,
17
17
  applyNowText = _ref$applyNowText === void 0 ? 'Apply Now' : _ref$applyNowText,
18
+ isIframe = _ref.isIframe,
18
19
  detailsUrl = _ref.detailsUrl,
19
20
  _ref$detailsText = _ref.detailsText,
20
21
  detailsText = _ref$detailsText === void 0 ? 'View Details' : _ref$detailsText,
@@ -44,6 +45,16 @@ var ButtonGroupApply = function ButtonGroupApply(_ref) {
44
45
  jobSchedule: item.fields.schedule
45
46
  });
46
47
  };
48
+ var trackApplyOpen = function trackApplyOpen() {
49
+ //console.log('calling trackApplyOpen');
50
+ trackEvent(eventTypes.APPLY_OPEN_CLICKED, {
51
+ jobCategory: item.fields.category,
52
+ jobCategoryClass: item.fields.categoryClass,
53
+ jobEntity: item.fields.entityName,
54
+ jobListingId: item.id,
55
+ jobSchedule: item.fields.schedule
56
+ });
57
+ };
47
58
  var trackEasyApply = function trackEasyApply() {
48
59
  //console.log('calling trackEasyApply');
49
60
  trackEvent(eventTypes.EASY_APPLY_CLICKED, {
@@ -64,10 +75,6 @@ var ButtonGroupApply = function ButtonGroupApply(_ref) {
64
75
  jobSchedule: item.fields.schedule
65
76
  });
66
77
  };
67
- // console.log(detailsUrl);
68
- // console.log(useDetailsPostMessage);
69
- // console.log(navigateToDetails);
70
- // console.log(useDetailsPostMessage === true && !navigateToDetails, 'query result');
71
78
  return /*#__PURE__*/React__default.createElement("nav", {
72
79
  className: twMerge(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n hc-flex hc-flex-row hc-justify-between hc-gap-2 hc-w-full\n ", "\n "])), className !== null && className !== void 0 ? className : '')
73
80
  }, Link ? /*#__PURE__*/React__default.createElement(Button.Link, {
@@ -82,28 +89,38 @@ var ButtonGroupApply = function ButtonGroupApply(_ref) {
82
89
  variant: detailsButtonVariant,
83
90
  className: "map-details-button",
84
91
  size: buttonSize,
85
- onClick: trackViewDetails
92
+ execOnClick: trackViewDetails,
93
+ isIframe: isIframe,
94
+ iframeMsgType: "DETAILS_LINK"
86
95
  }, detailsText) : null, item.applyOnline == 1 && item.applyUrl && !includeDialog && /*#__PURE__*/React__default.createElement(Button.Anchor, {
87
96
  href: item.applyUrl,
88
97
  variant: applyButtonVariant,
89
98
  size: buttonSize,
90
99
  className: "map-apply-now-button",
91
- onClick: trackApplyNow
100
+ execOnClick: trackApplyNow,
101
+ isIframe: isIframe,
102
+ iframeMsgType: "APPLY_NOW_LINK"
92
103
  }, applyNowText), item.applyOnline == 1 && item.applyUrl && includeDialog && /*#__PURE__*/React__default.createElement(ApplyDialog, {
93
104
  applyUrl: item.applyUrl,
94
105
  internalApplyLink: internalApplyLink,
95
- companyName: companyName
106
+ companyName: companyName,
107
+ item: item,
108
+ trackEvent: trackEvent,
109
+ eventTypes: eventTypes,
110
+ isIframe: isIframe
96
111
  }, /*#__PURE__*/React__default.createElement(Button.Anchor, {
97
112
  variant: applyButtonVariant,
98
113
  size: buttonSize,
99
114
  className: "map-apply-now-button",
100
- onClick: trackApplyNow // TODO: Move event to popup
115
+ execOnClick: trackApplyOpen
101
116
  }, applyNowText)), item.easyApply == 1 && easyApplyUrl && /*#__PURE__*/React__default.createElement(Button.Anchor, {
102
117
  href: "".concat(easyApplyUrl).concat(item.id),
103
118
  variant: applyButtonVariant,
104
119
  size: buttonSize,
105
120
  className: "map-apply-now-button",
106
- onClick: trackEasyApply
121
+ execOnClick: trackEasyApply,
122
+ isIframe: isIframe,
123
+ iframeMsgType: "EASY_APPLY_LINK"
107
124
  }, easyApplyText));
108
125
  };
109
126
 
@@ -1 +1 @@
1
- {"version":3,"file":"button-group-apply.js","sources":["../../../../src/components/modules/buttons/button-group-apply.js"],"sourcesContent":["import React from 'react';\nimport { twMerge } from 'tailwind-merge';\n\nimport Button from '~/components/modules/buttons/default';\nimport ApplyDialog from '../dialogs/apply-dialog';\n\nconst ButtonGroupApply = ({\n\tuseDetailsPostMessage,\n\tnavigateToDetails,\n\tnavigateToEasyApply,\n\tLink,\n\tlinkFormat,\n\teasyApplyUrl,\n\tapplyNowText = 'Apply Now',\n\tdetailsUrl,\n\tdetailsText = 'View Details',\n\teasyApplyText,\n\tclassName,\n\tbuttonSize = 'sm',\n\tapplyButtonVariant = 'primary',\n\tdetailsButtonVariant = 'outline',\n\tincludeDialog = false,\n\tinternalApplyLink,\n\titem,\n\tcompanyName,\n\ttrackEvent,\n\teventTypes\n}) => {\n\tconst href = linkFormat.replace('[slug]', item.slug ?? item.id);\n\n\tconst trackApplyNow = () => {\n\t\t//console.log('calling trackApplyNow');\n\t\ttrackEvent(eventTypes.APPLY_NOW_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\tconst trackEasyApply = () => {\n\t\t//console.log('calling trackEasyApply');\n\t\ttrackEvent(eventTypes.EASY_APPLY_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\tconst trackViewDetails = () => {\n\t\t//console.log('calling trackViewDetails');\n\t\ttrackEvent(eventTypes.VIEW_DETAILS_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\t// console.log(detailsUrl);\n\t// console.log(useDetailsPostMessage);\n\t// console.log(navigateToDetails);\n\t// console.log(useDetailsPostMessage === true && !navigateToDetails, 'query result');\n\treturn (\n\t\t<nav\n\t\t\tclassName={twMerge`\n hc-flex hc-flex-row hc-justify-between hc-gap-2 hc-w-full\n ${className ?? ''}\n `}\n\t\t>\n\t\t\t{Link ? (\n\t\t\t\t<Button.Link\n\t\t\t\t\tLink={Link}\n\t\t\t\t\thref={href}\n\t\t\t\t\tvariant={detailsButtonVariant}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tclassName={\"map-details-button\"}\n\t\t\t\t\tsendEvent = {trackViewDetails}\n\t\t\t\t>\n\t\t\t\t\t{detailsText}\n\t\t\t\t</Button.Link>\n\t\t\t) : detailsUrl ? (\n\t\t\t\t<Button.Anchor\n\t\t\t\t\thref={detailsUrl}\n\t\t\t\t\tvariant={detailsButtonVariant}\n\t\t\t\t\tclassName={\"map-details-button\"}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tonClick={trackViewDetails}\n\t\t\t\t>\n\t\t\t\t\t{detailsText}\n\t\t\t\t</Button.Anchor>\n\t\t\t) : null}\n\n\t\t\t{item.applyOnline == 1 && item.applyUrl && !includeDialog &&\n\t\t\t\t<Button.Anchor\n\t\t\t\t\thref={item.applyUrl}\n\t\t\t\t\tvariant={applyButtonVariant}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tclassName={\"map-apply-now-button\"}\n\t\t\t\t\tonClick={trackApplyNow}\n\t\t\t\t>\n\t\t\t\t\t{applyNowText}\n\t\t\t\t</Button.Anchor>\n\t\t\t}\n\t\t\t{item.applyOnline == 1 && item.applyUrl && includeDialog &&\n\t\t\t\t<ApplyDialog applyUrl={item.applyUrl} internalApplyLink={internalApplyLink} companyName={companyName}>\n\t\t\t\t\t<Button.Anchor\n\t\t\t\t\t\tvariant={applyButtonVariant}\n\t\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\t\tclassName={\"map-apply-now-button\"}\n\t\t\t\t\t\tonClick={trackApplyNow} // TODO: Move event to popup\n\t\t\t\t\t>\n\t\t\t\t\t\t{applyNowText}\n\t\t\t\t\t</Button.Anchor>\n\t\t\t\t</ApplyDialog>\n\t\t\t}\n\t\t\t{item.easyApply == 1 && easyApplyUrl &&\n\t\t\t\t<Button.Anchor\n\t\t\t\t\thref={`${easyApplyUrl}${item.id}`}\n\t\t\t\t\tvariant={applyButtonVariant}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tclassName={\"map-apply-now-button\"}\n\t\t\t\t\tonClick={trackEasyApply}\n\t\t\t\t>\n\t\t\t\t\t{easyApplyText}\n\t\t\t\t</Button.Anchor>\n\t\t\t}\n\t\t</nav>\n\t);\n};\n\nexport default ButtonGroupApply;\n"],"names":["ButtonGroupApply","_ref","_item$slug","useDetailsPostMessage","navigateToDetails","navigateToEasyApply","Link","linkFormat","easyApplyUrl","_ref$applyNowText","applyNowText","detailsUrl","_ref$detailsText","detailsText","easyApplyText","className","_ref$buttonSize","buttonSize","_ref$applyButtonVaria","applyButtonVariant","_ref$detailsButtonVar","detailsButtonVariant","_ref$includeDialog","includeDialog","internalApplyLink","item","companyName","trackEvent","eventTypes","href","replace","slug","id","trackApplyNow","APPLY_NOW_CLICKED","jobCategory","fields","category","jobCategoryClass","categoryClass","jobEntity","entityName","jobListingId","jobSchedule","schedule","trackEasyApply","EASY_APPLY_CLICKED","trackViewDetails","VIEW_DETAILS_CLICKED","React","createElement","twMerge","_templateObject","_taggedTemplateLiteral","Button","variant","size","sendEvent","Anchor","onClick","applyOnline","applyUrl","ApplyDialog","easyApply","concat"],"mappings":";;;;;;;AAMA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAqBhB;AAAA,EAAA,IAAAC,UAAA,CAAA;AAAA,EApBgBD,IAAA,CAArBE,qBAAqB,CAAA;IACJF,IAAA,CAAjBG,iBAAiB,CAAA;IACEH,IAAA,C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ACa,CAEZ,CAAC,CAAA;AAER;;;;"}
1
+ {"version":3,"file":"button-group-apply.js","sources":["../../../../src/components/modules/buttons/button-group-apply.js"],"sourcesContent":["import React from 'react';\nimport { twMerge } from 'tailwind-merge';\n\nimport Button from '~/components/modules/buttons/default';\nimport ApplyDialog from '../dialogs/apply-dialog';\n\nconst ButtonGroupApply = ({\n\tuseDetailsPostMessage,\n\tnavigateToDetails,\n\tnavigateToEasyApply,\n\tLink,\n\tlinkFormat,\n\teasyApplyUrl,\n\tapplyNowText = 'Apply Now',\n\tisIframe,\n\tdetailsUrl,\n\tdetailsText = 'View Details',\n\teasyApplyText,\n\tclassName,\n\tbuttonSize = 'sm',\n\tapplyButtonVariant = 'primary',\n\tdetailsButtonVariant = 'outline',\n\tincludeDialog = false,\n\tinternalApplyLink,\n\titem,\n\tcompanyName,\n\ttrackEvent,\n\teventTypes\n}) => {\n\tconst href = linkFormat.replace('[slug]', item.slug ?? item.id);\n\n\tconst trackApplyNow = () => {\n\t\t//console.log('calling trackApplyNow');\n\t\ttrackEvent(eventTypes.APPLY_NOW_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\tconst trackApplyOpen = () => {\n\t\t//console.log('calling trackApplyOpen');\n\t\ttrackEvent(eventTypes.APPLY_OPEN_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\tconst trackEasyApply = () => {\n\t\t//console.log('calling trackEasyApply');\n\t\ttrackEvent(eventTypes.EASY_APPLY_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\tconst trackViewDetails = () => {\n\t\t//console.log('calling trackViewDetails');\n\t\ttrackEvent(eventTypes.VIEW_DETAILS_CLICKED, { jobCategory: item.fields.category, jobCategoryClass: item.fields.categoryClass, jobEntity: item.fields.entityName, jobListingId: item.id, jobSchedule: item.fields.schedule });\n\t};\n\n\treturn (\n\t\t<nav\n\t\t\tclassName={twMerge`\n hc-flex hc-flex-row hc-justify-between hc-gap-2 hc-w-full\n ${className ?? ''}\n `}\n\t\t>\n\t\t\t{Link ? (\n\t\t\t\t<Button.Link\n\t\t\t\t\tLink={Link}\n\t\t\t\t\thref={href}\n\t\t\t\t\tvariant={detailsButtonVariant}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tclassName={\"map-details-button\"}\n\t\t\t\t\tsendEvent = {trackViewDetails}\n\t\t\t\t>\n\t\t\t\t\t{detailsText}\n\t\t\t\t</Button.Link>\n\t\t\t) : detailsUrl ? (\n\t\t\t\t<Button.Anchor\n\t\t\t\t\thref={detailsUrl}\n\t\t\t\t\tvariant={detailsButtonVariant}\n\t\t\t\t\tclassName={\"map-details-button\"}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\texecOnClick={trackViewDetails}\n\t\t\t\t\tisIframe={isIframe}\n\t\t\t\t\tiframeMsgType={\"DETAILS_LINK\"}\n\t\t\t\t>\n\t\t\t\t\t{detailsText}\n\t\t\t\t</Button.Anchor>\n\t\t\t) : null}\n\n\t\t\t{item.applyOnline == 1 && item.applyUrl && !includeDialog &&\n\t\t\t\t<Button.Anchor\n\t\t\t\t\thref={item.applyUrl}\n\t\t\t\t\tvariant={applyButtonVariant}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tclassName={\"map-apply-now-button\"}\n\t\t\t\t\texecOnClick={trackApplyNow}\n\t\t\t\t\tisIframe={isIframe}\n\t\t\t\t\tiframeMsgType={\"APPLY_NOW_LINK\"}\n\t\t\t\t>\n\t\t\t\t\t{applyNowText}\n\t\t\t\t</Button.Anchor>\n\t\t\t}\n\t\t\t{item.applyOnline == 1 && item.applyUrl && includeDialog &&\n\t\t\t\t<ApplyDialog applyUrl={item.applyUrl} internalApplyLink={internalApplyLink} companyName={companyName} item={item} trackEvent={trackEvent} eventTypes={eventTypes} isIframe={isIframe}>\n\t\t\t\t\t<Button.Anchor\n\t\t\t\t\t\tvariant={applyButtonVariant}\n\t\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\t\tclassName={\"map-apply-now-button\"}\n\t\t\t\t\t\texecOnClick={trackApplyOpen}\n\t\t\t\t\t>\n\t\t\t\t\t\t{applyNowText}\n\t\t\t\t\t</Button.Anchor>\n\t\t\t\t</ApplyDialog>\n\t\t\t}\n\t\t\t{item.easyApply == 1 && easyApplyUrl &&\n\t\t\t\t<Button.Anchor\n\t\t\t\t\thref={`${easyApplyUrl}${item.id}`}\n\t\t\t\t\tvariant={applyButtonVariant}\n\t\t\t\t\tsize={buttonSize}\n\t\t\t\t\tclassName={\"map-apply-now-button\"}\n\t\t\t\t\texecOnClick={trackEasyApply}\n\t\t\t\t\tisIframe={isIframe}\n\t\t\t\t\tiframeMsgType={\"EASY_APPLY_LINK\"}\n\t\t\t\t>\n\t\t\t\t\t{easyApplyText}\n\t\t\t\t</Button.Anchor>\n\t\t\t}\n\t\t</nav>\n\t);\n};\n\nexport default ButtonGroupApply;\n"],"names":["ButtonGroupApply","_ref","_item$slug","useDetailsPostMessage","navigateToDetails","navigateToEasyApply","Link","linkFormat","easyApplyUrl","_ref$applyNowText","applyNowText","isIframe","detailsUrl","_ref$detailsText","detailsText","easyApplyText","className","_ref$buttonSize","buttonSize","_ref$applyButtonVaria","applyButtonVariant","_ref$detailsButtonVar","detailsButtonVariant","_ref$includeDialog","includeDialog","internalApplyLink","item","companyName","trackEvent","eventTypes","href","replace","slug","id","trackApplyNow","APPLY_NOW_CLICKED","jobCategory","fields","category","jobCategoryClass","categoryClass","jobEntity","entityName","jobListingId","jobSchedule","schedule","trackApplyOpen","APPLY_OPEN_CLICKED","trackEasyApply","EASY_APPLY_CLICKED","trackViewDetails","VIEW_DETAILS_CLICKED","React","createElement","twMerge","_templateObject","_taggedTemplateLiteral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E/BrD,YACa,CAAC,EAEhBgB,IAAI,CAACsC,WAAW,IAAI,CAAC,IAAItC,IAAI,CAACuC,QAAQ,IAAIzC,aAAa,iBACvD4B,cAAA,CAAAC,aAAA,CAACa,WAAW,EAAA;IAACD,QAAQ,EAAEvC,IAAI,CAACuC,QAAS;AAACxC,IAAAA,iBAAiB,EAAEA,iBAAkB;AAACE,IAAAA,WAAW,EAAEA,WAAY;AAACD,IAAAA,IAAI,EAAEA,IAAK;AAACE,IAAAA,UAAU,EAAEA,UAAW;AAACC,IAAAA,UAAU,EAAEA,UAAW;AAAClB,IAAAA,QAAQ,EAAEA,QAAAA;AAAS,GAAA,eACpLyC,cAAA,CAAAC,aAAA,CAACI,MAAM,CAACI,MAAM,EAAA;AACbH,IAAAA,OAAO,EAAEtC,kBAAmB;AAC5BuC,IAAAA,IAAI,EAAEzC,UAAW;AACjBF,IAAAA,SAAS,EAAE,sBAAuB;AAClC8C,IAAAA,WAAW,EAAEhB,cAAAA;AAAe,GAAA,EAE3BpC,YACa,CACH,CAAC,EAEdgB,IAAI,CAACyC,SAAS,IAAI,CAAC,IAAI3D,YAAY,iBACnC4C,cAAA,CAAAC,aAAA,CAACI,MAAM,CAACI,MAAM,EAAA;IACb/B,IAAI,EAAA,EAAA,CAAAsC,MAAA,CAAK5D,YAAY,CAAA,CAAA4D,MAAA,CAAG1C,IAAI,CAACO,EAAE,CAAG;AAClCyB,IAAAA,OAAO,EAAEtC,kBAAmB;AAC5BuC,IAAAA,IAAI,EAAEzC,UAAW;AACjBF,IAAAA,SAAS,EAAE,sBAAuB;AAClC8C,IAAAA,WAAW,EAAEd,cAAe;AAC5BrC,IAAAA,QAAQ,EAAEA,QAAS;AACnBoD,IAAAA,aAAa,EAAE,iBAAA;GAEdhD,EAAAA,aACa,CAEZ,CAAC,CAAA;AAER;;;;"}
@@ -4,7 +4,7 @@ import { Link } from '../../../packages/hc-ui-components/node_modules/react-rout
4
4
  import { twMerge } from '../../../packages/hc-ui-components/node_modules/tailwind-merge/dist/bundle-mjs.js';
5
5
  import IconContained from '../icon.js';
6
6
 
7
- var _excluded = ["children", "href", "className", "size", "variant", "isBlock", "hasUnderline", "target"],
7
+ var _excluded = ["children", "href", "className", "size", "variant", "isBlock", "hasUnderline", "target", "execOnClick", "isIframe", "iframeMsgType"],
8
8
  _excluded2 = ["children", "Link", "href", "className", "size", "variant", "isBlock", "hasUnderline"],
9
9
  _excluded3 = ["children", "href", "className", "size", "variant", "isBlock", "hasUnderline"],
10
10
  _excluded4 = ["children", "type", "className", "size", "variant", "isBlock", "hasUnderline"];
@@ -45,6 +45,12 @@ var Button = function Button(_ref) {
45
45
  children: children
46
46
  };
47
47
  };
48
+ var postMessage = function postMessage(href, msgType) {
49
+ window.parent.postMessage({
50
+ href: href,
51
+ type: msgType
52
+ }, "*");
53
+ };
48
54
  var Anchor = function Anchor(_ref2) {
49
55
  var children = _ref2.children,
50
56
  href = _ref2.href,
@@ -55,14 +61,24 @@ var Anchor = function Anchor(_ref2) {
55
61
  hasUnderline = _ref2.hasUnderline,
56
62
  _ref2$target = _ref2.target,
57
63
  target = _ref2$target === void 0 ? '_blank' : _ref2$target,
64
+ _ref2$execOnClick = _ref2.execOnClick,
65
+ execOnClick = _ref2$execOnClick === void 0 ? null : _ref2$execOnClick,
66
+ _ref2$isIframe = _ref2.isIframe,
67
+ isIframe = _ref2$isIframe === void 0 ? false : _ref2$isIframe,
68
+ iframeMsgType = _ref2.iframeMsgType,
58
69
  rest = _objectWithoutProperties(_ref2, _excluded);
59
70
  return /*#__PURE__*/React__default.createElement("a", _extends({
60
71
  href: href,
61
72
  target: target,
62
73
  className: buttonClasses(variant, size, isBlock, hasUnderline, className),
63
- onClick: href === '#' ? function (e) {
74
+ onClick: isIframe ? function (e) {
75
+ e.preventDefault();
76
+ execOnClick();
77
+ postMessage(href, iframeMsgType);
78
+ } : href === '#' ? function (e) {
64
79
  e.preventDefault();
65
- } : null
80
+ execOnClick();
81
+ } : execOnClick
66
82
  }, rest), children);
67
83
  };
68
84
  var AnchorLink = function AnchorLink(_ref3) {
@@ -1 +1 @@
1
- {"version":3,"file":"default.js","sources":["../../../../src/components/modules/buttons/default.js"],"sourcesContent":["import React from 'react';\nimport { forwardRef } from 'react';\nimport { Link } from 'react-router-dom';\nimport { twMerge } from 'tailwind-merge';\n\nimport Icon from '~/components/modules/icon';\n\nconst linkDefaultClasses = \"hc-normal-case hc-text-inherit !hc-font-[inherit] hc-[font-weight:inherit] !hc-p-0 hc-rounded-none\";\nconst underlineClasses = \"!underline decoration-1 underline-offset-2 hover:!no-underline focus:!no-underline\";\n\nconst ButtonVariant = {\n\tnone: '',\n\tprimary: 'hc-bg-primary hc-border hc-border-primary hc-text-white hover:hc-bg-opacity-70 focus:hc-bg-opacity-70',\n\tsecondary: 'hc-bg-secondary hc-border hc-border-secondary hc-text-white hover:hc-bg-opacity-70 focus:hc-bg-opacity-70',\n\toutline: 'hc-bg-transparent hc-border hc-border-primary hc-text-primary hover:hc-bg-primaryDark hover:hc-border-primaryDark hover:hc-text-white focus:hc-bg-primaryDark focus:hc-border-primaryDark focus:hc-text-white',\n\tlink: `${linkDefaultClasses} hc-text-primary hover:hc-text-uiText focus:hc-text-uiText`,\n\ticon: 'hc-opacity-100 hover:hc-opacity-70 focus:hc-opacity-70'\n};\n\nconst ButtonSize = {\n\tnone: '',\n\tdefault: 'hc-py-2 hc-px-6 hc-text-base',\n\tsq: 'hc-p-2.5',\n\tsqsm: 'hc-p-1',\n\txs: 'hc-py-1.5 hc-px-3 hc-text-xs',\n\tsm: 'hc-py-1.5 hc-px-4 hc-text-sm',\n\tlg: 'hc-py-4 hc-px-10 hc-text-lg'\n};\n\nconst ButtonDefaults = {\n\tstyle: 'hc-group hc-font-medium hc-uppercase hc-text-center hc-rounded hc-transition',\n\tsize: ButtonSize.default,\n\tvariant: ButtonVariant.primary,\n\tblock: 'hc-block hc-w-full'\n};\n\nconst linkVariants = variant => variant === 'link';\n\nconst buttonClasses = (variant, size, isBlock, hasUnderline, className) => twMerge(\n\tisBlock ? ButtonDefaults.block : linkVariants(variant) ? 'hc-inline' : 'hc-inline-block',\n\tButtonDefaults.style,\n\tvariant ? ButtonVariant[variant] : ButtonDefaults.variant,\n\tsize ? ButtonSize[size] : ButtonDefaults.size,\n\thasUnderline ? underlineClasses : '',\n\tclassName ?? ''\n);\n\nconst Button = ({\n\tchildren\n}) => {\n\treturn (\n\t\t{ children }\n\t);\n};\n\nexport const Anchor = ({\n\tchildren,\n\thref,\n\tclassName,\n\tsize,\n\tvariant,\n\tisBlock,\n\thasUnderline,\n\ttarget = '_blank',\n\t...rest\n}) => {\n\treturn (\n\t\t<a\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\tclassName={buttonClasses(variant, size, isBlock, hasUnderline, className)}\n\t\t\tonClick={href === '#' ? e => {\n\t\t\t\te.preventDefault();\n\t\t\t} : null}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</a>\n\t);\n};\n\nexport const AnchorLink = ({\n\tchildren,\n\tLink,\n\thref,\n\tclassName,\n\tsize,\n\tvariant,\n\tisBlock,\n\thasUnderline,\n\t...rest\n}) => {\n\treturn (\n\t\t<Link\n\t\t\thref={href}\n\t\t\tclassName={`\n\t\t\t\t${buttonClasses(variant, size, isBlock, hasUnderline, className)}\n\t\t\t`}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Link>\n\t);\n};\n\nexport const ScrollAnchor = forwardRef((props, ref) => {\n\tconst {\n\t\tchildren,\n\t\thref,\n\t\tclassName,\n\t\tsize,\n\t\tvariant,\n\t\tisBlock,\n\t\thasUnderline,\n\t\t...rest\n\t} = props;\n\n\treturn (\n\t\t<Link\n\t\t\tref={ref}\n\t\t\thref={`#${href}`}\n\t\t\tscroll={false}\n\t\t\tclassName={buttonClasses(variant, size, isBlock, hasUnderline, className)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Link>\n\t);\n});\n\nexport const Btn = forwardRef((props, ref) => {\n\tconst {\n\t\tchildren,\n\t\ttype = 'button',\n\t\tclassName,\n\t\tsize,\n\t\tvariant,\n\t\tisBlock,\n\t\thasUnderline,\n\t\t...rest\n\t} = props;\n\treturn (\n\t\t<button\n\t\t\tref={ref}\n\t\t\ttype={type}\n\t\t\tclassName={buttonClasses(variant, size, isBlock, hasUnderline, className)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</button>\n\t);\n});\n\nexport const ButtonBody = ({\n\tchildren,\n\tclassName\n}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName={twMerge(\n\t\t\t\t'hc-inline-flex hc-w-full hc-items-center hc-justify-between hc-gap-1.5',\n\t\t\t\tclassName ?? ''\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</span>\n\t);\n};\n\nexport const ButtonIcon = ({\n\ticon,\n\tsize = 'hc-size-4',\n\tclassName\n}) => {\n\treturn (\n\t\t<Icon\n\n\t\t\ticon={icon}\n\t\t\tsize={size}\n\t\t\tclassName={className ?? ''}\n\t\t/>\n\t);\n};\n\nButton.Anchor = Anchor;\nButton.Link = AnchorLink;\nButton.Scroll = ScrollAnchor;\nButton.Btn = Btn;\nButton.Body = ButtonBody;\nButton.Icon = ButtonIcon;\n\nBtn.displayName = 'Button:Button';\nScrollAnchor.displayName = 'Button:ScrollAnchor';\nexport default Button;\n"],"names":["linkDefaultClasses","underlineClasses","ButtonVariant","none","primary","secondary","outline","link","concat","icon","ButtonSize","sq","sqsm","xs","sm","lg","ButtonDefaults","style","size","variant","block","linkVariants","buttonClasses","isBlock","hasUnderline","className","twMerge","Button","_ref","children","Anchor","_ref2","href","_ref2$target","target","rest","_objectWithoutProperties","_excluded","React","createElement","_extends","onClick","e","preventDefault","AnchorLink","_ref3","Link","_excluded2","ScrollAnchor","forwardRef","props","ref","_excluded3","scroll","Btn","_props$type","type","_excluded4","ButtonBody","_ref4","ButtonIcon","_ref5","_ref5$size","Icon","Scroll","Body","displayName"],"mappings":";;;;;;;;;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,GAAGA,GAAG,CAAA;AAChB3B,MAAM,CAACsC,IAAI,GAAGP,UAAU,CAAA;AACxB/B,MAAM,CAACoC,IAAI,GAAGH,UAAU,CAAA;AAExBN,GAAG,CAACY,WAAW,GAAG,eAAe,CAAA;AACjClB,YAAY,CAACkB,WAAW,GAAG,qBAAqB;;;;"}
1
+ {"version":3,"file":"default.js","sources":["../../../../src/components/modules/buttons/default.js"],"sourcesContent":["import React from 'react';\nimport { forwardRef } from 'react';\nimport { Link } from 'react-router-dom';\nimport { twMerge } from 'tailwind-merge';\n\nimport Icon from '~/components/modules/icon';\n\nconst linkDefaultClasses = \"hc-normal-case hc-text-inherit !hc-font-[inherit] hc-[font-weight:inherit] !hc-p-0 hc-rounded-none\";\nconst underlineClasses = \"!underline decoration-1 underline-offset-2 hover:!no-underline focus:!no-underline\";\n\nconst ButtonVariant = {\n\tnone: '',\n\tprimary: 'hc-bg-primary hc-border hc-border-primary hc-text-white hover:hc-bg-opacity-70 focus:hc-bg-opacity-70',\n\tsecondary: 'hc-bg-secondary hc-border hc-border-secondary hc-text-white hover:hc-bg-opacity-70 focus:hc-bg-opacity-70',\n\toutline: 'hc-bg-transparent hc-border hc-border-primary hc-text-primary hover:hc-bg-primaryDark hover:hc-border-primaryDark hover:hc-text-white focus:hc-bg-primaryDark focus:hc-border-primaryDark focus:hc-text-white',\n\tlink: `${linkDefaultClasses} hc-text-primary hover:hc-text-uiText focus:hc-text-uiText`,\n\ticon: 'hc-opacity-100 hover:hc-opacity-70 focus:hc-opacity-70'\n};\n\nconst ButtonSize = {\n\tnone: '',\n\tdefault: 'hc-py-2 hc-px-6 hc-text-base',\n\tsq: 'hc-p-2.5',\n\tsqsm: 'hc-p-1',\n\txs: 'hc-py-1.5 hc-px-3 hc-text-xs',\n\tsm: 'hc-py-1.5 hc-px-4 hc-text-sm',\n\tlg: 'hc-py-4 hc-px-10 hc-text-lg'\n};\n\nconst ButtonDefaults = {\n\tstyle: 'hc-group hc-font-medium hc-uppercase hc-text-center hc-rounded hc-transition',\n\tsize: ButtonSize.default,\n\tvariant: ButtonVariant.primary,\n\tblock: 'hc-block hc-w-full'\n};\n\nconst linkVariants = variant => variant === 'link';\n\nconst buttonClasses = (variant, size, isBlock, hasUnderline, className) => twMerge(\n\tisBlock ? ButtonDefaults.block : linkVariants(variant) ? 'hc-inline' : 'hc-inline-block',\n\tButtonDefaults.style,\n\tvariant ? ButtonVariant[variant] : ButtonDefaults.variant,\n\tsize ? ButtonSize[size] : ButtonDefaults.size,\n\thasUnderline ? underlineClasses : '',\n\tclassName ?? ''\n);\n\nconst Button = ({\n\tchildren\n}) => {\n\treturn (\n\t\t{ children }\n\t);\n};\n\nconst postMessage = (href, msgType) => {\n\twindow.parent.postMessage({ href: href, type: msgType }, \"*\");\n};\n\nexport const Anchor = ({\n\tchildren,\n\thref,\n\tclassName,\n\tsize,\n\tvariant,\n\tisBlock,\n\thasUnderline,\n\ttarget = '_blank',\n\texecOnClick = null,\n\tisIframe = false,\n\tiframeMsgType,\n\t...rest\n}) => {\n\treturn (\n\t\t<a\n\t\t\thref={href}\n\t\t\ttarget={target}\n\t\t\tclassName={buttonClasses(variant, size, isBlock, hasUnderline, className)}\n\t\t\tonClick={isIframe ? e => {\n\t\t\t\te.preventDefault();\n\t\t\t\texecOnClick();\n\t\t\t\tpostMessage(href, iframeMsgType);\n\t\t\t} : href === '#' ? e => { e.preventDefault(); execOnClick(); } : execOnClick}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</a>\n\t);\n};\n\nexport const AnchorLink = ({\n\tchildren,\n\tLink,\n\thref,\n\tclassName,\n\tsize,\n\tvariant,\n\tisBlock,\n\thasUnderline,\n\t...rest\n}) => {\n\treturn (\n\t\t<Link\n\t\t\thref={href}\n\t\t\tclassName={`\n\t\t\t\t${buttonClasses(variant, size, isBlock, hasUnderline, className)}\n\t\t\t`}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Link>\n\t);\n};\n\nexport const ScrollAnchor = forwardRef((props, ref) => {\n\tconst {\n\t\tchildren,\n\t\thref,\n\t\tclassName,\n\t\tsize,\n\t\tvariant,\n\t\tisBlock,\n\t\thasUnderline,\n\t\t...rest\n\t} = props;\n\n\treturn (\n\t\t<Link\n\t\t\tref={ref}\n\t\t\thref={`#${href}`}\n\t\t\tscroll={false}\n\t\t\tclassName={buttonClasses(variant, size, isBlock, hasUnderline, className)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Link>\n\t);\n});\n\nexport const Btn = forwardRef((props, ref) => {\n\tconst {\n\t\tchildren,\n\t\ttype = 'button',\n\t\tclassName,\n\t\tsize,\n\t\tvariant,\n\t\tisBlock,\n\t\thasUnderline,\n\t\t...rest\n\t} = props;\n\treturn (\n\t\t<button\n\t\t\tref={ref}\n\t\t\ttype={type}\n\t\t\tclassName={buttonClasses(variant, size, isBlock, hasUnderline, className)}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</button>\n\t);\n});\n\nexport const ButtonBody = ({\n\tchildren,\n\tclassName\n}) => {\n\treturn (\n\t\t<span\n\t\t\tclassName={twMerge(\n\t\t\t\t'hc-inline-flex hc-w-full hc-items-center hc-justify-between hc-gap-1.5',\n\t\t\t\tclassName ?? ''\n\t\t\t)}\n\t\t>\n\t\t\t{children}\n\t\t</span>\n\t);\n};\n\nexport const ButtonIcon = ({\n\ticon,\n\tsize = 'hc-size-4',\n\tclassName\n}) => {\n\treturn (\n\t\t<Icon\n\t\t\ticon={icon}\n\t\t\tsize={size}\n\t\t\tclassName={className ?? ''}\n\t\t/>\n\t);\n};\n\nButton.Anchor = Anchor;\nButton.Link = AnchorLink;\nButton.Scroll = ScrollAnchor;\nButton.Btn = Btn;\nButton.Body = ButtonBody;\nButton.Icon = ButtonIcon;\n\nBtn.displayName = 'Button:Button';\nScrollAnchor.displayName = 'Button:ScrollAnchor';\nexport default Button;\n"],"names":["linkDefaultClasses","underlineClasses","ButtonVariant","none","primary","secondary","outline","link","concat","icon","ButtonSize","sq","sqsm","xs","sm","lg","ButtonDefaults","style","size","variant","block","linkVariants","buttonClasses","isBlock","hasUnderline","className","twMerge","Button","_ref","children","postMessage","href","msgType","window","parent","type","Anchor","_ref2","_ref2$target","target","_ref2$execOnClick","execOnClick","_ref2$isIframe","isIframe","iframeMsgType","rest","_objectWithoutProperties","_excluded","React","createElement","_extends","onClick","e","preventDefault","AnchorLink","_ref3","Link","_excluded2","ScrollAnchor","forwardRef","props","ref","_excluded3","scroll","Btn","_props$type","_excluded4","ButtonBody","_ref4","ButtonIcon","_ref5","_ref5$size","Icon","Scroll","Body","displayName"],"mappings":";;;;;;;;;;AAOA,IAAMA,kBAAkB,GAAG,oGAAoG,CAAA;AAC/H,IAAMC,gBAAgB,GAAG,oFAAoF,CAAA;AAE7G,IAAMC,aAAa,GAAG;AACrBC,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,OAAO,EAAE,uGAAuG;AAChHC,EAAAA,SAAS,EAAE,2GAA2G;AACtHC,EAAAA,OAAO,EAAE,+MAA+M;AACxNC,EAAAA,IAAI,EAAAC,EAAAA,CAAAA,MAAA,CAAKR,kBAAkB,EAA4D,4DAAA,CAAA;AACvFS,EAAAA,IAAI,EAAE,wDAAA;AACP,CAAC,CAAA;AAED,IAAMC,UAAU,GAAG;AAClBP,EAAAA,IAAI,EAAE,EAAE;AACR,EAAA,SAAA,EAAS,8BAA8B;AACvCQ,EAAAA,EAAE,EAAE,UAAU;AACdC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,EAAE,EAAE,8BAA8B;AAClCC,EAAAA,EAAE,EAAE,8BAA8B;AAClCC,EAAAA,EAAE,EAAE,6BAAA;AACL,CAAC,CAAA;AAED,IAAMC,cAAc,GAAG;AACtBC,EAAAA,KAAK,EAAE,8EAA8E;EACrFC,IAAI,EAAER,UAAU,CAAQ,SAAA,CAAA;EACxBS,OAAO,EAAEjB,aAAa,CAACE,OAAO;AAC9BgB,EAAAA,KAAK,EAA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CAAA;AACxBxC,MAAM,CAAC6C,IAAI,GAAGH,UAAU,CAAA;AAExBL,GAAG,CAACW,WAAW,GAAG,eAAe,CAAA;AACjCjB,YAAY,CAACiB,WAAW,GAAG,qBAAqB;;;;"}
@@ -7,10 +7,34 @@ var ApplyDialog = function ApplyDialog(_ref) {
7
7
  var children = _ref.children,
8
8
  applyUrl = _ref.applyUrl,
9
9
  internalApplyLink = _ref.internalApplyLink,
10
- companyName = _ref.companyName;
10
+ companyName = _ref.companyName,
11
+ item = _ref.item,
12
+ trackEvent = _ref.trackEvent,
13
+ eventTypes = _ref.eventTypes,
14
+ isIframe = _ref.isIframe;
15
+ var trackApplyOption1 = function trackApplyOption1() {
16
+ //console.log('calling trackApplyOption1');
17
+ trackEvent(eventTypes.APPLY_OPTION_1_CLICKED, {
18
+ jobCategory: item.fields.category,
19
+ jobCategoryClass: item.fields.categoryClass,
20
+ jobEntity: item.fields.entityName,
21
+ jobListingId: item.id,
22
+ jobSchedule: item.fields.schedule
23
+ });
24
+ };
25
+ var trackApplyOption2 = function trackApplyOption2() {
26
+ //console.log('calling trackApplyOption2');
27
+ trackEvent(eventTypes.APPLY_OPTION_2_CLICKED, {
28
+ jobCategory: item.fields.category,
29
+ jobCategoryClass: item.fields.categoryClass,
30
+ jobEntity: item.fields.entityName,
31
+ jobListingId: item.id,
32
+ jobSchedule: item.fields.schedule
33
+ });
34
+ };
11
35
  return /*#__PURE__*/React__default.createElement(Root, null, /*#__PURE__*/React__default.createElement(Trigger, {
12
36
  asChild: true
13
- }, children), /*#__PURE__*/React__default.createElement(Portal, null, /*#__PURE__*/React__default.createElement(Overlay, {
37
+ }, /*#__PURE__*/React__default.createElement("div", null, children)), /*#__PURE__*/React__default.createElement(Portal, null, /*#__PURE__*/React__default.createElement(Overlay, {
14
38
  className: "hc-bg-black/50 hc-fixed hc-inset-0 hc-animate-overlayShow"
15
39
  }), /*#__PURE__*/React__default.createElement(Content, {
16
40
  className: "z-99 hc-fit-content hc-h-fit hc-animate-contentShow hc-fixed hc-inset-0 hc-m-auto hc-max-h-[85vh] hc-w-[90vw] hc-max-w-[450px] hc-rounded-[6px] hc-bg-white hc-p-[25px] hc-shadow-lg focus:hc-outline-none hc-flex hc-flex-col hc-items-center hc-text-center"
@@ -22,15 +46,21 @@ var ApplyDialog = function ApplyDialog(_ref) {
22
46
  className: "hc-flex hc-justify-center hc-space-x-4 hc-w-full"
23
47
  }, /*#__PURE__*/React__default.createElement(Close, {
24
48
  asChild: true
25
- }, /*#__PURE__*/React__default.createElement(Button.Anchor, {
49
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button.Anchor, {
26
50
  variant: "outline",
27
- href: internalApplyLink
28
- }, "Yes")), /*#__PURE__*/React__default.createElement(Close, {
51
+ href: internalApplyLink,
52
+ execOnClick: trackApplyOption1,
53
+ isIframe: isIframe,
54
+ iframeMsgType: "APPLY_EMPLOYEE_YES_LINK"
55
+ }, "Yes"))), /*#__PURE__*/React__default.createElement(Close, {
29
56
  asChild: true
30
- }, /*#__PURE__*/React__default.createElement(Button.Anchor, {
57
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button.Anchor, {
31
58
  variant: "primary",
32
- href: applyUrl
33
- }, "No"))), /*#__PURE__*/React__default.createElement(Close, {
59
+ href: applyUrl,
60
+ execOnClick: trackApplyOption2,
61
+ isIframe: isIframe,
62
+ iframeMsgType: "APPLY_NOW_LINK"
63
+ }, "No")))), /*#__PURE__*/React__default.createElement(Close, {
34
64
  asChild: true
35
65
  }, /*#__PURE__*/React__default.createElement(Button.Anchor, {
36
66
  className: "hc-absolute hc-top-[10px] hc-right-[10px] hc-inline-flex hc-h-[25px] hc-w-[25px] hc-items-center hc-justify-center hc-rounded-full focus:hc-outline-none",