@stokr/components-library 3.0.67 → 3.0.68

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 (796) hide show
  1. package/README.md +179 -179
  2. package/dist/analytics/index.js +1 -1
  3. package/dist/api/fetchData.js +2 -2
  4. package/dist/components/2FA/Connect2FA.js +1 -1
  5. package/dist/components/2FA/EnterCode.js +1 -1
  6. package/dist/components/2FA/Sucess2FA.js +1 -1
  7. package/dist/components/2FA/login-with-otp-flow.js +1 -1
  8. package/dist/components/2FA/main-flow.js +1 -1
  9. package/dist/components/AccountBalance/AccountBalance.js +1 -1
  10. package/dist/components/AdminDashboard/Table/ReactTable.js +5 -5
  11. package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +1 -1
  12. package/dist/components/AdminDashboard/Table/Table.js +1 -1
  13. package/dist/components/AgreementItem/AgreementItem.js +1 -1
  14. package/dist/components/BackButton/BackButton.js +1 -1
  15. package/dist/components/Background/Background.js +1 -1
  16. package/dist/components/BasicTable/BasicTable.js +1 -1
  17. package/dist/components/BlogPost/BlogPost.js +1 -1
  18. package/dist/components/Button/Button.styles.js +1 -1
  19. package/dist/components/Button/GlareButton.js +2 -2
  20. package/dist/components/ChartLegend/ChartLegend.js +3 -3
  21. package/dist/components/Checkbox/Checkbox.js +1 -1
  22. package/dist/components/Checklist/ChecklistCard.js +1 -1
  23. package/dist/components/Chips/Chip.js +1 -1
  24. package/dist/components/Chips/ChipWrapper.js +1 -1
  25. package/dist/components/ComponentScroll/ComponentScroll.js +3 -3
  26. package/dist/components/Country/CountrySelect.js +4 -4
  27. package/dist/components/CryptoAddress/ComponentWrap.js +1 -1
  28. package/dist/components/CryptoAddress/CryptoAddress.js +7 -7
  29. package/dist/components/CryptoAddress/RadioWrap.js +1 -1
  30. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +1 -1
  31. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +1 -1
  32. package/dist/components/FAQ/FAQ.js +1 -1
  33. package/dist/components/FAQ/FAQ.styles.js +2 -2
  34. package/dist/components/Footer/Footer.js +1 -1
  35. package/dist/components/Footer/FooterLayout.js +1 -1
  36. package/dist/components/Footer/FooterMenu.js +3 -3
  37. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +5 -5
  38. package/dist/components/Form/Form.js +2 -2
  39. package/dist/components/Form/Form.styles.js +1 -1
  40. package/dist/components/Header/Header.js +3 -3
  41. package/dist/components/HeroBlock/HeroVideoBlock.js +1 -1
  42. package/dist/components/IdentityInfo/IdentityInfo.js +1 -1
  43. package/dist/components/InfoIcon/InfoIcon.js +6 -6
  44. package/dist/components/Input/DatePickerInput.js +3 -5
  45. package/dist/components/Input/Input.js +1 -1
  46. package/dist/components/Input/InputPassword.js +1 -1
  47. package/dist/components/Input/InputUsername.js +1 -1
  48. package/dist/components/Input/InputWithButton.js +1 -1
  49. package/dist/components/Input/MultiSelect.js +3 -4
  50. package/dist/components/Input/OtpInput.js +2 -2
  51. package/dist/components/Input/RangeInput.js +4 -4
  52. package/dist/components/Input/Select.js +4 -5
  53. package/dist/components/Input/TableFilterDropdown.js +1 -1
  54. package/dist/components/InvestmentStat/InvestmentStat.js +1 -1
  55. package/dist/components/LatestUpdate/LatestUpdate.js +1 -1
  56. package/dist/components/Layout/Layout.js +1 -1
  57. package/dist/components/LoginModal/LoginModal.js +6 -6
  58. package/dist/components/MainMenu/DynamicMainMenu.js +3 -3
  59. package/dist/components/MainMenu/MainMenu.js +6 -6
  60. package/dist/components/Modal/Modal.js +2 -2
  61. package/dist/components/Modal/NewVentureModal/NewVentureModal.js +9 -9
  62. package/dist/components/Modal/PaymentModal.js +2 -2
  63. package/dist/components/Modal/SuccessModal/SuccessModal.js +3 -3
  64. package/dist/components/MultiProgressBar/MultiProgressBar.js +1 -1
  65. package/dist/components/Number/Number.js +1 -1
  66. package/dist/components/PageTransition/PageTransition.js +1 -1
  67. package/dist/components/Pagination/Pagination.js +1 -1
  68. package/dist/components/Pagination/PaginationControls.js +1 -1
  69. package/dist/components/Payment/PaymentDisplay.js +4 -4
  70. package/dist/components/Payment/TimerComponent.js +1 -1
  71. package/dist/components/ProfileBadge/ProfileBadge.js +1 -1
  72. package/dist/components/ProfileBox/ProfileBox.js +1 -1
  73. package/dist/components/ProfileStat/ProfileStat.js +1 -1
  74. package/dist/components/QRCode/QRCode.js +2 -2
  75. package/dist/components/Radio/Radio.js +1 -1
  76. package/dist/components/RefreshButton/RefreshButton.js +1 -1
  77. package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +1 -1
  78. package/dist/components/RegisterModal/RegisterModal.js +8 -8
  79. package/dist/components/RequestDataBox/RequestDataBox.js +1 -1
  80. package/dist/components/ResetConfirmModal/ResetConfirmModal.js +1 -1
  81. package/dist/components/ResetPasswordModal/ResetPasswordModal.js +6 -6
  82. package/dist/components/SEO/SEO.js +3 -3
  83. package/dist/components/Slider/Slider.js +4 -4
  84. package/dist/components/SmartLink/SmartLink.js +1 -1
  85. package/dist/components/Snackbar/Snackbar.js +1 -1
  86. package/dist/components/Snackbar/SnackbarProvider.js +1 -1
  87. package/dist/components/StepController/StepController.js +1 -1
  88. package/dist/components/StepController/StepControllerContext.js +1 -1
  89. package/dist/components/StepController/StepControllerProgress.js +1 -1
  90. package/dist/components/StepsProgress/StepIndicator.js +1 -1
  91. package/dist/components/Switch/Switch.js +1 -1
  92. package/dist/components/Tabs/Tabs.js +1 -1
  93. package/dist/components/TabsNav/TabNav.js +1 -1
  94. package/dist/components/TabsNav/TabsNav.js +1 -1
  95. package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -1
  96. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +2 -2
  97. package/dist/components/TeamOverview/TeamOverview.js +1 -1
  98. package/dist/components/TermsModal/TermsModal.js +5 -5
  99. package/dist/components/Timeline/TimelineStep.js +1 -1
  100. package/dist/components/ToDoList/ToDoList.js +3 -3
  101. package/dist/components/ToDoList/ToDoListTask.js +4 -4
  102. package/dist/components/TransactionDetails/TransactionDetails.js +1 -1
  103. package/dist/components/TransactionDetails/TransactionDetails.styles.js +2 -2
  104. package/dist/components/TransactionInfo/TransactionInfo.js +1 -1
  105. package/dist/components/VerifyEmailModal/VerifyEmailModal.js +5 -5
  106. package/dist/components/headerHo/HeaderHo.js +1 -3
  107. package/dist/components/logo/Logo.js +1 -1
  108. package/dist/components/taxId/register-taxid.js +4 -4
  109. package/dist/context/Auth.js +12 -15
  110. package/dist/context/AuthContext.js +4 -4
  111. package/dist/firebase-config.js +2 -4
  112. package/dist/hooks/useNewVentureForm.js +1 -1
  113. package/dist/index.js +6 -7
  114. package/dist/manifest.json +25 -25
  115. package/dist/model/axios.js +1 -2
  116. package/dist/model/axiosPublic.js +1 -2
  117. package/dist/robots.txt +3 -3
  118. package/dist/routing/RouterWrapper.js +1 -1
  119. package/dist/runtime-config.js +1 -1
  120. package/dist/static/fonts/icomoon/icomoon.eot +0 -0
  121. package/dist/static/fonts/icomoon/icomoon.svg +52 -52
  122. package/dist/static/fonts/icomoon/icomoon.ttf +0 -0
  123. package/dist/static/fonts/icomoon/icomoon.woff +0 -0
  124. package/dist/static/fonts/icomoon/selection.json +0 -0
  125. package/dist/static/fonts/icomoon/style.css +0 -0
  126. package/dist/static/images/Glassess.svg +5 -5
  127. package/dist/static/images/add-folder-icon.svg +4 -4
  128. package/dist/static/images/arrow-down-black.svg +21 -21
  129. package/dist/static/images/check-icon.svg +3 -3
  130. package/dist/static/images/checkmark-circle-icon.svg +3 -3
  131. package/dist/static/images/close-circle-icon.svg +2 -2
  132. package/dist/static/images/copy_icon.svg +4 -4
  133. package/dist/static/images/cross-icon.svg +3 -3
  134. package/dist/static/images/currency/eth.svg +10 -10
  135. package/dist/static/images/currency/eth_logo.svg +8 -8
  136. package/dist/static/images/currency/eur.svg +3 -3
  137. package/dist/static/images/currency/usdc-logo.svg +5 -5
  138. package/dist/static/images/doc-icon.svg +3 -3
  139. package/dist/static/images/download_icon.svg +3 -3
  140. package/dist/static/images/external-link-icon.svg +3 -3
  141. package/dist/static/images/filter-icon.svg +6 -6
  142. package/dist/static/images/globe.svg +15 -15
  143. package/dist/static/images/mangopay.svg +20 -20
  144. package/dist/static/images/numbers/number_eight.svg +3 -3
  145. package/dist/static/images/numbers/number_five.svg +4 -4
  146. package/dist/static/images/numbers/number_four.svg +3 -3
  147. package/dist/static/images/numbers/number_nine.svg +4 -4
  148. package/dist/static/images/numbers/number_one.svg +4 -4
  149. package/dist/static/images/numbers/number_seven.svg +4 -4
  150. package/dist/static/images/numbers/number_six.svg +4 -4
  151. package/dist/static/images/numbers/number_three.svg +3 -3
  152. package/dist/static/images/numbers/number_two.svg +4 -4
  153. package/dist/static/images/numbers/number_zero.svg +3 -3
  154. package/dist/static/images/plus-icon.svg +4 -4
  155. package/dist/static/images/prof-inv.svg +3 -3
  156. package/dist/static/images/search-icon.svg +3 -3
  157. package/dist/static/images/transfer-icon.svg +10 -10
  158. package/dist/static/images/trash.svg +16 -16
  159. package/dist/static/images/upload.svg +5 -5
  160. package/dist/static/images/warning-filled.svg +3 -3
  161. package/dist/styles/global.js +2 -2
  162. package/dist/utils/copyToClipboard.js +7 -7
  163. package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
  164. package/dist/utils/moment.js +3 -2
  165. package/dist/utils/redirect-url.js +2 -2
  166. package/dist/utils/set-redirect-cookie.js +2 -2
  167. package/dist/utils/transition.js +1 -1
  168. package/package.json +143 -143
  169. package/dist/_virtual/Collapse.js +0 -4
  170. package/dist/_virtual/Component.js +0 -4
  171. package/dist/_virtual/Range.js +0 -4
  172. package/dist/_virtual/ResizeObserver.es.js +0 -6
  173. package/dist/_virtual/UnmountClosed.js +0 -4
  174. package/dist/_virtual/_commonjsHelpers.js +0 -38
  175. package/dist/_virtual/arrows.js +0 -4
  176. package/dist/_virtual/attributes-to-props.js +0 -4
  177. package/dist/_virtual/constants.js +0 -4
  178. package/dist/_virtual/default-props.js +0 -4
  179. package/dist/_virtual/defaultRenderElements.js +0 -4
  180. package/dist/_virtual/dom-to-react.js +0 -4
  181. package/dist/_virtual/domparser.js +0 -4
  182. package/dist/_virtual/dots.js +0 -4
  183. package/dist/_virtual/getInnerHeight.js +0 -4
  184. package/dist/_virtual/getInnerWidth.js +0 -4
  185. package/dist/_virtual/getScrollbarWidth.js +0 -4
  186. package/dist/_virtual/hoist-non-react-statics.cjs.js +0 -2
  187. package/dist/_virtual/html-to-dom.js +0 -4
  188. package/dist/_virtual/index.js +0 -5
  189. package/dist/_virtual/index10.js +0 -5
  190. package/dist/_virtual/index11.js +0 -7
  191. package/dist/_virtual/index12.js +0 -7
  192. package/dist/_virtual/index13.js +0 -7
  193. package/dist/_virtual/index14.js +0 -4
  194. package/dist/_virtual/index15.js +0 -7
  195. package/dist/_virtual/index16.js +0 -7
  196. package/dist/_virtual/index17.js +0 -7
  197. package/dist/_virtual/index18.js +0 -4
  198. package/dist/_virtual/index19.js +0 -4
  199. package/dist/_virtual/index2.js +0 -7
  200. package/dist/_virtual/index20.js +0 -4
  201. package/dist/_virtual/index21.js +0 -4
  202. package/dist/_virtual/index22.js +0 -4
  203. package/dist/_virtual/index23.js +0 -4
  204. package/dist/_virtual/index24.js +0 -4
  205. package/dist/_virtual/index25.js +0 -4
  206. package/dist/_virtual/index26.js +0 -4
  207. package/dist/_virtual/index27.js +0 -4
  208. package/dist/_virtual/index28.js +0 -4
  209. package/dist/_virtual/index29.js +0 -4
  210. package/dist/_virtual/index3.js +0 -5
  211. package/dist/_virtual/index30.js +0 -4
  212. package/dist/_virtual/index31.js +0 -4
  213. package/dist/_virtual/index4.js +0 -5
  214. package/dist/_virtual/index5.js +0 -5
  215. package/dist/_virtual/index6.js +0 -5
  216. package/dist/_virtual/index7.js +0 -7
  217. package/dist/_virtual/index8.js +0 -4
  218. package/dist/_virtual/index9.js +0 -5
  219. package/dist/_virtual/initial-state.js +0 -4
  220. package/dist/_virtual/inner-slider.js +0 -4
  221. package/dist/_virtual/innerSliderUtils.js +0 -4
  222. package/dist/_virtual/isString.js +0 -4
  223. package/dist/_virtual/node.js +0 -4
  224. package/dist/_virtual/performance-now.js +0 -4
  225. package/dist/_virtual/popper.js +0 -6
  226. package/dist/_virtual/possibleStandardNamesOptimized.js +0 -4
  227. package/dist/_virtual/react-is.development.js +0 -4
  228. package/dist/_virtual/react-is.production.min.js +0 -4
  229. package/dist/_virtual/react-table.development.js +0 -4
  230. package/dist/_virtual/react-table.production.min.js +0 -4
  231. package/dist/_virtual/react-tippy.js +0 -5
  232. package/dist/_virtual/react-tippy2.js +0 -4
  233. package/dist/_virtual/returnFalse.js +0 -4
  234. package/dist/_virtual/slider.js +0 -4
  235. package/dist/_virtual/styles.js +0 -4
  236. package/dist/_virtual/track.js +0 -4
  237. package/dist/_virtual/types.js +0 -4
  238. package/dist/_virtual/utilities.js +0 -4
  239. package/dist/_virtual/utilities2.js +0 -4
  240. package/dist/_virtual/utilities3.js +0 -4
  241. package/dist/_virtual/utils.js +0 -4
  242. package/dist/components-library.css +0 -781
  243. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -8
  244. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -6
  245. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
  246. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
  247. package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -6
  248. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
  249. package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -17
  250. package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
  251. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
  252. package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -8
  253. package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
  254. package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -13
  255. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -6
  256. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -24
  257. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -6
  258. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -6
  259. package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
  260. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
  261. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
  262. package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
  263. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
  264. package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
  265. package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -10
  266. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
  267. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
  268. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
  269. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
  270. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
  271. package/dist/node_modules/@date-fns/tz/date/index.js +0 -66
  272. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -124
  273. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
  274. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -28
  275. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -345
  276. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -31
  277. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -10
  278. package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +0 -84
  279. package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -50
  280. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -169
  281. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -83
  282. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -53
  283. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -9
  284. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -45
  285. package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +0 -609
  286. package/dist/node_modules/@firebase/auth/dist/esm/index-36fcbc82.js +0 -5751
  287. package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +0 -291
  288. package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +0 -106
  289. package/dist/node_modules/@firebase/util/dist/index.esm.js +0 -828
  290. package/dist/node_modules/@firebase/util/dist/postinstall.js +0 -4
  291. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -257
  292. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -122
  293. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -34
  294. package/dist/node_modules/@lottiefiles/dotlottie-react/dist/index.js +0 -53
  295. package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +0 -1973
  296. package/dist/node_modules/add-px-to-style/index.js +0 -48
  297. package/dist/node_modules/axios/index.js +0 -38
  298. package/dist/node_modules/axios/lib/adapters/adapters.js +0 -71
  299. package/dist/node_modules/axios/lib/adapters/fetch.js +0 -219
  300. package/dist/node_modules/axios/lib/adapters/xhr.js +0 -141
  301. package/dist/node_modules/axios/lib/axios.js +0 -50
  302. package/dist/node_modules/axios/lib/cancel/CancelToken.js +0 -99
  303. package/dist/node_modules/axios/lib/cancel/CanceledError.js +0 -20
  304. package/dist/node_modules/axios/lib/cancel/isCancel.js +0 -6
  305. package/dist/node_modules/axios/lib/core/Axios.js +0 -188
  306. package/dist/node_modules/axios/lib/core/AxiosError.js +0 -67
  307. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +0 -231
  308. package/dist/node_modules/axios/lib/core/InterceptorManager.js +0 -66
  309. package/dist/node_modules/axios/lib/core/buildFullPath.js +0 -12
  310. package/dist/node_modules/axios/lib/core/dispatchRequest.js +0 -52
  311. package/dist/node_modules/axios/lib/core/mergeConfig.js +0 -88
  312. package/dist/node_modules/axios/lib/core/settle.js +0 -18
  313. package/dist/node_modules/axios/lib/core/transformData.js +0 -17
  314. package/dist/node_modules/axios/lib/defaults/index.js +0 -116
  315. package/dist/node_modules/axios/lib/defaults/transitional.js +0 -9
  316. package/dist/node_modules/axios/lib/env/data.js +0 -4
  317. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -34
  318. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
  319. package/dist/node_modules/axios/lib/helpers/bind.js +0 -8
  320. package/dist/node_modules/axios/lib/helpers/buildURL.js +0 -32
  321. package/dist/node_modules/axios/lib/helpers/combineURLs.js +0 -6
  322. package/dist/node_modules/axios/lib/helpers/composeSignals.js +0 -39
  323. package/dist/node_modules/axios/lib/helpers/cookies.js +0 -49
  324. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +0 -54
  325. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -9
  326. package/dist/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
  327. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -11
  328. package/dist/node_modules/axios/lib/helpers/null.js +0 -4
  329. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +0 -47
  330. package/dist/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  331. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +0 -41
  332. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +0 -46
  333. package/dist/node_modules/axios/lib/helpers/speedometer.js +0 -36
  334. package/dist/node_modules/axios/lib/helpers/spread.js +0 -8
  335. package/dist/node_modules/axios/lib/helpers/throttle.js +0 -35
  336. package/dist/node_modules/axios/lib/helpers/toFormData.js +0 -117
  337. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
  338. package/dist/node_modules/axios/lib/helpers/trackStream.js +0 -80
  339. package/dist/node_modules/axios/lib/helpers/validator.js +0 -67
  340. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  341. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  342. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  343. package/dist/node_modules/axios/lib/platform/browser/index.js +0 -15
  344. package/dist/node_modules/axios/lib/platform/common/utils.js +0 -15
  345. package/dist/node_modules/axios/lib/platform/index.js +0 -9
  346. package/dist/node_modules/axios/lib/utils.js +0 -415
  347. package/dist/node_modules/classnames/index.js +0 -61
  348. package/dist/node_modules/copy-to-clipboard/index.js +0 -101
  349. package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +0 -6570
  350. package/dist/node_modules/country-flag-icons/react/3x2/index.js +0 -269
  351. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
  352. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
  353. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -652
  354. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -62
  355. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -58
  356. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -20
  357. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
  358. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
  359. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -23
  360. package/dist/node_modules/date-fns/addDays.js +0 -12
  361. package/dist/node_modules/date-fns/addMonths.js +0 -26
  362. package/dist/node_modules/date-fns/addWeeks.js +0 -7
  363. package/dist/node_modules/date-fns/addYears.js +0 -7
  364. package/dist/node_modules/date-fns/constants.js +0 -14
  365. package/dist/node_modules/date-fns/constructFrom.js +0 -11
  366. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -19
  367. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -14
  368. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -20
  369. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -20
  370. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -7
  371. package/dist/node_modules/date-fns/endOfMonth.js +0 -11
  372. package/dist/node_modules/date-fns/endOfWeek.js +0 -15
  373. package/dist/node_modules/date-fns/endOfYear.js +0 -11
  374. package/dist/node_modules/date-fns/format.js +0 -77
  375. package/dist/node_modules/date-fns/getDayOfYear.js +0 -12
  376. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -14
  377. package/dist/node_modules/date-fns/getDefaultOptions.js +0 -7
  378. package/dist/node_modules/date-fns/getISODay.js +0 -8
  379. package/dist/node_modules/date-fns/getISOWeek.js +0 -12
  380. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -25
  381. package/dist/node_modules/date-fns/getMonth.js +0 -7
  382. package/dist/node_modules/date-fns/getWeek.js +0 -12
  383. package/dist/node_modules/date-fns/getWeekYear.js +0 -28
  384. package/dist/node_modules/date-fns/getYear.js +0 -7
  385. package/dist/node_modules/date-fns/isAfter.js +0 -7
  386. package/dist/node_modules/date-fns/isBefore.js +0 -7
  387. package/dist/node_modules/date-fns/isDate.js +0 -6
  388. package/dist/node_modules/date-fns/isSameDay.js +0 -13
  389. package/dist/node_modules/date-fns/isSameMonth.js +0 -12
  390. package/dist/node_modules/date-fns/isSameYear.js +0 -12
  391. package/dist/node_modules/date-fns/isValid.js +0 -8
  392. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  393. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -20
  394. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -43
  395. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
  396. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -85
  397. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -36
  398. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
  399. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -164
  400. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -122
  401. package/dist/node_modules/date-fns/locale/en-US.js +0 -20
  402. package/dist/node_modules/date-fns/max.js +0 -16
  403. package/dist/node_modules/date-fns/min.js +0 -16
  404. package/dist/node_modules/date-fns/parse/_lib/Parser.js +0 -25
  405. package/dist/node_modules/date-fns/parse/_lib/Setter.js +0 -44
  406. package/dist/node_modules/date-fns/parse/_lib/constants.js +0 -50
  407. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -44
  408. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -44
  409. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -64
  410. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
  411. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -45
  412. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -44
  413. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -30
  414. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -20
  415. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -17
  416. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -32
  417. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -27
  418. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -28
  419. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
  420. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -106
  421. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -43
  422. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -43
  423. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -43
  424. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -39
  425. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -76
  426. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -42
  427. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -67
  428. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -27
  429. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -73
  430. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -71
  431. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -27
  432. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -76
  433. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -73
  434. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -71
  435. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -16
  436. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -16
  437. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -47
  438. package/dist/node_modules/date-fns/parse/_lib/parsers.js +0 -67
  439. package/dist/node_modules/date-fns/parse/_lib/utils.js +0 -117
  440. package/dist/node_modules/date-fns/parse.js +0 -123
  441. package/dist/node_modules/date-fns/setDay.js +0 -17
  442. package/dist/node_modules/date-fns/setISODay.js +0 -12
  443. package/dist/node_modules/date-fns/setISOWeek.js +0 -11
  444. package/dist/node_modules/date-fns/setMonth.js +0 -17
  445. package/dist/node_modules/date-fns/setWeek.js +0 -11
  446. package/dist/node_modules/date-fns/setYear.js +0 -11
  447. package/dist/node_modules/date-fns/startOfDay.js +0 -9
  448. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -7
  449. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -13
  450. package/dist/node_modules/date-fns/startOfMonth.js +0 -10
  451. package/dist/node_modules/date-fns/startOfWeek.js +0 -15
  452. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -17
  453. package/dist/node_modules/date-fns/startOfYear.js +0 -10
  454. package/dist/node_modules/date-fns/toDate.js +0 -7
  455. package/dist/node_modules/date-fns/transpose.js +0 -18
  456. package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -8
  457. package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +0 -9
  458. package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js +0 -29
  459. package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +0 -89
  460. package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +0 -4
  461. package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +0 -81
  462. package/dist/node_modules/date-fns-tz/dist/esm/format/formatters/index.js +0 -125
  463. package/dist/node_modules/date-fns-tz/dist/esm/format/index.js +0 -24
  464. package/dist/node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js +0 -13
  465. package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +0 -305
  466. package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +0 -14
  467. package/dist/node_modules/deepmerge/dist/es.js +0 -69
  468. package/dist/node_modules/dom-css/index.js +0 -65
  469. package/dist/node_modules/domelementtype/lib/index.js +0 -39
  470. package/dist/node_modules/domhandler/lib/index.js +0 -166
  471. package/dist/node_modules/domhandler/lib/node.js +0 -438
  472. package/dist/node_modules/dompurify/dist/purify.es.js +0 -1020
  473. package/dist/node_modules/firebase/app/dist/esm/index.esm.js +0 -20
  474. package/dist/node_modules/firebase/auth/dist/esm/index.esm.js +0 -44
  475. package/dist/node_modules/formik/dist/formik.esm.js +0 -969
  476. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -92
  477. package/dist/node_modules/html-dom-parser/lib/client/constants.js +0 -55
  478. package/dist/node_modules/html-dom-parser/lib/client/domparser.js +0 -96
  479. package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +0 -31
  480. package/dist/node_modules/html-dom-parser/lib/client/utilities.js +0 -96
  481. package/dist/node_modules/html-react-parser/esm/index.js +0 -5
  482. package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +0 -64
  483. package/dist/node_modules/html-react-parser/lib/dom-to-react.js +0 -99
  484. package/dist/node_modules/html-react-parser/lib/index.js +0 -51
  485. package/dist/node_modules/html-react-parser/lib/utilities.js +0 -79
  486. package/dist/node_modules/idb/build/index.js +0 -69
  487. package/dist/node_modules/idb/build/wrap-idb-value.js +0 -148
  488. package/dist/node_modules/inline-style-parser/cjs/index.js +0 -142
  489. package/dist/node_modules/js-cookie/dist/js.cookie.js +0 -99
  490. package/dist/node_modules/json2mq/index.js +0 -55
  491. package/dist/node_modules/lodash-es/_DataView.js +0 -6
  492. package/dist/node_modules/lodash-es/_Hash.js +0 -21
  493. package/dist/node_modules/lodash-es/_ListCache.js +0 -21
  494. package/dist/node_modules/lodash-es/_Map.js +0 -6
  495. package/dist/node_modules/lodash-es/_MapCache.js +0 -21
  496. package/dist/node_modules/lodash-es/_Promise.js +0 -6
  497. package/dist/node_modules/lodash-es/_Set.js +0 -6
  498. package/dist/node_modules/lodash-es/_Stack.js +0 -18
  499. package/dist/node_modules/lodash-es/_Symbol.js +0 -5
  500. package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
  501. package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
  502. package/dist/node_modules/lodash-es/_arrayEach.js +0 -12
  503. package/dist/node_modules/lodash-es/_arrayFilter.js +0 -13
  504. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -24
  505. package/dist/node_modules/lodash-es/_arrayMap.js +0 -10
  506. package/dist/node_modules/lodash-es/_arrayPush.js +0 -10
  507. package/dist/node_modules/lodash-es/_assignValue.js +0 -13
  508. package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -13
  509. package/dist/node_modules/lodash-es/_baseAssign.js +0 -8
  510. package/dist/node_modules/lodash-es/_baseAssignIn.js +0 -8
  511. package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -16
  512. package/dist/node_modules/lodash-es/_baseClone.js +0 -88
  513. package/dist/node_modules/lodash-es/_baseCreate.js +0 -21
  514. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  515. package/dist/node_modules/lodash-es/_baseGetTag.js +0 -14
  516. package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
  517. package/dist/node_modules/lodash-es/_baseIsMap.js +0 -9
  518. package/dist/node_modules/lodash-es/_baseIsNative.js +0 -22
  519. package/dist/node_modules/lodash-es/_baseIsSet.js +0 -9
  520. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -14
  521. package/dist/node_modules/lodash-es/_baseKeys.js +0 -19
  522. package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -20
  523. package/dist/node_modules/lodash-es/_baseTimes.js +0 -10
  524. package/dist/node_modules/lodash-es/_baseToString.js +0 -21
  525. package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
  526. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -9
  527. package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -16
  528. package/dist/node_modules/lodash-es/_cloneDataView.js +0 -8
  529. package/dist/node_modules/lodash-es/_cloneRegExp.js +0 -9
  530. package/dist/node_modules/lodash-es/_cloneSymbol.js +0 -8
  531. package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  532. package/dist/node_modules/lodash-es/_copyArray.js +0 -11
  533. package/dist/node_modules/lodash-es/_copyObject.js +0 -23
  534. package/dist/node_modules/lodash-es/_copySymbols.js +0 -8
  535. package/dist/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  536. package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
  537. package/dist/node_modules/lodash-es/_defineProperty.js +0 -12
  538. package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
  539. package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
  540. package/dist/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  541. package/dist/node_modules/lodash-es/_getMapData.js +0 -8
  542. package/dist/node_modules/lodash-es/_getNative.js +0 -9
  543. package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
  544. package/dist/node_modules/lodash-es/_getRawTag.js +0 -25
  545. package/dist/node_modules/lodash-es/_getSymbols.js +0 -17
  546. package/dist/node_modules/lodash-es/_getSymbolsIn.js +0 -16
  547. package/dist/node_modules/lodash-es/_getTag.js +0 -34
  548. package/dist/node_modules/lodash-es/_getValue.js +0 -6
  549. package/dist/node_modules/lodash-es/_hashClear.js +0 -8
  550. package/dist/node_modules/lodash-es/_hashDelete.js +0 -8
  551. package/dist/node_modules/lodash-es/_hashGet.js +0 -15
  552. package/dist/node_modules/lodash-es/_hashHas.js +0 -10
  553. package/dist/node_modules/lodash-es/_hashSet.js +0 -11
  554. package/dist/node_modules/lodash-es/_initCloneArray.js +0 -13
  555. package/dist/node_modules/lodash-es/_initCloneByTag.js +0 -43
  556. package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
  557. package/dist/node_modules/lodash-es/_isIndex.js +0 -10
  558. package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
  559. package/dist/node_modules/lodash-es/_isMasked.js +0 -11
  560. package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
  561. package/dist/node_modules/lodash-es/_listCacheClear.js +0 -7
  562. package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -20
  563. package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
  564. package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
  565. package/dist/node_modules/lodash-es/_listCacheSet.js +0 -14
  566. package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -14
  567. package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -9
  568. package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
  569. package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
  570. package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -10
  571. package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -15
  572. package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
  573. package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
  574. package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -12
  575. package/dist/node_modules/lodash-es/_nodeUtil.js +0 -18
  576. package/dist/node_modules/lodash-es/_objectToString.js +0 -8
  577. package/dist/node_modules/lodash-es/_overArg.js +0 -8
  578. package/dist/node_modules/lodash-es/_root.js +0 -6
  579. package/dist/node_modules/lodash-es/_stackClear.js +0 -8
  580. package/dist/node_modules/lodash-es/_stackDelete.js +0 -8
  581. package/dist/node_modules/lodash-es/_stackGet.js +0 -6
  582. package/dist/node_modules/lodash-es/_stackHas.js +0 -6
  583. package/dist/node_modules/lodash-es/_stackSet.js +0 -22
  584. package/dist/node_modules/lodash-es/_stringToPath.js +0 -16
  585. package/dist/node_modules/lodash-es/_toKey.js +0 -11
  586. package/dist/node_modules/lodash-es/_toSource.js +0 -18
  587. package/dist/node_modules/lodash-es/clone.js +0 -8
  588. package/dist/node_modules/lodash-es/cloneDeep.js +0 -8
  589. package/dist/node_modules/lodash-es/eq.js +0 -6
  590. package/dist/node_modules/lodash-es/isArguments.js +0 -13
  591. package/dist/node_modules/lodash-es/isArray.js +0 -4
  592. package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
  593. package/dist/node_modules/lodash-es/isBuffer.js +0 -11
  594. package/dist/node_modules/lodash-es/isFunction.js +0 -13
  595. package/dist/node_modules/lodash-es/isLength.js +0 -7
  596. package/dist/node_modules/lodash-es/isMap.js +0 -8
  597. package/dist/node_modules/lodash-es/isObject.js +0 -7
  598. package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
  599. package/dist/node_modules/lodash-es/isPlainObject.js +0 -22
  600. package/dist/node_modules/lodash-es/isSet.js +0 -8
  601. package/dist/node_modules/lodash-es/isSymbol.js +0 -9
  602. package/dist/node_modules/lodash-es/isTypedArray.js +0 -8
  603. package/dist/node_modules/lodash-es/keys.js +0 -9
  604. package/dist/node_modules/lodash-es/keysIn.js +0 -9
  605. package/dist/node_modules/lodash-es/memoize.js +0 -22
  606. package/dist/node_modules/lodash-es/stubArray.js +0 -6
  607. package/dist/node_modules/lodash-es/stubFalse.js +0 -6
  608. package/dist/node_modules/lodash-es/toPath.js +0 -16
  609. package/dist/node_modules/lodash-es/toString.js +0 -7
  610. package/dist/node_modules/lodash.debounce/index.js +0 -137
  611. package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +0 -52
  612. package/dist/node_modules/mixpanel-browser/dist/mixpanel.module.js +0 -25533
  613. package/dist/node_modules/object-assign/index.js +0 -73
  614. package/dist/node_modules/performance-now/lib/performance-now.js +0 -42
  615. package/dist/node_modules/popper.js/dist/esm/popper.js +0 -1516
  616. package/dist/node_modules/prefix-style/index.js +0 -29
  617. package/dist/node_modules/prop-types/checkPropTypes.js +0 -68
  618. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -58
  619. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -451
  620. package/dist/node_modules/prop-types/index.js +0 -20
  621. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
  622. package/dist/node_modules/prop-types/lib/has.js +0 -11
  623. package/dist/node_modules/property-expr/index.js +0 -105
  624. package/dist/node_modules/qrcode.react/lib/esm/index.js +0 -1099
  625. package/dist/node_modules/raf/index.js +0 -67
  626. package/dist/node_modules/react-collapse/lib/Collapse.js +0 -285
  627. package/dist/node_modules/react-collapse/lib/UnmountClosed.js +0 -278
  628. package/dist/node_modules/react-collapse/lib/index.js +0 -17
  629. package/dist/node_modules/react-copy-to-clipboard/lib/Component.js +0 -209
  630. package/dist/node_modules/react-copy-to-clipboard/lib/index.js +0 -14
  631. package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/defaultRenderElements.js +0 -85
  632. package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/index.js +0 -706
  633. package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/styles.js +0 -67
  634. package/dist/node_modules/react-custom-scrollbars-4/lib/index.js +0 -24
  635. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerHeight.js +0 -21
  636. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerWidth.js +0 -21
  637. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getScrollbarWidth.js +0 -44
  638. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/isString.js +0 -19
  639. package/dist/node_modules/react-custom-scrollbars-4/lib/utils/returnFalse.js +0 -19
  640. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -325
  641. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -59
  642. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -25
  643. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -9
  644. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -9
  645. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -282
  646. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
  647. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
  648. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
  649. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
  650. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -13
  651. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -21
  652. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
  653. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
  654. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
  655. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
  656. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
  657. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
  658. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
  659. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -34
  660. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
  661. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
  662. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
  663. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
  664. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
  665. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
  666. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
  667. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
  668. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
  669. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
  670. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
  671. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
  672. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
  673. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -10
  674. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
  675. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
  676. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -10
  677. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
  678. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
  679. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
  680. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
  681. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -40
  682. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -72
  683. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -11
  684. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -13
  685. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -17
  686. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
  687. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -19
  688. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -30
  689. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -12
  690. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -20
  691. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -15
  692. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -22
  693. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -16
  694. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -16
  695. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -41
  696. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -17
  697. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -43
  698. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -39
  699. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -20
  700. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -20
  701. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -20
  702. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -14
  703. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -13
  704. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -9
  705. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -23
  706. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -14
  707. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -9
  708. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
  709. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -14
  710. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -10
  711. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -11
  712. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
  713. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
  714. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -7
  715. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
  716. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
  717. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
  718. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
  719. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
  720. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -62
  721. package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -145
  722. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -42
  723. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -33
  724. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -33
  725. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -128
  726. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -100
  727. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -13
  728. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -42
  729. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -21
  730. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -55
  731. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -53
  732. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -52
  733. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -17
  734. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -61
  735. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -23
  736. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
  737. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -11
  738. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
  739. package/dist/node_modules/react-fast-compare/index.js +0 -63
  740. package/dist/node_modules/react-helmet/es/Helmet.js +0 -717
  741. package/dist/node_modules/react-helmet/node_modules/react-fast-compare/index.js +0 -81
  742. package/dist/node_modules/react-intersection-observer/dist/index.js +0 -178
  743. package/dist/node_modules/react-is/cjs/react-is.development.js +0 -157
  744. package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -98
  745. package/dist/node_modules/react-is/index.js +0 -17
  746. package/dist/node_modules/react-otp-input/lib/index.esm.js +0 -168
  747. package/dist/node_modules/react-portal/es/LegacyPortal.js +0 -91
  748. package/dist/node_modules/react-portal/es/Portal.js +0 -74
  749. package/dist/node_modules/react-portal/es/PortalCompat.js +0 -12
  750. package/dist/node_modules/react-portal/es/utils.js +0 -4
  751. package/dist/node_modules/react-property/lib/index.js +0 -471
  752. package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +0 -499
  753. package/dist/node_modules/react-range/lib/Range.js +0 -592
  754. package/dist/node_modules/react-range/lib/index.js +0 -39
  755. package/dist/node_modules/react-range/lib/types.js +0 -19
  756. package/dist/node_modules/react-range/lib/utils.js +0 -318
  757. package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
  758. package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +0 -2317
  759. package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1071
  760. package/dist/node_modules/react-select/dist/react-select.esm.js +0 -20
  761. package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +0 -75
  762. package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -51
  763. package/dist/node_modules/react-side-effect/lib/index.js +0 -105
  764. package/dist/node_modules/react-slick/lib/arrows.js +0 -248
  765. package/dist/node_modules/react-slick/lib/default-props.js +0 -85
  766. package/dist/node_modules/react-slick/lib/dots.js +0 -192
  767. package/dist/node_modules/react-slick/lib/index.js +0 -22
  768. package/dist/node_modules/react-slick/lib/initial-state.js +0 -48
  769. package/dist/node_modules/react-slick/lib/inner-slider.js +0 -810
  770. package/dist/node_modules/react-slick/lib/slider.js +0 -333
  771. package/dist/node_modules/react-slick/lib/track.js +0 -330
  772. package/dist/node_modules/react-slick/lib/utils/innerSliderUtils.js +0 -730
  773. package/dist/node_modules/react-table/dist/react-table.development.js +0 -3684
  774. package/dist/node_modules/react-table/dist/react-table.production.min.js +0 -1637
  775. package/dist/node_modules/react-table/index.js +0 -17
  776. package/dist/node_modules/react-tippy/dist/react-tippy.js +0 -1981
  777. package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -495
  778. package/dist/node_modules/string-convert/camel2hyphen.js +0 -16
  779. package/dist/node_modules/style-to-js/cjs/index.js +0 -31
  780. package/dist/node_modules/style-to-js/cjs/utilities.js +0 -42
  781. package/dist/node_modules/style-to-object/cjs/index.js +0 -38
  782. package/dist/node_modules/stylis/src/Enum.js +0 -20
  783. package/dist/node_modules/stylis/src/Middleware.js +0 -22
  784. package/dist/node_modules/stylis/src/Parser.js +0 -157
  785. package/dist/node_modules/stylis/src/Serializer.js +0 -29
  786. package/dist/node_modules/stylis/src/Tokenizer.js +0 -160
  787. package/dist/node_modules/stylis/src/Utility.js +0 -52
  788. package/dist/node_modules/tiny-case/index.js +0 -33
  789. package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +0 -16
  790. package/dist/node_modules/to-camel-case/index.js +0 -18
  791. package/dist/node_modules/to-no-case/index.js +0 -32
  792. package/dist/node_modules/to-space-case/index.js +0 -18
  793. package/dist/node_modules/toggle-selection/index.js +0 -42
  794. package/dist/node_modules/toposort/index.js +0 -79
  795. package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -5
  796. package/dist/node_modules/yup/index.esm.js +0 -1921
@@ -1,1637 +0,0 @@
1
- import { __module as reactTable_production_min$1 } from "../../../_virtual/react-table.production.min.js";
2
- import React__default from "react";
3
- var reactTable_production_min = reactTable_production_min$1.exports;
4
- var hasRequiredReactTable_production_min;
5
- function requireReactTable_production_min() {
6
- if (hasRequiredReactTable_production_min) return reactTable_production_min$1.exports;
7
- hasRequiredReactTable_production_min = 1;
8
- (function(module, exports$1) {
9
- !(function(e, t) {
10
- t(exports$1, React__default);
11
- })(reactTable_production_min, (function(e, t) {
12
- function n(e2, t2, n2, o2, r2, i2, u2) {
13
- try {
14
- var l2 = e2[i2](u2), s2 = l2.value;
15
- } catch (e3) {
16
- return void n2(e3);
17
- }
18
- l2.done ? t2(s2) : Promise.resolve(s2).then(o2, r2);
19
- }
20
- function o(e2) {
21
- return function() {
22
- var t2 = this, o2 = arguments;
23
- return new Promise((function(r2, i2) {
24
- var u2 = e2.apply(t2, o2);
25
- function l2(e3) {
26
- n(u2, r2, i2, l2, s2, "next", e3);
27
- }
28
- function s2(e3) {
29
- n(u2, r2, i2, l2, s2, "throw", e3);
30
- }
31
- l2(void 0);
32
- }));
33
- };
34
- }
35
- function r() {
36
- return (r = Object.assign || function(e2) {
37
- for (var t2 = 1; t2 < arguments.length; t2++) {
38
- var n2 = arguments[t2];
39
- for (var o2 in n2) Object.prototype.hasOwnProperty.call(n2, o2) && (e2[o2] = n2[o2]);
40
- }
41
- return e2;
42
- }).apply(this, arguments);
43
- }
44
- function i(e2, t2) {
45
- if (null == e2) return {};
46
- var n2, o2, r2 = {}, i2 = Object.keys(e2);
47
- for (o2 = 0; o2 < i2.length; o2++) n2 = i2[o2], t2.indexOf(n2) >= 0 || (r2[n2] = e2[n2]);
48
- return r2;
49
- }
50
- function u(e2) {
51
- var t2 = (function(e3, t3) {
52
- if ("object" != typeof e3 || null === e3) return e3;
53
- var n2 = e3[Symbol.toPrimitive];
54
- if (void 0 !== n2) {
55
- var o2 = n2.call(e3, t3);
56
- if ("object" != typeof o2) return o2;
57
- throw new TypeError("@@toPrimitive must return a primitive value.");
58
- }
59
- return String(e3);
60
- })(e2, "string");
61
- return "symbol" == typeof t2 ? t2 : String(t2);
62
- }
63
- t = t && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
64
- var l = { init: "init" }, s = function(e2) {
65
- var t2 = e2.value;
66
- return void 0 === t2 ? "" : t2;
67
- }, a = function() {
68
- return t.createElement(t.Fragment, null, " ");
69
- }, c = { Cell: s, width: 150, minWidth: 0, maxWidth: Number.MAX_SAFE_INTEGER };
70
- function d() {
71
- for (var e2 = arguments.length, t2 = new Array(e2), n2 = 0; n2 < e2; n2++) t2[n2] = arguments[n2];
72
- return t2.reduce((function(e3, t3) {
73
- var n3 = t3.style, o2 = t3.className;
74
- return e3 = r({}, e3, {}, i(t3, ["style", "className"])), n3 && (e3.style = e3.style ? r({}, e3.style || {}, {}, n3 || {}) : n3), o2 && (e3.className = e3.className ? e3.className + " " + o2 : o2), "" === e3.className && delete e3.className, e3;
75
- }), {});
76
- }
77
- var f = function(e2, t2) {
78
- return void 0 === t2 && (t2 = {}), function(n2) {
79
- return void 0 === n2 && (n2 = {}), [].concat(e2, [n2]).reduce((function(e3, o2) {
80
- return (function e4(t3, n3, o3) {
81
- return "function" == typeof n3 ? e4({}, n3(t3, o3)) : Array.isArray(n3) ? d.apply(void 0, [t3].concat(n3)) : d(t3, n3);
82
- })(e3, o2, r({}, t2, { userProps: n2 }));
83
- }), {});
84
- };
85
- }, p = function(e2, t2, n2, o2) {
86
- return void 0 === n2 && (n2 = {}), e2.reduce((function(e3, t3) {
87
- return t3(e3, n2);
88
- }), t2);
89
- }, g = function(e2, t2, n2) {
90
- return void 0 === n2 && (n2 = {}), e2.forEach((function(e3) {
91
- e3(t2, n2);
92
- }));
93
- };
94
- function v(e2, t2, n2, o2) {
95
- e2.findIndex((function(e3) {
96
- return e3.pluginName === n2;
97
- }));
98
- t2.forEach((function(t3) {
99
- e2.findIndex((function(e3) {
100
- return e3.pluginName === t3;
101
- }));
102
- }));
103
- }
104
- function m(e2, t2) {
105
- return "function" == typeof e2 ? e2(t2) : e2;
106
- }
107
- function h(e2) {
108
- var n2 = t.useRef();
109
- return n2.current = e2, t.useCallback((function() {
110
- return n2.current;
111
- }), []);
112
- }
113
- var y = "undefined" != typeof document ? t.useLayoutEffect : t.useEffect;
114
- function w(e2, n2) {
115
- var o2 = t.useRef(false);
116
- y((function() {
117
- o2.current && e2(), o2.current = true;
118
- }), n2);
119
- }
120
- function R(e2, t2, n2) {
121
- return void 0 === n2 && (n2 = {}), function(o2, i2) {
122
- void 0 === i2 && (i2 = {});
123
- var u2 = "string" == typeof o2 ? t2[o2] : o2;
124
- if (void 0 === u2) throw console.info(t2), new Error("Renderer Error ☝️");
125
- return b(u2, r({}, e2, { column: t2 }, n2, {}, i2));
126
- };
127
- }
128
- function b(e2, n2) {
129
- return (function(e3) {
130
- return "function" == typeof e3 && ((t2 = Object.getPrototypeOf(e3)).prototype && t2.prototype.isReactComponent);
131
- var t2;
132
- })(o2 = e2) || "function" == typeof o2 || (function(e3) {
133
- return "object" == typeof e3 && "symbol" == typeof e3.$$typeof && ["react.memo", "react.forward_ref"].includes(e3.$$typeof.description);
134
- })(o2) ? t.createElement(e2, n2) : e2;
135
- var o2;
136
- }
137
- function S(e2, t2, n2) {
138
- return void 0 === n2 && (n2 = 0), e2.map((function(e3) {
139
- return x(e3 = r({}, e3, { parent: t2, depth: n2 })), e3.columns && (e3.columns = S(e3.columns, e3, n2 + 1)), e3;
140
- }));
141
- }
142
- function C(e2) {
143
- return G(e2, "columns");
144
- }
145
- function x(e2) {
146
- var t2 = e2.id, n2 = e2.accessor, o2 = e2.Header;
147
- if ("string" == typeof n2) {
148
- t2 = t2 || n2;
149
- var r2 = n2.split(".");
150
- n2 = function(e3) {
151
- return (function(e4, t3, n3) {
152
- if (!t3) return e4;
153
- var o3, r3 = "function" == typeof t3 ? t3 : JSON.stringify(t3), i2 = E.get(r3) || (function() {
154
- var e5 = (function(e6) {
155
- return (function e7(t4, n4) {
156
- void 0 === n4 && (n4 = []);
157
- if (Array.isArray(t4)) for (var o4 = 0; o4 < t4.length; o4 += 1) e7(t4[o4], n4);
158
- else n4.push(t4);
159
- return n4;
160
- })(e6).map((function(e7) {
161
- return String(e7).replace(".", "_");
162
- })).join(".").replace(T, ".").replace(O, "").split(".");
163
- })(t3);
164
- return E.set(r3, e5), e5;
165
- })();
166
- try {
167
- o3 = i2.reduce((function(e5, t4) {
168
- return e5[t4];
169
- }), e4);
170
- } catch (e5) {
171
- }
172
- return void 0 !== o3 ? o3 : n3;
173
- })(e3, r2);
174
- };
175
- }
176
- if (!t2 && "string" == typeof o2 && o2 && (t2 = o2), !t2 && e2.columns) throw console.error(e2), new Error('A column ID (or unique "Header" value) is required!');
177
- if (!t2) throw console.error(e2), new Error("A column ID (or string accessor) is required!");
178
- return Object.assign(e2, { id: t2, accessor: n2 }), e2;
179
- }
180
- function P(e2, t2) {
181
- if (!t2) throw new Error();
182
- return Object.assign(e2, r({ Header: a, Footer: a }, c, {}, t2, {}, e2)), Object.assign(e2, { originalWidth: e2.width }), e2;
183
- }
184
- function B(e2, t2, n2) {
185
- void 0 === n2 && (n2 = function() {
186
- return {};
187
- });
188
- for (var o2 = [], i2 = e2, u2 = 0, l2 = function() {
189
- return u2++;
190
- }, s2 = function() {
191
- var e3 = { headers: [] }, u3 = [], s3 = i2.some((function(e4) {
192
- return e4.parent;
193
- }));
194
- i2.forEach((function(o3) {
195
- var i3, a2 = [].concat(u3).reverse()[0];
196
- if (s3) {
197
- if (o3.parent) i3 = r({}, o3.parent, { originalId: o3.parent.id, id: o3.parent.id + "_" + l2(), headers: [o3] }, n2(o3));
198
- else i3 = P(r({ originalId: o3.id + "_placeholder", id: o3.id + "_placeholder_" + l2(), placeholderOf: o3, headers: [o3] }, n2(o3)), t2);
199
- a2 && a2.originalId === i3.originalId ? a2.headers.push(o3) : u3.push(i3);
200
- }
201
- e3.headers.push(o3);
202
- })), o2.push(e3), i2 = u3;
203
- }; i2.length; ) s2();
204
- return o2.reverse();
205
- }
206
- var E = /* @__PURE__ */ new Map();
207
- function I() {
208
- for (var e2 = arguments.length, t2 = new Array(e2), n2 = 0; n2 < e2; n2++) t2[n2] = arguments[n2];
209
- for (var o2 = 0; o2 < t2.length; o2 += 1) if (void 0 !== t2[o2]) return t2[o2];
210
- }
211
- function F(e2) {
212
- if ("function" == typeof e2) return e2;
213
- }
214
- function G(e2, t2) {
215
- var n2 = [];
216
- return (function e3(o2) {
217
- o2.forEach((function(o3) {
218
- o3[t2] ? e3(o3[t2]) : n2.push(o3);
219
- }));
220
- })(e2), n2;
221
- }
222
- function A(e2, t2) {
223
- var n2 = t2.manualExpandedKey, o2 = t2.expanded, r2 = t2.expandSubRows, i2 = void 0 === r2 || r2, u2 = [];
224
- return e2.forEach((function(e3) {
225
- return (function e4(t3, r3) {
226
- void 0 === r3 && (r3 = true), t3.isExpanded = t3.original && t3.original[n2] || o2[t3.id], t3.canExpand = t3.subRows && !!t3.subRows.length, r3 && u2.push(t3), t3.subRows && t3.subRows.length && t3.isExpanded && t3.subRows.forEach((function(t4) {
227
- return e4(t4, i2);
228
- }));
229
- })(e3);
230
- })), u2;
231
- }
232
- function k(e2, t2, n2) {
233
- return F(e2) || t2[e2] || n2[e2] || n2.text;
234
- }
235
- function H(e2, t2, n2) {
236
- return e2 ? e2(t2, n2) : void 0 === t2;
237
- }
238
- function W() {
239
- throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.");
240
- }
241
- var z = null;
242
- var T = /\[/g, O = /\]/g;
243
- var M = function(e2) {
244
- return r({ role: "table" }, e2);
245
- }, j = function(e2) {
246
- return r({ role: "rowgroup" }, e2);
247
- }, L = function(e2, t2) {
248
- var n2 = t2.column;
249
- return r({ key: "header_" + n2.id, colSpan: n2.totalVisibleHeaderCount, role: "columnheader" }, e2);
250
- }, N = function(e2, t2) {
251
- var n2 = t2.column;
252
- return r({ key: "footer_" + n2.id, colSpan: n2.totalVisibleHeaderCount }, e2);
253
- }, D = function(e2, t2) {
254
- return r({ key: "headerGroup_" + t2.index, role: "row" }, e2);
255
- }, V = function(e2, t2) {
256
- return r({ key: "footerGroup_" + t2.index }, e2);
257
- }, _ = function(e2, t2) {
258
- return r({ key: "row_" + t2.row.id, role: "row" }, e2);
259
- }, X = function(e2, t2) {
260
- var n2 = t2.cell;
261
- return r({ key: "cell_" + n2.row.id + "_" + n2.column.id, role: "cell" }, e2);
262
- };
263
- function q() {
264
- return { useOptions: [], stateReducers: [], useControlledState: [], columns: [], columnsDeps: [], allColumns: [], allColumnsDeps: [], accessValue: [], materializedColumns: [], materializedColumnsDeps: [], useInstanceAfterData: [], visibleColumns: [], visibleColumnsDeps: [], headerGroups: [], headerGroupsDeps: [], useInstanceBeforeDimensions: [], useInstance: [], prepareRow: [], getTableProps: [M], getTableBodyProps: [j], getHeaderGroupProps: [D], getFooterGroupProps: [V], getHeaderProps: [L], getFooterProps: [N], getRowProps: [_], getCellProps: [X], useFinalInstance: [] };
265
- }
266
- l.resetHiddenColumns = "resetHiddenColumns", l.toggleHideColumn = "toggleHideColumn", l.setHiddenColumns = "setHiddenColumns", l.toggleHideAllColumns = "toggleHideAllColumns";
267
- var K = function(e2) {
268
- e2.getToggleHiddenProps = [U], e2.getToggleHideAllColumnsProps = [$], e2.stateReducers.push(J), e2.useInstanceBeforeDimensions.push(Y), e2.headerGroupsDeps.push((function(e3, t2) {
269
- var n2 = t2.instance;
270
- return [].concat(e3, [n2.state.hiddenColumns]);
271
- })), e2.useInstance.push(Q);
272
- };
273
- K.pluginName = "useColumnVisibility";
274
- var U = function(e2, t2) {
275
- var n2 = t2.column;
276
- return [e2, { onChange: function(e3) {
277
- n2.toggleHidden(!e3.target.checked);
278
- }, style: { cursor: "pointer" }, checked: n2.isVisible, title: "Toggle Column Visible" }];
279
- }, $ = function(e2, t2) {
280
- var n2 = t2.instance;
281
- return [e2, { onChange: function(e3) {
282
- n2.toggleHideAllColumns(!e3.target.checked);
283
- }, style: { cursor: "pointer" }, checked: !n2.allColumnsHidden && !n2.state.hiddenColumns.length, title: "Toggle All Columns Hidden", indeterminate: !n2.allColumnsHidden && n2.state.hiddenColumns.length }];
284
- };
285
- function J(e2, t2, n2, o2) {
286
- if (t2.type === l.init) return r({ hiddenColumns: [] }, e2);
287
- if (t2.type === l.resetHiddenColumns) return r({}, e2, { hiddenColumns: o2.initialState.hiddenColumns || [] });
288
- if (t2.type === l.toggleHideColumn) {
289
- var i2 = (void 0 !== t2.value ? t2.value : !e2.hiddenColumns.includes(t2.columnId)) ? [].concat(e2.hiddenColumns, [t2.columnId]) : e2.hiddenColumns.filter((function(e3) {
290
- return e3 !== t2.columnId;
291
- }));
292
- return r({}, e2, { hiddenColumns: i2 });
293
- }
294
- return t2.type === l.setHiddenColumns ? r({}, e2, { hiddenColumns: m(t2.value, e2.hiddenColumns) }) : t2.type === l.toggleHideAllColumns ? r({}, e2, { hiddenColumns: (void 0 !== t2.value ? t2.value : !e2.hiddenColumns.length) ? o2.allColumns.map((function(e3) {
295
- return e3.id;
296
- })) : [] }) : void 0;
297
- }
298
- function Y(e2) {
299
- var n2 = e2.headers, o2 = e2.state.hiddenColumns;
300
- t.useRef(false).current;
301
- var r2 = 0;
302
- n2.forEach((function(e3) {
303
- return r2 += (function e4(t2, n3) {
304
- t2.isVisible = n3 && !o2.includes(t2.id);
305
- var r3 = 0;
306
- return t2.headers && t2.headers.length ? t2.headers.forEach((function(n4) {
307
- return r3 += e4(n4, t2.isVisible);
308
- })) : r3 = t2.isVisible ? 1 : 0, t2.totalVisibleHeaderCount = r3, r3;
309
- })(e3, true);
310
- }));
311
- }
312
- function Q(e2) {
313
- var n2 = e2.columns, o2 = e2.flatHeaders, r2 = e2.dispatch, i2 = e2.allColumns, u2 = e2.getHooks, s2 = e2.state.hiddenColumns, a2 = e2.autoResetHiddenColumns, c2 = void 0 === a2 || a2, d2 = h(e2), p2 = i2.length === s2.length, g2 = t.useCallback((function(e3, t2) {
314
- return r2({ type: l.toggleHideColumn, columnId: e3, value: t2 });
315
- }), [r2]), v2 = t.useCallback((function(e3) {
316
- return r2({ type: l.setHiddenColumns, value: e3 });
317
- }), [r2]), m2 = t.useCallback((function(e3) {
318
- return r2({ type: l.toggleHideAllColumns, value: e3 });
319
- }), [r2]), y2 = f(u2().getToggleHideAllColumnsProps, { instance: d2() });
320
- o2.forEach((function(e3) {
321
- e3.toggleHidden = function(t2) {
322
- r2({ type: l.toggleHideColumn, columnId: e3.id, value: t2 });
323
- }, e3.getToggleHiddenProps = f(u2().getToggleHiddenProps, { instance: d2(), column: e3 });
324
- }));
325
- var R2 = h(c2);
326
- w((function() {
327
- R2() && r2({ type: l.resetHiddenColumns });
328
- }), [r2, n2]), Object.assign(e2, { allColumnsHidden: p2, toggleHideColumn: g2, setHiddenColumns: v2, toggleHideAllColumns: m2, getToggleHideAllColumnsProps: y2 });
329
- }
330
- var Z = {}, ee = {}, te = function(e2, t2, n2) {
331
- return e2;
332
- }, ne = function(e2, t2) {
333
- return e2.subRows || [];
334
- }, oe = function(e2, t2, n2) {
335
- return "" + (n2 ? [n2.id, t2].join(".") : t2);
336
- }, re = function(e2) {
337
- return e2;
338
- };
339
- function ie(e2) {
340
- var t2 = e2.initialState, n2 = void 0 === t2 ? Z : t2, o2 = e2.defaultColumn, u2 = void 0 === o2 ? ee : o2, l2 = e2.getSubRows, s2 = void 0 === l2 ? ne : l2, a2 = e2.getRowId, c2 = void 0 === a2 ? oe : a2, d2 = e2.stateReducer, f2 = void 0 === d2 ? te : d2, p2 = e2.useControlledState, g2 = void 0 === p2 ? re : p2;
341
- return r({}, i(e2, ["initialState", "defaultColumn", "getSubRows", "getRowId", "stateReducer", "useControlledState"]), { initialState: n2, defaultColumn: u2, getSubRows: s2, getRowId: c2, stateReducer: f2, useControlledState: g2 });
342
- }
343
- function ue(e2, t2) {
344
- void 0 === t2 && (t2 = 0);
345
- var n2 = 0, o2 = 0, r2 = 0, i2 = 0;
346
- return e2.forEach((function(e3) {
347
- var u2 = e3.headers;
348
- if (e3.totalLeft = t2, u2 && u2.length) {
349
- var l2 = ue(u2, t2), s2 = l2[0], a2 = l2[1], c2 = l2[2], d2 = l2[3];
350
- e3.totalMinWidth = s2, e3.totalWidth = a2, e3.totalMaxWidth = c2, e3.totalFlexWidth = d2;
351
- } else e3.totalMinWidth = e3.minWidth, e3.totalWidth = Math.min(Math.max(e3.minWidth, e3.width), e3.maxWidth), e3.totalMaxWidth = e3.maxWidth, e3.totalFlexWidth = e3.canResize ? e3.totalWidth : 0;
352
- e3.isVisible && (t2 += e3.totalWidth, n2 += e3.totalMinWidth, o2 += e3.totalWidth, r2 += e3.totalMaxWidth, i2 += e3.totalFlexWidth);
353
- })), [n2, o2, r2, i2];
354
- }
355
- function le(e2) {
356
- var t2 = e2.data, n2 = e2.rows, o2 = e2.flatRows, r2 = e2.rowsById, i2 = e2.column, u2 = e2.getRowId, l2 = e2.getSubRows, s2 = e2.accessValueHooks, a2 = e2.getInstance;
357
- t2.forEach((function(e3, c2) {
358
- return (function e4(n3, c3, d2, f2, g2) {
359
- void 0 === d2 && (d2 = 0);
360
- var v2 = n3, m2 = u2(n3, c3, f2), h2 = r2[m2];
361
- if (h2) h2.subRows && h2.originalSubRows.forEach((function(t3, n4) {
362
- return e4(t3, n4, d2 + 1, h2);
363
- }));
364
- else if ((h2 = { id: m2, original: v2, index: c3, depth: d2, cells: [{}] }).cells.map = W, h2.cells.filter = W, h2.cells.forEach = W, h2.cells[0].getCellProps = W, h2.values = {}, g2.push(h2), o2.push(h2), r2[m2] = h2, h2.originalSubRows = l2(n3, c3), h2.originalSubRows) {
365
- var y2 = [];
366
- h2.originalSubRows.forEach((function(t3, n4) {
367
- return e4(t3, n4, d2 + 1, h2, y2);
368
- })), h2.subRows = y2;
369
- }
370
- i2.accessor && (h2.values[i2.id] = i2.accessor(n3, c3, h2, g2, t2)), h2.values[i2.id] = p(s2, h2.values[i2.id], { row: h2, column: i2, instance: a2() });
371
- })(e3, c2, 0, void 0, n2);
372
- }));
373
- }
374
- l.resetExpanded = "resetExpanded", l.toggleRowExpanded = "toggleRowExpanded", l.toggleAllRowsExpanded = "toggleAllRowsExpanded";
375
- var se = function(e2) {
376
- e2.getToggleAllRowsExpandedProps = [ae], e2.getToggleRowExpandedProps = [ce], e2.stateReducers.push(de), e2.useInstance.push(fe), e2.prepareRow.push(pe);
377
- };
378
- se.pluginName = "useExpanded";
379
- var ae = function(e2, t2) {
380
- var n2 = t2.instance;
381
- return [e2, { onClick: function(e3) {
382
- n2.toggleAllRowsExpanded();
383
- }, style: { cursor: "pointer" }, title: "Toggle All Rows Expanded" }];
384
- }, ce = function(e2, t2) {
385
- var n2 = t2.row;
386
- return [e2, { onClick: function() {
387
- n2.toggleRowExpanded();
388
- }, style: { cursor: "pointer" }, title: "Toggle Row Expanded" }];
389
- };
390
- function de(e2, t2, n2, o2) {
391
- if (t2.type === l.init) return r({ expanded: {} }, e2);
392
- if (t2.type === l.resetExpanded) return r({}, e2, { expanded: o2.initialState.expanded || {} });
393
- if (t2.type === l.toggleAllRowsExpanded) {
394
- var s2 = t2.value, a2 = o2.rowsById, c2 = Object.keys(a2).length === Object.keys(e2.expanded).length;
395
- if (void 0 !== s2 ? s2 : !c2) {
396
- var d2 = {};
397
- return Object.keys(a2).forEach((function(e3) {
398
- d2[e3] = true;
399
- })), r({}, e2, { expanded: d2 });
400
- }
401
- return r({}, e2, { expanded: {} });
402
- }
403
- if (t2.type === l.toggleRowExpanded) {
404
- var f2, p2 = t2.id, g2 = t2.value, v2 = e2.expanded[p2], m2 = void 0 !== g2 ? g2 : !v2;
405
- if (!v2 && m2) return r({}, e2, { expanded: r({}, e2.expanded, (f2 = {}, f2[p2] = true, f2)) });
406
- if (v2 && !m2) {
407
- var h2 = e2.expanded;
408
- h2[p2];
409
- return r({}, e2, { expanded: i(h2, [p2].map(u)) });
410
- }
411
- return e2;
412
- }
413
- }
414
- function fe(e2) {
415
- var n2 = e2.data, o2 = e2.rows, r2 = e2.rowsById, i2 = e2.manualExpandedKey, u2 = void 0 === i2 ? "expanded" : i2, s2 = e2.paginateExpandedRows, a2 = void 0 === s2 || s2, c2 = e2.expandSubRows, d2 = void 0 === c2 || c2, p2 = e2.autoResetExpanded, g2 = void 0 === p2 || p2, m2 = e2.getHooks, y2 = e2.plugins, R2 = e2.state.expanded, b2 = e2.dispatch;
416
- v(y2, ["useSortBy", "useGroupBy", "usePivotColumns", "useGlobalFilter"], "useExpanded");
417
- var S2 = h(g2), C2 = Boolean(Object.keys(r2).length && Object.keys(R2).length);
418
- C2 && Object.keys(r2).some((function(e3) {
419
- return !R2[e3];
420
- })) && (C2 = false), w((function() {
421
- S2() && b2({ type: l.resetExpanded });
422
- }), [b2, n2]);
423
- var x2 = t.useCallback((function(e3, t2) {
424
- b2({ type: l.toggleRowExpanded, id: e3, value: t2 });
425
- }), [b2]), P2 = t.useCallback((function(e3) {
426
- return b2({ type: l.toggleAllRowsExpanded, value: e3 });
427
- }), [b2]), B2 = t.useMemo((function() {
428
- return a2 ? A(o2, { manualExpandedKey: u2, expanded: R2, expandSubRows: d2 }) : o2;
429
- }), [a2, o2, u2, R2, d2]), E2 = t.useMemo((function() {
430
- return (function(e3) {
431
- var t2 = 0;
432
- return Object.keys(e3).forEach((function(e4) {
433
- var n3 = e4.split(".");
434
- t2 = Math.max(t2, n3.length);
435
- })), t2;
436
- })(R2);
437
- }), [R2]), I2 = h(e2), F2 = f(m2().getToggleAllRowsExpandedProps, { instance: I2() });
438
- Object.assign(e2, { preExpandedRows: o2, expandedRows: B2, rows: B2, expandedDepth: E2, isAllRowsExpanded: C2, toggleRowExpanded: x2, toggleAllRowsExpanded: P2, getToggleAllRowsExpandedProps: F2 });
439
- }
440
- function pe(e2, t2) {
441
- var n2 = t2.instance.getHooks, o2 = t2.instance;
442
- e2.toggleRowExpanded = function(t3) {
443
- return o2.toggleRowExpanded(e2.id, t3);
444
- }, e2.getToggleRowExpandedProps = f(n2().getToggleRowExpandedProps, { instance: o2, row: e2 });
445
- }
446
- var ge = function(e2, t2, n2) {
447
- return e2 = e2.filter((function(e3) {
448
- return t2.some((function(t3) {
449
- var o2 = e3.values[t3];
450
- return String(o2).toLowerCase().includes(String(n2).toLowerCase());
451
- }));
452
- }));
453
- };
454
- ge.autoRemove = function(e2) {
455
- return !e2;
456
- };
457
- var ve = function(e2, t2, n2) {
458
- return e2.filter((function(e3) {
459
- return t2.some((function(t3) {
460
- var o2 = e3.values[t3];
461
- return void 0 === o2 || String(o2).toLowerCase() === String(n2).toLowerCase();
462
- }));
463
- }));
464
- };
465
- ve.autoRemove = function(e2) {
466
- return !e2;
467
- };
468
- var me = function(e2, t2, n2) {
469
- return e2.filter((function(e3) {
470
- return t2.some((function(t3) {
471
- var o2 = e3.values[t3];
472
- return void 0 === o2 || String(o2) === String(n2);
473
- }));
474
- }));
475
- };
476
- me.autoRemove = function(e2) {
477
- return !e2;
478
- };
479
- var he = function(e2, t2, n2) {
480
- return e2.filter((function(e3) {
481
- return t2.some((function(t3) {
482
- return e3.values[t3].includes(n2);
483
- }));
484
- }));
485
- };
486
- he.autoRemove = function(e2) {
487
- return !e2 || !e2.length;
488
- };
489
- var ye = function(e2, t2, n2) {
490
- return e2.filter((function(e3) {
491
- return t2.some((function(t3) {
492
- var o2 = e3.values[t3];
493
- return o2 && o2.length && n2.every((function(e4) {
494
- return o2.includes(e4);
495
- }));
496
- }));
497
- }));
498
- };
499
- ye.autoRemove = function(e2) {
500
- return !e2 || !e2.length;
501
- };
502
- var we = function(e2, t2, n2) {
503
- return e2.filter((function(e3) {
504
- return t2.some((function(t3) {
505
- var o2 = e3.values[t3];
506
- return o2 && o2.length && n2.some((function(e4) {
507
- return o2.includes(e4);
508
- }));
509
- }));
510
- }));
511
- };
512
- we.autoRemove = function(e2) {
513
- return !e2 || !e2.length;
514
- };
515
- var Re = function(e2, t2, n2) {
516
- return e2.filter((function(e3) {
517
- return t2.some((function(t3) {
518
- var o2 = e3.values[t3];
519
- return n2.includes(o2);
520
- }));
521
- }));
522
- };
523
- Re.autoRemove = function(e2) {
524
- return !e2 || !e2.length;
525
- };
526
- var be = function(e2, t2, n2) {
527
- return e2.filter((function(e3) {
528
- return t2.some((function(t3) {
529
- return e3.values[t3] === n2;
530
- }));
531
- }));
532
- };
533
- be.autoRemove = function(e2) {
534
- return void 0 === e2;
535
- };
536
- var Se = function(e2, t2, n2) {
537
- return e2.filter((function(e3) {
538
- return t2.some((function(t3) {
539
- return e3.values[t3] == n2;
540
- }));
541
- }));
542
- };
543
- Se.autoRemove = function(e2) {
544
- return null == e2;
545
- };
546
- var Ce = function(e2, t2, n2) {
547
- var o2 = n2 || [], r2 = o2[0], i2 = o2[1];
548
- if ((r2 = "number" == typeof r2 ? r2 : -1 / 0) > (i2 = "number" == typeof i2 ? i2 : 1 / 0)) {
549
- var u2 = r2;
550
- r2 = i2, i2 = u2;
551
- }
552
- return e2.filter((function(e3) {
553
- return t2.some((function(t3) {
554
- var n3 = e3.values[t3];
555
- return n3 >= r2 && n3 <= i2;
556
- }));
557
- }));
558
- };
559
- Ce.autoRemove = function(e2) {
560
- return !e2 || "number" != typeof e2[0] && "number" != typeof e2[1];
561
- };
562
- var xe = Object.freeze({ __proto__: null, text: ge, exactText: ve, exactTextCase: me, includes: he, includesAll: ye, includesSome: we, includesValue: Re, exact: be, equals: Se, between: Ce });
563
- l.resetFilters = "resetFilters", l.setFilter = "setFilter", l.setAllFilters = "setAllFilters";
564
- var Pe = function(e2) {
565
- e2.stateReducers.push(Be), e2.useInstance.push(Ee);
566
- };
567
- function Be(e2, t2, n2, o2) {
568
- if (t2.type === l.init) return r({ filters: [] }, e2);
569
- if (t2.type === l.resetFilters) return r({}, e2, { filters: o2.initialState.filters || [] });
570
- if (t2.type === l.setFilter) {
571
- var i2 = t2.columnId, u2 = t2.filterValue, s2 = o2.allColumns, a2 = o2.filterTypes, c2 = s2.find((function(e3) {
572
- return e3.id === i2;
573
- }));
574
- if (!c2) throw new Error("React-Table: Could not find a column with id: " + i2);
575
- var d2 = k(c2.filter, a2 || {}, xe), f2 = e2.filters.find((function(e3) {
576
- return e3.id === i2;
577
- })), p2 = m(u2, f2 && f2.value);
578
- return H(d2.autoRemove, p2, c2) ? r({}, e2, { filters: e2.filters.filter((function(e3) {
579
- return e3.id !== i2;
580
- })) }) : r({}, e2, f2 ? { filters: e2.filters.map((function(e3) {
581
- return e3.id === i2 ? { id: i2, value: p2 } : e3;
582
- })) } : { filters: [].concat(e2.filters, [{ id: i2, value: p2 }]) });
583
- }
584
- if (t2.type === l.setAllFilters) {
585
- var g2 = t2.filters, v2 = o2.allColumns, h2 = o2.filterTypes;
586
- return r({}, e2, { filters: m(g2, e2.filters).filter((function(e3) {
587
- var t3 = v2.find((function(t4) {
588
- return t4.id === e3.id;
589
- }));
590
- return !H(k(t3.filter, h2 || {}, xe).autoRemove, e3.value, t3);
591
- })) });
592
- }
593
- }
594
- function Ee(e2) {
595
- var n2 = e2.data, o2 = e2.rows, r2 = e2.flatRows, i2 = e2.rowsById, u2 = e2.allColumns, s2 = e2.filterTypes, a2 = e2.manualFilters, c2 = e2.defaultCanFilter, d2 = void 0 !== c2 && c2, f2 = e2.disableFilters, p2 = e2.state.filters, g2 = e2.dispatch, v2 = e2.autoResetFilters, m2 = void 0 === v2 || v2, y2 = t.useCallback((function(e3, t2) {
596
- g2({ type: l.setFilter, columnId: e3, filterValue: t2 });
597
- }), [g2]), R2 = t.useCallback((function(e3) {
598
- g2({ type: l.setAllFilters, filters: e3 });
599
- }), [g2]);
600
- u2.forEach((function(e3) {
601
- var t2 = e3.id, n3 = e3.accessor, o3 = e3.defaultCanFilter, r3 = e3.disableFilters;
602
- e3.canFilter = n3 ? I(true !== r3 && void 0, true !== f2 && void 0, true) : I(o3, d2, false), e3.setFilter = function(t3) {
603
- return y2(e3.id, t3);
604
- };
605
- var i3 = p2.find((function(e4) {
606
- return e4.id === t2;
607
- }));
608
- e3.filterValue = i3 && i3.value;
609
- }));
610
- var b2 = t.useMemo((function() {
611
- if (a2 || !p2.length) return [o2, r2, i2];
612
- var e3 = [], t2 = {};
613
- return [(function n3(o3, r3) {
614
- void 0 === r3 && (r3 = 0);
615
- var i3 = o3;
616
- return (i3 = p2.reduce((function(e4, t3) {
617
- var n4 = t3.id, o4 = t3.value, i4 = u2.find((function(e5) {
618
- return e5.id === n4;
619
- }));
620
- if (!i4) return e4;
621
- 0 === r3 && (i4.preFilteredRows = e4);
622
- var l2 = k(i4.filter, s2 || {}, xe);
623
- return l2 ? (i4.filteredRows = l2(e4, [n4], o4), i4.filteredRows) : (console.warn("Could not find a valid 'column.filter' for column with the ID: " + i4.id + "."), e4);
624
- }), o3)).forEach((function(o4) {
625
- e3.push(o4), t2[o4.id] = o4, o4.subRows && (o4.subRows = o4.subRows && o4.subRows.length > 0 ? n3(o4.subRows, r3 + 1) : o4.subRows);
626
- })), i3;
627
- })(o2), e3, t2];
628
- }), [a2, p2, o2, r2, i2, u2, s2]), S2 = b2[0], C2 = b2[1], x2 = b2[2];
629
- t.useMemo((function() {
630
- u2.filter((function(e3) {
631
- return !p2.find((function(t2) {
632
- return t2.id === e3.id;
633
- }));
634
- })).forEach((function(e3) {
635
- e3.preFilteredRows = S2, e3.filteredRows = S2;
636
- }));
637
- }), [S2, p2, u2]);
638
- var P2 = h(m2);
639
- w((function() {
640
- P2() && g2({ type: l.resetFilters });
641
- }), [g2, a2 ? null : n2]), Object.assign(e2, { preFilteredRows: o2, preFilteredFlatRows: r2, preFilteredRowsById: i2, filteredRows: S2, filteredFlatRows: C2, filteredRowsById: x2, rows: S2, flatRows: C2, rowsById: x2, setFilter: y2, setAllFilters: R2 });
642
- }
643
- Pe.pluginName = "useFilters", l.resetGlobalFilter = "resetGlobalFilter", l.setGlobalFilter = "setGlobalFilter";
644
- var Ie = function(e2) {
645
- e2.stateReducers.push(Fe), e2.useInstance.push(Ge);
646
- };
647
- function Fe(e2, t2, n2, o2) {
648
- if (t2.type === l.resetGlobalFilter) return r({}, e2, { globalFilter: o2.initialState.globalFilter || void 0 });
649
- if (t2.type === l.setGlobalFilter) {
650
- var u2 = t2.filterValue, s2 = o2.userFilterTypes, a2 = k(o2.globalFilter, s2 || {}, xe), c2 = m(u2, e2.globalFilter);
651
- if (H(a2.autoRemove, c2)) {
652
- e2.globalFilter;
653
- return i(e2, ["globalFilter"]);
654
- }
655
- return r({}, e2, { globalFilter: c2 });
656
- }
657
- }
658
- function Ge(e2) {
659
- var n2 = e2.data, o2 = e2.rows, r2 = e2.flatRows, i2 = e2.rowsById, u2 = e2.allColumns, s2 = e2.filterTypes, a2 = e2.globalFilter, c2 = e2.manualGlobalFilter, d2 = e2.state.globalFilter, f2 = e2.dispatch, p2 = e2.autoResetGlobalFilter, g2 = void 0 === p2 || p2, v2 = e2.disableGlobalFilter, m2 = t.useCallback((function(e3) {
660
- f2({ type: l.setGlobalFilter, filterValue: e3 });
661
- }), [f2]), y2 = t.useMemo((function() {
662
- if (c2 || void 0 === d2) return [o2, r2, i2];
663
- var e3 = [], t2 = {}, n3 = k(a2, s2 || {}, xe);
664
- if (!n3) return console.warn("Could not find a valid 'globalFilter' option."), o2;
665
- u2.forEach((function(e4) {
666
- var t3 = e4.disableGlobalFilter;
667
- e4.canFilter = I(true !== t3 && void 0, true !== v2 && void 0, true);
668
- }));
669
- var l2 = u2.filter((function(e4) {
670
- return true === e4.canFilter;
671
- }));
672
- return [(function o3(r3) {
673
- return (r3 = n3(r3, l2.map((function(e4) {
674
- return e4.id;
675
- })), d2)).forEach((function(n4) {
676
- e3.push(n4), t2[n4.id] = n4, n4.subRows = n4.subRows && n4.subRows.length ? o3(n4.subRows) : n4.subRows;
677
- })), r3;
678
- })(o2), e3, t2];
679
- }), [c2, d2, a2, s2, u2, o2, r2, i2, v2]), R2 = y2[0], b2 = y2[1], S2 = y2[2], C2 = h(g2);
680
- w((function() {
681
- C2() && f2({ type: l.resetGlobalFilter });
682
- }), [f2, c2 ? null : n2]), Object.assign(e2, { preGlobalFilteredRows: o2, preGlobalFilteredFlatRows: r2, preGlobalFilteredRowsById: i2, globalFilteredRows: R2, globalFilteredFlatRows: b2, globalFilteredRowsById: S2, rows: R2, flatRows: b2, rowsById: S2, setGlobalFilter: m2, disableGlobalFilter: v2 });
683
- }
684
- function Ae(e2, t2) {
685
- return t2.reduce((function(e3, t3) {
686
- return e3 + ("number" == typeof t3 ? t3 : 0);
687
- }), 0);
688
- }
689
- Ie.pluginName = "useGlobalFilter";
690
- var ke = Object.freeze({ __proto__: null, sum: Ae, min: function(e2) {
691
- var t2 = e2[0] || 0;
692
- return e2.forEach((function(e3) {
693
- "number" == typeof e3 && (t2 = Math.min(t2, e3));
694
- })), t2;
695
- }, max: function(e2) {
696
- var t2 = e2[0] || 0;
697
- return e2.forEach((function(e3) {
698
- "number" == typeof e3 && (t2 = Math.max(t2, e3));
699
- })), t2;
700
- }, minMax: function(e2) {
701
- var t2 = e2[0] || 0, n2 = e2[0] || 0;
702
- return e2.forEach((function(e3) {
703
- "number" == typeof e3 && (t2 = Math.min(t2, e3), n2 = Math.max(n2, e3));
704
- })), t2 + ".." + n2;
705
- }, average: function(e2) {
706
- return Ae(0, e2) / e2.length;
707
- }, median: function(e2) {
708
- if (!e2.length) return null;
709
- var t2 = Math.floor(e2.length / 2), n2 = [].concat(e2).sort((function(e3, t3) {
710
- return e3 - t3;
711
- }));
712
- return e2.length % 2 != 0 ? n2[t2] : (n2[t2 - 1] + n2[t2]) / 2;
713
- }, unique: function(e2) {
714
- return Array.from(new Set(e2).values());
715
- }, uniqueCount: function(e2) {
716
- return new Set(e2).size;
717
- }, count: function(e2) {
718
- return e2.length;
719
- } }), He = [], We = {};
720
- l.resetGroupBy = "resetGroupBy", l.setGroupBy = "setGroupBy", l.toggleGroupBy = "toggleGroupBy";
721
- var ze = function(e2) {
722
- e2.getGroupByToggleProps = [Te], e2.stateReducers.push(Oe), e2.visibleColumnsDeps.push((function(e3, t2) {
723
- var n2 = t2.instance;
724
- return [].concat(e3, [n2.state.groupBy]);
725
- })), e2.visibleColumns.push(Me), e2.useInstance.push(Le), e2.prepareRow.push(Ne);
726
- };
727
- ze.pluginName = "useGroupBy";
728
- var Te = function(e2, t2) {
729
- var n2 = t2.header;
730
- return [e2, { onClick: n2.canGroupBy ? function(e3) {
731
- e3.persist(), n2.toggleGroupBy();
732
- } : void 0, style: { cursor: n2.canGroupBy ? "pointer" : void 0 }, title: "Toggle GroupBy" }];
733
- };
734
- function Oe(e2, t2, n2, o2) {
735
- if (t2.type === l.init) return r({ groupBy: [] }, e2);
736
- if (t2.type === l.resetGroupBy) return r({}, e2, { groupBy: o2.initialState.groupBy || [] });
737
- if (t2.type === l.setGroupBy) return r({}, e2, { groupBy: t2.value });
738
- if (t2.type === l.toggleGroupBy) {
739
- var i2 = t2.columnId, u2 = t2.value, s2 = void 0 !== u2 ? u2 : !e2.groupBy.includes(i2);
740
- return r({}, e2, s2 ? { groupBy: [].concat(e2.groupBy, [i2]) } : { groupBy: e2.groupBy.filter((function(e3) {
741
- return e3 !== i2;
742
- })) });
743
- }
744
- }
745
- function Me(e2, t2) {
746
- var n2 = t2.instance.state.groupBy, o2 = n2.map((function(t3) {
747
- return e2.find((function(e3) {
748
- return e3.id === t3;
749
- }));
750
- })).filter(Boolean), r2 = e2.filter((function(e3) {
751
- return !n2.includes(e3.id);
752
- }));
753
- return (e2 = [].concat(o2, r2)).forEach((function(e3) {
754
- e3.isGrouped = n2.includes(e3.id), e3.groupedIndex = n2.indexOf(e3.id);
755
- })), e2;
756
- }
757
- var je = {};
758
- function Le(e2) {
759
- var n2 = e2.data, o2 = e2.rows, i2 = e2.flatRows, u2 = e2.rowsById, s2 = e2.allColumns, a2 = e2.flatHeaders, c2 = e2.groupByFn, d2 = void 0 === c2 ? De : c2, p2 = e2.manualGroupBy, g2 = e2.aggregations, m2 = void 0 === g2 ? je : g2, y2 = e2.plugins, R2 = e2.state.groupBy, b2 = e2.dispatch, S2 = e2.autoResetGroupBy, C2 = void 0 === S2 || S2, x2 = e2.disableGroupBy, P2 = e2.defaultCanGroupBy, B2 = e2.getHooks;
760
- v(y2, ["useColumnOrder", "useFilters"], "useGroupBy");
761
- var E2 = h(e2);
762
- s2.forEach((function(t2) {
763
- var n3 = t2.accessor, o3 = t2.defaultGroupBy, r2 = t2.disableGroupBy;
764
- t2.canGroupBy = n3 ? I(t2.canGroupBy, true !== r2 && void 0, true !== x2 && void 0, true) : I(t2.canGroupBy, o3, P2, false), t2.canGroupBy && (t2.toggleGroupBy = function() {
765
- return e2.toggleGroupBy(t2.id);
766
- }), t2.Aggregated = t2.Aggregated || t2.Cell;
767
- }));
768
- var F2 = t.useCallback((function(e3, t2) {
769
- b2({ type: l.toggleGroupBy, columnId: e3, value: t2 });
770
- }), [b2]), A2 = t.useCallback((function(e3) {
771
- b2({ type: l.setGroupBy, value: e3 });
772
- }), [b2]);
773
- a2.forEach((function(e3) {
774
- e3.getGroupByToggleProps = f(B2().getGroupByToggleProps, { instance: E2(), header: e3 });
775
- }));
776
- var k2 = t.useMemo((function() {
777
- if (p2 || !R2.length) return [o2, i2, u2, He, We, i2, u2];
778
- var e3 = R2.filter((function(e4) {
779
- return s2.find((function(t3) {
780
- return t3.id === e4;
781
- }));
782
- })), t2 = [], n3 = {}, l2 = [], a3 = {}, c3 = [], f2 = {}, g3 = (function o3(i3, u3, p3) {
783
- if (void 0 === u3 && (u3 = 0), u3 === e3.length) return i3.map((function(e4) {
784
- return r({}, e4, { depth: u3 });
785
- }));
786
- var g4 = e3[u3], v2 = d2(i3, g4);
787
- return Object.entries(v2).map((function(r2, i4) {
788
- var d3 = r2[0], v3 = r2[1], h2 = g4 + ":" + d3, y3 = o3(v3, u3 + 1, h2 = p3 ? p3 + ">" + h2 : h2), w2 = u3 ? G(v3, "leafRows") : v3, R3 = (function(t3, n4, o4) {
789
- var r3 = {};
790
- return s2.forEach((function(i5) {
791
- if (e3.includes(i5.id)) r3[i5.id] = n4[0] ? n4[0].values[i5.id] : null;
792
- else {
793
- var u4 = "function" == typeof i5.aggregate ? i5.aggregate : m2[i5.aggregate] || ke[i5.aggregate];
794
- if (u4) {
795
- var l3 = n4.map((function(e4) {
796
- return e4.values[i5.id];
797
- })), s3 = t3.map((function(e4) {
798
- var t4 = e4.values[i5.id];
799
- if (!o4 && i5.aggregateValue) {
800
- var n5 = "function" == typeof i5.aggregateValue ? i5.aggregateValue : m2[i5.aggregateValue] || ke[i5.aggregateValue];
801
- if (!n5) throw console.info({ column: i5 }), new Error("React Table: Invalid column.aggregateValue option for column listed above");
802
- t4 = n5(t4, e4, i5);
803
- }
804
- return t4;
805
- }));
806
- r3[i5.id] = u4(s3, l3);
807
- } else {
808
- if (i5.aggregate) throw console.info({ column: i5 }), new Error("React Table: Invalid column.aggregate option for column listed above");
809
- r3[i5.id] = null;
810
- }
811
- }
812
- })), r3;
813
- })(w2, v3, u3), b3 = { id: h2, isGrouped: true, groupByID: g4, groupByVal: d3, values: R3, subRows: y3, leafRows: w2, depth: u3, index: i4 };
814
- return y3.forEach((function(e4) {
815
- t2.push(e4), n3[e4.id] = e4, e4.isGrouped ? (l2.push(e4), a3[e4.id] = e4) : (c3.push(e4), f2[e4.id] = e4);
816
- })), b3;
817
- }));
818
- })(o2);
819
- return g3.forEach((function(e4) {
820
- t2.push(e4), n3[e4.id] = e4, e4.isGrouped ? (l2.push(e4), a3[e4.id] = e4) : (c3.push(e4), f2[e4.id] = e4);
821
- })), [g3, t2, n3, l2, a3, c3, f2];
822
- }), [p2, R2, o2, i2, u2, s2, m2, d2]), H2 = k2[0], W2 = k2[1], z2 = k2[2], T2 = k2[3], O2 = k2[4], M2 = k2[5], j2 = k2[6], L2 = h(C2);
823
- w((function() {
824
- L2() && b2({ type: l.resetGroupBy });
825
- }), [b2, p2 ? null : n2]), Object.assign(e2, { preGroupedRows: o2, preGroupedFlatRow: i2, preGroupedRowsById: u2, groupedRows: H2, groupedFlatRows: W2, groupedRowsById: z2, onlyGroupedFlatRows: T2, onlyGroupedRowsById: O2, nonGroupedFlatRows: M2, nonGroupedRowsById: j2, rows: H2, flatRows: W2, rowsById: z2, toggleGroupBy: F2, setGroupBy: A2 });
826
- }
827
- function Ne(e2) {
828
- e2.allCells.forEach((function(t2) {
829
- var n2;
830
- t2.isGrouped = t2.column.isGrouped && t2.column.id === e2.groupByID, t2.isPlaceholder = !t2.isGrouped && t2.column.isGrouped, t2.isAggregated = !t2.isGrouped && !t2.isPlaceholder && (null == (n2 = e2.subRows) ? void 0 : n2.length);
831
- }));
832
- }
833
- function De(e2, t2) {
834
- return e2.reduce((function(e3, n2, o2) {
835
- var r2 = "" + n2.values[t2];
836
- return e3[r2] = Array.isArray(e3[r2]) ? e3[r2] : [], e3[r2].push(n2), e3;
837
- }), {});
838
- }
839
- var Ve = /([0-9]+)/gm;
840
- function _e(e2, t2) {
841
- return e2 === t2 ? 0 : e2 > t2 ? 1 : -1;
842
- }
843
- function Xe(e2, t2, n2) {
844
- return [e2.values[n2], t2.values[n2]];
845
- }
846
- function qe(e2) {
847
- return "number" == typeof e2 ? isNaN(e2) || e2 === 1 / 0 || e2 === -1 / 0 ? "" : String(e2) : "string" == typeof e2 ? e2 : "";
848
- }
849
- var Ke = Object.freeze({ __proto__: null, alphanumeric: function(e2, t2, n2) {
850
- var o2 = Xe(e2, t2, n2), r2 = o2[0], i2 = o2[1];
851
- for (r2 = qe(r2), i2 = qe(i2), r2 = r2.split(Ve).filter(Boolean), i2 = i2.split(Ve).filter(Boolean); r2.length && i2.length; ) {
852
- var u2 = r2.shift(), l2 = i2.shift(), s2 = parseInt(u2, 10), a2 = parseInt(l2, 10), c2 = [s2, a2].sort();
853
- if (isNaN(c2[0])) {
854
- if (u2 > l2) return 1;
855
- if (l2 > u2) return -1;
856
- } else {
857
- if (isNaN(c2[1])) return isNaN(s2) ? -1 : 1;
858
- if (s2 > a2) return 1;
859
- if (a2 > s2) return -1;
860
- }
861
- }
862
- return r2.length - i2.length;
863
- }, datetime: function(e2, t2, n2) {
864
- var o2 = Xe(e2, t2, n2), r2 = o2[0], i2 = o2[1];
865
- return _e(r2 = r2.getTime(), i2 = i2.getTime());
866
- }, basic: function(e2, t2, n2) {
867
- var o2 = Xe(e2, t2, n2);
868
- return _e(o2[0], o2[1]);
869
- }, string: function(e2, t2, n2) {
870
- var o2 = Xe(e2, t2, n2), r2 = o2[0], i2 = o2[1];
871
- for (r2 = r2.split("").filter(Boolean), i2 = i2.split("").filter(Boolean); r2.length && i2.length; ) {
872
- var u2 = r2.shift(), l2 = i2.shift(), s2 = u2.toLowerCase(), a2 = l2.toLowerCase();
873
- if (s2 > a2) return 1;
874
- if (a2 > s2) return -1;
875
- if (u2 > l2) return 1;
876
- if (l2 > u2) return -1;
877
- }
878
- return r2.length - i2.length;
879
- }, number: function(e2, t2, n2) {
880
- var o2 = Xe(e2, t2, n2), r2 = o2[0], i2 = o2[1], u2 = /[^0-9.]/gi;
881
- return _e(r2 = Number(String(r2).replace(u2, "")), i2 = Number(String(i2).replace(u2, "")));
882
- } });
883
- l.resetSortBy = "resetSortBy", l.setSortBy = "setSortBy", l.toggleSortBy = "toggleSortBy", l.clearSortBy = "clearSortBy", c.sortType = "alphanumeric", c.sortDescFirst = false;
884
- var Ue = function(e2) {
885
- e2.getSortByToggleProps = [$e], e2.stateReducers.push(Je), e2.useInstance.push(Ye);
886
- };
887
- Ue.pluginName = "useSortBy";
888
- var $e = function(e2, t2) {
889
- var n2 = t2.instance, o2 = t2.column, r2 = n2.isMultiSortEvent, i2 = void 0 === r2 ? function(e3) {
890
- return e3.shiftKey;
891
- } : r2;
892
- return [e2, { onClick: o2.canSort ? function(e3) {
893
- e3.persist(), o2.toggleSortBy(void 0, !n2.disableMultiSort && i2(e3));
894
- } : void 0, style: { cursor: o2.canSort ? "pointer" : void 0 }, title: o2.canSort ? "Toggle SortBy" : void 0 }];
895
- };
896
- function Je(e2, t2, n2, o2) {
897
- if (t2.type === l.init) return r({ sortBy: [] }, e2);
898
- if (t2.type === l.resetSortBy) return r({}, e2, { sortBy: o2.initialState.sortBy || [] });
899
- if (t2.type === l.clearSortBy) return r({}, e2, { sortBy: e2.sortBy.filter((function(e3) {
900
- return e3.id !== t2.columnId;
901
- })) });
902
- if (t2.type === l.setSortBy) return r({}, e2, { sortBy: t2.sortBy });
903
- if (t2.type === l.toggleSortBy) {
904
- var i2, u2 = t2.columnId, s2 = t2.desc, a2 = t2.multi, c2 = o2.allColumns, d2 = o2.disableMultiSort, f2 = o2.disableSortRemove, p2 = o2.disableMultiRemove, g2 = o2.maxMultiSortColCount, v2 = void 0 === g2 ? Number.MAX_SAFE_INTEGER : g2, m2 = e2.sortBy, h2 = c2.find((function(e3) {
905
- return e3.id === u2;
906
- })).sortDescFirst, y2 = m2.find((function(e3) {
907
- return e3.id === u2;
908
- })), w2 = m2.findIndex((function(e3) {
909
- return e3.id === u2;
910
- })), R2 = null != s2, b2 = [];
911
- return "toggle" !== (i2 = !d2 && a2 ? y2 ? "toggle" : "add" : w2 !== m2.length - 1 || 1 !== m2.length ? "replace" : y2 ? "toggle" : "replace") || f2 || R2 || a2 && p2 || !(y2 && y2.desc && !h2 || !y2.desc && h2) || (i2 = "remove"), "replace" === i2 ? b2 = [{ id: u2, desc: R2 ? s2 : h2 }] : "add" === i2 ? (b2 = [].concat(m2, [{ id: u2, desc: R2 ? s2 : h2 }])).splice(0, b2.length - v2) : "toggle" === i2 ? b2 = m2.map((function(e3) {
912
- return e3.id === u2 ? r({}, e3, { desc: R2 ? s2 : !y2.desc }) : e3;
913
- })) : "remove" === i2 && (b2 = m2.filter((function(e3) {
914
- return e3.id !== u2;
915
- }))), r({}, e2, { sortBy: b2 });
916
- }
917
- }
918
- function Ye(e2) {
919
- var n2 = e2.data, o2 = e2.rows, r2 = e2.flatRows, i2 = e2.allColumns, u2 = e2.orderByFn, s2 = void 0 === u2 ? Qe : u2, a2 = e2.sortTypes, c2 = e2.manualSortBy, d2 = e2.defaultCanSort, p2 = e2.disableSortBy, g2 = e2.flatHeaders, m2 = e2.state.sortBy, y2 = e2.dispatch, R2 = e2.plugins, b2 = e2.getHooks, S2 = e2.autoResetSortBy, C2 = void 0 === S2 || S2;
920
- v(R2, ["useFilters", "useGlobalFilter", "useGroupBy", "usePivotColumns"], "useSortBy");
921
- var x2 = t.useCallback((function(e3) {
922
- y2({ type: l.setSortBy, sortBy: e3 });
923
- }), [y2]), P2 = t.useCallback((function(e3, t2, n3) {
924
- y2({ type: l.toggleSortBy, columnId: e3, desc: t2, multi: n3 });
925
- }), [y2]), B2 = h(e2);
926
- g2.forEach((function(e3) {
927
- var t2 = e3.accessor, n3 = e3.canSort, o3 = e3.disableSortBy, r3 = e3.id, i3 = t2 ? I(true !== o3 && void 0, true !== p2 && void 0, true) : I(d2, n3, false);
928
- e3.canSort = i3, e3.canSort && (e3.toggleSortBy = function(t3, n4) {
929
- return P2(e3.id, t3, n4);
930
- }, e3.clearSortBy = function() {
931
- y2({ type: l.clearSortBy, columnId: e3.id });
932
- }), e3.getSortByToggleProps = f(b2().getSortByToggleProps, { instance: B2(), column: e3 });
933
- var u3 = m2.find((function(e4) {
934
- return e4.id === r3;
935
- }));
936
- e3.isSorted = !!u3, e3.sortedIndex = m2.findIndex((function(e4) {
937
- return e4.id === r3;
938
- })), e3.isSortedDesc = e3.isSorted ? u3.desc : void 0;
939
- }));
940
- var E2 = t.useMemo((function() {
941
- if (c2 || !m2.length) return [o2, r2];
942
- var e3 = [], t2 = m2.filter((function(e4) {
943
- return i2.find((function(t3) {
944
- return t3.id === e4.id;
945
- }));
946
- }));
947
- return [(function n3(o3) {
948
- var r3 = s2(o3, t2.map((function(e4) {
949
- var t3 = i2.find((function(t4) {
950
- return t4.id === e4.id;
951
- }));
952
- if (!t3) throw new Error("React-Table: Could not find a column with id: " + e4.id + " while sorting");
953
- var n4 = t3.sortType, o4 = F(n4) || (a2 || {})[n4] || Ke[n4];
954
- if (!o4) throw new Error("React-Table: Could not find a valid sortType of '" + n4 + "' for column '" + e4.id + "'.");
955
- return function(t4, n5) {
956
- return o4(t4, n5, e4.id, e4.desc);
957
- };
958
- })), t2.map((function(e4) {
959
- var t3 = i2.find((function(t4) {
960
- return t4.id === e4.id;
961
- }));
962
- return t3 && t3.sortInverted ? e4.desc : !e4.desc;
963
- })));
964
- return r3.forEach((function(t3) {
965
- e3.push(t3), t3.subRows && 0 !== t3.subRows.length && (t3.subRows = n3(t3.subRows));
966
- })), r3;
967
- })(o2), e3];
968
- }), [c2, m2, o2, r2, i2, s2, a2]), G2 = E2[0], A2 = E2[1], k2 = h(C2);
969
- w((function() {
970
- k2() && y2({ type: l.resetSortBy });
971
- }), [c2 ? null : n2]), Object.assign(e2, { preSortedRows: o2, preSortedFlatRows: r2, sortedRows: G2, sortedFlatRows: A2, rows: G2, flatRows: A2, setSortBy: x2, toggleSortBy: P2 });
972
- }
973
- function Qe(e2, t2, n2) {
974
- return [].concat(e2).sort((function(e3, o2) {
975
- for (var r2 = 0; r2 < t2.length; r2 += 1) {
976
- var i2 = t2[r2], u2 = false === n2[r2] || "desc" === n2[r2], l2 = i2(e3, o2);
977
- if (0 !== l2) return u2 ? -l2 : l2;
978
- }
979
- return n2[0] ? e3.index - o2.index : o2.index - e3.index;
980
- }));
981
- }
982
- l.resetPage = "resetPage", l.gotoPage = "gotoPage", l.setPageSize = "setPageSize";
983
- var Ze = function(e2) {
984
- e2.stateReducers.push(et), e2.useInstance.push(tt);
985
- };
986
- function et(e2, t2, n2, o2) {
987
- if (t2.type === l.init) return r({ pageSize: 10, pageIndex: 0 }, e2);
988
- if (t2.type === l.resetPage) return r({}, e2, { pageIndex: o2.initialState.pageIndex || 0 });
989
- if (t2.type === l.gotoPage) {
990
- var i2 = o2.pageCount, u2 = o2.page, s2 = m(t2.pageIndex, e2.pageIndex), a2 = false;
991
- return s2 > e2.pageIndex ? a2 = -1 === i2 ? u2.length >= e2.pageSize : s2 < i2 : s2 < e2.pageIndex && (a2 = s2 > -1), a2 ? r({}, e2, { pageIndex: s2 }) : e2;
992
- }
993
- if (t2.type === l.setPageSize) {
994
- var c2 = t2.pageSize, d2 = e2.pageSize * e2.pageIndex;
995
- return r({}, e2, { pageIndex: Math.floor(d2 / c2), pageSize: c2 });
996
- }
997
- }
998
- function tt(e2) {
999
- var n2 = e2.rows, o2 = e2.autoResetPage, r2 = void 0 === o2 || o2, i2 = e2.manualExpandedKey, u2 = void 0 === i2 ? "expanded" : i2, s2 = e2.plugins, a2 = e2.pageCount, c2 = e2.paginateExpandedRows, d2 = void 0 === c2 || c2, f2 = e2.expandSubRows, p2 = void 0 === f2 || f2, g2 = e2.state, m2 = g2.pageSize, y2 = g2.pageIndex, R2 = g2.expanded, b2 = g2.globalFilter, S2 = g2.filters, C2 = g2.groupBy, x2 = g2.sortBy, P2 = e2.dispatch, B2 = e2.data, E2 = e2.manualPagination;
1000
- v(s2, ["useGlobalFilter", "useFilters", "useGroupBy", "useSortBy", "useExpanded"], "usePagination");
1001
- var I2 = h(r2);
1002
- w((function() {
1003
- I2() && P2({ type: l.resetPage });
1004
- }), [P2, E2 ? null : B2, b2, S2, C2, x2]);
1005
- var F2 = E2 ? a2 : Math.ceil(n2.length / m2), G2 = t.useMemo((function() {
1006
- return F2 > 0 ? [].concat(new Array(F2)).fill(null).map((function(e3, t2) {
1007
- return t2;
1008
- })) : [];
1009
- }), [F2]), k2 = t.useMemo((function() {
1010
- var e3;
1011
- if (E2) e3 = n2;
1012
- else {
1013
- var t2 = m2 * y2, o3 = t2 + m2;
1014
- e3 = n2.slice(t2, o3);
1015
- }
1016
- return d2 ? e3 : A(e3, { manualExpandedKey: u2, expanded: R2, expandSubRows: p2 });
1017
- }), [p2, R2, u2, E2, y2, m2, d2, n2]), H2 = y2 > 0, W2 = -1 === F2 ? k2.length >= m2 : y2 < F2 - 1, z2 = t.useCallback((function(e3) {
1018
- P2({ type: l.gotoPage, pageIndex: e3 });
1019
- }), [P2]), T2 = t.useCallback((function() {
1020
- return z2((function(e3) {
1021
- return e3 - 1;
1022
- }));
1023
- }), [z2]), O2 = t.useCallback((function() {
1024
- return z2((function(e3) {
1025
- return e3 + 1;
1026
- }));
1027
- }), [z2]), M2 = t.useCallback((function(e3) {
1028
- P2({ type: l.setPageSize, pageSize: e3 });
1029
- }), [P2]);
1030
- Object.assign(e2, { pageOptions: G2, pageCount: F2, page: k2, canPreviousPage: H2, canNextPage: W2, gotoPage: z2, previousPage: T2, nextPage: O2, setPageSize: M2 });
1031
- }
1032
- Ze.pluginName = "usePagination", l.resetPivot = "resetPivot", l.togglePivot = "togglePivot";
1033
- var nt = function(e2) {
1034
- e2.getPivotToggleProps = [rt], e2.stateReducers.push(it), e2.useInstanceAfterData.push(ut), e2.allColumns.push(lt), e2.accessValue.push(st), e2.materializedColumns.push(at), e2.materializedColumnsDeps.push(ct), e2.visibleColumns.push(dt), e2.visibleColumnsDeps.push(ft), e2.useInstance.push(pt), e2.prepareRow.push(gt);
1035
- };
1036
- nt.pluginName = "usePivotColumns";
1037
- var ot = [], rt = function(e2, t2) {
1038
- var n2 = t2.header;
1039
- return [e2, { onClick: n2.canPivot ? function(e3) {
1040
- e3.persist(), n2.togglePivot();
1041
- } : void 0, style: { cursor: n2.canPivot ? "pointer" : void 0 }, title: "Toggle Pivot" }];
1042
- };
1043
- function it(e2, t2, n2, o2) {
1044
- if (t2.type === l.init) return r({ pivotColumns: ot }, e2);
1045
- if (t2.type === l.resetPivot) return r({}, e2, { pivotColumns: o2.initialState.pivotColumns || ot });
1046
- if (t2.type === l.togglePivot) {
1047
- var i2 = t2.columnId, u2 = t2.value, s2 = void 0 !== u2 ? u2 : !e2.pivotColumns.includes(i2);
1048
- return r({}, e2, s2 ? { pivotColumns: [].concat(e2.pivotColumns, [i2]) } : { pivotColumns: e2.pivotColumns.filter((function(e3) {
1049
- return e3 !== i2;
1050
- })) });
1051
- }
1052
- }
1053
- function ut(e2) {
1054
- e2.allColumns.forEach((function(t2) {
1055
- t2.isPivotSource = e2.state.pivotColumns.includes(t2.id);
1056
- }));
1057
- }
1058
- function lt(e2, t2) {
1059
- var n2 = t2.instance;
1060
- return e2.forEach((function(e3) {
1061
- e3.isPivotSource = n2.state.pivotColumns.includes(e3.id), e3.uniqueValues = /* @__PURE__ */ new Set();
1062
- })), e2;
1063
- }
1064
- function st(e2, t2) {
1065
- var n2 = t2.column;
1066
- return n2.uniqueValues && void 0 !== e2 && n2.uniqueValues.add(e2), e2;
1067
- }
1068
- function at(e2, t2) {
1069
- var n2 = t2.instance, o2 = n2.allColumns, i2 = n2.state;
1070
- if (!i2.pivotColumns.length || !i2.groupBy || !i2.groupBy.length) return e2;
1071
- var u2 = i2.pivotColumns.map((function(e3) {
1072
- return o2.find((function(t3) {
1073
- return t3.id === e3;
1074
- }));
1075
- })).filter(Boolean), l2 = o2.filter((function(e3) {
1076
- return !e3.isPivotSource && !i2.groupBy.includes(e3.id) && !i2.pivotColumns.includes(e3.id);
1077
- })), s2 = C((function e3(t3, n3, o3) {
1078
- void 0 === t3 && (t3 = 0), void 0 === o3 && (o3 = []);
1079
- var i3 = u2[t3];
1080
- return i3 ? Array.from(i3.uniqueValues).sort().map((function(u3) {
1081
- var l3 = r({}, i3, { Header: i3.PivotHeader || "string" == typeof i3.header ? i3.Header + ": " + u3 : u3, isPivotGroup: true, parent: n3, depth: t3, id: n3 ? n3.id + "." + i3.id + "." + u3 : i3.id + "." + u3, pivotValue: u3 });
1082
- return l3.columns = e3(t3 + 1, l3, [].concat(o3, [function(e4) {
1083
- return e4.values[i3.id] === u3;
1084
- }])), l3;
1085
- })) : l2.map((function(e4) {
1086
- return r({}, e4, { canPivot: false, isPivoted: true, parent: n3, depth: t3, id: "" + (n3 ? n3.id + "." + e4.id : e4.id), accessor: function(t4, n4, r2) {
1087
- if (o3.every((function(e5) {
1088
- return e5(r2);
1089
- }))) return r2.values[e4.id];
1090
- } });
1091
- }));
1092
- })());
1093
- return [].concat(e2, s2);
1094
- }
1095
- function ct(e2, t2) {
1096
- var n2 = t2.instance.state, o2 = n2.pivotColumns, r2 = n2.groupBy;
1097
- return [].concat(e2, [o2, r2]);
1098
- }
1099
- function dt(e2, t2) {
1100
- var n2 = t2.instance.state;
1101
- return e2 = e2.filter((function(e3) {
1102
- return !e3.isPivotSource;
1103
- })), n2.pivotColumns.length && n2.groupBy && n2.groupBy.length && (e2 = e2.filter((function(e3) {
1104
- return e3.isGrouped || e3.isPivoted;
1105
- }))), e2;
1106
- }
1107
- function ft(e2, t2) {
1108
- var n2 = t2.instance;
1109
- return [].concat(e2, [n2.state.pivotColumns, n2.state.groupBy]);
1110
- }
1111
- function pt(e2) {
1112
- var t2 = e2.columns, n2 = e2.allColumns, o2 = e2.flatHeaders, r2 = e2.getHooks, i2 = e2.plugins, u2 = e2.dispatch, s2 = e2.autoResetPivot, a2 = void 0 === s2 || s2, c2 = e2.manaulPivot, d2 = e2.disablePivot, p2 = e2.defaultCanPivot;
1113
- v(i2, ["useGroupBy"], "usePivotColumns");
1114
- var g2 = h(e2);
1115
- n2.forEach((function(t3) {
1116
- var n3 = t3.accessor, o3 = t3.defaultPivot, r3 = t3.disablePivot;
1117
- t3.canPivot = n3 ? I(t3.canPivot, true !== r3 && void 0, true !== d2 && void 0, true) : I(t3.canPivot, o3, p2, false), t3.canPivot && (t3.togglePivot = function() {
1118
- return e2.togglePivot(t3.id);
1119
- }), t3.Aggregated = t3.Aggregated || t3.Cell;
1120
- }));
1121
- o2.forEach((function(e3) {
1122
- e3.getPivotToggleProps = f(r2().getPivotToggleProps, { instance: g2(), header: e3 });
1123
- }));
1124
- var m2 = h(a2);
1125
- w((function() {
1126
- m2() && u2({ type: l.resetPivot });
1127
- }), [u2, c2 ? null : t2]), Object.assign(e2, { togglePivot: function(e3, t3) {
1128
- u2({ type: l.togglePivot, columnId: e3, value: t3 });
1129
- } });
1130
- }
1131
- function gt(e2) {
1132
- e2.allCells.forEach((function(e3) {
1133
- e3.isPivoted = e3.column.isPivoted;
1134
- }));
1135
- }
1136
- l.resetSelectedRows = "resetSelectedRows", l.toggleAllRowsSelected = "toggleAllRowsSelected", l.toggleRowSelected = "toggleRowSelected", l.toggleAllPageRowsSelected = "toggleAllPageRowsSelected";
1137
- var vt = function(e2) {
1138
- e2.getToggleRowSelectedProps = [mt], e2.getToggleAllRowsSelectedProps = [ht], e2.getToggleAllPageRowsSelectedProps = [yt], e2.stateReducers.push(wt), e2.useInstance.push(Rt), e2.prepareRow.push(bt);
1139
- };
1140
- vt.pluginName = "useRowSelect";
1141
- var mt = function(e2, t2) {
1142
- var n2 = t2.instance, o2 = t2.row, r2 = n2.manualRowSelectedKey, i2 = void 0 === r2 ? "isSelected" : r2;
1143
- return [e2, { onChange: function(e3) {
1144
- o2.toggleRowSelected(e3.target.checked);
1145
- }, style: { cursor: "pointer" }, checked: !(!o2.original || !o2.original[i2]) || o2.isSelected, title: "Toggle Row Selected", indeterminate: o2.isSomeSelected }];
1146
- }, ht = function(e2, t2) {
1147
- var n2 = t2.instance;
1148
- return [e2, { onChange: function(e3) {
1149
- n2.toggleAllRowsSelected(e3.target.checked);
1150
- }, style: { cursor: "pointer" }, checked: n2.isAllRowsSelected, title: "Toggle All Rows Selected", indeterminate: Boolean(!n2.isAllRowsSelected && Object.keys(n2.state.selectedRowIds).length) }];
1151
- }, yt = function(e2, t2) {
1152
- var n2 = t2.instance;
1153
- return [e2, { onChange: function(e3) {
1154
- n2.toggleAllPageRowsSelected(e3.target.checked);
1155
- }, style: { cursor: "pointer" }, checked: n2.isAllPageRowsSelected, title: "Toggle All Current Page Rows Selected", indeterminate: Boolean(!n2.isAllPageRowsSelected && n2.page.some((function(e3) {
1156
- var t3 = e3.id;
1157
- return n2.state.selectedRowIds[t3];
1158
- }))) }];
1159
- };
1160
- function wt(e2, t2, n2, o2) {
1161
- if (t2.type === l.init) return r({ selectedRowIds: {} }, e2);
1162
- if (t2.type === l.resetSelectedRows) return r({}, e2, { selectedRowIds: o2.initialState.selectedRowIds || {} });
1163
- if (t2.type === l.toggleAllRowsSelected) {
1164
- var i2 = t2.value, u2 = o2.isAllRowsSelected, s2 = o2.rowsById, a2 = o2.nonGroupedRowsById, c2 = void 0 === a2 ? s2 : a2, d2 = void 0 !== i2 ? i2 : !u2, f2 = Object.assign({}, e2.selectedRowIds);
1165
- return d2 ? Object.keys(c2).forEach((function(e3) {
1166
- f2[e3] = true;
1167
- })) : Object.keys(c2).forEach((function(e3) {
1168
- delete f2[e3];
1169
- })), r({}, e2, { selectedRowIds: f2 });
1170
- }
1171
- if (t2.type === l.toggleRowSelected) {
1172
- var p2 = t2.id, g2 = t2.value, v2 = o2.rowsById, m2 = o2.selectSubRows, h2 = void 0 === m2 || m2, y2 = o2.getSubRows, w2 = e2.selectedRowIds[p2], R2 = void 0 !== g2 ? g2 : !w2;
1173
- if (w2 === R2) return e2;
1174
- var b2 = r({}, e2.selectedRowIds);
1175
- return (function e3(t3) {
1176
- var n3 = v2[t3];
1177
- if (n3 && (n3.isGrouped || (R2 ? b2[t3] = true : delete b2[t3]), h2 && y2(n3))) return y2(n3).forEach((function(t4) {
1178
- return e3(t4.id);
1179
- }));
1180
- })(p2), r({}, e2, { selectedRowIds: b2 });
1181
- }
1182
- if (t2.type === l.toggleAllPageRowsSelected) {
1183
- var S2 = t2.value, C2 = o2.page, x2 = o2.rowsById, P2 = o2.selectSubRows, B2 = void 0 === P2 || P2, E2 = o2.isAllPageRowsSelected, I2 = o2.getSubRows, F2 = void 0 !== S2 ? S2 : !E2, G2 = r({}, e2.selectedRowIds);
1184
- return C2.forEach((function(e3) {
1185
- return (function e4(t3) {
1186
- var n3 = x2[t3];
1187
- if (n3.isGrouped || (F2 ? G2[t3] = true : delete G2[t3]), B2 && I2(n3)) return I2(n3).forEach((function(t4) {
1188
- return e4(t4.id);
1189
- }));
1190
- })(e3.id);
1191
- })), r({}, e2, { selectedRowIds: G2 });
1192
- }
1193
- return e2;
1194
- }
1195
- function Rt(e2) {
1196
- var n2 = e2.data, o2 = e2.rows, r2 = e2.getHooks, i2 = e2.plugins, u2 = e2.rowsById, s2 = e2.nonGroupedRowsById, a2 = void 0 === s2 ? u2 : s2, c2 = e2.autoResetSelectedRows, d2 = void 0 === c2 || c2, p2 = e2.state.selectedRowIds, g2 = e2.selectSubRows, m2 = void 0 === g2 || g2, y2 = e2.dispatch, R2 = e2.page, b2 = e2.getSubRows;
1197
- v(i2, ["useFilters", "useGroupBy", "useSortBy", "useExpanded", "usePagination"], "useRowSelect");
1198
- var S2 = t.useMemo((function() {
1199
- var e3 = [];
1200
- return o2.forEach((function(t2) {
1201
- var n3 = m2 ? (function e4(t3, n4, o3) {
1202
- if (n4[t3.id]) return true;
1203
- var r3 = o3(t3);
1204
- if (r3 && r3.length) {
1205
- var i3 = true, u3 = false;
1206
- return r3.forEach((function(t4) {
1207
- u3 && !i3 || (e4(t4, n4, o3) ? u3 = true : i3 = false);
1208
- })), !!i3 || !!u3 && null;
1209
- }
1210
- return false;
1211
- })(t2, p2, b2) : !!p2[t2.id];
1212
- t2.isSelected = !!n3, t2.isSomeSelected = null === n3, n3 && e3.push(t2);
1213
- })), e3;
1214
- }), [o2, m2, p2, b2]), C2 = Boolean(Object.keys(a2).length && Object.keys(p2).length), x2 = C2;
1215
- C2 && Object.keys(a2).some((function(e3) {
1216
- return !p2[e3];
1217
- })) && (C2 = false), C2 || R2 && R2.length && R2.some((function(e3) {
1218
- var t2 = e3.id;
1219
- return !p2[t2];
1220
- })) && (x2 = false);
1221
- var P2 = h(d2);
1222
- w((function() {
1223
- P2() && y2({ type: l.resetSelectedRows });
1224
- }), [y2, n2]);
1225
- var B2 = t.useCallback((function(e3) {
1226
- return y2({ type: l.toggleAllRowsSelected, value: e3 });
1227
- }), [y2]), E2 = t.useCallback((function(e3) {
1228
- return y2({ type: l.toggleAllPageRowsSelected, value: e3 });
1229
- }), [y2]), I2 = t.useCallback((function(e3, t2) {
1230
- return y2({ type: l.toggleRowSelected, id: e3, value: t2 });
1231
- }), [y2]), F2 = h(e2), G2 = f(r2().getToggleAllRowsSelectedProps, { instance: F2() }), A2 = f(r2().getToggleAllPageRowsSelectedProps, { instance: F2() });
1232
- Object.assign(e2, { selectedFlatRows: S2, isAllRowsSelected: C2, isAllPageRowsSelected: x2, toggleRowSelected: I2, toggleAllRowsSelected: B2, getToggleAllRowsSelectedProps: G2, getToggleAllPageRowsSelectedProps: A2, toggleAllPageRowsSelected: E2 });
1233
- }
1234
- function bt(e2, t2) {
1235
- var n2 = t2.instance;
1236
- e2.toggleRowSelected = function(t3) {
1237
- return n2.toggleRowSelected(e2.id, t3);
1238
- }, e2.getToggleRowSelectedProps = f(n2.getHooks().getToggleRowSelectedProps, { instance: n2, row: e2 });
1239
- }
1240
- var St = function(e2) {
1241
- return {};
1242
- }, Ct = function(e2) {
1243
- return {};
1244
- };
1245
- l.setRowState = "setRowState", l.setCellState = "setCellState", l.resetRowState = "resetRowState";
1246
- var xt = function(e2) {
1247
- e2.stateReducers.push(Pt), e2.useInstance.push(Bt), e2.prepareRow.push(Et);
1248
- };
1249
- function Pt(e2, t2, n2, o2) {
1250
- var i2 = o2.initialRowStateAccessor, u2 = void 0 === i2 ? St : i2, s2 = o2.initialCellStateAccessor, a2 = void 0 === s2 ? Ct : s2, c2 = o2.rowsById;
1251
- if (t2.type === l.init) return r({ rowState: {} }, e2);
1252
- if (t2.type === l.resetRowState) return r({}, e2, { rowState: o2.initialState.rowState || {} });
1253
- if (t2.type === l.setRowState) {
1254
- var d2, f2 = t2.rowId, p2 = t2.value, g2 = void 0 !== e2.rowState[f2] ? e2.rowState[f2] : u2(c2[f2]);
1255
- return r({}, e2, { rowState: r({}, e2.rowState, (d2 = {}, d2[f2] = m(p2, g2), d2)) });
1256
- }
1257
- if (t2.type === l.setCellState) {
1258
- var v2, h2, y2, w2, R2, b2 = t2.rowId, S2 = t2.columnId, C2 = t2.value, x2 = void 0 !== e2.rowState[b2] ? e2.rowState[b2] : u2(c2[b2]), P2 = void 0 !== (null == x2 ? void 0 : null == (v2 = x2.cellState) ? void 0 : v2[S2]) ? x2.cellState[S2] : a2(null == (h2 = c2[b2]) ? void 0 : null == (y2 = h2.cells) ? void 0 : y2.find((function(e3) {
1259
- return e3.column.id === S2;
1260
- })));
1261
- return r({}, e2, { rowState: r({}, e2.rowState, (R2 = {}, R2[b2] = r({}, x2, { cellState: r({}, x2.cellState || {}, (w2 = {}, w2[S2] = m(C2, P2), w2)) }), R2)) });
1262
- }
1263
- }
1264
- function Bt(e2) {
1265
- var n2 = e2.autoResetRowState, o2 = void 0 === n2 || n2, r2 = e2.data, i2 = e2.dispatch, u2 = t.useCallback((function(e3, t2) {
1266
- return i2({ type: l.setRowState, rowId: e3, value: t2 });
1267
- }), [i2]), s2 = t.useCallback((function(e3, t2, n3) {
1268
- return i2({ type: l.setCellState, rowId: e3, columnId: t2, value: n3 });
1269
- }), [i2]), a2 = h(o2);
1270
- w((function() {
1271
- a2() && i2({ type: l.resetRowState });
1272
- }), [r2]), Object.assign(e2, { setRowState: u2, setCellState: s2 });
1273
- }
1274
- function Et(e2, t2) {
1275
- var n2 = t2.instance, o2 = n2.initialRowStateAccessor, r2 = void 0 === o2 ? St : o2, i2 = n2.initialCellStateAccessor, u2 = void 0 === i2 ? Ct : i2, l2 = n2.state.rowState;
1276
- e2 && (e2.state = void 0 !== l2[e2.id] ? l2[e2.id] : r2(e2), e2.setState = function(t3) {
1277
- return n2.setRowState(e2.id, t3);
1278
- }, e2.cells.forEach((function(t3) {
1279
- e2.state.cellState || (e2.state.cellState = {}), t3.state = void 0 !== e2.state.cellState[t3.column.id] ? e2.state.cellState[t3.column.id] : u2(t3), t3.setState = function(o3) {
1280
- return n2.setCellState(e2.id, t3.column.id, o3);
1281
- };
1282
- })));
1283
- }
1284
- xt.pluginName = "useRowState", l.resetColumnOrder = "resetColumnOrder", l.setColumnOrder = "setColumnOrder";
1285
- var It = function(e2) {
1286
- e2.stateReducers.push(Ft), e2.visibleColumnsDeps.push((function(e3, t2) {
1287
- var n2 = t2.instance;
1288
- return [].concat(e3, [n2.state.columnOrder]);
1289
- })), e2.visibleColumns.push(Gt), e2.useInstance.push(At);
1290
- };
1291
- function Ft(e2, t2, n2, o2) {
1292
- return t2.type === l.init ? r({ columnOrder: [] }, e2) : t2.type === l.resetColumnOrder ? r({}, e2, { columnOrder: o2.initialState.columnOrder || [] }) : t2.type === l.setColumnOrder ? r({}, e2, { columnOrder: m(t2.columnOrder, e2.columnOrder) }) : void 0;
1293
- }
1294
- function Gt(e2, t2) {
1295
- var n2 = t2.instance.state.columnOrder;
1296
- if (!n2 || !n2.length) return e2;
1297
- for (var o2 = [].concat(n2), r2 = [].concat(e2), i2 = [], u2 = function() {
1298
- var e3 = o2.shift(), t3 = r2.findIndex((function(t4) {
1299
- return t4.id === e3;
1300
- }));
1301
- t3 > -1 && i2.push(r2.splice(t3, 1)[0]);
1302
- }; r2.length && o2.length; ) u2();
1303
- return [].concat(i2, r2);
1304
- }
1305
- function At(e2) {
1306
- var n2 = e2.dispatch;
1307
- e2.setColumnOrder = t.useCallback((function(e3) {
1308
- return n2({ type: l.setColumnOrder, columnOrder: e3 });
1309
- }), [n2]);
1310
- }
1311
- It.pluginName = "useColumnOrder", c.canResize = true, l.columnStartResizing = "columnStartResizing", l.columnResizing = "columnResizing", l.columnDoneResizing = "columnDoneResizing", l.resetResize = "resetResize";
1312
- var kt = function(e2) {
1313
- e2.getResizerProps = [Ht], e2.getHeaderProps.push({ style: { position: "relative" } }), e2.stateReducers.push(Wt), e2.useInstance.push(Tt), e2.useInstanceBeforeDimensions.push(zt);
1314
- }, Ht = function(e2, t2) {
1315
- var n2 = t2.instance, o2 = t2.header, r2 = n2.dispatch, i2 = function(e3, t3) {
1316
- var n3 = false;
1317
- if ("touchstart" === e3.type) {
1318
- if (e3.touches && e3.touches.length > 1) return;
1319
- n3 = true;
1320
- }
1321
- var o3, i3, u2 = (function(e4) {
1322
- var t4 = [];
1323
- return (function e5(n4) {
1324
- n4.columns && n4.columns.length && n4.columns.map(e5);
1325
- t4.push(n4);
1326
- })(e4), t4;
1327
- })(t3).map((function(e4) {
1328
- return [e4.id, e4.totalWidth];
1329
- })), s2 = n3 ? Math.round(e3.touches[0].clientX) : e3.clientX, a2 = function() {
1330
- window.cancelAnimationFrame(o3), o3 = null, r2({ type: l.columnDoneResizing });
1331
- }, c2 = function() {
1332
- window.cancelAnimationFrame(o3), o3 = null, r2({ type: l.columnResizing, clientX: i3 });
1333
- }, d2 = function(e4) {
1334
- i3 = e4, o3 || (o3 = window.requestAnimationFrame(c2));
1335
- }, f2 = { mouse: { moveEvent: "mousemove", moveHandler: function(e4) {
1336
- return d2(e4.clientX);
1337
- }, upEvent: "mouseup", upHandler: function(e4) {
1338
- document.removeEventListener("mousemove", f2.mouse.moveHandler), document.removeEventListener("mouseup", f2.mouse.upHandler), a2();
1339
- } }, touch: { moveEvent: "touchmove", moveHandler: function(e4) {
1340
- return e4.cancelable && (e4.preventDefault(), e4.stopPropagation()), d2(e4.touches[0].clientX), false;
1341
- }, upEvent: "touchend", upHandler: function(e4) {
1342
- document.removeEventListener(f2.touch.moveEvent, f2.touch.moveHandler), document.removeEventListener(f2.touch.upEvent, f2.touch.moveHandler), a2();
1343
- } } }, p2 = n3 ? f2.touch : f2.mouse, g2 = !!(function() {
1344
- if ("boolean" == typeof z) return z;
1345
- var e4 = false;
1346
- try {
1347
- var t4 = { get passive() {
1348
- return e4 = true, false;
1349
- } };
1350
- window.addEventListener("test", null, t4), window.removeEventListener("test", null, t4);
1351
- } catch (t5) {
1352
- e4 = false;
1353
- }
1354
- return z = e4;
1355
- })() && { passive: false };
1356
- document.addEventListener(p2.moveEvent, p2.moveHandler, g2), document.addEventListener(p2.upEvent, p2.upHandler, g2), r2({ type: l.columnStartResizing, columnId: t3.id, columnWidth: t3.totalWidth, headerIdWidths: u2, clientX: s2 });
1357
- };
1358
- return [e2, { onMouseDown: function(e3) {
1359
- return e3.persist() || i2(e3, o2);
1360
- }, onTouchStart: function(e3) {
1361
- return e3.persist() || i2(e3, o2);
1362
- }, style: { cursor: "col-resize" }, draggable: false, role: "separator" }];
1363
- };
1364
- function Wt(e2, t2) {
1365
- if (t2.type === l.init) return r({ columnResizing: { columnWidths: {} } }, e2);
1366
- if (t2.type === l.resetResize) return r({}, e2, { columnResizing: { columnWidths: {} } });
1367
- if (t2.type === l.columnStartResizing) {
1368
- var n2 = t2.clientX, o2 = t2.columnId, i2 = t2.columnWidth, u2 = t2.headerIdWidths;
1369
- return r({}, e2, { columnResizing: r({}, e2.columnResizing, { startX: n2, headerIdWidths: u2, columnWidth: i2, isResizingColumn: o2 }) });
1370
- }
1371
- if (t2.type === l.columnResizing) {
1372
- var s2 = t2.clientX, a2 = e2.columnResizing, c2 = a2.startX, d2 = a2.columnWidth, f2 = a2.headerIdWidths, p2 = (s2 - c2) / d2, g2 = {};
1373
- return (void 0 === f2 ? [] : f2).forEach((function(e3) {
1374
- var t3 = e3[0], n3 = e3[1];
1375
- g2[t3] = Math.max(n3 + n3 * p2, 0);
1376
- })), r({}, e2, { columnResizing: r({}, e2.columnResizing, { columnWidths: r({}, e2.columnResizing.columnWidths, {}, g2) }) });
1377
- }
1378
- return t2.type === l.columnDoneResizing ? r({}, e2, { columnResizing: r({}, e2.columnResizing, { startX: null, isResizingColumn: null }) }) : void 0;
1379
- }
1380
- kt.pluginName = "useResizeColumns";
1381
- var zt = function(e2) {
1382
- var t2 = e2.flatHeaders, n2 = e2.disableResizing, o2 = e2.getHooks, r2 = e2.state.columnResizing, i2 = h(e2);
1383
- t2.forEach((function(e3) {
1384
- var t3 = I(true !== e3.disableResizing && void 0, true !== n2 && void 0, true);
1385
- e3.canResize = t3, e3.width = r2.columnWidths[e3.id] || e3.originalWidth || e3.width, e3.isResizing = r2.isResizingColumn === e3.id, t3 && (e3.getResizerProps = f(o2().getResizerProps, { instance: i2(), header: e3 }));
1386
- }));
1387
- };
1388
- function Tt(e2) {
1389
- var n2 = e2.plugins, o2 = e2.dispatch, r2 = e2.autoResetResize, i2 = void 0 === r2 || r2, u2 = e2.columns;
1390
- v(n2, ["useAbsoluteLayout"], "useResizeColumns");
1391
- var s2 = h(i2);
1392
- w((function() {
1393
- s2() && o2({ type: l.resetResize });
1394
- }), [u2]);
1395
- var a2 = t.useCallback((function() {
1396
- return o2({ type: l.resetResize });
1397
- }), [o2]);
1398
- Object.assign(e2, { resetResizing: a2 });
1399
- }
1400
- var Ot = { position: "absolute", top: 0 }, Mt = function(e2) {
1401
- e2.getTableBodyProps.push(jt), e2.getRowProps.push(jt), e2.getHeaderGroupProps.push(jt), e2.getFooterGroupProps.push(jt), e2.getHeaderProps.push((function(e3, t2) {
1402
- var n2 = t2.column;
1403
- return [e3, { style: r({}, Ot, { left: n2.totalLeft + "px", width: n2.totalWidth + "px" }) }];
1404
- })), e2.getCellProps.push((function(e3, t2) {
1405
- var n2 = t2.cell;
1406
- return [e3, { style: r({}, Ot, { left: n2.column.totalLeft + "px", width: n2.column.totalWidth + "px" }) }];
1407
- })), e2.getFooterProps.push((function(e3, t2) {
1408
- var n2 = t2.column;
1409
- return [e3, { style: r({}, Ot, { left: n2.totalLeft + "px", width: n2.totalWidth + "px" }) }];
1410
- }));
1411
- };
1412
- Mt.pluginName = "useAbsoluteLayout";
1413
- var jt = function(e2, t2) {
1414
- return [e2, { style: { position: "relative", width: t2.instance.totalColumnsWidth + "px" } }];
1415
- }, Lt = { display: "inline-block", boxSizing: "border-box" }, Nt = function(e2, t2) {
1416
- return [e2, { style: { display: "flex", width: t2.instance.totalColumnsWidth + "px" } }];
1417
- }, Dt = function(e2) {
1418
- e2.getRowProps.push(Nt), e2.getHeaderGroupProps.push(Nt), e2.getFooterGroupProps.push(Nt), e2.getHeaderProps.push((function(e3, t2) {
1419
- var n2 = t2.column;
1420
- return [e3, { style: r({}, Lt, { width: n2.totalWidth + "px" }) }];
1421
- })), e2.getCellProps.push((function(e3, t2) {
1422
- var n2 = t2.cell;
1423
- return [e3, { style: r({}, Lt, { width: n2.column.totalWidth + "px" }) }];
1424
- })), e2.getFooterProps.push((function(e3, t2) {
1425
- var n2 = t2.column;
1426
- return [e3, { style: r({}, Lt, { width: n2.totalWidth + "px" }) }];
1427
- }));
1428
- };
1429
- function Vt(e2) {
1430
- e2.getTableProps.push(_t), e2.getRowProps.push(Xt), e2.getHeaderGroupProps.push(Xt), e2.getFooterGroupProps.push(Xt), e2.getHeaderProps.push(qt), e2.getCellProps.push(Kt), e2.getFooterProps.push(Ut);
1431
- }
1432
- Dt.pluginName = "useBlockLayout", Vt.pluginName = "useFlexLayout";
1433
- var _t = function(e2, t2) {
1434
- return [e2, { style: { minWidth: t2.instance.totalColumnsMinWidth + "px" } }];
1435
- }, Xt = function(e2, t2) {
1436
- return [e2, { style: { display: "flex", flex: "1 0 auto", minWidth: t2.instance.totalColumnsMinWidth + "px" } }];
1437
- }, qt = function(e2, t2) {
1438
- var n2 = t2.column;
1439
- return [e2, { style: { boxSizing: "border-box", flex: n2.totalFlexWidth ? n2.totalFlexWidth + " 0 auto" : void 0, minWidth: n2.totalMinWidth + "px", width: n2.totalWidth + "px" } }];
1440
- }, Kt = function(e2, t2) {
1441
- var n2 = t2.cell;
1442
- return [e2, { style: { boxSizing: "border-box", flex: n2.column.totalFlexWidth + " 0 auto", minWidth: n2.column.totalMinWidth + "px", width: n2.column.totalWidth + "px" } }];
1443
- }, Ut = function(e2, t2) {
1444
- var n2 = t2.column;
1445
- return [e2, { style: { boxSizing: "border-box", flex: n2.totalFlexWidth ? n2.totalFlexWidth + " 0 auto" : void 0, minWidth: n2.totalMinWidth + "px", width: n2.totalWidth + "px" } }];
1446
- };
1447
- function $t(e2) {
1448
- e2.stateReducers.push(Zt), e2.getTableProps.push(Jt), e2.getHeaderProps.push(Yt), e2.getRowProps.push(Qt);
1449
- }
1450
- l.columnStartResizing = "columnStartResizing", l.columnResizing = "columnResizing", l.columnDoneResizing = "columnDoneResizing", l.resetResize = "resetResize", $t.pluginName = "useGridLayout";
1451
- var Jt = function(e2, t2) {
1452
- var n2 = t2.instance;
1453
- return [e2, { style: { display: "grid", gridTemplateColumns: n2.visibleColumns.map((function(e3) {
1454
- var t3;
1455
- return n2.state.gridLayout.columnWidths[e3.id] ? n2.state.gridLayout.columnWidths[e3.id] + "px" : (null == (t3 = n2.state.columnResizing) ? void 0 : t3.isResizingColumn) ? n2.state.gridLayout.startWidths[e3.id] + "px" : "number" == typeof e3.width ? e3.width + "px" : e3.width;
1456
- })).join(" ") } }];
1457
- }, Yt = function(e2, t2) {
1458
- var n2 = t2.column;
1459
- return [e2, { id: "header-cell-" + n2.id, style: { position: "sticky", gridColumn: "span " + n2.totalVisibleHeaderCount } }];
1460
- }, Qt = function(e2, t2) {
1461
- var n2 = t2.row;
1462
- return n2.isExpanded ? [e2, { style: { gridColumn: "1 / " + (n2.cells.length + 1) } }] : [e2, {}];
1463
- };
1464
- function Zt(e2, t2, n2, o2) {
1465
- if (t2.type === l.init) return r({ gridLayout: { columnWidths: {} } }, e2);
1466
- if (t2.type === l.resetResize) return r({}, e2, { gridLayout: { columnWidths: {} } });
1467
- if (t2.type === l.columnStartResizing) {
1468
- var i2 = t2.columnId, u2 = t2.headerIdWidths, s2 = en(i2);
1469
- if (void 0 !== s2) {
1470
- var a2 = o2.visibleColumns.reduce((function(e3, t3) {
1471
- var n3;
1472
- return r({}, e3, ((n3 = {})[t3.id] = en(t3.id), n3));
1473
- }), {}), c2 = o2.visibleColumns.reduce((function(e3, t3) {
1474
- var n3;
1475
- return r({}, e3, ((n3 = {})[t3.id] = t3.minWidth, n3));
1476
- }), {}), d2 = o2.visibleColumns.reduce((function(e3, t3) {
1477
- var n3;
1478
- return r({}, e3, ((n3 = {})[t3.id] = t3.maxWidth, n3));
1479
- }), {}), f2 = u2.map((function(e3) {
1480
- var t3 = e3[0];
1481
- return [t3, en(t3)];
1482
- }));
1483
- return r({}, e2, { gridLayout: r({}, e2.gridLayout, { startWidths: a2, minWidths: c2, maxWidths: d2, headerIdGridWidths: f2, columnWidth: s2 }) });
1484
- }
1485
- return e2;
1486
- }
1487
- if (t2.type === l.columnResizing) {
1488
- var p2 = t2.clientX, g2 = e2.columnResizing.startX, v2 = e2.gridLayout, m2 = v2.columnWidth, h2 = v2.minWidths, y2 = v2.maxWidths, w2 = v2.headerIdGridWidths, R2 = (p2 - g2) / m2, b2 = {};
1489
- return (void 0 === w2 ? [] : w2).forEach((function(e3) {
1490
- var t3 = e3[0], n3 = e3[1];
1491
- b2[t3] = Math.min(Math.max(h2[t3], n3 + n3 * R2), y2[t3]);
1492
- })), r({}, e2, { gridLayout: r({}, e2.gridLayout, { columnWidths: r({}, e2.gridLayout.columnWidths, {}, b2) }) });
1493
- }
1494
- return t2.type === l.columnDoneResizing ? r({}, e2, { gridLayout: r({}, e2.gridLayout, { startWidths: {}, minWidths: {}, maxWidths: {} }) }) : void 0;
1495
- }
1496
- function en(e2) {
1497
- var t2, n2 = null == (t2 = document.getElementById("header-cell-" + e2)) ? void 0 : t2.offsetWidth;
1498
- if (void 0 !== n2) return n2;
1499
- }
1500
- e._UNSTABLE_usePivotColumns = nt, e.actions = l, e.defaultColumn = c, e.defaultGroupByFn = De, e.defaultOrderByFn = Qe, e.defaultRenderer = s, e.emptyRenderer = a, e.ensurePluginOrder = v, e.flexRender = b, e.functionalUpdate = m, e.loopHooks = g, e.makePropGetter = f, e.makeRenderer = R, e.reduceHooks = p, e.safeUseLayoutEffect = y, e.useAbsoluteLayout = Mt, e.useAsyncDebounce = function(e2, n2) {
1501
- void 0 === n2 && (n2 = 0);
1502
- var r2 = t.useRef({}), i2 = h(e2), u2 = h(n2);
1503
- return t.useCallback((function() {
1504
- var e3 = o(regeneratorRuntime.mark((function e4() {
1505
- var t2, n3, l2, s2 = arguments;
1506
- return regeneratorRuntime.wrap((function(e5) {
1507
- for (; ; ) switch (e5.prev = e5.next) {
1508
- case 0:
1509
- for (t2 = s2.length, n3 = new Array(t2), l2 = 0; l2 < t2; l2++) n3[l2] = s2[l2];
1510
- return r2.current.promise || (r2.current.promise = new Promise((function(e6, t3) {
1511
- r2.current.resolve = e6, r2.current.reject = t3;
1512
- }))), r2.current.timeout && clearTimeout(r2.current.timeout), r2.current.timeout = setTimeout(o(regeneratorRuntime.mark((function e6() {
1513
- return regeneratorRuntime.wrap((function(e7) {
1514
- for (; ; ) switch (e7.prev = e7.next) {
1515
- case 0:
1516
- return delete r2.current.timeout, e7.prev = 1, e7.t0 = r2.current, e7.next = 5, i2().apply(void 0, n3);
1517
- case 5:
1518
- e7.t1 = e7.sent, e7.t0.resolve.call(e7.t0, e7.t1), e7.next = 12;
1519
- break;
1520
- case 9:
1521
- e7.prev = 9, e7.t2 = e7.catch(1), r2.current.reject(e7.t2);
1522
- case 12:
1523
- return e7.prev = 12, delete r2.current.promise, e7.finish(12);
1524
- case 15:
1525
- case "end":
1526
- return e7.stop();
1527
- }
1528
- }), e6, null, [[1, 9, 12, 15]]);
1529
- }))), u2()), e5.abrupt("return", r2.current.promise);
1530
- case 5:
1531
- case "end":
1532
- return e5.stop();
1533
- }
1534
- }), e4);
1535
- })));
1536
- return function() {
1537
- return e3.apply(this, arguments);
1538
- };
1539
- })(), [i2, u2]);
1540
- }, e.useBlockLayout = Dt, e.useColumnOrder = It, e.useExpanded = se, e.useFilters = Pe, e.useFlexLayout = Vt, e.useGetLatest = h, e.useGlobalFilter = Ie, e.useGridLayout = $t, e.useGroupBy = ze, e.useMountedLayoutEffect = w, e.usePagination = Ze, e.useResizeColumns = kt, e.useRowSelect = vt, e.useRowState = xt, e.useSortBy = Ue, e.useTable = function(e2) {
1541
- for (var n2 = arguments.length, o2 = new Array(n2 > 1 ? n2 - 1 : 0), i2 = 1; i2 < n2; i2++) o2[i2 - 1] = arguments[i2];
1542
- e2 = ie(e2), o2 = [K].concat(o2);
1543
- var u2 = t.useRef({}), s2 = h(u2.current);
1544
- Object.assign(s2(), r({}, e2, { plugins: o2, hooks: q() })), o2.filter(Boolean).forEach((function(e3) {
1545
- e3(s2().hooks);
1546
- }));
1547
- var a2 = h(s2().hooks);
1548
- s2().getHooks = a2, delete s2().hooks, Object.assign(s2(), p(a2().useOptions, ie(e2)));
1549
- var c2 = s2(), d2 = c2.data, v2 = c2.columns, m2 = c2.initialState, y2 = c2.defaultColumn, w2 = c2.getSubRows, b2 = c2.getRowId, E2 = c2.stateReducer, I2 = c2.useControlledState, F2 = h(E2), G2 = t.useCallback((function(e3, t2) {
1550
- if (!t2.type) throw console.info({ action: t2 }), new Error("Unknown Action 👆");
1551
- return [].concat(a2().stateReducers, Array.isArray(F2()) ? F2() : [F2()]).reduce((function(n3, o3) {
1552
- return o3(n3, t2, e3, s2()) || n3;
1553
- }), e3);
1554
- }), [a2, F2, s2]), A2 = t.useReducer(G2, void 0, (function() {
1555
- return G2(m2, { type: l.init });
1556
- })), k2 = A2[0], H2 = A2[1], W2 = p([].concat(a2().useControlledState, [I2]), k2, { instance: s2() });
1557
- Object.assign(s2(), { state: W2, dispatch: H2 });
1558
- var z2 = t.useMemo((function() {
1559
- return S(p(a2().columns, v2, { instance: s2() }));
1560
- }), [a2, s2, v2].concat(p(a2().columnsDeps, [], { instance: s2() })));
1561
- s2().columns = z2;
1562
- var T2 = t.useMemo((function() {
1563
- return p(a2().allColumns, C(z2), { instance: s2() }).map(x);
1564
- }), [z2, a2, s2].concat(p(a2().allColumnsDeps, [], { instance: s2() })));
1565
- s2().allColumns = T2;
1566
- var O2 = t.useMemo((function() {
1567
- for (var e3 = [], t2 = [], n3 = {}, o3 = [].concat(T2); o3.length; ) {
1568
- var r2 = o3.shift();
1569
- le({ data: d2, rows: e3, flatRows: t2, rowsById: n3, column: r2, getRowId: b2, getSubRows: w2, accessValueHooks: a2().accessValue, getInstance: s2 });
1570
- }
1571
- return [e3, t2, n3];
1572
- }), [T2, d2, b2, w2, a2, s2]), M2 = O2[0], j2 = O2[1], L2 = O2[2];
1573
- Object.assign(s2(), { rows: M2, initialRows: [].concat(M2), flatRows: j2, rowsById: L2 }), g(a2().useInstanceAfterData, s2());
1574
- var N2 = t.useMemo((function() {
1575
- return p(a2().visibleColumns, T2, { instance: s2() }).map((function(e3) {
1576
- return P(e3, y2);
1577
- }));
1578
- }), [a2, T2, s2, y2].concat(p(a2().visibleColumnsDeps, [], { instance: s2() })));
1579
- T2 = t.useMemo((function() {
1580
- var e3 = [].concat(N2);
1581
- return T2.forEach((function(t2) {
1582
- e3.find((function(e4) {
1583
- return e4.id === t2.id;
1584
- })) || e3.push(t2);
1585
- })), e3;
1586
- }), [T2, N2]), s2().allColumns = T2;
1587
- var D2 = t.useMemo((function() {
1588
- return p(a2().headerGroups, B(N2, y2), s2());
1589
- }), [a2, N2, y2, s2].concat(p(a2().headerGroupsDeps, [], { instance: s2() })));
1590
- s2().headerGroups = D2;
1591
- var V2 = t.useMemo((function() {
1592
- return D2.length ? D2[0].headers : [];
1593
- }), [D2]);
1594
- s2().headers = V2, s2().flatHeaders = D2.reduce((function(e3, t2) {
1595
- return [].concat(e3, t2.headers);
1596
- }), []), g(a2().useInstanceBeforeDimensions, s2());
1597
- var _2 = N2.filter((function(e3) {
1598
- return e3.isVisible;
1599
- })).map((function(e3) {
1600
- return e3.id;
1601
- })).sort().join("_");
1602
- N2 = t.useMemo((function() {
1603
- return N2.filter((function(e3) {
1604
- return e3.isVisible;
1605
- }));
1606
- }), [N2, _2]), s2().visibleColumns = N2;
1607
- var X2 = ue(V2), U2 = X2[0], $2 = X2[1], J2 = X2[2];
1608
- return s2().totalColumnsMinWidth = U2, s2().totalColumnsWidth = $2, s2().totalColumnsMaxWidth = J2, g(a2().useInstance, s2()), [].concat(s2().flatHeaders, s2().allColumns).forEach((function(e3) {
1609
- e3.render = R(s2(), e3), e3.getHeaderProps = f(a2().getHeaderProps, { instance: s2(), column: e3 }), e3.getFooterProps = f(a2().getFooterProps, { instance: s2(), column: e3 });
1610
- })), s2().headerGroups = t.useMemo((function() {
1611
- return D2.filter((function(e3, t2) {
1612
- return e3.headers = e3.headers.filter((function(e4) {
1613
- return e4.headers ? (function e5(t3) {
1614
- return t3.filter((function(t4) {
1615
- return t4.headers ? e5(t4.headers) : t4.isVisible;
1616
- })).length;
1617
- })(e4.headers) : e4.isVisible;
1618
- })), !!e3.headers.length && (e3.getHeaderGroupProps = f(a2().getHeaderGroupProps, { instance: s2(), headerGroup: e3, index: t2 }), e3.getFooterGroupProps = f(a2().getFooterGroupProps, { instance: s2(), headerGroup: e3, index: t2 }), true);
1619
- }));
1620
- }), [D2, s2, a2]), s2().footerGroups = [].concat(s2().headerGroups).reverse(), s2().prepareRow = t.useCallback((function(e3) {
1621
- e3.getRowProps = f(a2().getRowProps, { instance: s2(), row: e3 }), e3.allCells = T2.map((function(t2) {
1622
- var n3 = e3.values[t2.id], o3 = { column: t2, row: e3, value: n3 };
1623
- return o3.getCellProps = f(a2().getCellProps, { instance: s2(), cell: o3 }), o3.render = R(s2(), t2, { row: e3, cell: o3, value: n3 }), o3;
1624
- })), e3.cells = N2.map((function(t2) {
1625
- return e3.allCells.find((function(e4) {
1626
- return e4.column.id === t2.id;
1627
- }));
1628
- })), g(a2().prepareRow, e3, { instance: s2() });
1629
- }), [a2, s2, T2, N2]), s2().getTableProps = f(a2().getTableProps, { instance: s2() }), s2().getTableBodyProps = f(a2().getTableBodyProps, { instance: s2() }), g(a2().useFinalInstance, s2()), s2();
1630
- }, Object.defineProperty(e, "__esModule", { value: true });
1631
- }));
1632
- })(reactTable_production_min$1, reactTable_production_min$1.exports);
1633
- return reactTable_production_min$1.exports;
1634
- }
1635
- export {
1636
- requireReactTable_production_min as __require
1637
- };