@e-llm-studio/citation 0.0.71 → 0.0.73

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 (670) hide show
  1. package/dist/cjs/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
  2. package/dist/cjs/features/Bookemon/BookPreview/BookPreview.js +1 -1
  3. package/dist/cjs/features/Bookemon/Bookemon.js +1 -1
  4. package/dist/cjs/features/CodeCitation/CodeCitation.js +1 -1
  5. package/dist/cjs/features/PaginatedTable/PaginatedTable.js +2 -0
  6. package/dist/cjs/features/PaginatedTable/PaginatedTable.js.map +1 -0
  7. package/dist/cjs/features/PaginatedTable/paginatedTable.module.css.js +2 -0
  8. package/dist/cjs/features/PaginatedTable/paginatedTable.module.css.js.map +1 -0
  9. package/dist/cjs/index.js +1 -1
  10. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +2 -0
  11. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
  12. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +2 -0
  13. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
  14. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +2 -0
  15. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
  16. package/dist/cjs/node_modules/@material-ui/core/esm/AccordionActions/AccordionActions.js +2 -0
  17. package/dist/cjs/node_modules/@material-ui/core/esm/AccordionActions/AccordionActions.js.map +1 -0
  18. package/dist/cjs/node_modules/@material-ui/core/esm/AppBar/AppBar.js +2 -0
  19. package/dist/cjs/node_modules/@material-ui/core/esm/AppBar/AppBar.js.map +1 -0
  20. package/dist/cjs/node_modules/@material-ui/core/esm/Avatar/Avatar.js +2 -0
  21. package/dist/cjs/node_modules/@material-ui/core/esm/Avatar/Avatar.js.map +1 -0
  22. package/dist/cjs/node_modules/@material-ui/core/esm/Badge/Badge.js +2 -0
  23. package/dist/cjs/node_modules/@material-ui/core/esm/Badge/Badge.js.map +1 -0
  24. package/dist/cjs/node_modules/@material-ui/core/esm/BottomNavigation/BottomNavigation.js +2 -0
  25. package/dist/cjs/node_modules/@material-ui/core/esm/BottomNavigation/BottomNavigation.js.map +1 -0
  26. package/dist/cjs/node_modules/@material-ui/core/esm/BottomNavigationAction/BottomNavigationAction.js +2 -0
  27. package/dist/cjs/node_modules/@material-ui/core/esm/BottomNavigationAction/BottomNavigationAction.js.map +1 -0
  28. package/dist/cjs/node_modules/@material-ui/core/esm/Box/Box.js +2 -0
  29. package/dist/cjs/node_modules/@material-ui/core/esm/Box/Box.js.map +1 -0
  30. package/dist/cjs/node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js +2 -0
  31. package/dist/cjs/node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -0
  32. package/dist/cjs/node_modules/@material-ui/core/esm/Breadcrumbs/Breadcrumbs.js +2 -0
  33. package/dist/cjs/node_modules/@material-ui/core/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
  34. package/dist/cjs/node_modules/@material-ui/core/esm/Button/Button.js +2 -0
  35. package/dist/cjs/node_modules/@material-ui/core/esm/Button/Button.js.map +1 -0
  36. package/dist/cjs/node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js +2 -0
  37. package/dist/cjs/node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js.map +1 -0
  38. package/dist/cjs/node_modules/@material-ui/core/esm/Card/Card.js +2 -0
  39. package/dist/cjs/node_modules/@material-ui/core/esm/Card/Card.js.map +1 -0
  40. package/dist/cjs/node_modules/@material-ui/core/esm/CardActionArea/CardActionArea.js +2 -0
  41. package/dist/cjs/node_modules/@material-ui/core/esm/CardActionArea/CardActionArea.js.map +1 -0
  42. package/dist/cjs/node_modules/@material-ui/core/esm/CardActions/CardActions.js +2 -0
  43. package/dist/cjs/node_modules/@material-ui/core/esm/CardActions/CardActions.js.map +1 -0
  44. package/dist/cjs/node_modules/@material-ui/core/esm/CardContent/CardContent.js +2 -0
  45. package/dist/cjs/node_modules/@material-ui/core/esm/CardContent/CardContent.js.map +1 -0
  46. package/dist/cjs/node_modules/@material-ui/core/esm/CardHeader/CardHeader.js +2 -0
  47. package/dist/cjs/node_modules/@material-ui/core/esm/CardHeader/CardHeader.js.map +1 -0
  48. package/dist/cjs/node_modules/@material-ui/core/esm/CardMedia/CardMedia.js +2 -0
  49. package/dist/cjs/node_modules/@material-ui/core/esm/CardMedia/CardMedia.js.map +1 -0
  50. package/dist/cjs/node_modules/@material-ui/core/esm/Checkbox/Checkbox.js +2 -0
  51. package/dist/cjs/node_modules/@material-ui/core/esm/Checkbox/Checkbox.js.map +1 -0
  52. package/dist/cjs/node_modules/@material-ui/core/esm/Chip/Chip.js +2 -0
  53. package/dist/cjs/node_modules/@material-ui/core/esm/Chip/Chip.js.map +1 -0
  54. package/dist/cjs/node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js +2 -0
  55. package/dist/cjs/node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js.map +1 -0
  56. package/dist/cjs/node_modules/@material-ui/core/esm/Container/Container.js +2 -0
  57. package/dist/cjs/node_modules/@material-ui/core/esm/Container/Container.js.map +1 -0
  58. package/dist/cjs/node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js +2 -0
  59. package/dist/cjs/node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js.map +1 -0
  60. package/dist/cjs/node_modules/@material-ui/core/esm/DialogActions/DialogActions.js +2 -0
  61. package/dist/cjs/node_modules/@material-ui/core/esm/DialogActions/DialogActions.js.map +1 -0
  62. package/dist/cjs/node_modules/@material-ui/core/esm/DialogContentText/DialogContentText.js +2 -0
  63. package/dist/cjs/node_modules/@material-ui/core/esm/DialogContentText/DialogContentText.js.map +1 -0
  64. package/dist/cjs/node_modules/@material-ui/core/esm/Divider/Divider.js +2 -0
  65. package/dist/cjs/node_modules/@material-ui/core/esm/Divider/Divider.js.map +1 -0
  66. package/dist/cjs/node_modules/@material-ui/core/esm/Drawer/Drawer.js +2 -0
  67. package/dist/cjs/node_modules/@material-ui/core/esm/Drawer/Drawer.js.map +1 -0
  68. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanel.js +2 -0
  69. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanel.js.map +1 -0
  70. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanelContext.js +2 -0
  71. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanelContext.js.map +1 -0
  72. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelActions/ExpansionPanelActions.js +2 -0
  73. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelActions/ExpansionPanelActions.js.map +1 -0
  74. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelDetails/ExpansionPanelDetails.js +2 -0
  75. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelDetails/ExpansionPanelDetails.js.map +1 -0
  76. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelSummary/ExpansionPanelSummary.js +2 -0
  77. package/dist/cjs/node_modules/@material-ui/core/esm/ExpansionPanelSummary/ExpansionPanelSummary.js.map +1 -0
  78. package/dist/cjs/node_modules/@material-ui/core/esm/Fab/Fab.js +2 -0
  79. package/dist/cjs/node_modules/@material-ui/core/esm/Fab/Fab.js.map +1 -0
  80. package/dist/cjs/node_modules/@material-ui/core/esm/FilledInput/FilledInput.js +2 -0
  81. package/dist/cjs/node_modules/@material-ui/core/esm/FilledInput/FilledInput.js.map +1 -0
  82. package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/FormControl.js +2 -0
  83. package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/FormControl.js.map +1 -0
  84. package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/FormControlContext.js +1 -1
  85. package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/FormControlContext.js.map +1 -1
  86. package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/formControlState.js +2 -0
  87. package/dist/cjs/node_modules/@material-ui/core/esm/FormControl/formControlState.js.map +1 -0
  88. package/dist/cjs/node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js +2 -0
  89. package/dist/cjs/node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js.map +1 -0
  90. package/dist/cjs/node_modules/@material-ui/core/esm/FormGroup/FormGroup.js +2 -0
  91. package/dist/cjs/node_modules/@material-ui/core/esm/FormGroup/FormGroup.js.map +1 -0
  92. package/dist/cjs/node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js +2 -0
  93. package/dist/cjs/node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js.map +1 -0
  94. package/dist/cjs/node_modules/@material-ui/core/esm/FormLabel/FormLabel.js +2 -0
  95. package/dist/cjs/node_modules/@material-ui/core/esm/FormLabel/FormLabel.js.map +1 -0
  96. package/dist/cjs/node_modules/@material-ui/core/esm/Grid/Grid.js +2 -0
  97. package/dist/cjs/node_modules/@material-ui/core/esm/Grid/Grid.js.map +1 -0
  98. package/dist/cjs/node_modules/@material-ui/core/esm/GridList/GridList.js +2 -0
  99. package/dist/cjs/node_modules/@material-ui/core/esm/GridList/GridList.js.map +1 -0
  100. package/dist/cjs/node_modules/@material-ui/core/esm/GridListTile/GridListTile.js +2 -0
  101. package/dist/cjs/node_modules/@material-ui/core/esm/GridListTile/GridListTile.js.map +1 -0
  102. package/dist/cjs/node_modules/@material-ui/core/esm/GridListTileBar/GridListTileBar.js +2 -0
  103. package/dist/cjs/node_modules/@material-ui/core/esm/GridListTileBar/GridListTileBar.js.map +1 -0
  104. package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/Hidden.js +2 -0
  105. package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/Hidden.js.map +1 -0
  106. package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/HiddenCss.js +2 -0
  107. package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/HiddenCss.js.map +1 -0
  108. package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/HiddenJs.js +2 -0
  109. package/dist/cjs/node_modules/@material-ui/core/esm/Hidden/HiddenJs.js.map +1 -0
  110. package/dist/cjs/node_modules/@material-ui/core/esm/Icon/Icon.js +2 -0
  111. package/dist/cjs/node_modules/@material-ui/core/esm/Icon/Icon.js.map +1 -0
  112. package/dist/cjs/node_modules/@material-ui/core/esm/ImageList/ImageList.js +2 -0
  113. package/dist/cjs/node_modules/@material-ui/core/esm/ImageList/ImageList.js.map +1 -0
  114. package/dist/cjs/node_modules/@material-ui/core/esm/ImageListItem/ImageListItem.js +2 -0
  115. package/dist/cjs/node_modules/@material-ui/core/esm/ImageListItem/ImageListItem.js.map +1 -0
  116. package/dist/cjs/node_modules/@material-ui/core/esm/ImageListItemBar/ImageListItemBar.js +2 -0
  117. package/dist/cjs/node_modules/@material-ui/core/esm/ImageListItemBar/ImageListItemBar.js.map +1 -0
  118. package/dist/cjs/node_modules/@material-ui/core/esm/Input/Input.js +2 -0
  119. package/dist/cjs/node_modules/@material-ui/core/esm/Input/Input.js.map +1 -0
  120. package/dist/cjs/node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js +2 -0
  121. package/dist/cjs/node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js.map +1 -0
  122. package/dist/cjs/node_modules/@material-ui/core/esm/InputBase/InputBase.js +2 -0
  123. package/dist/cjs/node_modules/@material-ui/core/esm/InputBase/InputBase.js.map +1 -0
  124. package/dist/cjs/node_modules/@material-ui/core/esm/InputBase/utils.js +2 -0
  125. package/dist/cjs/node_modules/@material-ui/core/esm/InputBase/utils.js.map +1 -0
  126. package/dist/cjs/node_modules/@material-ui/core/esm/InputLabel/InputLabel.js +2 -0
  127. package/dist/cjs/node_modules/@material-ui/core/esm/InputLabel/InputLabel.js.map +1 -0
  128. package/dist/cjs/node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js +2 -0
  129. package/dist/cjs/node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js.map +1 -0
  130. package/dist/cjs/node_modules/@material-ui/core/esm/Link/Link.js +2 -0
  131. package/dist/cjs/node_modules/@material-ui/core/esm/Link/Link.js.map +1 -0
  132. package/dist/cjs/node_modules/@material-ui/core/esm/List/List.js +2 -0
  133. package/dist/cjs/node_modules/@material-ui/core/esm/List/List.js.map +1 -0
  134. package/dist/cjs/node_modules/@material-ui/core/esm/List/ListContext.js +2 -0
  135. package/dist/cjs/node_modules/@material-ui/core/esm/List/ListContext.js.map +1 -0
  136. package/dist/cjs/node_modules/@material-ui/core/esm/ListItem/ListItem.js +2 -0
  137. package/dist/cjs/node_modules/@material-ui/core/esm/ListItem/ListItem.js.map +1 -0
  138. package/dist/cjs/node_modules/@material-ui/core/esm/ListItemAvatar/ListItemAvatar.js +2 -0
  139. package/dist/cjs/node_modules/@material-ui/core/esm/ListItemAvatar/ListItemAvatar.js.map +1 -0
  140. package/dist/cjs/node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js +2 -0
  141. package/dist/cjs/node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js.map +1 -0
  142. package/dist/cjs/node_modules/@material-ui/core/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  143. package/dist/cjs/node_modules/@material-ui/core/esm/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -0
  144. package/dist/cjs/node_modules/@material-ui/core/esm/ListItemText/ListItemText.js +2 -0
  145. package/dist/cjs/node_modules/@material-ui/core/esm/ListItemText/ListItemText.js.map +1 -0
  146. package/dist/cjs/node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js +2 -0
  147. package/dist/cjs/node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js.map +1 -0
  148. package/dist/cjs/node_modules/@material-ui/core/esm/Menu/Menu.js +2 -0
  149. package/dist/cjs/node_modules/@material-ui/core/esm/Menu/Menu.js.map +1 -0
  150. package/dist/cjs/node_modules/@material-ui/core/esm/MenuItem/MenuItem.js +2 -0
  151. package/dist/cjs/node_modules/@material-ui/core/esm/MenuItem/MenuItem.js.map +1 -0
  152. package/dist/cjs/node_modules/@material-ui/core/esm/MenuList/MenuList.js +2 -0
  153. package/dist/cjs/node_modules/@material-ui/core/esm/MenuList/MenuList.js.map +1 -0
  154. package/dist/cjs/node_modules/@material-ui/core/esm/MobileStepper/MobileStepper.js +2 -0
  155. package/dist/cjs/node_modules/@material-ui/core/esm/MobileStepper/MobileStepper.js.map +1 -0
  156. package/dist/cjs/node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js +2 -0
  157. package/dist/cjs/node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js.map +1 -0
  158. package/dist/cjs/node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js +2 -0
  159. package/dist/cjs/node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js.map +1 -0
  160. package/dist/cjs/node_modules/@material-ui/core/esm/NoSsr/NoSsr.js +2 -0
  161. package/dist/cjs/node_modules/@material-ui/core/esm/NoSsr/NoSsr.js.map +1 -0
  162. package/dist/cjs/node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js +2 -0
  163. package/dist/cjs/node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js.map +1 -0
  164. package/dist/cjs/node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js +2 -0
  165. package/dist/cjs/node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js.map +1 -0
  166. package/dist/cjs/node_modules/@material-ui/core/esm/Popover/Popover.js +2 -0
  167. package/dist/cjs/node_modules/@material-ui/core/esm/Popover/Popover.js.map +1 -0
  168. package/dist/cjs/node_modules/@material-ui/core/esm/Radio/Radio.js +2 -0
  169. package/dist/cjs/node_modules/@material-ui/core/esm/Radio/Radio.js.map +1 -0
  170. package/dist/cjs/node_modules/@material-ui/core/esm/Radio/RadioButtonIcon.js +2 -0
  171. package/dist/cjs/node_modules/@material-ui/core/esm/Radio/RadioButtonIcon.js.map +1 -0
  172. package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/RadioGroup.js +2 -0
  173. package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/RadioGroup.js.map +1 -0
  174. package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/RadioGroupContext.js +2 -0
  175. package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/RadioGroupContext.js.map +1 -0
  176. package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/useRadioGroup.js +2 -0
  177. package/dist/cjs/node_modules/@material-ui/core/esm/RadioGroup/useRadioGroup.js.map +1 -0
  178. package/dist/cjs/node_modules/@material-ui/core/esm/RootRef/RootRef.js +2 -0
  179. package/dist/cjs/node_modules/@material-ui/core/esm/RootRef/RootRef.js.map +1 -0
  180. package/dist/cjs/node_modules/@material-ui/core/esm/Select/Select.js +2 -0
  181. package/dist/cjs/node_modules/@material-ui/core/esm/Select/Select.js.map +1 -0
  182. package/dist/cjs/node_modules/@material-ui/core/esm/Select/SelectInput.js +2 -0
  183. package/dist/cjs/node_modules/@material-ui/core/esm/Select/SelectInput.js.map +1 -0
  184. package/dist/cjs/node_modules/@material-ui/core/esm/Slide/Slide.js +2 -0
  185. package/dist/cjs/node_modules/@material-ui/core/esm/Slide/Slide.js.map +1 -0
  186. package/dist/cjs/node_modules/@material-ui/core/esm/Slider/Slider.js +2 -0
  187. package/dist/cjs/node_modules/@material-ui/core/esm/Slider/Slider.js.map +1 -0
  188. package/dist/cjs/node_modules/@material-ui/core/esm/Slider/ValueLabel.js +2 -0
  189. package/dist/cjs/node_modules/@material-ui/core/esm/Slider/ValueLabel.js.map +1 -0
  190. package/dist/cjs/node_modules/@material-ui/core/esm/Snackbar/Snackbar.js +2 -0
  191. package/dist/cjs/node_modules/@material-ui/core/esm/Snackbar/Snackbar.js.map +1 -0
  192. package/dist/cjs/node_modules/@material-ui/core/esm/SnackbarContent/SnackbarContent.js +2 -0
  193. package/dist/cjs/node_modules/@material-ui/core/esm/SnackbarContent/SnackbarContent.js.map +1 -0
  194. package/dist/cjs/node_modules/@material-ui/core/esm/Step/Step.js +2 -0
  195. package/dist/cjs/node_modules/@material-ui/core/esm/Step/Step.js.map +1 -0
  196. package/dist/cjs/node_modules/@material-ui/core/esm/StepButton/StepButton.js +2 -0
  197. package/dist/cjs/node_modules/@material-ui/core/esm/StepButton/StepButton.js.map +1 -0
  198. package/dist/cjs/node_modules/@material-ui/core/esm/StepConnector/StepConnector.js +2 -0
  199. package/dist/cjs/node_modules/@material-ui/core/esm/StepConnector/StepConnector.js.map +1 -0
  200. package/dist/cjs/node_modules/@material-ui/core/esm/StepContent/StepContent.js +2 -0
  201. package/dist/cjs/node_modules/@material-ui/core/esm/StepContent/StepContent.js.map +1 -0
  202. package/dist/cjs/node_modules/@material-ui/core/esm/StepIcon/StepIcon.js +2 -0
  203. package/dist/cjs/node_modules/@material-ui/core/esm/StepIcon/StepIcon.js.map +1 -0
  204. package/dist/cjs/node_modules/@material-ui/core/esm/StepLabel/StepLabel.js +2 -0
  205. package/dist/cjs/node_modules/@material-ui/core/esm/StepLabel/StepLabel.js.map +1 -0
  206. package/dist/cjs/node_modules/@material-ui/core/esm/Stepper/Stepper.js +2 -0
  207. package/dist/cjs/node_modules/@material-ui/core/esm/Stepper/Stepper.js.map +1 -0
  208. package/dist/cjs/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeArea.js +2 -0
  209. package/dist/cjs/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeArea.js.map +1 -0
  210. package/dist/cjs/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeableDrawer.js +2 -0
  211. package/dist/cjs/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeableDrawer.js.map +1 -0
  212. package/dist/cjs/node_modules/@material-ui/core/esm/Tab/Tab.js +2 -0
  213. package/dist/cjs/node_modules/@material-ui/core/esm/Tab/Tab.js.map +1 -0
  214. package/dist/cjs/node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js +2 -0
  215. package/dist/cjs/node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js.map +1 -0
  216. package/dist/cjs/node_modules/@material-ui/core/esm/Table/Table.js +2 -0
  217. package/dist/cjs/node_modules/@material-ui/core/esm/Table/Table.js.map +1 -0
  218. package/dist/cjs/node_modules/@material-ui/core/esm/Table/TableContext.js +2 -0
  219. package/dist/cjs/node_modules/@material-ui/core/esm/Table/TableContext.js.map +1 -0
  220. package/dist/cjs/node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js +2 -0
  221. package/dist/cjs/node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js.map +1 -0
  222. package/dist/cjs/node_modules/@material-ui/core/esm/TableBody/TableBody.js +2 -0
  223. package/dist/cjs/node_modules/@material-ui/core/esm/TableBody/TableBody.js.map +1 -0
  224. package/dist/cjs/node_modules/@material-ui/core/esm/TableCell/TableCell.js +2 -0
  225. package/dist/cjs/node_modules/@material-ui/core/esm/TableCell/TableCell.js.map +1 -0
  226. package/dist/cjs/node_modules/@material-ui/core/esm/TableContainer/TableContainer.js +2 -0
  227. package/dist/cjs/node_modules/@material-ui/core/esm/TableContainer/TableContainer.js.map +1 -0
  228. package/dist/cjs/node_modules/@material-ui/core/esm/TableFooter/TableFooter.js +2 -0
  229. package/dist/cjs/node_modules/@material-ui/core/esm/TableFooter/TableFooter.js.map +1 -0
  230. package/dist/cjs/node_modules/@material-ui/core/esm/TableHead/TableHead.js +2 -0
  231. package/dist/cjs/node_modules/@material-ui/core/esm/TableHead/TableHead.js.map +1 -0
  232. package/dist/cjs/node_modules/@material-ui/core/esm/TablePagination/TablePagination.js +2 -0
  233. package/dist/cjs/node_modules/@material-ui/core/esm/TablePagination/TablePagination.js.map +1 -0
  234. package/dist/cjs/node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js +2 -0
  235. package/dist/cjs/node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js.map +1 -0
  236. package/dist/cjs/node_modules/@material-ui/core/esm/TableRow/TableRow.js +2 -0
  237. package/dist/cjs/node_modules/@material-ui/core/esm/TableRow/TableRow.js.map +1 -0
  238. package/dist/cjs/node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js +2 -0
  239. package/dist/cjs/node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js.map +1 -0
  240. package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js +2 -0
  241. package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js.map +1 -0
  242. package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/TabIndicator.js +2 -0
  243. package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/TabIndicator.js.map +1 -0
  244. package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/Tabs.js +2 -0
  245. package/dist/cjs/node_modules/@material-ui/core/esm/Tabs/Tabs.js.map +1 -0
  246. package/dist/cjs/node_modules/@material-ui/core/esm/TextField/TextField.js +2 -0
  247. package/dist/cjs/node_modules/@material-ui/core/esm/TextField/TextField.js.map +1 -0
  248. package/dist/cjs/node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js +2 -0
  249. package/dist/cjs/node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js.map +1 -0
  250. package/dist/cjs/node_modules/@material-ui/core/esm/Toolbar/Toolbar.js +2 -0
  251. package/dist/cjs/node_modules/@material-ui/core/esm/Toolbar/Toolbar.js.map +1 -0
  252. package/dist/cjs/node_modules/@material-ui/core/esm/Zoom/Zoom.js +2 -0
  253. package/dist/cjs/node_modules/@material-ui/core/esm/Zoom/Zoom.js.map +1 -0
  254. package/dist/cjs/node_modules/@material-ui/core/esm/internal/animate.js +2 -0
  255. package/dist/cjs/node_modules/@material-ui/core/esm/internal/animate.js.map +1 -0
  256. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js +2 -0
  257. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js.map +1 -0
  258. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js +2 -0
  259. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js.map +1 -0
  260. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js +2 -0
  261. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js.map +1 -0
  262. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js +2 -0
  263. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js.map +1 -0
  264. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js +2 -0
  265. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js.map +1 -0
  266. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckCircle.js +2 -0
  267. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/CheckCircle.js.map +1 -0
  268. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js +2 -0
  269. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js.map +1 -0
  270. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js +2 -0
  271. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js.map +1 -0
  272. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js +2 -0
  273. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js.map +1 -0
  274. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/MoreHoriz.js +2 -0
  275. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/MoreHoriz.js.map +1 -0
  276. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Person.js +2 -0
  277. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Person.js.map +1 -0
  278. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonChecked.js +2 -0
  279. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonChecked.js.map +1 -0
  280. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonUnchecked.js +2 -0
  281. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonUnchecked.js.map +1 -0
  282. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Warning.js +2 -0
  283. package/dist/cjs/node_modules/@material-ui/core/esm/internal/svg-icons/Warning.js.map +1 -0
  284. package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
  285. package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js.map +1 -1
  286. package/dist/cjs/node_modules/@material-ui/core/esm/styles/styled.js +2 -0
  287. package/dist/cjs/node_modules/@material-ui/core/esm/styles/styled.js.map +1 -0
  288. package/dist/cjs/node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js +2 -0
  289. package/dist/cjs/node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js.map +1 -0
  290. package/dist/cjs/node_modules/@material-ui/core/esm/utils/scrollLeft.js +2 -0
  291. package/dist/cjs/node_modules/@material-ui/core/esm/utils/scrollLeft.js.map +1 -0
  292. package/dist/cjs/node_modules/@material-ui/core/esm/withWidth/withWidth.js +2 -0
  293. package/dist/cjs/node_modules/@material-ui/core/esm/withWidth/withWidth.js.map +1 -0
  294. package/dist/cjs/node_modules/@material-ui/styles/esm/styled/styled.js +2 -0
  295. package/dist/cjs/node_modules/@material-ui/styles/esm/styled/styled.js.map +1 -0
  296. package/dist/cjs/node_modules/@material-ui/system/esm/borders.js +1 -1
  297. package/dist/cjs/node_modules/@material-ui/system/esm/borders.js.map +1 -1
  298. package/dist/cjs/node_modules/@material-ui/system/esm/display.js +1 -1
  299. package/dist/cjs/node_modules/@material-ui/system/esm/display.js.map +1 -1
  300. package/dist/cjs/node_modules/@material-ui/system/esm/flexbox.js +1 -1
  301. package/dist/cjs/node_modules/@material-ui/system/esm/flexbox.js.map +1 -1
  302. package/dist/cjs/node_modules/@material-ui/system/esm/grid.js +1 -1
  303. package/dist/cjs/node_modules/@material-ui/system/esm/grid.js.map +1 -1
  304. package/dist/cjs/node_modules/@material-ui/system/esm/memoize.js +2 -0
  305. package/dist/cjs/node_modules/@material-ui/system/esm/memoize.js.map +1 -0
  306. package/dist/cjs/node_modules/@material-ui/system/esm/palette.js +1 -1
  307. package/dist/cjs/node_modules/@material-ui/system/esm/palette.js.map +1 -1
  308. package/dist/cjs/node_modules/@material-ui/system/esm/positions.js +1 -1
  309. package/dist/cjs/node_modules/@material-ui/system/esm/positions.js.map +1 -1
  310. package/dist/cjs/node_modules/@material-ui/system/esm/shadows.js +1 -1
  311. package/dist/cjs/node_modules/@material-ui/system/esm/shadows.js.map +1 -1
  312. package/dist/cjs/node_modules/@material-ui/system/esm/sizing.js +1 -1
  313. package/dist/cjs/node_modules/@material-ui/system/esm/sizing.js.map +1 -1
  314. package/dist/cjs/node_modules/@material-ui/system/esm/spacing.js +1 -1
  315. package/dist/cjs/node_modules/@material-ui/system/esm/spacing.js.map +1 -1
  316. package/dist/cjs/node_modules/@material-ui/system/esm/styleFunctionSx.js +2 -0
  317. package/dist/cjs/node_modules/@material-ui/system/esm/styleFunctionSx.js.map +1 -0
  318. package/dist/cjs/node_modules/@material-ui/system/esm/typography.js +1 -1
  319. package/dist/cjs/node_modules/@material-ui/system/esm/typography.js.map +1 -1
  320. package/dist/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +2 -0
  321. package/dist/cjs/node_modules/memoize-one/dist/memoize-one.esm.js.map +1 -0
  322. package/dist/cjs/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js +2 -0
  323. package/dist/cjs/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js.map +1 -0
  324. package/dist/cjs/node_modules/react-window/dist/index.esm.js +2 -0
  325. package/dist/cjs/node_modules/react-window/dist/index.esm.js.map +1 -0
  326. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
  327. package/dist/features/Bookemon/BookPreview/BookPreview.js +1 -1
  328. package/dist/features/Bookemon/Bookemon.js +1 -1
  329. package/dist/features/CodeCitation/CodeCitation.js +1 -1
  330. package/dist/features/PaginatedTable/PaginatedTable.js +2 -0
  331. package/dist/features/PaginatedTable/PaginatedTable.js.map +1 -0
  332. package/dist/features/PaginatedTable/paginatedTable.module.css.js +2 -0
  333. package/dist/features/PaginatedTable/paginatedTable.module.css.js.map +1 -0
  334. package/dist/index.js +1 -1
  335. package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +2 -0
  336. package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
  337. package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +2 -0
  338. package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
  339. package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +2 -0
  340. package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
  341. package/dist/node_modules/@material-ui/core/esm/AccordionActions/AccordionActions.js +2 -0
  342. package/dist/node_modules/@material-ui/core/esm/AccordionActions/AccordionActions.js.map +1 -0
  343. package/dist/node_modules/@material-ui/core/esm/AppBar/AppBar.js +2 -0
  344. package/dist/node_modules/@material-ui/core/esm/AppBar/AppBar.js.map +1 -0
  345. package/dist/node_modules/@material-ui/core/esm/Avatar/Avatar.js +2 -0
  346. package/dist/node_modules/@material-ui/core/esm/Avatar/Avatar.js.map +1 -0
  347. package/dist/node_modules/@material-ui/core/esm/Badge/Badge.js +2 -0
  348. package/dist/node_modules/@material-ui/core/esm/Badge/Badge.js.map +1 -0
  349. package/dist/node_modules/@material-ui/core/esm/BottomNavigation/BottomNavigation.js +2 -0
  350. package/dist/node_modules/@material-ui/core/esm/BottomNavigation/BottomNavigation.js.map +1 -0
  351. package/dist/node_modules/@material-ui/core/esm/BottomNavigationAction/BottomNavigationAction.js +2 -0
  352. package/dist/node_modules/@material-ui/core/esm/BottomNavigationAction/BottomNavigationAction.js.map +1 -0
  353. package/dist/node_modules/@material-ui/core/esm/Box/Box.js +2 -0
  354. package/dist/node_modules/@material-ui/core/esm/Box/Box.js.map +1 -0
  355. package/dist/node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js +2 -0
  356. package/dist/node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -0
  357. package/dist/node_modules/@material-ui/core/esm/Breadcrumbs/Breadcrumbs.js +2 -0
  358. package/dist/node_modules/@material-ui/core/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
  359. package/dist/node_modules/@material-ui/core/esm/Button/Button.js +2 -0
  360. package/dist/node_modules/@material-ui/core/esm/Button/Button.js.map +1 -0
  361. package/dist/node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js +2 -0
  362. package/dist/node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js.map +1 -0
  363. package/dist/node_modules/@material-ui/core/esm/Card/Card.js +2 -0
  364. package/dist/node_modules/@material-ui/core/esm/Card/Card.js.map +1 -0
  365. package/dist/node_modules/@material-ui/core/esm/CardActionArea/CardActionArea.js +2 -0
  366. package/dist/node_modules/@material-ui/core/esm/CardActionArea/CardActionArea.js.map +1 -0
  367. package/dist/node_modules/@material-ui/core/esm/CardActions/CardActions.js +2 -0
  368. package/dist/node_modules/@material-ui/core/esm/CardActions/CardActions.js.map +1 -0
  369. package/dist/node_modules/@material-ui/core/esm/CardContent/CardContent.js +2 -0
  370. package/dist/node_modules/@material-ui/core/esm/CardContent/CardContent.js.map +1 -0
  371. package/dist/node_modules/@material-ui/core/esm/CardHeader/CardHeader.js +2 -0
  372. package/dist/node_modules/@material-ui/core/esm/CardHeader/CardHeader.js.map +1 -0
  373. package/dist/node_modules/@material-ui/core/esm/CardMedia/CardMedia.js +2 -0
  374. package/dist/node_modules/@material-ui/core/esm/CardMedia/CardMedia.js.map +1 -0
  375. package/dist/node_modules/@material-ui/core/esm/Checkbox/Checkbox.js +2 -0
  376. package/dist/node_modules/@material-ui/core/esm/Checkbox/Checkbox.js.map +1 -0
  377. package/dist/node_modules/@material-ui/core/esm/Chip/Chip.js +2 -0
  378. package/dist/node_modules/@material-ui/core/esm/Chip/Chip.js.map +1 -0
  379. package/dist/node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js +2 -0
  380. package/dist/node_modules/@material-ui/core/esm/ClickAwayListener/ClickAwayListener.js.map +1 -0
  381. package/dist/node_modules/@material-ui/core/esm/Container/Container.js +2 -0
  382. package/dist/node_modules/@material-ui/core/esm/Container/Container.js.map +1 -0
  383. package/dist/node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js +2 -0
  384. package/dist/node_modules/@material-ui/core/esm/CssBaseline/CssBaseline.js.map +1 -0
  385. package/dist/node_modules/@material-ui/core/esm/DialogActions/DialogActions.js +2 -0
  386. package/dist/node_modules/@material-ui/core/esm/DialogActions/DialogActions.js.map +1 -0
  387. package/dist/node_modules/@material-ui/core/esm/DialogContentText/DialogContentText.js +2 -0
  388. package/dist/node_modules/@material-ui/core/esm/DialogContentText/DialogContentText.js.map +1 -0
  389. package/dist/node_modules/@material-ui/core/esm/Divider/Divider.js +2 -0
  390. package/dist/node_modules/@material-ui/core/esm/Divider/Divider.js.map +1 -0
  391. package/dist/node_modules/@material-ui/core/esm/Drawer/Drawer.js +2 -0
  392. package/dist/node_modules/@material-ui/core/esm/Drawer/Drawer.js.map +1 -0
  393. package/dist/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanel.js +2 -0
  394. package/dist/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanel.js.map +1 -0
  395. package/dist/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanelContext.js +2 -0
  396. package/dist/node_modules/@material-ui/core/esm/ExpansionPanel/ExpansionPanelContext.js.map +1 -0
  397. package/dist/node_modules/@material-ui/core/esm/ExpansionPanelActions/ExpansionPanelActions.js +2 -0
  398. package/dist/node_modules/@material-ui/core/esm/ExpansionPanelActions/ExpansionPanelActions.js.map +1 -0
  399. package/dist/node_modules/@material-ui/core/esm/ExpansionPanelDetails/ExpansionPanelDetails.js +2 -0
  400. package/dist/node_modules/@material-ui/core/esm/ExpansionPanelDetails/ExpansionPanelDetails.js.map +1 -0
  401. package/dist/node_modules/@material-ui/core/esm/ExpansionPanelSummary/ExpansionPanelSummary.js +2 -0
  402. package/dist/node_modules/@material-ui/core/esm/ExpansionPanelSummary/ExpansionPanelSummary.js.map +1 -0
  403. package/dist/node_modules/@material-ui/core/esm/Fab/Fab.js +2 -0
  404. package/dist/node_modules/@material-ui/core/esm/Fab/Fab.js.map +1 -0
  405. package/dist/node_modules/@material-ui/core/esm/FilledInput/FilledInput.js +2 -0
  406. package/dist/node_modules/@material-ui/core/esm/FilledInput/FilledInput.js.map +1 -0
  407. package/dist/node_modules/@material-ui/core/esm/FormControl/FormControl.js +2 -0
  408. package/dist/node_modules/@material-ui/core/esm/FormControl/FormControl.js.map +1 -0
  409. package/dist/node_modules/@material-ui/core/esm/FormControl/FormControlContext.js +1 -1
  410. package/dist/node_modules/@material-ui/core/esm/FormControl/FormControlContext.js.map +1 -1
  411. package/dist/node_modules/@material-ui/core/esm/FormControl/formControlState.js +2 -0
  412. package/dist/node_modules/@material-ui/core/esm/FormControl/formControlState.js.map +1 -0
  413. package/dist/node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js +2 -0
  414. package/dist/node_modules/@material-ui/core/esm/FormControlLabel/FormControlLabel.js.map +1 -0
  415. package/dist/node_modules/@material-ui/core/esm/FormGroup/FormGroup.js +2 -0
  416. package/dist/node_modules/@material-ui/core/esm/FormGroup/FormGroup.js.map +1 -0
  417. package/dist/node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js +2 -0
  418. package/dist/node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js.map +1 -0
  419. package/dist/node_modules/@material-ui/core/esm/FormLabel/FormLabel.js +2 -0
  420. package/dist/node_modules/@material-ui/core/esm/FormLabel/FormLabel.js.map +1 -0
  421. package/dist/node_modules/@material-ui/core/esm/Grid/Grid.js +2 -0
  422. package/dist/node_modules/@material-ui/core/esm/Grid/Grid.js.map +1 -0
  423. package/dist/node_modules/@material-ui/core/esm/GridList/GridList.js +2 -0
  424. package/dist/node_modules/@material-ui/core/esm/GridList/GridList.js.map +1 -0
  425. package/dist/node_modules/@material-ui/core/esm/GridListTile/GridListTile.js +2 -0
  426. package/dist/node_modules/@material-ui/core/esm/GridListTile/GridListTile.js.map +1 -0
  427. package/dist/node_modules/@material-ui/core/esm/GridListTileBar/GridListTileBar.js +2 -0
  428. package/dist/node_modules/@material-ui/core/esm/GridListTileBar/GridListTileBar.js.map +1 -0
  429. package/dist/node_modules/@material-ui/core/esm/Hidden/Hidden.js +2 -0
  430. package/dist/node_modules/@material-ui/core/esm/Hidden/Hidden.js.map +1 -0
  431. package/dist/node_modules/@material-ui/core/esm/Hidden/HiddenCss.js +2 -0
  432. package/dist/node_modules/@material-ui/core/esm/Hidden/HiddenCss.js.map +1 -0
  433. package/dist/node_modules/@material-ui/core/esm/Hidden/HiddenJs.js +2 -0
  434. package/dist/node_modules/@material-ui/core/esm/Hidden/HiddenJs.js.map +1 -0
  435. package/dist/node_modules/@material-ui/core/esm/Icon/Icon.js +2 -0
  436. package/dist/node_modules/@material-ui/core/esm/Icon/Icon.js.map +1 -0
  437. package/dist/node_modules/@material-ui/core/esm/ImageList/ImageList.js +2 -0
  438. package/dist/node_modules/@material-ui/core/esm/ImageList/ImageList.js.map +1 -0
  439. package/dist/node_modules/@material-ui/core/esm/ImageListItem/ImageListItem.js +2 -0
  440. package/dist/node_modules/@material-ui/core/esm/ImageListItem/ImageListItem.js.map +1 -0
  441. package/dist/node_modules/@material-ui/core/esm/ImageListItemBar/ImageListItemBar.js +2 -0
  442. package/dist/node_modules/@material-ui/core/esm/ImageListItemBar/ImageListItemBar.js.map +1 -0
  443. package/dist/node_modules/@material-ui/core/esm/Input/Input.js +2 -0
  444. package/dist/node_modules/@material-ui/core/esm/Input/Input.js.map +1 -0
  445. package/dist/node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js +2 -0
  446. package/dist/node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js.map +1 -0
  447. package/dist/node_modules/@material-ui/core/esm/InputBase/InputBase.js +2 -0
  448. package/dist/node_modules/@material-ui/core/esm/InputBase/InputBase.js.map +1 -0
  449. package/dist/node_modules/@material-ui/core/esm/InputBase/utils.js +2 -0
  450. package/dist/node_modules/@material-ui/core/esm/InputBase/utils.js.map +1 -0
  451. package/dist/node_modules/@material-ui/core/esm/InputLabel/InputLabel.js +2 -0
  452. package/dist/node_modules/@material-ui/core/esm/InputLabel/InputLabel.js.map +1 -0
  453. package/dist/node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js +2 -0
  454. package/dist/node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js.map +1 -0
  455. package/dist/node_modules/@material-ui/core/esm/Link/Link.js +2 -0
  456. package/dist/node_modules/@material-ui/core/esm/Link/Link.js.map +1 -0
  457. package/dist/node_modules/@material-ui/core/esm/List/List.js +2 -0
  458. package/dist/node_modules/@material-ui/core/esm/List/List.js.map +1 -0
  459. package/dist/node_modules/@material-ui/core/esm/List/ListContext.js +2 -0
  460. package/dist/node_modules/@material-ui/core/esm/List/ListContext.js.map +1 -0
  461. package/dist/node_modules/@material-ui/core/esm/ListItem/ListItem.js +2 -0
  462. package/dist/node_modules/@material-ui/core/esm/ListItem/ListItem.js.map +1 -0
  463. package/dist/node_modules/@material-ui/core/esm/ListItemAvatar/ListItemAvatar.js +2 -0
  464. package/dist/node_modules/@material-ui/core/esm/ListItemAvatar/ListItemAvatar.js.map +1 -0
  465. package/dist/node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js +2 -0
  466. package/dist/node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js.map +1 -0
  467. package/dist/node_modules/@material-ui/core/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
  468. package/dist/node_modules/@material-ui/core/esm/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -0
  469. package/dist/node_modules/@material-ui/core/esm/ListItemText/ListItemText.js +2 -0
  470. package/dist/node_modules/@material-ui/core/esm/ListItemText/ListItemText.js.map +1 -0
  471. package/dist/node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js +2 -0
  472. package/dist/node_modules/@material-ui/core/esm/ListSubheader/ListSubheader.js.map +1 -0
  473. package/dist/node_modules/@material-ui/core/esm/Menu/Menu.js +2 -0
  474. package/dist/node_modules/@material-ui/core/esm/Menu/Menu.js.map +1 -0
  475. package/dist/node_modules/@material-ui/core/esm/MenuItem/MenuItem.js +2 -0
  476. package/dist/node_modules/@material-ui/core/esm/MenuItem/MenuItem.js.map +1 -0
  477. package/dist/node_modules/@material-ui/core/esm/MenuList/MenuList.js +2 -0
  478. package/dist/node_modules/@material-ui/core/esm/MenuList/MenuList.js.map +1 -0
  479. package/dist/node_modules/@material-ui/core/esm/MobileStepper/MobileStepper.js +2 -0
  480. package/dist/node_modules/@material-ui/core/esm/MobileStepper/MobileStepper.js.map +1 -0
  481. package/dist/node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js +2 -0
  482. package/dist/node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js.map +1 -0
  483. package/dist/node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js +2 -0
  484. package/dist/node_modules/@material-ui/core/esm/NativeSelect/NativeSelectInput.js.map +1 -0
  485. package/dist/node_modules/@material-ui/core/esm/NoSsr/NoSsr.js +2 -0
  486. package/dist/node_modules/@material-ui/core/esm/NoSsr/NoSsr.js.map +1 -0
  487. package/dist/node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js +2 -0
  488. package/dist/node_modules/@material-ui/core/esm/OutlinedInput/NotchedOutline.js.map +1 -0
  489. package/dist/node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js +2 -0
  490. package/dist/node_modules/@material-ui/core/esm/OutlinedInput/OutlinedInput.js.map +1 -0
  491. package/dist/node_modules/@material-ui/core/esm/Popover/Popover.js +2 -0
  492. package/dist/node_modules/@material-ui/core/esm/Popover/Popover.js.map +1 -0
  493. package/dist/node_modules/@material-ui/core/esm/Radio/Radio.js +2 -0
  494. package/dist/node_modules/@material-ui/core/esm/Radio/Radio.js.map +1 -0
  495. package/dist/node_modules/@material-ui/core/esm/Radio/RadioButtonIcon.js +2 -0
  496. package/dist/node_modules/@material-ui/core/esm/Radio/RadioButtonIcon.js.map +1 -0
  497. package/dist/node_modules/@material-ui/core/esm/RadioGroup/RadioGroup.js +2 -0
  498. package/dist/node_modules/@material-ui/core/esm/RadioGroup/RadioGroup.js.map +1 -0
  499. package/dist/node_modules/@material-ui/core/esm/RadioGroup/RadioGroupContext.js +2 -0
  500. package/dist/node_modules/@material-ui/core/esm/RadioGroup/RadioGroupContext.js.map +1 -0
  501. package/dist/node_modules/@material-ui/core/esm/RadioGroup/useRadioGroup.js +2 -0
  502. package/dist/node_modules/@material-ui/core/esm/RadioGroup/useRadioGroup.js.map +1 -0
  503. package/dist/node_modules/@material-ui/core/esm/RootRef/RootRef.js +2 -0
  504. package/dist/node_modules/@material-ui/core/esm/RootRef/RootRef.js.map +1 -0
  505. package/dist/node_modules/@material-ui/core/esm/Select/Select.js +2 -0
  506. package/dist/node_modules/@material-ui/core/esm/Select/Select.js.map +1 -0
  507. package/dist/node_modules/@material-ui/core/esm/Select/SelectInput.js +2 -0
  508. package/dist/node_modules/@material-ui/core/esm/Select/SelectInput.js.map +1 -0
  509. package/dist/node_modules/@material-ui/core/esm/Slide/Slide.js +2 -0
  510. package/dist/node_modules/@material-ui/core/esm/Slide/Slide.js.map +1 -0
  511. package/dist/node_modules/@material-ui/core/esm/Slider/Slider.js +2 -0
  512. package/dist/node_modules/@material-ui/core/esm/Slider/Slider.js.map +1 -0
  513. package/dist/node_modules/@material-ui/core/esm/Slider/ValueLabel.js +2 -0
  514. package/dist/node_modules/@material-ui/core/esm/Slider/ValueLabel.js.map +1 -0
  515. package/dist/node_modules/@material-ui/core/esm/Snackbar/Snackbar.js +2 -0
  516. package/dist/node_modules/@material-ui/core/esm/Snackbar/Snackbar.js.map +1 -0
  517. package/dist/node_modules/@material-ui/core/esm/SnackbarContent/SnackbarContent.js +2 -0
  518. package/dist/node_modules/@material-ui/core/esm/SnackbarContent/SnackbarContent.js.map +1 -0
  519. package/dist/node_modules/@material-ui/core/esm/Step/Step.js +2 -0
  520. package/dist/node_modules/@material-ui/core/esm/Step/Step.js.map +1 -0
  521. package/dist/node_modules/@material-ui/core/esm/StepButton/StepButton.js +2 -0
  522. package/dist/node_modules/@material-ui/core/esm/StepButton/StepButton.js.map +1 -0
  523. package/dist/node_modules/@material-ui/core/esm/StepConnector/StepConnector.js +2 -0
  524. package/dist/node_modules/@material-ui/core/esm/StepConnector/StepConnector.js.map +1 -0
  525. package/dist/node_modules/@material-ui/core/esm/StepContent/StepContent.js +2 -0
  526. package/dist/node_modules/@material-ui/core/esm/StepContent/StepContent.js.map +1 -0
  527. package/dist/node_modules/@material-ui/core/esm/StepIcon/StepIcon.js +2 -0
  528. package/dist/node_modules/@material-ui/core/esm/StepIcon/StepIcon.js.map +1 -0
  529. package/dist/node_modules/@material-ui/core/esm/StepLabel/StepLabel.js +2 -0
  530. package/dist/node_modules/@material-ui/core/esm/StepLabel/StepLabel.js.map +1 -0
  531. package/dist/node_modules/@material-ui/core/esm/Stepper/Stepper.js +2 -0
  532. package/dist/node_modules/@material-ui/core/esm/Stepper/Stepper.js.map +1 -0
  533. package/dist/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeArea.js +2 -0
  534. package/dist/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeArea.js.map +1 -0
  535. package/dist/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeableDrawer.js +2 -0
  536. package/dist/node_modules/@material-ui/core/esm/SwipeableDrawer/SwipeableDrawer.js.map +1 -0
  537. package/dist/node_modules/@material-ui/core/esm/Tab/Tab.js +2 -0
  538. package/dist/node_modules/@material-ui/core/esm/Tab/Tab.js.map +1 -0
  539. package/dist/node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js +2 -0
  540. package/dist/node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js.map +1 -0
  541. package/dist/node_modules/@material-ui/core/esm/Table/Table.js +2 -0
  542. package/dist/node_modules/@material-ui/core/esm/Table/Table.js.map +1 -0
  543. package/dist/node_modules/@material-ui/core/esm/Table/TableContext.js +2 -0
  544. package/dist/node_modules/@material-ui/core/esm/Table/TableContext.js.map +1 -0
  545. package/dist/node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js +2 -0
  546. package/dist/node_modules/@material-ui/core/esm/Table/Tablelvl2Context.js.map +1 -0
  547. package/dist/node_modules/@material-ui/core/esm/TableBody/TableBody.js +2 -0
  548. package/dist/node_modules/@material-ui/core/esm/TableBody/TableBody.js.map +1 -0
  549. package/dist/node_modules/@material-ui/core/esm/TableCell/TableCell.js +2 -0
  550. package/dist/node_modules/@material-ui/core/esm/TableCell/TableCell.js.map +1 -0
  551. package/dist/node_modules/@material-ui/core/esm/TableContainer/TableContainer.js +2 -0
  552. package/dist/node_modules/@material-ui/core/esm/TableContainer/TableContainer.js.map +1 -0
  553. package/dist/node_modules/@material-ui/core/esm/TableFooter/TableFooter.js +2 -0
  554. package/dist/node_modules/@material-ui/core/esm/TableFooter/TableFooter.js.map +1 -0
  555. package/dist/node_modules/@material-ui/core/esm/TableHead/TableHead.js +2 -0
  556. package/dist/node_modules/@material-ui/core/esm/TableHead/TableHead.js.map +1 -0
  557. package/dist/node_modules/@material-ui/core/esm/TablePagination/TablePagination.js +2 -0
  558. package/dist/node_modules/@material-ui/core/esm/TablePagination/TablePagination.js.map +1 -0
  559. package/dist/node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js +2 -0
  560. package/dist/node_modules/@material-ui/core/esm/TablePagination/TablePaginationActions.js.map +1 -0
  561. package/dist/node_modules/@material-ui/core/esm/TableRow/TableRow.js +2 -0
  562. package/dist/node_modules/@material-ui/core/esm/TableRow/TableRow.js.map +1 -0
  563. package/dist/node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js +2 -0
  564. package/dist/node_modules/@material-ui/core/esm/TableSortLabel/TableSortLabel.js.map +1 -0
  565. package/dist/node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js +2 -0
  566. package/dist/node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js.map +1 -0
  567. package/dist/node_modules/@material-ui/core/esm/Tabs/TabIndicator.js +2 -0
  568. package/dist/node_modules/@material-ui/core/esm/Tabs/TabIndicator.js.map +1 -0
  569. package/dist/node_modules/@material-ui/core/esm/Tabs/Tabs.js +2 -0
  570. package/dist/node_modules/@material-ui/core/esm/Tabs/Tabs.js.map +1 -0
  571. package/dist/node_modules/@material-ui/core/esm/TextField/TextField.js +2 -0
  572. package/dist/node_modules/@material-ui/core/esm/TextField/TextField.js.map +1 -0
  573. package/dist/node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js +2 -0
  574. package/dist/node_modules/@material-ui/core/esm/TextareaAutosize/TextareaAutosize.js.map +1 -0
  575. package/dist/node_modules/@material-ui/core/esm/Toolbar/Toolbar.js +2 -0
  576. package/dist/node_modules/@material-ui/core/esm/Toolbar/Toolbar.js.map +1 -0
  577. package/dist/node_modules/@material-ui/core/esm/Zoom/Zoom.js +2 -0
  578. package/dist/node_modules/@material-ui/core/esm/Zoom/Zoom.js.map +1 -0
  579. package/dist/node_modules/@material-ui/core/esm/internal/animate.js +2 -0
  580. package/dist/node_modules/@material-ui/core/esm/internal/animate.js.map +1 -0
  581. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js +2 -0
  582. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDownward.js.map +1 -0
  583. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js +2 -0
  584. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/ArrowDropDown.js.map +1 -0
  585. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js +2 -0
  586. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Cancel.js.map +1 -0
  587. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js +2 -0
  588. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBox.js.map +1 -0
  589. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js +2 -0
  590. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckBoxOutlineBlank.js.map +1 -0
  591. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckCircle.js +2 -0
  592. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/CheckCircle.js.map +1 -0
  593. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js +2 -0
  594. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/IndeterminateCheckBox.js.map +1 -0
  595. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js +2 -0
  596. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js.map +1 -0
  597. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js +2 -0
  598. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js.map +1 -0
  599. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/MoreHoriz.js +2 -0
  600. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/MoreHoriz.js.map +1 -0
  601. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Person.js +2 -0
  602. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Person.js.map +1 -0
  603. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonChecked.js +2 -0
  604. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonChecked.js.map +1 -0
  605. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonUnchecked.js +2 -0
  606. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonUnchecked.js.map +1 -0
  607. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Warning.js +2 -0
  608. package/dist/node_modules/@material-ui/core/esm/internal/svg-icons/Warning.js.map +1 -0
  609. package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
  610. package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js.map +1 -1
  611. package/dist/node_modules/@material-ui/core/esm/styles/styled.js +2 -0
  612. package/dist/node_modules/@material-ui/core/esm/styles/styled.js.map +1 -0
  613. package/dist/node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js +2 -0
  614. package/dist/node_modules/@material-ui/core/esm/useMediaQuery/useMediaQuery.js.map +1 -0
  615. package/dist/node_modules/@material-ui/core/esm/utils/scrollLeft.js +2 -0
  616. package/dist/node_modules/@material-ui/core/esm/utils/scrollLeft.js.map +1 -0
  617. package/dist/node_modules/@material-ui/core/esm/withWidth/withWidth.js +2 -0
  618. package/dist/node_modules/@material-ui/core/esm/withWidth/withWidth.js.map +1 -0
  619. package/dist/node_modules/@material-ui/styles/esm/styled/styled.js +2 -0
  620. package/dist/node_modules/@material-ui/styles/esm/styled/styled.js.map +1 -0
  621. package/dist/node_modules/@material-ui/system/esm/borders.js +1 -1
  622. package/dist/node_modules/@material-ui/system/esm/borders.js.map +1 -1
  623. package/dist/node_modules/@material-ui/system/esm/display.js +1 -1
  624. package/dist/node_modules/@material-ui/system/esm/display.js.map +1 -1
  625. package/dist/node_modules/@material-ui/system/esm/flexbox.js +1 -1
  626. package/dist/node_modules/@material-ui/system/esm/flexbox.js.map +1 -1
  627. package/dist/node_modules/@material-ui/system/esm/grid.js +1 -1
  628. package/dist/node_modules/@material-ui/system/esm/grid.js.map +1 -1
  629. package/dist/node_modules/@material-ui/system/esm/memoize.js +2 -0
  630. package/dist/node_modules/@material-ui/system/esm/memoize.js.map +1 -0
  631. package/dist/node_modules/@material-ui/system/esm/palette.js +1 -1
  632. package/dist/node_modules/@material-ui/system/esm/palette.js.map +1 -1
  633. package/dist/node_modules/@material-ui/system/esm/positions.js +1 -1
  634. package/dist/node_modules/@material-ui/system/esm/positions.js.map +1 -1
  635. package/dist/node_modules/@material-ui/system/esm/shadows.js +1 -1
  636. package/dist/node_modules/@material-ui/system/esm/shadows.js.map +1 -1
  637. package/dist/node_modules/@material-ui/system/esm/sizing.js +1 -1
  638. package/dist/node_modules/@material-ui/system/esm/sizing.js.map +1 -1
  639. package/dist/node_modules/@material-ui/system/esm/spacing.js +1 -1
  640. package/dist/node_modules/@material-ui/system/esm/spacing.js.map +1 -1
  641. package/dist/node_modules/@material-ui/system/esm/styleFunctionSx.js +2 -0
  642. package/dist/node_modules/@material-ui/system/esm/styleFunctionSx.js.map +1 -0
  643. package/dist/node_modules/@material-ui/system/esm/typography.js +1 -1
  644. package/dist/node_modules/@material-ui/system/esm/typography.js.map +1 -1
  645. package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +2 -0
  646. package/dist/node_modules/memoize-one/dist/memoize-one.esm.js.map +1 -0
  647. package/dist/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js +2 -0
  648. package/dist/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js.map +1 -0
  649. package/dist/node_modules/react-window/dist/index.esm.js +2 -0
  650. package/dist/node_modules/react-window/dist/index.esm.js.map +1 -0
  651. package/dist/types/src/BookemonTest.d.ts.map +1 -1
  652. package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts +3 -0
  653. package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts.map +1 -0
  654. package/dist/types/src/PaginatedTableTest/useFetchData.d.ts +15 -0
  655. package/dist/types/src/PaginatedTableTest/useFetchData.d.ts.map +1 -0
  656. package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts +1 -0
  657. package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts.map +1 -1
  658. package/dist/types/src/features/Bookemon/Bookemon.d.ts +2 -1
  659. package/dist/types/src/features/Bookemon/Bookemon.d.ts.map +1 -1
  660. package/dist/types/src/features/CodeCitation/CodeCitation.d.ts +2 -1
  661. package/dist/types/src/features/CodeCitation/CodeCitation.d.ts.map +1 -1
  662. package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts +27 -0
  663. package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts.map +1 -0
  664. package/dist/types/src/index.d.ts +1 -0
  665. package/dist/types/src/index.d.ts.map +1 -1
  666. package/dist/types/src/types/CodeCitationTypes.d.ts +19 -0
  667. package/dist/types/src/types/CodeCitationTypes.d.ts.map +1 -1
  668. package/dist/types/src/utils/helperFunctions.d.ts +4 -0
  669. package/dist/types/src/utils/helperFunctions.d.ts.map +1 -1
  670. package/package.json +9 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-virtualized-auto-sizer.esm.js","sources":["../../../../../node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js"],"sourcesContent":["import { Component, createElement } from 'react';\n\n/**\n * Detect Element Resize.\n * https://github.com/sdecima/javascript-detect-element-resize\n * Sebastian Decima\n *\n * Forked from version 0.5.3; includes the following modifications:\n * 1) Guard against unsafe 'window' and 'document' references (to support SSR).\n * 2) Defer initialization code via a top-level function wrapper (to support SSR).\n * 3) Avoid unnecessary reflows by not measuring size for scroll events bubbling from children.\n * 4) Add nonce for style element.\n * 5) Use 'export' statement over 'module.exports' assignment\n **/\n\n// Check `document` and `window` in case of server-side rendering\nlet windowObject;\nif (typeof window !== \"undefined\") {\n windowObject = window;\n\n // eslint-disable-next-line no-restricted-globals\n} else if (typeof self !== \"undefined\") {\n // eslint-disable-next-line no-restricted-globals\n windowObject = self;\n} else {\n windowObject = global;\n}\nlet cancelFrame = null;\nlet requestFrame = null;\nconst TIMEOUT_DURATION = 20;\nconst clearTimeoutFn = windowObject.clearTimeout;\nconst setTimeoutFn = windowObject.setTimeout;\nconst cancelAnimationFrameFn = windowObject.cancelAnimationFrame || windowObject.mozCancelAnimationFrame || windowObject.webkitCancelAnimationFrame;\nconst requestAnimationFrameFn = windowObject.requestAnimationFrame || windowObject.mozRequestAnimationFrame || windowObject.webkitRequestAnimationFrame;\nif (cancelAnimationFrameFn == null || requestAnimationFrameFn == null) {\n // For environments that don't support animation frame,\n // fallback to a setTimeout based approach.\n cancelFrame = clearTimeoutFn;\n requestFrame = function requestAnimationFrameViaSetTimeout(callback) {\n return setTimeoutFn(callback, TIMEOUT_DURATION);\n };\n} else {\n // Counter intuitively, environments that support animation frames can be trickier.\n // Chrome's \"Throttle non-visible cross-origin iframes\" flag can prevent rAFs from being called.\n // In this case, we should fallback to a setTimeout() implementation.\n cancelFrame = function cancelFrame([animationFrameID, timeoutID]) {\n cancelAnimationFrameFn(animationFrameID);\n clearTimeoutFn(timeoutID);\n };\n requestFrame = function requestAnimationFrameWithSetTimeoutFallback(callback) {\n const animationFrameID = requestAnimationFrameFn(function animationFrameCallback() {\n clearTimeoutFn(timeoutID);\n callback();\n });\n const timeoutID = setTimeoutFn(function timeoutCallback() {\n cancelAnimationFrameFn(animationFrameID);\n callback();\n }, TIMEOUT_DURATION);\n return [animationFrameID, timeoutID];\n };\n}\nfunction createDetectElementResize(nonce) {\n let animationKeyframes;\n let animationName;\n let animationStartEvent;\n let animationStyle;\n let checkTriggers;\n let resetTriggers;\n let scrollListener;\n const attachEvent = typeof document !== \"undefined\" && document.attachEvent;\n if (!attachEvent) {\n resetTriggers = function (element) {\n const triggers = element.__resizeTriggers__,\n expand = triggers.firstElementChild,\n contract = triggers.lastElementChild,\n expandChild = expand.firstElementChild;\n contract.scrollLeft = contract.scrollWidth;\n contract.scrollTop = contract.scrollHeight;\n expandChild.style.width = expand.offsetWidth + 1 + \"px\";\n expandChild.style.height = expand.offsetHeight + 1 + \"px\";\n expand.scrollLeft = expand.scrollWidth;\n expand.scrollTop = expand.scrollHeight;\n };\n checkTriggers = function (element) {\n return element.offsetWidth !== element.__resizeLast__.width || element.offsetHeight !== element.__resizeLast__.height;\n };\n scrollListener = function (e) {\n // Don't measure (which forces) reflow for scrolls that happen inside of children!\n if (e.target.className && typeof e.target.className.indexOf === \"function\" && e.target.className.indexOf(\"contract-trigger\") < 0 && e.target.className.indexOf(\"expand-trigger\") < 0) {\n return;\n }\n const element = this;\n resetTriggers(this);\n if (this.__resizeRAF__) {\n cancelFrame(this.__resizeRAF__);\n }\n this.__resizeRAF__ = requestFrame(function animationFrame() {\n if (checkTriggers(element)) {\n element.__resizeLast__.width = element.offsetWidth;\n element.__resizeLast__.height = element.offsetHeight;\n element.__resizeListeners__.forEach(function forEachResizeListener(fn) {\n fn.call(element, e);\n });\n }\n });\n };\n\n /* Detect CSS Animations support to detect element display/re-attach */\n let animation = false;\n let keyframeprefix = \"\";\n animationStartEvent = \"animationstart\";\n const domPrefixes = \"Webkit Moz O ms\".split(\" \");\n let startEvents = \"webkitAnimationStart animationstart oAnimationStart MSAnimationStart\".split(\" \");\n let pfx = \"\";\n {\n const elm = document.createElement(\"fakeelement\");\n if (elm.style.animationName !== undefined) {\n animation = true;\n }\n if (animation === false) {\n for (let i = 0; i < domPrefixes.length; i++) {\n if (elm.style[domPrefixes[i] + \"AnimationName\"] !== undefined) {\n pfx = domPrefixes[i];\n keyframeprefix = \"-\" + pfx.toLowerCase() + \"-\";\n animationStartEvent = startEvents[i];\n animation = true;\n break;\n }\n }\n }\n }\n animationName = \"resizeanim\";\n animationKeyframes = \"@\" + keyframeprefix + \"keyframes \" + animationName + \" { from { opacity: 0; } to { opacity: 0; } } \";\n animationStyle = keyframeprefix + \"animation: 1ms \" + animationName + \"; \";\n }\n const createStyles = function (doc) {\n if (!doc.getElementById(\"detectElementResize\")) {\n //opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360\n const css = (animationKeyframes ? animationKeyframes : \"\") + \".resize-triggers { \" + (animationStyle ? animationStyle : \"\") + \"visibility: hidden; opacity: 0; } \" + '.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',\n head = doc.head || doc.getElementsByTagName(\"head\")[0],\n style = doc.createElement(\"style\");\n style.id = \"detectElementResize\";\n style.type = \"text/css\";\n if (nonce != null) {\n style.setAttribute(\"nonce\", nonce);\n }\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(doc.createTextNode(css));\n }\n head.appendChild(style);\n }\n };\n const addResizeListener = function (element, fn) {\n if (attachEvent) {\n element.attachEvent(\"onresize\", fn);\n } else {\n if (!element.__resizeTriggers__) {\n const doc = element.ownerDocument;\n const elementStyle = windowObject.getComputedStyle(element);\n if (elementStyle && elementStyle.position === \"static\") {\n element.style.position = \"relative\";\n }\n createStyles(doc);\n element.__resizeLast__ = {};\n element.__resizeListeners__ = [];\n (element.__resizeTriggers__ = doc.createElement(\"div\")).className = \"resize-triggers\";\n const expandTrigger = doc.createElement(\"div\");\n expandTrigger.className = \"expand-trigger\";\n expandTrigger.appendChild(doc.createElement(\"div\"));\n const contractTrigger = doc.createElement(\"div\");\n contractTrigger.className = \"contract-trigger\";\n element.__resizeTriggers__.appendChild(expandTrigger);\n element.__resizeTriggers__.appendChild(contractTrigger);\n element.appendChild(element.__resizeTriggers__);\n resetTriggers(element);\n element.addEventListener(\"scroll\", scrollListener, true);\n\n /* Listen for a css animation to detect element display/re-attach */\n if (animationStartEvent) {\n element.__resizeTriggers__.__animationListener__ = function animationListener(e) {\n if (e.animationName === animationName) {\n resetTriggers(element);\n }\n };\n element.__resizeTriggers__.addEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);\n }\n }\n element.__resizeListeners__.push(fn);\n }\n };\n const removeResizeListener = function (element, fn) {\n if (attachEvent) {\n element.detachEvent(\"onresize\", fn);\n } else {\n element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);\n if (!element.__resizeListeners__.length) {\n element.removeEventListener(\"scroll\", scrollListener, true);\n if (element.__resizeTriggers__.__animationListener__) {\n element.__resizeTriggers__.removeEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);\n element.__resizeTriggers__.__animationListener__ = null;\n }\n try {\n element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);\n } catch (e) {\n // Preact compat; see developit/preact-compat/issues/228\n }\n }\n }\n };\n return {\n addResizeListener,\n removeResizeListener\n };\n}\n\nclass AutoSizer extends Component {\n constructor(...args) {\n super(...args);\n this.state = {\n height: this.props.defaultHeight || 0,\n width: this.props.defaultWidth || 0\n };\n this._autoSizer = null;\n this._detectElementResize = null;\n this._didLogDeprecationWarning = false;\n this._parentNode = null;\n this._resizeObserver = null;\n this._timeoutId = null;\n this._onResize = () => {\n this._timeoutId = null;\n const {\n disableHeight,\n disableWidth,\n onResize\n } = this.props;\n if (this._parentNode) {\n // Guard against AutoSizer component being removed from the DOM immediately after being added.\n // This can result in invalid style values which can result in NaN values if we don't handle them.\n // See issue #150 for more context.\n\n const style = window.getComputedStyle(this._parentNode) || {};\n const paddingLeft = parseFloat(style.paddingLeft || \"0\");\n const paddingRight = parseFloat(style.paddingRight || \"0\");\n const paddingTop = parseFloat(style.paddingTop || \"0\");\n const paddingBottom = parseFloat(style.paddingBottom || \"0\");\n const rect = this._parentNode.getBoundingClientRect();\n const height = rect.height - paddingTop - paddingBottom;\n const width = rect.width - paddingLeft - paddingRight;\n if (!disableHeight && this.state.height !== height || !disableWidth && this.state.width !== width) {\n this.setState({\n height,\n width\n });\n const maybeLogDeprecationWarning = () => {\n if (!this._didLogDeprecationWarning) {\n this._didLogDeprecationWarning = true;\n console.warn(\"scaledWidth and scaledHeight parameters have been deprecated; use width and height instead\");\n }\n };\n if (typeof onResize === \"function\") {\n onResize({\n height,\n width,\n // TODO Remove these params in the next major release\n get scaledHeight() {\n maybeLogDeprecationWarning();\n return height;\n },\n get scaledWidth() {\n maybeLogDeprecationWarning();\n return width;\n }\n });\n }\n }\n }\n };\n this._setRef = autoSizer => {\n this._autoSizer = autoSizer;\n };\n }\n componentDidMount() {\n const {\n nonce\n } = this.props;\n const parentNode = this._autoSizer ? this._autoSizer.parentNode : null;\n if (parentNode != null && parentNode.ownerDocument && parentNode.ownerDocument.defaultView && parentNode instanceof parentNode.ownerDocument.defaultView.HTMLElement) {\n // Delay access of parentNode until mount.\n // This handles edge-cases where the component has already been unmounted before its ref has been set,\n // As well as libraries like react-lite which have a slightly different lifecycle.\n this._parentNode = parentNode;\n\n // Use ResizeObserver from the same context where parentNode (which we will observe) was defined\n // Using just global can result into onResize events not being emitted in cases with multiple realms\n const ResizeObserverInstance = parentNode.ownerDocument.defaultView.ResizeObserver;\n if (ResizeObserverInstance != null) {\n this._resizeObserver = new ResizeObserverInstance(() => {\n // Guard against \"ResizeObserver loop limit exceeded\" error;\n // could be triggered if the state update causes the ResizeObserver handler to run long.\n // See https://github.com/bvaughn/react-virtualized-auto-sizer/issues/55\n this._timeoutId = setTimeout(this._onResize, 0);\n });\n this._resizeObserver.observe(parentNode);\n } else {\n // Defer requiring resize handler in order to support server-side rendering.\n // See issue #41\n this._detectElementResize = createDetectElementResize(nonce);\n this._detectElementResize.addResizeListener(parentNode, this._onResize);\n }\n this._onResize();\n }\n }\n componentWillUnmount() {\n if (this._parentNode) {\n if (this._detectElementResize) {\n this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);\n }\n if (this._timeoutId !== null) {\n clearTimeout(this._timeoutId);\n }\n if (this._resizeObserver) {\n this._resizeObserver.disconnect();\n }\n }\n }\n render() {\n const {\n children,\n defaultHeight,\n defaultWidth,\n disableHeight = false,\n disableWidth = false,\n doNotBailOutOnEmptyChildren = false,\n nonce,\n onResize,\n style = {},\n tagName = \"div\",\n ...rest\n } = this.props;\n const {\n height,\n width\n } = this.state;\n\n // Outer div should not force width/height since that may prevent containers from shrinking.\n // Inner component should overflow and use calculated width/height.\n // See issue #68 for more information.\n const outerStyle = {\n overflow: \"visible\"\n };\n const childParams = {};\n\n // Avoid rendering children before the initial measurements have been collected.\n // At best this would just be wasting cycles.\n let bailoutOnChildren = false;\n if (!disableHeight) {\n if (height === 0) {\n bailoutOnChildren = true;\n }\n outerStyle.height = 0;\n childParams.height = height;\n\n // TODO Remove this in the next major release\n childParams.scaledHeight = height;\n }\n if (!disableWidth) {\n if (width === 0) {\n bailoutOnChildren = true;\n }\n outerStyle.width = 0;\n childParams.width = width;\n\n // TODO Remove this in the next major release\n childParams.scaledWidth = width;\n }\n if (doNotBailOutOnEmptyChildren) {\n bailoutOnChildren = false;\n }\n return createElement(tagName, {\n ref: this._setRef,\n style: {\n ...outerStyle,\n ...style\n },\n ...rest\n }, !bailoutOnChildren && children(childParams));\n }\n}\n\nfunction isHeightAndWidthProps(props) {\n return props && props.disableHeight !== true && props.disableWidth !== true;\n}\nfunction isHeightOnlyProps(props) {\n return props && props.disableHeight !== true && props.disableWidth === true;\n}\nfunction isWidthOnlyProps(props) {\n return props && props.disableHeight === true && props.disableWidth !== true;\n}\n\nexport { AutoSizer as default, isHeightAndWidthProps, isHeightOnlyProps, isWidthOnlyProps };\n"],"names":["windowObject","window","self","global","cancelFrame","requestFrame","clearTimeoutFn","clearTimeout","setTimeoutFn","setTimeout","cancelAnimationFrameFn","cancelAnimationFrame","mozCancelAnimationFrame","webkitCancelAnimationFrame","requestAnimationFrameFn","requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","createDetectElementResize","nonce","animationKeyframes","animationName","animationStartEvent","animationStyle","checkTriggers","resetTriggers","scrollListener","attachEvent","document","element","triggers","__resizeTriggers__","expand","firstElementChild","contract","lastElementChild","expandChild","scrollLeft","scrollWidth","scrollTop","scrollHeight","style","width","offsetWidth","height","offsetHeight","__resizeLast__","e","target","className","indexOf","this","__resizeRAF__","__resizeListeners__","forEach","fn","call","animation","keyframeprefix","domPrefixes","split","startEvents","pfx","elm","createElement","undefined","i","length","toLowerCase","addResizeListener","doc","ownerDocument","elementStyle","getComputedStyle","position","getElementById","css","head","getElementsByTagName","id","type","setAttribute","styleSheet","cssText","appendChild","createTextNode","createStyles","expandTrigger","contractTrigger","addEventListener","__animationListener__","push","removeResizeListener","detachEvent","splice","removeEventListener","removeChild","callback","animationFrameID","timeoutID","AutoSizer","Component","constructor","args","super","state","props","defaultHeight","defaultWidth","_autoSizer","_detectElementResize","_didLogDeprecationWarning","_parentNode","_resizeObserver","_timeoutId","_onResize","disableHeight","disableWidth","onResize","paddingLeft","parseFloat","paddingRight","paddingTop","paddingBottom","rect","getBoundingClientRect","setState","maybeLogDeprecationWarning","console","warn","scaledHeight","scaledWidth","_setRef","autoSizer","componentDidMount","parentNode","defaultView","HTMLElement","ResizeObserverInstance","ResizeObserver","observe","componentWillUnmount","disconnect","render","children","doNotBailOutOnEmptyChildren","tagName","rest","outerStyle","overflow","childParams","bailoutOnChildren","ref"],"mappings":"2FAgBA,IAAIA,EAEFA,EADoB,oBAAXC,OACMA,OAGU,oBAATC,KAEDA,KAEAC,OAEjB,IAAIC,EAAc,KACdC,EAAe,KACnB,MACMC,EAAiBN,EAAaO,aAC9BC,EAAeR,EAAaS,WAC5BC,EAAyBV,EAAaW,sBAAwBX,EAAaY,yBAA2BZ,EAAaa,2BACnHC,EAA0Bd,EAAae,uBAAyBf,EAAagB,0BAA4BhB,EAAai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,IACW,IAAV3E,IACF6G,GAAoB,GAEtBH,EAAW1G,MAAQ,EACnB4G,EAAY5G,MAAQA,EAGpB4G,EAAYnB,YAAczF,GAExBuG,IACFM,GAAoB,GAEfvF,EAAAA,cAAckF,EAAS,CAC5BM,IAAKrG,KAAKiF,QACV3F,MAAO,IACF2G,KACA3G,MAEF0G,IACDI,GAAqBP,EAASM,GACnC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../@babel/runtime/helpers/esm/extends.js"),t=require("../../@babel/runtime/helpers/esm/assertThisInitialized.js"),r=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),i=require("../../memoize-one/dist/memoize-one.esm.js"),o=require("react"),n="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function l(e){cancelAnimationFrame(e.id)}var s=-1;function a(e){if(void 0===e&&(e=!1),-1===s||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),s=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return s}var c=null;function u(e){if(void 0===e&&(e=!1),null===c||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?c="positive-descending":(t.scrollLeft=1,c=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),c}return c}process.env.NODE_ENV;var d=function(e,t){return e},f=null,h=null;function p(s){var c,f=s.getItemOffset,h=s.getEstimatedTotalSize,p=s.getItemSize,v=s.getOffsetForIndexAndAlignment,g=s.getStartIndexForOffset,S=s.getStopIndexForStartIndex,y=s.initInstanceProps,_=s.shouldResetStyleCacheOnItemSizeChange,w=s.validateProps;return c=function(s){function c(e){var r;return(r=s.call(this,e)||this)._instanceProps=y(r.props,t.default(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:t.default(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=i.default((function(e,t,i,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=i.default((function(e,t,i){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,o=i.direction,n=i.itemSize,l=i.layout,s=r._getItemStyleCache(_&&n,_&&l,_&&o);if(s.hasOwnProperty(e))t=s[e];else{var a=f(r.props,e,r._instanceProps),c=p(r.props,e,r._instanceProps),u="horizontal"===o||"horizontal"===l,d="rtl"===o,h=u?a:0;s[e]=t={position:"absolute",left:d?void 0:h,right:d?h:void 0,top:u?0:a,height:u?"100%":c,width:u?c:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=i.default((function(e,t,r){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,n=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,l=o;if("rtl"===t)switch(u()){case"negative":l=-o;break;case"positive-descending":l=n-i-o}return l=Math.max(0,Math.min(l,n-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<l?"forward":"backward",scrollOffset:l,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,n=t.scrollTop;r.setState((function(e){if(e.scrollOffset===n)return null;var t=Math.max(0,Math.min(n,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){var e,t,i,o;null!==r._resetIsScrollingTimeoutId&&l(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=150,i=n(),o={id:requestAnimationFrame((function r(){n()-i>=t?e.call(null):o.id=requestAnimationFrame(r)}))})},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}r.default(c,s),c.getDerivedStateFromProps=function(e,t){return m(e,t),w(e),null};var I=c.prototype;return I.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},I.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,i=r.itemCount,o=r.layout,n=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?a():0:s.scrollHeight>s.clientHeight?a():0}this.scrollTo(v(this.props,e,t,n,this._instanceProps,l))},I.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,i=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},I.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var n=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(u()){case"negative":n.scrollLeft=-o;break;case"positive-ascending":n.scrollLeft=o;break;default:var l=n.clientWidth,s=n.scrollWidth;n.scrollLeft=s-l-o}else n.scrollLeft=o;else n.scrollTop=o}this._callPropsCallbacks()},I.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&l(this._resetIsScrollingTimeoutId)},I.render=function(){var t=this.props,r=t.children,i=t.className,n=t.direction,l=t.height,s=t.innerRef,a=t.innerElementType,c=t.innerTagName,u=t.itemCount,f=t.itemData,p=t.itemKey,m=void 0===p?d:p,v=t.layout,g=t.outerElementType,S=t.outerTagName,y=t.style,_=t.useIsScrolling,w=t.width,I=this.state.isScrolling,b="horizontal"===n||"horizontal"===v,z=b?this._onScrollHorizontal:this._onScrollVertical,O=this._getRangeToRender(),x=O[0],R=O[1],T=[];if(u>0)for(var C=x;C<=R;C++)T.push(o.createElement(r,{data:f,key:m(C,f),index:C,isScrolling:_?I:void 0,style:this._getItemStyle(C)}));var E=h(this.props,this._instanceProps);return o.createElement(g||S||"div",{className:i,onScroll:z,ref:this._outerRefSetter,style:e.default({position:"relative",height:l,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:n},y)},o.createElement(a||c||"div",{children:T,ref:s,style:{height:b?"100%":E,pointerEvents:I?"none":void 0,width:b?E:"100%"}}))},I._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,r,i,o)}if("function"==typeof this.props.onScroll){var n=this.state,l=n.scrollDirection,s=n.scrollOffset,a=n.scrollUpdateWasRequested;this._callOnScroll(l,s,a)}},I._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,i=this.state,o=i.isScrolling,n=i.scrollDirection,l=i.scrollOffset;if(0===t)return[0,0,0,0];var s=g(this.props,l,this._instanceProps),a=S(this.props,s,l,this._instanceProps),c=o&&"backward"!==n?1:Math.max(1,r),u=o&&"forward"!==n?1:Math.max(1,r);return[Math.max(0,s-c),Math.max(0,Math.min(t-1,a+u)),s,a]},c}(o.PureComponent),c.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},c}"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&void 0!==window.WeakSet&&(f=new WeakSet,h=new WeakSet);var m=function(e,t){var r=e.children,i=e.direction,o=e.height,n=e.layout,l=e.innerTagName,s=e.outerTagName,a=e.width,c=t.instance;if("production"!==process.env.NODE_ENV){null==l&&null==s||h&&!h.has(c)&&(h.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var u="horizontal"===i||"horizontal"===n;switch(i){case"horizontal":case"vertical":f&&!f.has(c)&&(f.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". "'+i+'" was specified.')}switch(n){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". "'+n+'" was specified.')}if(null==r)throw Error('An invalid "children" prop has been specified. Value should be a React component. "'+(null===r?"null":typeof r)+'" was specified.');if(u&&"number"!=typeof a)throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. "'+(null===a?"null":typeof a)+'" was specified.');if(!u&&"number"!=typeof o)throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. "'+(null===o?"null":typeof o)+'" was specified.')}},v=p({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,r,i,o,n){var l=e.direction,s=e.height,a=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,f="horizontal"===l||"horizontal"===u?d:s,h=Math.max(0,a*c-f),p=Math.min(h,t*c),m=Math.max(0,t*c-f+c+n);switch("smart"===r&&(r=i>=m-f&&i<=p+f?"auto":"center"),r){case"start":return p;case"end":return m;case"center":var v=Math.round(m+(p-m)/2);return v<Math.ceil(f/2)?0:v>h+Math.floor(f/2)?h:v;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,r){var i=e.direction,o=e.height,n=e.itemCount,l=e.itemSize,s=e.layout,a=e.width,c=t*l,u="horizontal"===i||"horizontal"===s?a:o,d=Math.ceil((u+r-c)/l);return Math.max(0,Math.min(n-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var t=e.itemSize;if("production"!==process.env.NODE_ENV&&"number"!=typeof t)throw Error('An invalid "itemSize" prop has been specified. Value should be a number. "'+(null===t?"null":typeof t)+'" was specified.')}});exports.FixedSizeList=v;
2
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/react-window/dist/index.esm.js"],"sourcesContent":["import _extends from '@babel/runtime/helpers/esm/extends';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport memoizeOne from 'memoize-one';\nimport { createElement, PureComponent } from 'react';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\n\n// Animation frame based implementation of setTimeout.\n// Inspired by Joe Lambert, https://gist.github.com/joelambert/1002116#file-requesttimeout-js\nvar hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';\nvar now = hasNativePerformanceNow ? function () {\n return performance.now();\n} : function () {\n return Date.now();\n};\nfunction cancelTimeout(timeoutID) {\n cancelAnimationFrame(timeoutID.id);\n}\nfunction requestTimeout(callback, delay) {\n var start = now();\n\n function tick() {\n if (now() - start >= delay) {\n callback.call(null);\n } else {\n timeoutID.id = requestAnimationFrame(tick);\n }\n }\n\n var timeoutID = {\n id: requestAnimationFrame(tick)\n };\n return timeoutID;\n}\n\nvar size = -1; // This utility copied from \"dom-helpers\" package.\n\nfunction getScrollbarSize(recalculate) {\n if (recalculate === void 0) {\n recalculate = false;\n }\n\n if (size === -1 || recalculate) {\n var div = document.createElement('div');\n var style = div.style;\n style.width = '50px';\n style.height = '50px';\n style.overflow = 'scroll';\n document.body.appendChild(div);\n size = div.offsetWidth - div.clientWidth;\n document.body.removeChild(div);\n }\n\n return size;\n}\nvar cachedRTLResult = null; // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n// Chrome does not seem to adhere; its scrollLeft values are positive (measured relative to the left).\n// Safari's elastic bounce makes detecting this even more complicated wrt potential false positives.\n// The safest way to check this is to intentionally set a negative offset,\n// and then verify that the subsequent \"scroll\" event matches the negative offset.\n// If it does not match, then we can assume a non-standard RTL scroll implementation.\n\nfunction getRTLOffsetType(recalculate) {\n if (recalculate === void 0) {\n recalculate = false;\n }\n\n if (cachedRTLResult === null || recalculate) {\n var outerDiv = document.createElement('div');\n var outerStyle = outerDiv.style;\n outerStyle.width = '50px';\n outerStyle.height = '50px';\n outerStyle.overflow = 'scroll';\n outerStyle.direction = 'rtl';\n var innerDiv = document.createElement('div');\n var innerStyle = innerDiv.style;\n innerStyle.width = '100px';\n innerStyle.height = '100px';\n outerDiv.appendChild(innerDiv);\n document.body.appendChild(outerDiv);\n\n if (outerDiv.scrollLeft > 0) {\n cachedRTLResult = 'positive-descending';\n } else {\n outerDiv.scrollLeft = 1;\n\n if (outerDiv.scrollLeft === 0) {\n cachedRTLResult = 'negative';\n } else {\n cachedRTLResult = 'positive-ascending';\n }\n }\n\n document.body.removeChild(outerDiv);\n return cachedRTLResult;\n }\n\n return cachedRTLResult;\n}\n\nvar IS_SCROLLING_DEBOUNCE_INTERVAL = 150;\n\nvar defaultItemKey = function defaultItemKey(_ref) {\n var columnIndex = _ref.columnIndex,\n data = _ref.data,\n rowIndex = _ref.rowIndex;\n return rowIndex + \":\" + columnIndex;\n}; // In DEV mode, this Set helps us only log a warning once per component instance.\n// This avoids spamming the console every time a render happens.\n\n\nvar devWarningsOverscanCount = null;\nvar devWarningsOverscanRowsColumnsCount = null;\nvar devWarningsTagName = null;\n\nif (process.env.NODE_ENV !== 'production') {\n if (typeof window !== 'undefined' && typeof window.WeakSet !== 'undefined') {\n devWarningsOverscanCount = /*#__PURE__*/new WeakSet();\n devWarningsOverscanRowsColumnsCount = /*#__PURE__*/new WeakSet();\n devWarningsTagName = /*#__PURE__*/new WeakSet();\n }\n}\n\nfunction createGridComponent(_ref2) {\n var _class;\n\n var getColumnOffset = _ref2.getColumnOffset,\n getColumnStartIndexForOffset = _ref2.getColumnStartIndexForOffset,\n getColumnStopIndexForStartIndex = _ref2.getColumnStopIndexForStartIndex,\n getColumnWidth = _ref2.getColumnWidth,\n getEstimatedTotalHeight = _ref2.getEstimatedTotalHeight,\n getEstimatedTotalWidth = _ref2.getEstimatedTotalWidth,\n getOffsetForColumnAndAlignment = _ref2.getOffsetForColumnAndAlignment,\n getOffsetForRowAndAlignment = _ref2.getOffsetForRowAndAlignment,\n getRowHeight = _ref2.getRowHeight,\n getRowOffset = _ref2.getRowOffset,\n getRowStartIndexForOffset = _ref2.getRowStartIndexForOffset,\n getRowStopIndexForStartIndex = _ref2.getRowStopIndexForStartIndex,\n initInstanceProps = _ref2.initInstanceProps,\n shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange,\n validateProps = _ref2.validateProps;\n return _class = /*#__PURE__*/function (_PureComponent) {\n _inheritsLoose(Grid, _PureComponent);\n\n // Always use explicit constructor for React components.\n // It produces less code after transpilation. (#26)\n // eslint-disable-next-line no-useless-constructor\n function Grid(props) {\n var _this;\n\n _this = _PureComponent.call(this, props) || this;\n _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));\n _this._resetIsScrollingTimeoutId = null;\n _this._outerRef = void 0;\n _this.state = {\n instance: _assertThisInitialized(_this),\n isScrolling: false,\n horizontalScrollDirection: 'forward',\n scrollLeft: typeof _this.props.initialScrollLeft === 'number' ? _this.props.initialScrollLeft : 0,\n scrollTop: typeof _this.props.initialScrollTop === 'number' ? _this.props.initialScrollTop : 0,\n scrollUpdateWasRequested: false,\n verticalScrollDirection: 'forward'\n };\n _this._callOnItemsRendered = void 0;\n _this._callOnItemsRendered = memoizeOne(function (overscanColumnStartIndex, overscanColumnStopIndex, overscanRowStartIndex, overscanRowStopIndex, visibleColumnStartIndex, visibleColumnStopIndex, visibleRowStartIndex, visibleRowStopIndex) {\n return _this.props.onItemsRendered({\n overscanColumnStartIndex: overscanColumnStartIndex,\n overscanColumnStopIndex: overscanColumnStopIndex,\n overscanRowStartIndex: overscanRowStartIndex,\n overscanRowStopIndex: overscanRowStopIndex,\n visibleColumnStartIndex: visibleColumnStartIndex,\n visibleColumnStopIndex: visibleColumnStopIndex,\n visibleRowStartIndex: visibleRowStartIndex,\n visibleRowStopIndex: visibleRowStopIndex\n });\n });\n _this._callOnScroll = void 0;\n _this._callOnScroll = memoizeOne(function (scrollLeft, scrollTop, horizontalScrollDirection, verticalScrollDirection, scrollUpdateWasRequested) {\n return _this.props.onScroll({\n horizontalScrollDirection: horizontalScrollDirection,\n scrollLeft: scrollLeft,\n scrollTop: scrollTop,\n verticalScrollDirection: verticalScrollDirection,\n scrollUpdateWasRequested: scrollUpdateWasRequested\n });\n });\n _this._getItemStyle = void 0;\n\n _this._getItemStyle = function (rowIndex, columnIndex) {\n var _this$props = _this.props,\n columnWidth = _this$props.columnWidth,\n direction = _this$props.direction,\n rowHeight = _this$props.rowHeight;\n\n var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && columnWidth, shouldResetStyleCacheOnItemSizeChange && direction, shouldResetStyleCacheOnItemSizeChange && rowHeight);\n\n var key = rowIndex + \":\" + columnIndex;\n var style;\n\n if (itemStyleCache.hasOwnProperty(key)) {\n style = itemStyleCache[key];\n } else {\n var _offset = getColumnOffset(_this.props, columnIndex, _this._instanceProps);\n\n var isRtl = direction === 'rtl';\n itemStyleCache[key] = style = {\n position: 'absolute',\n left: isRtl ? undefined : _offset,\n right: isRtl ? _offset : undefined,\n top: getRowOffset(_this.props, rowIndex, _this._instanceProps),\n height: getRowHeight(_this.props, rowIndex, _this._instanceProps),\n width: getColumnWidth(_this.props, columnIndex, _this._instanceProps)\n };\n }\n\n return style;\n };\n\n _this._getItemStyleCache = void 0;\n _this._getItemStyleCache = memoizeOne(function (_, __, ___) {\n return {};\n });\n\n _this._onScroll = function (event) {\n var _event$currentTarget = event.currentTarget,\n clientHeight = _event$currentTarget.clientHeight,\n clientWidth = _event$currentTarget.clientWidth,\n scrollLeft = _event$currentTarget.scrollLeft,\n scrollTop = _event$currentTarget.scrollTop,\n scrollHeight = _event$currentTarget.scrollHeight,\n scrollWidth = _event$currentTarget.scrollWidth;\n\n _this.setState(function (prevState) {\n if (prevState.scrollLeft === scrollLeft && prevState.scrollTop === scrollTop) {\n // Scroll position may have been updated by cDM/cDU,\n // In which case we don't need to trigger another render,\n // And we don't want to update state.isScrolling.\n return null;\n }\n\n var direction = _this.props.direction; // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // It's also easier for this component if we convert offsets to the same format as they would be in for ltr.\n // So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.\n\n var calculatedScrollLeft = scrollLeft;\n\n if (direction === 'rtl') {\n switch (getRTLOffsetType()) {\n case 'negative':\n calculatedScrollLeft = -scrollLeft;\n break;\n\n case 'positive-descending':\n calculatedScrollLeft = scrollWidth - clientWidth - scrollLeft;\n break;\n }\n } // Prevent Safari's elastic scrolling from causing visual shaking when scrolling past bounds.\n\n\n calculatedScrollLeft = Math.max(0, Math.min(calculatedScrollLeft, scrollWidth - clientWidth));\n var calculatedScrollTop = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));\n return {\n isScrolling: true,\n horizontalScrollDirection: prevState.scrollLeft < scrollLeft ? 'forward' : 'backward',\n scrollLeft: calculatedScrollLeft,\n scrollTop: calculatedScrollTop,\n verticalScrollDirection: prevState.scrollTop < scrollTop ? 'forward' : 'backward',\n scrollUpdateWasRequested: false\n };\n }, _this._resetIsScrollingDebounced);\n };\n\n _this._outerRefSetter = function (ref) {\n var outerRef = _this.props.outerRef;\n _this._outerRef = ref;\n\n if (typeof outerRef === 'function') {\n outerRef(ref);\n } else if (outerRef != null && typeof outerRef === 'object' && outerRef.hasOwnProperty('current')) {\n outerRef.current = ref;\n }\n };\n\n _this._resetIsScrollingDebounced = function () {\n if (_this._resetIsScrollingTimeoutId !== null) {\n cancelTimeout(_this._resetIsScrollingTimeoutId);\n }\n\n _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL);\n };\n\n _this._resetIsScrolling = function () {\n _this._resetIsScrollingTimeoutId = null;\n\n _this.setState({\n isScrolling: false\n }, function () {\n // Clear style cache after state update has been committed.\n // This way we don't break pure sCU for items that don't use isScrolling param.\n _this._getItemStyleCache(-1);\n });\n };\n\n return _this;\n }\n\n Grid.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n validateSharedProps(nextProps, prevState);\n validateProps(nextProps);\n return null;\n };\n\n var _proto = Grid.prototype;\n\n _proto.scrollTo = function scrollTo(_ref3) {\n var scrollLeft = _ref3.scrollLeft,\n scrollTop = _ref3.scrollTop;\n\n if (scrollLeft !== undefined) {\n scrollLeft = Math.max(0, scrollLeft);\n }\n\n if (scrollTop !== undefined) {\n scrollTop = Math.max(0, scrollTop);\n }\n\n this.setState(function (prevState) {\n if (scrollLeft === undefined) {\n scrollLeft = prevState.scrollLeft;\n }\n\n if (scrollTop === undefined) {\n scrollTop = prevState.scrollTop;\n }\n\n if (prevState.scrollLeft === scrollLeft && prevState.scrollTop === scrollTop) {\n return null;\n }\n\n return {\n horizontalScrollDirection: prevState.scrollLeft < scrollLeft ? 'forward' : 'backward',\n scrollLeft: scrollLeft,\n scrollTop: scrollTop,\n scrollUpdateWasRequested: true,\n verticalScrollDirection: prevState.scrollTop < scrollTop ? 'forward' : 'backward'\n };\n }, this._resetIsScrollingDebounced);\n };\n\n _proto.scrollToItem = function scrollToItem(_ref4) {\n var _ref4$align = _ref4.align,\n align = _ref4$align === void 0 ? 'auto' : _ref4$align,\n columnIndex = _ref4.columnIndex,\n rowIndex = _ref4.rowIndex;\n var _this$props2 = this.props,\n columnCount = _this$props2.columnCount,\n height = _this$props2.height,\n rowCount = _this$props2.rowCount,\n width = _this$props2.width;\n var _this$state = this.state,\n scrollLeft = _this$state.scrollLeft,\n scrollTop = _this$state.scrollTop;\n var scrollbarSize = getScrollbarSize();\n\n if (columnIndex !== undefined) {\n columnIndex = Math.max(0, Math.min(columnIndex, columnCount - 1));\n }\n\n if (rowIndex !== undefined) {\n rowIndex = Math.max(0, Math.min(rowIndex, rowCount - 1));\n }\n\n var estimatedTotalHeight = getEstimatedTotalHeight(this.props, this._instanceProps);\n var estimatedTotalWidth = getEstimatedTotalWidth(this.props, this._instanceProps); // The scrollbar size should be considered when scrolling an item into view,\n // to ensure it's fully visible.\n // But we only need to account for its size when it's actually visible.\n\n var horizontalScrollbarSize = estimatedTotalWidth > width ? scrollbarSize : 0;\n var verticalScrollbarSize = estimatedTotalHeight > height ? scrollbarSize : 0;\n this.scrollTo({\n scrollLeft: columnIndex !== undefined ? getOffsetForColumnAndAlignment(this.props, columnIndex, align, scrollLeft, this._instanceProps, verticalScrollbarSize) : scrollLeft,\n scrollTop: rowIndex !== undefined ? getOffsetForRowAndAlignment(this.props, rowIndex, align, scrollTop, this._instanceProps, horizontalScrollbarSize) : scrollTop\n });\n };\n\n _proto.componentDidMount = function componentDidMount() {\n var _this$props3 = this.props,\n initialScrollLeft = _this$props3.initialScrollLeft,\n initialScrollTop = _this$props3.initialScrollTop;\n\n if (this._outerRef != null) {\n var outerRef = this._outerRef;\n\n if (typeof initialScrollLeft === 'number') {\n outerRef.scrollLeft = initialScrollLeft;\n }\n\n if (typeof initialScrollTop === 'number') {\n outerRef.scrollTop = initialScrollTop;\n }\n }\n\n this._callPropsCallbacks();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n var direction = this.props.direction;\n var _this$state2 = this.state,\n scrollLeft = _this$state2.scrollLeft,\n scrollTop = _this$state2.scrollTop,\n scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;\n\n if (scrollUpdateWasRequested && this._outerRef != null) {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // So we need to determine which browser behavior we're dealing with, and mimic it.\n var outerRef = this._outerRef;\n\n if (direction === 'rtl') {\n switch (getRTLOffsetType()) {\n case 'negative':\n outerRef.scrollLeft = -scrollLeft;\n break;\n\n case 'positive-ascending':\n outerRef.scrollLeft = scrollLeft;\n break;\n\n default:\n var clientWidth = outerRef.clientWidth,\n scrollWidth = outerRef.scrollWidth;\n outerRef.scrollLeft = scrollWidth - clientWidth - scrollLeft;\n break;\n }\n } else {\n outerRef.scrollLeft = Math.max(0, scrollLeft);\n }\n\n outerRef.scrollTop = Math.max(0, scrollTop);\n }\n\n this._callPropsCallbacks();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this._resetIsScrollingTimeoutId !== null) {\n cancelTimeout(this._resetIsScrollingTimeoutId);\n }\n };\n\n _proto.render = function render() {\n var _this$props4 = this.props,\n children = _this$props4.children,\n className = _this$props4.className,\n columnCount = _this$props4.columnCount,\n direction = _this$props4.direction,\n height = _this$props4.height,\n innerRef = _this$props4.innerRef,\n innerElementType = _this$props4.innerElementType,\n innerTagName = _this$props4.innerTagName,\n itemData = _this$props4.itemData,\n _this$props4$itemKey = _this$props4.itemKey,\n itemKey = _this$props4$itemKey === void 0 ? defaultItemKey : _this$props4$itemKey,\n outerElementType = _this$props4.outerElementType,\n outerTagName = _this$props4.outerTagName,\n rowCount = _this$props4.rowCount,\n style = _this$props4.style,\n useIsScrolling = _this$props4.useIsScrolling,\n width = _this$props4.width;\n var isScrolling = this.state.isScrolling;\n\n var _this$_getHorizontalR = this._getHorizontalRangeToRender(),\n columnStartIndex = _this$_getHorizontalR[0],\n columnStopIndex = _this$_getHorizontalR[1];\n\n var _this$_getVerticalRan = this._getVerticalRangeToRender(),\n rowStartIndex = _this$_getVerticalRan[0],\n rowStopIndex = _this$_getVerticalRan[1];\n\n var items = [];\n\n if (columnCount > 0 && rowCount) {\n for (var _rowIndex = rowStartIndex; _rowIndex <= rowStopIndex; _rowIndex++) {\n for (var _columnIndex = columnStartIndex; _columnIndex <= columnStopIndex; _columnIndex++) {\n items.push(createElement(children, {\n columnIndex: _columnIndex,\n data: itemData,\n isScrolling: useIsScrolling ? isScrolling : undefined,\n key: itemKey({\n columnIndex: _columnIndex,\n data: itemData,\n rowIndex: _rowIndex\n }),\n rowIndex: _rowIndex,\n style: this._getItemStyle(_rowIndex, _columnIndex)\n }));\n }\n }\n } // Read this value AFTER items have been created,\n // So their actual sizes (if variable) are taken into consideration.\n\n\n var estimatedTotalHeight = getEstimatedTotalHeight(this.props, this._instanceProps);\n var estimatedTotalWidth = getEstimatedTotalWidth(this.props, this._instanceProps);\n return createElement(outerElementType || outerTagName || 'div', {\n className: className,\n onScroll: this._onScroll,\n ref: this._outerRefSetter,\n style: _extends({\n position: 'relative',\n height: height,\n width: width,\n overflow: 'auto',\n WebkitOverflowScrolling: 'touch',\n willChange: 'transform',\n direction: direction\n }, style)\n }, createElement(innerElementType || innerTagName || 'div', {\n children: items,\n ref: innerRef,\n style: {\n height: estimatedTotalHeight,\n pointerEvents: isScrolling ? 'none' : undefined,\n width: estimatedTotalWidth\n }\n }));\n };\n\n _proto._callPropsCallbacks = function _callPropsCallbacks() {\n var _this$props5 = this.props,\n columnCount = _this$props5.columnCount,\n onItemsRendered = _this$props5.onItemsRendered,\n onScroll = _this$props5.onScroll,\n rowCount = _this$props5.rowCount;\n\n if (typeof onItemsRendered === 'function') {\n if (columnCount > 0 && rowCount > 0) {\n var _this$_getHorizontalR2 = this._getHorizontalRangeToRender(),\n _overscanColumnStartIndex = _this$_getHorizontalR2[0],\n _overscanColumnStopIndex = _this$_getHorizontalR2[1],\n _visibleColumnStartIndex = _this$_getHorizontalR2[2],\n _visibleColumnStopIndex = _this$_getHorizontalR2[3];\n\n var _this$_getVerticalRan2 = this._getVerticalRangeToRender(),\n _overscanRowStartIndex = _this$_getVerticalRan2[0],\n _overscanRowStopIndex = _this$_getVerticalRan2[1],\n _visibleRowStartIndex = _this$_getVerticalRan2[2],\n _visibleRowStopIndex = _this$_getVerticalRan2[3];\n\n this._callOnItemsRendered(_overscanColumnStartIndex, _overscanColumnStopIndex, _overscanRowStartIndex, _overscanRowStopIndex, _visibleColumnStartIndex, _visibleColumnStopIndex, _visibleRowStartIndex, _visibleRowStopIndex);\n }\n }\n\n if (typeof onScroll === 'function') {\n var _this$state3 = this.state,\n _horizontalScrollDirection = _this$state3.horizontalScrollDirection,\n _scrollLeft = _this$state3.scrollLeft,\n _scrollTop = _this$state3.scrollTop,\n _scrollUpdateWasRequested = _this$state3.scrollUpdateWasRequested,\n _verticalScrollDirection = _this$state3.verticalScrollDirection;\n\n this._callOnScroll(_scrollLeft, _scrollTop, _horizontalScrollDirection, _verticalScrollDirection, _scrollUpdateWasRequested);\n }\n } // Lazily create and cache item styles while scrolling,\n // So that pure component sCU will prevent re-renders.\n // We maintain this cache, and pass a style prop rather than index,\n // So that List can clear cached styles and force item re-render if necessary.\n ;\n\n _proto._getHorizontalRangeToRender = function _getHorizontalRangeToRender() {\n var _this$props6 = this.props,\n columnCount = _this$props6.columnCount,\n overscanColumnCount = _this$props6.overscanColumnCount,\n overscanColumnsCount = _this$props6.overscanColumnsCount,\n overscanCount = _this$props6.overscanCount,\n rowCount = _this$props6.rowCount;\n var _this$state4 = this.state,\n horizontalScrollDirection = _this$state4.horizontalScrollDirection,\n isScrolling = _this$state4.isScrolling,\n scrollLeft = _this$state4.scrollLeft;\n var overscanCountResolved = overscanColumnCount || overscanColumnsCount || overscanCount || 1;\n\n if (columnCount === 0 || rowCount === 0) {\n return [0, 0, 0, 0];\n }\n\n var startIndex = getColumnStartIndexForOffset(this.props, scrollLeft, this._instanceProps);\n var stopIndex = getColumnStopIndexForStartIndex(this.props, startIndex, scrollLeft, this._instanceProps); // Overscan by one item in each direction so that tab/focus works.\n // If there isn't at least one extra item, tab loops back around.\n\n var overscanBackward = !isScrolling || horizontalScrollDirection === 'backward' ? Math.max(1, overscanCountResolved) : 1;\n var overscanForward = !isScrolling || horizontalScrollDirection === 'forward' ? Math.max(1, overscanCountResolved) : 1;\n return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(columnCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];\n };\n\n _proto._getVerticalRangeToRender = function _getVerticalRangeToRender() {\n var _this$props7 = this.props,\n columnCount = _this$props7.columnCount,\n overscanCount = _this$props7.overscanCount,\n overscanRowCount = _this$props7.overscanRowCount,\n overscanRowsCount = _this$props7.overscanRowsCount,\n rowCount = _this$props7.rowCount;\n var _this$state5 = this.state,\n isScrolling = _this$state5.isScrolling,\n verticalScrollDirection = _this$state5.verticalScrollDirection,\n scrollTop = _this$state5.scrollTop;\n var overscanCountResolved = overscanRowCount || overscanRowsCount || overscanCount || 1;\n\n if (columnCount === 0 || rowCount === 0) {\n return [0, 0, 0, 0];\n }\n\n var startIndex = getRowStartIndexForOffset(this.props, scrollTop, this._instanceProps);\n var stopIndex = getRowStopIndexForStartIndex(this.props, startIndex, scrollTop, this._instanceProps); // Overscan by one item in each direction so that tab/focus works.\n // If there isn't at least one extra item, tab loops back around.\n\n var overscanBackward = !isScrolling || verticalScrollDirection === 'backward' ? Math.max(1, overscanCountResolved) : 1;\n var overscanForward = !isScrolling || verticalScrollDirection === 'forward' ? Math.max(1, overscanCountResolved) : 1;\n return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(rowCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];\n };\n\n return Grid;\n }(PureComponent), _class.defaultProps = {\n direction: 'ltr',\n itemData: undefined,\n useIsScrolling: false\n }, _class;\n}\n\nvar validateSharedProps = function validateSharedProps(_ref5, _ref6) {\n var children = _ref5.children,\n direction = _ref5.direction,\n height = _ref5.height,\n innerTagName = _ref5.innerTagName,\n outerTagName = _ref5.outerTagName,\n overscanColumnsCount = _ref5.overscanColumnsCount,\n overscanCount = _ref5.overscanCount,\n overscanRowsCount = _ref5.overscanRowsCount,\n width = _ref5.width;\n var instance = _ref6.instance;\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof overscanCount === 'number') {\n if (devWarningsOverscanCount && !devWarningsOverscanCount.has(instance)) {\n devWarningsOverscanCount.add(instance);\n console.warn('The overscanCount prop has been deprecated. ' + 'Please use the overscanColumnCount and overscanRowCount props instead.');\n }\n }\n\n if (typeof overscanColumnsCount === 'number' || typeof overscanRowsCount === 'number') {\n if (devWarningsOverscanRowsColumnsCount && !devWarningsOverscanRowsColumnsCount.has(instance)) {\n devWarningsOverscanRowsColumnsCount.add(instance);\n console.warn('The overscanColumnsCount and overscanRowsCount props have been deprecated. ' + 'Please use the overscanColumnCount and overscanRowCount props instead.');\n }\n }\n\n if (innerTagName != null || outerTagName != null) {\n if (devWarningsTagName && !devWarningsTagName.has(instance)) {\n devWarningsTagName.add(instance);\n console.warn('The innerTagName and outerTagName props have been deprecated. ' + 'Please use the innerElementType and outerElementType props instead.');\n }\n }\n\n if (children == null) {\n throw Error('An invalid \"children\" prop has been specified. ' + 'Value should be a React component. ' + (\"\\\"\" + (children === null ? 'null' : typeof children) + \"\\\" was specified.\"));\n }\n\n switch (direction) {\n case 'ltr':\n case 'rtl':\n // Valid values\n break;\n\n default:\n throw Error('An invalid \"direction\" prop has been specified. ' + 'Value should be either \"ltr\" or \"rtl\". ' + (\"\\\"\" + direction + \"\\\" was specified.\"));\n }\n\n if (typeof width !== 'number') {\n throw Error('An invalid \"width\" prop has been specified. ' + 'Grids must specify a number for width. ' + (\"\\\"\" + (width === null ? 'null' : typeof width) + \"\\\" was specified.\"));\n }\n\n if (typeof height !== 'number') {\n throw Error('An invalid \"height\" prop has been specified. ' + 'Grids must specify a number for height. ' + (\"\\\"\" + (height === null ? 'null' : typeof height) + \"\\\" was specified.\"));\n }\n }\n};\n\nvar DEFAULT_ESTIMATED_ITEM_SIZE = 50;\n\nvar getEstimatedTotalHeight = function getEstimatedTotalHeight(_ref, _ref2) {\n var rowCount = _ref.rowCount;\n var rowMetadataMap = _ref2.rowMetadataMap,\n estimatedRowHeight = _ref2.estimatedRowHeight,\n lastMeasuredRowIndex = _ref2.lastMeasuredRowIndex;\n var totalSizeOfMeasuredRows = 0; // Edge case check for when the number of items decreases while a scroll is in progress.\n // https://github.com/bvaughn/react-window/pull/138\n\n if (lastMeasuredRowIndex >= rowCount) {\n lastMeasuredRowIndex = rowCount - 1;\n }\n\n if (lastMeasuredRowIndex >= 0) {\n var itemMetadata = rowMetadataMap[lastMeasuredRowIndex];\n totalSizeOfMeasuredRows = itemMetadata.offset + itemMetadata.size;\n }\n\n var numUnmeasuredItems = rowCount - lastMeasuredRowIndex - 1;\n var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedRowHeight;\n return totalSizeOfMeasuredRows + totalSizeOfUnmeasuredItems;\n};\n\nvar getEstimatedTotalWidth = function getEstimatedTotalWidth(_ref3, _ref4) {\n var columnCount = _ref3.columnCount;\n var columnMetadataMap = _ref4.columnMetadataMap,\n estimatedColumnWidth = _ref4.estimatedColumnWidth,\n lastMeasuredColumnIndex = _ref4.lastMeasuredColumnIndex;\n var totalSizeOfMeasuredRows = 0; // Edge case check for when the number of items decreases while a scroll is in progress.\n // https://github.com/bvaughn/react-window/pull/138\n\n if (lastMeasuredColumnIndex >= columnCount) {\n lastMeasuredColumnIndex = columnCount - 1;\n }\n\n if (lastMeasuredColumnIndex >= 0) {\n var itemMetadata = columnMetadataMap[lastMeasuredColumnIndex];\n totalSizeOfMeasuredRows = itemMetadata.offset + itemMetadata.size;\n }\n\n var numUnmeasuredItems = columnCount - lastMeasuredColumnIndex - 1;\n var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedColumnWidth;\n return totalSizeOfMeasuredRows + totalSizeOfUnmeasuredItems;\n};\n\nvar getItemMetadata = function getItemMetadata(itemType, props, index, instanceProps) {\n var itemMetadataMap, itemSize, lastMeasuredIndex;\n\n if (itemType === 'column') {\n itemMetadataMap = instanceProps.columnMetadataMap;\n itemSize = props.columnWidth;\n lastMeasuredIndex = instanceProps.lastMeasuredColumnIndex;\n } else {\n itemMetadataMap = instanceProps.rowMetadataMap;\n itemSize = props.rowHeight;\n lastMeasuredIndex = instanceProps.lastMeasuredRowIndex;\n }\n\n if (index > lastMeasuredIndex) {\n var offset = 0;\n\n if (lastMeasuredIndex >= 0) {\n var itemMetadata = itemMetadataMap[lastMeasuredIndex];\n offset = itemMetadata.offset + itemMetadata.size;\n }\n\n for (var i = lastMeasuredIndex + 1; i <= index; i++) {\n var size = itemSize(i);\n itemMetadataMap[i] = {\n offset: offset,\n size: size\n };\n offset += size;\n }\n\n if (itemType === 'column') {\n instanceProps.lastMeasuredColumnIndex = index;\n } else {\n instanceProps.lastMeasuredRowIndex = index;\n }\n }\n\n return itemMetadataMap[index];\n};\n\nvar findNearestItem = function findNearestItem(itemType, props, instanceProps, offset) {\n var itemMetadataMap, lastMeasuredIndex;\n\n if (itemType === 'column') {\n itemMetadataMap = instanceProps.columnMetadataMap;\n lastMeasuredIndex = instanceProps.lastMeasuredColumnIndex;\n } else {\n itemMetadataMap = instanceProps.rowMetadataMap;\n lastMeasuredIndex = instanceProps.lastMeasuredRowIndex;\n }\n\n var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;\n\n if (lastMeasuredItemOffset >= offset) {\n // If we've already measured items within this range just use a binary search as it's faster.\n return findNearestItemBinarySearch(itemType, props, instanceProps, lastMeasuredIndex, 0, offset);\n } else {\n // If we haven't yet measured this high, fallback to an exponential search with an inner binary search.\n // The exponential search avoids pre-computing sizes for the full set of items as a binary search would.\n // The overall complexity for this approach is O(log n).\n return findNearestItemExponentialSearch(itemType, props, instanceProps, Math.max(0, lastMeasuredIndex), offset);\n }\n};\n\nvar findNearestItemBinarySearch = function findNearestItemBinarySearch(itemType, props, instanceProps, high, low, offset) {\n while (low <= high) {\n var middle = low + Math.floor((high - low) / 2);\n var currentOffset = getItemMetadata(itemType, props, middle, instanceProps).offset;\n\n if (currentOffset === offset) {\n return middle;\n } else if (currentOffset < offset) {\n low = middle + 1;\n } else if (currentOffset > offset) {\n high = middle - 1;\n }\n }\n\n if (low > 0) {\n return low - 1;\n } else {\n return 0;\n }\n};\n\nvar findNearestItemExponentialSearch = function findNearestItemExponentialSearch(itemType, props, instanceProps, index, offset) {\n var itemCount = itemType === 'column' ? props.columnCount : props.rowCount;\n var interval = 1;\n\n while (index < itemCount && getItemMetadata(itemType, props, index, instanceProps).offset < offset) {\n index += interval;\n interval *= 2;\n }\n\n return findNearestItemBinarySearch(itemType, props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset);\n};\n\nvar getOffsetForIndexAndAlignment = function getOffsetForIndexAndAlignment(itemType, props, index, align, scrollOffset, instanceProps, scrollbarSize) {\n var size = itemType === 'column' ? props.width : props.height;\n var itemMetadata = getItemMetadata(itemType, props, index, instanceProps); // Get estimated total size after ItemMetadata is computed,\n // To ensure it reflects actual measurements instead of just estimates.\n\n var estimatedTotalSize = itemType === 'column' ? getEstimatedTotalWidth(props, instanceProps) : getEstimatedTotalHeight(props, instanceProps);\n var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size, itemMetadata.offset));\n var minOffset = Math.max(0, itemMetadata.offset - size + scrollbarSize + itemMetadata.size);\n\n if (align === 'smart') {\n if (scrollOffset >= minOffset - size && scrollOffset <= maxOffset + size) {\n align = 'auto';\n } else {\n align = 'center';\n }\n }\n\n switch (align) {\n case 'start':\n return maxOffset;\n\n case 'end':\n return minOffset;\n\n case 'center':\n return Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n case 'auto':\n default:\n if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {\n return scrollOffset;\n } else if (minOffset > maxOffset) {\n // Because we only take into account the scrollbar size when calculating minOffset\n // this value can be larger than maxOffset when at the end of the list\n return minOffset;\n } else if (scrollOffset < minOffset) {\n return minOffset;\n } else {\n return maxOffset;\n }\n\n }\n};\n\nvar VariableSizeGrid = /*#__PURE__*/createGridComponent({\n getColumnOffset: function getColumnOffset(props, index, instanceProps) {\n return getItemMetadata('column', props, index, instanceProps).offset;\n },\n getColumnStartIndexForOffset: function getColumnStartIndexForOffset(props, scrollLeft, instanceProps) {\n return findNearestItem('column', props, instanceProps, scrollLeft);\n },\n getColumnStopIndexForStartIndex: function getColumnStopIndexForStartIndex(props, startIndex, scrollLeft, instanceProps) {\n var columnCount = props.columnCount,\n width = props.width;\n var itemMetadata = getItemMetadata('column', props, startIndex, instanceProps);\n var maxOffset = scrollLeft + width;\n var offset = itemMetadata.offset + itemMetadata.size;\n var stopIndex = startIndex;\n\n while (stopIndex < columnCount - 1 && offset < maxOffset) {\n stopIndex++;\n offset += getItemMetadata('column', props, stopIndex, instanceProps).size;\n }\n\n return stopIndex;\n },\n getColumnWidth: function getColumnWidth(props, index, instanceProps) {\n return instanceProps.columnMetadataMap[index].size;\n },\n getEstimatedTotalHeight: getEstimatedTotalHeight,\n getEstimatedTotalWidth: getEstimatedTotalWidth,\n getOffsetForColumnAndAlignment: function getOffsetForColumnAndAlignment(props, index, align, scrollOffset, instanceProps, scrollbarSize) {\n return getOffsetForIndexAndAlignment('column', props, index, align, scrollOffset, instanceProps, scrollbarSize);\n },\n getOffsetForRowAndAlignment: function getOffsetForRowAndAlignment(props, index, align, scrollOffset, instanceProps, scrollbarSize) {\n return getOffsetForIndexAndAlignment('row', props, index, align, scrollOffset, instanceProps, scrollbarSize);\n },\n getRowOffset: function getRowOffset(props, index, instanceProps) {\n return getItemMetadata('row', props, index, instanceProps).offset;\n },\n getRowHeight: function getRowHeight(props, index, instanceProps) {\n return instanceProps.rowMetadataMap[index].size;\n },\n getRowStartIndexForOffset: function getRowStartIndexForOffset(props, scrollTop, instanceProps) {\n return findNearestItem('row', props, instanceProps, scrollTop);\n },\n getRowStopIndexForStartIndex: function getRowStopIndexForStartIndex(props, startIndex, scrollTop, instanceProps) {\n var rowCount = props.rowCount,\n height = props.height;\n var itemMetadata = getItemMetadata('row', props, startIndex, instanceProps);\n var maxOffset = scrollTop + height;\n var offset = itemMetadata.offset + itemMetadata.size;\n var stopIndex = startIndex;\n\n while (stopIndex < rowCount - 1 && offset < maxOffset) {\n stopIndex++;\n offset += getItemMetadata('row', props, stopIndex, instanceProps).size;\n }\n\n return stopIndex;\n },\n initInstanceProps: function initInstanceProps(props, instance) {\n var _ref5 = props,\n estimatedColumnWidth = _ref5.estimatedColumnWidth,\n estimatedRowHeight = _ref5.estimatedRowHeight;\n var instanceProps = {\n columnMetadataMap: {},\n estimatedColumnWidth: estimatedColumnWidth || DEFAULT_ESTIMATED_ITEM_SIZE,\n estimatedRowHeight: estimatedRowHeight || DEFAULT_ESTIMATED_ITEM_SIZE,\n lastMeasuredColumnIndex: -1,\n lastMeasuredRowIndex: -1,\n rowMetadataMap: {}\n };\n\n instance.resetAfterColumnIndex = function (columnIndex, shouldForceUpdate) {\n if (shouldForceUpdate === void 0) {\n shouldForceUpdate = true;\n }\n\n instance.resetAfterIndices({\n columnIndex: columnIndex,\n shouldForceUpdate: shouldForceUpdate\n });\n };\n\n instance.resetAfterRowIndex = function (rowIndex, shouldForceUpdate) {\n if (shouldForceUpdate === void 0) {\n shouldForceUpdate = true;\n }\n\n instance.resetAfterIndices({\n rowIndex: rowIndex,\n shouldForceUpdate: shouldForceUpdate\n });\n };\n\n instance.resetAfterIndices = function (_ref6) {\n var columnIndex = _ref6.columnIndex,\n rowIndex = _ref6.rowIndex,\n _ref6$shouldForceUpda = _ref6.shouldForceUpdate,\n shouldForceUpdate = _ref6$shouldForceUpda === void 0 ? true : _ref6$shouldForceUpda;\n\n if (typeof columnIndex === 'number') {\n instanceProps.lastMeasuredColumnIndex = Math.min(instanceProps.lastMeasuredColumnIndex, columnIndex - 1);\n }\n\n if (typeof rowIndex === 'number') {\n instanceProps.lastMeasuredRowIndex = Math.min(instanceProps.lastMeasuredRowIndex, rowIndex - 1);\n } // We could potentially optimize further by only evicting styles after this index,\n // But since styles are only cached while scrolling is in progress-\n // It seems an unnecessary optimization.\n // It's unlikely that resetAfterIndex() will be called while a user is scrolling.\n\n\n instance._getItemStyleCache(-1);\n\n if (shouldForceUpdate) {\n instance.forceUpdate();\n }\n };\n\n return instanceProps;\n },\n shouldResetStyleCacheOnItemSizeChange: false,\n validateProps: function validateProps(_ref7) {\n var columnWidth = _ref7.columnWidth,\n rowHeight = _ref7.rowHeight;\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof columnWidth !== 'function') {\n throw Error('An invalid \"columnWidth\" prop has been specified. ' + 'Value should be a function. ' + (\"\\\"\" + (columnWidth === null ? 'null' : typeof columnWidth) + \"\\\" was specified.\"));\n } else if (typeof rowHeight !== 'function') {\n throw Error('An invalid \"rowHeight\" prop has been specified. ' + 'Value should be a function. ' + (\"\\\"\" + (rowHeight === null ? 'null' : typeof rowHeight) + \"\\\" was specified.\"));\n }\n }\n }\n});\n\nvar IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;\n\nvar defaultItemKey$1 = function defaultItemKey(index, data) {\n return index;\n}; // In DEV mode, this Set helps us only log a warning once per component instance.\n// This avoids spamming the console every time a render happens.\n\n\nvar devWarningsDirection = null;\nvar devWarningsTagName$1 = null;\n\nif (process.env.NODE_ENV !== 'production') {\n if (typeof window !== 'undefined' && typeof window.WeakSet !== 'undefined') {\n devWarningsDirection = /*#__PURE__*/new WeakSet();\n devWarningsTagName$1 = /*#__PURE__*/new WeakSet();\n }\n}\n\nfunction createListComponent(_ref) {\n var _class;\n\n var getItemOffset = _ref.getItemOffset,\n getEstimatedTotalSize = _ref.getEstimatedTotalSize,\n getItemSize = _ref.getItemSize,\n getOffsetForIndexAndAlignment = _ref.getOffsetForIndexAndAlignment,\n getStartIndexForOffset = _ref.getStartIndexForOffset,\n getStopIndexForStartIndex = _ref.getStopIndexForStartIndex,\n initInstanceProps = _ref.initInstanceProps,\n shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange,\n validateProps = _ref.validateProps;\n return _class = /*#__PURE__*/function (_PureComponent) {\n _inheritsLoose(List, _PureComponent);\n\n // Always use explicit constructor for React components.\n // It produces less code after transpilation. (#26)\n // eslint-disable-next-line no-useless-constructor\n function List(props) {\n var _this;\n\n _this = _PureComponent.call(this, props) || this;\n _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));\n _this._outerRef = void 0;\n _this._resetIsScrollingTimeoutId = null;\n _this.state = {\n instance: _assertThisInitialized(_this),\n isScrolling: false,\n scrollDirection: 'forward',\n scrollOffset: typeof _this.props.initialScrollOffset === 'number' ? _this.props.initialScrollOffset : 0,\n scrollUpdateWasRequested: false\n };\n _this._callOnItemsRendered = void 0;\n _this._callOnItemsRendered = memoizeOne(function (overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {\n return _this.props.onItemsRendered({\n overscanStartIndex: overscanStartIndex,\n overscanStopIndex: overscanStopIndex,\n visibleStartIndex: visibleStartIndex,\n visibleStopIndex: visibleStopIndex\n });\n });\n _this._callOnScroll = void 0;\n _this._callOnScroll = memoizeOne(function (scrollDirection, scrollOffset, scrollUpdateWasRequested) {\n return _this.props.onScroll({\n scrollDirection: scrollDirection,\n scrollOffset: scrollOffset,\n scrollUpdateWasRequested: scrollUpdateWasRequested\n });\n });\n _this._getItemStyle = void 0;\n\n _this._getItemStyle = function (index) {\n var _this$props = _this.props,\n direction = _this$props.direction,\n itemSize = _this$props.itemSize,\n layout = _this$props.layout;\n\n var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);\n\n var style;\n\n if (itemStyleCache.hasOwnProperty(index)) {\n style = itemStyleCache[index];\n } else {\n var _offset = getItemOffset(_this.props, index, _this._instanceProps);\n\n var size = getItemSize(_this.props, index, _this._instanceProps); // TODO Deprecate direction \"horizontal\"\n\n var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n var isRtl = direction === 'rtl';\n var offsetHorizontal = isHorizontal ? _offset : 0;\n itemStyleCache[index] = style = {\n position: 'absolute',\n left: isRtl ? undefined : offsetHorizontal,\n right: isRtl ? offsetHorizontal : undefined,\n top: !isHorizontal ? _offset : 0,\n height: !isHorizontal ? size : '100%',\n width: isHorizontal ? size : '100%'\n };\n }\n\n return style;\n };\n\n _this._getItemStyleCache = void 0;\n _this._getItemStyleCache = memoizeOne(function (_, __, ___) {\n return {};\n });\n\n _this._onScrollHorizontal = function (event) {\n var _event$currentTarget = event.currentTarget,\n clientWidth = _event$currentTarget.clientWidth,\n scrollLeft = _event$currentTarget.scrollLeft,\n scrollWidth = _event$currentTarget.scrollWidth;\n\n _this.setState(function (prevState) {\n if (prevState.scrollOffset === scrollLeft) {\n // Scroll position may have been updated by cDM/cDU,\n // In which case we don't need to trigger another render,\n // And we don't want to update state.isScrolling.\n return null;\n }\n\n var direction = _this.props.direction;\n var scrollOffset = scrollLeft;\n\n if (direction === 'rtl') {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // It's also easier for this component if we convert offsets to the same format as they would be in for ltr.\n // So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.\n switch (getRTLOffsetType()) {\n case 'negative':\n scrollOffset = -scrollLeft;\n break;\n\n case 'positive-descending':\n scrollOffset = scrollWidth - clientWidth - scrollLeft;\n break;\n }\n } // Prevent Safari's elastic scrolling from causing visual shaking when scrolling past bounds.\n\n\n scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));\n return {\n isScrolling: true,\n scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',\n scrollOffset: scrollOffset,\n scrollUpdateWasRequested: false\n };\n }, _this._resetIsScrollingDebounced);\n };\n\n _this._onScrollVertical = function (event) {\n var _event$currentTarget2 = event.currentTarget,\n clientHeight = _event$currentTarget2.clientHeight,\n scrollHeight = _event$currentTarget2.scrollHeight,\n scrollTop = _event$currentTarget2.scrollTop;\n\n _this.setState(function (prevState) {\n if (prevState.scrollOffset === scrollTop) {\n // Scroll position may have been updated by cDM/cDU,\n // In which case we don't need to trigger another render,\n // And we don't want to update state.isScrolling.\n return null;\n } // Prevent Safari's elastic scrolling from causing visual shaking when scrolling past bounds.\n\n\n var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));\n return {\n isScrolling: true,\n scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',\n scrollOffset: scrollOffset,\n scrollUpdateWasRequested: false\n };\n }, _this._resetIsScrollingDebounced);\n };\n\n _this._outerRefSetter = function (ref) {\n var outerRef = _this.props.outerRef;\n _this._outerRef = ref;\n\n if (typeof outerRef === 'function') {\n outerRef(ref);\n } else if (outerRef != null && typeof outerRef === 'object' && outerRef.hasOwnProperty('current')) {\n outerRef.current = ref;\n }\n };\n\n _this._resetIsScrollingDebounced = function () {\n if (_this._resetIsScrollingTimeoutId !== null) {\n cancelTimeout(_this._resetIsScrollingTimeoutId);\n }\n\n _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);\n };\n\n _this._resetIsScrolling = function () {\n _this._resetIsScrollingTimeoutId = null;\n\n _this.setState({\n isScrolling: false\n }, function () {\n // Clear style cache after state update has been committed.\n // This way we don't break pure sCU for items that don't use isScrolling param.\n _this._getItemStyleCache(-1, null);\n });\n };\n\n return _this;\n }\n\n List.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n validateSharedProps$1(nextProps, prevState);\n validateProps(nextProps);\n return null;\n };\n\n var _proto = List.prototype;\n\n _proto.scrollTo = function scrollTo(scrollOffset) {\n scrollOffset = Math.max(0, scrollOffset);\n this.setState(function (prevState) {\n if (prevState.scrollOffset === scrollOffset) {\n return null;\n }\n\n return {\n scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',\n scrollOffset: scrollOffset,\n scrollUpdateWasRequested: true\n };\n }, this._resetIsScrollingDebounced);\n };\n\n _proto.scrollToItem = function scrollToItem(index, align) {\n if (align === void 0) {\n align = 'auto';\n }\n\n var _this$props2 = this.props,\n itemCount = _this$props2.itemCount,\n layout = _this$props2.layout;\n var scrollOffset = this.state.scrollOffset;\n index = Math.max(0, Math.min(index, itemCount - 1)); // The scrollbar size should be considered when scrolling an item into view, to ensure it's fully visible.\n // But we only need to account for its size when it's actually visible.\n // This is an edge case for lists; normally they only scroll in the dominant direction.\n\n var scrollbarSize = 0;\n\n if (this._outerRef) {\n var outerRef = this._outerRef;\n\n if (layout === 'vertical') {\n scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;\n } else {\n scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;\n }\n }\n\n this.scrollTo(getOffsetForIndexAndAlignment(this.props, index, align, scrollOffset, this._instanceProps, scrollbarSize));\n };\n\n _proto.componentDidMount = function componentDidMount() {\n var _this$props3 = this.props,\n direction = _this$props3.direction,\n initialScrollOffset = _this$props3.initialScrollOffset,\n layout = _this$props3.layout;\n\n if (typeof initialScrollOffset === 'number' && this._outerRef != null) {\n var outerRef = this._outerRef; // TODO Deprecate direction \"horizontal\"\n\n if (direction === 'horizontal' || layout === 'horizontal') {\n outerRef.scrollLeft = initialScrollOffset;\n } else {\n outerRef.scrollTop = initialScrollOffset;\n }\n }\n\n this._callPropsCallbacks();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n var _this$props4 = this.props,\n direction = _this$props4.direction,\n layout = _this$props4.layout;\n var _this$state = this.state,\n scrollOffset = _this$state.scrollOffset,\n scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;\n\n if (scrollUpdateWasRequested && this._outerRef != null) {\n var outerRef = this._outerRef; // TODO Deprecate direction \"horizontal\"\n\n if (direction === 'horizontal' || layout === 'horizontal') {\n if (direction === 'rtl') {\n // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n // So we need to determine which browser behavior we're dealing with, and mimic it.\n switch (getRTLOffsetType()) {\n case 'negative':\n outerRef.scrollLeft = -scrollOffset;\n break;\n\n case 'positive-ascending':\n outerRef.scrollLeft = scrollOffset;\n break;\n\n default:\n var clientWidth = outerRef.clientWidth,\n scrollWidth = outerRef.scrollWidth;\n outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;\n break;\n }\n } else {\n outerRef.scrollLeft = scrollOffset;\n }\n } else {\n outerRef.scrollTop = scrollOffset;\n }\n }\n\n this._callPropsCallbacks();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this._resetIsScrollingTimeoutId !== null) {\n cancelTimeout(this._resetIsScrollingTimeoutId);\n }\n };\n\n _proto.render = function render() {\n var _this$props5 = this.props,\n children = _this$props5.children,\n className = _this$props5.className,\n direction = _this$props5.direction,\n height = _this$props5.height,\n innerRef = _this$props5.innerRef,\n innerElementType = _this$props5.innerElementType,\n innerTagName = _this$props5.innerTagName,\n itemCount = _this$props5.itemCount,\n itemData = _this$props5.itemData,\n _this$props5$itemKey = _this$props5.itemKey,\n itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey,\n layout = _this$props5.layout,\n outerElementType = _this$props5.outerElementType,\n outerTagName = _this$props5.outerTagName,\n style = _this$props5.style,\n useIsScrolling = _this$props5.useIsScrolling,\n width = _this$props5.width;\n var isScrolling = this.state.isScrolling; // TODO Deprecate direction \"horizontal\"\n\n var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;\n\n var _this$_getRangeToRend = this._getRangeToRender(),\n startIndex = _this$_getRangeToRend[0],\n stopIndex = _this$_getRangeToRend[1];\n\n var items = [];\n\n if (itemCount > 0) {\n for (var _index = startIndex; _index <= stopIndex; _index++) {\n items.push(createElement(children, {\n data: itemData,\n key: itemKey(_index, itemData),\n index: _index,\n isScrolling: useIsScrolling ? isScrolling : undefined,\n style: this._getItemStyle(_index)\n }));\n }\n } // Read this value AFTER items have been created,\n // So their actual sizes (if variable) are taken into consideration.\n\n\n var estimatedTotalSize = getEstimatedTotalSize(this.props, this._instanceProps);\n return createElement(outerElementType || outerTagName || 'div', {\n className: className,\n onScroll: onScroll,\n ref: this._outerRefSetter,\n style: _extends({\n position: 'relative',\n height: height,\n width: width,\n overflow: 'auto',\n WebkitOverflowScrolling: 'touch',\n willChange: 'transform',\n direction: direction\n }, style)\n }, createElement(innerElementType || innerTagName || 'div', {\n children: items,\n ref: innerRef,\n style: {\n height: isHorizontal ? '100%' : estimatedTotalSize,\n pointerEvents: isScrolling ? 'none' : undefined,\n width: isHorizontal ? estimatedTotalSize : '100%'\n }\n }));\n };\n\n _proto._callPropsCallbacks = function _callPropsCallbacks() {\n if (typeof this.props.onItemsRendered === 'function') {\n var itemCount = this.props.itemCount;\n\n if (itemCount > 0) {\n var _this$_getRangeToRend2 = this._getRangeToRender(),\n _overscanStartIndex = _this$_getRangeToRend2[0],\n _overscanStopIndex = _this$_getRangeToRend2[1],\n _visibleStartIndex = _this$_getRangeToRend2[2],\n _visibleStopIndex = _this$_getRangeToRend2[3];\n\n this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);\n }\n }\n\n if (typeof this.props.onScroll === 'function') {\n var _this$state2 = this.state,\n _scrollDirection = _this$state2.scrollDirection,\n _scrollOffset = _this$state2.scrollOffset,\n _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;\n\n this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);\n }\n } // Lazily create and cache item styles while scrolling,\n // So that pure component sCU will prevent re-renders.\n // We maintain this cache, and pass a style prop rather than index,\n // So that List can clear cached styles and force item re-render if necessary.\n ;\n\n _proto._getRangeToRender = function _getRangeToRender() {\n var _this$props6 = this.props,\n itemCount = _this$props6.itemCount,\n overscanCount = _this$props6.overscanCount;\n var _this$state3 = this.state,\n isScrolling = _this$state3.isScrolling,\n scrollDirection = _this$state3.scrollDirection,\n scrollOffset = _this$state3.scrollOffset;\n\n if (itemCount === 0) {\n return [0, 0, 0, 0];\n }\n\n var startIndex = getStartIndexForOffset(this.props, scrollOffset, this._instanceProps);\n var stopIndex = getStopIndexForStartIndex(this.props, startIndex, scrollOffset, this._instanceProps); // Overscan by one item in each direction so that tab/focus works.\n // If there isn't at least one extra item, tab loops back around.\n\n var overscanBackward = !isScrolling || scrollDirection === 'backward' ? Math.max(1, overscanCount) : 1;\n var overscanForward = !isScrolling || scrollDirection === 'forward' ? Math.max(1, overscanCount) : 1;\n return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];\n };\n\n return List;\n }(PureComponent), _class.defaultProps = {\n direction: 'ltr',\n itemData: undefined,\n layout: 'vertical',\n overscanCount: 2,\n useIsScrolling: false\n }, _class;\n} // NOTE: I considered further wrapping individual items with a pure ListItem component.\n// This would avoid ever calling the render function for the same index more than once,\n// But it would also add the overhead of a lot of components/fibers.\n// I assume people already do this (render function returning a class component),\n// So my doing it would just unnecessarily double the wrappers.\n\nvar validateSharedProps$1 = function validateSharedProps(_ref2, _ref3) {\n var children = _ref2.children,\n direction = _ref2.direction,\n height = _ref2.height,\n layout = _ref2.layout,\n innerTagName = _ref2.innerTagName,\n outerTagName = _ref2.outerTagName,\n width = _ref2.width;\n var instance = _ref3.instance;\n\n if (process.env.NODE_ENV !== 'production') {\n if (innerTagName != null || outerTagName != null) {\n if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {\n devWarningsTagName$1.add(instance);\n console.warn('The innerTagName and outerTagName props have been deprecated. ' + 'Please use the innerElementType and outerElementType props instead.');\n }\n } // TODO Deprecate direction \"horizontal\"\n\n\n var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n\n switch (direction) {\n case 'horizontal':\n case 'vertical':\n if (devWarningsDirection && !devWarningsDirection.has(instance)) {\n devWarningsDirection.add(instance);\n console.warn('The direction prop should be either \"ltr\" (default) or \"rtl\". ' + 'Please use the layout prop to specify \"vertical\" (default) or \"horizontal\" orientation.');\n }\n\n break;\n\n case 'ltr':\n case 'rtl':\n // Valid values\n break;\n\n default:\n throw Error('An invalid \"direction\" prop has been specified. ' + 'Value should be either \"ltr\" or \"rtl\". ' + (\"\\\"\" + direction + \"\\\" was specified.\"));\n }\n\n switch (layout) {\n case 'horizontal':\n case 'vertical':\n // Valid values\n break;\n\n default:\n throw Error('An invalid \"layout\" prop has been specified. ' + 'Value should be either \"horizontal\" or \"vertical\". ' + (\"\\\"\" + layout + \"\\\" was specified.\"));\n }\n\n if (children == null) {\n throw Error('An invalid \"children\" prop has been specified. ' + 'Value should be a React component. ' + (\"\\\"\" + (children === null ? 'null' : typeof children) + \"\\\" was specified.\"));\n }\n\n if (isHorizontal && typeof width !== 'number') {\n throw Error('An invalid \"width\" prop has been specified. ' + 'Horizontal lists must specify a number for width. ' + (\"\\\"\" + (width === null ? 'null' : typeof width) + \"\\\" was specified.\"));\n } else if (!isHorizontal && typeof height !== 'number') {\n throw Error('An invalid \"height\" prop has been specified. ' + 'Vertical lists must specify a number for height. ' + (\"\\\"\" + (height === null ? 'null' : typeof height) + \"\\\" was specified.\"));\n }\n }\n};\n\nvar DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;\n\nvar getItemMetadata$1 = function getItemMetadata(props, index, instanceProps) {\n var _ref = props,\n itemSize = _ref.itemSize;\n var itemMetadataMap = instanceProps.itemMetadataMap,\n lastMeasuredIndex = instanceProps.lastMeasuredIndex;\n\n if (index > lastMeasuredIndex) {\n var offset = 0;\n\n if (lastMeasuredIndex >= 0) {\n var itemMetadata = itemMetadataMap[lastMeasuredIndex];\n offset = itemMetadata.offset + itemMetadata.size;\n }\n\n for (var i = lastMeasuredIndex + 1; i <= index; i++) {\n var size = itemSize(i);\n itemMetadataMap[i] = {\n offset: offset,\n size: size\n };\n offset += size;\n }\n\n instanceProps.lastMeasuredIndex = index;\n }\n\n return itemMetadataMap[index];\n};\n\nvar findNearestItem$1 = function findNearestItem(props, instanceProps, offset) {\n var itemMetadataMap = instanceProps.itemMetadataMap,\n lastMeasuredIndex = instanceProps.lastMeasuredIndex;\n var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;\n\n if (lastMeasuredItemOffset >= offset) {\n // If we've already measured items within this range just use a binary search as it's faster.\n return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset);\n } else {\n // If we haven't yet measured this high, fallback to an exponential search with an inner binary search.\n // The exponential search avoids pre-computing sizes for the full set of items as a binary search would.\n // The overall complexity for this approach is O(log n).\n return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset);\n }\n};\n\nvar findNearestItemBinarySearch$1 = function findNearestItemBinarySearch(props, instanceProps, high, low, offset) {\n while (low <= high) {\n var middle = low + Math.floor((high - low) / 2);\n var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;\n\n if (currentOffset === offset) {\n return middle;\n } else if (currentOffset < offset) {\n low = middle + 1;\n } else if (currentOffset > offset) {\n high = middle - 1;\n }\n }\n\n if (low > 0) {\n return low - 1;\n } else {\n return 0;\n }\n};\n\nvar findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch(props, instanceProps, index, offset) {\n var itemCount = props.itemCount;\n var interval = 1;\n\n while (index < itemCount && getItemMetadata$1(props, index, instanceProps).offset < offset) {\n index += interval;\n interval *= 2;\n }\n\n return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset);\n};\n\nvar getEstimatedTotalSize = function getEstimatedTotalSize(_ref2, _ref3) {\n var itemCount = _ref2.itemCount;\n var itemMetadataMap = _ref3.itemMetadataMap,\n estimatedItemSize = _ref3.estimatedItemSize,\n lastMeasuredIndex = _ref3.lastMeasuredIndex;\n var totalSizeOfMeasuredItems = 0; // Edge case check for when the number of items decreases while a scroll is in progress.\n // https://github.com/bvaughn/react-window/pull/138\n\n if (lastMeasuredIndex >= itemCount) {\n lastMeasuredIndex = itemCount - 1;\n }\n\n if (lastMeasuredIndex >= 0) {\n var itemMetadata = itemMetadataMap[lastMeasuredIndex];\n totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;\n }\n\n var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;\n var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;\n return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;\n};\n\nvar VariableSizeList = /*#__PURE__*/createListComponent({\n getItemOffset: function getItemOffset(props, index, instanceProps) {\n return getItemMetadata$1(props, index, instanceProps).offset;\n },\n getItemSize: function getItemSize(props, index, instanceProps) {\n return instanceProps.itemMetadataMap[index].size;\n },\n getEstimatedTotalSize: getEstimatedTotalSize,\n getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(props, index, align, scrollOffset, instanceProps, scrollbarSize) {\n var direction = props.direction,\n height = props.height,\n layout = props.layout,\n width = props.width; // TODO Deprecate direction \"horizontal\"\n\n var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n var size = isHorizontal ? width : height;\n var itemMetadata = getItemMetadata$1(props, index, instanceProps); // Get estimated total size after ItemMetadata is computed,\n // To ensure it reflects actual measurements instead of just estimates.\n\n var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);\n var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size, itemMetadata.offset));\n var minOffset = Math.max(0, itemMetadata.offset - size + itemMetadata.size + scrollbarSize);\n\n if (align === 'smart') {\n if (scrollOffset >= minOffset - size && scrollOffset <= maxOffset + size) {\n align = 'auto';\n } else {\n align = 'center';\n }\n }\n\n switch (align) {\n case 'start':\n return maxOffset;\n\n case 'end':\n return minOffset;\n\n case 'center':\n return Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n case 'auto':\n default:\n if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {\n return scrollOffset;\n } else if (scrollOffset < minOffset) {\n return minOffset;\n } else {\n return maxOffset;\n }\n\n }\n },\n getStartIndexForOffset: function getStartIndexForOffset(props, offset, instanceProps) {\n return findNearestItem$1(props, instanceProps, offset);\n },\n getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {\n var direction = props.direction,\n height = props.height,\n itemCount = props.itemCount,\n layout = props.layout,\n width = props.width; // TODO Deprecate direction \"horizontal\"\n\n var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n var size = isHorizontal ? width : height;\n var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);\n var maxOffset = scrollOffset + size;\n var offset = itemMetadata.offset + itemMetadata.size;\n var stopIndex = startIndex;\n\n while (stopIndex < itemCount - 1 && offset < maxOffset) {\n stopIndex++;\n offset += getItemMetadata$1(props, stopIndex, instanceProps).size;\n }\n\n return stopIndex;\n },\n initInstanceProps: function initInstanceProps(props, instance) {\n var _ref4 = props,\n estimatedItemSize = _ref4.estimatedItemSize;\n var instanceProps = {\n itemMetadataMap: {},\n estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,\n lastMeasuredIndex: -1\n };\n\n instance.resetAfterIndex = function (index, shouldForceUpdate) {\n if (shouldForceUpdate === void 0) {\n shouldForceUpdate = true;\n }\n\n instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index - 1); // We could potentially optimize further by only evicting styles after this index,\n // But since styles are only cached while scrolling is in progress-\n // It seems an unnecessary optimization.\n // It's unlikely that resetAfterIndex() will be called while a user is scrolling.\n\n instance._getItemStyleCache(-1);\n\n if (shouldForceUpdate) {\n instance.forceUpdate();\n }\n };\n\n return instanceProps;\n },\n shouldResetStyleCacheOnItemSizeChange: false,\n validateProps: function validateProps(_ref5) {\n var itemSize = _ref5.itemSize;\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof itemSize !== 'function') {\n throw Error('An invalid \"itemSize\" prop has been specified. ' + 'Value should be a function. ' + (\"\\\"\" + (itemSize === null ? 'null' : typeof itemSize) + \"\\\" was specified.\"));\n }\n }\n }\n});\n\nvar FixedSizeGrid = /*#__PURE__*/createGridComponent({\n getColumnOffset: function getColumnOffset(_ref, index) {\n var columnWidth = _ref.columnWidth;\n return index * columnWidth;\n },\n getColumnWidth: function getColumnWidth(_ref2, index) {\n var columnWidth = _ref2.columnWidth;\n return columnWidth;\n },\n getRowOffset: function getRowOffset(_ref3, index) {\n var rowHeight = _ref3.rowHeight;\n return index * rowHeight;\n },\n getRowHeight: function getRowHeight(_ref4, index) {\n var rowHeight = _ref4.rowHeight;\n return rowHeight;\n },\n getEstimatedTotalHeight: function getEstimatedTotalHeight(_ref5) {\n var rowCount = _ref5.rowCount,\n rowHeight = _ref5.rowHeight;\n return rowHeight * rowCount;\n },\n getEstimatedTotalWidth: function getEstimatedTotalWidth(_ref6) {\n var columnCount = _ref6.columnCount,\n columnWidth = _ref6.columnWidth;\n return columnWidth * columnCount;\n },\n getOffsetForColumnAndAlignment: function getOffsetForColumnAndAlignment(_ref7, columnIndex, align, scrollLeft, instanceProps, scrollbarSize) {\n var columnCount = _ref7.columnCount,\n columnWidth = _ref7.columnWidth,\n width = _ref7.width;\n var lastColumnOffset = Math.max(0, columnCount * columnWidth - width);\n var maxOffset = Math.min(lastColumnOffset, columnIndex * columnWidth);\n var minOffset = Math.max(0, columnIndex * columnWidth - width + scrollbarSize + columnWidth);\n\n if (align === 'smart') {\n if (scrollLeft >= minOffset - width && scrollLeft <= maxOffset + width) {\n align = 'auto';\n } else {\n align = 'center';\n }\n }\n\n switch (align) {\n case 'start':\n return maxOffset;\n\n case 'end':\n return minOffset;\n\n case 'center':\n // \"Centered\" offset is usually the average of the min and max.\n // But near the edges of the list, this doesn't hold true.\n var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n if (middleOffset < Math.ceil(width / 2)) {\n return 0; // near the beginning\n } else if (middleOffset > lastColumnOffset + Math.floor(width / 2)) {\n return lastColumnOffset; // near the end\n } else {\n return middleOffset;\n }\n\n case 'auto':\n default:\n if (scrollLeft >= minOffset && scrollLeft <= maxOffset) {\n return scrollLeft;\n } else if (minOffset > maxOffset) {\n // Because we only take into account the scrollbar size when calculating minOffset\n // this value can be larger than maxOffset when at the end of the list\n return minOffset;\n } else if (scrollLeft < minOffset) {\n return minOffset;\n } else {\n return maxOffset;\n }\n\n }\n },\n getOffsetForRowAndAlignment: function getOffsetForRowAndAlignment(_ref8, rowIndex, align, scrollTop, instanceProps, scrollbarSize) {\n var rowHeight = _ref8.rowHeight,\n height = _ref8.height,\n rowCount = _ref8.rowCount;\n var lastRowOffset = Math.max(0, rowCount * rowHeight - height);\n var maxOffset = Math.min(lastRowOffset, rowIndex * rowHeight);\n var minOffset = Math.max(0, rowIndex * rowHeight - height + scrollbarSize + rowHeight);\n\n if (align === 'smart') {\n if (scrollTop >= minOffset - height && scrollTop <= maxOffset + height) {\n align = 'auto';\n } else {\n align = 'center';\n }\n }\n\n switch (align) {\n case 'start':\n return maxOffset;\n\n case 'end':\n return minOffset;\n\n case 'center':\n // \"Centered\" offset is usually the average of the min and max.\n // But near the edges of the list, this doesn't hold true.\n var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n if (middleOffset < Math.ceil(height / 2)) {\n return 0; // near the beginning\n } else if (middleOffset > lastRowOffset + Math.floor(height / 2)) {\n return lastRowOffset; // near the end\n } else {\n return middleOffset;\n }\n\n case 'auto':\n default:\n if (scrollTop >= minOffset && scrollTop <= maxOffset) {\n return scrollTop;\n } else if (minOffset > maxOffset) {\n // Because we only take into account the scrollbar size when calculating minOffset\n // this value can be larger than maxOffset when at the end of the list\n return minOffset;\n } else if (scrollTop < minOffset) {\n return minOffset;\n } else {\n return maxOffset;\n }\n\n }\n },\n getColumnStartIndexForOffset: function getColumnStartIndexForOffset(_ref9, scrollLeft) {\n var columnWidth = _ref9.columnWidth,\n columnCount = _ref9.columnCount;\n return Math.max(0, Math.min(columnCount - 1, Math.floor(scrollLeft / columnWidth)));\n },\n getColumnStopIndexForStartIndex: function getColumnStopIndexForStartIndex(_ref10, startIndex, scrollLeft) {\n var columnWidth = _ref10.columnWidth,\n columnCount = _ref10.columnCount,\n width = _ref10.width;\n var left = startIndex * columnWidth;\n var numVisibleColumns = Math.ceil((width + scrollLeft - left) / columnWidth);\n return Math.max(0, Math.min(columnCount - 1, startIndex + numVisibleColumns - 1 // -1 is because stop index is inclusive\n ));\n },\n getRowStartIndexForOffset: function getRowStartIndexForOffset(_ref11, scrollTop) {\n var rowHeight = _ref11.rowHeight,\n rowCount = _ref11.rowCount;\n return Math.max(0, Math.min(rowCount - 1, Math.floor(scrollTop / rowHeight)));\n },\n getRowStopIndexForStartIndex: function getRowStopIndexForStartIndex(_ref12, startIndex, scrollTop) {\n var rowHeight = _ref12.rowHeight,\n rowCount = _ref12.rowCount,\n height = _ref12.height;\n var top = startIndex * rowHeight;\n var numVisibleRows = Math.ceil((height + scrollTop - top) / rowHeight);\n return Math.max(0, Math.min(rowCount - 1, startIndex + numVisibleRows - 1 // -1 is because stop index is inclusive\n ));\n },\n initInstanceProps: function initInstanceProps(props) {// Noop\n },\n shouldResetStyleCacheOnItemSizeChange: true,\n validateProps: function validateProps(_ref13) {\n var columnWidth = _ref13.columnWidth,\n rowHeight = _ref13.rowHeight;\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof columnWidth !== 'number') {\n throw Error('An invalid \"columnWidth\" prop has been specified. ' + 'Value should be a number. ' + (\"\\\"\" + (columnWidth === null ? 'null' : typeof columnWidth) + \"\\\" was specified.\"));\n }\n\n if (typeof rowHeight !== 'number') {\n throw Error('An invalid \"rowHeight\" prop has been specified. ' + 'Value should be a number. ' + (\"\\\"\" + (rowHeight === null ? 'null' : typeof rowHeight) + \"\\\" was specified.\"));\n }\n }\n }\n});\n\nvar FixedSizeList = /*#__PURE__*/createListComponent({\n getItemOffset: function getItemOffset(_ref, index) {\n var itemSize = _ref.itemSize;\n return index * itemSize;\n },\n getItemSize: function getItemSize(_ref2, index) {\n var itemSize = _ref2.itemSize;\n return itemSize;\n },\n getEstimatedTotalSize: function getEstimatedTotalSize(_ref3) {\n var itemCount = _ref3.itemCount,\n itemSize = _ref3.itemSize;\n return itemSize * itemCount;\n },\n getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(_ref4, index, align, scrollOffset, instanceProps, scrollbarSize) {\n var direction = _ref4.direction,\n height = _ref4.height,\n itemCount = _ref4.itemCount,\n itemSize = _ref4.itemSize,\n layout = _ref4.layout,\n width = _ref4.width;\n // TODO Deprecate direction \"horizontal\"\n var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n var size = isHorizontal ? width : height;\n var lastItemOffset = Math.max(0, itemCount * itemSize - size);\n var maxOffset = Math.min(lastItemOffset, index * itemSize);\n var minOffset = Math.max(0, index * itemSize - size + itemSize + scrollbarSize);\n\n if (align === 'smart') {\n if (scrollOffset >= minOffset - size && scrollOffset <= maxOffset + size) {\n align = 'auto';\n } else {\n align = 'center';\n }\n }\n\n switch (align) {\n case 'start':\n return maxOffset;\n\n case 'end':\n return minOffset;\n\n case 'center':\n {\n // \"Centered\" offset is usually the average of the min and max.\n // But near the edges of the list, this doesn't hold true.\n var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n if (middleOffset < Math.ceil(size / 2)) {\n return 0; // near the beginning\n } else if (middleOffset > lastItemOffset + Math.floor(size / 2)) {\n return lastItemOffset; // near the end\n } else {\n return middleOffset;\n }\n }\n\n case 'auto':\n default:\n if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {\n return scrollOffset;\n } else if (scrollOffset < minOffset) {\n return minOffset;\n } else {\n return maxOffset;\n }\n\n }\n },\n getStartIndexForOffset: function getStartIndexForOffset(_ref5, offset) {\n var itemCount = _ref5.itemCount,\n itemSize = _ref5.itemSize;\n return Math.max(0, Math.min(itemCount - 1, Math.floor(offset / itemSize)));\n },\n getStopIndexForStartIndex: function getStopIndexForStartIndex(_ref6, startIndex, scrollOffset) {\n var direction = _ref6.direction,\n height = _ref6.height,\n itemCount = _ref6.itemCount,\n itemSize = _ref6.itemSize,\n layout = _ref6.layout,\n width = _ref6.width;\n // TODO Deprecate direction \"horizontal\"\n var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n var offset = startIndex * itemSize;\n var size = isHorizontal ? width : height;\n var numVisibleItems = Math.ceil((size + scrollOffset - offset) / itemSize);\n return Math.max(0, Math.min(itemCount - 1, startIndex + numVisibleItems - 1 // -1 is because stop index is inclusive\n ));\n },\n initInstanceProps: function initInstanceProps(props) {// Noop\n },\n shouldResetStyleCacheOnItemSizeChange: true,\n validateProps: function validateProps(_ref7) {\n var itemSize = _ref7.itemSize;\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof itemSize !== 'number') {\n throw Error('An invalid \"itemSize\" prop has been specified. ' + 'Value should be a number. ' + (\"\\\"\" + (itemSize === null ? 'null' : typeof itemSize) + \"\\\" was specified.\"));\n }\n }\n }\n});\n\n// Pulled from react-compat\n// https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349\nfunction shallowDiffers(prev, next) {\n for (var attribute in prev) {\n if (!(attribute in next)) {\n return true;\n }\n }\n\n for (var _attribute in next) {\n if (prev[_attribute] !== next[_attribute]) {\n return true;\n }\n }\n\n return false;\n}\n\nvar _excluded = [\"style\"],\n _excluded2 = [\"style\"];\n// It knows to compare individual style props and ignore the wrapper object.\n// See https://reactjs.org/docs/react-api.html#reactmemo\n\nfunction areEqual(prevProps, nextProps) {\n var prevStyle = prevProps.style,\n prevRest = _objectWithoutPropertiesLoose(prevProps, _excluded);\n\n var nextStyle = nextProps.style,\n nextRest = _objectWithoutPropertiesLoose(nextProps, _excluded2);\n\n return !shallowDiffers(prevStyle, nextStyle) && !shallowDiffers(prevRest, nextRest);\n}\n\n// It knows to compare individual style props and ignore the wrapper object.\n// See https://reactjs.org/docs/react-component.html#shouldcomponentupdate\n\nfunction shouldComponentUpdate(nextProps, nextState) {\n return !areEqual(this.props, nextProps) || shallowDiffers(this.state, nextState);\n}\n\nexport { FixedSizeGrid, FixedSizeList, VariableSizeGrid, VariableSizeList, areEqual, shouldComponentUpdate };\n//# sourceMappingURL=index.esm.js.map\n"],"names":["now","performance","Date","cancelTimeout","timeoutID","cancelAnimationFrame","id","size","getScrollbarSize","recalculate","div","document","createElement","style","width","height","overflow","body","appendChild","offsetWidth","clientWidth","removeChild","cachedRTLResult","getRTLOffsetType","outerDiv","outerStyle","direction","innerDiv","innerStyle","scrollLeft","process","env","NODE_ENV","defaultItemKey$1","index","data","devWarningsDirection","devWarningsTagName$1","createListComponent","_ref","_class","getItemOffset","getEstimatedTotalSize","getItemSize","getOffsetForIndexAndAlignment","getStartIndexForOffset","getStopIndexForStartIndex","initInstanceProps","shouldResetStyleCacheOnItemSizeChange","validateProps","_PureComponent","List","props","_this","call","this","_instanceProps","_assertThisInitialized","_outerRef","_resetIsScrollingTimeoutId","state","instance","isScrolling","scrollDirection","scrollOffset","initialScrollOffset","scrollUpdateWasRequested","_callOnItemsRendered","memoizeOne","overscanStartIndex","overscanStopIndex","visibleStartIndex","visibleStopIndex","onItemsRendered","_callOnScroll","onScroll","_getItemStyle","_this$props","itemSize","layout","itemStyleCache","_getItemStyleCache","hasOwnProperty","_offset","isHorizontal","isRtl","offsetHorizontal","position","left","undefined","right","top","_","__","___","_onScrollHorizontal","event","_event$currentTarget","currentTarget","scrollWidth","setState","prevState","Math","max","min","_resetIsScrollingDebounced","_onScrollVertical","_event$currentTarget2","clientHeight","scrollHeight","scrollTop","_outerRefSetter","ref","outerRef","current","callback","delay","start","_resetIsScrolling","requestAnimationFrame","tick","_inheritsLoose","getDerivedStateFromProps","nextProps","validateSharedProps$1","_proto","prototype","scrollTo","scrollToItem","align","_this$props2","itemCount","scrollbarSize","componentDidMount","_this$props3","_callPropsCallbacks","componentDidUpdate","_this$props4","_this$state","componentWillUnmount","render","_this$props5","children","className","innerRef","innerElementType","innerTagName","itemData","_this$props5$itemKey","itemKey","outerElementType","outerTagName","useIsScrolling","_this$_getRangeToRend","_getRangeToRender","startIndex","stopIndex","items","_index","push","key","estimatedTotalSize","_extends","WebkitOverflowScrolling","willChange","pointerEvents","_this$_getRangeToRend2","_overscanStartIndex","_overscanStopIndex","_visibleStartIndex","_visibleStopIndex","_this$state2","_scrollDirection","_scrollOffset","_scrollUpdateWasRequested","_this$props6","overscanCount","_this$state3","overscanBackward","overscanForward","PureComponent","defaultProps","window","WeakSet","_ref2","_ref3","has","add","console","warn","Error","FixedSizeList","_ref4","instanceProps","lastItemOffset","maxOffset","minOffset","middleOffset","round","ceil","floor","_ref5","offset","_ref6","numVisibleItems","_ref7"],"mappings":"iVAUIA,EADiD,iBAAhBC,aAAuD,mBAApBA,YAAYD,IAChD,WAClC,OAAOC,YAAYD,KACrB,EAAI,WACF,OAAOE,KAAKF,KACd,EACA,SAASG,EAAcC,GACrBC,qBAAqBD,EAAUE,GACjC,CAkBA,IAAIC,GAAQ,EAEZ,SAASC,EAAiBC,GAKxB,QAJoB,IAAhBA,IACFA,GAAc,IAGF,IAAVF,GAAeE,EAAa,CAC9B,IAAIC,EAAMC,SAASC,cAAc,OAC7BC,EAAQH,EAAIG,MAChBA,EAAMC,MAAQ,OACdD,EAAME,OAAS,OACfF,EAAMG,SAAW,SACjBL,SAASM,KAAKC,YAAYR,GAC1BH,EAAOG,EAAIS,YAAcT,EAAIU,YAC7BT,SAASM,KAAKI,YAAYX,EAC3B,CAED,OAAOH,CACT,CACA,IAAIe,EAAkB,KAOtB,SAASC,EAAiBd,GAKxB,QAJoB,IAAhBA,IAC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AAGD,KAAKE,IAAI2B,EAAY,EAAG7B,KAAKkG,MAAME,EAAS5H,IAChE,EACDhC,0BAA2B,SAAmC6J,EAAOhD,EAAY3F,GAC/E,IAAItC,EAAYiL,EAAMjL,UAClBX,EAAS4L,EAAM5L,OACfoH,EAAYwE,EAAMxE,UAClBrD,EAAW6H,EAAM7H,SACjBC,EAAS4H,EAAM5H,OACfjE,EAAQ6L,EAAM7L,MAGd4L,EAAS/C,EAAa7E,EACtBvE,EAF6B,eAAdmB,GAAyC,eAAXqD,EAEvBjE,EAAQC,EAC9B6L,EAAkBtG,KAAKiG,MAAMhM,EAAOyD,EAAe0I,GAAU5H,GACjE,OAAOwB,KAAKC,IAAI,EAAGD,KAAKE,IAAI2B,EAAY,EAAGwB,EAAaiD,EAAkB,GAE3E,EACD7J,kBAAmB,SAA2BK,GAC7C,EACDJ,uCAAuC,EACvCC,cAAe,SAAuB4J,GACpC,IAAI/H,EAAW+H,EAAM/H,SAErB,GAA6B,eAAzBhD,QAAQC,IAAIC,UACU,iBAAb8C,EACT,MAAMgH,MAAM,8EAAyG,OAAbhH,EAAoB,cAAgBA,GAAY,mBAG7J"}
@@ -1,2 +1,2 @@
1
- import{__assign as e,__rest as t}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as n,jsx as i,Fragment as o}from"react/jsx-runtime";import{useState as r,useRef as l,useEffect as a}from"react";import{ReactMarkdown as d}from"../../../node_modules/react-markdown/lib/react-markdown.js";import c from"../../../node_modules/remark-breaks/lib/index.js";var u={card:{border:"2px solid #E5E7EB",backgroundColor:"#FFFFFF",borderRadius:"12px",padding:"24px"},title:{fontSize:"16px",fontWeight:"bold",marginBottom:"24px"},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(110px, 1fr))",gap:"24px",marginBottom:"24px"},gridItem:{backgroundColor:"#F8FAFC",border:"1px solid #DFE5EC",borderRadius:"8px",padding:"12px 8px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"12px"},gridItemHeight:{height:"50px"},label:{fontSize:"14px",fontWeight:400,color:"#64748B",margin:0},value:{fontWeight:"bold",fontSize:"14px",color:"#434C55",margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"120px"},section:{marginBottom:"12px",padding:"8px 12px",borderRadius:"8px",border:"1px solid #DEE4EB"},sectionLabel:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"8px",whiteSpace:"pre-line"},summaryText:{marginTop:"0px"},sectionText:{fontSize:"16px",fontWeight:400,lineHeight:"1.625",color:"#64748B",marginBottom:"8px"},button:{color:"#5928ED",fontSize:"14px",fontWeight:600,background:"none",border:"none",cursor:"pointer",padding:0,textDecoration:"none"},lineClamp:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},container:{fontFamily:"Inter, sans-serif",color:"#434C54",marginBottom:"8px"},partContainer:{marginBottom:"8px"},partTitle:{fontSize:"16px",fontWeight:"600",marginBottom:"10px"},chapterList:{listStyle:"none",paddingLeft:"20px",margin:0},chapterItem:{marginBottom:"6px"},chapterLink:{textDecoration:"none",color:"#63748A",fontSize:"16px",lineHeight:"1.5"},chapterLinkHover:{textDecoration:"underline"},singleChapter:{marginBottom:"4px",fontSize:"16px"},chapterNumber:{color:"#63748A"}},s=function(s){var p,m,h,g,x,f,v=s.data,y=r(!1),b=y[0],C=y[1],T=r(!1),k=T[0],B=T[1],S=r(!1),L=S[0],D=S[1],I=r(!1),w=I[0],O=I[1],M=l(null),F=(null==v?void 0:v.tableOfContent)&&v.tableOfContent.every((function(e){return!e.title||""===e.title.trim()}));return a((function(){var e,t;if(M.current){var n=(null===(e=M.current)||void 0===e?void 0:e.scrollHeight)>(null===(t=M.current)||void 0===t?void 0:t.clientHeight);O(n)}}),[null==v?void 0:v.bookDescription]),n("div",e({style:u.card},{children:[n("div",e({style:u.grid},{children:[n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Book Title"})),i("p",e({style:u.value,title:null==v?void 0:v.title},{children:null!==(p=null==v?void 0:v.title)&&void 0!==p?p:"NA"}))]})),n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Book Author"})),i("p",e({style:u.value,title:null==v?void 0:v.author},{children:null!==(m=null==v?void 0:v.author)&&void 0!==m?m:"NA"}))]})),n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Total Sections"})),i("p",e({style:u.value},{children:null!==(h=null==v?void 0:v.totalSectionCount)&&void 0!==h?h:"NA"}))]})),n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Total Pages"})),i("p",e({style:u.value},{children:null!==(g=null==v?void 0:v.totalPages)&&void 0!==g?g:"NA"}))]})),n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Reading Time"})),i("p",e({style:u.value},{children:null!==(x=null==v?void 0:v.readingTime)&&void 0!==x?x:"NA"}))]}))]})),(null==v?void 0:v.bookDescription)&&(null==v?void 0:v.bookDescription.length)>0&&n("div",e({style:u.section},{children:[i("p",e({style:u.sectionLabel},{children:"Book Description"})),i("div",e({ref:M,style:e(e(e({},u.sectionText),u.summaryText),k?{}:u.lineClamp)},{children:i("div",{dangerouslySetInnerHTML:{__html:null==v?void 0:v.bookDescription}})})),w&&i("button",e({style:e(e({},u.button),{marginBottom:"10px"}),onClick:function(){return B((function(e){return!e}))},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:k?"View Less":"View More"}))]})),n("div",e({style:u.section},{children:[i("p",e({style:u.sectionLabel},{children:"AI Generated Summary"})),i("p",e({style:e(e({},u.sectionText),b?{}:u.lineClamp)},{children:i(d,e({remarkPlugins:[c],components:{p:function(n){n.node;var o=t(n,["node"]);return i("p",e({style:{marginTop:"0"}},o))}}},{children:null==v?void 0:v.summary}))})),(null==v?void 0:v.summary)&&(null==v?void 0:v.summary.length)>0&&i("button",e({style:e(e({},u.button),{marginBottom:"10px"}),onClick:function(){return C((function(e){return!e}))},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:b?"View Less":"View More"}))]})),n("div",e({style:e(e({},u.section),{marginTop:"10px"})},{children:[i("p",e({style:e(e({},u.sectionLabel),{marginBottom:"18px"})},{children:"Table Of Content"})),i("div",e({style:e(e({},u.container),L?{}:u.lineClamp)},{children:(null==v?void 0:v.tableOfContent)&&!F?null===(f=null==v?void 0:v.tableOfContent)||void 0===f?void 0:f.map((function(t,r){return i("div",e({style:u.partContainer},{children:t.children?n(o,{children:[i("p",{style:u.partTitle,dangerouslySetInnerHTML:{__html:t.title}}),i("ul",e({style:u.chapterList},{children:t.children.map((function(t,n){return i("li",e({style:u.chapterItem},{children:i("span",{style:u.chapterLink,dangerouslySetInnerHTML:{__html:t.title}})}),n)}))}))]}):i("div",e({style:u.singleChapter},{children:i("span",{style:u.chapterLink,dangerouslySetInnerHTML:{__html:t.title}})}))}),r)})):i("p",e({style:{fontStyle:"italic",fontSize:"16px",color:"#6B7280",margin:"8px 0"}},{children:"Table of Contents not found for this book."}))})),(null==v?void 0:v.tableOfContent)&&!F&&(null==v?void 0:v.tableOfContent.length)>0&&i("button",e({style:e(e({},u.button),{marginBottom:"10px"}),onClick:function(){return D((function(e){return!e}))},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:L?"View Less":"View More"}))]}))]}))};export{s as default};
1
+ import{__assign as e,__rest as t}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as n,jsx as i,Fragment as o}from"react/jsx-runtime";import{useState as r,useRef as l,useEffect as a}from"react";import{ReactMarkdown as d}from"../../../node_modules/react-markdown/lib/react-markdown.js";import c from"../../../node_modules/remark-breaks/lib/index.js";var u={card:{border:"2px solid #E5E7EB",backgroundColor:"#FFFFFF",borderRadius:"12px",padding:"24px"},title:{fontSize:"16px",fontWeight:"bold",marginBottom:"24px"},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(110px, 1fr))",gap:"24px",marginBottom:"24px"},gridItem:{backgroundColor:"#F8FAFC",border:"1px solid #DFE5EC",borderRadius:"8px",padding:"12px 8px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"12px"},gridItemHeight:{height:"50px"},label:{fontSize:"14px",fontWeight:400,color:"#64748B",margin:0},value:{fontWeight:"bold",fontSize:"14px",color:"#434C55",margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"120px"},section:{marginBottom:"12px",padding:"8px 12px",borderRadius:"8px",border:"1px solid #DEE4EB"},sectionLabel:{fontSize:"14px",fontWeight:600,color:"#667085",marginBottom:"8px",whiteSpace:"pre-line"},summaryText:{marginTop:"0px"},sectionText:{fontSize:"16px",fontWeight:400,lineHeight:"1.625",color:"#64748B",marginBottom:"8px"},button:{color:"#5928ED",fontSize:"14px",fontWeight:600,background:"none",border:"none",cursor:"pointer",padding:0,textDecoration:"none"},lineClamp:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},container:{fontFamily:"Inter, sans-serif",color:"#434C54",marginBottom:"8px"},partContainer:{marginBottom:"8px"},partTitle:{fontSize:"16px",fontWeight:"600",marginBottom:"10px"},chapterList:{listStyle:"none",paddingLeft:"20px",margin:0},chapterItem:{marginBottom:"6px"},chapterLink:{textDecoration:"none",color:"#63748A",fontSize:"16px",lineHeight:"1.5"},chapterLinkHover:{textDecoration:"underline"},singleChapter:{marginBottom:"4px",fontSize:"16px"},chapterNumber:{color:"#63748A"}},s=function(s){var p,m,h,g,x,f,v=s.data,y=r(!1),b=y[0],C=y[1],T=r(!1),k=T[0],B=T[1],S=r(!1),L=S[0],D=S[1],I=r(!1),w=I[0],O=I[1],M=l(null),F=(null==v?void 0:v.tableOfContent)&&v.tableOfContent.every((function(e){return!e.title||""===e.title.trim()}));return a((function(){var e,t;if(M.current){var n=(null===(e=M.current)||void 0===e?void 0:e.scrollHeight)>(null===(t=M.current)||void 0===t?void 0:t.clientHeight);O(n)}}),[null==v?void 0:v.bookDescription]),n("div",e({style:u.card},{children:[n("div",e({style:u.grid},{children:[n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Book Title"})),i("p",e({style:u.value,title:null==v?void 0:v.title},{children:null!==(p=null==v?void 0:v.title)&&void 0!==p?p:"NA"}))]})),n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Book Author"})),i("p",e({style:u.value,title:null==v?void 0:v.author},{children:null!==(m=null==v?void 0:v.author)&&void 0!==m?m:"NA"}))]})),n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Total Sections"})),i("p",e({style:u.value},{children:null!==(h=null==v?void 0:v.totalSectionCount)&&void 0!==h?h:"NA"}))]})),n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Total Pages"})),i("p",e({style:u.value},{children:null!==(g=null==v?void 0:v.totalPages)&&void 0!==g?g:"NA"}))]})),n("div",e({style:u.gridItem},{children:[i("p",e({style:u.label},{children:"Reading Time"})),i("p",e({style:u.value},{children:null!==(x=null==v?void 0:v.readingTime)&&void 0!==x?x:"NA"}))]}))]})),(null==v?void 0:v.bookDescription)&&(null==v?void 0:v.bookDescription.length)>0&&n("div",e({style:u.section},{children:[i("p",e({style:u.sectionLabel},{children:"Book Description"})),i("div",e({ref:M,style:e(e(e({},u.sectionText),u.summaryText),k?{}:u.lineClamp)},{children:i("div",{dangerouslySetInnerHTML:{__html:null==v?void 0:v.bookDescription}})})),w&&i("button",e({style:e(e({},u.button),{marginBottom:"10px"}),onClick:function(){return B((function(e){return!e}))},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:k?"View Less":"View More"}))]})),n("div",e({style:u.section},{children:[i("p",e({style:u.sectionLabel},{children:"AI Book Summary"})),i("p",e({style:e(e({},u.sectionText),b?{}:u.lineClamp)},{children:i(d,e({remarkPlugins:[c],components:{p:function(n){n.node;var o=t(n,["node"]);return i("p",e({style:{marginTop:"0"}},o))}}},{children:null==v?void 0:v.summary}))})),(null==v?void 0:v.summary)&&(null==v?void 0:v.summary.length)>0&&i("button",e({style:e(e({},u.button),{marginBottom:"10px"}),onClick:function(){return C((function(e){return!e}))},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:b?"View Less":"View More"}))]})),n("div",e({style:e(e({},u.section),{marginTop:"10px"})},{children:[i("p",e({style:e(e({},u.sectionLabel),{marginBottom:"18px"})},{children:"Table Of Content"})),i("div",e({style:e(e({},u.container),L?{}:u.lineClamp)},{children:(null==v?void 0:v.tableOfContent)&&!F?null===(f=null==v?void 0:v.tableOfContent)||void 0===f?void 0:f.map((function(t,r){return i("div",e({style:u.partContainer},{children:t.children?n(o,{children:[i("p",{style:u.partTitle,dangerouslySetInnerHTML:{__html:t.title}}),i("ul",e({style:u.chapterList},{children:t.children.map((function(t,n){return i("li",e({style:u.chapterItem},{children:i("span",{style:u.chapterLink,dangerouslySetInnerHTML:{__html:t.title}})}),n)}))}))]}):i("div",e({style:u.singleChapter},{children:i("span",{style:u.chapterLink,dangerouslySetInnerHTML:{__html:t.title}})}))}),r)})):i("p",e({style:{fontStyle:"italic",fontSize:"16px",color:"#6B7280",margin:"8px 0"}},{children:"Table of Contents not found for this book."}))})),(null==v?void 0:v.tableOfContent)&&!F&&(null==v?void 0:v.tableOfContent.length)>0&&i("button",e({style:e(e({},u.button),{marginBottom:"10px"}),onClick:function(){return D((function(e){return!e}))},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},{children:L?"View Less":"View More"}))]}))]}))};export{s as default};
2
2
  //# sourceMappingURL=BookOverviewCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as i,useEffect as n}from"react";import r from"../../../_virtual/Close.js";import l from"../../../_virtual/ArrowBack.js";import a from"../../BookCitation/BookCitation.js";import{comingSoonStyles as d,defaultIcon as c}from"../Bookemon.js";import s from"../../../node_modules/@material-ui/core/esm/Switch/Switch.js";import p from"../../../node_modules/@material-ui/core/esm/Tooltip/Tooltip.js";var u=function(u){var g=u.bookOverView,h=u.bookCoverImage,f=u.onClose,m=u.customStyle,x=u.quotesToHighLightData,y=u.updateQuotesToHighLight,v=u.citationLoad,b=u.clickableElementCategory,k=void 0===b?"":b,C=u.comingSoonData,w=u.isNonHighlightedBlur,S=i(!1),B=S[0],I=S[1],T=i(!0),j=T[0],W=T[1],L=!!x.textToHighLight&&!!x.content,P={header:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px"},headerLeft:{display:"flex",alignItems:"center",gap:"8px"},closeButton:{padding:"4px",borderRadius:"4px",cursor:"pointer",backgroundColor:"transparent"},flexCenter:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},coverContainer:{width:"100%",maxWidth:"300px",borderRadius:"12px",padding:"4px",background:"linear-gradient(135deg, #34D399, #3B82F6, #10B981)",position:"relative",overflow:"hidden",boxShadow:"0 10px 25px rgba(0,0,0,0.3)",marginBottom:"24px"},bookCoverStyle:{width:"100%",height:"auto",objectFit:"contain",borderRadius:"12px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)"},loadingStyle:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},rightPanel:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},clickableElementCategory:{fontSize:"20px",fontWeight:600},previewWrapper:{flex:1,width:"80%",margin:"0 auto",display:"flex",flexDirection:"column",overflow:"hidden",justifyContent:"center",alignItems:"center"},coverImagePreview:{display:"flex",justifyContent:"center",alignItems:"center",aspectRatio:"7 / 10",background:"",padding:0},toggleBlurContainer:{display:"flex",alignItems:"center",gap:"20px"},bookCoverPlaceholder:{width:"100%",height:"calc(100% - 8px)",background:"linear-gradient(to bottom, #22c55e, #14532d)",borderRadius:"4px",padding:"4px",color:"white",fontSize:"10px",display:"flex",justifyContent:"center",alignItems:"center"},bookCoverInner:{border:"1px solid white",padding:"4px",width:"calc(100% - 26px)",height:"calc(100% - 26px)",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",justifyContent:"space-around"},bookTitle:{fontWeight:800,fontSize:"1.5rem",textTransform:"uppercase",letterSpacing:"0.5px",lineHeight:1.2,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",padding:"0 8px"},bookAuthor:{fontSize:"1rem",fontWeight:500,opacity:.9,marginTop:"8px",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"}};return n((function(){W(!0),console.log(v,"citationLoad")}),[v]),t("div",e({style:e(e({},P.rightPanel),(null==m?void 0:m.rightPanel)||{})},{children:[t("div",e({style:P.header},{children:[t("div",e({style:P.headerLeft},{children:[L&&o("button",e({style:P.closeButton,onClick:function(){return y("","Book Preview")},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="#F3F4F6"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="transparent"}},{children:o(l,{})})),o("h2",e({style:P.clickableElementCategory},{children:k}))]})),t("div",e({style:P.toggleBlurContainer},{children:[L&&t("div",e({style:{display:"flex",alignItems:"center",gap:"2px"}},{children:[o(s,{checked:j,onChange:function(e){W(e.target.checked),console.log(e.target.checked,"event.target.checked")},color:"primary",size:"small"}),t("span",e({style:{fontSize:"0.75rem",display:"flex",alignItems:"center",gap:"4px"}},{children:["Blur",o(p,e({title:"Blur Text is enabled by default. Non-highlighted parts of the text will appear blurred to help you focus on the highlighted content. You can turn this off if you want to see all text clearly."},{children:o("span",e({style:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:"14px",height:"14px",borderRadius:"50%",backgroundColor:"#485468",color:"#fff",fontSize:"10px",fontWeight:"bold",cursor:"pointer",lineHeight:"14px",userSelect:"none"}},{children:"i"}))}))]}))]})),o("button",e({style:P.closeButton,onClick:function(){f(),y("","Book Preview")},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="#F3F4F6"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="transparent"}},{children:o(r,{})}))]}))]})),o("div",e({style:e(e({},P.previewWrapper),null==m?void 0:m.previewWrapper)},{children:L?o(a,{citationNumber:1,defaultState:!0,partialMatch:!0,citationTitle:"Sample Citation",title:"Sample Title",paragraphs:[null==x?void 0:x.content],textToHighlight:[null==x?void 0:x.textToHighLight],externalLinkComponent:"",bookCoverImage:h,customStyle:null==m?void 0:m.citationCustomStyle,isNonHighlightedBlur:w,toggleBlur:j}):v?t("div",e({style:P.loadingStyle},{children:[o("div",e({style:d.iconWrapper},{children:(null==C?void 0:C.icon)||c})),t("p",e({style:d.text},{children:["fetching ",k.toLowerCase(),"...."]}))]})):o("div",e({style:P.flexCenter},{children:o("div",e({style:e(e({},P.coverContainer),B||!h?e(e({},P.coverImagePreview),null==m?void 0:m.coverImagePreview):{})},{children:h&&!B?o("img",{onError:function(){return I(!0)},style:P.bookCoverStyle,src:h,alt:"Book Cover Image"}):o("div",e({style:P.bookCoverPlaceholder},{children:t("div",e({style:P.bookCoverInner},{children:[o("div",e({style:P.bookTitle},{children:(null==g?void 0:g.title)||"Unknown Title"})),o("div",e({style:P.bookAuthor},{children:(null==g?void 0:g.author)||"Unknown Author"}))]}))}))}))}))}))]}))};export{u as default};
1
+ import{__assign as e}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as i,useEffect as n}from"react";import r from"../../../_virtual/Close.js";import l from"../../../_virtual/ArrowBack.js";import a from"../../BookCitation/BookCitation.js";import{comingSoonStyles as d,defaultIcon as c}from"../Bookemon.js";import s from"../../../node_modules/@material-ui/core/esm/Switch/Switch.js";import p from"../../../node_modules/@material-ui/core/esm/Tooltip/Tooltip.js";var u=function(u){var g=u.bookOverView,h=u.bookCoverImage,f=u.onClose,m=u.customStyle,x=u.quotesToHighLightData,y=u.updateQuotesToHighLight,v=u.citationLoad,b=u.clickableElementCategory,k=void 0===b?"":b,C=u.comingSoonData,w=u.isNonHighlightedBlur,B=u.isBlurToggleVisible,S=void 0!==B&&B,I=i(!1),T=I[0],j=I[1],W=i(!0),L=W[0],P=W[1],H=!!x.textToHighLight&&!!x.content,F={header:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px"},headerLeft:{display:"flex",alignItems:"center",gap:"8px"},closeButton:{padding:"4px",borderRadius:"4px",cursor:"pointer",backgroundColor:"transparent"},flexCenter:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},coverContainer:{width:"100%",maxWidth:"300px",borderRadius:"12px",padding:"4px",background:"linear-gradient(135deg, #34D399, #3B82F6, #10B981)",position:"relative",overflow:"hidden",boxShadow:"0 10px 25px rgba(0,0,0,0.3)",marginBottom:"24px"},bookCoverStyle:{width:"100%",height:"auto",objectFit:"contain",borderRadius:"12px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)"},loadingStyle:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},rightPanel:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},clickableElementCategory:{fontSize:"20px",fontWeight:600},previewWrapper:{flex:1,width:"80%",margin:"0 auto",display:"flex",flexDirection:"column",overflow:"hidden",justifyContent:"center",alignItems:"center"},coverImagePreview:{display:"flex",justifyContent:"center",alignItems:"center",aspectRatio:"7 / 10",background:"",padding:0},toggleBlurContainer:{display:"flex",alignItems:"center",gap:"20px"},bookCoverPlaceholder:{width:"100%",height:"calc(100% - 8px)",background:"linear-gradient(to bottom, #22c55e, #14532d)",borderRadius:"4px",padding:"4px",color:"white",fontSize:"10px",display:"flex",justifyContent:"center",alignItems:"center"},bookCoverInner:{border:"1px solid white",padding:"4px",width:"calc(100% - 26px)",height:"calc(100% - 26px)",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",justifyContent:"space-around"},bookTitle:{fontWeight:800,fontSize:"1.5rem",textTransform:"uppercase",letterSpacing:"0.5px",lineHeight:1.2,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",padding:"0 8px"},bookAuthor:{fontSize:"1rem",fontWeight:500,opacity:.9,marginTop:"8px",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"}};return n((function(){P(!0),console.log(v,"citationLoad")}),[v]),t("div",e({style:e(e({},F.rightPanel),(null==m?void 0:m.rightPanel)||{})},{children:[t("div",e({style:F.header},{children:[t("div",e({style:F.headerLeft},{children:[H&&o("button",e({style:F.closeButton,onClick:function(){return y("","Book Preview")},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="#F3F4F6"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="transparent"}},{children:o(l,{})})),o("h2",e({style:F.clickableElementCategory},{children:k}))]})),t("div",e({style:F.toggleBlurContainer},{children:[H&&S&&t("div",e({style:{display:"flex",alignItems:"center",gap:"2px"}},{children:[o(s,{checked:L,onChange:function(e){P(e.target.checked),console.log(e.target.checked,"event.target.checked")},color:"primary",size:"small"}),t("span",e({style:{fontSize:"0.75rem",display:"flex",alignItems:"center",gap:"4px"}},{children:["Blur",o(p,e({title:"Blur Text is enabled by default. Non-highlighted parts of the text will appear blurred to help you focus on the highlighted content. You can turn this off if you want to see all text clearly."},{children:o("span",e({style:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:"14px",height:"14px",borderRadius:"50%",backgroundColor:"#485468",color:"#fff",fontSize:"10px",fontWeight:"bold",cursor:"pointer",lineHeight:"14px",userSelect:"none"}},{children:"i"}))}))]}))]})),o("button",e({style:F.closeButton,onClick:function(){f(),y("","Book Preview")},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="#F3F4F6"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="transparent"}},{children:o(r,{})}))]}))]})),o("div",e({style:e(e({},F.previewWrapper),null==m?void 0:m.previewWrapper)},{children:H?o(a,{citationNumber:1,defaultState:!0,partialMatch:!0,citationTitle:"Sample Citation",title:"Sample Title",paragraphs:[null==x?void 0:x.content],textToHighlight:[null==x?void 0:x.textToHighLight],externalLinkComponent:"",bookCoverImage:h,customStyle:null==m?void 0:m.citationCustomStyle,isNonHighlightedBlur:w,toggleBlur:L}):v?t("div",e({style:F.loadingStyle},{children:[o("div",e({style:d.iconWrapper},{children:(null==C?void 0:C.icon)||c})),t("p",e({style:d.text},{children:["fetching ",k.toLowerCase(),"...."]}))]})):o("div",e({style:F.flexCenter},{children:o("div",e({style:e(e({},F.coverContainer),T||!h?e(e({},F.coverImagePreview),null==m?void 0:m.coverImagePreview):{})},{children:h&&!T?o("img",{onError:function(){return j(!0)},style:F.bookCoverStyle,src:h,alt:"Book Cover Image"}):o("div",e({style:F.bookCoverPlaceholder},{children:t("div",e({style:F.bookCoverInner},{children:[o("div",e({style:F.bookTitle},{children:(null==g?void 0:g.title)||"Unknown Title"})),o("div",e({style:F.bookAuthor},{children:(null==g?void 0:g.author)||"Unknown Author"}))]}))}))}))}))}))]}))};export{u as default};
2
2
  //# sourceMappingURL=BookPreview.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as o,__generator as t}from"../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as r,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as l,useRef as a}from"react";import d from"../../node_modules/@material-ui/core/esm/Accordion/Accordion.js";import s from"../../node_modules/@material-ui/core/esm/AccordionSummary/AccordionSummary.js";import c from"../../_virtual/ExpandMore.js";import h from"../../_virtual/Close.js";import{PanelGroup as u,Panel as p,PanelResizeHandle as m}from"../../node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js";import g from"./BookDetailsCard/BookDetailsCard.js";import y from"./BookOverviewCard/BookOverviewCard.js";import f from"./BookElementsCard/BookElementsCard.js";import v from"./BookCopyrightsCard/BookCopyrightsCard.js";import x from"./BookPeopleAwardsCard/BookPeopleAwardsCard.js";import b from"./BookPreview/BookPreview.js";import k from"../../node_modules/@material-ui/core/esm/Dialog/Dialog.js";import C from"../../node_modules/@material-ui/core/esm/DialogContent/DialogContent.js";import w from"../../node_modules/@material-ui/core/esm/Typography/Typography.js";import B from"../../node_modules/@material-ui/core/esm/AccordionDetails/AccordionDetails.js";import j from"../../node_modules/@material-ui/core/esm/IconButton/IconButton.js";var S={dialogPaper:{maxWidth:"none",fontFamily:"Inter, sans-serif"},dialogContent:{padding:0,backgroundColor:"#FFFFFF",overflow:"hidden",height:"90vh",position:"relative"},container:{display:"flex",height:"100%",width:"100%",alignItems:"flex-start"},leftPanel:{height:"100%",padding:"24px",overflowY:"auto",backgroundColor:"#F3F4F6",borderRadius:"12px",boxSizing:"border-box"},rightPanel:{width:"40%",backgroundColor:"#FFFFFF",height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",overflow:"auto",flex:1,boxSizing:"border-box",overflowY:"auto"},accordion:{borderRadius:"12px",boxShadow:"none",marginBottom:"24px"},accordionSummary:{paddingLeft:"16px",paddingRight:"16px"},accordionDetails:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px"},heading:{fontWeight:"bold",color:"#000000",fontSize:"16px"},blurOverlay:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",backgroundColor:"rgba(255, 255, 255, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,borderRadius:"12px"},closeButton:{position:"absolute",top:"8px",right:"8px",color:"#111827"},resizeHandle:{width:"10px",backgroundColor:"#e5e7eb",cursor:"col-resize",display:"flex",alignItems:"center",justifyContent:"center"},iconContainer:{display:"flex",flexDirection:"column",gap:"4px"},dot:{width:"4px",height:"4px",backgroundColor:"#6b7280",borderRadius:"50%"},resizeHandleBar:{width:"2px",height:"24px",backgroundColor:"#666",borderRadius:"2px"}},D={wrapper:{alignItems:"center",justifyContent:"center",textAlign:"center"},inner:{width:"100%"},iconWrapper:{width:"80px",height:"80px",background:"linear-gradient(to right, #3B82F6, #9333EA)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px auto"},icon:{width:"40px",height:"40px",color:"#FFFFFF"},heading:{fontSize:"36px",fontWeight:"bold",color:"#9333EA",marginBottom:"16px"},text:{fontSize:"18px",color:"#4B5563",lineHeight:1.6},errorState:{color:"#CE3928",padding:"18px 0px",display:"flex",justifyContent:"center",width:"100%"}},F=r("svg",e({style:D.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},{children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})),z=function(o){var t=o.header,n=o.subheader,l=o.icon;return r("div",e({style:D.wrapper},{children:i("div",e({style:D.inner},{children:[r("div",e({style:{marginBottom:"32px"}},{children:r("div",e({style:D.iconWrapper},{children:l||F}))})),i("div",{children:[r("h1",e({style:D.heading},{children:t})),r("p",e({style:D.text},{children:n}))]})]}))}))},I=function(D){var I=D.open,P=D.onClose,A=D.isNonHighlightedBlur,E=D.getHighlightContent,L=D.handleFetchManuscriptElements,H=D.data,_=D.showComingSoon,O=void 0!==_&&_,W=D.comingSoonData,M=void 0===W?{header:"Bookemon Coming Soon!!",subheader:"We're working on something amazing. Stay tuned for updates!",icon:F}:W,N=D.customStyle,R=void 0===N?{}:N,T=l({textToHighLight:"",content:""}),V=T[0],Q=T[1],Y=l(1),q=Y[0],G=Y[1],J=l(!1),K=J[0],U=J[1],X=l("Book Preview"),Z=X[0],$=X[1],ee=l(70),oe=ee[0],te=ee[1],re=a(null),ie=function(e,r,i,n){return void 0===n&&(n=0),o(void 0,void 0,void 0,(function(){var o,l,a,d,s,c,h,u,p,m,g,y,f;return t(this,(function(t){switch(t.label){case 0:Q({textToHighLight:"",content:""}),U(!0),$(r),t.label=1;case 1:return t.trys.push([1,6,7,8]),i&&0!==i.length?[4,E([i[n]])]:(console.warn("No chunk IDs provided."),U(!1),te(70),re.current&&re.current.resize(70),[2]);case 2:if(o=t.sent(),l=(null==o?void 0:o.data)||o||[],!Array.isArray(l)||0===l.length)return console.warn("No highlight content found."),U(!1),[2];for(d=(a=function(e){return e?e.replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"').replace(/[\u2013\u2014]/g,"-").replace(/[.,!?;:'"(){}\[\]—–…\/\\@#&*_|\^~%=+<>`]/g,"").replace(/\s+/g," ").trim().toLowerCase():""})(e),s=d.split(" ").filter(Boolean),c=null,h=s.length;h>0;h--){for(u=s.slice(0,h).join(" "),p=0,m=l;p<m.length;p++)if(g=m[p],a((null==g?void 0:g.normalizedContent)||(null==g?void 0:g.htmlContent)).includes(u)){c=g;break}if(c)break}return y=l.map((function(e){return e.htmlContent})).join("\n"),c?(Q({textToHighLight:c.htmlContent,content:y}),$(r),te(50),re.current&&re.current.resize(50),[3,5]):[3,3];case 3:return console.warn("No matching normalized content found for highlight text."),[4,ie(e,r,i,n+1)];case 4:t.sent(),t.label=5;case 5:return[3,8];case 6:return f=t.sent(),console.error("Error fetching highlight content:",f),[3,8];case 7:return U(!1),[7];case 8:return[2]}}))}))},ne=H.bookAwards,le=H.bookCopyRight,ae=H.bookDetails,de=H.bookElements,se=H.bookOverView,ce=H.bookCoverImage,he=null==ae?void 0:ae.isbn;return r(k,e({open:I,fullWidth:!0,PaperProps:{style:e(e({},null==S?void 0:S.dialogPaper),null==R?void 0:R.dialogDimension)}},{children:i(C,e({style:S.dialogContent},{children:[!O&&r("div",e({style:S.container},{children:i(u,e({direction:"horizontal"},{children:[r(p,e({order:1,ref:re,defaultSize:oe||70},{children:i("div",e({style:e(e({},null==S?void 0:S.leftPanel),null==R?void 0:R.leftPanel)},{children:[r("div",e({style:{marginBottom:"24px"}},{children:i(d,e({defaultExpanded:!0,elevation:0,style:S.accordion},{children:[r(s,e({expandIcon:r(c,{}),style:S.accordionSummary},{children:r(w,e({style:S.heading},{children:"Book Overview"}))})),r(B,e({style:S.accordionDetails},{children:se&&Object.keys(se).length>0?r(y,{data:se}):r("div",e({style:S.errorState},{children:"No overview data available."}))}))]}))})),r("div",e({style:{marginBottom:"24px"}},{children:i(d,e({elevation:0,style:S.accordion},{children:[r(s,e({expandIcon:r(c,{}),style:S.accordionSummary},{children:r(w,e({style:S.heading},{children:"Book Manuscript Elements"}))})),r(B,e({style:S.accordionDetails},{children:r(f,{data:de,handleFetchManuscriptElements:L,BookIsbn:he,updateQuotesToHighLight:ie})}))]}))})),r("div",e({style:{marginBottom:"24px"}},{children:i(d,e({elevation:0,style:S.accordion},{children:[r(s,e({expandIcon:r(c,{}),style:S.accordionSummary},{children:r(w,e({style:S.heading},{children:"Book Metadata Details"}))})),r(B,e({style:S.accordionDetails},{children:ae&&Object.keys(ae).length>0?r(g,{data:ae}):r("div",e({style:S.errorState},{children:"No Book Metadata data available."}))}))]}))})),r("div",e({style:{marginBottom:"24px"}},{children:i(d,e({elevation:0,style:S.accordion},{children:[r(s,e({expandIcon:r(c,{}),style:S.accordionSummary},{children:r(w,e({style:S.heading},{children:"Copyrights & Marketing"}))})),r(B,e({style:S.accordionDetails},{children:le&&Object.keys(le).length>0?r(v,{data:le}):r("div",e({style:S.errorState},{children:"No Copyrights & Marketing data available."}))}))]}))})),r("div",{children:i(d,e({elevation:0,style:S.accordion},{children:[r(s,e({expandIcon:r(c,{}),style:S.accordionSummary},{children:r(w,e({style:S.heading},{children:"People & Awards"}))})),r(B,e({style:S.accordionDetails},{children:ne&&Object.keys(ne).length>0?r(x,{data:ne}):r("div",e({style:S.errorState},{children:"No People & Awards data available."}))}))]}))})]}))})),r(m,{style:{width:"3px",background:"#D1D5DC",cursor:"col-resize"}}),r(p,e({order:2,minSize:30,maxSize:50,style:{overflow:"visible",position:"relative",transition:"all 300ms ease-in-out",WebkitTransition:"all 300ms ease-in-out"}},{children:r(b,{bookOverView:se,bookCoverImage:ce,onClose:P,clickableElementCategory:Z,quotesToHighLightData:V,updateQuotesToHighLight:ie,citationLoad:K,previewPage:q,setPreviewPage:G,customStyle:R,comingSoonData:M,isNonHighlightedBlur:A})}))]}))})),O?i("div",e({style:S.blurOverlay},{children:[r(j,e({style:S.closeButton,onClick:P},{children:r(h,{})})),r(z,{header:M.header,subheader:M.subheader,icon:M.icon})]})):r(n,{})]}))}))};export{D as comingSoonStyles,I as default,F as defaultIcon};
1
+ import{__assign as e,__awaiter as o,__generator as t}from"../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as i,jsxs as r,Fragment as n}from"react/jsx-runtime";import{useState as l,useRef as a}from"react";import d from"../../node_modules/@material-ui/core/esm/Accordion/Accordion.js";import s from"../../node_modules/@material-ui/core/esm/AccordionSummary/AccordionSummary.js";import c from"../../_virtual/ExpandMore.js";import h from"../../_virtual/Close.js";import{PanelGroup as u,Panel as p,PanelResizeHandle as g}from"../../node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js";import m from"./BookDetailsCard/BookDetailsCard.js";import y from"./BookOverviewCard/BookOverviewCard.js";import v from"./BookElementsCard/BookElementsCard.js";import f from"./BookCopyrightsCard/BookCopyrightsCard.js";import x from"./BookPeopleAwardsCard/BookPeopleAwardsCard.js";import b from"./BookPreview/BookPreview.js";import k from"../../node_modules/@material-ui/core/esm/Dialog/Dialog.js";import C from"../../node_modules/@material-ui/core/esm/DialogContent/DialogContent.js";import w from"../../node_modules/@material-ui/core/esm/Typography/Typography.js";import B from"../../node_modules/@material-ui/core/esm/AccordionDetails/AccordionDetails.js";import j from"../../node_modules/@material-ui/core/esm/IconButton/IconButton.js";var S={dialogPaper:{maxWidth:"none",fontFamily:"Inter, sans-serif"},dialogContent:{padding:0,backgroundColor:"#FFFFFF",overflow:"hidden",height:"90vh",position:"relative"},container:{display:"flex",height:"100%",width:"100%",alignItems:"flex-start"},leftPanel:{height:"100%",padding:"24px",overflowY:"auto",backgroundColor:"#F3F4F6",borderRadius:"12px",boxSizing:"border-box"},rightPanel:{width:"40%",backgroundColor:"#FFFFFF",height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",overflow:"auto",flex:1,boxSizing:"border-box",overflowY:"auto"},accordion:{borderRadius:"12px",boxShadow:"none",marginBottom:"24px"},accordionSummary:{paddingLeft:"16px",paddingRight:"16px"},accordionDetails:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px"},heading:{fontWeight:"bold",color:"#000000",fontSize:"16px"},blurOverlay:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",backgroundColor:"rgba(255, 255, 255, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,borderRadius:"12px"},closeButton:{position:"absolute",top:"8px",right:"8px",color:"#111827"},resizeHandle:{width:"10px",backgroundColor:"#e5e7eb",cursor:"col-resize",display:"flex",alignItems:"center",justifyContent:"center"},iconContainer:{display:"flex",flexDirection:"column",gap:"4px"},dot:{width:"4px",height:"4px",backgroundColor:"#6b7280",borderRadius:"50%"},resizeHandleBar:{width:"2px",height:"24px",backgroundColor:"#666",borderRadius:"2px"}},D={wrapper:{alignItems:"center",justifyContent:"center",textAlign:"center"},inner:{width:"100%"},iconWrapper:{width:"80px",height:"80px",background:"linear-gradient(to right, #3B82F6, #9333EA)",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px auto"},icon:{width:"40px",height:"40px",color:"#FFFFFF"},heading:{fontSize:"36px",fontWeight:"bold",color:"#9333EA",marginBottom:"16px"},text:{fontSize:"18px",color:"#4B5563",lineHeight:1.6},errorState:{color:"#CE3928",padding:"18px 0px",display:"flex",justifyContent:"center",width:"100%"}},F=i("svg",e({style:D.icon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},{children:i("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})),z=function(o){var t=o.header,n=o.subheader,l=o.icon;return i("div",e({style:D.wrapper},{children:r("div",e({style:D.inner},{children:[i("div",e({style:{marginBottom:"32px"}},{children:i("div",e({style:D.iconWrapper},{children:l||F}))})),r("div",{children:[i("h1",e({style:D.heading},{children:t})),i("p",e({style:D.text},{children:n}))]})]}))}))},I=function(D){var I=D.open,P=D.onClose,A=D.isNonHighlightedBlur,E=D.getHighlightContent,L=D.handleFetchManuscriptElements,H=D.data,_=D.showComingSoon,O=void 0!==_&&_,T=D.comingSoonData,W=void 0===T?{header:"Bookemon Coming Soon!!",subheader:"We're working on something amazing. Stay tuned for updates!",icon:F}:T,M=D.customStyle,N=void 0===M?{}:M,R=D.isBlurToggleVisible,V=void 0!==R&&R,Q=l({textToHighLight:"",content:""}),Y=Q[0],q=Q[1],G=l(1),J=G[0],K=G[1],U=l(!1),X=U[0],Z=U[1],$=l("Book Preview"),ee=$[0],oe=$[1],te=l(70),ie=te[0],re=te[1],ne=a(null),le=function(e,i,r,n){return void 0===n&&(n=0),o(void 0,void 0,void 0,(function(){var o,l,a,d,s,c,h,u,p,g,m,y,v;return t(this,(function(t){switch(t.label){case 0:q({textToHighLight:"",content:""}),Z(!0),oe(i),t.label=1;case 1:return t.trys.push([1,6,7,8]),r&&0!==r.length?[4,E([r[n]])]:(console.warn("No chunk IDs provided."),Z(!1),re(70),ne.current&&ne.current.resize(70),[2]);case 2:if(o=t.sent(),l=(null==o?void 0:o.data)||o||[],!Array.isArray(l)||0===l.length)return console.warn("No highlight content found."),Z(!1),[2];for(d=(a=function(e){return e?e.replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"').replace(/[\u2013\u2014]/g,"-").replace(/[.,!?;:'"(){}\[\]—–…\/\\@#&*_|\^~%=+<>`]/g,"").replace(/\s+/g," ").trim().toLowerCase():""})(e),s=d.split(" ").filter(Boolean),c=null,h=s.length;h>0;h--){for(u=s.slice(0,h).join(" "),p=0,g=l;p<g.length;p++)if(m=g[p],a((null==m?void 0:m.normalizedContent)||(null==m?void 0:m.htmlContent)).includes(u)){c=m;break}if(c)break}return y=l.map((function(e){return e.htmlContent})).join("\n"),c?(q({textToHighLight:c.htmlContent,content:y}),oe(i),re(50),ne.current&&ne.current.resize(50),[3,5]):[3,3];case 3:return console.warn("No matching normalized content found for highlight text."),[4,le(e,i,r,n+1)];case 4:t.sent(),t.label=5;case 5:return[3,8];case 6:return v=t.sent(),console.error("Error fetching highlight content:",v),[3,8];case 7:return Z(!1),[7];case 8:return[2]}}))}))},ae=H.bookAwards,de=H.bookCopyRight,se=H.bookDetails,ce=H.bookElements,he=H.bookOverView,ue=H.bookCoverImage,pe=null==se?void 0:se.isbn;return i(k,e({open:I,fullWidth:!0,PaperProps:{style:e(e({},null==S?void 0:S.dialogPaper),null==N?void 0:N.dialogDimension)}},{children:r(C,e({style:S.dialogContent},{children:[!O&&i("div",e({style:S.container},{children:r(u,e({direction:"horizontal"},{children:[i(p,e({order:1,ref:ne,defaultSize:ie||70},{children:r("div",e({style:e(e({},null==S?void 0:S.leftPanel),null==N?void 0:N.leftPanel)},{children:[i("div",e({style:{marginBottom:"24px"}},{children:r(d,e({defaultExpanded:!0,elevation:0,style:S.accordion},{children:[i(s,e({expandIcon:i(c,{}),style:S.accordionSummary},{children:i(w,e({style:S.heading},{children:"Book Overview"}))})),i(B,e({style:S.accordionDetails},{children:he&&Object.keys(he).length>0?i(y,{data:he}):i("div",e({style:S.errorState},{children:"No overview data available."}))}))]}))})),i("div",e({style:{marginBottom:"24px"}},{children:r(d,e({elevation:0,style:S.accordion},{children:[i(s,e({expandIcon:i(c,{}),style:S.accordionSummary},{children:i(w,e({style:S.heading},{children:"Book Manuscript Elements"}))})),i(B,e({style:S.accordionDetails},{children:i(v,{data:ce,handleFetchManuscriptElements:L,BookIsbn:pe,updateQuotesToHighLight:le})}))]}))})),i("div",e({style:{marginBottom:"24px"}},{children:r(d,e({elevation:0,style:S.accordion},{children:[i(s,e({expandIcon:i(c,{}),style:S.accordionSummary},{children:i(w,e({style:S.heading},{children:"Book Metadata Details"}))})),i(B,e({style:S.accordionDetails},{children:se&&Object.keys(se).length>0?i(m,{data:se}):i("div",e({style:S.errorState},{children:"No Book Metadata data available."}))}))]}))})),i("div",e({style:{marginBottom:"24px"}},{children:r(d,e({elevation:0,style:S.accordion},{children:[i(s,e({expandIcon:i(c,{}),style:S.accordionSummary},{children:i(w,e({style:S.heading},{children:"Copyrights & Marketing"}))})),i(B,e({style:S.accordionDetails},{children:de&&Object.keys(de).length>0?i(f,{data:de}):i("div",e({style:S.errorState},{children:"No Copyrights & Marketing data available."}))}))]}))})),i("div",{children:r(d,e({elevation:0,style:S.accordion},{children:[i(s,e({expandIcon:i(c,{}),style:S.accordionSummary},{children:i(w,e({style:S.heading},{children:"People & Awards"}))})),i(B,e({style:S.accordionDetails},{children:ae&&Object.keys(ae).length>0?i(x,{data:ae}):i("div",e({style:S.errorState},{children:"No People & Awards data available."}))}))]}))})]}))})),i(g,{style:{width:"3px",background:"#D1D5DC",cursor:"col-resize"}}),i(p,e({order:2,minSize:30,maxSize:50,style:{overflow:"visible",position:"relative",transition:"all 300ms ease-in-out",WebkitTransition:"all 300ms ease-in-out"}},{children:i(b,{bookOverView:he,bookCoverImage:ue,onClose:P,clickableElementCategory:ee,quotesToHighLightData:Y,updateQuotesToHighLight:le,citationLoad:X,previewPage:J,setPreviewPage:K,customStyle:N,comingSoonData:W,isNonHighlightedBlur:A,isBlurToggleVisible:V})}))]}))})),O?r("div",e({style:S.blurOverlay},{children:[i(j,e({style:S.closeButton,onClick:P},{children:i(h,{})})),i(z,{header:W.header,subheader:W.subheader,icon:W.icon})]})):i(n,{})]}))}))};export{D as comingSoonStyles,I as default,F as defaultIcon};
2
2
  //# sourceMappingURL=Bookemon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as t,__generator as n}from"../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as i,Fragment as o,jsx as a}from"react/jsx-runtime";import l,{useRef as s,useState as r,useEffect as d}from"react";import c from"./CodeCitation.module.css.js";import u from"./_components/CodeEditor.js";import{getLanguageFromFileName as h}from"../../utils/codeCitations.utils.js";import g from"./_components/ThemeToggle.js";import m from"./_components/CodeCitationPopup.js";import p from"./_components/HighlightedCodeDetails.js";import f from"../../node_modules/axios/lib/axios.js";import v from"./_components/Spinner.js";import{DEFAULT_DIAGNOSTIC_STYLES_BY_SEVERITY as x}from"../../constants/diagnosticStylesBySeverity.js";var C=function(C){var y=C.baseUrlForCodeRetrieval,S=C.assistantName,I=C.organizationName,b=C.userId,_=C.taskId,k=C.repoUrl,P=C.inLineCitation,w=C.citationTitle,D=C.filename,T=C.filepath,j=C.citationContainerTitle,F=C.showThemeToggle,H=C.customCode,L=C.isDarkModeEnabled,E=C.chevronUpComponent,B=C.chevronDownComponent,W=C.isHighlightingEnabled,N=C.FileDetailsComponent,z=C.additionalCallbackForPillButton,M=C.CustomCodeRenderComponent,V=C.fileSummarySectionTitle,J=C.showFullscreenIcon,R=C.showFileSummaryIButton,U=C.editorHeight,A=C.editorWidth,O=C.styles,q=void 0===O?{}:O,G=C.diagnostics,K=C.diagnosticStylesBySeverity,Q=C.datasource,X=void 0===Q?"codebase":Q,Y=s(!1),Z=h(D),$=r(!1),ee=$[0],te=$[1],ne=r(L),ie=ne[0],oe=ne[1],ae=r(!1),le=ae[0],se=ae[1],re=r(!1),de=re[0],ce=re[1],ue=r(!1),he=ue[0],ge=ue[1],me=r(!1),pe=me[0],fe=me[1],ve=r(null),xe=ve[0],Ce=ve[1],ye=r(""),Se=ye[0],Ie=ye[1],be=r(""),_e=be[0],ke=be[1],Pe=r({startIndex:-1,endIndex:-1}),we=Pe[0],De=Pe[1],Te=r({}),je=Te[0],Fe=Te[1],He=r(!1),Le=He[0],Ee=He[1],Be=r(!1),We=Be[0],Ne=Be[1],ze=r({startIndex:-1,endIndex:-1}),Me=ze[0],Ve=ze[1],Je=r({startIndex:-1,endIndex:-1}),Re=Je[0],Ue=Je[1],Ae=l.useMemo((function(){return e(e({},x),K)}),[K]);d((function(){if("undefined"!=typeof window&&!Y.current){Y.current=!0;var i=new URL(T,"http://example.com"),o=i.searchParams,a=o.has("startLine")?Number(o.get("startLine")):-1,l=o.has("endLine")?Number(o.get("endLine")):-1;Ue({startIndex:a,endIndex:l}),De({startIndex:a,endIndex:l}),Ve({startIndex:a,endIndex:l}),i.searchParams.delete("startLine"),i.searchParams.delete("endLine"),i.searchParams.delete("validation");var s=i.pathname+i.search,r=null==s?void 0:s.replace(/^\//,"");ke(r),console.log("Params going to API:",{file_path:r,assistant_name:S,organization_name:I,user_id:b,task_id:_,chunks_search:!1,technical_details_only:!0,repo_url:k});H||Le||t(void 0,void 0,void 0,(function(){var t,i,o,a,l,s;return n(this,(function(n){switch(n.label){case 0:Ne(!1),Ee(!0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,f.get("".concat(y,"/analyzer/get_file_details"),{params:e({file_path:String(r),assistant_name:String(S),organization_name:String(I),user_id:String(b),task_id:String(_),repo_url:String(k),chunks_search:!1,technical_details_only:!0},"codebase"!==X&&{datasource:X})})];case 2:return t=n.sent(),i=(null==t?void 0:t.data[0])||(null==t?void 0:t.data),!xe&&i&&(Ce(i),Object.keys(null==t?void 0:t.data)&&(o=(null===(s=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l[0])||void 0===s?void 0:s.content)||(null==t?void 0:t.data.content),Ie(o))),Ee(!1),[2,t.data];case 3:return a=n.sent(),Ne(!0),console.error("Error in retrieving file details: ",a),[3,4];case 4:return Ee(!1),[2]}}))}))}}),[]);return i(o,{children:[i("span",e({onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),z&&z(),te((function(e){return!e})),se((function(e){return!e}))}(e)},className:c.pillButton,style:q.pillButton},{children:[a("span",e({style:q.citationTitle},{children:w})),P&&(ee?E:B)]})),(!P||de)&&a(m,{open:le,onClose:function(){Ue({startIndex:null==Me?void 0:Me.startIndex,endIndex:null==Me?void 0:Me.endIndex}),ce(!1),se(!1),De({startIndex:-1,endIndex:-1}),Fe({})},title:w,customStyles:{popupContainer:{width:"100vw",height:"100vh",borderRadius:"0.75rem",fontFamily:"Plus Jakarta Sans, sans-serif"},popupTitleContainer:{color:"#d63384",fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"700"},topLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"},bottomLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"}},editorChildren:a(u,{startIndex:null==Re?void 0:Re.startIndex,endIndex:null==Re?void 0:Re.endIndex,language:Z,editorHeight:U,editorWidth:A,code:H||Se,isHighlightingEnabled:W,isDarkModeEnabled:ie,highlightCodeStatsLine:we,setHighlightCodeStatsLine:De,highlightCodeStatsVariable:je,setHighlightCodeStatsVariable:Fe,isExpanded:ee,highlightIndexes:Re,diagnostics:G,diagnosticStylesBySeverity:Ae}),fileDetails:xe,setHighlightIndexes:Ue,highlightCodeStatsLine:we,setHighlightCodeStatsLine:De,highlightCodeStatsVariable:je,setHighlightCodeStatsVariable:Fe,filepath:_e,datasource:X}),P&&ee&&a("div",e({className:c.citationWrapper,style:q.citationWrapper},{children:i("div",e({className:c.citationContent,style:q.citationContent},{children:[!he&&j?i("div",e({className:c.citationContainerTitle,style:q.citationContainerTitle},{children:[a("span",{children:j}),F?a(g,{darkMode:ie,onToggle:function(e){return function(e){e.stopPropagation(),e.preventDefault(),oe((function(e){return!e}))}(e)},toggleFullscreen:function(e){e.stopPropagation(),e.preventDefault(),se(!0),ce(!0)},handleOpenFileDetailSection:function(e){e.stopPropagation(),e.preventDefault(),fe(!0)},showFullscreenIcon:J,showFileSummaryIButton:R}):a(o,{})]})):a(o,{}),i("div",e({style:{zIndex:-1e3,color:"#000",overflow:"hidden",display:"flex",flexDirection:"column",height:U,width:A,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[!he&&!pe&&M,a(Le?v:o,{}),We?a("div",e({style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#242424"}},{children:"Something went wrong"})):a(o,{}),!he&&!pe&&!M&&!Le&&!We&&a(u,{startIndex:null==Re?void 0:Re.startIndex,endIndex:null==Re?void 0:Re.endIndex,language:Z,editorHeight:U,editorWidth:A,code:null!=H?H:Se,isHighlightingEnabled:W,isDarkModeEnabled:ie,openHighlightedCodeDetails:function(){ge(!0)},highlightCodeStatsVariable:je,setHighlightCodeStatsVariable:Fe,isExpanded:ee,highlightIndexes:Re,diagnostics:G,diagnosticStylesBySeverity:Ae}),pe&&a(p,{FileDetailsComponent:N,fileSummarySectionTitle:V,isDarkMode:ie,editorHeight:U,editorWidth:A,code:null==xe?void 0:xe.content.split("\n").slice((null==Re?void 0:Re.startIndex)-1,null==Re?void 0:Re.endIndex).join("\n"),language:Z,onClose:function(e){e.stopPropagation(),e.preventDefault(),fe(!1)},summary:null==xe?void 0:xe.summary,filepath:_e,citationTitle:w})]}))]}))}))]})};export{C as default};
1
+ import{__assign as e,__awaiter as t,__generator as n}from"../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as i,Fragment as o,jsx as a}from"react/jsx-runtime";import l,{useRef as r,useState as s,useEffect as d}from"react";import c from"./CodeCitation.module.css.js";import u from"./_components/CodeEditor.js";import{getLanguageFromFileName as h}from"../../utils/codeCitations.utils.js";import g from"./_components/ThemeToggle.js";import m from"./_components/CodeCitationPopup.js";import p from"./_components/HighlightedCodeDetails.js";import f from"../../node_modules/axios/lib/axios.js";import v from"./_components/Spinner.js";import{DEFAULT_DIAGNOSTIC_STYLES_BY_SEVERITY as x}from"../../constants/diagnosticStylesBySeverity.js";var C=function(C){var y=C.baseUrlForCodeRetrieval,S=C.assistantName,I=C.organizationName,b=C.userId,_=C.taskId,k=C.repoUrl,D=C.inLineCitation,P=C.citationTitle,w=C.filename,F=C.filepath,T=C.citationContainerTitle,j=C.showThemeToggle,H=C.customCode,L=C.isDarkModeEnabled,E=C.chevronUpComponent,B=C.chevronDownComponent,W=C.isHighlightingEnabled,N=C.FileDetailsComponent,z=C.additionalCallbackForPillButton,M=C.CustomCodeRenderComponent,V=C.fileSummarySectionTitle,J=C.showFullscreenIcon,R=C.showFileSummaryIButton,U=C.editorHeight,A=C.editorWidth,O=C.styles,q=void 0===O?{}:O,G=C.diagnostics,K=C.diagnosticStylesBySeverity,Q=C.datasource,X=void 0===Q?"codebase":Q,Y=C.externalFilesData,Z=r(!1),$=h(w),ee=s(!1),te=ee[0],ne=ee[1],ie=s(L),oe=ie[0],ae=ie[1],le=s(!1),re=le[0],se=le[1],de=s(!1),ce=de[0],ue=de[1],he=s(!1),ge=he[0],me=he[1],pe=s(!1),fe=pe[0],ve=pe[1],xe=s(null),Ce=xe[0],ye=xe[1],Se=s(""),Ie=Se[0],be=Se[1],_e=s(""),ke=_e[0],De=_e[1],Pe=s({startIndex:-1,endIndex:-1}),we=Pe[0],Fe=Pe[1],Te=s({}),je=Te[0],He=Te[1],Le=s(!1),Ee=Le[0],Be=Le[1],We=s(!1),Ne=We[0],ze=We[1],Me=s({startIndex:-1,endIndex:-1}),Ve=Me[0],Je=Me[1],Re=s({startIndex:-1,endIndex:-1}),Ue=Re[0],Ae=Re[1],Oe=l.useMemo((function(){return e(e({},x),K)}),[K]);d((function(){Y&&H&&(ye(Y),Z.current=!0)}),[Y,H]),d((function(){if("undefined"!=typeof window&&!Z.current){Z.current=!0;var i=new URL(F,"http://example.com"),o=i.searchParams,a=o.has("startLine")?Number(o.get("startLine")):-1,l=o.has("endLine")?Number(o.get("endLine")):-1;Ae({startIndex:a,endIndex:l}),Fe({startIndex:a,endIndex:l}),Je({startIndex:a,endIndex:l}),i.searchParams.delete("startLine"),i.searchParams.delete("endLine"),i.searchParams.delete("validation");var r=i.pathname+i.search,s=null==r?void 0:r.replace(/^\//,"");De(s),console.log("Params going to API:",{file_path:s,assistant_name:S,organization_name:I,user_id:b,task_id:_,chunks_search:!1,technical_details_only:!0,repo_url:k});H||Ee||t(void 0,void 0,void 0,(function(){var t,i,o,a,l,r;return n(this,(function(n){switch(n.label){case 0:ze(!1),Be(!0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,f.get("".concat(y,"/analyzer/get_file_details"),{params:e({file_path:String(s),assistant_name:String(S),organization_name:String(I),user_id:String(b),task_id:String(_),repo_url:String(k),chunks_search:!1,technical_details_only:!0},"codebase"!==X&&{datasource:X})})];case 2:return t=n.sent(),i=(null==t?void 0:t.data[0])||(null==t?void 0:t.data),!Ce&&i&&(ye(i),Object.keys(null==t?void 0:t.data)&&(o=(null===(r=null===(l=null==t?void 0:t.data)||void 0===l?void 0:l[0])||void 0===r?void 0:r.content)||(null==t?void 0:t.data.content),be(o))),Be(!1),[2,t.data];case 3:return a=n.sent(),ze(!0),console.error("Error in retrieving file details: ",a),[3,4];case 4:return Be(!1),[2]}}))}))}}),[]);return i(o,{children:[i("span",e({onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),z&&z(),ne((function(e){return!e})),se((function(e){return!e}))}(e)},className:c.pillButton,style:q.pillButton},{children:[a("span",e({style:q.citationTitle},{children:P})),D&&(te?E:B)]})),(!D||ce)&&a(m,{open:re,onClose:function(){Ae({startIndex:null==Ve?void 0:Ve.startIndex,endIndex:null==Ve?void 0:Ve.endIndex}),ue(!1),se(!1),Fe({startIndex:-1,endIndex:-1}),He({})},title:P,customStyles:{popupContainer:{width:"100vw",height:"100vh",borderRadius:"0.75rem",fontFamily:"Plus Jakarta Sans, sans-serif"},popupTitleContainer:{color:"#d63384",fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"700"},topLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"},bottomLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"}},editorChildren:a(u,{startIndex:null==Ue?void 0:Ue.startIndex,endIndex:null==Ue?void 0:Ue.endIndex,language:$,editorHeight:U,editorWidth:A,code:H||Ie,isHighlightingEnabled:W,isDarkModeEnabled:oe,highlightCodeStatsLine:we,setHighlightCodeStatsLine:Fe,highlightCodeStatsVariable:je,setHighlightCodeStatsVariable:He,isExpanded:te,highlightIndexes:Ue,diagnostics:G,diagnosticStylesBySeverity:Oe}),fileDetails:Ce,setHighlightIndexes:Ae,highlightCodeStatsLine:we,setHighlightCodeStatsLine:Fe,highlightCodeStatsVariable:je,setHighlightCodeStatsVariable:He,filepath:ke,datasource:X}),D&&te&&a("div",e({className:c.citationWrapper,style:q.citationWrapper},{children:i("div",e({className:c.citationContent,style:q.citationContent},{children:[!ge&&T?i("div",e({className:c.citationContainerTitle,style:q.citationContainerTitle},{children:[a("span",{children:T}),j?a(g,{darkMode:oe,onToggle:function(e){return function(e){e.stopPropagation(),e.preventDefault(),ae((function(e){return!e}))}(e)},toggleFullscreen:function(e){e.stopPropagation(),e.preventDefault(),se(!0),ue(!0)},handleOpenFileDetailSection:function(e){e.stopPropagation(),e.preventDefault(),ve(!0)},showFullscreenIcon:J,showFileSummaryIButton:R}):a(o,{})]})):a(o,{}),i("div",e({style:{zIndex:-1e3,color:"#000",overflow:"hidden",display:"flex",flexDirection:"column",height:U,width:A,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[!ge&&!fe&&M,a(Ee?v:o,{}),Ne?a("div",e({style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#242424"}},{children:"Something went wrong"})):a(o,{}),!ge&&!fe&&!M&&!Ee&&!Ne&&a(u,{startIndex:null==Ue?void 0:Ue.startIndex,endIndex:null==Ue?void 0:Ue.endIndex,language:$,editorHeight:U,editorWidth:A,code:null!=H?H:Ie,isHighlightingEnabled:W,isDarkModeEnabled:oe,openHighlightedCodeDetails:function(){me(!0)},highlightCodeStatsVariable:je,setHighlightCodeStatsVariable:He,isExpanded:te,highlightIndexes:Ue,diagnostics:G,diagnosticStylesBySeverity:Oe}),fe&&a(p,{FileDetailsComponent:N,fileSummarySectionTitle:V,isDarkMode:oe,editorHeight:U,editorWidth:A,code:null==Ce?void 0:Ce.content.split("\n").slice((null==Ue?void 0:Ue.startIndex)-1,null==Ue?void 0:Ue.endIndex).join("\n"),language:$,onClose:function(e){e.stopPropagation(),e.preventDefault(),ve(!1)},summary:null==Ce?void 0:Ce.summary,filepath:ke,citationTitle:P})]}))]}))}))]})};export{C as default};
2
2
  //# sourceMappingURL=CodeCitation.js.map