@abcagency/hc-ui-components 1.3.81 → 1.3.83

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 (242) hide show
  1. package/dist/components/HireControlMap.js +1 -1
  2. package/dist/components/containers/filter/commute-container.js +1 -1
  3. package/dist/components/containers/maps/map-container.js +1 -1
  4. package/dist/components/containers/maps/map-marker-container.js +1 -1
  5. package/dist/components/modules/accordions/default.js +2 -2
  6. package/dist/components/modules/buttons/button-group-apply.js +1 -1
  7. package/dist/components/modules/buttons/default.js +2 -2
  8. package/dist/components/modules/cards/default.js +2 -2
  9. package/dist/components/modules/dialogs/apply-dialog.js +1 -1
  10. package/dist/components/modules/filter/commute.js +2 -2
  11. package/dist/components/modules/filter/sort.js +2 -2
  12. package/dist/components/modules/grid.js +1 -1
  13. package/dist/components/modules/icon.js +1 -1
  14. package/dist/components/modules/list/header.js +1 -1
  15. package/dist/components/modules/list/item-expand-card/index.js +1 -1
  16. package/dist/components/modules/maps/map-marker.js +1 -1
  17. package/dist/components/modules/maps/map.js +1 -1
  18. package/dist/components/modules/maps/place-marker.js +1 -1
  19. package/dist/components/modules/maps/tabs.js +70 -12
  20. package/dist/components/modules/maps/tabs.js.map +1 -1
  21. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +802 -0
  22. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  23. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +679 -0
  24. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  25. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +343 -0
  26. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  27. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +140 -0
  28. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  29. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +137 -0
  30. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  31. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +33 -0
  32. package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +1 -0
  33. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +4 -0
  34. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +1 -0
  35. package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js +19 -0
  36. package/dist/node_modules/@headlessui/react/dist/components/transitions/transition.js.map +1 -0
  37. package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js +8 -0
  38. package/dist/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js.map +1 -0
  39. package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js +8 -0
  40. package/dist/node_modules/@headlessui/react/dist/hooks/use-computed.js.map +1 -0
  41. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +7 -0
  42. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +1 -0
  43. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +7 -0
  44. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +1 -0
  45. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +7 -0
  46. package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +1 -0
  47. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +7 -0
  48. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +1 -0
  49. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +7 -0
  50. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +1 -0
  51. package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js +9 -0
  52. package/dist/node_modules/@headlessui/react/dist/hooks/use-id.js.map +1 -0
  53. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +7 -0
  54. package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +1 -0
  55. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +7 -0
  56. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +1 -0
  57. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +7 -0
  58. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +1 -0
  59. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +10 -0
  60. package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +1 -0
  61. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +7 -0
  62. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +1 -0
  63. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +7 -0
  64. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +1 -0
  65. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +7 -0
  66. package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +1 -0
  67. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +7 -0
  68. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +1 -0
  69. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +6 -0
  70. package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +1 -0
  71. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +11 -0
  72. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +1 -0
  73. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +8 -0
  74. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +1 -0
  75. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +7 -0
  76. package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +1 -0
  77. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +7 -0
  78. package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +1 -0
  79. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +6 -0
  80. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js.map +1 -0
  81. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +6 -0
  82. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +1 -0
  83. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +6 -0
  84. package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +1 -0
  85. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +4 -0
  86. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +1 -0
  87. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +4 -0
  88. package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +1 -0
  89. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +4 -0
  90. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +1 -0
  91. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +6 -0
  92. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +1 -0
  93. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +4 -0
  94. package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js.map +1 -0
  95. package/dist/node_modules/@headlessui/react/dist/utils/env.js +4 -0
  96. package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +1 -0
  97. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +7 -0
  98. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +1 -0
  99. package/dist/node_modules/@headlessui/react/dist/utils/form.js +4 -0
  100. package/dist/node_modules/@headlessui/react/dist/utils/form.js.map +1 -0
  101. package/dist/node_modules/@headlessui/react/dist/utils/match.js +4 -0
  102. package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +1 -0
  103. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +4 -0
  104. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +1 -0
  105. package/dist/node_modules/@headlessui/react/dist/utils/once.js +4 -0
  106. package/dist/node_modules/@headlessui/react/dist/utils/once.js.map +1 -0
  107. package/dist/node_modules/@headlessui/react/dist/utils/owner.js +6 -0
  108. package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +1 -0
  109. package/dist/node_modules/@headlessui/react/dist/utils/platform.js +4 -0
  110. package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +1 -0
  111. package/dist/node_modules/@headlessui/react/dist/utils/render.js +11 -0
  112. package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +1 -0
  113. package/dist/node_modules/@iconify/react/dist/iconify.js +1928 -0
  114. package/dist/node_modules/@iconify/react/dist/iconify.js.map +1 -0
  115. package/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
  116. package/dist/node_modules/@radix-ui/number/dist/index.js.map +1 -0
  117. package/dist/node_modules/@radix-ui/primitive/dist/index.js +12 -0
  118. package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  119. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +304 -0
  120. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -0
  121. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
  122. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  123. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +145 -0
  124. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -0
  125. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +69 -0
  126. package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  127. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +19 -0
  128. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  129. package/dist/node_modules/@radix-ui/react-context/dist/index.js +80 -0
  130. package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  131. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +320 -0
  132. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
  133. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
  134. package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  135. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +212 -0
  136. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  137. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +27 -0
  138. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  139. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +208 -0
  140. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  141. package/dist/node_modules/@radix-ui/react-id/dist/index.js +16 -0
  142. package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  143. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +279 -0
  144. package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  145. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +18 -0
  146. package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  147. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +120 -0
  148. package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  149. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +42 -0
  150. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  151. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +221 -0
  152. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  153. package/dist/node_modules/@radix-ui/react-select/dist/index.js +1109 -0
  154. package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +1 -0
  155. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +82 -0
  156. package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  157. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +187 -0
  158. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -0
  159. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
  160. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  161. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +47 -0
  162. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  163. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +19 -0
  164. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  165. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +8 -0
  166. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  167. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +16 -0
  168. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -0
  169. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +41 -0
  170. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  171. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
  172. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
  173. package/dist/node_modules/@react-google-maps/api/dist/esm.js +8515 -0
  174. package/dist/node_modules/@react-google-maps/api/dist/esm.js.map +1 -0
  175. package/dist/node_modules/@remix-run/router/dist/router.js +271 -0
  176. package/dist/node_modules/@remix-run/router/dist/router.js.map +1 -0
  177. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +43 -0
  178. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +1 -0
  179. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +669 -0
  180. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +1 -0
  181. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +61 -0
  182. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +1 -0
  183. package/dist/node_modules/aria-hidden/dist/es2015/index.js +137 -0
  184. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  185. package/dist/node_modules/fuse.js/dist/fuse.js +1779 -0
  186. package/dist/node_modules/fuse.js/dist/fuse.js.map +1 -0
  187. package/dist/node_modules/get-nonce/dist/es2015/index.js +9 -0
  188. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  189. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +17 -0
  190. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
  191. package/dist/node_modules/react/jsx-runtime.js +12 -0
  192. package/dist/node_modules/react/jsx-runtime.js.map +1 -0
  193. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +10 -0
  194. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  195. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +161 -0
  196. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  197. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
  198. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  199. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
  200. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  201. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +107 -0
  202. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  203. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
  204. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  205. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
  206. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  207. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
  208. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  209. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
  210. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  211. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +32 -0
  212. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  213. package/dist/node_modules/react-router/dist/index.js +280 -0
  214. package/dist/node_modules/react-router/dist/index.js.map +1 -0
  215. package/dist/node_modules/react-router-dom/dist/index.js +201 -0
  216. package/dist/node_modules/react-router-dom/dist/index.js.map +1 -0
  217. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +20 -0
  218. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  219. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +26 -0
  220. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  221. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +52 -0
  222. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  223. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2530 -0
  224. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  225. package/dist/node_modules/tslib/tslib.es6.js +57 -0
  226. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  227. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +25 -0
  228. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  229. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +49 -0
  230. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  231. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +43 -0
  232. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  233. package/dist/node_modules/use-places-autocomplete/dist/index.esm.js +243 -0
  234. package/dist/node_modules/use-places-autocomplete/dist/index.esm.js.map +1 -0
  235. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
  236. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  237. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
  238. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  239. package/dist/styles/index.css +1 -1
  240. package/dist/util/filterUtil.js +1 -1
  241. package/package.json +1 -1
  242. package/src/components/modules/maps/tabs.js +85 -20
@@ -0,0 +1,271 @@
1
+ /**
2
+ * @remix-run/router v1.17.1
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ function _extends() {
12
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
13
+ for (var i = 1; i < arguments.length; i++) {
14
+ var source = arguments[i];
15
+ for (var key in source) {
16
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
17
+ target[key] = source[key];
18
+ }
19
+ }
20
+ }
21
+ return target;
22
+ };
23
+ return _extends.apply(this, arguments);
24
+ }
25
+
26
+ ////////////////////////////////////////////////////////////////////////////////
27
+ //#region Types and Constants
28
+ ////////////////////////////////////////////////////////////////////////////////
29
+ /**
30
+ * Actions represent the type of change to a location value.
31
+ */
32
+ var Action;
33
+ (function (Action) {
34
+ /**
35
+ * A POP indicates a change to an arbitrary index in the history stack, such
36
+ * as a back or forward navigation. It does not describe the direction of the
37
+ * navigation, only that the current index changed.
38
+ *
39
+ * Note: This is the default action for newly created history objects.
40
+ */
41
+ Action["Pop"] = "POP";
42
+ /**
43
+ * A PUSH indicates a new entry being added to the history stack, such as when
44
+ * a link is clicked and a new page loads. When this happens, all subsequent
45
+ * entries in the stack are lost.
46
+ */
47
+ Action["Push"] = "PUSH";
48
+ /**
49
+ * A REPLACE indicates the entry at the current index in the history stack
50
+ * being replaced by a new one.
51
+ */
52
+ Action["Replace"] = "REPLACE";
53
+ })(Action || (Action = {}));
54
+ function invariant(value, message) {
55
+ if (value === false || value === null || typeof value === "undefined") {
56
+ throw new Error(message);
57
+ }
58
+ }
59
+ /**
60
+ * Creates a string URL path from the given pathname, search, and hash components.
61
+ */
62
+ function createPath(_ref) {
63
+ let {
64
+ pathname = "/",
65
+ search = "",
66
+ hash = ""
67
+ } = _ref;
68
+ if (search && search !== "?") pathname += search.charAt(0) === "?" ? search : "?" + search;
69
+ if (hash && hash !== "#") pathname += hash.charAt(0) === "#" ? hash : "#" + hash;
70
+ return pathname;
71
+ }
72
+ /**
73
+ * Parses a string URL path into its separate pathname, search, and hash components.
74
+ */
75
+ function parsePath(path) {
76
+ let parsedPath = {};
77
+ if (path) {
78
+ let hashIndex = path.indexOf("#");
79
+ if (hashIndex >= 0) {
80
+ parsedPath.hash = path.substr(hashIndex);
81
+ path = path.substr(0, hashIndex);
82
+ }
83
+ let searchIndex = path.indexOf("?");
84
+ if (searchIndex >= 0) {
85
+ parsedPath.search = path.substr(searchIndex);
86
+ path = path.substr(0, searchIndex);
87
+ }
88
+ if (path) {
89
+ parsedPath.pathname = path;
90
+ }
91
+ }
92
+ return parsedPath;
93
+ }
94
+ //#endregion
95
+
96
+ var ResultType;
97
+ (function (ResultType) {
98
+ ResultType["data"] = "data";
99
+ ResultType["deferred"] = "deferred";
100
+ ResultType["redirect"] = "redirect";
101
+ ResultType["error"] = "error";
102
+ })(ResultType || (ResultType = {}));
103
+ /**
104
+ * @private
105
+ */
106
+ function stripBasename(pathname, basename) {
107
+ if (basename === "/") return pathname;
108
+ if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {
109
+ return null;
110
+ }
111
+ // We want to leave trailing slash behavior in the user's control, so if they
112
+ // specify a basename with a trailing slash, we should support it
113
+ let startIndex = basename.endsWith("/") ? basename.length - 1 : basename.length;
114
+ let nextChar = pathname.charAt(startIndex);
115
+ if (nextChar && nextChar !== "/") {
116
+ // pathname does not start with basename/
117
+ return null;
118
+ }
119
+ return pathname.slice(startIndex) || "/";
120
+ }
121
+ /**
122
+ * Returns a resolved path object relative to the given pathname.
123
+ *
124
+ * @see https://reactrouter.com/utils/resolve-path
125
+ */
126
+ function resolvePath(to, fromPathname) {
127
+ if (fromPathname === void 0) {
128
+ fromPathname = "/";
129
+ }
130
+ let {
131
+ pathname: toPathname,
132
+ search = "",
133
+ hash = ""
134
+ } = typeof to === "string" ? parsePath(to) : to;
135
+ let pathname = toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;
136
+ return {
137
+ pathname,
138
+ search: normalizeSearch(search),
139
+ hash: normalizeHash(hash)
140
+ };
141
+ }
142
+ function resolvePathname(relativePath, fromPathname) {
143
+ let segments = fromPathname.replace(/\/+$/, "").split("/");
144
+ let relativeSegments = relativePath.split("/");
145
+ relativeSegments.forEach(segment => {
146
+ if (segment === "..") {
147
+ // Keep the root "" segment so the pathname starts at /
148
+ if (segments.length > 1) segments.pop();
149
+ } else if (segment !== ".") {
150
+ segments.push(segment);
151
+ }
152
+ });
153
+ return segments.length > 1 ? segments.join("/") : "/";
154
+ }
155
+ function getInvalidPathError(char, field, dest, path) {
156
+ return "Cannot include a '" + char + "' character in a manually specified " + ("`to." + field + "` field [" + JSON.stringify(path) + "]. Please separate it out to the ") + ("`to." + dest + "` field. Alternatively you may provide the full path as ") + "a string in <Link to=\"...\"> and the router will parse it for you.";
157
+ }
158
+ /**
159
+ * @private
160
+ *
161
+ * When processing relative navigation we want to ignore ancestor routes that
162
+ * do not contribute to the path, such that index/pathless layout routes don't
163
+ * interfere.
164
+ *
165
+ * For example, when moving a route element into an index route and/or a
166
+ * pathless layout route, relative link behavior contained within should stay
167
+ * the same. Both of the following examples should link back to the root:
168
+ *
169
+ * <Route path="/">
170
+ * <Route path="accounts" element={<Link to=".."}>
171
+ * </Route>
172
+ *
173
+ * <Route path="/">
174
+ * <Route path="accounts">
175
+ * <Route element={<AccountsLayout />}> // <-- Does not contribute
176
+ * <Route index element={<Link to=".."} /> // <-- Does not contribute
177
+ * </Route
178
+ * </Route>
179
+ * </Route>
180
+ */
181
+ function getPathContributingMatches(matches) {
182
+ return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);
183
+ }
184
+ // Return the array of pathnames for the current route matches - used to
185
+ // generate the routePathnames input for resolveTo()
186
+ function getResolveToMatches(matches, v7_relativeSplatPath) {
187
+ let pathMatches = getPathContributingMatches(matches);
188
+ // When v7_relativeSplatPath is enabled, use the full pathname for the leaf
189
+ // match so we include splat values for "." links. See:
190
+ // https://github.com/remix-run/react-router/issues/11052#issuecomment-1836589329
191
+ if (v7_relativeSplatPath) {
192
+ return pathMatches.map((match, idx) => idx === pathMatches.length - 1 ? match.pathname : match.pathnameBase);
193
+ }
194
+ return pathMatches.map(match => match.pathnameBase);
195
+ }
196
+ /**
197
+ * @private
198
+ */
199
+ function resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {
200
+ if (isPathRelative === void 0) {
201
+ isPathRelative = false;
202
+ }
203
+ let to;
204
+ if (typeof toArg === "string") {
205
+ to = parsePath(toArg);
206
+ } else {
207
+ to = _extends({}, toArg);
208
+ invariant(!to.pathname || !to.pathname.includes("?"), getInvalidPathError("?", "pathname", "search", to));
209
+ invariant(!to.pathname || !to.pathname.includes("#"), getInvalidPathError("#", "pathname", "hash", to));
210
+ invariant(!to.search || !to.search.includes("#"), getInvalidPathError("#", "search", "hash", to));
211
+ }
212
+ let isEmptyPath = toArg === "" || to.pathname === "";
213
+ let toPathname = isEmptyPath ? "/" : to.pathname;
214
+ let from;
215
+ // Routing is relative to the current pathname if explicitly requested.
216
+ //
217
+ // If a pathname is explicitly provided in `to`, it should be relative to the
218
+ // route context. This is explained in `Note on `<Link to>` values` in our
219
+ // migration guide from v5 as a means of disambiguation between `to` values
220
+ // that begin with `/` and those that do not. However, this is problematic for
221
+ // `to` values that do not provide a pathname. `to` can simply be a search or
222
+ // hash string, in which case we should assume that the navigation is relative
223
+ // to the current location's pathname and *not* the route pathname.
224
+ if (toPathname == null) {
225
+ from = locationPathname;
226
+ } else {
227
+ let routePathnameIndex = routePathnames.length - 1;
228
+ // With relative="route" (the default), each leading .. segment means
229
+ // "go up one route" instead of "go up one URL segment". This is a key
230
+ // difference from how <a href> works and a major reason we call this a
231
+ // "to" value instead of a "href".
232
+ if (!isPathRelative && toPathname.startsWith("..")) {
233
+ let toSegments = toPathname.split("/");
234
+ while (toSegments[0] === "..") {
235
+ toSegments.shift();
236
+ routePathnameIndex -= 1;
237
+ }
238
+ to.pathname = toSegments.join("/");
239
+ }
240
+ from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/";
241
+ }
242
+ let path = resolvePath(to, from);
243
+ // Ensure the pathname has a trailing slash if the original "to" had one
244
+ let hasExplicitTrailingSlash = toPathname && toPathname !== "/" && toPathname.endsWith("/");
245
+ // Or if this was a link to the current path which has a trailing slash
246
+ let hasCurrentTrailingSlash = (isEmptyPath || toPathname === ".") && locationPathname.endsWith("/");
247
+ if (!path.pathname.endsWith("/") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {
248
+ path.pathname += "/";
249
+ }
250
+ return path;
251
+ }
252
+ /**
253
+ * @private
254
+ */
255
+ const joinPaths = paths => paths.join("/").replace(/\/\/+/g, "/");
256
+ /**
257
+ * @private
258
+ */
259
+ const normalizeSearch = search => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search;
260
+ /**
261
+ * @private
262
+ */
263
+ const normalizeHash = hash => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash;
264
+
265
+ const validMutationMethodsArr = ["post", "put", "patch", "delete"];
266
+ new Set(validMutationMethodsArr);
267
+ const validRequestMethodsArr = ["get", ...validMutationMethodsArr];
268
+ new Set(validRequestMethodsArr);
269
+
270
+ export { Action, getResolveToMatches as UNSAFE_getResolveToMatches, invariant as UNSAFE_invariant, createPath, joinPaths, parsePath, resolvePath, resolveTo, stripBasename };
271
+ //# sourceMappingURL=router.js.map