@bigbinary/neeto-commons-frontend 4.13.19 → 4.13.21

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 (302) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/cypress-utils/commands.js +4 -4
  3. package/dist/cjs/cypress-utils/constants/routes.js +2 -1
  4. package/dist/cjs/cypress-utils/constants/routes.js.map +1 -1
  5. package/dist/cjs/cypress-utils/constants/selectors/common.js +2 -1
  6. package/dist/cjs/cypress-utils/constants/selectors/common.js.map +1 -1
  7. package/dist/cjs/cypress-utils/constants/selectors/editor.js +2 -1
  8. package/dist/cjs/cypress-utils/constants/selectors/editor.js.map +1 -1
  9. package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js +2 -1
  10. package/dist/cjs/cypress-utils/constants/selectors/ipRestriction.js.map +1 -1
  11. package/dist/cjs/cypress-utils/constants/selectors/login.js +2 -1
  12. package/dist/cjs/cypress-utils/constants/selectors/login.js.map +1 -1
  13. package/dist/cjs/cypress-utils/constants/selectors/member.js +2 -1
  14. package/dist/cjs/cypress-utils/constants/selectors/member.js.map +1 -1
  15. package/dist/cjs/cypress-utils/constants/selectors/navigation.js +2 -1
  16. package/dist/cjs/cypress-utils/constants/selectors/navigation.js.map +1 -1
  17. package/dist/cjs/cypress-utils/constants/selectors/signUp.js +2 -1
  18. package/dist/cjs/cypress-utils/constants/selectors/signUp.js.map +1 -1
  19. package/dist/cjs/cypress-utils/constants/selectors/tags.js +2 -1
  20. package/dist/cjs/cypress-utils/constants/selectors/tags.js.map +1 -1
  21. package/dist/cjs/cypress-utils/index.js +4 -4
  22. package/dist/cjs/cypress-utils/utils/authentication.js +2 -1
  23. package/dist/cjs/cypress-utils/utils/authentication.js.map +1 -1
  24. package/dist/cjs/cypress-utils/utils/common.js +2 -1
  25. package/dist/cjs/cypress-utils/utils/common.js.map +1 -1
  26. package/dist/cjs/cypress-utils/utils/email.js +2 -1
  27. package/dist/cjs/cypress-utils/utils/email.js.map +1 -1
  28. package/dist/cjs/cypress-utils/utils/member.js +2 -1
  29. package/dist/cjs/cypress-utils/utils/member.js.map +1 -1
  30. package/dist/cjs/cypress-utils/utils/navigation.js +2 -1
  31. package/dist/cjs/cypress-utils/utils/navigation.js.map +1 -1
  32. package/dist/cjs/cypress-utils/utils/organization.js +2 -1
  33. package/dist/cjs/cypress-utils/utils/organization.js.map +1 -1
  34. package/dist/cjs/cypress-utils/utils/validation.js +2 -1
  35. package/dist/cjs/cypress-utils/utils/validation.js.map +1 -1
  36. package/dist/cjs/defineProperty-Cm9b1C1w.js +32 -0
  37. package/dist/cjs/defineProperty-Cm9b1C1w.js.map +1 -0
  38. package/dist/cjs/index-DDd00LFf.js +378 -0
  39. package/dist/cjs/index-DDd00LFf.js.map +1 -0
  40. package/dist/cjs/initializers/axios.js +2 -2
  41. package/dist/cjs/initializers/axiosInitializer/index.js +2 -2
  42. package/dist/cjs/initializers/dayjs.js +4 -4
  43. package/dist/cjs/initializers/dayjs.js.map +1 -1
  44. package/dist/cjs/initializers/globalProps.js +3 -3
  45. package/dist/cjs/initializers/globalProps.js.map +1 -1
  46. package/dist/cjs/initializers/i18n.js +3 -3
  47. package/dist/cjs/initializers/index.js +4 -4
  48. package/dist/cjs/initializers/reactDevTools.js +1 -1
  49. package/dist/cjs/initializers/utils/utils.js +3 -3
  50. package/dist/cjs/objectWithoutProperties-DQlolGrE.js +26 -0
  51. package/dist/cjs/objectWithoutProperties-DQlolGrE.js.map +1 -0
  52. package/dist/cjs/react-utils/AppContainer/AppContainer.js +2 -1
  53. package/dist/cjs/react-utils/AppContainer/AppContainer.js.map +1 -1
  54. package/dist/cjs/react-utils/AppContainer/index.js +2 -1
  55. package/dist/cjs/react-utils/AppContainer/index.js.map +1 -1
  56. package/dist/cjs/react-utils/BrowserPushNotifications/index.js +1 -1
  57. package/dist/cjs/react-utils/BrowserPushNotifications/pushHelper.js +1 -1
  58. package/dist/cjs/react-utils/BrowserPushNotifications/registerServiceWorker.js +1 -1
  59. package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +5 -4
  60. package/dist/cjs/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
  61. package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +2 -1
  62. package/dist/cjs/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
  63. package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js +1 -1
  64. package/dist/cjs/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
  65. package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js +2 -1
  66. package/dist/cjs/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -1
  67. package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js +3 -2
  68. package/dist/cjs/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
  69. package/dist/cjs/react-utils/PrivateRoute/index.js +3 -2
  70. package/dist/cjs/react-utils/PrivateRoute/index.js.map +1 -1
  71. package/dist/cjs/react-utils/index.js +7 -6
  72. package/dist/cjs/react-utils/index.js.map +1 -1
  73. package/dist/cjs/react-utils/useBreakpoints/index.js +2 -1
  74. package/dist/cjs/react-utils/useBreakpoints/index.js.map +1 -1
  75. package/dist/cjs/react-utils/useBreakpoints/utils.js +2 -1
  76. package/dist/cjs/react-utils/useBreakpoints/utils.js.map +1 -1
  77. package/dist/cjs/react-utils/useDebounce/index.js +2 -2
  78. package/dist/cjs/react-utils/useDebounce/useDebounce.js +2 -2
  79. package/dist/cjs/react-utils/useFetchNeetoApps/index.js +6 -5
  80. package/dist/cjs/react-utils/useFetchNeetoApps/index.js.map +1 -1
  81. package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +6 -5
  82. package/dist/cjs/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
  83. package/dist/cjs/react-utils/useIsElementVisibleInDom/index.js +2 -2
  84. package/dist/cjs/react-utils/useIsElementVisibleInDom/useForceUpdate.js +2 -2
  85. package/dist/cjs/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +2 -2
  86. package/dist/cjs/react-utils/useLocalStorage/index.js +7 -6
  87. package/dist/cjs/react-utils/useLocalStorage/index.js.map +1 -1
  88. package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js +7 -6
  89. package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
  90. package/dist/cjs/react-utils/useMutationWithInvalidation/index.js +3 -2
  91. package/dist/cjs/react-utils/useMutationWithInvalidation/index.js.map +1 -1
  92. package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +4 -3
  93. package/dist/cjs/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -1
  94. package/dist/cjs/react-utils/usePersistedQuery/index.js +6 -5
  95. package/dist/cjs/react-utils/usePersistedQuery/index.js.map +1 -1
  96. package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js +6 -5
  97. package/dist/cjs/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
  98. package/dist/cjs/react-utils/useQueryParams/index.js +6 -5
  99. package/dist/cjs/react-utils/useQueryParams/index.js.map +1 -1
  100. package/dist/cjs/react-utils/useQueryParams/useQueryParams.js +6 -5
  101. package/dist/cjs/react-utils/useQueryParams/useQueryParams.js.map +1 -1
  102. package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js +6 -5
  103. package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
  104. package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +6 -5
  105. package/dist/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
  106. package/dist/cjs/react-utils/useStateWithDependency/index.js +2 -2
  107. package/dist/cjs/react-utils/useStateWithDependency/useStateWithDependency.js +2 -2
  108. package/dist/cjs/react-utils/withTitle/index.js +2 -1
  109. package/dist/cjs/react-utils/withTitle/index.js.map +1 -1
  110. package/dist/cjs/react-utils/withTitle/withTitle.js +2 -1
  111. package/dist/cjs/react-utils/withTitle/withTitle.js.map +1 -1
  112. package/dist/cjs/slicedToArray-Cbh2WzDH.js +46 -0
  113. package/dist/cjs/slicedToArray-Cbh2WzDH.js.map +1 -0
  114. package/dist/cjs/toConsumableArray-tBKHqzE3.js +22 -0
  115. package/dist/cjs/toConsumableArray-tBKHqzE3.js.map +1 -0
  116. package/dist/cjs/typeof-D4ZZ_FlZ.js +14 -0
  117. package/dist/cjs/typeof-D4ZZ_FlZ.js.map +1 -0
  118. package/dist/cjs/unsupportedIterableToArray-BoHMiKNA.js +19 -0
  119. package/dist/cjs/unsupportedIterableToArray-BoHMiKNA.js.map +1 -0
  120. package/dist/cjs/utils/buildNestedAttributesPayload.js +4 -3
  121. package/dist/cjs/utils/buildNestedAttributesPayload.js.map +1 -1
  122. package/dist/cjs/utils/captureAnalyticsPageView.js +2 -1
  123. package/dist/cjs/utils/captureAnalyticsPageView.js.map +1 -1
  124. package/dist/cjs/utils/createSubscription.js +6 -5
  125. package/dist/cjs/utils/createSubscription.js.map +1 -1
  126. package/dist/cjs/utils/currencyFormat.js +2 -1
  127. package/dist/cjs/utils/currencyFormat.js.map +1 -1
  128. package/dist/cjs/utils/datetime.js +6 -5
  129. package/dist/cjs/utils/datetime.js.map +1 -1
  130. package/dist/cjs/utils/dayjs.js +14 -21
  131. package/dist/cjs/utils/dayjs.js.map +1 -1
  132. package/dist/cjs/utils/general.js +8 -7
  133. package/dist/cjs/utils/general.js.map +1 -1
  134. package/dist/cjs/utils/index.js +7 -6
  135. package/dist/cjs/utils/index.js.map +1 -1
  136. package/dist/cjs/utils/timezonePlugin.js +4 -3
  137. package/dist/cjs/utils/timezonePlugin.js.map +1 -1
  138. package/dist/cypress-utils/commands.js +4 -4
  139. package/dist/cypress-utils/constants/routes.js +2 -1
  140. package/dist/cypress-utils/constants/routes.js.map +1 -1
  141. package/dist/cypress-utils/constants/selectors/common.js +2 -1
  142. package/dist/cypress-utils/constants/selectors/common.js.map +1 -1
  143. package/dist/cypress-utils/constants/selectors/editor.js +2 -1
  144. package/dist/cypress-utils/constants/selectors/editor.js.map +1 -1
  145. package/dist/cypress-utils/constants/selectors/ipRestriction.js +2 -1
  146. package/dist/cypress-utils/constants/selectors/ipRestriction.js.map +1 -1
  147. package/dist/cypress-utils/constants/selectors/login.js +2 -1
  148. package/dist/cypress-utils/constants/selectors/login.js.map +1 -1
  149. package/dist/cypress-utils/constants/selectors/member.js +2 -1
  150. package/dist/cypress-utils/constants/selectors/member.js.map +1 -1
  151. package/dist/cypress-utils/constants/selectors/navigation.js +2 -1
  152. package/dist/cypress-utils/constants/selectors/navigation.js.map +1 -1
  153. package/dist/cypress-utils/constants/selectors/signUp.js +2 -1
  154. package/dist/cypress-utils/constants/selectors/signUp.js.map +1 -1
  155. package/dist/cypress-utils/constants/selectors/tags.js +2 -1
  156. package/dist/cypress-utils/constants/selectors/tags.js.map +1 -1
  157. package/dist/cypress-utils/index.js +4 -4
  158. package/dist/cypress-utils/utils/authentication.js +2 -1
  159. package/dist/cypress-utils/utils/authentication.js.map +1 -1
  160. package/dist/cypress-utils/utils/common.js +2 -1
  161. package/dist/cypress-utils/utils/common.js.map +1 -1
  162. package/dist/cypress-utils/utils/email.js +2 -1
  163. package/dist/cypress-utils/utils/email.js.map +1 -1
  164. package/dist/cypress-utils/utils/member.js +2 -1
  165. package/dist/cypress-utils/utils/member.js.map +1 -1
  166. package/dist/cypress-utils/utils/navigation.js +2 -1
  167. package/dist/cypress-utils/utils/navigation.js.map +1 -1
  168. package/dist/cypress-utils/utils/organization.js +2 -1
  169. package/dist/cypress-utils/utils/organization.js.map +1 -1
  170. package/dist/cypress-utils/utils/validation.js +2 -1
  171. package/dist/cypress-utils/utils/validation.js.map +1 -1
  172. package/dist/defineProperty-D_V-nTlo.js +29 -0
  173. package/dist/defineProperty-D_V-nTlo.js.map +1 -0
  174. package/dist/index-D_s_toMy.js +375 -0
  175. package/dist/index-D_s_toMy.js.map +1 -0
  176. package/dist/initializers/axios.js +2 -2
  177. package/dist/initializers/axiosInitializer/index.js +2 -2
  178. package/dist/initializers/dayjs.js +4 -4
  179. package/dist/initializers/dayjs.js.map +1 -1
  180. package/dist/initializers/globalProps.js +3 -3
  181. package/dist/initializers/globalProps.js.map +1 -1
  182. package/dist/initializers/i18n.js +3 -3
  183. package/dist/initializers/index.js +4 -4
  184. package/dist/initializers/reactDevTools.js +1 -1
  185. package/dist/initializers/utils/utils.js +3 -3
  186. package/dist/objectWithoutProperties-PcUN5OqL.js +24 -0
  187. package/dist/objectWithoutProperties-PcUN5OqL.js.map +1 -0
  188. package/dist/react-utils/AppContainer/AppContainer.js +2 -1
  189. package/dist/react-utils/AppContainer/AppContainer.js.map +1 -1
  190. package/dist/react-utils/AppContainer/index.js +2 -1
  191. package/dist/react-utils/AppContainer/index.js.map +1 -1
  192. package/dist/react-utils/BrowserPushNotifications/index.js +1 -1
  193. package/dist/react-utils/BrowserPushNotifications/pushHelper.js +1 -1
  194. package/dist/react-utils/BrowserPushNotifications/registerServiceWorker.js +1 -1
  195. package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +5 -4
  196. package/dist/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -1
  197. package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +2 -1
  198. package/dist/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -1
  199. package/dist/react-utils/HoneybadgerErrorBoundary/constants.js +1 -1
  200. package/dist/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -1
  201. package/dist/react-utils/HoneybadgerErrorBoundary/index.js +2 -1
  202. package/dist/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -1
  203. package/dist/react-utils/PrivateRoute/PrivateRoute.js +3 -2
  204. package/dist/react-utils/PrivateRoute/PrivateRoute.js.map +1 -1
  205. package/dist/react-utils/PrivateRoute/index.js +3 -2
  206. package/dist/react-utils/PrivateRoute/index.js.map +1 -1
  207. package/dist/react-utils/index.js +7 -6
  208. package/dist/react-utils/index.js.map +1 -1
  209. package/dist/react-utils/useBreakpoints/index.js +2 -1
  210. package/dist/react-utils/useBreakpoints/index.js.map +1 -1
  211. package/dist/react-utils/useBreakpoints/utils.js +2 -1
  212. package/dist/react-utils/useBreakpoints/utils.js.map +1 -1
  213. package/dist/react-utils/useDebounce/index.js +2 -2
  214. package/dist/react-utils/useDebounce/useDebounce.js +2 -2
  215. package/dist/react-utils/useFetchNeetoApps/index.js +6 -5
  216. package/dist/react-utils/useFetchNeetoApps/index.js.map +1 -1
  217. package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +6 -5
  218. package/dist/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -1
  219. package/dist/react-utils/useIsElementVisibleInDom/index.js +2 -2
  220. package/dist/react-utils/useIsElementVisibleInDom/useForceUpdate.js +2 -2
  221. package/dist/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +2 -2
  222. package/dist/react-utils/useLocalStorage/index.js +7 -6
  223. package/dist/react-utils/useLocalStorage/index.js.map +1 -1
  224. package/dist/react-utils/useLocalStorage/useLocalStorage.js +7 -6
  225. package/dist/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
  226. package/dist/react-utils/useMutationWithInvalidation/index.js +3 -2
  227. package/dist/react-utils/useMutationWithInvalidation/index.js.map +1 -1
  228. package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +4 -3
  229. package/dist/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -1
  230. package/dist/react-utils/usePersistedQuery/index.js +6 -5
  231. package/dist/react-utils/usePersistedQuery/index.js.map +1 -1
  232. package/dist/react-utils/usePersistedQuery/usePersistedQuery.js +6 -5
  233. package/dist/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -1
  234. package/dist/react-utils/useQueryParams/index.js +6 -5
  235. package/dist/react-utils/useQueryParams/index.js.map +1 -1
  236. package/dist/react-utils/useQueryParams/useQueryParams.js +6 -5
  237. package/dist/react-utils/useQueryParams/useQueryParams.js.map +1 -1
  238. package/dist/react-utils/useRegisterNavigationCheckpoint/index.js +6 -5
  239. package/dist/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -1
  240. package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +6 -5
  241. package/dist/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
  242. package/dist/react-utils/useStateWithDependency/index.js +2 -2
  243. package/dist/react-utils/useStateWithDependency/useStateWithDependency.js +2 -2
  244. package/dist/react-utils/withTitle/index.js +2 -1
  245. package/dist/react-utils/withTitle/index.js.map +1 -1
  246. package/dist/react-utils/withTitle/withTitle.js +2 -1
  247. package/dist/react-utils/withTitle/withTitle.js.map +1 -1
  248. package/dist/slicedToArray-BWOQ_OdI.js +44 -0
  249. package/dist/slicedToArray-BWOQ_OdI.js.map +1 -0
  250. package/dist/toConsumableArray-B7CFjjkW.js +20 -0
  251. package/dist/toConsumableArray-B7CFjjkW.js.map +1 -0
  252. package/dist/typeof-D-UKOauR.js +12 -0
  253. package/dist/typeof-D-UKOauR.js.map +1 -0
  254. package/dist/unsupportedIterableToArray-Dqz8Y8_I.js +16 -0
  255. package/dist/unsupportedIterableToArray-Dqz8Y8_I.js.map +1 -0
  256. package/dist/utils/buildNestedAttributesPayload.js +4 -3
  257. package/dist/utils/buildNestedAttributesPayload.js.map +1 -1
  258. package/dist/utils/captureAnalyticsPageView.js +2 -1
  259. package/dist/utils/captureAnalyticsPageView.js.map +1 -1
  260. package/dist/utils/createSubscription.js +6 -5
  261. package/dist/utils/createSubscription.js.map +1 -1
  262. package/dist/utils/currencyFormat.js +2 -1
  263. package/dist/utils/currencyFormat.js.map +1 -1
  264. package/dist/utils/datetime.js +6 -5
  265. package/dist/utils/datetime.js.map +1 -1
  266. package/dist/utils/dayjs.js +14 -21
  267. package/dist/utils/dayjs.js.map +1 -1
  268. package/dist/utils/general.js +8 -7
  269. package/dist/utils/general.js.map +1 -1
  270. package/dist/utils/index.js +7 -6
  271. package/dist/utils/index.js.map +1 -1
  272. package/dist/utils/timezonePlugin.js +4 -3
  273. package/dist/utils/timezonePlugin.js.map +1 -1
  274. package/package.json +44 -44
  275. package/dist/cjs/defineProperty-997UgAIV.js +0 -19
  276. package/dist/cjs/defineProperty-997UgAIV.js.map +0 -1
  277. package/dist/cjs/index-H4FWVZW-.js +0 -439
  278. package/dist/cjs/index-H4FWVZW-.js.map +0 -1
  279. package/dist/cjs/objectWithoutProperties-DKElrbI9.js +0 -38
  280. package/dist/cjs/objectWithoutProperties-DKElrbI9.js.map +0 -1
  281. package/dist/cjs/slicedToArray-xtNEn5LJ.js +0 -48
  282. package/dist/cjs/slicedToArray-xtNEn5LJ.js.map +0 -1
  283. package/dist/cjs/toConsumableArray-Da_S-3Fb.js +0 -22
  284. package/dist/cjs/toConsumableArray-Da_S-3Fb.js.map +0 -1
  285. package/dist/cjs/typeof-CKZ7gZmW.js +0 -14
  286. package/dist/cjs/typeof-CKZ7gZmW.js.map +0 -1
  287. package/dist/cjs/unsupportedIterableToArray-CP9uaN0w.js +0 -24
  288. package/dist/cjs/unsupportedIterableToArray-CP9uaN0w.js.map +0 -1
  289. package/dist/defineProperty-CEd-kZQW.js +0 -17
  290. package/dist/defineProperty-CEd-kZQW.js.map +0 -1
  291. package/dist/index-CRoDfiJc.js +0 -436
  292. package/dist/index-CRoDfiJc.js.map +0 -1
  293. package/dist/objectWithoutProperties-B90Wg9LD.js +0 -36
  294. package/dist/objectWithoutProperties-B90Wg9LD.js.map +0 -1
  295. package/dist/slicedToArray-B_J-CC8-.js +0 -46
  296. package/dist/slicedToArray-B_J-CC8-.js.map +0 -1
  297. package/dist/toConsumableArray-CQcqnqnw.js +0 -20
  298. package/dist/toConsumableArray-CQcqnqnw.js.map +0 -1
  299. package/dist/typeof-C6-BY_SI.js +0 -12
  300. package/dist/typeof-C6-BY_SI.js.map +0 -1
  301. package/dist/unsupportedIterableToArray-wRn9bJ2J.js +0 -21
  302. package/dist/unsupportedIterableToArray-wRn9bJ2J.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { _ as _slicedToArray } from '../../slicedToArray-B_J-CC8-.js';
1
+ import { _ as _slicedToArray } from '../../slicedToArray-BWOQ_OdI.js';
2
2
  import { useState, useEffect } from 'react';
3
3
  import useForceUpdate from './useForceUpdate.js';
4
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
4
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
5
5
 
6
6
  var useIsElementVisibleInDom = function useIsElementVisibleInDom(target) {
7
7
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
@@ -1,21 +1,22 @@
1
1
  export { default } from './useLocalStorage.js';
2
- import '../../slicedToArray-B_J-CC8-.js';
3
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
2
+ import '../../slicedToArray-BWOQ_OdI.js';
3
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
4
4
  import 'react';
5
5
  import 'ramda';
6
6
  import 'axios';
7
7
  import '../../initializers/constants.js';
8
8
  import '../../utils/general.js';
9
- import '../../objectWithoutProperties-B90Wg9LD.js';
10
- import '../../index-CRoDfiJc.js';
9
+ import '../../objectWithoutProperties-PcUN5OqL.js';
10
+ import '../../index-D_s_toMy.js';
11
11
  import '../../_commonjsHelpers-B85MJLTf.js';
12
- import '../../defineProperty-CEd-kZQW.js';
12
+ import '../../defineProperty-D_V-nTlo.js';
13
+ import '../../typeof-D-UKOauR.js';
13
14
  import 'i18next';
14
15
  import '@bigbinary/neeto-cist';
15
16
  import '@bigbinary/neetoui/Toastr';
16
17
  import 'qs';
17
18
  import '../../utils/dayjs.js';
18
- import '../../toConsumableArray-CQcqnqnw.js';
19
+ import '../../toConsumableArray-B7CFjjkW.js';
19
20
  import 'dayjs';
20
21
  import '../../utils/createSubscription.js';
21
22
  import '@rails/actioncable';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../../slicedToArray-B_J-CC8-.js';
1
+ import { _ as _slicedToArray } from '../../slicedToArray-BWOQ_OdI.js';
2
2
  import { useState } from 'react';
3
3
  import { isNil } from 'ramda';
4
4
  import 'axios';
@@ -11,14 +11,15 @@ import 'i18next';
11
11
  import 'yup';
12
12
  import '../../mixpanel.cjs-DTVxnNUt.js';
13
13
  import '@bigbinary/neeto-cist';
14
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
15
- import '../../objectWithoutProperties-B90Wg9LD.js';
16
- import '../../index-CRoDfiJc.js';
14
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
15
+ import '../../objectWithoutProperties-PcUN5OqL.js';
16
+ import '../../index-D_s_toMy.js';
17
17
  import '../../_commonjsHelpers-B85MJLTf.js';
18
- import '../../defineProperty-CEd-kZQW.js';
18
+ import '../../defineProperty-D_V-nTlo.js';
19
+ import '../../typeof-D-UKOauR.js';
19
20
  import '@bigbinary/neetoui/Toastr';
20
21
  import 'qs';
21
- import '../../toConsumableArray-CQcqnqnw.js';
22
+ import '../../toConsumableArray-B7CFjjkW.js';
22
23
  import '@rails/actioncable';
23
24
 
24
25
  var getStorageValue = function getStorageValue(key, defaultValue) {
@@ -1 +1 @@
1
- {"version":3,"file":"useLocalStorage.js","sources":["../../../src/react-utils/useLocalStorage/useLocalStorage.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-local-storage */\n\nimport { useState } from \"react\";\n\nimport { isNil } from \"ramda\";\nimport { removeFromLocalStorage, setToLocalStorage } from \"utils\";\n\nconst getStorageValue = (key, defaultValue) => {\n try {\n const storedValue = localStorage.getItem(key);\n\n return storedValue ? JSON.parse(storedValue) : defaultValue;\n } catch (error) {\n logger.error(error);\n\n return defaultValue;\n }\n};\n\nconst useLocalStorage = (key, defaultValue) => {\n const [storedValue, setStoredValue] = useState(() =>\n getStorageValue(key, defaultValue)\n );\n\n const setValue = value =>\n setStoredValue(prevStoredValue => {\n const newValue =\n typeof value === \"function\" ? value(prevStoredValue) : value;\n\n if (isNil(newValue)) {\n removeFromLocalStorage(key);\n } else {\n setToLocalStorage(key, newValue);\n }\n\n return newValue;\n });\n\n return [storedValue, setValue];\n};\n\nexport default useLocalStorage;\n"],"names":["getStorageValue","key","defaultValue","storedValue","localStorage","getItem","JSON","parse","error","logger","useLocalStorage","_useState","useState","_useState2","_slicedToArray","setStoredValue","setValue","value","prevStoredValue","newValue","isNil","removeFromLocalStorage","setToLocalStorage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAI;AACF,IAAA,IAAMC,WAAW,GAAGC,YAAY,CAACC,OAAO,CAACJ,GAAG,CAAC,CAAA;IAE7C,OAAOE,WAAW,GAAGG,IAAI,CAACC,KAAK,CAACJ,WAAW,CAAC,GAAGD,YAAY,CAAA;GAC5D,CAAC,OAAOM,KAAK,EAAE;AACdC,IAAAA,MAAM,CAACD,KAAK,CAACA,KAAK,CAAC,CAAA;AAEnB,IAAA,OAAON,YAAY,CAAA;AACrB,GAAA;AACF,CAAC,CAAA;AAEKQ,IAAAA,eAAe,GAAG,SAAlBA,eAAeA,CAAIT,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAAS,SAAA,GAAsCC,QAAQ,CAAC,YAAA;AAAA,MAAA,OAC7CZ,eAAe,CAACC,GAAG,EAAEC,YAAY,CAAC,CAAA;AAAA,KACpC,CAAC;IAAAW,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAFMR,IAAAA,WAAW,GAAAU,UAAA,CAAA,CAAA,CAAA;AAAEE,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA,CAAA;AAIlC,EAAA,IAAMG,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,KAAK,EAAA;AAAA,IAAA,OACpBF,cAAc,CAAC,UAAAG,eAAe,EAAI;AAChC,MAAA,IAAMC,QAAQ,GACZ,OAAOF,KAAK,KAAK,UAAU,GAAGA,KAAK,CAACC,eAAe,CAAC,GAAGD,KAAK,CAAA;AAE9D,MAAA,IAAIG,KAAK,CAACD,QAAQ,CAAC,EAAE;QACnBE,sBAAsB,CAACpB,GAAG,CAAC,CAAA;AAC7B,OAAC,MAAM;AACLqB,QAAAA,iBAAiB,CAACrB,GAAG,EAAEkB,QAAQ,CAAC,CAAA;AAClC,OAAA;AAEA,MAAA,OAAOA,QAAQ,CAAA;AACjB,KAAC,CAAC,CAAA;AAAA,GAAA,CAAA;AAEJ,EAAA,OAAO,CAAChB,WAAW,EAAEa,QAAQ,CAAC,CAAA;AAChC;;;;"}
1
+ {"version":3,"file":"useLocalStorage.js","sources":["../../../src/react-utils/useLocalStorage/useLocalStorage.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/no-local-storage */\n\nimport { useState } from \"react\";\n\nimport { isNil } from \"ramda\";\nimport { removeFromLocalStorage, setToLocalStorage } from \"utils\";\n\nconst getStorageValue = (key, defaultValue) => {\n try {\n const storedValue = localStorage.getItem(key);\n\n return storedValue ? JSON.parse(storedValue) : defaultValue;\n } catch (error) {\n logger.error(error);\n\n return defaultValue;\n }\n};\n\nconst useLocalStorage = (key, defaultValue) => {\n const [storedValue, setStoredValue] = useState(() =>\n getStorageValue(key, defaultValue)\n );\n\n const setValue = value =>\n setStoredValue(prevStoredValue => {\n const newValue =\n typeof value === \"function\" ? value(prevStoredValue) : value;\n\n if (isNil(newValue)) {\n removeFromLocalStorage(key);\n } else {\n setToLocalStorage(key, newValue);\n }\n\n return newValue;\n });\n\n return [storedValue, setValue];\n};\n\nexport default useLocalStorage;\n"],"names":["getStorageValue","key","defaultValue","storedValue","localStorage","getItem","JSON","parse","error","logger","useLocalStorage","_useState","useState","_useState2","_slicedToArray","setStoredValue","setValue","value","prevStoredValue","newValue","isNil","removeFromLocalStorage","setToLocalStorage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAI;AACF,IAAA,IAAMC,WAAW,GAAGC,YAAY,CAACC,OAAO,CAACJ,GAAG,CAAC,CAAA;IAE7C,OAAOE,WAAW,GAAGG,IAAI,CAACC,KAAK,CAACJ,WAAW,CAAC,GAAGD,YAAY,CAAA;GAC5D,CAAC,OAAOM,KAAK,EAAE;AACdC,IAAAA,MAAM,CAACD,KAAK,CAACA,KAAK,CAAC,CAAA;AAEnB,IAAA,OAAON,YAAY,CAAA;AACrB,GAAA;AACF,CAAC,CAAA;AAEKQ,IAAAA,eAAe,GAAG,SAAlBA,eAAeA,CAAIT,GAAG,EAAEC,YAAY,EAAK;EAC7C,IAAAS,SAAA,GAAsCC,QAAQ,CAAC,YAAA;AAAA,MAAA,OAC7CZ,eAAe,CAACC,GAAG,EAAEC,YAAY,CAAC,CAAA;AAAA,KACpC,CAAC;IAAAW,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAFMR,IAAAA,WAAW,GAAAU,UAAA,CAAA,CAAA,CAAA;AAAEE,IAAAA,cAAc,GAAAF,UAAA,CAAA,CAAA,CAAA,CAAA;AAIlC,EAAA,IAAMG,QAAQ,GAAG,SAAXA,QAAQA,CAAGC,KAAK,EAAA;AAAA,IAAA,OACpBF,cAAc,CAAC,UAAAG,eAAe,EAAI;AAChC,MAAA,IAAMC,QAAQ,GACZ,OAAOF,KAAK,KAAK,UAAU,GAAGA,KAAK,CAACC,eAAe,CAAC,GAAGD,KAAK,CAAA;AAE9D,MAAA,IAAIG,KAAK,CAACD,QAAQ,CAAC,EAAE;QACnBE,sBAAsB,CAACpB,GAAG,CAAC,CAAA;AAC7B,OAAC,MAAM;AACLqB,QAAAA,iBAAiB,CAACrB,GAAG,EAAEkB,QAAQ,CAAC,CAAA;AAClC,OAAA;AAEA,MAAA,OAAOA,QAAQ,CAAA;AACjB,KAAC,CAAC,CAAA;AAAA,GAAA,CAAA;AAEJ,EAAA,OAAO,CAAChB,WAAW,EAAEa,QAAQ,CAAC,CAAA;AAChC;;;;"}
@@ -1,6 +1,7 @@
1
1
  export { default } from './useMutationWithInvalidation.js';
2
- import '../../defineProperty-CEd-kZQW.js';
3
- import '../../objectWithoutProperties-B90Wg9LD.js';
2
+ import '../../defineProperty-D_V-nTlo.js';
3
+ import '../../typeof-D-UKOauR.js';
4
+ import '../../objectWithoutProperties-PcUN5OqL.js';
4
5
  import '@tanstack/react-query';
5
6
  import 'ramda';
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,7 +1,8 @@
1
- import { _ as _defineProperty } from '../../defineProperty-CEd-kZQW.js';
2
- import { _ as _objectWithoutProperties } from '../../objectWithoutProperties-B90Wg9LD.js';
1
+ import { _ as _defineProperty } from '../../defineProperty-D_V-nTlo.js';
2
+ import { _ as _objectWithoutProperties } from '../../objectWithoutProperties-PcUN5OqL.js';
3
3
  import { useQueryClient, useMutation } from '@tanstack/react-query';
4
4
  import { type } from 'ramda';
5
+ import '../../typeof-D-UKOauR.js';
5
6
 
6
7
  var _excluded = ["keysToInvalidate"],
7
8
  _excluded2 = ["onSuccess"];
@@ -30,7 +31,7 @@ var useMutationWithInvalidation = function useMutationWithInvalidation(mutationF
30
31
  });
31
32
  }
32
33
  });
33
- _onSuccess === null || _onSuccess === void 0 ? void 0 : _onSuccess(data, variables, context);
34
+ _onSuccess === null || _onSuccess === void 0 || _onSuccess(data, variables, context);
34
35
  }
35
36
  }, otherOptions));
36
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useMutationWithInvalidation.js","sources":["../../../src/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js"],"sourcesContent":["import { useQueryClient, useMutation } from \"@tanstack/react-query\";\nimport { type } from \"ramda\";\n\nconst useMutationWithInvalidation = (\n mutationFn,\n { keysToInvalidate, ...options }\n) => {\n const queryClient = useQueryClient();\n const { onSuccess, ...otherOptions } = options;\n\n return useMutation({\n mutationFn,\n onSuccess: (data, variables, context) => {\n keysToInvalidate.forEach(key => {\n const result =\n type(key) === \"Function\" ? key(data, variables, context) : key;\n\n if (type(result) === \"Object\") {\n queryClient.invalidateQueries(result);\n } else if (type(result) === \"String\") {\n queryClient.invalidateQueries({ queryKey: [result] });\n } else {\n queryClient.invalidateQueries({ queryKey: result });\n }\n });\n\n onSuccess?.(data, variables, context);\n },\n\n ...otherOptions,\n });\n};\n\nexport default useMutationWithInvalidation;\n"],"names":["useMutationWithInvalidation","mutationFn","_ref","keysToInvalidate","options","_objectWithoutProperties","_excluded","queryClient","useQueryClient","onSuccess","otherOptions","_excluded2","useMutation","_objectSpread","data","variables","context","forEach","key","result","type","invalidateQueries","queryKey"],"mappings":";;;;;;;;;AAGMA,IAAAA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAC/BC,UAAU,EAAAC,IAAA,EAEP;AAAA,EAAA,IADDC,gBAAgB,GAAAD,IAAA,CAAhBC,gBAAgB;AAAKC,IAAAA,OAAO,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA,CAAA;AAE9B,EAAA,IAAMC,WAAW,GAAGC,cAAc,EAAE,CAAA;AACpC,EAAA,IAAQC,UAAS,GAAsBL,OAAO,CAAtCK,SAAS;AAAKC,IAAAA,YAAY,GAAAL,wBAAA,CAAKD,OAAO,EAAAO,UAAA,CAAA,CAAA;EAE9C,OAAOC,WAAW,CAAAC,aAAA,CAAA;AAChBZ,IAAAA,UAAU,EAAVA,UAAU;IACVQ,SAAS,EAAE,SAAXA,SAASA,CAAGK,IAAI,EAAEC,SAAS,EAAEC,OAAO,EAAK;AACvCb,MAAAA,gBAAgB,CAACc,OAAO,CAAC,UAAAC,GAAG,EAAI;AAC9B,QAAA,IAAMC,MAAM,GACVC,IAAI,CAACF,GAAG,CAAC,KAAK,UAAU,GAAGA,GAAG,CAACJ,IAAI,EAAEC,SAAS,EAAEC,OAAO,CAAC,GAAGE,GAAG,CAAA;AAEhE,QAAA,IAAIE,IAAI,CAACD,MAAM,CAAC,KAAK,QAAQ,EAAE;AAC7BZ,UAAAA,WAAW,CAACc,iBAAiB,CAACF,MAAM,CAAC,CAAA;SACtC,MAAM,IAAIC,IAAI,CAACD,MAAM,CAAC,KAAK,QAAQ,EAAE;UACpCZ,WAAW,CAACc,iBAAiB,CAAC;YAAEC,QAAQ,EAAE,CAACH,MAAM,CAAA;AAAE,WAAC,CAAC,CAAA;AACvD,SAAC,MAAM;UACLZ,WAAW,CAACc,iBAAiB,CAAC;AAAEC,YAAAA,QAAQ,EAAEH,MAAAA;AAAO,WAAC,CAAC,CAAA;AACrD,SAAA;AACF,OAAC,CAAC,CAAA;MAEFV,UAAS,KAAA,IAAA,IAATA,UAAS,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAATA,UAAS,CAAGK,IAAI,EAAEC,SAAS,EAAEC,OAAO,CAAC,CAAA;AACvC,KAAA;GAEGN,EAAAA,YAAY,CAChB,CAAC,CAAA;AACJ;;;;"}
1
+ {"version":3,"file":"useMutationWithInvalidation.js","sources":["../../../src/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js"],"sourcesContent":["import { useQueryClient, useMutation } from \"@tanstack/react-query\";\nimport { type } from \"ramda\";\n\nconst useMutationWithInvalidation = (\n mutationFn,\n { keysToInvalidate, ...options }\n) => {\n const queryClient = useQueryClient();\n const { onSuccess, ...otherOptions } = options;\n\n return useMutation({\n mutationFn,\n onSuccess: (data, variables, context) => {\n keysToInvalidate.forEach(key => {\n const result =\n type(key) === \"Function\" ? key(data, variables, context) : key;\n\n if (type(result) === \"Object\") {\n queryClient.invalidateQueries(result);\n } else if (type(result) === \"String\") {\n queryClient.invalidateQueries({ queryKey: [result] });\n } else {\n queryClient.invalidateQueries({ queryKey: result });\n }\n });\n\n onSuccess?.(data, variables, context);\n },\n\n ...otherOptions,\n });\n};\n\nexport default useMutationWithInvalidation;\n"],"names":["useMutationWithInvalidation","mutationFn","_ref","keysToInvalidate","options","_objectWithoutProperties","_excluded","queryClient","useQueryClient","onSuccess","otherOptions","_excluded2","useMutation","_objectSpread","data","variables","context","forEach","key","result","type","invalidateQueries","queryKey"],"mappings":";;;;;;;;;;AAGMA,IAAAA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAC/BC,UAAU,EAAAC,IAAA,EAEP;AAAA,EAAA,IADDC,gBAAgB,GAAAD,IAAA,CAAhBC,gBAAgB;AAAKC,IAAAA,OAAO,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA,CAAA;AAE9B,EAAA,IAAMC,WAAW,GAAGC,cAAc,EAAE,CAAA;AACpC,EAAA,IAAQC,UAAS,GAAsBL,OAAO,CAAtCK,SAAS;AAAKC,IAAAA,YAAY,GAAAL,wBAAA,CAAKD,OAAO,EAAAO,UAAA,CAAA,CAAA;EAE9C,OAAOC,WAAW,CAAAC,aAAA,CAAA;AAChBZ,IAAAA,UAAU,EAAVA,UAAU;IACVQ,SAAS,EAAE,SAAXA,SAASA,CAAGK,IAAI,EAAEC,SAAS,EAAEC,OAAO,EAAK;AACvCb,MAAAA,gBAAgB,CAACc,OAAO,CAAC,UAAAC,GAAG,EAAI;AAC9B,QAAA,IAAMC,MAAM,GACVC,IAAI,CAACF,GAAG,CAAC,KAAK,UAAU,GAAGA,GAAG,CAACJ,IAAI,EAAEC,SAAS,EAAEC,OAAO,CAAC,GAAGE,GAAG,CAAA;AAEhE,QAAA,IAAIE,IAAI,CAACD,MAAM,CAAC,KAAK,QAAQ,EAAE;AAC7BZ,UAAAA,WAAW,CAACc,iBAAiB,CAACF,MAAM,CAAC,CAAA;SACtC,MAAM,IAAIC,IAAI,CAACD,MAAM,CAAC,KAAK,QAAQ,EAAE;UACpCZ,WAAW,CAACc,iBAAiB,CAAC;YAAEC,QAAQ,EAAE,CAACH,MAAM,CAAA;AAAE,WAAC,CAAC,CAAA;AACvD,SAAC,MAAM;UACLZ,WAAW,CAACc,iBAAiB,CAAC;AAAEC,YAAAA,QAAQ,EAAEH,MAAAA;AAAO,WAAC,CAAC,CAAA;AACrD,SAAA;AACF,OAAC,CAAC,CAAA;MAEFV,UAAS,KAAA,IAAA,IAATA,UAAS,KAAA,KAAA,CAAA,IAATA,UAAS,CAAGK,IAAI,EAAEC,SAAS,EAAEC,OAAO,CAAC,CAAA;AACvC,KAAA;GAEGN,EAAAA,YAAY,CAChB,CAAC,CAAA;AACJ;;;;"}
@@ -1,14 +1,15 @@
1
1
  export { default } from './usePersistedQuery.js';
2
- import '../../defineProperty-CEd-kZQW.js';
2
+ import '../../defineProperty-D_V-nTlo.js';
3
+ import '../../typeof-D-UKOauR.js';
3
4
  import 'react';
4
5
  import '@tanstack/react-query';
5
6
  import 'ramda';
6
7
  import '../constants/constants.js';
7
8
  import '../../utils/general.js';
8
- import '../../objectWithoutProperties-B90Wg9LD.js';
9
- import '../../slicedToArray-B_J-CC8-.js';
10
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
11
- import '../../index-CRoDfiJc.js';
9
+ import '../../objectWithoutProperties-PcUN5OqL.js';
10
+ import '../../slicedToArray-BWOQ_OdI.js';
11
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
12
+ import '../../index-D_s_toMy.js';
12
13
  import '../../_commonjsHelpers-B85MJLTf.js';
13
14
  import 'i18next';
14
15
  import '@bigbinary/neeto-cist';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -1,13 +1,14 @@
1
- import { _ as _defineProperty } from '../../defineProperty-CEd-kZQW.js';
1
+ import { _ as _defineProperty } from '../../defineProperty-D_V-nTlo.js';
2
2
  import { useEffect } from 'react';
3
3
  import { useQuery } from '@tanstack/react-query';
4
4
  import { isNil } from 'ramda';
5
5
  import { QUERY_CACHE_NAME_SPACE } from '../constants/constants.js';
6
6
  import { setToLocalStorage, getFromLocalStorage } from '../../utils/general.js';
7
- import '../../objectWithoutProperties-B90Wg9LD.js';
8
- import '../../slicedToArray-B_J-CC8-.js';
9
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
10
- import '../../index-CRoDfiJc.js';
7
+ import '../../typeof-D-UKOauR.js';
8
+ import '../../objectWithoutProperties-PcUN5OqL.js';
9
+ import '../../slicedToArray-BWOQ_OdI.js';
10
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
11
+ import '../../index-D_s_toMy.js';
11
12
  import '../../_commonjsHelpers-B85MJLTf.js';
12
13
  import 'i18next';
13
14
  import '@bigbinary/neeto-cist';
@@ -1 +1 @@
1
- {"version":3,"file":"usePersistedQuery.js","sources":["../../../src/react-utils/usePersistedQuery/usePersistedQuery.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { useQuery } from \"@tanstack/react-query\";\nimport { isNil } from \"ramda\";\nimport { QUERY_CACHE_NAME_SPACE } from \"react-utils/constants\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\n\nconst localStorageQueryCache = {\n set: (key, data) => {\n const cache = localStorageQueryCache.getAll();\n const newCache = { ...cache, [key]: { data, modifiedAt: Date.now() } };\n setToLocalStorage(QUERY_CACHE_NAME_SPACE, newCache);\n },\n getAll: () => {\n const cache = getFromLocalStorage(QUERY_CACHE_NAME_SPACE);\n if (!cache) return {};\n\n return cache;\n },\n get: key => localStorageQueryCache.getAll()[key],\n};\n\nconst isOutdated = (localCache, staleTime) => {\n if (isNil(localCache)) return true;\n\n if (isNil(staleTime)) return false;\n\n return localCache.modifiedAt <= Date.now() - staleTime;\n};\n\nconst usePersistedQuery = (queryKey, fetch, options) => {\n const queryResult = useQuery({\n queryKey,\n queryFn: fetch,\n ...options,\n });\n const localCache = localStorageQueryCache.get(queryKey);\n\n useEffect(() => {\n if (!queryResult.isSuccess) return;\n localStorageQueryCache.set(queryKey, queryResult.data);\n }, [queryKey, queryResult.data, queryResult.isSuccess]);\n\n if (isOutdated(localCache, options?.staleTime)) {\n return { ...queryResult, isFreshLoading: queryResult.isLoading };\n }\n\n return {\n ...queryResult,\n data: queryResult.data || localCache.data,\n isFreshLoading: false,\n };\n};\n\nusePersistedQuery.getCache = localStorageQueryCache.get;\n\nexport default usePersistedQuery;\n"],"names":["localStorageQueryCache","set","key","data","cache","getAll","newCache","_objectSpread","_defineProperty","modifiedAt","Date","now","setToLocalStorage","QUERY_CACHE_NAME_SPACE","getFromLocalStorage","get","isOutdated","localCache","staleTime","isNil","usePersistedQuery","queryKey","fetch","options","queryResult","useQuery","queryFn","useEffect","isSuccess","isFreshLoading","isLoading","getCache"],"mappings":";;;;;;;;;;;;;;;;;;AAOA,IAAMA,sBAAsB,GAAG;AAC7BC,EAAAA,GAAG,EAAE,SAALA,GAAGA,CAAGC,GAAG,EAAEC,IAAI,EAAK;AAClB,IAAA,IAAMC,KAAK,GAAGJ,sBAAsB,CAACK,MAAM,EAAE,CAAA;IAC7C,IAAMC,QAAQ,GAAAC,aAAA,CAAAA,aAAA,CAAQH,EAAAA,EAAAA,KAAK,CAAAI,EAAAA,EAAAA,EAAAA,eAAA,CAAGN,EAAAA,EAAAA,GAAG,EAAG;AAAEC,MAAAA,IAAI,EAAJA,IAAI;AAAEM,MAAAA,UAAU,EAAEC,IAAI,CAACC,GAAG,EAAC;AAAE,KAAC,CAAE,CAAA,CAAA;AACtEC,IAAAA,iBAAiB,C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C,EAAE,CAACkB,QAAQ,EAAEG,WAAW,CAACrB,IAAI,EAAEqB,WAAW,CAACI,SAAS,CAAC,CAAC,CAAA;AAEvD,EAAA,IAAIZ,UAAU,CAACC,UAAU,EAAEM,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAPA,OAAO,CAAEL,SAAS,CAAC,EAAE;AAC9C,IAAA,OAAAX,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAYiB,WAAW,CAAA,EAAA,EAAA,EAAA;MAAEK,cAAc,EAAEL,WAAW,CAACM,SAAAA;AAAS,KAAA,CAAA,CAAA;AAChE,GAAA;AAEA,EAAA,OAAAvB,aAAA,CAAAA,aAAA,CAAA,EAAA,EACKiB,WAAW,CAAA,EAAA,EAAA,EAAA;AACdrB,IAAAA,IAAI,EAAEqB,WAAW,CAACrB,IAAI,IAAIc,UAAU,CAACd,IAAI;AACzC0B,IAAAA,cAAc,EAAE,KAAA;AAAK,GAAA,CAAA,CAAA;AAEzB,EAAC;AAEDT,iBAAiB,CAACW,QAAQ,GAAG/B,sBAAsB,CAACe,GAAG;;;;"}
1
+ {"version":3,"file":"usePersistedQuery.js","sources":["../../../src/react-utils/usePersistedQuery/usePersistedQuery.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { useQuery } from \"@tanstack/react-query\";\nimport { isNil } from \"ramda\";\nimport { QUERY_CACHE_NAME_SPACE } from \"react-utils/constants\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\n\nconst localStorageQueryCache = {\n set: (key, data) => {\n const cache = localStorageQueryCache.getAll();\n const newCache = { ...cache, [key]: { data, modifiedAt: Date.now() } };\n setToLocalStorage(QUERY_CACHE_NAME_SPACE, newCache);\n },\n getAll: () => {\n const cache = getFromLocalStorage(QUERY_CACHE_NAME_SPACE);\n if (!cache) return {};\n\n return cache;\n },\n get: key => localStorageQueryCache.getAll()[key],\n};\n\nconst isOutdated = (localCache, staleTime) => {\n if (isNil(localCache)) return true;\n\n if (isNil(staleTime)) return false;\n\n return localCache.modifiedAt <= Date.now() - staleTime;\n};\n\nconst usePersistedQuery = (queryKey, fetch, options) => {\n const queryResult = useQuery({\n queryKey,\n queryFn: fetch,\n ...options,\n });\n const localCache = localStorageQueryCache.get(queryKey);\n\n useEffect(() => {\n if (!queryResult.isSuccess) return;\n localStorageQueryCache.set(queryKey, queryResult.data);\n }, [queryKey, queryResult.data, queryResult.isSuccess]);\n\n if (isOutdated(localCache, options?.staleTime)) {\n return { ...queryResult, isFreshLoading: queryResult.isLoading };\n }\n\n return {\n ...queryResult,\n data: queryResult.data || localCache.data,\n isFreshLoading: false,\n };\n};\n\nusePersistedQuery.getCache = localStorageQueryCache.get;\n\nexport default usePersistedQuery;\n"],"names":["localStorageQueryCache","set","key","data","cache","getAll","newCache","_objectSpread","_defineProperty","modifiedAt","Date","now","setToLocalStorage","QUERY_CACHE_NAME_SPACE","getFromLocalStorage","get","isOutdated","localCache","staleTime","isNil","usePersistedQuery","queryKey","fetch","options","queryResult","useQuery","queryFn","useEffect","isSuccess","isFreshLoading","isLoading","getCache"],"mappings":";;;;;;;;;;;;;;;;;;;AAOA,IAAMA,sBAAsB,GAAG;AAC7BC,EAAAA,GAAG,EAAE,SAALA,GAAGA,CAAGC,GAAG,EAAEC,IAAI,EAAK;AAClB,IAAA,IAAMC,KAAK,GAAGJ,sBAAsB,CAACK,MAAM,EAAE,CAAA;IAC7C,IAAMC,QAAQ,GAAAC,aAAA,CAAAA,aAAA,CAAQH,EAAAA,EAAAA,KAAK,CAAAI,EAAAA,EAAAA,EAAAA,eAAA,CAAGN,EAAAA,EAAAA,GAAG,EAAG;AAAEC,MAAAA,IAAI,EAAJA,IAAI;AAAEM,MAAAA,UAAU,EAAEC,IAAI,CAACC,GAAG,EAAC;AAAE,KAAC,CAAE,CAAA,CAAA;AACtEC,IAAAA,iBAAiB,CAACC,sBAAsB,EAAEP,QAAQ,CAAC,CAAA;GACpD;AACDD,EAAAA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WAAW,CAACI,SAAS,CAAC,CAAC,CAAA;AAEvD,EAAA,IAAIZ,UAAU,CAACC,UAAU,EAAEM,OAAO,KAAA,IAAA,IAAPA,OAAO,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAPA,OAAO,CAAEL,SAAS,CAAC,EAAE;AAC9C,IAAA,OAAAX,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAYiB,WAAW,CAAA,EAAA,EAAA,EAAA;MAAEK,cAAc,EAAEL,WAAW,CAACM,SAAAA;AAAS,KAAA,CAAA,CAAA;AAChE,GAAA;AAEA,EAAA,OAAAvB,aAAA,CAAAA,aAAA,CAAA,EAAA,EACKiB,WAAW,CAAA,EAAA,EAAA,EAAA;AACdrB,IAAAA,IAAI,EAAEqB,WAAW,CAACrB,IAAI,IAAIc,UAAU,CAACd,IAAI;AACzC0B,IAAAA,cAAc,EAAE,KAAA;AAAK,GAAA,CAAA,CAAA;AAEzB,EAAC;AAEDT,iBAAiB,CAACW,QAAQ,GAAG/B,sBAAsB,CAACe,GAAG;;;;"}
@@ -1,12 +1,13 @@
1
1
  export { default } from './useQueryParams.js';
2
2
  import 'react-router-dom';
3
3
  import '../../utils/general.js';
4
- import '../../objectWithoutProperties-B90Wg9LD.js';
5
- import '../../slicedToArray-B_J-CC8-.js';
6
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
7
- import '../../index-CRoDfiJc.js';
4
+ import '../../objectWithoutProperties-PcUN5OqL.js';
5
+ import '../../slicedToArray-BWOQ_OdI.js';
6
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
7
+ import '../../index-D_s_toMy.js';
8
8
  import '../../_commonjsHelpers-B85MJLTf.js';
9
- import '../../defineProperty-CEd-kZQW.js';
9
+ import '../../defineProperty-D_V-nTlo.js';
10
+ import '../../typeof-D-UKOauR.js';
10
11
  import 'i18next';
11
12
  import '@bigbinary/neeto-cist';
12
13
  import '@bigbinary/neetoui/Toastr';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -1,11 +1,12 @@
1
1
  import { useLocation } from 'react-router-dom';
2
2
  import { parseQueryParams } from '../../utils/general.js';
3
- import '../../objectWithoutProperties-B90Wg9LD.js';
4
- import '../../slicedToArray-B_J-CC8-.js';
5
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
6
- import '../../index-CRoDfiJc.js';
3
+ import '../../objectWithoutProperties-PcUN5OqL.js';
4
+ import '../../slicedToArray-BWOQ_OdI.js';
5
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
6
+ import '../../index-D_s_toMy.js';
7
7
  import '../../_commonjsHelpers-B85MJLTf.js';
8
- import '../../defineProperty-CEd-kZQW.js';
8
+ import '../../defineProperty-D_V-nTlo.js';
9
+ import '../../typeof-D-UKOauR.js';
9
10
  import 'i18next';
10
11
  import '@bigbinary/neeto-cist';
11
12
  import '@bigbinary/neetoui/Toastr';
@@ -1 +1 @@
1
- {"version":3,"file":"useQueryParams.js","sources":["../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location.search, options);\n};\n\nexport default useQueryParams;\n"],"names":["useQueryParams","options","location","useLocation","parseQueryParams","search"],"mappings":";;;;;;;;;;;;;;AAGA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,OAAO,EAAI;AAChC,EAAA,IAAMC,QAAQ,GAAGC,WAAW,EAAE,CAAA;AAE9B,EAAA,OAAOC,gBAAgB,CAACF,QAAQ,CAACG,MAAM,EAAEJ,OAAO,CAAC,CAAA;AACnD;;;;"}
1
+ {"version":3,"file":"useQueryParams.js","sources":["../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location.search, options);\n};\n\nexport default useQueryParams;\n"],"names":["useQueryParams","options","location","useLocation","parseQueryParams","search"],"mappings":";;;;;;;;;;;;;;;AAGA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,OAAO,EAAI;AAChC,EAAA,IAAMC,QAAQ,GAAGC,WAAW,EAAE,CAAA;AAE9B,EAAA,OAAOC,gBAAgB,CAACF,QAAQ,CAACG,MAAM,EAAEJ,OAAO,CAAC,CAAA;AACnD;;;;"}
@@ -1,14 +1,15 @@
1
1
  export { default, useNavigationCheckpoints, useRemoveNavigationCheckpoint } from './useRegisterNavigationCheckpoint.js';
2
- import '../../defineProperty-CEd-kZQW.js';
2
+ import '../../defineProperty-D_V-nTlo.js';
3
+ import '../../typeof-D-UKOauR.js';
3
4
  import 'react';
4
5
  import 'ramda';
5
6
  import '../constants/constants.js';
6
7
  import '../withImmutableActions/withImmutableActions.js';
7
8
  import '../../utils/general.js';
8
- import '../../objectWithoutProperties-B90Wg9LD.js';
9
- import '../../slicedToArray-B_J-CC8-.js';
10
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
11
- import '../../index-CRoDfiJc.js';
9
+ import '../../objectWithoutProperties-PcUN5OqL.js';
10
+ import '../../slicedToArray-BWOQ_OdI.js';
11
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
12
+ import '../../index-D_s_toMy.js';
12
13
  import '../../_commonjsHelpers-B85MJLTf.js';
13
14
  import 'i18next';
14
15
  import '@bigbinary/neeto-cist';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty } from '../../defineProperty-CEd-kZQW.js';
1
+ import { _ as _defineProperty } from '../../defineProperty-D_V-nTlo.js';
2
2
  import { useEffect } from 'react';
3
3
  import { mergeDeepLeft, dissoc, prop, pick } from 'ramda';
4
4
  import { STORAGE_KEY } from '../constants/constants.js';
@@ -6,10 +6,11 @@ import withImmutableActions from '../withImmutableActions/withImmutableActions.j
6
6
  import { getFromLocalStorage, setToLocalStorage } from '../../utils/general.js';
7
7
  import { create } from 'zustand';
8
8
  import { shallow } from 'zustand/shallow';
9
- import '../../objectWithoutProperties-B90Wg9LD.js';
10
- import '../../slicedToArray-B_J-CC8-.js';
11
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
12
- import '../../index-CRoDfiJc.js';
9
+ import '../../typeof-D-UKOauR.js';
10
+ import '../../objectWithoutProperties-PcUN5OqL.js';
11
+ import '../../slicedToArray-BWOQ_OdI.js';
12
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
13
+ import '../../index-D_s_toMy.js';
13
14
  import '../../_commonjsHelpers-B85MJLTf.js';
14
15
  import 'i18next';
15
16
  import '@bigbinary/neeto-cist';
@@ -1 +1 @@
1
- {"version":3,"file":"useRegisterNavigationCheckpoint.js","sources":["../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop, dissoc } from \"ramda\";\nimport { STORAGE_KEY } from \"react-utils/constants\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\nimport { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\nconst getLocalStorageData = () => getFromLocalStorage(STORAGE_KEY) || {};\n\nconst setLocalStorageData = data => setToLocalStorage(STORAGE_KEY, data);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n removeCheckpoint: key =>\n set(state => ({ checkpoints: dissoc(key, state.checkpoints) })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search,\n persistInLocalStorage = false\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n if (persistInLocalStorage) {\n const localStorageData = getLocalStorageData();\n setLocalStorageData({ ...localStorageData, [key]: path });\n }\n }, [key, path, persistInLocalStorage]);\n};\n\nexport const useNavigationCheckpoints = (...keys) => {\n const getCheckpoints = useCheckpointStore(\n store => pick(keys, store.checkpoints),\n shallow\n );\n\n const localStorageData = getLocalStorageData();\n const localStorageCheckpoints = pick(keys, localStorageData);\n\n return { ...getCheckpoints, ...localStorageCheckpoints };\n};\n\nexport const useRemoveNavigationCheckpoint = () => {\n const removeCheckpoint = useCheckpointStore(prop(\"removeCheckpoint\"));\n\n return key => {\n removeCheckpoint(key);\n const localStorageData = getLocalStorageData();\n setLocalStorageData(dissoc(key, localStorageData));\n };\n};\n\nexport default useRegisterNavigationCheckpoint;\n"],"names":["getLocalStorageData","getFromLocalStorage","STORAGE_KEY","setLocalStorageData","data","setToLocalStorage","useCheckpointStore","create","withImmutableActions","set","checkpoints","setCheckpoint","key","path","mergeDeepLeft","_defineProperty","removeCheckpoint","state","dissoc","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","persistInLocalStorage","prop","useEffect","localStorageData","_objectSpread","useNavigationCheckpoints","_len","keys","Array","_key","getCheckpoints","store","pick","shallow","localStorageCheckpoints","useRemoveNavigationCheckpoint"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAA;AAAA,EAAA,OAASC,mBAAmB,CAACC,WAAW,CAAC,IAAI,EAAE,CAAA;AAAA,CAAA,CAAA;AAExE,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAGC,IA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AA6B,GAAG,SAAhCA,6BAA6BA,GAAS;EACjD,IAAM1B,gBAAgB,GAAGV,kBAAkB,CAACsB,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAA;EAErE,OAAO,UAAAhB,GAAG,EAAI;IACZI,gBAAgB,CAACJ,GAAG,CAAC,CAAA;AACrB,IAAA,IAAMkB,gBAAgB,GAAG9B,mBAAmB,EAAE,CAAA;AAC9CG,IAAAA,mBAAmB,CAACe,MAAM,CAACN,GAAG,EAAEkB,gBAAgB,CAAC,CAAC,CAAA;GACnD,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"useRegisterNavigationCheckpoint.js","sources":["../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop, dissoc } from \"ramda\";\nimport { STORAGE_KEY } from \"react-utils/constants\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { getFromLocalStorage, setToLocalStorage } from \"utils/general\";\nimport { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\nconst getLocalStorageData = () => getFromLocalStorage(STORAGE_KEY) || {};\n\nconst setLocalStorageData = data => setToLocalStorage(STORAGE_KEY, data);\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n removeCheckpoint: key =>\n set(state => ({ checkpoints: dissoc(key, state.checkpoints) })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search,\n persistInLocalStorage = false\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n if (persistInLocalStorage) {\n const localStorageData = getLocalStorageData();\n setLocalStorageData({ ...localStorageData, [key]: path });\n }\n }, [key, path, persistInLocalStorage]);\n};\n\nexport const useNavigationCheckpoints = (...keys) => {\n const getCheckpoints = useCheckpointStore(\n store => pick(keys, store.checkpoints),\n shallow\n );\n\n const localStorageData = getLocalStorageData();\n const localStorageCheckpoints = pick(keys, localStorageData);\n\n return { ...getCheckpoints, ...localStorageCheckpoints };\n};\n\nexport const useRemoveNavigationCheckpoint = () => {\n const removeCheckpoint = useCheckpointStore(prop(\"removeCheckpoint\"));\n\n return key => {\n removeCheckpoint(key);\n const localStorageData = getLocalStorageData();\n setLocalStorageData(dissoc(key, localStorageData));\n };\n};\n\nexport default useRegisterNavigationCheckpoint;\n"],"names":["getLocalStorageData","getFromLocalStorage","STORAGE_KEY","setLocalStorageData","data","setToLocalStorage","useCheckpointStore","create","withImmutableActions","set","checkpoints","setCheckpoint","key","path","mergeDeepLeft","_defineProperty","removeCheckpoint","state","dissoc","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","persistInLocalStorage","prop","useEffect","localStorageData","_objectSpread","useNavigationCheckpoints","_len","keys","Array","_key","getCheckpoints","store","pick","shallow","localStorageCheckpoints","useRemoveNavigationCheckpoint"],"mappings":";;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,GAAA;AAAA,EAAA,OAASC,mBAAmB,CAACC,WAAW,CAAC,IAAI,EAAE,CAAA;AAAA,CAAA,CAAA;AAExE,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAGC,IAAI,EAAA;AAAA,EAAA,OAAIC,iBAAiB,CAACH,WAAW,EAAEE,IAAI,CAAC,CAAA;AAAA,CAAA,CAAA;;AAExE;AACA,IAAME,kBAAkB,GAAGC,MAAM,CAC/BC,oBAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;IAC3BC,WAAW,EAAE,EAAE;AACfC,IAAAA,aAAa,EAAE,SAAfA,aAAaA,CAAGC,GAAG,EAAEC,IAAI,EAAA;MAAA,OACvBJ,GAAG,CAACK,aAAa,CAAC;AAAEJ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A;GACnD,CAAA;AACH;;;;"}
@@ -1,5 +1,5 @@
1
1
  export { default } from './useStateWithDependency.js';
2
- import '../../slicedToArray-B_J-CC8-.js';
3
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
2
+ import '../../slicedToArray-BWOQ_OdI.js';
3
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
4
4
  import 'react';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import { _ as _slicedToArray } from '../../slicedToArray-B_J-CC8-.js';
1
+ import { _ as _slicedToArray } from '../../slicedToArray-BWOQ_OdI.js';
2
2
  import { useState, useEffect } from 'react';
3
- import '../../unsupportedIterableToArray-wRn9bJ2J.js';
3
+ import '../../unsupportedIterableToArray-Dqz8Y8_I.js';
4
4
 
5
5
  var useStateWithDependency = function useStateWithDependency(defaultValue) {
6
6
  var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [defaultValue];
@@ -1,5 +1,6 @@
1
1
  export { default } from './withTitle.js';
2
- import '../../defineProperty-CEd-kZQW.js';
2
+ import '../../defineProperty-D_V-nTlo.js';
3
+ import '../../typeof-D-UKOauR.js';
3
4
  import 'react-helmet';
4
5
  import 'react/jsx-runtime';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,6 +1,7 @@
1
- import { _ as _defineProperty } from '../../defineProperty-CEd-kZQW.js';
1
+ import { _ as _defineProperty } from '../../defineProperty-D_V-nTlo.js';
2
2
  import { Helmet } from 'react-helmet';
3
3
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
4
+ import '../../typeof-D-UKOauR.js';
4
5
 
5
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1 +1 @@
1
- {"version":3,"file":"withTitle.js","sources":["../../../src/react-utils/withTitle/withTitle.jsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport { Helmet } from \"react-helmet\";\n\nconst withTitle =\n (Component, title = undefined) =>\n props => {\n const pageTitle = title\n ? `${title} | ${globalProps.appName}`\n : globalProps.appName;\n\n return (\n <>\n <Helmet>\n <title>{pageTitle}</title>\n </Helmet>\n <Component {...props} />\n </>\n );\n };\n\nexport default withTitle;\n"],"names":["withTitle","Component","title","arguments","length","undefined","props","pageTitle","concat","globalProps","appName","_jsxs","_Fragment","children","_jsx","Helmet","_objectSpread"],"mappings":";;;;;;AAGA,IAAMA,SAAS,GACb,SADIA,SAASA,CACZC,SAAS,EAAA;AAAA,EAAA,IAAEC,KAAK,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAGE,SAAS,CAAA;EAAA,OAC7B,UAAAC,KAAK,EAAI;AACP,IAAA,IAAMC,SAAS,GAAGL,KAAK,GAAAM,EAAAA,CAAAA,MAAA,CAChBN,KAAK,EAAA,KAAA,CAAA,CAAAM,MAAA,CAAMC,WAAW,CAACC,OAAO,CACjCD,GAAAA,WAAW,CAACC,OAAO,CAAA;IAEvB,oBACEC,IAAA,CAAAC,QAAA,EAAA;MAAAC,QAAA,EAAA,cACEC,GAAA,CAACC,MAAM,EAAA;AAAAF,QAAAA,QAAA,eACLC,GAAA,CAAA,OAAA,EAAA;AAAAD,UAAAA,QAAA,EAAQN,SAAAA;SAAiB,CAAA;OACnB,CAAC,eACTO,GAAA,CAACb,SAAS,EAAAe,aAAA,CAAA,EAAA,EAAKV,KAAK,CAAG,CAAC,CAAA;AAAA,KACxB,CAAC,CAAA;GAEN,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"withTitle.js","sources":["../../../src/react-utils/withTitle/withTitle.jsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport { Helmet } from \"react-helmet\";\n\nconst withTitle =\n (Component, title = undefined) =>\n props => {\n const pageTitle = title\n ? `${title} | ${globalProps.appName}`\n : globalProps.appName;\n\n return (\n <>\n <Helmet>\n <title>{pageTitle}</title>\n </Helmet>\n <Component {...props} />\n </>\n );\n };\n\nexport default withTitle;\n"],"names":["withTitle","Component","title","arguments","length","undefined","props","pageTitle","concat","globalProps","appName","_jsxs","_Fragment","children","_jsx","Helmet","_objectSpread"],"mappings":";;;;;;;AAGA,IAAMA,SAAS,GACb,SADIA,SAASA,CACZC,SAAS,EAAA;AAAA,EAAA,IAAEC,KAAK,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAGE,SAAS,CAAA;EAAA,OAC7B,UAAAC,KAAK,EAAI;AACP,IAAA,IAAMC,SAAS,GAAGL,KAAK,GAAAM,EAAAA,CAAAA,MAAA,CAChBN,KAAK,EAAA,KAAA,CAAA,CAAAM,MAAA,CAAMC,WAAW,CAACC,OAAO,CACjCD,GAAAA,WAAW,CAACC,OAAO,CAAA;IAEvB,oBACEC,IAAA,CAAAC,QAAA,EAAA;MAAAC,QAAA,EAAA,cACEC,GAAA,CAACC,MAAM,EAAA;AAAAF,QAAAA,QAAA,eACLC,GAAA,CAAA,OAAA,EAAA;AAAAD,UAAAA,QAAA,EAAQN,SAAAA;SAAiB,CAAA;OACnB,CAAC,eACTO,GAAA,CAACb,SAAS,EAAAe,aAAA,CAAA,EAAA,EAAKV,KAAK,CAAG,CAAC,CAAA;AAAA,KACxB,CAAC,CAAA;GAEN,CAAA;AAAA;;;;"}
@@ -0,0 +1,44 @@
1
+ import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-Dqz8Y8_I.js';
2
+
3
+ function _arrayWithHoles(r) {
4
+ if (Array.isArray(r)) return r;
5
+ }
6
+
7
+ function _iterableToArrayLimit(r, l) {
8
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
9
+ if (null != t) {
10
+ var e,
11
+ n,
12
+ i,
13
+ u,
14
+ a = [],
15
+ f = !0,
16
+ o = !1;
17
+ try {
18
+ if (i = (t = t.call(r)).next, 0 === l) {
19
+ if (Object(t) !== t) return;
20
+ f = !1;
21
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
22
+ } catch (r) {
23
+ o = !0, n = r;
24
+ } finally {
25
+ try {
26
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
27
+ } finally {
28
+ if (o) throw n;
29
+ }
30
+ }
31
+ return a;
32
+ }
33
+ }
34
+
35
+ function _nonIterableRest() {
36
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
37
+ }
38
+
39
+ function _slicedToArray(r, e) {
40
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
41
+ }
42
+
43
+ export { _slicedToArray as _ };
44
+ //# sourceMappingURL=slicedToArray-BWOQ_OdI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slicedToArray-BWOQ_OdI.js","sources":["../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js"],"sourcesContent":["function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nexport { _iterableToArrayLimit as default };","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableRest as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };"],"names":["arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest"],"mappings":";;AAAA,SAAS,eAAe,CAAC,CAAC,EAAE;AAC5B,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AACjC;;ACFA,SAAS,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE;AACrC,EAAE,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,IAAI,GAAG,WAAW,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,MAAM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AAG;AACH;;AC1BA,SAAS,gBAAgB,GAAG;AAC5B,EAAE,MAAM,IAAI,SAAS,CAAC,2IAA2I,CAAC,CAAC;AACnK;;ACEA,SAAS,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE;AAC9B,EAAE,OAAOA,eAAc,CAAC,CAAC,CAAC,IAAIC,qBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,IAAIC,2BAA0B,CAAC,CAAC,EAAE,CAAC,CAAC,IAAIC,gBAAe,EAAE,CAAC;AAClH;;;;","x_google_ignoreList":[0,1,2,3]}
@@ -0,0 +1,20 @@
1
+ import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-Dqz8Y8_I.js';
2
+
3
+ function _arrayWithoutHoles(r) {
4
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
5
+ }
6
+
7
+ function _iterableToArray(r) {
8
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
9
+ }
10
+
11
+ function _nonIterableSpread() {
12
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13
+ }
14
+
15
+ function _toConsumableArray(r) {
16
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
17
+ }
18
+
19
+ export { _toConsumableArray as _ };
20
+ //# sourceMappingURL=toConsumableArray-B7CFjjkW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toConsumableArray-B7CFjjkW.js","sources":["../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"],"sourcesContent":["import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nexport { _arrayWithoutHoles as default };","function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nexport { _iterableToArray as default };","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableSpread as default };","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nexport { _toConsumableArray as default };"],"names":["arrayLikeToArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread"],"mappings":";;AACA,SAAS,kBAAkB,CAAC,CAAC,EAAE;AAC/B,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAOA,iBAAgB,CAAC,CAAC,CAAC,CAAC;AACnD;;ACHA,SAAS,gBAAgB,CAAC,CAAC,EAAE;AAC7B,EAAE,IAAI,WAAW,IAAI,OAAO,MAAM,IAAI,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClH;;ACFA,SAAS,kBAAkB,GAAG;AAC9B,EAAE,MAAM,IAAI,SAAS,CAAC,sIAAsI,CAAC,CAAC;AAC9J;;ACEA,SAAS,kBAAkB,CAAC,CAAC,EAAE;AAC/B,EAAE,OAAOC,kBAAiB,CAAC,CAAC,CAAC,IAAIC,gBAAe,CAAC,CAAC,CAAC,IAAIC,2BAA0B,CAAC,CAAC,CAAC,IAAIC,kBAAiB,EAAE,CAAC;AAC5G;;;;","x_google_ignoreList":[0,1,2,3]}
@@ -0,0 +1,12 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ export { _typeof as _ };
12
+ //# sourceMappingURL=typeof-D-UKOauR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeof-D-UKOauR.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };"],"names":[],"mappings":"AAAA,SAAS,OAAO,CAAC,CAAC,EAAE;AACpB,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,EAAE;AACpG,IAAI,OAAO,OAAO,CAAC,CAAC;AACpB,GAAG,GAAG,UAAU,CAAC,EAAE;AACnB,IAAI,OAAO,CAAC,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM,IAAI,CAAC,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AACxH,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAChB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,16 @@
1
+ function _arrayLikeToArray(r, a) {
2
+ (null == a || a > r.length) && (a = r.length);
3
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
4
+ return n;
5
+ }
6
+
7
+ function _unsupportedIterableToArray(r, a) {
8
+ if (r) {
9
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
10
+ var t = {}.toString.call(r).slice(8, -1);
11
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
12
+ }
13
+ }
14
+
15
+ export { _unsupportedIterableToArray as _, _arrayLikeToArray as a };
16
+ //# sourceMappingURL=unsupportedIterableToArray-Dqz8Y8_I.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unsupportedIterableToArray-Dqz8Y8_I.js","sources":["../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"],"sourcesContent":["function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nexport { _arrayLikeToArray as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nexport { _unsupportedIterableToArray as default };"],"names":["arrayLikeToArray"],"mappings":"AAAA,SAAS,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE;AACjC,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;AAChD,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACxD,EAAE,OAAO,CAAC,CAAC;AACX;;ACHA,SAAS,2BAA2B,CAAC,CAAC,EAAE,CAAC,EAAE;AAC3C,EAAE,IAAI,CAAC,EAAE;AACT,IAAI,IAAI,QAAQ,IAAI,OAAO,CAAC,EAAE,OAAOA,iBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5D,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC7C,IAAI,OAAO,QAAQ,KAAK,CAAC,IAAI,CAAC,CAAC,WAAW,KAAK,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,WAAW,KAAK,CAAC,IAAI,0CAA0C,CAAC,IAAI,CAAC,CAAC,CAAC,GAAGA,iBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;AAC/N,GAAG;AACH;;;;","x_google_ignoreList":[0,1]}
@@ -1,8 +1,9 @@
1
- import { _ as _toConsumableArray } from '../toConsumableArray-CQcqnqnw.js';
2
- import { _ as _defineProperty } from '../defineProperty-CEd-kZQW.js';
1
+ import { _ as _toConsumableArray } from '../toConsumableArray-B7CFjjkW.js';
2
+ import { _ as _defineProperty } from '../defineProperty-D_V-nTlo.js';
3
3
  import { isNotPresent, findBy } from '@bigbinary/neeto-cist';
4
4
  import { omit } from 'ramda';
5
- import '../unsupportedIterableToArray-wRn9bJ2J.js';
5
+ import '../unsupportedIterableToArray-Dqz8Y8_I.js';
6
+ import '../typeof-D-UKOauR.js';
6
7
 
7
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1 +1 @@
1
- {"version":3,"file":"buildNestedAttributesPayload.js","sources":["../../src/utils/buildNestedAttributesPayload.js"],"sourcesContent":["import { findBy, isNotPresent } from \"neetocist\";\nimport { omit } from \"ramda\";\n\nexport const buildNestedAttributesPayload = ({\n modifiedValues,\n initialValues,\n nestedKeyToModify,\n nestedAttributeKeyInPayload,\n nestedAttributesForArrayKey,\n}) => {\n const itemsToDestroy = initialValues[nestedKeyToModify].filter(initialItem =>\n isNotPresent(\n findBy(\n { value: initialItem[nestedAttributeKeyInPayload] },\n modifiedValues[nestedKeyToModify]\n )\n )\n );\n\n const itemsToDestroyAttrs = itemsToDestroy.map(item => ({\n id: item.id,\n [nestedAttributeKeyInPayload]: item[nestedAttributeKeyInPayload],\n _destroy: true,\n }));\n\n const itemsToBeCreated = modifiedValues[nestedKeyToModify].filter(\n modifiedItem =>\n isNotPresent(\n findBy(\n { [nestedAttributeKeyInPayload]: modifiedItem.value.toLowerCase() },\n initialValues[nestedKeyToModify]\n )\n )\n );\n\n const itemsToCreateAttrs = itemsToBeCreated.map(item => ({\n [nestedAttributeKeyInPayload]: item.value,\n }));\n\n const nestedAttributes = [...itemsToCreateAttrs, ...itemsToDestroyAttrs];\n\n return {\n ...omit([nestedKeyToModify], modifiedValues),\n [nestedAttributesForArrayKey]: nestedAttributes,\n };\n};\n"],"names":["buildNestedAttributesPayload","_ref","modifiedValues","initialValues","nestedKeyToModify","nestedAttributeKeyInPayload","nestedAttributesForArrayKey","itemsToDestroy","filter","initialItem","isNotPresent","findBy","value","itemsToDestroyAttrs","map","item","_defineProperty","id","itemsToBeCreated","modifiedItem","toLowerCase","itemsToCreateAttrs","nestedAttributes","concat","_toConsumableArray","_objectSpread","omit"],"mappings":";;;;;;;;IAGaA,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAAAC,IAAA,EAMnC;AAAA,EAAA,IALJC,cAAc,GAAAD,IAAA,CAAdC,cAAc;IACdC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IACbC,iBAAiB,GAAAH,IAAA,CAAjBG,iBAAiB;IACjBC,2BAA2B,GAAAJ,IAAA,CAA3BI,2BAA2B;IAC3BC,2BAA2B,GAAAL,IAAA,CAA3BK,2BAA2B,CAAA;EAE3B,IAAMC,cAAc,GAAGJ,aAAa,CAACC,iBAAiB,CAAC,CAACI,MAAM,CAAC,UAAAC,WAAW,EAAA;IAAA,OACxEC,YAAY,CACVC,MAAM,CACJ;MAAEC,KAAK,EAAEH,WAAW,CAACJ,2BAA2B,CAAA;AAAE,KAAC,EACnDH,cAAc,CAACE,iBAAiB,CAClC,CACF,CAAC,CAAA;AAAA,GACH,CAAC,CAAA;AAED,EAAA,IAAMS,mBAAmB,GAAGN,cAAc,CAACO,GAAG,CAAC,UAAAC,IAAI,EAAA;IAAA,OAAAC,eAAA,CAAAA,eAAA,CAAA;MACjDC,EAAE,EAAEF,IAAI,CAACE,EAAAA;AAAE,KAAA,EACVZ,2BAA2B,EAAGU,IAAI,CAACV,2BAA2B,CAAC,eACtD,IAAI,CAAA,CAAA;AAAA,GACd,CAAC,CAAA;EAEH,IAAMa,gBAAgB,GAAGhB,cAAc,CAACE,iBAAiB,CAAC,CAACI,MAAM,CAC/D,UAAAW,YAAY,EAAA;IAAA,OACVT,YAAY,CACVC,MAAM,CAAAK,eAAA,CACDX,EAAAA,EAAAA,2BAA2B,EAAGc,YAAY,CAACP,KAAK,CAACQ,WAAW,EAAE,CAAA,EACjEjB,aAAa,CAACC,iBAAiB,CACjC,CACF,CAAC,CAAA;AAAA,GACL,CAAC,CAAA;AAED,EAAA,IAAMiB,kBAAkB,GAAGH,gBAAgB,CAACJ,GAAG,CAAC,UAAAC,IAAI,EAAA;AAAA,IAAA,OAAAC,eAAA,CACjDX,EAAAA,EAAAA,2BAA2B,EAAGU,IAAI,CAACH,KAAK,CAAA,CAAA;AAAA,GACzC,CAAC,CAAA;EAEH,IAAMU,gBAAgB,GAAAC,EAAAA,CAAAA,MAAA,CAAAC,kBAAA,CAAOH,kBAAkB,CAAAG,EAAAA,kBAAA,CAAKX,mBAAmB,CAAC,CAAA,CAAA;AAExE,EAAA,OAAAY,aAAA,CAAAA,aAAA,CACKC,EAAAA,EAAAA,IAAI,CAAC,CAACtB,iBAAiB,CAAC,EAAEF,cAAc,CAAC,CAAA,EAAA,EAAA,EAAAc,eAAA,CAC3CV,EAAAA,EAAAA,2BAA2B,EAAGgB,gBAAgB,CAAA,CAAA,CAAA;AAEnD;;;;"}
1
+ {"version":3,"file":"buildNestedAttributesPayload.js","sources":["../../src/utils/buildNestedAttributesPayload.js"],"sourcesContent":["import { findBy, isNotPresent } from \"neetocist\";\nimport { omit } from \"ramda\";\n\nexport const buildNestedAttributesPayload = ({\n modifiedValues,\n initialValues,\n nestedKeyToModify,\n nestedAttributeKeyInPayload,\n nestedAttributesForArrayKey,\n}) => {\n const itemsToDestroy = initialValues[nestedKeyToModify].filter(initialItem =>\n isNotPresent(\n findBy(\n { value: initialItem[nestedAttributeKeyInPayload] },\n modifiedValues[nestedKeyToModify]\n )\n )\n );\n\n const itemsToDestroyAttrs = itemsToDestroy.map(item => ({\n id: item.id,\n [nestedAttributeKeyInPayload]: item[nestedAttributeKeyInPayload],\n _destroy: true,\n }));\n\n const itemsToBeCreated = modifiedValues[nestedKeyToModify].filter(\n modifiedItem =>\n isNotPresent(\n findBy(\n { [nestedAttributeKeyInPayload]: modifiedItem.value.toLowerCase() },\n initialValues[nestedKeyToModify]\n )\n )\n );\n\n const itemsToCreateAttrs = itemsToBeCreated.map(item => ({\n [nestedAttributeKeyInPayload]: item.value,\n }));\n\n const nestedAttributes = [...itemsToCreateAttrs, ...itemsToDestroyAttrs];\n\n return {\n ...omit([nestedKeyToModify], modifiedValues),\n [nestedAttributesForArrayKey]: nestedAttributes,\n };\n};\n"],"names":["buildNestedAttributesPayload","_ref","modifiedValues","initialValues","nestedKeyToModify","nestedAttributeKeyInPayload","nestedAttributesForArrayKey","itemsToDestroy","filter","initialItem","isNotPresent","findBy","value","itemsToDestroyAttrs","map","item","_defineProperty","id","itemsToBeCreated","modifiedItem","toLowerCase","itemsToCreateAttrs","nestedAttributes","concat","_toConsumableArray","_objectSpread","omit"],"mappings":";;;;;;;;;IAGaA,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAAAC,IAAA,EAMnC;AAAA,EAAA,IALJC,cAAc,GAAAD,IAAA,CAAdC,cAAc;IACdC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IACbC,iBAAiB,GAAAH,IAAA,CAAjBG,iBAAiB;IACjBC,2BAA2B,GAAAJ,IAAA,CAA3BI,2BAA2B;IAC3BC,2BAA2B,GAAAL,IAAA,CAA3BK,2BAA2B,CAAA;EAE3B,IAAMC,cAAc,GAAGJ,aAAa,CAACC,iBAAiB,CAAC,CAACI,MAAM,CAAC,UAAAC,WAAW,EAAA;IAAA,OACxEC,YAAY,CACVC,MAAM,CACJ;MAAEC,KAAK,EAAEH,WAAW,CAACJ,2BAA2B,CAAA;AAAE,KAAC,EACnDH,cAAc,CAACE,iBAAiB,CAClC,CACF,CAAC,CAAA;AAAA,GACH,CAAC,CAAA;AAED,EAAA,IAAMS,mBAAmB,GAAGN,cAAc,CAACO,GAAG,CAAC,UAAAC,IAAI,EAAA;IAAA,OAAAC,eAAA,CAAAA,eAAA,CAAA;MACjDC,EAAE,EAAEF,IAAI,CAACE,EAAAA;AAAE,KAAA,EACVZ,2BAA2B,EAAGU,IAAI,CAACV,2BAA2B,CAAC,eACtD,IAAI,CAAA,CAAA;AAAA,GACd,CAAC,CAAA;EAEH,IAAMa,gBAAgB,GAAGhB,cAAc,CAACE,iBAAiB,CAAC,CAACI,MAAM,CAC/D,UAAAW,YAAY,EAAA;IAAA,OACVT,YAAY,CACVC,MAAM,CAAAK,eAAA,CACDX,EAAAA,EAAAA,2BAA2B,EAAGc,YAAY,CAACP,KAAK,CAACQ,WAAW,EAAE,CAAA,EACjEjB,aAAa,CAACC,iBAAiB,CACjC,CACF,CAAC,CAAA;AAAA,GACL,CAAC,CAAA;AAED,EAAA,IAAMiB,kBAAkB,GAAGH,gBAAgB,CAACJ,GAAG,CAAC,UAAAC,IAAI,EAAA;AAAA,IAAA,OAAAC,eAAA,CACjDX,EAAAA,EAAAA,2BAA2B,EAAGU,IAAI,CAACH,KAAK,CAAA,CAAA;AAAA,GACzC,CAAC,CAAA;EAEH,IAAMU,gBAAgB,GAAAC,EAAAA,CAAAA,MAAA,CAAAC,kBAAA,CAAOH,kBAAkB,CAAAG,EAAAA,kBAAA,CAAKX,mBAAmB,CAAC,CAAA,CAAA;AAExE,EAAA,OAAAY,aAAA,CAAAA,aAAA,CACKC,EAAAA,EAAAA,IAAI,CAAC,CAACtB,iBAAiB,CAAC,EAAEF,cAAc,CAAC,CAAA,EAAA,EAAA,EAAAc,eAAA,CAC3CV,EAAAA,EAAAA,2BAA2B,EAAGgB,gBAAgB,CAAA,CAAA,CAAA;AAEnD;;;;"}
@@ -1,5 +1,6 @@
1
- import { _ as _defineProperty } from '../defineProperty-CEd-kZQW.js';
1
+ import { _ as _defineProperty } from '../defineProperty-D_V-nTlo.js';
2
2
  import { m as mixpanel } from '../mixpanel.cjs-DTVxnNUt.js';
3
+ import '../typeof-D-UKOauR.js';
3
4
  import '../_commonjsHelpers-B85MJLTf.js';
4
5
 
5
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -1 +1 @@
1
- {"version":3,"file":"captureAnalyticsPageView.js","sources":["../../src/utils/captureAnalyticsPageView.js"],"sourcesContent":["import mixpanel from \"mixpanel-browser\";\n\nexport const captureAnalyticsPageView = (page, properties = {}) =>\n mixpanel.track_pageview({ page, ...properties });\n"],"names":["captureAnalyticsPageView","page","properties","arguments","length","undefined","mixpanel","track_pageview","_objectSpread"],"mappings":";;;;;;IAEaA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIC,IAAI,EAAA;AAAA,EAAA,IAAEC,UAAU,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE,CAAA;AAAA,EAAA,OAC5DG,QAAQ,CAACC,cAAc,CAAAC,aAAA,CAAA;AAAGP,IAAAA,IAAI,EAAJA,IAAAA;GAASC,EAAAA,UAAU,CAAE,CAAC,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"captureAnalyticsPageView.js","sources":["../../src/utils/captureAnalyticsPageView.js"],"sourcesContent":["import mixpanel from \"mixpanel-browser\";\n\nexport const captureAnalyticsPageView = (page, properties = {}) =>\n mixpanel.track_pageview({ page, ...properties });\n"],"names":["captureAnalyticsPageView","page","properties","arguments","length","undefined","mixpanel","track_pageview","_objectSpread"],"mappings":";;;;;;;IAEaA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAIC,IAAI,EAAA;AAAA,EAAA,IAAEC,UAAU,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE,CAAA;AAAA,EAAA,OAC5DG,QAAQ,CAACC,cAAc,CAAAC,aAAA,CAAA;AAAGP,IAAAA,IAAI,EAAJA,IAAAA;GAASC,EAAAA,UAAU,CAAE,CAAC,CAAA;AAAA;;;;"}