@viswa-test/test-citation 0.0.384 → 0.0.385

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 (501) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +2 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/index.js +2 -0
  4. package/dist/_virtual/index.js.map +1 -0
  5. package/dist/_virtual/index2.js +2 -0
  6. package/dist/_virtual/index2.js.map +1 -0
  7. package/dist/_virtual/index3.js +2 -0
  8. package/dist/_virtual/index3.js.map +1 -0
  9. package/dist/_virtual/index4.js +2 -0
  10. package/dist/_virtual/index4.js.map +1 -0
  11. package/dist/_virtual/index5.js +2 -0
  12. package/dist/_virtual/index5.js.map +1 -0
  13. package/dist/_virtual/react-is.development.js +2 -0
  14. package/dist/_virtual/react-is.development.js.map +1 -0
  15. package/dist/_virtual/react-is.development2.js +2 -0
  16. package/dist/_virtual/react-is.development2.js.map +1 -0
  17. package/dist/_virtual/react-is.production.js +2 -0
  18. package/dist/_virtual/react-is.production.js.map +1 -0
  19. package/dist/_virtual/react-is.production.min.js +2 -0
  20. package/dist/_virtual/react-is.production.min.js.map +1 -0
  21. package/dist/assests/svg/chevronDownArrow.svg.js.map +1 -1
  22. package/dist/assests/svg/chevronUp.svg.js.map +1 -1
  23. package/dist/cjs/_virtual/_commonjsHelpers.js +2 -0
  24. package/dist/cjs/_virtual/_commonjsHelpers.js.map +1 -0
  25. package/dist/cjs/_virtual/index.js +2 -0
  26. package/dist/cjs/_virtual/index.js.map +1 -0
  27. package/dist/cjs/_virtual/index2.js +2 -0
  28. package/dist/cjs/_virtual/index2.js.map +1 -0
  29. package/dist/cjs/_virtual/index3.js +2 -0
  30. package/dist/cjs/_virtual/index3.js.map +1 -0
  31. package/dist/cjs/_virtual/index4.js +2 -0
  32. package/dist/cjs/_virtual/index4.js.map +1 -0
  33. package/dist/cjs/_virtual/index5.js +2 -0
  34. package/dist/cjs/_virtual/index5.js.map +1 -0
  35. package/dist/cjs/_virtual/react-is.development.js +2 -0
  36. package/dist/cjs/_virtual/react-is.development.js.map +1 -0
  37. package/dist/cjs/_virtual/react-is.development2.js +2 -0
  38. package/dist/cjs/_virtual/react-is.development2.js.map +1 -0
  39. package/dist/cjs/_virtual/react-is.production.js +2 -0
  40. package/dist/cjs/_virtual/react-is.production.js.map +1 -0
  41. package/dist/cjs/_virtual/react-is.production.min.js +2 -0
  42. package/dist/cjs/_virtual/react-is.production.min.js.map +1 -0
  43. package/dist/cjs/assests/svg/chevronDownArrow.svg.js.map +1 -1
  44. package/dist/cjs/assests/svg/chevronUp.svg.js.map +1 -1
  45. package/dist/cjs/features/Bookemon/BookDetailsCard/BookDetailsCard.js +1 -1
  46. package/dist/cjs/features/Bookemon/BookDetailsCard/BookDetailsCard.js.map +1 -1
  47. package/dist/cjs/features/Bookemon/BookElementsCard/BookElementsCard.js +1 -1
  48. package/dist/cjs/features/Bookemon/BookElementsCard/BookElementsCard.js.map +1 -1
  49. package/dist/cjs/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
  50. package/dist/cjs/features/Bookemon/BookOverviewCard/BookOverviewCard.js.map +1 -1
  51. package/dist/cjs/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js +1 -1
  52. package/dist/cjs/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js.map +1 -1
  53. package/dist/cjs/features/Bookemon/BookPreview/BookPreview.js +1 -1
  54. package/dist/cjs/features/Bookemon/BookPreview/BookPreview.js.map +1 -1
  55. package/dist/cjs/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
  56. package/dist/cjs/features/ChatCitation/InternalChatCitationRenderer.js.map +1 -1
  57. package/dist/cjs/features/ChatCitation/assets/cw_chat.svg.js.map +1 -1
  58. package/dist/cjs/features/ChatCitation/assets/message-chat-square.svg.js.map +1 -1
  59. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js +1 -1
  60. package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
  61. package/dist/cjs/features/ExcelCitation/ExcelCitations.js +1 -1
  62. package/dist/cjs/features/ExcelCitation/ExcelCitations.js.map +1 -1
  63. package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
  64. package/dist/cjs/features/PdfViewer/PdfViewer.js.map +1 -1
  65. package/dist/cjs/features/ReviewPanel/ReviewPanel.js +1 -1
  66. package/dist/cjs/features/ReviewPanel/ReviewPanel.js.map +1 -1
  67. package/dist/cjs/features/SPBAnalysisPanel/Cognitivereasoningpanel.js +1 -1
  68. package/dist/cjs/features/SPBAnalysisPanel/Cognitivereasoningpanel.js.map +1 -1
  69. package/dist/cjs/features/TableCitation/TableCitationContent.js +1 -1
  70. package/dist/cjs/features/TableCitation/TableCitationContent.js.map +1 -1
  71. package/dist/cjs/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +2 -0
  72. package/dist/cjs/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
  73. package/dist/cjs/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +2 -0
  74. package/dist/cjs/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
  75. package/dist/cjs/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +2 -0
  76. package/dist/cjs/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
  77. package/dist/cjs/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +2 -0
  78. package/dist/cjs/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
  79. package/dist/cjs/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +2 -0
  80. package/dist/cjs/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js.map +1 -0
  81. package/dist/cjs/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/ThemeProvider/nested.js +2 -0
  82. package/dist/cjs/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/ThemeProvider/nested.js.map +1 -0
  83. package/dist/cjs/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/useTheme/ThemeContext.js +2 -0
  84. package/dist/cjs/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/useTheme/ThemeContext.js.map +1 -0
  85. package/dist/cjs/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/useTheme/useTheme.js +2 -0
  86. package/dist/cjs/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/useTheme/useTheme.js.map +1 -0
  87. package/dist/cjs/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +2 -0
  88. package/dist/cjs/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js.map +1 -0
  89. package/dist/cjs/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +2 -0
  90. package/dist/cjs/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js.map +1 -0
  91. package/dist/cjs/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/index.js +9 -0
  92. package/dist/cjs/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/index.js.map +1 -0
  93. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/Box.js +2 -0
  94. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/Box.js.map +1 -0
  95. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/boxClasses.js +2 -0
  96. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/boxClasses.js.map +1 -0
  97. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/Container.js +2 -0
  98. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/Container.js.map +1 -0
  99. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/containerClasses.js +2 -0
  100. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/containerClasses.js.map +1 -0
  101. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/createContainer.js +2 -0
  102. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/createContainer.js.map +1 -0
  103. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +2 -0
  104. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -0
  105. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +2 -0
  106. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -0
  107. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/Grid.js +2 -0
  108. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/Grid.js.map +1 -0
  109. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/createGrid.js +2 -0
  110. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/createGrid.js.map +1 -0
  111. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js +2 -0
  112. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js.map +1 -0
  113. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/gridClasses.js +2 -0
  114. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/gridClasses.js.map +1 -0
  115. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/gridGenerator.js +2 -0
  116. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/gridGenerator.js.map +1 -0
  117. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/traverseBreakpoints.js +2 -0
  118. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/traverseBreakpoints.js.map +1 -0
  119. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/RtlProvider/index.js +2 -0
  120. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -0
  121. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/Stack.js +2 -0
  122. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/Stack.js.map +1 -0
  123. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/createStack.js +2 -0
  124. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/createStack.js.map +1 -0
  125. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/stackClasses.js +2 -0
  126. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/stackClasses.js.map +1 -0
  127. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +2 -0
  128. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -0
  129. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +2 -0
  130. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js.map +1 -0
  131. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/borders/borders.js +2 -0
  132. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/borders/borders.js.map +1 -0
  133. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/breakpoints/breakpoints.js +2 -0
  134. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/breakpoints/breakpoints.js.map +1 -0
  135. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/compose/compose.js +2 -0
  136. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/compose/compose.js.map +1 -0
  137. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createBox/createBox.js +2 -0
  138. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createBox/createBox.js.map +1 -0
  139. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js +2 -0
  140. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js.map +1 -0
  141. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createStyled/createStyled.js +2 -0
  142. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -0
  143. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/applyStyles.js +2 -0
  144. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/applyStyles.js.map +1 -0
  145. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/createSpacing.js +2 -0
  146. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/createSpacing.js.map +1 -0
  147. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/createTheme.js +2 -0
  148. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -0
  149. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/shape.js +2 -0
  150. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/shape.js.map +1 -0
  151. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js +2 -0
  152. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js.map +1 -0
  153. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/cssGrid/cssGrid.js +2 -0
  154. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/cssGrid/cssGrid.js.map +1 -0
  155. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/display/display.js +2 -0
  156. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/display/display.js.map +1 -0
  157. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/flexbox/flexbox.js +2 -0
  158. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/flexbox/flexbox.js.map +1 -0
  159. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/getThemeValue/getThemeValue.js +2 -0
  160. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/getThemeValue/getThemeValue.js.map +1 -0
  161. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/memoize/memoize.js +2 -0
  162. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/memoize/memoize.js.map +1 -0
  163. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/merge/merge.js +2 -0
  164. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/merge/merge.js.map +1 -0
  165. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/palette/palette.js +2 -0
  166. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/palette/palette.js.map +1 -0
  167. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/positions/positions.js +2 -0
  168. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/positions/positions.js.map +1 -0
  169. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/preprocessStyles.js +2 -0
  170. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/preprocessStyles.js.map +1 -0
  171. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +2 -0
  172. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js.map +1 -0
  173. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/shadows/shadows.js +2 -0
  174. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/shadows/shadows.js.map +1 -0
  175. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/sizing/sizing.js +2 -0
  176. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/sizing/sizing.js.map +1 -0
  177. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/spacing/spacing.js +2 -0
  178. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/spacing/spacing.js.map +1 -0
  179. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/style/style.js +2 -0
  180. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/style/style.js.map +1 -0
  181. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +2 -0
  182. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js.map +1 -0
  183. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +2 -0
  184. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js.map +1 -0
  185. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +2 -0
  186. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -0
  187. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styled/styled.js +2 -0
  188. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styled/styled.js.map +1 -0
  189. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/typography/typography.js +2 -0
  190. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/typography/typography.js.map +1 -0
  191. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useTheme/useTheme.js +2 -0
  192. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useTheme/useTheme.js.map +1 -0
  193. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +2 -0
  194. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js.map +1 -0
  195. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +2 -0
  196. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js.map +1 -0
  197. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js +2 -0
  198. package/dist/cjs/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js.map +1 -0
  199. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +2 -0
  200. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
  201. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/capitalize/capitalize.js +2 -0
  202. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
  203. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +2 -0
  204. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -0
  205. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +2 -0
  206. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -0
  207. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +2 -0
  208. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -0
  209. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +2 -0
  210. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -0
  211. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +2 -0
  212. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -0
  213. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/exactProp/exactProp.js +2 -0
  214. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
  215. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +2 -0
  216. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
  217. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +2 -0
  218. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
  219. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +2 -0
  220. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -0
  221. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +2 -0
  222. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +1 -0
  223. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/integerPropType/integerPropType.js +2 -0
  224. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -0
  225. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js +2 -0
  226. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -0
  227. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js +2 -0
  228. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +1 -0
  229. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/refType/refType.js +2 -0
  230. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/refType/refType.js.map +1 -0
  231. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +2 -0
  232. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -0
  233. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +2 -0
  234. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -0
  235. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/useId/useId.js +2 -0
  236. package/dist/cjs/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/useId/useId.js.map +1 -0
  237. package/dist/cjs/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs.js +2 -0
  238. package/dist/cjs/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs.js.map +1 -0
  239. package/dist/cjs/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +8 -0
  240. package/dist/cjs/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js.map +1 -0
  241. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +2 -0
  242. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js.map +1 -0
  243. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +2 -0
  244. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  245. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +2 -0
  246. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  247. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +2 -0
  248. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js.map +1 -0
  249. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +2 -0
  250. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  251. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +2 -0
  252. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js.map +1 -0
  253. package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +10 -0
  254. package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  255. package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +10 -0
  256. package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  257. package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +2 -0
  258. package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js.map +1 -0
  259. package/dist/cjs/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/cjs/react-is.development.js +11 -0
  260. package/dist/cjs/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  261. package/dist/cjs/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/cjs/react-is.production.js +11 -0
  262. package/dist/cjs/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  263. package/dist/cjs/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/index.js +2 -0
  264. package/dist/cjs/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/index.js.map +1 -0
  265. package/dist/cjs/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js +2 -0
  266. package/dist/cjs/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js.map +1 -0
  267. package/dist/cjs/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js +2 -0
  268. package/dist/cjs/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
  269. package/dist/cjs/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js +2 -0
  270. package/dist/cjs/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  271. package/dist/cjs/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js +2 -0
  272. package/dist/cjs/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js.map +1 -0
  273. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.js +1 -1
  274. package/dist/features/Bookemon/BookDetailsCard/BookDetailsCard.js.map +1 -1
  275. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.js +1 -1
  276. package/dist/features/Bookemon/BookElementsCard/BookElementsCard.js.map +1 -1
  277. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.js +1 -1
  278. package/dist/features/Bookemon/BookOverviewCard/BookOverviewCard.js.map +1 -1
  279. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js +1 -1
  280. package/dist/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.js.map +1 -1
  281. package/dist/features/Bookemon/BookPreview/BookPreview.js +1 -1
  282. package/dist/features/Bookemon/BookPreview/BookPreview.js.map +1 -1
  283. package/dist/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
  284. package/dist/features/ChatCitation/InternalChatCitationRenderer.js.map +1 -1
  285. package/dist/features/ChatCitation/assets/cw_chat.svg.js.map +1 -1
  286. package/dist/features/ChatCitation/assets/message-chat-square.svg.js.map +1 -1
  287. package/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
  288. package/dist/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
  289. package/dist/features/ExcelCitation/ExcelCitations.js +1 -1
  290. package/dist/features/ExcelCitation/ExcelCitations.js.map +1 -1
  291. package/dist/features/PdfViewer/PdfViewer.js +1 -1
  292. package/dist/features/PdfViewer/PdfViewer.js.map +1 -1
  293. package/dist/features/ReviewPanel/ReviewPanel.js +1 -1
  294. package/dist/features/ReviewPanel/ReviewPanel.js.map +1 -1
  295. package/dist/features/SPBAnalysisPanel/Cognitivereasoningpanel.js +1 -1
  296. package/dist/features/SPBAnalysisPanel/Cognitivereasoningpanel.js.map +1 -1
  297. package/dist/features/TableCitation/TableCitationContent.js +1 -1
  298. package/dist/features/TableCitation/TableCitationContent.js.map +1 -1
  299. package/dist/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +2 -0
  300. package/dist/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
  301. package/dist/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +2 -0
  302. package/dist/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
  303. package/dist/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +2 -0
  304. package/dist/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
  305. package/dist/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +2 -0
  306. package/dist/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
  307. package/dist/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +2 -0
  308. package/dist/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js.map +1 -0
  309. package/dist/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/ThemeProvider/nested.js +2 -0
  310. package/dist/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/ThemeProvider/nested.js.map +1 -0
  311. package/dist/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/useTheme/ThemeContext.js +2 -0
  312. package/dist/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/useTheme/ThemeContext.js.map +1 -0
  313. package/dist/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/useTheme/useTheme.js +2 -0
  314. package/dist/node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/useTheme/useTheme.js.map +1 -0
  315. package/dist/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +2 -0
  316. package/dist/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js.map +1 -0
  317. package/dist/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +2 -0
  318. package/dist/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js.map +1 -0
  319. package/dist/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/index.js +9 -0
  320. package/dist/node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/index.js.map +1 -0
  321. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/Box.js +2 -0
  322. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/Box.js.map +1 -0
  323. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/boxClasses.js +2 -0
  324. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/boxClasses.js.map +1 -0
  325. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/Container.js +2 -0
  326. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/Container.js.map +1 -0
  327. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/containerClasses.js +2 -0
  328. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/containerClasses.js.map +1 -0
  329. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/createContainer.js +2 -0
  330. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/createContainer.js.map +1 -0
  331. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +2 -0
  332. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -0
  333. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +2 -0
  334. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -0
  335. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/Grid.js +2 -0
  336. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/Grid.js.map +1 -0
  337. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/createGrid.js +2 -0
  338. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/createGrid.js.map +1 -0
  339. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js +2 -0
  340. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js.map +1 -0
  341. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/gridClasses.js +2 -0
  342. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/gridClasses.js.map +1 -0
  343. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/gridGenerator.js +2 -0
  344. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/gridGenerator.js.map +1 -0
  345. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/traverseBreakpoints.js +2 -0
  346. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/traverseBreakpoints.js.map +1 -0
  347. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/RtlProvider/index.js +2 -0
  348. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -0
  349. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/Stack.js +2 -0
  350. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/Stack.js.map +1 -0
  351. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/createStack.js +2 -0
  352. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/createStack.js.map +1 -0
  353. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/stackClasses.js +2 -0
  354. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/stackClasses.js.map +1 -0
  355. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +2 -0
  356. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -0
  357. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +2 -0
  358. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js.map +1 -0
  359. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/borders/borders.js +2 -0
  360. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/borders/borders.js.map +1 -0
  361. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/breakpoints/breakpoints.js +2 -0
  362. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/breakpoints/breakpoints.js.map +1 -0
  363. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/compose/compose.js +2 -0
  364. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/compose/compose.js.map +1 -0
  365. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createBox/createBox.js +2 -0
  366. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createBox/createBox.js.map +1 -0
  367. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js +2 -0
  368. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js.map +1 -0
  369. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createStyled/createStyled.js +2 -0
  370. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -0
  371. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/applyStyles.js +2 -0
  372. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/applyStyles.js.map +1 -0
  373. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/createSpacing.js +2 -0
  374. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/createSpacing.js.map +1 -0
  375. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/createTheme.js +2 -0
  376. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -0
  377. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/shape.js +2 -0
  378. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createTheme/shape.js.map +1 -0
  379. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js +2 -0
  380. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js.map +1 -0
  381. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/cssGrid/cssGrid.js +2 -0
  382. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/cssGrid/cssGrid.js.map +1 -0
  383. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/display/display.js +2 -0
  384. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/display/display.js.map +1 -0
  385. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/flexbox/flexbox.js +2 -0
  386. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/flexbox/flexbox.js.map +1 -0
  387. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/getThemeValue/getThemeValue.js +2 -0
  388. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/getThemeValue/getThemeValue.js.map +1 -0
  389. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/memoize/memoize.js +2 -0
  390. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/memoize/memoize.js.map +1 -0
  391. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/merge/merge.js +2 -0
  392. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/merge/merge.js.map +1 -0
  393. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/palette/palette.js +2 -0
  394. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/palette/palette.js.map +1 -0
  395. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/positions/positions.js +2 -0
  396. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/positions/positions.js.map +1 -0
  397. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/preprocessStyles.js +2 -0
  398. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/preprocessStyles.js.map +1 -0
  399. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +2 -0
  400. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js.map +1 -0
  401. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/shadows/shadows.js +2 -0
  402. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/shadows/shadows.js.map +1 -0
  403. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/sizing/sizing.js +2 -0
  404. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/sizing/sizing.js.map +1 -0
  405. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/spacing/spacing.js +2 -0
  406. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/spacing/spacing.js.map +1 -0
  407. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/style/style.js +2 -0
  408. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/style/style.js.map +1 -0
  409. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +2 -0
  410. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js.map +1 -0
  411. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +2 -0
  412. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js.map +1 -0
  413. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +2 -0
  414. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -0
  415. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styled/styled.js +2 -0
  416. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styled/styled.js.map +1 -0
  417. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/typography/typography.js +2 -0
  418. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/typography/typography.js.map +1 -0
  419. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useTheme/useTheme.js +2 -0
  420. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useTheme/useTheme.js.map +1 -0
  421. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +2 -0
  422. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js.map +1 -0
  423. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +2 -0
  424. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js.map +1 -0
  425. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js +2 -0
  426. package/dist/node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js.map +1 -0
  427. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +2 -0
  428. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
  429. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/capitalize/capitalize.js +2 -0
  430. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
  431. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +2 -0
  432. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -0
  433. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +2 -0
  434. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -0
  435. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +2 -0
  436. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -0
  437. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +2 -0
  438. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -0
  439. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +2 -0
  440. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -0
  441. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/exactProp/exactProp.js +2 -0
  442. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
  443. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +2 -0
  444. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
  445. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +2 -0
  446. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
  447. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +2 -0
  448. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -0
  449. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +2 -0
  450. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +1 -0
  451. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/integerPropType/integerPropType.js +2 -0
  452. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -0
  453. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js +2 -0
  454. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -0
  455. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js +2 -0
  456. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +1 -0
  457. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/refType/refType.js +2 -0
  458. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/refType/refType.js.map +1 -0
  459. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +2 -0
  460. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -0
  461. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +2 -0
  462. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -0
  463. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/useId/useId.js +2 -0
  464. package/dist/node_modules/.pnpm/@mui_utils@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/utils/esm/useId/useId.js.map +1 -0
  465. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs.js +2 -0
  466. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs.js.map +1 -0
  467. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +7 -0
  468. package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js.map +1 -0
  469. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +2 -0
  470. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js.map +1 -0
  471. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +2 -0
  472. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  473. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +2 -0
  474. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  475. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +2 -0
  476. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js.map +1 -0
  477. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +2 -0
  478. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  479. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js +2 -0
  480. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js.map +1 -0
  481. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +10 -0
  482. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  483. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +10 -0
  484. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  485. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +2 -0
  486. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js.map +1 -0
  487. package/dist/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/cjs/react-is.development.js +11 -0
  488. package/dist/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  489. package/dist/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/cjs/react-is.production.js +11 -0
  490. package/dist/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  491. package/dist/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/index.js +2 -0
  492. package/dist/node_modules/.pnpm/react-is@19.2.8/node_modules/react-is/index.js.map +1 -0
  493. package/dist/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js +2 -0
  494. package/dist/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js.map +1 -0
  495. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js +2 -0
  496. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
  497. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js +2 -0
  498. package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  499. package/dist/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js +2 -0
  500. package/dist/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js.map +1 -0
  501. package/package.json +287 -142
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@react-pdf-viewer/core"),r=require("./PdfContainer.js"),n=require("./PdfToolbar.js"),o=require("./PdfStyle.js"),i=require("./usePdfHighlight.js"),a=require("./rotationManager.js");require("@react-pdf-viewer/zoom/lib/styles/index.css"),require("@react-pdf-viewer/page-navigation/lib/styles/index.css"),require("@react-pdf-viewer/core/lib/styles/index.css"),require("@react-pdf-viewer/search/lib/styles/index.css");var s=require("react"),c=require("../ScannedDocCitation/ScannedDocCitation.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./PdfViewer.css.js");var u=l(s);exports.default=({pdfUrl:l,highlightText:d,highlightPages:g,highlightCordinatePages:h,highlightColor:f="yellow",activeHighlightColor:p="#f7dc51",jumpToPageValue:m=0,pdfName:v,onClose:y,customStyles:x,customClasses:P,customIcons:w,useCoordinates:S,fallbackPages:T,activeCitationIndex:C,onActiveCitationChange:b,headerAction:q,isZoomEnabled:R=!0,showHighlightsAction:A=!0,defaultScale:_=t.SpecialZoomLevel.ActualSize,useRange:j=!1,rangeOfPages:I=null,showFullScreenAction:L=!0,showRotateButton:M=!1,segments:E=[{title:"Document 2",start_page:52,end_page:52,page_count:1}],segmentTooltipText:F,onCurrentPageChange:H,navigationRequest:N,onNavigationSettled:B,disablePdfAnnotations:Z=!1,disablePdfTextLayer:V=!1,renderPage:k,setRenderRange:z})=>{const D=s.useRef(null),O=(e=>{switch(e){case"ActualSize":return t.SpecialZoomLevel.ActualSize;case"PageFit":return t.SpecialZoomLevel.PageFit;case"PageWidth":return t.SpecialZoomLevel.PageWidth;default:return e??t.SpecialZoomLevel.PageWidth}})(_),[W,U]=s.useState(0),[$,J]=s.useState(0),[K,G]=s.useState(0),Q=s.useRef(null),X=s.useRef(null),Y=s.useRef(0),ee=s.useRef(null),te=s.useMemo(()=>{if(!l)return"";try{return new URL(l,window.location.origin).pathname.split("/").pop()||"default"}catch{return"default"}},[l]);s.useEffect(()=>{te&&a.rotationManager.setPdfIdentifier(te)},[te]);s.useEffect(()=>a.rotationManager.onRotationChange((e,t)=>{e===W+1&&G(t)}),[W]),s.useEffect(()=>{const e=new MutationObserver(()=>{const e=D.current?.querySelectorAll('[data-testid^="core__page-layer-"]'),t=new Set;e?.forEach(e=>{const r=e.getAttribute("data-testid")?.match(/core__page-layer-(\d+)/);if(r&&r.length>=2){const n=parseInt(r[1],10)+1;t.has(n)||(a.rotationManager.registerPageElement(n,e),t.add(n))}})});return D.current&&(e.observe(D.current,{childList:!0,subtree:!0,attributes:!1}),ee.current=e),()=>{e.disconnect(),ee.current=null}},[]),s.useEffect(()=>()=>{a.rotationManager.clearAll(),ee.current&&ee.current.disconnect()},[]),s.useEffect(()=>{const e=W+1;G(a.rotationManager.getRotation(e))},[W]);const re=s.useMemo(()=>Z||V?t=>{const r=V?e.jsx("div",{"aria-hidden":"true",style:{display:"none"},children:t.textLayer.children}):t.textLayer.children,n={...t,annotationLayer:{...t.annotationLayer,children:Z?null:t.annotationLayer.children},textLayer:{...t.textLayer,children:r}};return k?k(n):e.jsxs(e.Fragment,{children:[t.canvasLayer.children,r,!Z&&t.annotationLayer.children]})}:k,[Z,V,k]),ne=s.useMemo(()=>{if(S)return new Set(h.map(e=>e.pageIndex));{const e=new Set;return Object.values(g).forEach(t=>{t>0&&e.add(t-1)}),e}},[h,g,S]),oe=(ie=d)&&0!==ie.length?ie.filter(e=>!ie.some(t=>t!==e&&t.includes(e))):ie;var ie;const{highlightIndex:ae,setHighlightIndex:se,cursorIndex:ce,setCursorIndex:le,orderedKeys:ue,totalHighlights:de,getValidPosition:ge,tryJump:he,jumpToPage:fe,zoomTo:pe,plugins:me,controls:ve,hideNonTargetHighlights:ye,deduplicateHighlights:xe,scrollToCoord:Pe}=i.PdfHighlightControls(oe,S?{}:g,D,ne,S,S?h:[],f,p),we=ge(ce),Se=s.useMemo(()=>{const e=W+1;return E.find(t=>e>=t.start_page&&e<=t.end_page)},[W,E]);s.useEffect(()=>{void 0!==C&&C!==ce&&le(C)},[C]);const Te={...ve,goToNext:()=>{ce>=de-1||(ve.goToNext(),b&&b(ce+1))},goToPrevious:()=>{ce<=0||(ve.goToPrevious(),b&&b(ce-1))}},Ce=u.default.useCallback((e,t)=>{Y.current+=1;const r=Y.current;null!=X.current&&window.clearTimeout(X.current);let n=null,o=0,i=0;const a=()=>{if(Y.current!==r)return;i+=1;const s=D.current?.querySelector(".rpv-core__inner-pages"),c=D.current?.querySelector(`[data-testid="core__page-layer-${t-1}"]`);if(!s||!c)return i>=40?(X.current=null,void B?.({pageNumber:t,requestId:e.requestId})):void(X.current=window.setTimeout(a,50));n===s.scrollTop?o+=1:(n=s.scrollTop,o=0);const l=s.getBoundingClientRect(),u=c.getBoundingClientRect(),d=Boolean(l&&u&&u.bottom>l.top&&u.top<l.bottom);if(o>=2&&d||i>=40)return X.current=null,void B?.({pageNumber:t,requestId:e.requestId});X.current=window.setTimeout(a,50)};X.current=window.setTimeout(a,50)},[B]);if(s.useEffect(()=>()=>{Y.current+=1,null!=X.current&&window.clearTimeout(X.current)},[]),s.useEffect(()=>{if(!N||$<=0)return;const e=Math.min(Math.max(Math.trunc(N.pageNumber),1),$),t=`${N.requestId??e}:${e}`;Q.current!==t&&(Q.current=t,U(e-1),fe(e-1),Ce(N,e))},[fe,N,$,Ce]),!l)return e.jsx(c.default,{pages:T,activeCitationIndex:C,onActiveCitationChange:b,headerAction:q});return e.jsxs("div",{ref:D,className:P?.pdfViewerWrapper||"","data-disable-pdf-annotations":Z?"true":void 0,"data-pdf-page-fit":O===t.SpecialZoomLevel.PageFit?"true":void 0,style:{height:"100%",minHeight:0,minWidth:0,overflow:"hidden",display:"flex",flexDirection:"column",...o.pdfStyles.pdfViewer,display:"flex",flexDirection:"column",height:"100%",width:"100%",backgroundColor:"#FAFAFA",...x?.pdfViewer,backgroundColor:"#F1F5F9"},children:[e.jsx(n.default,{highlightIndex:ae,totalHighlights:de,controls:Te,currentPosition:we,pdfName:v,onClose:y,pdfUrl:l,viewerRef:D,customStyles:x,customClasses:P,customIcons:w,headerAction:q,isZoomEnabled:R,showHighlightsAction:A,showFullScreenAction:L,currentSegment:Se,segmentTooltipText:F,currentPage:W+1,totalPages:$,onPageNavigate:e=>{const t=Math.min(Math.max(e,1),$||e);U(t-1),fe(t-1)},onRotatePage:()=>{const e=W+1;a.rotationManager.rotatePageBy90(e),G(a.rotationManager.getRotation(e))},currentPageRotation:K,showRotateButton:M}),e.jsx(r.default,{defaultScale:O,pdfUrl:l,plugins:me,customStyles:x,onLoad:e=>{J(e.doc.numPages);const t=!S&&!j&&m<=0;if(m>0&&!j){const e=m-1,t=ue[e],r=g[t],n=h[e];le(e),console.log(n,"cordinateTargetHighlight"),S&&n.pageIndex>0&&fe(n.pageIndex),r>0&&(setTimeout(()=>{ye(ne),xe(r-1)},1e3),S||fe(r-1))}else if(j&&I&&2===I.length){(async()=>{const[e,t]=I;for(let r=e;r<=t;r++){const e=r-1;fe(e),await new Promise(e=>setTimeout(e,1e3)),ye(ne);const t=xe(e);if(t&&t>0)break}})()}else if(!S&&g){const e=ue.find(e=>g[e]>0);if(void 0!==e){const t=g[e]-1;fe(t),setTimeout(()=>{ye(ne),xe(t)},1e3)}}requestAnimationFrame(()=>{t&&he(),!S&&m>0&&!j&&(()=>{if(!D.current)return;const e=m-1,t=ue[e],r=g[t],n=r>0?r-1:0,o={};ue.forEach((e,t)=>{const r=g[e];r>0&&(o[r]||(o[r]=[]),o[r].push(t))});const i=(o[r]||[]).indexOf(e);let a=0;const s=()=>{if(a++,a>40)return;const e=D.current?.querySelector(".rpv-core__inner-pages");if(!e)return void setTimeout(s,100);const t=D.current?.querySelector(`[data-testid="core__page-layer-${n}"]`);if(!t)return void setTimeout(s,100);const r=e.getBoundingClientRect(),o=t.getBoundingClientRect();if(!(o.top<r.bottom&&o.bottom>r.top))return void setTimeout(s,100);const c=t.querySelectorAll(".rpv-search__highlight")[i];if(!c)return void setTimeout(s,100);const l=c.getBoundingClientRect(),u=e.scrollTop+(l.top-r.top)-e.clientHeight/2+l.height/2;e.scrollTo({top:u,behavior:"smooth"})};setTimeout(s,500)})()})},onPageChange:e=>{const t=e.currentPage;U(t),H?.(t+1),ne.has(t)?(xe(t),ye(ne)):ye(ne)},renderPage:re,setRenderRange:z})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@react-pdf-viewer/core"),r=require("./PdfContainer.js"),n=require("./PdfToolbar.js"),o=require("./PdfStyle.js"),i=require("./usePdfHighlight.js"),a=require("./rotationManager.js");require("@react-pdf-viewer/zoom/lib/styles/index.css"),require("@react-pdf-viewer/page-navigation/lib/styles/index.css"),require("@react-pdf-viewer/core/lib/styles/index.css"),require("@react-pdf-viewer/search/lib/styles/index.css");var s=require("react"),c=require("../ScannedDocCitation/ScannedDocCitation.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(s);exports.default=({pdfUrl:l,highlightText:d,highlightPages:g,highlightCordinatePages:h,highlightColor:f="yellow",activeHighlightColor:p="#f7dc51",jumpToPageValue:m=0,pdfName:v,onClose:y,customStyles:x,customClasses:P,customIcons:w,useCoordinates:S,fallbackPages:T,activeCitationIndex:C,onActiveCitationChange:b,headerAction:q,isZoomEnabled:R=!0,showHighlightsAction:A=!0,defaultScale:_=t.SpecialZoomLevel.ActualSize,useRange:I=!1,rangeOfPages:L=null,showFullScreenAction:M=!0,showRotateButton:j=!1,segments:E=[{title:"Document 2",start_page:52,end_page:52,page_count:1}],segmentTooltipText:F,onCurrentPageChange:H,navigationRequest:N,onNavigationSettled:B,disablePdfAnnotations:Z=!1,disablePdfTextLayer:k=!1,renderPage:z,setRenderRange:D})=>{const O=s.useRef(null),V=(e=>{switch(e){case"ActualSize":return t.SpecialZoomLevel.ActualSize;case"PageFit":return t.SpecialZoomLevel.PageFit;case"PageWidth":return t.SpecialZoomLevel.PageWidth;default:return e??t.SpecialZoomLevel.PageWidth}})(_),[W,U]=s.useState(0),[$,J]=s.useState(0),[K,G]=s.useState(0),Q=s.useRef(null),X=s.useRef(null),Y=s.useRef(0),ee=s.useRef(null),te=s.useMemo(()=>{if(!l)return"";try{return new URL(l,window.location.origin).pathname.split("/").pop()||"default"}catch{return"default"}},[l]);s.useEffect(()=>{te&&a.rotationManager.setPdfIdentifier(te)},[te]);s.useEffect(()=>a.rotationManager.onRotationChange((e,t)=>{e===W+1&&G(t)}),[W]),s.useEffect(()=>{const e=new MutationObserver(()=>{const e=O.current?.querySelectorAll('[data-testid^="core__page-layer-"]'),t=new Set;e?.forEach(e=>{const r=e.getAttribute("data-testid")?.match(/core__page-layer-(\d+)/);if(r&&r.length>=2){const n=parseInt(r[1],10)+1;t.has(n)||(a.rotationManager.registerPageElement(n,e),t.add(n))}})});return O.current&&(e.observe(O.current,{childList:!0,subtree:!0,attributes:!1}),ee.current=e),()=>{e.disconnect(),ee.current=null}},[]),s.useEffect(()=>()=>{a.rotationManager.clearAll(),ee.current&&ee.current.disconnect()},[]),s.useEffect(()=>{const e=W+1;G(a.rotationManager.getRotation(e))},[W]);const re=s.useMemo(()=>Z||k?t=>{const r=k?e.jsx("div",{"aria-hidden":"true",style:{display:"none"},children:t.textLayer.children}):t.textLayer.children,n={...t,annotationLayer:{...t.annotationLayer,children:Z?null:t.annotationLayer.children},textLayer:{...t.textLayer,children:r}};return z?z(n):e.jsxs(e.Fragment,{children:[t.canvasLayer.children,r,!Z&&t.annotationLayer.children]})}:z,[Z,k,z]),ne=s.useMemo(()=>{if(S)return new Set(h.map(e=>e.pageIndex));{const e=new Set;return Object.values(g).forEach(t=>{t>0&&e.add(t-1)}),e}},[h,g,S]),oe=(ie=d)&&0!==ie.length?ie.filter(e=>!ie.some(t=>t!==e&&t.includes(e))):ie;var ie;const{highlightIndex:ae,setHighlightIndex:se,cursorIndex:ce,setCursorIndex:le,orderedKeys:ue,totalHighlights:de,getValidPosition:ge,tryJump:he,jumpToPage:fe,zoomTo:pe,plugins:me,controls:ve,hideNonTargetHighlights:ye,deduplicateHighlights:xe,scrollToCoord:Pe}=i.PdfHighlightControls(oe,S?{}:g,O,ne,S,S?h:[],f,p),we=ge(ce),Se=s.useMemo(()=>{const e=W+1;return E.find(t=>e>=t.start_page&&e<=t.end_page)},[W,E]);s.useEffect(()=>{void 0!==C&&C!==ce&&le(C)},[C]);const Te={...ve,goToNext:()=>{ce>=de-1||(ve.goToNext(),b&&b(ce+1))},goToPrevious:()=>{ce<=0||(ve.goToPrevious(),b&&b(ce-1))}},Ce=u.default.useCallback((e,t)=>{Y.current+=1;const r=Y.current;null!=X.current&&window.clearTimeout(X.current);let n=null,o=0,i=0;const a=()=>{if(Y.current!==r)return;i+=1;const s=O.current?.querySelector(".rpv-core__inner-pages"),c=O.current?.querySelector(`[data-testid="core__page-layer-${t-1}"]`);if(!s||!c)return i>=40?(X.current=null,void B?.({pageNumber:t,requestId:e.requestId})):void(X.current=window.setTimeout(a,50));n===s.scrollTop?o+=1:(n=s.scrollTop,o=0);const l=s.getBoundingClientRect(),u=c.getBoundingClientRect(),d=Boolean(l&&u&&u.bottom>l.top&&u.top<l.bottom);if(o>=2&&d||i>=40)return X.current=null,void B?.({pageNumber:t,requestId:e.requestId});X.current=window.setTimeout(a,50)};X.current=window.setTimeout(a,50)},[B]);if(s.useEffect(()=>()=>{Y.current+=1,null!=X.current&&window.clearTimeout(X.current)},[]),s.useEffect(()=>{if(!N||$<=0)return;const e=Math.min(Math.max(Math.trunc(N.pageNumber),1),$),t=`${N.requestId??e}:${e}`;Q.current!==t&&(Q.current=t,U(e-1),fe(e-1),Ce(N,e))},[fe,N,$,Ce]),!l)return e.jsx(c.default,{pages:T,activeCitationIndex:C,onActiveCitationChange:b,headerAction:q});return e.jsxs("div",{ref:O,className:P?.pdfViewerWrapper||"","data-disable-pdf-annotations":Z?"true":void 0,"data-pdf-page-fit":V===t.SpecialZoomLevel.PageFit?"true":void 0,style:{height:"100%",minHeight:0,minWidth:0,overflow:"hidden",display:"flex",flexDirection:"column",...o.pdfStyles.pdfViewer,display:"flex",flexDirection:"column",height:"100%",width:"100%",backgroundColor:"#FAFAFA",...x?.pdfViewer,backgroundColor:"#F1F5F9"},children:[e.jsx(n.default,{highlightIndex:ae,totalHighlights:de,controls:Te,currentPosition:we,pdfName:v,onClose:y,pdfUrl:l,viewerRef:O,customStyles:x,customClasses:P,customIcons:w,headerAction:q,isZoomEnabled:R,showHighlightsAction:A,showFullScreenAction:M,currentSegment:Se,segmentTooltipText:F,currentPage:W+1,totalPages:$,onPageNavigate:e=>{const t=Math.min(Math.max(e,1),$||e);U(t-1),fe(t-1)},onRotatePage:()=>{const e=W+1;a.rotationManager.rotatePageBy90(e),G(a.rotationManager.getRotation(e))},currentPageRotation:K,showRotateButton:j}),e.jsx(r.default,{defaultScale:V,pdfUrl:l,plugins:me,customStyles:x,onLoad:e=>{J(e.doc.numPages);const t=!S&&!I&&m<=0;if(m>0&&!I){const e=m-1,t=ue[e],r=g[t],n=h[e];le(e),console.log(n,"cordinateTargetHighlight"),S&&n.pageIndex>0&&fe(n.pageIndex),r>0&&(setTimeout(()=>{ye(ne),xe(r-1)},1e3),S||fe(r-1))}else if(I&&L&&2===L.length){(async()=>{const[e,t]=L;for(let r=e;r<=t;r++){const e=r-1;fe(e),await new Promise(e=>setTimeout(e,1e3)),ye(ne);const t=xe(e);if(t&&t>0)break}})()}else if(!S&&g){const e=ue.find(e=>g[e]>0);if(void 0!==e){const t=g[e]-1;fe(t),setTimeout(()=>{ye(ne),xe(t)},1e3)}}requestAnimationFrame(()=>{t&&he(),!S&&m>0&&!I&&(()=>{if(!O.current)return;const e=m-1,t=ue[e],r=g[t],n=r>0?r-1:0,o={};ue.forEach((e,t)=>{const r=g[e];r>0&&(o[r]||(o[r]=[]),o[r].push(t))});const i=(o[r]||[]).indexOf(e);let a=0;const s=()=>{if(a++,a>40)return;const e=O.current?.querySelector(".rpv-core__inner-pages");if(!e)return void setTimeout(s,100);const t=O.current?.querySelector(`[data-testid="core__page-layer-${n}"]`);if(!t)return void setTimeout(s,100);const r=e.getBoundingClientRect(),o=t.getBoundingClientRect();if(!(o.top<r.bottom&&o.bottom>r.top))return void setTimeout(s,100);const c=t.querySelectorAll(".rpv-search__highlight")[i];if(!c)return void setTimeout(s,100);const l=c.getBoundingClientRect(),u=e.scrollTop+(l.top-r.top)-e.clientHeight/2+l.height/2;e.scrollTo({top:u,behavior:"smooth"})};setTimeout(s,500)})()})},onPageChange:e=>{const t=e.currentPage;U(t),H?.(t+1),ne.has(t)?(xe(t),ye(ne)):ye(ne)},renderPage:re,setRenderRange:D})]})};
2
2
  //# sourceMappingURL=PdfViewer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PdfViewer.js","sources":["../../../../src/features/PdfViewer/PdfViewer.tsx"],"sourcesContent":["import { DocumentLoadEvent, PageChangeEvent, RenderPage, SetRenderRange, SpecialZoomLevel } from \"@react-pdf-viewer/core\";\nimport PdfContainer from \"./PdfContainer\";\nimport PdfToolbar from \"./PdfToolbar\";\nimport { pdfStyles } from \"./PdfStyle\";\nimport { PdfHighlightControls } from \"./usePdfHighlight\";\nimport { rotationManager } from \"./rotationManager\";\nimport \"@react-pdf-viewer/zoom/lib/styles/index.css\";\nimport \"@react-pdf-viewer/page-navigation/lib/styles/index.css\";\nimport \"@react-pdf-viewer/core/lib/styles/index.css\";\nimport \"@react-pdf-viewer/search/lib/styles/index.css\";\nimport React, { useMemo, useRef, useEffect, useState } from \"react\";\nimport ScannedDocCitation, { CitationPage } from \"../ScannedDocCitation/ScannedDocCitation\";\nimport \"./PdfViewer.css\";\n\nexport type CustomIconsType = {\n pdfIcon?: React.ReactNode;\n fullScreenIcon?: React.ReactNode;\n downloadIcon?: React.ReactNode;\n closeIcon?: React.ReactNode;\n};\n\nexport type CustomStylesType = {\n pdfViewer?: React.CSSProperties;\n header?: React.CSSProperties;\n pdfIconWrapper?: React.CSSProperties;\n pdfName?: React.CSSProperties;\n pdfContainer?: React.CSSProperties;\n emptyState?: React.CSSProperties;\n};\n\nexport type CustomClassesType = {\n header?: string;\n pdfName?: string;\n actionButton?: string;\n pdfViewerWrapper?: string;\n};\n\nexport type PdfSegment = {\n title: string;\n start_page: number;\n end_page: number;\n page_count: number;\n};\n\ntype PdfScaleOption =\n | \"ActualSize\"\n | \"PageFit\"\n | \"PageWidth\"\n | number;\nexport interface PdfNavigationRequest {\n pageNumber: number;\n /** Change this value to navigate to the same page more than once. */\n requestId?: string | number;\n}\n\nexport interface PdfNavigationSettledEvent extends PdfNavigationRequest {\n pageNumber: number;\n}\n\nexport interface PdfViewerProps {\n pdfUrl?: string;\n highlightText: string[];\n highlightPages?: any;\n highlightCordinatePages: HighlightArea[];\n highlightColor?: string;\n activeHighlightColor?: string;\n jumpToPageValue?: number;\n pdfName?: string;\n onClose?: () => void;\n item?: any;\n customStyles?: CustomStylesType;\n customClasses?: CustomClassesType;\n customIcons?: CustomIconsType;\n useCoordinates: boolean;\n fallbackPages?: CitationPage[];\n activeCitationIndex?: number;\n onActiveCitationChange?: (index: number) => void;\n headerAction?: {\n icon?: React.ReactNode;\n onClick?: () => void;\n tooltip?: string;\n };\n isZoomEnabled?: boolean;\n showHighlightsAction?: boolean;\n defaultScale?: PdfScaleOption;\n useRange?: boolean; //\n rangeOfPages?: number[] | null;\n showFullScreenAction?: boolean;\n showRotateButton?: boolean;\n segments?: PdfSegment[];\n segmentTooltipText?: string;\n onCurrentPageChange?: (pageNumber: number) => void;\n navigationRequest?: PdfNavigationRequest | null;\n onNavigationSettled?: (event: PdfNavigationSettledEvent) => void;\n disablePdfAnnotations?: boolean;\n disablePdfTextLayer?: boolean;\n renderPage?: RenderPage;\n setRenderRange?: SetRenderRange;\n}\n\nconst getResolvedScale = (\n scale?: PdfScaleOption\n): SpecialZoomLevel | number => {\n switch (scale) {\n case \"ActualSize\":\n return SpecialZoomLevel.ActualSize;\n\n case \"PageFit\":\n return SpecialZoomLevel.PageFit;\n\n case \"PageWidth\":\n return SpecialZoomLevel.PageWidth;\n\n default:\n return scale ?? SpecialZoomLevel.PageWidth;\n }\n};\n\nexport type HighlightArea = {\n pageIndex: number;\n left: number;\n top: number;\n width: number;\n height: number;\n pageNumber?: number;\n};\n\nconst PdfViewer = ({\n pdfUrl,\n highlightText,\n highlightPages,\n highlightCordinatePages,\n highlightColor = \"yellow\",\n activeHighlightColor = \"#f7dc51\",\n jumpToPageValue = 0,\n pdfName,\n onClose,\n customStyles,\n customClasses,\n customIcons,\n useCoordinates,\n fallbackPages,\n activeCitationIndex,\n onActiveCitationChange,\n headerAction,\n isZoomEnabled = true,\n showHighlightsAction = true,\n defaultScale = SpecialZoomLevel.ActualSize,\n useRange = false,\n rangeOfPages = null,\n showFullScreenAction=true,\n showRotateButton = false,\n segments = [\n {\n title: \"Document 2\",\n start_page: 52,\n end_page: 52,\n page_count: 1,\n },\n ],\n segmentTooltipText,\n onCurrentPageChange,\n navigationRequest,\n onNavigationSettled,\n disablePdfAnnotations = false,\n disablePdfTextLayer = false,\n renderPage,\n setRenderRange,\n}: PdfViewerProps) => {\n\n const viewerRef = useRef<HTMLDivElement | null>(null);\n const resolvedDefaultScale = getResolvedScale(defaultScale);\n const [currentPage, setCurrentPage] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [currentPageRotation, setCurrentPageRotation] = useState(0);\n const lastNavigationRequestRef = useRef<string | null>(null);\n const navigationSettleTimerRef = useRef<number | null>(null);\n const navigationSettleSequenceRef = useRef(0);\n const mutationObserverRef = useRef<MutationObserver | null>(null);\n\n // Generate PDF identifier for localStorage from URL\n const pdfIdentifier = useMemo(() => {\n if (!pdfUrl) return '';\n // Use last part of URL or hash it\n try {\n const url = new URL(pdfUrl, window.location.origin);\n return url.pathname.split('/').pop() || 'default';\n } catch {\n return 'default';\n }\n }, [pdfUrl]);\n\n // Set up rotation manager with PDF identifier\n useEffect(() => {\n if (pdfIdentifier) {\n rotationManager.setPdfIdentifier(pdfIdentifier);\n }\n }, [pdfIdentifier]);\n\n // Handler for rotating current page (no state update)\n const handleRotatePage = () => {\n const pageNumber = currentPage + 1;\n rotationManager.rotatePageBy90(pageNumber);\n // Manually update state to reflect rotation in UI\n setCurrentPageRotation(rotationManager.getRotation(pageNumber));\n };\n\n // Subscribe to rotation changes to sync UI state\n useEffect(() => {\n const unsubscribe = rotationManager.onRotationChange((pageNum, angle) => {\n // Only update state if current page rotated\n if (pageNum === currentPage + 1) {\n setCurrentPageRotation(angle);\n }\n });\n\n return unsubscribe;\n }, [currentPage]);\n\n // Register page elements with rotation manager\n useEffect(() => {\n const observer = new MutationObserver(() => {\n // Find all newly rendered page elements\n const pageElements = viewerRef.current?.querySelectorAll(\n '[data-testid^=\"core__page-layer-\"]'\n );\n\n const registeredPages = new Set<number>();\n\n pageElements?.forEach((pageElement) => {\n const match = (pageElement as HTMLElement)\n .getAttribute('data-testid')\n ?.match(/core__page-layer-(\\d+)/);\n if (match && match.length >= 2) {\n const pageIndex = parseInt(match[1], 10);\n const pageNumber = pageIndex + 1;\n\n // Only register once per page\n if (!registeredPages.has(pageNumber)) {\n rotationManager.registerPageElement(pageNumber, pageElement as HTMLElement);\n registeredPages.add(pageNumber);\n }\n }\n });\n });\n\n if (viewerRef.current) {\n observer.observe(viewerRef.current, {\n childList: true,\n subtree: true,\n attributes: false,\n });\n mutationObserverRef.current = observer;\n }\n\n return () => {\n observer.disconnect();\n mutationObserverRef.current = null;\n };\n }, []);\n\n // Clean up when unmounting\n useEffect(() => {\n return () => {\n rotationManager.clearAll();\n if (mutationObserverRef.current) {\n mutationObserverRef.current.disconnect();\n }\n };\n }, []);\n\n // Update current page rotation when page changes\n useEffect(() => {\n const pageNumber = currentPage + 1;\n setCurrentPageRotation(rotationManager.getRotation(pageNumber));\n }, [currentPage]);\n const resolvedRenderPage = useMemo<RenderPage | undefined>(() => {\n if (!disablePdfAnnotations && !disablePdfTextLayer) return renderPage;\n\n return (props) => {\n const resolvedTextLayerChildren = disablePdfTextLayer ? (\n <div aria-hidden=\"true\" style={{ display: \"none\" }}>\n {props.textLayer.children}\n </div>\n ) : props.textLayer.children;\n const resolvedProps = {\n ...props,\n annotationLayer: {\n ...props.annotationLayer,\n children: disablePdfAnnotations ? null : props.annotationLayer.children,\n },\n textLayer: {\n ...props.textLayer,\n children: resolvedTextLayerChildren,\n },\n };\n\n const renderedPage = renderPage\n ? renderPage(resolvedProps)\n : (\n <>\n {props.canvasLayer.children}\n {resolvedTextLayerChildren}\n {!disablePdfAnnotations && props.annotationLayer.children}\n </>\n );\n\n return renderedPage;\n };\n }, [disablePdfAnnotations, disablePdfTextLayer, renderPage]);\n\n const cleanHighlightTexts = (texts: string[]): string[] => {\n if (!texts || texts.length === 0) return texts;\n return texts.filter((text) => {\n return !texts.some(\n (otherText) => otherText !== text && otherText.includes(text)\n );\n });\n };\n\n const highlightPageSet = useMemo(() => {\n if (useCoordinates) {\n return new Set(highlightCordinatePages.map((h: any) => h.pageIndex));\n } else {\n const set = new Set<number>();\n Object.values(highlightPages).forEach((p: any) => {\n if (p > 0) set.add(p - 1);\n });\n return set;\n }\n }, [highlightCordinatePages, highlightPages, useCoordinates]);\n\n const removeRedundantHighlightTexts = cleanHighlightTexts(highlightText);\n\n const {\n highlightIndex,\n setHighlightIndex,\n cursorIndex,\n setCursorIndex,\n orderedKeys,\n totalHighlights,\n getValidPosition,\n tryJump,\n jumpToPage,\n zoomTo,\n plugins,\n controls,\n hideNonTargetHighlights,\n deduplicateHighlights,\n scrollToCoord,\n } = PdfHighlightControls(\n removeRedundantHighlightTexts,\n !useCoordinates ? highlightPages : {},\n viewerRef,\n highlightPageSet,\n useCoordinates,\n useCoordinates ? highlightCordinatePages : [],\n highlightColor,\n activeHighlightColor\n );\n\n const currentPosition = getValidPosition(cursorIndex);\n const currentSegment = useMemo(() => {\n const pageNumber = currentPage + 1;\n return segments.find(\n (segment) =>\n pageNumber >= segment.start_page && pageNumber <= segment.end_page\n );\n }, [currentPage, segments]);\n\n // sync external activeCitationIndex → cursorIndex\n useEffect(() => {\n if (activeCitationIndex === undefined) return;\n if (activeCitationIndex === cursorIndex) return;\n setCursorIndex(activeCitationIndex);\n }, [activeCitationIndex]);\n\n // wrap controls to fire onActiveCitationChange\n const handleGoToNext = () => {\n if (cursorIndex >= totalHighlights - 1) return;\n controls.goToNext();\n if (onActiveCitationChange) onActiveCitationChange(cursorIndex + 1);\n };\n\n const handleGoToPrevious = () => {\n if (cursorIndex <= 0) return;\n controls.goToPrevious();\n if (onActiveCitationChange) onActiveCitationChange(cursorIndex - 1);\n };\n\n const modifiedControls = {\n ...controls,\n goToNext: handleGoToNext,\n goToPrevious: handleGoToPrevious,\n };\n\n const handlePageNavigate = (pageNumber: number) => {\n const nextPage = Math.min(Math.max(pageNumber, 1), totalPages || pageNumber);\n setCurrentPage(nextPage - 1);\n jumpToPage(nextPage - 1);\n };\n\n const waitForNavigationToSettle = React.useCallback((\n request: PdfNavigationRequest,\n pageNumber: number\n ) => {\n navigationSettleSequenceRef.current += 1;\n const settleSequence = navigationSettleSequenceRef.current;\n if (navigationSettleTimerRef.current != null) {\n window.clearTimeout(navigationSettleTimerRef.current);\n }\n\n let previousScrollTop: number | null = null;\n let stableChecks = 0;\n let attempts = 0;\n\n const checkScrollPosition = () => {\n if (navigationSettleSequenceRef.current !== settleSequence) return;\n\n attempts += 1;\n\n const scrollContainer = viewerRef.current?.querySelector(\n '.rpv-core__inner-pages'\n ) as HTMLElement | null;\n const targetPage = viewerRef.current?.querySelector(\n `[data-testid=\"core__page-layer-${pageNumber - 1}\"]`\n ) as HTMLElement | null;\n\n // Virtualized page layers are not guaranteed to be mounted on the first\n // check after jumpToPage. Keep polling so navigation completion is not\n // lost while React PDF Viewer is creating the target page DOM.\n if (!scrollContainer || !targetPage) {\n if (attempts >= 40) {\n navigationSettleTimerRef.current = null;\n onNavigationSettled?.({\n pageNumber,\n requestId: request.requestId,\n });\n return;\n }\n\n navigationSettleTimerRef.current = window.setTimeout(checkScrollPosition, 50);\n return;\n }\n\n if (previousScrollTop === scrollContainer.scrollTop) {\n stableChecks += 1;\n } else {\n previousScrollTop = scrollContainer.scrollTop;\n stableChecks = 0;\n }\n\n const scrollRect = scrollContainer.getBoundingClientRect();\n const pageRect = targetPage.getBoundingClientRect();\n const isTargetVisible = Boolean(\n scrollRect &&\n pageRect &&\n pageRect.bottom > scrollRect.top &&\n pageRect.top < scrollRect.bottom\n );\n const hasSettled = stableChecks >= 2 && isTargetVisible;\n const reachedTimeout = attempts >= 40;\n\n if (hasSettled || reachedTimeout) {\n navigationSettleTimerRef.current = null;\n onNavigationSettled?.({\n pageNumber,\n requestId: request.requestId,\n });\n return;\n }\n\n navigationSettleTimerRef.current = window.setTimeout(checkScrollPosition, 50);\n };\n\n navigationSettleTimerRef.current = window.setTimeout(checkScrollPosition, 50);\n }, [onNavigationSettled]);\n\n useEffect(() => () => {\n navigationSettleSequenceRef.current += 1;\n if (navigationSettleTimerRef.current != null) {\n window.clearTimeout(navigationSettleTimerRef.current);\n }\n }, []);\n\n useEffect(() => {\n if (!navigationRequest || totalPages <= 0) return;\n\n const nextPage = Math.min(\n Math.max(Math.trunc(navigationRequest.pageNumber), 1),\n totalPages\n );\n const requestKey = `${navigationRequest.requestId ?? nextPage}:${nextPage}`;\n if (lastNavigationRequestRef.current === requestKey) return;\n\n lastNavigationRequestRef.current = requestKey;\n setCurrentPage(nextPage - 1);\n jumpToPage(nextPage - 1);\n waitForNavigationToSettle(navigationRequest, nextPage);\n }, [jumpToPage, navigationRequest, totalPages, waitForNavigationToSettle]);\n\n if (!pdfUrl) {\n return (\n <ScannedDocCitation\n pages={fallbackPages}\n activeCitationIndex={activeCitationIndex}\n onActiveCitationChange={onActiveCitationChange}\n headerAction={headerAction}\n />\n );\n }\n\n const defaultViewerStyles: React.CSSProperties = {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n width: \"100%\",\n backgroundColor: \"#FAFAFA\",\n };\n\n const scrollToHighlight = () => {\n if (!viewerRef.current) return;\n\n const index = jumpToPageValue - 1;\n const key = orderedKeys[index];\n const page = highlightPages[key];\n const targetPage = page > 0 ? page - 1 : 0;\n\n const pageVisitMap: Record<number, number[]> = {};\n orderedKeys.forEach((k, i) => {\n const p = highlightPages[k];\n if (p > 0) {\n if (!pageVisitMap[p]) pageVisitMap[p] = [];\n pageVisitMap[p].push(i);\n }\n });\n const visits = pageVisitMap[page] || [];\n const occurrence = visits.indexOf(index);\n\n let attempts = 0;\n const maxAttempts = 40;\n\n const doScrollToHighlight = () => {\n attempts++;\n if (attempts > maxAttempts) return;\n\n const scrollContainer = viewerRef.current?.querySelector(\n \".rpv-core__inner-pages\"\n ) as HTMLElement;\n if (!scrollContainer) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const pageElement = viewerRef.current?.querySelector(\n `[data-testid=\"core__page-layer-${targetPage}\"]`\n );\n if (!pageElement) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const scrollContainerRect = scrollContainer.getBoundingClientRect();\n const pageRect = pageElement.getBoundingClientRect();\n const isPageVisible =\n pageRect.top < scrollContainerRect.bottom &&\n pageRect.bottom > scrollContainerRect.top;\n\n if (!isPageVisible) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const allHighlights = pageElement.querySelectorAll(\".rpv-search__highlight\");\n const target = allHighlights[occurrence] as HTMLElement;\n\n if (!target) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const highlightRect = target.getBoundingClientRect();\n const scrollTop =\n scrollContainer.scrollTop +\n (highlightRect.top - scrollContainerRect.top) -\n scrollContainer.clientHeight / 2 +\n highlightRect.height / 2;\n\n scrollContainer.scrollTo({ top: scrollTop, behavior: \"smooth\" });\n };\n\n setTimeout(doScrollToHighlight, 500);\n };\n\n return (\n <div\n ref={viewerRef}\n className={customClasses?.pdfViewerWrapper || \"\"}\n data-disable-pdf-annotations={\n disablePdfAnnotations ? \"true\" : undefined\n }\n data-pdf-page-fit={\n resolvedDefaultScale === SpecialZoomLevel.PageFit ? \"true\" : undefined\n }\n style={{\n height: \"100%\",\n minHeight: 0,\n minWidth: 0,\n overflow: \"hidden\",\n display: \"flex\",\n flexDirection: \"column\",\n ...pdfStyles.pdfViewer,\n ...defaultViewerStyles,\n ...customStyles?.pdfViewer,\n backgroundColor: \"#F1F5F9\",\n }}\n >\n <PdfToolbar\n highlightIndex={highlightIndex}\n totalHighlights={totalHighlights}\n controls={modifiedControls}\n currentPosition={currentPosition}\n pdfName={pdfName}\n onClose={onClose}\n pdfUrl={pdfUrl}\n viewerRef={viewerRef}\n customStyles={customStyles}\n customClasses={customClasses}\n customIcons={customIcons}\n headerAction={headerAction}\n isZoomEnabled={isZoomEnabled}\n showHighlightsAction={showHighlightsAction}\n showFullScreenAction={showFullScreenAction} \n currentSegment={currentSegment}\n segmentTooltipText={segmentTooltipText}\n currentPage={currentPage + 1}\n totalPages={totalPages}\n onPageNavigate={handlePageNavigate}\n onRotatePage={handleRotatePage}\n currentPageRotation={currentPageRotation}\n showRotateButton={showRotateButton}\n />\n <PdfContainer\n defaultScale={resolvedDefaultScale}\n pdfUrl={pdfUrl}\n plugins={plugins}\n customStyles={customStyles}\n onLoad={(e: DocumentLoadEvent) => {\n setTotalPages(e.doc.numPages);\n\n const shouldAutoJumpToFirstMatch =\n !useCoordinates && !useRange && jumpToPageValue <= 0;\n\n if (jumpToPageValue > 0 && !useRange) {\n const index = jumpToPageValue - 1;\n const key = orderedKeys[index];\n const page = highlightPages[key];\n const cordinateTargetHighlight = highlightCordinatePages[index];\n setCursorIndex(index);\n\n console.log(cordinateTargetHighlight, \"cordinateTargetHighlight\");\n if (useCoordinates && cordinateTargetHighlight.pageIndex > 0)\n jumpToPage(cordinateTargetHighlight.pageIndex);\n\n if (page > 0) {\n setTimeout(() => {\n hideNonTargetHighlights(highlightPageSet);\n deduplicateHighlights(page - 1);\n }, 1000);\n if (!useCoordinates) {\n jumpToPage(page - 1);\n }\n }\n } else if (useRange && rangeOfPages && rangeOfPages.length === 2) {\n \n // Async function to handle sequential jumping and waiting\n const scanRangeSequence = async () => {\n const [startPage, endPage] = rangeOfPages;\n \n for (let p = startPage; p <= endPage; p++) {\n const targetPageIndex = p - 1;\n \n jumpToPage(targetPageIndex);\n \n // Pause execution for 1 second to let the DOM render the highlights\n await new Promise((resolve) => setTimeout(resolve, 1000));\n \n hideNonTargetHighlights(highlightPageSet);\n const matchSize = deduplicateHighlights(targetPageIndex);\n \n // If the returned size is greater than 0, a match was found. Stop the loop.\n if (matchSize && matchSize > 0) {\n break; \n }\n }\n };\n\n scanRangeSequence();\n\n } else if (!useCoordinates && highlightPages) {\n const firstKey = orderedKeys.find(k => highlightPages[k] > 0);\n if (firstKey !== undefined) {\n const firstPage = highlightPages[firstKey] - 1;\n jumpToPage(firstPage);\n setTimeout(() => {\n hideNonTargetHighlights(highlightPageSet);\n deduplicateHighlights(firstPage);\n }, 1000);\n }\n }\n\n requestAnimationFrame(() => {\n if (shouldAutoJumpToFirstMatch) {\n tryJump();\n }\n if (!useCoordinates && jumpToPageValue > 0 && !useRange) {\n scrollToHighlight();\n }\n });\n }}\n onPageChange={(e: PageChangeEvent) => {\n const currentPage = e.currentPage;\n setCurrentPage(currentPage);\n onCurrentPageChange?.(currentPage + 1);\n if (!highlightPageSet.has(currentPage)) {\n hideNonTargetHighlights(highlightPageSet);\n return;\n }\n deduplicateHighlights(currentPage);\n hideNonTargetHighlights(highlightPageSet);\n }}\n renderPage={resolvedRenderPage}\n setRenderRange={setRenderRange}\n />\n </div>\n );\n};\n\nexport default PdfViewer;\n"],"names":["pdfUrl","highlightText","highlightPages","highlightCordinatePages","highlightColor","activeHighlightColor","jumpToPageValue","pdfName","onClose","customStyles","customClasses","customIcons","useCoordinates","fallbackPages","activeCitationIndex","onActiveCitationChange","headerAction","isZoomEnabled","showHighlightsAction","defaultScale","SpecialZoomLevel","ActualSize","useRange","rangeOfPages","showFullScreenAction","showRotateButton","segments","title","start_page","end_page","page_count","segmentTooltipText","onCurrentPageChange","navigationRequest","onNavigationSettled","disablePdfAnnotations","disablePdfTextLayer","renderPage","setRenderRange","viewerRef","useRef","resolvedDefaultScale","scale","PageFit","PageWidth","getResolvedScale","currentPage","setCurrentPage","useState","totalPages","setTotalPages","currentPageRotation","setCurrentPageRotation","lastNavigationRequestRef","navigationSettleTimerRef","navigationSettleSequenceRef","mutationObserverRef","pdfIdentifier","useMemo","URL","window","location","origin","pathname","split","pop","useEffect","rotationManager","setPdfIdentifier","onRotationChange","pageNum","angle","observer","MutationObserver","pageElements","current","querySelectorAll","registeredPages","Set","forEach","pageElement","match","getAttribute","length","pageNumber","parseInt","has","registerPageElement","add","observe","childList","subtree","attributes","disconnect","clearAll","getRotation","resolvedRenderPage","props","resolvedTextLayerChildren","jsx","style","display","children","textLayer","resolvedProps","annotationLayer","jsxs","Fragment","canvasLayer","highlightPageSet","map","h","pageIndex","set","Object","values","p","removeRedundantHighlightTexts","texts","filter","text","some","otherText","includes","highlightIndex","setHighlightIndex","cursorIndex","setCursorIndex","orderedKeys","totalHighlights","getValidPosition","tryJump","jumpToPage","zoomTo","plugins","controls","hideNonTargetHighlights","deduplicateHighlights","scrollToCoord","PdfHighlightControls","currentPosition","currentSegment","find","segment","modifiedControls","goToNext","goToPrevious","waitForNavigationToSettle","React","useCallback","request","settleSequence","clearTimeout","previousScrollTop","stableChecks","attempts","checkScrollPosition","scrollContainer","querySelector","targetPage","requestId","setTimeout","scrollTop","scrollRect","getBoundingClientRect","pageRect","isTargetVisible","Boolean","bottom","top","nextPage","Math","min","max","trunc","requestKey","ScannedDocCitation","pages","ref","className","pdfViewerWrapper","height","minHeight","minWidth","overflow","flexDirection","pdfStyles","pdfViewer","width","backgroundColor","PdfToolbar","onPageNavigate","onRotatePage","rotatePageBy90","PdfContainer","onLoad","e","doc","numPages","shouldAutoJumpToFirstMatch","index","key","page","cordinateTargetHighlight","console","log","async","startPage","endPage","targetPageIndex","Promise","resolve","matchSize","scanRangeSequence","firstKey","k","firstPage","requestAnimationFrame","pageVisitMap","i","push","occurrence","indexOf","doScrollToHighlight","scrollContainerRect","target","highlightRect","clientHeight","scrollTo","behavior","scrollToHighlight","onPageChange"],"mappings":"guBA+HkB,EAChBA,SACAC,gBACAC,iBACAC,0BACAC,iBAAiB,SACjBC,uBAAuB,UACvBC,kBAAkB,EAClBC,UACAC,UACAC,eACAC,gBACAC,cACAC,iBACAC,gBACAC,sBACAC,yBACAC,eACAC,iBAAgB,EAChBC,wBAAuB,EACvBC,eAAeC,EAAiBA,iBAAAC,WAChCC,YAAW,EACXC,eAAe,KACfC,wBAAqB,EACrBC,oBAAmB,EACnBC,WAAW,CACT,CACEC,MAAO,aACPC,WAAY,GACZC,SAAU,GACVC,WAAY,IAGhBC,qBACAC,sBACAC,oBACAC,sBACAC,yBAAwB,EACxBC,uBAAsB,EACtBC,aACAC,qBAGM,MAAAC,EAAYC,SAA8B,MAC1CC,EAvEiB,CACvBC,IAEA,OAAQA,GACN,IAAK,aACH,OAAOtB,EAAAA,iBAAiBC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C,EAAsBnE,EAAgBO,wBACtCC,EAAWrF,EAAYoF,wBAK7B,KAHEC,EAASI,IAAMuD,EAAoBxD,QACnCH,EAASG,OAASwD,EAAoBvD,KAItC,YADAR,WAAW8D,EAAqB,KAI5B,MACAE,EADgBjJ,EAAYJ,iBAAiB,0BACtBiJ,GAE7B,IAAKI,EAEH,YADAhE,WAAW8D,EAAqB,KAI5B,MAAAG,EAAgBD,EAAO7D,wBACvBF,EACJL,EAAgBK,WACfgE,EAAczD,IAAMuD,EAAoBvD,KACzCZ,EAAgBsE,aAAe,EAC/BD,EAAc7C,OAAS,EAEzBxB,EAAgBuE,SAAS,CAAE3D,IAAKP,EAAWmE,SAAU,YAGvDpE,WAAW8D,EAAqB,MA6HJO,MAIxBC,aAAenC,IACb,MAAMtJ,EAAcsJ,EAAEtJ,YACtBC,EAAeD,GACfd,IAAsBc,EAAc,GAC/B+D,GAAiBvB,IAAIxC,IAI1B2F,GAAsB3F,GACtB0F,GAAwB3B,KAJtB2B,GAAwB3B,KAM5BxE,WAAY2D,GACZ1D"}
1
+ {"version":3,"file":"PdfViewer.js","sources":["../../../../src/features/PdfViewer/PdfViewer.tsx"],"sourcesContent":["import { DocumentLoadEvent, PageChangeEvent, RenderPage, SetRenderRange, SpecialZoomLevel } from \"@react-pdf-viewer/core\";\nimport PdfContainer from \"./PdfContainer\";\nimport PdfToolbar from \"./PdfToolbar\";\nimport { pdfStyles } from \"./PdfStyle\";\nimport { PdfHighlightControls } from \"./usePdfHighlight\";\nimport { rotationManager } from \"./rotationManager\";\nimport \"@react-pdf-viewer/zoom/lib/styles/index.css\";\nimport \"@react-pdf-viewer/page-navigation/lib/styles/index.css\";\nimport \"@react-pdf-viewer/core/lib/styles/index.css\";\nimport \"@react-pdf-viewer/search/lib/styles/index.css\";\nimport React, { useMemo, useRef, useEffect, useState } from \"react\";\nimport ScannedDocCitation, { CitationPage } from \"../ScannedDocCitation/ScannedDocCitation\";\nimport \"./PdfViewer.css\";\n\nexport type CustomIconsType = {\n pdfIcon?: React.ReactNode;\n fullScreenIcon?: React.ReactNode;\n downloadIcon?: React.ReactNode;\n closeIcon?: React.ReactNode;\n};\n\nexport type CustomStylesType = {\n pdfViewer?: React.CSSProperties;\n header?: React.CSSProperties;\n pdfIconWrapper?: React.CSSProperties;\n pdfName?: React.CSSProperties;\n pdfContainer?: React.CSSProperties;\n emptyState?: React.CSSProperties;\n};\n\nexport type CustomClassesType = {\n header?: string;\n pdfName?: string;\n actionButton?: string;\n pdfViewerWrapper?: string;\n};\n\nexport type PdfSegment = {\n title: string;\n start_page: number;\n end_page: number;\n page_count: number;\n};\n\ntype PdfScaleOption =\n | \"ActualSize\"\n | \"PageFit\"\n | \"PageWidth\"\n | number;\nexport interface PdfNavigationRequest {\n pageNumber: number;\n /** Change this value to navigate to the same page more than once. */\n requestId?: string | number;\n}\n\nexport interface PdfNavigationSettledEvent extends PdfNavigationRequest {\n pageNumber: number;\n}\n\nexport interface PdfViewerProps {\n pdfUrl?: string;\n highlightText: string[];\n highlightPages?: any;\n highlightCordinatePages: HighlightArea[];\n highlightColor?: string;\n activeHighlightColor?: string;\n jumpToPageValue?: number;\n pdfName?: string;\n onClose?: () => void;\n item?: any;\n customStyles?: CustomStylesType;\n customClasses?: CustomClassesType;\n customIcons?: CustomIconsType;\n useCoordinates: boolean;\n fallbackPages?: CitationPage[];\n activeCitationIndex?: number;\n onActiveCitationChange?: (index: number) => void;\n headerAction?: {\n icon?: React.ReactNode;\n onClick?: () => void;\n tooltip?: string;\n };\n isZoomEnabled?: boolean;\n showHighlightsAction?: boolean;\n defaultScale?: PdfScaleOption;\n useRange?: boolean; //\n rangeOfPages?: number[] | null;\n showFullScreenAction?: boolean;\n showRotateButton?: boolean;\n segments?: PdfSegment[];\n segmentTooltipText?: string;\n onCurrentPageChange?: (pageNumber: number) => void;\n navigationRequest?: PdfNavigationRequest | null;\n onNavigationSettled?: (event: PdfNavigationSettledEvent) => void;\n disablePdfAnnotations?: boolean;\n disablePdfTextLayer?: boolean;\n renderPage?: RenderPage;\n setRenderRange?: SetRenderRange;\n}\n\nconst getResolvedScale = (\n scale?: PdfScaleOption\n): SpecialZoomLevel | number => {\n switch (scale) {\n case \"ActualSize\":\n return SpecialZoomLevel.ActualSize;\n\n case \"PageFit\":\n return SpecialZoomLevel.PageFit;\n\n case \"PageWidth\":\n return SpecialZoomLevel.PageWidth;\n\n default:\n return scale ?? SpecialZoomLevel.PageWidth;\n }\n};\n\nexport type HighlightArea = {\n pageIndex: number;\n left: number;\n top: number;\n width: number;\n height: number;\n pageNumber?: number;\n};\n\nconst PdfViewer = ({\n pdfUrl,\n highlightText,\n highlightPages,\n highlightCordinatePages,\n highlightColor = \"yellow\",\n activeHighlightColor = \"#f7dc51\",\n jumpToPageValue = 0,\n pdfName,\n onClose,\n customStyles,\n customClasses,\n customIcons,\n useCoordinates,\n fallbackPages,\n activeCitationIndex,\n onActiveCitationChange,\n headerAction,\n isZoomEnabled = true,\n showHighlightsAction = true,\n defaultScale = SpecialZoomLevel.ActualSize,\n useRange = false,\n rangeOfPages = null,\n showFullScreenAction=true,\n showRotateButton = false,\n segments = [\n {\n title: \"Document 2\",\n start_page: 52,\n end_page: 52,\n page_count: 1,\n },\n ],\n segmentTooltipText,\n onCurrentPageChange,\n navigationRequest,\n onNavigationSettled,\n disablePdfAnnotations = false,\n disablePdfTextLayer = false,\n renderPage,\n setRenderRange,\n}: PdfViewerProps) => {\n\n const viewerRef = useRef<HTMLDivElement | null>(null);\n const resolvedDefaultScale = getResolvedScale(defaultScale);\n const [currentPage, setCurrentPage] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [currentPageRotation, setCurrentPageRotation] = useState(0);\n const lastNavigationRequestRef = useRef<string | null>(null);\n const navigationSettleTimerRef = useRef<number | null>(null);\n const navigationSettleSequenceRef = useRef(0);\n const mutationObserverRef = useRef<MutationObserver | null>(null);\n\n // Generate PDF identifier for localStorage from URL\n const pdfIdentifier = useMemo(() => {\n if (!pdfUrl) return '';\n // Use last part of URL or hash it\n try {\n const url = new URL(pdfUrl, window.location.origin);\n return url.pathname.split('/').pop() || 'default';\n } catch {\n return 'default';\n }\n }, [pdfUrl]);\n\n // Set up rotation manager with PDF identifier\n useEffect(() => {\n if (pdfIdentifier) {\n rotationManager.setPdfIdentifier(pdfIdentifier);\n }\n }, [pdfIdentifier]);\n\n // Handler for rotating current page (no state update)\n const handleRotatePage = () => {\n const pageNumber = currentPage + 1;\n rotationManager.rotatePageBy90(pageNumber);\n // Manually update state to reflect rotation in UI\n setCurrentPageRotation(rotationManager.getRotation(pageNumber));\n };\n\n // Subscribe to rotation changes to sync UI state\n useEffect(() => {\n const unsubscribe = rotationManager.onRotationChange((pageNum, angle) => {\n // Only update state if current page rotated\n if (pageNum === currentPage + 1) {\n setCurrentPageRotation(angle);\n }\n });\n\n return unsubscribe;\n }, [currentPage]);\n\n // Register page elements with rotation manager\n useEffect(() => {\n const observer = new MutationObserver(() => {\n // Find all newly rendered page elements\n const pageElements = viewerRef.current?.querySelectorAll(\n '[data-testid^=\"core__page-layer-\"]'\n );\n\n const registeredPages = new Set<number>();\n\n pageElements?.forEach((pageElement) => {\n const match = (pageElement as HTMLElement)\n .getAttribute('data-testid')\n ?.match(/core__page-layer-(\\d+)/);\n if (match && match.length >= 2) {\n const pageIndex = parseInt(match[1], 10);\n const pageNumber = pageIndex + 1;\n\n // Only register once per page\n if (!registeredPages.has(pageNumber)) {\n rotationManager.registerPageElement(pageNumber, pageElement as HTMLElement);\n registeredPages.add(pageNumber);\n }\n }\n });\n });\n\n if (viewerRef.current) {\n observer.observe(viewerRef.current, {\n childList: true,\n subtree: true,\n attributes: false,\n });\n mutationObserverRef.current = observer;\n }\n\n return () => {\n observer.disconnect();\n mutationObserverRef.current = null;\n };\n }, []);\n\n // Clean up when unmounting\n useEffect(() => {\n return () => {\n rotationManager.clearAll();\n if (mutationObserverRef.current) {\n mutationObserverRef.current.disconnect();\n }\n };\n }, []);\n\n // Update current page rotation when page changes\n useEffect(() => {\n const pageNumber = currentPage + 1;\n setCurrentPageRotation(rotationManager.getRotation(pageNumber));\n }, [currentPage]);\n const resolvedRenderPage = useMemo<RenderPage | undefined>(() => {\n if (!disablePdfAnnotations && !disablePdfTextLayer) return renderPage;\n\n return (props) => {\n const resolvedTextLayerChildren = disablePdfTextLayer ? (\n <div aria-hidden=\"true\" style={{ display: \"none\" }}>\n {props.textLayer.children}\n </div>\n ) : props.textLayer.children;\n const resolvedProps = {\n ...props,\n annotationLayer: {\n ...props.annotationLayer,\n children: disablePdfAnnotations ? null : props.annotationLayer.children,\n },\n textLayer: {\n ...props.textLayer,\n children: resolvedTextLayerChildren,\n },\n };\n\n const renderedPage = renderPage\n ? renderPage(resolvedProps)\n : (\n <>\n {props.canvasLayer.children}\n {resolvedTextLayerChildren}\n {!disablePdfAnnotations && props.annotationLayer.children}\n </>\n );\n\n return renderedPage;\n };\n }, [disablePdfAnnotations, disablePdfTextLayer, renderPage]);\n\n const cleanHighlightTexts = (texts: string[]): string[] => {\n if (!texts || texts.length === 0) return texts;\n return texts.filter((text) => {\n return !texts.some(\n (otherText) => otherText !== text && otherText.includes(text)\n );\n });\n };\n\n const highlightPageSet = useMemo(() => {\n if (useCoordinates) {\n return new Set(highlightCordinatePages.map((h: any) => h.pageIndex));\n } else {\n const set = new Set<number>();\n Object.values(highlightPages).forEach((p: any) => {\n if (p > 0) set.add(p - 1);\n });\n return set;\n }\n }, [highlightCordinatePages, highlightPages, useCoordinates]);\n\n const removeRedundantHighlightTexts = cleanHighlightTexts(highlightText);\n\n const {\n highlightIndex,\n setHighlightIndex,\n cursorIndex,\n setCursorIndex,\n orderedKeys,\n totalHighlights,\n getValidPosition,\n tryJump,\n jumpToPage,\n zoomTo,\n plugins,\n controls,\n hideNonTargetHighlights,\n deduplicateHighlights,\n scrollToCoord,\n } = PdfHighlightControls(\n removeRedundantHighlightTexts,\n !useCoordinates ? highlightPages : {},\n viewerRef,\n highlightPageSet,\n useCoordinates,\n useCoordinates ? highlightCordinatePages : [],\n highlightColor,\n activeHighlightColor\n );\n\n const currentPosition = getValidPosition(cursorIndex);\n const currentSegment = useMemo(() => {\n const pageNumber = currentPage + 1;\n return segments.find(\n (segment) =>\n pageNumber >= segment.start_page && pageNumber <= segment.end_page\n );\n }, [currentPage, segments]);\n\n // sync external activeCitationIndex → cursorIndex\n useEffect(() => {\n if (activeCitationIndex === undefined) return;\n if (activeCitationIndex === cursorIndex) return;\n setCursorIndex(activeCitationIndex);\n }, [activeCitationIndex]);\n\n // wrap controls to fire onActiveCitationChange\n const handleGoToNext = () => {\n if (cursorIndex >= totalHighlights - 1) return;\n controls.goToNext();\n if (onActiveCitationChange) onActiveCitationChange(cursorIndex + 1);\n };\n\n const handleGoToPrevious = () => {\n if (cursorIndex <= 0) return;\n controls.goToPrevious();\n if (onActiveCitationChange) onActiveCitationChange(cursorIndex - 1);\n };\n\n const modifiedControls = {\n ...controls,\n goToNext: handleGoToNext,\n goToPrevious: handleGoToPrevious,\n };\n\n const handlePageNavigate = (pageNumber: number) => {\n const nextPage = Math.min(Math.max(pageNumber, 1), totalPages || pageNumber);\n setCurrentPage(nextPage - 1);\n jumpToPage(nextPage - 1);\n };\n\n const waitForNavigationToSettle = React.useCallback((\n request: PdfNavigationRequest,\n pageNumber: number\n ) => {\n navigationSettleSequenceRef.current += 1;\n const settleSequence = navigationSettleSequenceRef.current;\n if (navigationSettleTimerRef.current != null) {\n window.clearTimeout(navigationSettleTimerRef.current);\n }\n\n let previousScrollTop: number | null = null;\n let stableChecks = 0;\n let attempts = 0;\n\n const checkScrollPosition = () => {\n if (navigationSettleSequenceRef.current !== settleSequence) return;\n\n attempts += 1;\n\n const scrollContainer = viewerRef.current?.querySelector(\n '.rpv-core__inner-pages'\n ) as HTMLElement | null;\n const targetPage = viewerRef.current?.querySelector(\n `[data-testid=\"core__page-layer-${pageNumber - 1}\"]`\n ) as HTMLElement | null;\n\n // Virtualized page layers are not guaranteed to be mounted on the first\n // check after jumpToPage. Keep polling so navigation completion is not\n // lost while React PDF Viewer is creating the target page DOM.\n if (!scrollContainer || !targetPage) {\n if (attempts >= 40) {\n navigationSettleTimerRef.current = null;\n onNavigationSettled?.({\n pageNumber,\n requestId: request.requestId,\n });\n return;\n }\n\n navigationSettleTimerRef.current = window.setTimeout(checkScrollPosition, 50);\n return;\n }\n\n if (previousScrollTop === scrollContainer.scrollTop) {\n stableChecks += 1;\n } else {\n previousScrollTop = scrollContainer.scrollTop;\n stableChecks = 0;\n }\n\n const scrollRect = scrollContainer.getBoundingClientRect();\n const pageRect = targetPage.getBoundingClientRect();\n const isTargetVisible = Boolean(\n scrollRect &&\n pageRect &&\n pageRect.bottom > scrollRect.top &&\n pageRect.top < scrollRect.bottom\n );\n const hasSettled = stableChecks >= 2 && isTargetVisible;\n const reachedTimeout = attempts >= 40;\n\n if (hasSettled || reachedTimeout) {\n navigationSettleTimerRef.current = null;\n onNavigationSettled?.({\n pageNumber,\n requestId: request.requestId,\n });\n return;\n }\n\n navigationSettleTimerRef.current = window.setTimeout(checkScrollPosition, 50);\n };\n\n navigationSettleTimerRef.current = window.setTimeout(checkScrollPosition, 50);\n }, [onNavigationSettled]);\n\n useEffect(() => () => {\n navigationSettleSequenceRef.current += 1;\n if (navigationSettleTimerRef.current != null) {\n window.clearTimeout(navigationSettleTimerRef.current);\n }\n }, []);\n\n useEffect(() => {\n if (!navigationRequest || totalPages <= 0) return;\n\n const nextPage = Math.min(\n Math.max(Math.trunc(navigationRequest.pageNumber), 1),\n totalPages\n );\n const requestKey = `${navigationRequest.requestId ?? nextPage}:${nextPage}`;\n if (lastNavigationRequestRef.current === requestKey) return;\n\n lastNavigationRequestRef.current = requestKey;\n setCurrentPage(nextPage - 1);\n jumpToPage(nextPage - 1);\n waitForNavigationToSettle(navigationRequest, nextPage);\n }, [jumpToPage, navigationRequest, totalPages, waitForNavigationToSettle]);\n\n if (!pdfUrl) {\n return (\n <ScannedDocCitation\n pages={fallbackPages}\n activeCitationIndex={activeCitationIndex}\n onActiveCitationChange={onActiveCitationChange}\n headerAction={headerAction}\n />\n );\n }\n\n const defaultViewerStyles: React.CSSProperties = {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n width: \"100%\",\n backgroundColor: \"#FAFAFA\",\n };\n\n const scrollToHighlight = () => {\n if (!viewerRef.current) return;\n\n const index = jumpToPageValue - 1;\n const key = orderedKeys[index];\n const page = highlightPages[key];\n const targetPage = page > 0 ? page - 1 : 0;\n\n const pageVisitMap: Record<number, number[]> = {};\n orderedKeys.forEach((k, i) => {\n const p = highlightPages[k];\n if (p > 0) {\n if (!pageVisitMap[p]) pageVisitMap[p] = [];\n pageVisitMap[p].push(i);\n }\n });\n const visits = pageVisitMap[page] || [];\n const occurrence = visits.indexOf(index);\n\n let attempts = 0;\n const maxAttempts = 40;\n\n const doScrollToHighlight = () => {\n attempts++;\n if (attempts > maxAttempts) return;\n\n const scrollContainer = viewerRef.current?.querySelector(\n \".rpv-core__inner-pages\"\n ) as HTMLElement;\n if (!scrollContainer) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const pageElement = viewerRef.current?.querySelector(\n `[data-testid=\"core__page-layer-${targetPage}\"]`\n );\n if (!pageElement) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const scrollContainerRect = scrollContainer.getBoundingClientRect();\n const pageRect = pageElement.getBoundingClientRect();\n const isPageVisible =\n pageRect.top < scrollContainerRect.bottom &&\n pageRect.bottom > scrollContainerRect.top;\n\n if (!isPageVisible) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const allHighlights = pageElement.querySelectorAll(\".rpv-search__highlight\");\n const target = allHighlights[occurrence] as HTMLElement;\n\n if (!target) {\n setTimeout(doScrollToHighlight, 100);\n return;\n }\n\n const highlightRect = target.getBoundingClientRect();\n const scrollTop =\n scrollContainer.scrollTop +\n (highlightRect.top - scrollContainerRect.top) -\n scrollContainer.clientHeight / 2 +\n highlightRect.height / 2;\n\n scrollContainer.scrollTo({ top: scrollTop, behavior: \"smooth\" });\n };\n\n setTimeout(doScrollToHighlight, 500);\n };\n\n return (\n <div\n ref={viewerRef}\n className={customClasses?.pdfViewerWrapper || \"\"}\n data-disable-pdf-annotations={\n disablePdfAnnotations ? \"true\" : undefined\n }\n data-pdf-page-fit={\n resolvedDefaultScale === SpecialZoomLevel.PageFit ? \"true\" : undefined\n }\n style={{\n height: \"100%\",\n minHeight: 0,\n minWidth: 0,\n overflow: \"hidden\",\n display: \"flex\",\n flexDirection: \"column\",\n ...pdfStyles.pdfViewer,\n ...defaultViewerStyles,\n ...customStyles?.pdfViewer,\n backgroundColor: \"#F1F5F9\",\n }}\n >\n <PdfToolbar\n highlightIndex={highlightIndex}\n totalHighlights={totalHighlights}\n controls={modifiedControls}\n currentPosition={currentPosition}\n pdfName={pdfName}\n onClose={onClose}\n pdfUrl={pdfUrl}\n viewerRef={viewerRef}\n customStyles={customStyles}\n customClasses={customClasses}\n customIcons={customIcons}\n headerAction={headerAction}\n isZoomEnabled={isZoomEnabled}\n showHighlightsAction={showHighlightsAction}\n showFullScreenAction={showFullScreenAction} \n currentSegment={currentSegment}\n segmentTooltipText={segmentTooltipText}\n currentPage={currentPage + 1}\n totalPages={totalPages}\n onPageNavigate={handlePageNavigate}\n onRotatePage={handleRotatePage}\n currentPageRotation={currentPageRotation}\n showRotateButton={showRotateButton}\n />\n <PdfContainer\n defaultScale={resolvedDefaultScale}\n pdfUrl={pdfUrl}\n plugins={plugins}\n customStyles={customStyles}\n onLoad={(e: DocumentLoadEvent) => {\n setTotalPages(e.doc.numPages);\n\n const shouldAutoJumpToFirstMatch =\n !useCoordinates && !useRange && jumpToPageValue <= 0;\n\n if (jumpToPageValue > 0 && !useRange) {\n const index = jumpToPageValue - 1;\n const key = orderedKeys[index];\n const page = highlightPages[key];\n const cordinateTargetHighlight = highlightCordinatePages[index];\n setCursorIndex(index);\n\n console.log(cordinateTargetHighlight, \"cordinateTargetHighlight\");\n if (useCoordinates && cordinateTargetHighlight.pageIndex > 0)\n jumpToPage(cordinateTargetHighlight.pageIndex);\n\n if (page > 0) {\n setTimeout(() => {\n hideNonTargetHighlights(highlightPageSet);\n deduplicateHighlights(page - 1);\n }, 1000);\n if (!useCoordinates) {\n jumpToPage(page - 1);\n }\n }\n } else if (useRange && rangeOfPages && rangeOfPages.length === 2) {\n \n // Async function to handle sequential jumping and waiting\n const scanRangeSequence = async () => {\n const [startPage, endPage] = rangeOfPages;\n \n for (let p = startPage; p <= endPage; p++) {\n const targetPageIndex = p - 1;\n \n jumpToPage(targetPageIndex);\n \n // Pause execution for 1 second to let the DOM render the highlights\n await new Promise((resolve) => setTimeout(resolve, 1000));\n \n hideNonTargetHighlights(highlightPageSet);\n const matchSize = deduplicateHighlights(targetPageIndex);\n \n // If the returned size is greater than 0, a match was found. Stop the loop.\n if (matchSize && matchSize > 0) {\n break; \n }\n }\n };\n\n scanRangeSequence();\n\n } else if (!useCoordinates && highlightPages) {\n const firstKey = orderedKeys.find(k => highlightPages[k] > 0);\n if (firstKey !== undefined) {\n const firstPage = highlightPages[firstKey] - 1;\n jumpToPage(firstPage);\n setTimeout(() => {\n hideNonTargetHighlights(highlightPageSet);\n deduplicateHighlights(firstPage);\n }, 1000);\n }\n }\n\n requestAnimationFrame(() => {\n if (shouldAutoJumpToFirstMatch) {\n tryJump();\n }\n if (!useCoordinates && jumpToPageValue > 0 && !useRange) {\n scrollToHighlight();\n }\n });\n }}\n onPageChange={(e: PageChangeEvent) => {\n const currentPage = e.currentPage;\n setCurrentPage(currentPage);\n onCurrentPageChange?.(currentPage + 1);\n if (!highlightPageSet.has(currentPage)) {\n hideNonTargetHighlights(highlightPageSet);\n return;\n }\n deduplicateHighlights(currentPage);\n hideNonTargetHighlights(highlightPageSet);\n }}\n renderPage={resolvedRenderPage}\n setRenderRange={setRenderRange}\n />\n </div>\n );\n};\n\nexport default PdfViewer;\n"],"names":["pdfUrl","highlightText","highlightPages","highlightCordinatePages","highlightColor","activeHighlightColor","jumpToPageValue","pdfName","onClose","customStyles","customClasses","customIcons","useCoordinates","fallbackPages","activeCitationIndex","onActiveCitationChange","headerAction","isZoomEnabled","showHighlightsAction","defaultScale","SpecialZoomLevel","ActualSize","useRange","rangeOfPages","showFullScreenAction","showRotateButton","segments","title","start_page","end_page","page_count","segmentTooltipText","onCurrentPageChange","navigationRequest","onNavigationSettled","disablePdfAnnotations","disablePdfTextLayer","renderPage","setRenderRange","viewerRef","useRef","resolvedDefaultScale","scale","PageFit","PageWidth","getResolvedScale","currentPage","setCurrentPage","useState","totalPages","setTotalPages","currentPageRotation","setCurrentPageRotation","lastNavigationRequestRef","navigationSettleTimerRef","navigationSettleSequenceRef","mutationObserverRef","pdfIdentifier","useMemo","URL","window","location","origin","pathname","split","pop","useEffect","rotationManager","setPdfIdentifier","onRotationChange","pageNum","angle","observer","MutationObserver","pageElements","current","querySelectorAll","registeredPages","Set","forEach","pageElement","match","getAttribute","length","pageNumber","parseInt","has","registerPageElement","add","observe","childList","subtree","attributes","disconnect","clearAll","getRotation","resolvedRenderPage","props","resolvedTextLayerChildren","jsx","style","display","children","textLayer","resolvedProps","annotationLayer","jsxs","Fragment","canvasLayer","highlightPageSet","map","h","pageIndex","set","Object","values","p","removeRedundantHighlightTexts","texts","filter","text","some","otherText","includes","highlightIndex","setHighlightIndex","cursorIndex","setCursorIndex","orderedKeys","totalHighlights","getValidPosition","tryJump","jumpToPage","zoomTo","plugins","controls","hideNonTargetHighlights","deduplicateHighlights","scrollToCoord","PdfHighlightControls","currentPosition","currentSegment","find","segment","modifiedControls","goToNext","goToPrevious","waitForNavigationToSettle","React","useCallback","request","settleSequence","clearTimeout","previousScrollTop","stableChecks","attempts","checkScrollPosition","scrollContainer","querySelector","targetPage","requestId","setTimeout","scrollTop","scrollRect","getBoundingClientRect","pageRect","isTargetVisible","Boolean","bottom","top","nextPage","Math","min","max","trunc","requestKey","ScannedDocCitation","pages","ref","className","pdfViewerWrapper","height","minHeight","minWidth","overflow","flexDirection","pdfStyles","pdfViewer","width","backgroundColor","PdfToolbar","onPageNavigate","onRotatePage","rotatePageBy90","PdfContainer","onLoad","e","doc","numPages","shouldAutoJumpToFirstMatch","index","key","page","cordinateTargetHighlight","console","log","async","startPage","endPage","targetPageIndex","Promise","resolve","matchSize","scanRangeSequence","firstKey","k","firstPage","requestAnimationFrame","pageVisitMap","i","push","occurrence","indexOf","doScrollToHighlight","scrollContainerRect","target","highlightRect","clientHeight","scrollTo","behavior","scrollToHighlight","onPageChange"],"mappings":"ksBA+HkB,EAChBA,SACAC,gBACAC,iBACAC,0BACAC,iBAAiB,SACjBC,uBAAuB,UACvBC,kBAAkB,EAClBC,UACAC,UACAC,eACAC,gBACAC,cACAC,iBACAC,gBACAC,sBACAC,yBACAC,eACAC,iBAAgB,EAChBC,wBAAuB,EACvBC,eAAeC,EAAiBA,iBAAAC,WAChCC,YAAW,EACXC,eAAe,KACfC,wBAAqB,EACrBC,oBAAmB,EACnBC,WAAW,CACT,CACEC,MAAO,aACPC,WAAY,GACZC,SAAU,GACVC,WAAY,IAGhBC,qBACAC,sBACAC,oBACAC,sBACAC,yBAAwB,EACxBC,uBAAsB,EACtBC,aACAC,qBAGM,MAAAC,EAAYC,SAA8B,MAC1CC,EAvEiB,CACvBC,IAEA,OAAQA,GACN,IAAK,aACH,OAAOtB,EAAAA,iBAAiBC,WAE1B,IAAK,UACH,OAAOD,EAAAA,iBAAiBuB,QAE1B,IAAK,YACH,OAAOvB,EAAAA,iBAAiBwB,UAE1B,QACE,OAAOF,GAAStB,EAAiBA,iBAAAwB,YAyDRC,CAAiB1B,IACvC2B,EAAaC,GAAkBC,WAAS,IACxCC,EAAYC,GAAiBF,WAAS,IACtCG,EAAqBC,GAA0BJ,WAAS,GACzDK,EAA2Bb,SAAsB,MACjDc,EAA2Bd,SAAsB,MACjDe,EAA8Bf,SAAO,GACrCgB,GAAsBhB,SAAgC,MAGtDiB,GAAgBC,EAAAA,QAAQ,KACxB,IAAC1D,EAAe,MAAA,GAEhB,IAEF,OADY,IAAI2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AAU,YAGvDpE,WAAW8D,EAAqB,MA6HJO,MAIxBC,aAAenC,IACb,MAAMtJ,EAAcsJ,EAAEtJ,YACtBC,EAAeD,GACfd,IAAsBc,EAAc,GAC/B+D,GAAiBvB,IAAIxC,IAI1B2F,GAAsB3F,GACtB0F,GAAwB3B,KAJtB2B,GAAwB3B,KAM5BxE,WAAY2D,GACZ1D"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");function i(...e){return e.filter(Boolean).join(" ")}require("./ReviewPanel.css.js");const s=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2"})}),r=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M18 15l-6-6-6 6",stroke:"currentColor",strokeWidth:"2"})}),n=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-maximize2-icon lucide-maximize-2 rp-border",children:[e.jsx("path",{d:"M15 3h6v6"}),e.jsx("path",{d:"m21 3-7 7"}),e.jsx("path",{d:"m3 21 7-7"}),e.jsx("path",{d:"M9 21H3v-6"})]}),c=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-minimize2-icon lucide-minimize-2 rp-border",children:[e.jsx("path",{d:"m14 10 7-7"}),e.jsx("path",{d:"M20 10h-6V4"}),e.jsx("path",{d:"m3 21 7-7"}),e.jsx("path",{d:"M4 14h6v6"})]}),d=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#87c66b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-circle-check-icon lucide-circle-check",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),a={dark:{"--rp-bg":"#000","--rp-text":"#fff","--rp-active-bg":"#1f2930","--rp-muted":"#8c8c8c","--rp-border":"#434343","--rp-success":"#4ade80"},light:{"--rp-bg":"#fff","--rp-text":"#000","--rp-active-bg":"#e5eef5","--rp-muted":"#8c8c8c","--rp-border":"#434343","--rp-success":"#16a34a"}};function o({item:t,index:s,isActive:r,status:n="pending",config:c,classes:a}){const{textKey:o="text",showStatusIcon:l=!0,showRightBadge:h=!0,rightBadgeText:x}=c;return e.jsxs("div",{className:i("rp-item",r&&"rp-item--active","reviewed"===n&&"rp-item--reviewed",a?.item?.root,r&&a?.item?.active,"reviewed"===n&&a?.item?.reviewed),children:[l&&"reviewed"===n&&e.jsx("span",{className:a?.item?.icon,children:e.jsx(d,{})}),e.jsx("span",{className:i("rp-item-text",a?.item?.text),children:String(t[o])}),h&&x&&e.jsx("span",{className:i("rp-item-badge",a?.item?.rightBadge),children:x(t,s)})]})}exports.ReviewPanel=({data:d,renderItem:l,itemConfig:h,classes:x,keyExtractor:p=(e,t)=>t.toString(),activeIndex:m,onActiveChange:u,expanded:v,onExpandedChange:j,headerLeftSlot:g,footerSlot:w,headerRightSlot:f,getItemStatus:k,theme:b="dark",className:N})=>{const[C,B]=t.useState(0),[M,S]=t.useState(!1),I=m??C,R=v??M,y=t.useRef([]),E=e=>{u?.(e),void 0===m&&B(e)},z=e=>{j?.(e),void 0===v&&S(e)};return t.useEffect(()=>{R&&y.current[I]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[I,R]),e.jsxs("div",{className:i("rp-container",N),style:a[b],children:[e.jsxs("div",{className:i("rp-header",x?.header),children:[e.jsx("div",{className:"rp-header-left",children:g}),f?f({activeIndex:I,total:d.length,setIndex:E,isExpanded:R,setExpanded:z}):e.jsxs("div",{className:i("rp-header-right",x?.headerRight),children:[e.jsxs("span",{children:[I+1," of ",d.length]}),e.jsx("button",{onClick:()=>E(Math.min(I+1,d.length-1)),children:e.jsx(s,{})}),e.jsx("button",{onClick:()=>E(Math.max(I-1,0)),children:e.jsx(r,{})})]}),e.jsx("button",{onClick:()=>z(!R),children:R?e.jsx(c,{}):e.jsx(n,{})})]}),R&&e.jsx("div",{className:i("rp-list",x?.listWrapper),children:d.map((t,i)=>{const s=k?.(t,i),r=i===I;return e.jsx("div",{ref:e=>y.current[i]=e,onClick:()=>E(i),children:l?l({item:t,index:i,isActive:r,status:s}):e.jsx(o,{item:t,index:i,isActive:r,status:s,config:h??{},classes:x})},p(t,i))})}),w&&e.jsx("div",{className:"rp-footer",children:w})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");function i(...e){return e.filter(Boolean).join(" ")}const s=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M6 9l6 6 6-6",stroke:"currentColor",strokeWidth:"2"})}),r=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M18 15l-6-6-6 6",stroke:"currentColor",strokeWidth:"2"})}),n=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-maximize2-icon lucide-maximize-2 rp-border",children:[e.jsx("path",{d:"M15 3h6v6"}),e.jsx("path",{d:"m21 3-7 7"}),e.jsx("path",{d:"m3 21 7-7"}),e.jsx("path",{d:"M9 21H3v-6"})]}),c=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-minimize2-icon lucide-minimize-2 rp-border",children:[e.jsx("path",{d:"m14 10 7-7"}),e.jsx("path",{d:"M20 10h-6V4"}),e.jsx("path",{d:"m3 21 7-7"}),e.jsx("path",{d:"M4 14h6v6"})]}),d=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#87c66b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-circle-check-icon lucide-circle-check",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"m9 12 2 2 4-4"})]}),a={dark:{"--rp-bg":"#000","--rp-text":"#fff","--rp-active-bg":"#1f2930","--rp-muted":"#8c8c8c","--rp-border":"#434343","--rp-success":"#4ade80"},light:{"--rp-bg":"#fff","--rp-text":"#000","--rp-active-bg":"#e5eef5","--rp-muted":"#8c8c8c","--rp-border":"#434343","--rp-success":"#16a34a"}};function o({item:t,index:s,isActive:r,status:n="pending",config:c,classes:a}){const{textKey:o="text",showStatusIcon:l=!0,showRightBadge:h=!0,rightBadgeText:x}=c;return e.jsxs("div",{className:i("rp-item",r&&"rp-item--active","reviewed"===n&&"rp-item--reviewed",a?.item?.root,r&&a?.item?.active,"reviewed"===n&&a?.item?.reviewed),children:[l&&"reviewed"===n&&e.jsx("span",{className:a?.item?.icon,children:e.jsx(d,{})}),e.jsx("span",{className:i("rp-item-text",a?.item?.text),children:String(t[o])}),h&&x&&e.jsx("span",{className:i("rp-item-badge",a?.item?.rightBadge),children:x(t,s)})]})}exports.ReviewPanel=({data:d,renderItem:l,itemConfig:h,classes:x,keyExtractor:p=(e,t)=>t.toString(),activeIndex:m,onActiveChange:u,expanded:v,onExpandedChange:j,headerLeftSlot:g,footerSlot:w,headerRightSlot:f,getItemStatus:k,theme:b="dark",className:N})=>{const[C,B]=t.useState(0),[M,S]=t.useState(!1),I=m??C,y=v??M,E=t.useRef([]),R=e=>{u?.(e),void 0===m&&B(e)},z=e=>{j?.(e),void 0===v&&S(e)};return t.useEffect(()=>{y&&E.current[I]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[I,y]),e.jsxs("div",{className:i("rp-container",N),style:a[b],children:[e.jsxs("div",{className:i("rp-header",x?.header),children:[e.jsx("div",{className:"rp-header-left",children:g}),f?f({activeIndex:I,total:d.length,setIndex:R,isExpanded:y,setExpanded:z}):e.jsxs("div",{className:i("rp-header-right",x?.headerRight),children:[e.jsxs("span",{children:[I+1," of ",d.length]}),e.jsx("button",{onClick:()=>R(Math.min(I+1,d.length-1)),children:e.jsx(s,{})}),e.jsx("button",{onClick:()=>R(Math.max(I-1,0)),children:e.jsx(r,{})})]}),e.jsx("button",{onClick:()=>z(!y),children:y?e.jsx(c,{}):e.jsx(n,{})})]}),y&&e.jsx("div",{className:i("rp-list",x?.listWrapper),children:d.map((t,i)=>{const s=k?.(t,i),r=i===I;return e.jsx("div",{ref:e=>E.current[i]=e,onClick:()=>R(i),children:l?l({item:t,index:i,isActive:r,status:s}):e.jsx(o,{item:t,index:i,isActive:r,status:s,config:h??{},classes:x})},p(t,i))})}),w&&e.jsx("div",{className:"rp-footer",children:w})]})};
2
2
  //# sourceMappingURL=ReviewPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReviewPanel.js","sources":["../../../../src/features/ReviewPanel/ReviewPanel.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport \"./ReviewPanel.css\";\n\n/* =======================\n Utils\n======================= */\n\nfunction cn(...args: Array<string | false | undefined>) {\n return args.filter(Boolean).join(\" \");\n}\n\n/* =======================\n SVG Icons\n======================= */\n\nconst ChevronDownIcon = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M6 9l6 6 6-6\" stroke=\"currentColor\" strokeWidth=\"2\" />\n </svg>\n);\n\nconst ChevronUpIcon = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M18 15l-6-6-6 6\" stroke=\"currentColor\" strokeWidth=\"2\" />\n </svg>\n);\n\nconst ExpandIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n className=\"lucide lucide-maximize2-icon lucide-maximize-2 rp-border\"\n >\n <path d=\"M15 3h6v6\" />\n <path d=\"m21 3-7 7\" />\n <path d=\"m3 21 7-7\" />\n <path d=\"M9 21H3v-6\" />\n </svg>\n);\n\nconst CollapseIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n className=\"lucide lucide-minimize2-icon lucide-minimize-2 rp-border\"\n >\n <path d=\"m14 10 7-7\" />\n <path d=\"M20 10h-6V4\" />\n <path d=\"m3 21 7-7\" />\n <path d=\"M4 14h6v6\" />\n </svg>\n);\n\nconst CheckIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"#87c66b\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n className=\"lucide lucide-circle-check-icon lucide-circle-check\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m9 12 2 2 4-4\" />\n </svg>\n);\n\n/* =======================\n Theme (CSS Variables)\n======================= */\n\nconst REVIEW_PANEL_THEME = {\n dark: {\n \"--rp-bg\": \"#000\",\n \"--rp-text\": \"#fff\",\n \"--rp-active-bg\": \"#1f2930\",\n \"--rp-muted\": \"#8c8c8c\",\n \"--rp-border\": \"#434343\",\n \"--rp-success\": \"#4ade80\",\n },\n light: {\n \"--rp-bg\": \"#fff\",\n \"--rp-text\": \"#000\",\n \"--rp-active-bg\": \"#e5eef5\",\n \"--rp-muted\": \"#8c8c8c\",\n \"--rp-border\": \"#434343\",\n \"--rp-success\": \"#16a34a\",\n },\n} as const;\n\n/* =======================\n Types\n======================= */\n\nexport type ReviewStatus = \"pending\" | \"reviewed\" | \"rejected\";\n\nexport interface ReviewPanelClasses {\n header?: string;\n headerRight?: string;\n listWrapper?: string;\n item?: {\n root?: string;\n active?: string;\n reviewed?: string;\n text?: string;\n rightBadge?: string;\n icon?: string;\n };\n}\n\nexport interface DefaultItemConfig<T> {\n textKey?: keyof T;\n showStatusIcon?: boolean;\n showRightBadge?: boolean;\n rightBadgeText?: (item: T, index: number) => React.ReactNode;\n}\n\nexport interface ReviewPanelProps<T> {\n data: T[];\n renderItem?: (params: {\n item: T;\n index: number;\n isActive: boolean;\n status?: ReviewStatus;\n }) => React.ReactNode;\n itemConfig?: DefaultItemConfig<T>;\n classes?: ReviewPanelClasses;\n keyExtractor?: (item: T, index: number) => string;\n activeIndex?: number;\n onActiveChange?: (index: number) => void;\n expanded?: boolean;\n onExpandedChange?: (expanded: boolean) => void;\n headerLeftSlot?: React.ReactNode;\n footerSlot?: React.ReactNode;\n headerRightSlot?: (params: {\n activeIndex: number;\n total: number;\n setIndex: (i: number) => void;\n isExpanded: boolean;\n setExpanded: (v: boolean) => void;\n }) => React.ReactNode;\n getItemStatus?: (item: T, index: number) => ReviewStatus;\n theme?: \"dark\" | \"light\";\n className?: string;\n}\n\n/* =======================\n Default Item Renderer\n======================= */\n\nfunction DefaultReviewItem<T>({\n item,\n index,\n isActive,\n status = \"pending\",\n config,\n classes,\n}: {\n item: T;\n index: number;\n isActive: boolean;\n status?: ReviewStatus;\n config: DefaultItemConfig<T>;\n classes?: ReviewPanelClasses;\n}) {\n const {\n textKey = \"text\" as keyof T,\n showStatusIcon = true,\n showRightBadge = true,\n rightBadgeText,\n } = config;\n\n return (\n <div\n className={cn(\n \"rp-item\",\n isActive && \"rp-item--active\",\n status === \"reviewed\" && \"rp-item--reviewed\",\n classes?.item?.root,\n isActive && classes?.item?.active,\n status === \"reviewed\" && classes?.item?.reviewed,\n )}\n >\n {showStatusIcon && status === \"reviewed\" && (\n <span className={classes?.item?.icon}>\n <CheckIcon />\n </span>\n )}\n\n <span className={cn(\"rp-item-text\", classes?.item?.text)}>\n {String((item as any)[textKey])}\n </span>\n\n {showRightBadge && rightBadgeText && (\n <span className={cn(\"rp-item-badge\", classes?.item?.rightBadge)}>\n {rightBadgeText(item, index)}\n </span>\n )}\n </div>\n );\n}\n\n/* =======================\n ReviewPanel Component\n======================= */\n\nexport const ReviewPanel = <T,>({\n data,\n renderItem,\n itemConfig,\n classes,\n keyExtractor = (_, i) => i.toString(),\n activeIndex: controlledIndex,\n onActiveChange,\n expanded: controlledExpanded,\n onExpandedChange,\n headerLeftSlot,\n footerSlot,\n headerRightSlot,\n getItemStatus,\n theme = \"dark\",\n className,\n}: ReviewPanelProps<T>) => {\n const [internalIndex, setInternalIndex] = useState(0);\n const [internalExpanded, setInternalExpanded] = useState(false);\n\n const activeIndex = controlledIndex ?? internalIndex;\n const isExpanded = controlledExpanded ?? internalExpanded;\n\n const itemRefs = useRef<(HTMLDivElement | null)[]>([]);\n\n const setIndex = (i: number) => {\n onActiveChange?.(i);\n if (controlledIndex === undefined) setInternalIndex(i);\n };\n\n const setExpanded = (v: boolean) => {\n onExpandedChange?.(v);\n if (controlledExpanded === undefined) setInternalExpanded(v);\n };\n\n useEffect(() => {\n if (!isExpanded) return;\n itemRefs.current[activeIndex]?.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\",\n });\n }, [activeIndex, isExpanded]);\n\n return (\n <div\n className={cn(\"rp-container\", className)}\n style={REVIEW_PANEL_THEME[theme] as React.CSSProperties}\n >\n {/* Header */}\n <div className={cn(\"rp-header\", classes?.header)}>\n <div className=\"rp-header-left\">{headerLeftSlot}</div>\n\n {headerRightSlot ? (\n headerRightSlot({\n activeIndex,\n total: data.length,\n setIndex,\n isExpanded,\n setExpanded,\n })\n ) : (\n <div className={cn(\"rp-header-right\", classes?.headerRight)}>\n <span>\n {activeIndex + 1} of {data.length}\n </span>\n <button\n onClick={() =>\n setIndex(Math.min(activeIndex + 1, data.length - 1))\n }\n >\n <ChevronDownIcon />\n </button>\n <button onClick={() => setIndex(Math.max(activeIndex - 1, 0))}>\n <ChevronUpIcon />\n </button>\n </div>\n )}\n\n <button onClick={() => setExpanded(!isExpanded)}>\n {isExpanded ? <CollapseIcon /> : <ExpandIcon />}\n </button>\n </div>\n\n {isExpanded && (\n <div className={cn(\"rp-list\", classes?.listWrapper)}>\n {data.map((item, index) => {\n const status = getItemStatus?.(item, index);\n const isActive = index === activeIndex;\n\n return (\n <div\n key={keyExtractor(item, index)}\n ref={(el) => (itemRefs.current[index] = el)}\n onClick={() => setIndex(index)}\n >\n {renderItem ? (\n renderItem({ item, index, isActive, status })\n ) : (\n <DefaultReviewItem\n item={item}\n index={index}\n isActive={isActive}\n status={status}\n config={itemConfig ?? {}}\n classes={classes}\n />\n )}\n </div>\n );\n })}\n </div>\n )}\n\n {footerSlot && <div className=\"rp-footer\">{footerSlot}</div>}\n </div>\n );\n};"],"names":["cn","args","filter","Boolean","join","ChevronDownIcon","jsx","width","height","viewBox","fill","children","d","stroke","strokeWidth","ChevronUpIcon","ExpandIcon","jsxs","xmlns","className","CollapseIcon","CheckIcon","cx","cy","r","REVIEW_PANEL_THEME","dark","light","DefaultReviewItem","item","index","isActive","status","config","classes","textKey","showStatusIcon","showRightBadge","rightBadgeText","root","active","reviewed","icon","text","String","rightBadge","data","renderItem","itemConfig","keyExtractor","_","i","toString","activeIndex","controlledIndex","onActiveChange","expanded","controlledExpanded","onExpandedChange","headerLeftSlot","footerSlot","headerRightSlot","getItemStatus","theme","internalIndex","setInternalIndex","useState","internalExpanded","setInternalExpanded","isExpanded","itemRefs","useRef","setIndex","setExpanded","v","useEffect","current","scrollIntoView","behavior","block","style","header","total","length","headerRight","onClick","Math","min","max","listWrapper","map","ref","el"],"mappings":"0HAOA,SAASA,KAAMC,GACb,OAAOA,EAAKC,OAAOC,SAASC,KAAK,IACnC,iCAMA,MAAMC,EAAkB,IACrBC,EAAAA,IAAA,MAAA,CAAIC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OACnDC,SAAAL,MAAC,QAAKM,EAAE,eAAeC,OAAO,eAAeC,YAAY,QAIvDC,EAAgB,IACnBT,EAAAA,IAAA,MAAA,CAAIC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OACnDC,SAAAL,MAAC,QAAKM,EAAE,kBAAkBC,OAAO,eAAeC,YAAY,QAI1DE,EAAa,IACjBC,EAAAA,KAAC,MAAA,CACCC,MAAM,6BACNX,MAAM,KACNC,OAAO,KACPC,QAAQ,YACRC,KAAK,OACLG,OAAO,eACP,eAAa,IACb,iBAAe,QACf,kBAAgB,QAChBM,UAAU,2DAEVR,SAAA,CAACL,EAAAA,IAAA,OAAA,CAAKM,EAAE,cACRN,EAAAA,IAAC,OAAK,CAAAM,EAAE,cACRN,EAAAA,IAAC,OAAK,CAAAM,EAAE,cACRN,EAAAA,IAAC,OAAK,CAAAM,EAAE,kBAINQ,EAAe,IACnBH,EAAAA,KAAC,MAAA,CACCC,MAAM,6BACNX,MAAM,KACNC,OAAO,KACPC,QAAQ,YACRC,KAAK,OACLG,OAAO,eACP,eAAa,IACb,iBAAe,QACf,kBAAgB,QAChBM,UAAU,2DAEVR,SAAA,CAACL,EAAAA,IAAA,OAAA,CAAKM,EAAE,eACRN,EAAAA,IAAC,OAAK,CAAAM,EAAE,gBACRN,EAAAA,IAAC,OAAK,CAAAM,EAAE,cACRN,EAAAA,IAAC,OAAK,CAAAM,EAAE,iBAINS,EAAY,IAChBJ,EAAAA,KAAC,MAAA,CACCC,MAAM,6BACNX,MAAM,KACNC,OAAO,KACPC,QAAQ,YACR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,GACC/D,EAAAA,IAAC,MAAI,CAAAa,UAAWnB,EAAG,UAAWkC,GAASuD,aACpC9E,SAAAmC,EAAK4C,IAAI,CAAC7D,EAAMC,KACT,MAAAE,EAAS8B,IAAgBjC,EAAMC,GAC/BC,EAAWD,IAAUuB,EAGzB,OAAA/C,EAAAA,IAAC,MAAA,CAECqF,IAAMC,GAAQtB,EAASM,QAAQ9C,GAAS8D,EACxCP,QAAS,IAAMb,EAAS1C,GAEvBnB,SAAAoC,EACCA,EAAW,CAAElB,OAAMC,QAAOC,WAAUC,WAEpC1B,EAAAA,IAACsB,EAAA,CACCC,OACAC,QACAC,WACAC,SACAC,OAAQe,GAAc,CAAC,EACvBd,aAbCe,EAAapB,EAAMC,QAsBjC8B,GAActD,EAAAA,IAAC,MAAI,CAAAa,UAAU,YAAaR,SAAWiD"}
1
+ {"version":3,"file":"ReviewPanel.js","sources":["../../../../src/features/ReviewPanel/ReviewPanel.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport \"./ReviewPanel.css\";\n\n/* =======================\n Utils\n======================= */\n\nfunction cn(...args: Array<string | false | undefined>) {\n return args.filter(Boolean).join(\" \");\n}\n\n/* =======================\n SVG Icons\n======================= */\n\nconst ChevronDownIcon = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M6 9l6 6 6-6\" stroke=\"currentColor\" strokeWidth=\"2\" />\n </svg>\n);\n\nconst ChevronUpIcon = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M18 15l-6-6-6 6\" stroke=\"currentColor\" strokeWidth=\"2\" />\n </svg>\n);\n\nconst ExpandIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n className=\"lucide lucide-maximize2-icon lucide-maximize-2 rp-border\"\n >\n <path d=\"M15 3h6v6\" />\n <path d=\"m21 3-7 7\" />\n <path d=\"m3 21 7-7\" />\n <path d=\"M9 21H3v-6\" />\n </svg>\n);\n\nconst CollapseIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n className=\"lucide lucide-minimize2-icon lucide-minimize-2 rp-border\"\n >\n <path d=\"m14 10 7-7\" />\n <path d=\"M20 10h-6V4\" />\n <path d=\"m3 21 7-7\" />\n <path d=\"M4 14h6v6\" />\n </svg>\n);\n\nconst CheckIcon = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"#87c66b\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n className=\"lucide lucide-circle-check-icon lucide-circle-check\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m9 12 2 2 4-4\" />\n </svg>\n);\n\n/* =======================\n Theme (CSS Variables)\n======================= */\n\nconst REVIEW_PANEL_THEME = {\n dark: {\n \"--rp-bg\": \"#000\",\n \"--rp-text\": \"#fff\",\n \"--rp-active-bg\": \"#1f2930\",\n \"--rp-muted\": \"#8c8c8c\",\n \"--rp-border\": \"#434343\",\n \"--rp-success\": \"#4ade80\",\n },\n light: {\n \"--rp-bg\": \"#fff\",\n \"--rp-text\": \"#000\",\n \"--rp-active-bg\": \"#e5eef5\",\n \"--rp-muted\": \"#8c8c8c\",\n \"--rp-border\": \"#434343\",\n \"--rp-success\": \"#16a34a\",\n },\n} as const;\n\n/* =======================\n Types\n======================= */\n\nexport type ReviewStatus = \"pending\" | \"reviewed\" | \"rejected\";\n\nexport interface ReviewPanelClasses {\n header?: string;\n headerRight?: string;\n listWrapper?: string;\n item?: {\n root?: string;\n active?: string;\n reviewed?: string;\n text?: string;\n rightBadge?: string;\n icon?: string;\n };\n}\n\nexport interface DefaultItemConfig<T> {\n textKey?: keyof T;\n showStatusIcon?: boolean;\n showRightBadge?: boolean;\n rightBadgeText?: (item: T, index: number) => React.ReactNode;\n}\n\nexport interface ReviewPanelProps<T> {\n data: T[];\n renderItem?: (params: {\n item: T;\n index: number;\n isActive: boolean;\n status?: ReviewStatus;\n }) => React.ReactNode;\n itemConfig?: DefaultItemConfig<T>;\n classes?: ReviewPanelClasses;\n keyExtractor?: (item: T, index: number) => string;\n activeIndex?: number;\n onActiveChange?: (index: number) => void;\n expanded?: boolean;\n onExpandedChange?: (expanded: boolean) => void;\n headerLeftSlot?: React.ReactNode;\n footerSlot?: React.ReactNode;\n headerRightSlot?: (params: {\n activeIndex: number;\n total: number;\n setIndex: (i: number) => void;\n isExpanded: boolean;\n setExpanded: (v: boolean) => void;\n }) => React.ReactNode;\n getItemStatus?: (item: T, index: number) => ReviewStatus;\n theme?: \"dark\" | \"light\";\n className?: string;\n}\n\n/* =======================\n Default Item Renderer\n======================= */\n\nfunction DefaultReviewItem<T>({\n item,\n index,\n isActive,\n status = \"pending\",\n config,\n classes,\n}: {\n item: T;\n index: number;\n isActive: boolean;\n status?: ReviewStatus;\n config: DefaultItemConfig<T>;\n classes?: ReviewPanelClasses;\n}) {\n const {\n textKey = \"text\" as keyof T,\n showStatusIcon = true,\n showRightBadge = true,\n rightBadgeText,\n } = config;\n\n return (\n <div\n className={cn(\n \"rp-item\",\n isActive && \"rp-item--active\",\n status === \"reviewed\" && \"rp-item--reviewed\",\n classes?.item?.root,\n isActive && classes?.item?.active,\n status === \"reviewed\" && classes?.item?.reviewed,\n )}\n >\n {showStatusIcon && status === \"reviewed\" && (\n <span className={classes?.item?.icon}>\n <CheckIcon />\n </span>\n )}\n\n <span className={cn(\"rp-item-text\", classes?.item?.text)}>\n {String((item as any)[textKey])}\n </span>\n\n {showRightBadge && rightBadgeText && (\n <span className={cn(\"rp-item-badge\", classes?.item?.rightBadge)}>\n {rightBadgeText(item, index)}\n </span>\n )}\n </div>\n );\n}\n\n/* =======================\n ReviewPanel Component\n======================= */\n\nexport const ReviewPanel = <T,>({\n data,\n renderItem,\n itemConfig,\n classes,\n keyExtractor = (_, i) => i.toString(),\n activeIndex: controlledIndex,\n onActiveChange,\n expanded: controlledExpanded,\n onExpandedChange,\n headerLeftSlot,\n footerSlot,\n headerRightSlot,\n getItemStatus,\n theme = \"dark\",\n className,\n}: ReviewPanelProps<T>) => {\n const [internalIndex, setInternalIndex] = useState(0);\n const [internalExpanded, setInternalExpanded] = useState(false);\n\n const activeIndex = controlledIndex ?? internalIndex;\n const isExpanded = controlledExpanded ?? internalExpanded;\n\n const itemRefs = useRef<(HTMLDivElement | null)[]>([]);\n\n const setIndex = (i: number) => {\n onActiveChange?.(i);\n if (controlledIndex === undefined) setInternalIndex(i);\n };\n\n const setExpanded = (v: boolean) => {\n onExpandedChange?.(v);\n if (controlledExpanded === undefined) setInternalExpanded(v);\n };\n\n useEffect(() => {\n if (!isExpanded) return;\n itemRefs.current[activeIndex]?.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\",\n });\n }, [activeIndex, isExpanded]);\n\n return (\n <div\n className={cn(\"rp-container\", className)}\n style={REVIEW_PANEL_THEME[theme] as React.CSSProperties}\n >\n {/* Header */}\n <div className={cn(\"rp-header\", classes?.header)}>\n <div className=\"rp-header-left\">{headerLeftSlot}</div>\n\n {headerRightSlot ? (\n headerRightSlot({\n activeIndex,\n total: data.length,\n setIndex,\n isExpanded,\n setExpanded,\n })\n ) : (\n <div className={cn(\"rp-header-right\", classes?.headerRight)}>\n <span>\n {activeIndex + 1} of {data.length}\n </span>\n <button\n onClick={() =>\n setIndex(Math.min(activeIndex + 1, data.length - 1))\n }\n >\n <ChevronDownIcon />\n </button>\n <button onClick={() => setIndex(Math.max(activeIndex - 1, 0))}>\n <ChevronUpIcon />\n </button>\n </div>\n )}\n\n <button onClick={() => setExpanded(!isExpanded)}>\n {isExpanded ? <CollapseIcon /> : <ExpandIcon />}\n </button>\n </div>\n\n {isExpanded && (\n <div className={cn(\"rp-list\", classes?.listWrapper)}>\n {data.map((item, index) => {\n const status = getItemStatus?.(item, index);\n const isActive = index === activeIndex;\n\n return (\n <div\n key={keyExtractor(item, index)}\n ref={(el) => (itemRefs.current[index] = el)}\n onClick={() => setIndex(index)}\n >\n {renderItem ? (\n renderItem({ item, index, isActive, status })\n ) : (\n <DefaultReviewItem\n item={item}\n index={index}\n isActive={isActive}\n status={status}\n config={itemConfig ?? {}}\n classes={classes}\n />\n )}\n </div>\n );\n })}\n </div>\n )}\n\n {footerSlot && <div className=\"rp-footer\">{footerSlot}</div>}\n </div>\n );\n};"],"names":["cn","args","filter","Boolean","join","ChevronDownIcon","jsx","width","height","viewBox","fill","children","d","stroke","strokeWidth","ChevronUpIcon","ExpandIcon","jsxs","xmlns","className","CollapseIcon","CheckIcon","cx","cy","r","REVIEW_PANEL_THEME","dark","light","DefaultReviewItem","item","index","isActive","status","config","classes","textKey","showStatusIcon","showRightBadge","rightBadgeText","root","active","reviewed","icon","text","String","rightBadge","data","renderItem","itemConfig","keyExtractor","_","i","toString","activeIndex","controlledIndex","onActiveChange","expanded","controlledExpanded","onExpandedChange","headerLeftSlot","footerSlot","headerRightSlot","getItemStatus","theme","internalIndex","setInternalIndex","useState","internalExpanded","setInternalExpanded","isExpanded","itemRefs","useRef","setIndex","setExpanded","v","useEffect","current","scrollIntoView","behavior","block","style","header","total","length","headerRight","onClick","Math","min","max","listWrapper","map","ref","el"],"mappings":"0HAOA,SAASA,KAAMC,GACb,OAAOA,EAAKC,OAAOC,SAASC,KAAK,IACnC,CAMA,MAAMC,EAAkB,IACrBC,EAAAA,IAAA,MAAA,CAAIC,MAAM,KAAKC,OAAO,KAAKC,QAAQ,YAAYC,KAAK,OACnDC,SAAAL,MAAC,QAAKM,EAAE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,GAEvBnB,SAAAoC,EACCA,EAAW,CAAElB,OAAMC,QAAOC,WAAUC,WAEpC1B,EAAAA,IAACsB,EAAA,CACCC,OACAC,QACAC,WACAC,SACAC,OAAQe,GAAc,CAAC,EACvBd,aAbCe,EAAapB,EAAMC,QAsBjC8B,GAActD,EAAAA,IAAC,MAAI,CAAAa,UAAU,YAAaR,SAAWiD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react"),t=require("@mui/system"),n=require("@mui/material"),o=require("@mui/icons-material/Close"),r=require("@mui/icons-material/ExpandMore"),a=require("@mui/icons-material"),l=require("@mui/icons-material/AutoAwesome"),s=require("../ChatCitation/ChatCitationRenderer.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=c(o),x=c(r),h=c(l);const p=e=>{const i=document.createElement("div");return i.innerHTML=e,Array.from(i.querySelectorAll("li")).map(e=>e.innerHTML)},u=e=>e.replace(/^.*\$/,""),g=({style:i})=>e.jsx(t.Box,{component:"svg",viewBox:"0 0 24 24",sx:{width:14,height:14,fill:"#5928ed",...i},children:e.jsx("path",{d:"M12 2a7 7 0 0 0-4 12.74V17a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2.26A7 7 0 0 0 12 2zm-1 19h2v1h-2v-1z"})});exports.default=({open:o,onClose:r,data:l,styles:c})=>{const[f,m]=i.useState(null),y=i.useMemo(()=>f&&l?l.block_cognitive_citations.find(e=>String(e.citation_number)===f)??null:null,[f,l]),j=i.useMemo(()=>l?.block_cognitive_reasoning_html?p(l.block_cognitive_reasoning_html):[],[l?.block_cognitive_reasoning_html]),b=i.useMemo(()=>l?.block_cognitive_gap_html?p(l.block_cognitive_gap_html):[],[l?.block_cognitive_gap_html]),v=(i,n)=>{const o=[],r=/<a[^>]*href="([^"]+)"[^>]*>(.*?)<\/a>/g;let d,x=0,h=0;for(;null!==(d=r.exec(i));){const p=u(d[1]),g=d[2],j=f===p;d.index>x&&o.push(e.jsx("span",{children:i.substring(x,d.index)},`txt-${n}-${h++}`)),o.push(e.jsxs("span",{children:[e.jsxs("span",{onClick:()=>m(e=>e===p?null:p),style:{color:"#2563EB",fontWeight:500,cursor:"pointer",textDecoration:"underline",...c?.citationLink},children:[g,e.jsx(a.ChatBubbleOutlineOutlined,{sx:{fontSize:"12px",ml:.2}})]}),j&&y&&e.jsx(t.Box,{sx:{maxHeight:"35vh",padding:"6px",overflow:"auto",backgroundColor:"#ffffff",mt:1,...c?.citationContainer},children:e.jsx(s.default,{showRootContainer:!1,modalContainerStyle:c?.citationModalContainer,rootContainer:{relevanceScore:l?.block_cognitive_confidence??0,slotStyles:{container:{border:"",paddingLeft:"-20px",color:c?.textContent?.color??"black",...c?.citationRootContainer}}},ruleBookContainer:{title:y.training_data_title||y.title||y.section_ref||"Rule Book",data:{content:y.data_sources?.join("\n\n")||y.content||y.paraphrase||"",highlighted_texts:y.paraphrase?Array.isArray(y.paraphrase)?y.paraphrase:[y.paraphrase]:Array.isArray(y.highlight)?y.highlight:y.highlight?[y.highlight]:[]},slotStyles:{title:c?.citationTitle,body:c?.citationBody,dataContainer:c?.citationDataContainer,outerContainer:{margin:"0",color:c?.textContent?.color??"black",minHeight:"350px",...c?.citationRuleBookContainer}}},additionalData:{RuleBookDetailedViewVerticallyStacked:!0},reversePanels:!0})})]},`anchor-${n}-${p}`)),x=r.lastIndex}return x<i.length&&o.push(e.jsx("span",{children:i.substring(x)},`txt-end-${n}-${h++}`)),o};return o?e.jsxs(t.Box,{sx:{width:"min(500px, calc(100vw - 16px))",maxWidth:"calc(100vw - 16px)",maxHeight:"80vh",borderRadius:3,display:"flex",flexDirection:"column",overflow:"hidden",border:"1px solid #e0e0e0",backgroundColor:"#fff",color:"#111827",...c?.container},children:[e.jsxs(t.Box,{sx:{px:2,py:1,borderBottom:"1px solid #e0e0e0",display:"flex",justifyContent:"space-between",alignItems:"center",flexShrink:0,backgroundColor:"#e9ecfd",...c?.header},children:[e.jsxs(t.Box,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(g,{style:c?.headerIcon}),e.jsx(n.Typography,{fontWeight:500,sx:{fontSize:"0.72rem",...c?.headerTitleText},children:"Cognitive Decisioning AI"})]}),e.jsxs(t.Box,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(n.Chip,{icon:e.jsx(h.default,{sx:{fontSize:12}}),label:`AI Relevance: ${l?.block_cognitive_confidence??0}%`,size:"small",sx:{fontWeight:500,fontSize:"0.68rem",backgroundColor:"#ffffff",color:"#000000",border:"1px solid #ac93f6",height:20,"& .MuiChip-label":{fontSize:"0.68rem",px:.75},...c?.badge}}),e.jsx(n.IconButton,{size:"small",onClick:r,sx:c?.closeButton,children:e.jsx(d.default,{fontSize:"small"})})]})]}),e.jsxs(t.Box,{sx:{flex:1,overflowY:"auto",p:.5,...c?.body},children:[e.jsxs(n.Accordion,{defaultExpanded:!0,disableGutters:!0,elevation:0,sx:c?.accordion,children:[e.jsx(n.AccordionSummary,{expandIcon:e.jsx(x.default,{}),sx:c?.accordionSummary,children:e.jsxs(n.Typography,{sx:{display:"flex",alignItems:"center",gap:.8,fontSize:"0.78rem",...c?.sectionTitle},fontWeight:600,children:[e.jsx(t.Box,{sx:{width:24,height:24,borderRadius:"50%",backgroundColor:"#e9ecfd",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...c?.sectionIcon},children:e.jsx(a.LightbulbOutlined,{sx:{fontSize:14,color:"#5928ed"}})}),"Decision Making Factors"]})}),e.jsx(n.AccordionDetails,{sx:c?.accordionDetails,children:e.jsx(t.Box,{sx:{padding:0,margin:0},children:j.length>0?j.map((i,o)=>e.jsxs(t.Box,{sx:{marginBottom:"6px",display:"flex",gap:1,...c?.sectionItem},children:[e.jsxs(n.Typography,{variant:"body2",sx:{fontWeight:500,fontSize:"0.75rem",...c?.indexText},children:[o+1,"."]}),e.jsx(t.Box,{sx:{flex:1},children:e.jsx(n.Typography,{variant:"body2",component:"span",sx:{fontSize:"0.75rem",...c?.textContent},children:v(i,o)})})]},o)):e.jsx(n.Typography,{variant:"body2",color:"gray",sx:{mb:.5,pl:3,fontSize:"0.72rem",...c?.sectionSubtitle},children:"No Reasons Found"})})})]}),e.jsx(n.Divider,{}),e.jsxs(n.Accordion,{disableGutters:!0,elevation:0,sx:c?.accordion,children:[e.jsx(n.AccordionSummary,{expandIcon:e.jsx(x.default,{}),sx:c?.accordionSummary,children:e.jsxs(n.Typography,{sx:{display:"flex",alignItems:"center",gap:.8,fontSize:"0.78rem",...c?.sectionTitle},fontWeight:600,children:[e.jsx(t.Box,{sx:{width:24,height:24,borderRadius:"50%",backgroundColor:"#e9ecfd",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...c?.sectionIcon},children:e.jsx(a.ManageSearchOutlined,{sx:{fontSize:14,color:"#5928ed"}})}),"Gaps in Decision"]})}),e.jsx(n.AccordionDetails,{sx:c?.accordionDetails,children:e.jsx(t.Box,{sx:{padding:0,margin:0},children:b.length>0?b.map((i,o)=>e.jsxs(t.Box,{sx:{marginBottom:"6px",display:"flex",gap:1,...c?.sectionItem},children:[e.jsxs(n.Typography,{variant:"body2",sx:{fontWeight:500,fontSize:"0.75rem",...c?.indexText},children:[o+1,"."]}),e.jsx(n.Typography,{variant:"body2",component:"span",sx:{fontSize:"0.75rem",...c?.textContent},dangerouslySetInnerHTML:{__html:i}})]},o)):e.jsx(n.Typography,{variant:"body2",color:"gray",sx:{mb:.5,pl:3,fontSize:"0.72rem",...c?.sectionSubtitle},children:"No Gaps Found"})})})]})]})]}):null};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");require("@emotion/styled"),require("@emotion/react"),require("../../node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js"),require("../../node_modules/.pnpm/@mui_styled-engine@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_suppo_4520a21969629b42d6140ade25533e86/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/borders/borders.js"),require("../../_virtual/index.js"),require("../../_virtual/index4.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/display/display.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/flexbox/flexbox.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/cssGrid/cssGrid.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/palette/palette.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/positions/positions.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/shadows/shadows.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/sizing/sizing.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/spacing/spacing.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/typography/typography.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/getThemeValue/getThemeValue.js");var s=require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/Box.js");require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Box/boxClasses.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/useTheme/useTheme.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/createStyled/createStyled.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js"),require("../../node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js"),require("../../node_modules/.pnpm/@mui_private-theming@6.4.9_@types_react@18.3.31_react@18.3.1/node_modules/@mui/private-theming/useTheme/ThemeContext.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/RtlProvider/index.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/createContainer.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/Container.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Container/containerClasses.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/Grid.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/createGrid.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Grid/gridClasses.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/Stack.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/createStack.js"),require("../../node_modules/.pnpm/@mui_system@6.5.0_@emotion_react@11.14.0_@types_react@18.3.31_react@18.3.1_supports-col_c17c8c48cc2dc4f6280b73b3c2092554/node_modules/@mui/system/esm/Stack/stackClasses.js");var o=require("@mui/material"),c=require("@mui/icons-material/Close"),r=require("@mui/icons-material/ExpandMore"),i=require("@mui/icons-material"),n=require("@mui/icons-material/AutoAwesome"),a=require("../ChatCitation/ChatCitationRenderer.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=m(c),l=m(r),_=m(n);const u=e=>{const t=document.createElement("div");return t.innerHTML=e,Array.from(t.querySelectorAll("li")).map(e=>e.innerHTML)},p=e=>e.replace(/^.*\$/,""),y=({style:t})=>e.jsx(s.default,{component:"svg",viewBox:"0 0 24 24",sx:{width:14,height:14,fill:"#5928ed",...t},children:e.jsx("path",{d:"M12 2a7 7 0 0 0-4 12.74V17a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2.26A7 7 0 0 0 12 2zm-1 19h2v1h-2v-1z"})});exports.default=({open:c,onClose:r,data:n,styles:m})=>{const[x,h]=t.useState(null),f=t.useMemo(()=>x&&n?n.block_cognitive_citations.find(e=>String(e.citation_number)===x)??null:null,[x,n]),b=t.useMemo(()=>n?.block_cognitive_reasoning_html?u(n.block_cognitive_reasoning_html):[],[n?.block_cognitive_reasoning_html]),g=t.useMemo(()=>n?.block_cognitive_gap_html?u(n.block_cognitive_gap_html):[],[n?.block_cognitive_gap_html]),j=(t,o)=>{const c=[],r=/<a[^>]*href="([^"]+)"[^>]*>(.*?)<\/a>/g;let d,l=0,_=0;for(;null!==(d=r.exec(t));){const u=p(d[1]),y=d[2],b=x===u;d.index>l&&c.push(e.jsx("span",{children:t.substring(l,d.index)},`txt-${o}-${_++}`)),c.push(e.jsxs("span",{children:[e.jsxs("span",{onClick:()=>h(e=>e===u?null:u),style:{color:"#2563EB",fontWeight:500,cursor:"pointer",textDecoration:"underline",...m?.citationLink},children:[y,e.jsx(i.ChatBubbleOutlineOutlined,{sx:{fontSize:"12px",ml:.2}})]}),b&&f&&e.jsx(s.default,{sx:{maxHeight:"35vh",padding:"6px",overflow:"auto",backgroundColor:"#ffffff",mt:1,...m?.citationContainer},children:e.jsx(a.default,{showRootContainer:!1,modalContainerStyle:m?.citationModalContainer,rootContainer:{relevanceScore:n?.block_cognitive_confidence??0,slotStyles:{container:{border:"",paddingLeft:"-20px",color:m?.textContent?.color??"black",...m?.citationRootContainer}}},ruleBookContainer:{title:f.training_data_title||f.title||f.section_ref||"Rule Book",data:{content:f.data_sources?.join("\n\n")||f.content||f.paraphrase||"",highlighted_texts:f.paraphrase?Array.isArray(f.paraphrase)?f.paraphrase:[f.paraphrase]:Array.isArray(f.highlight)?f.highlight:f.highlight?[f.highlight]:[]},slotStyles:{title:m?.citationTitle,body:m?.citationBody,dataContainer:m?.citationDataContainer,outerContainer:{margin:"0",color:m?.textContent?.color??"black",minHeight:"350px",...m?.citationRuleBookContainer}}},additionalData:{RuleBookDetailedViewVerticallyStacked:!0},reversePanels:!0})})]},`anchor-${o}-${u}`)),l=r.lastIndex}return l<t.length&&c.push(e.jsx("span",{children:t.substring(l)},`txt-end-${o}-${_++}`)),c};return c?e.jsxs(s.default,{sx:{width:"min(500px, calc(100vw - 16px))",maxWidth:"calc(100vw - 16px)",maxHeight:"80vh",borderRadius:3,display:"flex",flexDirection:"column",overflow:"hidden",border:"1px solid #e0e0e0",backgroundColor:"#fff",color:"#111827",...m?.container},children:[e.jsxs(s.default,{sx:{px:2,py:1,borderBottom:"1px solid #e0e0e0",display:"flex",justifyContent:"space-between",alignItems:"center",flexShrink:0,backgroundColor:"#e9ecfd",...m?.header},children:[e.jsxs(s.default,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(y,{style:m?.headerIcon}),e.jsx(o.Typography,{fontWeight:500,sx:{fontSize:"0.72rem",...m?.headerTitleText},children:"Cognitive Decisioning AI"})]}),e.jsxs(s.default,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(o.Chip,{icon:e.jsx(_.default,{sx:{fontSize:12}}),label:`AI Relevance: ${n?.block_cognitive_confidence??0}%`,size:"small",sx:{fontWeight:500,fontSize:"0.68rem",backgroundColor:"#ffffff",color:"#000000",border:"1px solid #ac93f6",height:20,"& .MuiChip-label":{fontSize:"0.68rem",px:.75},...m?.badge}}),e.jsx(o.IconButton,{size:"small",onClick:r,sx:m?.closeButton,children:e.jsx(d.default,{fontSize:"small"})})]})]}),e.jsxs(s.default,{sx:{flex:1,overflowY:"auto",p:.5,...m?.body},children:[e.jsxs(o.Accordion,{defaultExpanded:!0,disableGutters:!0,elevation:0,sx:m?.accordion,children:[e.jsx(o.AccordionSummary,{expandIcon:e.jsx(l.default,{}),sx:m?.accordionSummary,children:e.jsxs(o.Typography,{sx:{display:"flex",alignItems:"center",gap:.8,fontSize:"0.78rem",...m?.sectionTitle},fontWeight:600,children:[e.jsx(s.default,{sx:{width:24,height:24,borderRadius:"50%",backgroundColor:"#e9ecfd",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...m?.sectionIcon},children:e.jsx(i.LightbulbOutlined,{sx:{fontSize:14,color:"#5928ed"}})}),"Decision Making Factors"]})}),e.jsx(o.AccordionDetails,{sx:m?.accordionDetails,children:e.jsx(s.default,{sx:{padding:0,margin:0},children:b.length>0?b.map((t,c)=>e.jsxs(s.default,{sx:{marginBottom:"6px",display:"flex",gap:1,...m?.sectionItem},children:[e.jsxs(o.Typography,{variant:"body2",sx:{fontWeight:500,fontSize:"0.75rem",...m?.indexText},children:[c+1,"."]}),e.jsx(s.default,{sx:{flex:1},children:e.jsx(o.Typography,{variant:"body2",component:"span",sx:{fontSize:"0.75rem",...m?.textContent},children:j(t,c)})})]},c)):e.jsx(o.Typography,{variant:"body2",color:"gray",sx:{mb:.5,pl:3,fontSize:"0.72rem",...m?.sectionSubtitle},children:"No Reasons Found"})})})]}),e.jsx(o.Divider,{}),e.jsxs(o.Accordion,{disableGutters:!0,elevation:0,sx:m?.accordion,children:[e.jsx(o.AccordionSummary,{expandIcon:e.jsx(l.default,{}),sx:m?.accordionSummary,children:e.jsxs(o.Typography,{sx:{display:"flex",alignItems:"center",gap:.8,fontSize:"0.78rem",...m?.sectionTitle},fontWeight:600,children:[e.jsx(s.default,{sx:{width:24,height:24,borderRadius:"50%",backgroundColor:"#e9ecfd",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...m?.sectionIcon},children:e.jsx(i.ManageSearchOutlined,{sx:{fontSize:14,color:"#5928ed"}})}),"Gaps in Decision"]})}),e.jsx(o.AccordionDetails,{sx:m?.accordionDetails,children:e.jsx(s.default,{sx:{padding:0,margin:0},children:g.length>0?g.map((t,c)=>e.jsxs(s.default,{sx:{marginBottom:"6px",display:"flex",gap:1,...m?.sectionItem},children:[e.jsxs(o.Typography,{variant:"body2",sx:{fontWeight:500,fontSize:"0.75rem",...m?.indexText},children:[c+1,"."]}),e.jsx(o.Typography,{variant:"body2",component:"span",sx:{fontSize:"0.75rem",...m?.textContent},dangerouslySetInnerHTML:{__html:t}})]},c)):e.jsx(o.Typography,{variant:"body2",color:"gray",sx:{mb:.5,pl:3,fontSize:"0.72rem",...m?.sectionSubtitle},children:"No Gaps Found"})})})]})]})]}):null};
2
2
  //# sourceMappingURL=Cognitivereasoningpanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cognitivereasoningpanel.js","sources":["../../../../src/features/SPBAnalysisPanel/Cognitivereasoningpanel.tsx"],"sourcesContent":["import { useMemo, useState, type CSSProperties } from \"react\";\nimport { Box } from \"@mui/system\";\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n Chip,\n Divider,\n IconButton,\n Typography,\n} from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\";\nimport { ChatBubbleOutlineOutlined, LightbulbOutlined, ManageSearchOutlined } from \"@mui/icons-material\";\nimport AutoAwesomeIcon from \"@mui/icons-material/AutoAwesome\";\nimport ChatCitationRenderer from \"../ChatCitation/ChatCitationRenderer\";\n\n// ─── Ported from the app's CognitiveReasoningPanelForFPB ───────────────────\n// The only app-specific thing here was a local SVG asset import\n// (`../../../assets/svg/CognitiveDecisioning.svg`), which is replaced below\n// with an inline icon so the library doesn't need to ship/resolve an asset\n// path. Everything else — including ChatCitationRenderer — is already\n// library-owned, so this is a near-verbatim port.\n\nexport type BlockCognitiveCitation = {\n citation_number: number;\n title?: string;\n section_ref?: string;\n content?: string;\n paraphrase?: string;\n highlight: string | string[];\n data_sources?: string[];\n training_data_title?: string;\n};\n\nexport type CognitiveReasoningData = {\n block_cognitive_reasoning_html: string;\n block_cognitive_gap_html: string;\n block_cognitive_confidence: number;\n block_cognitive_citations: BlockCognitiveCitation[];\n};\n\nexport interface CognitiveReasoningPanelStyles {\n container?: CSSProperties | any;\n header?: CSSProperties | any;\n headerIcon?: CSSProperties | any;\n headerTitleText?: CSSProperties | any;\n badge?: CSSProperties | any;\n closeButton?: CSSProperties | any;\n body?: CSSProperties | any;\n accordion?: CSSProperties | any;\n accordionSummary?: CSSProperties | any;\n accordionDetails?: CSSProperties | any;\n sectionIcon?: CSSProperties | any;\n sectionTitle?: CSSProperties | any;\n sectionSubtitle?: CSSProperties | any;\n sectionItem?: CSSProperties | any;\n indexText?: CSSProperties | any;\n textContent?: CSSProperties | any;\n citationLink?: CSSProperties | any;\n citationContainer?: CSSProperties | any;\n citationModalContainer?: CSSProperties | any;\n citationRootContainer?: CSSProperties | any;\n citationTitle?: CSSProperties | any;\n citationBody?: CSSProperties | any;\n citationDataContainer?: CSSProperties | any;\n citationRuleBookContainer?: CSSProperties | any;\n}\n\nexport interface CognitiveReasoningPanelProps {\n open: boolean;\n onClose: () => void;\n data: CognitiveReasoningData | null;\n styles?: CognitiveReasoningPanelStyles;\n}\n\nconst parseListItems = (html: string): string[] => {\n const div = document.createElement(\"div\");\n div.innerHTML = html;\n return Array.from(div.querySelectorAll(\"li\")).map((li) => li.innerHTML);\n};\n\nconst extractCitationKey = (href: string): string => href.replace(/^.*\\$/, \"\");\n\nconst CognitiveDecisioningIcon = ({ style }: { style?: CSSProperties | any }) => (\n <Box\n component=\"svg\"\n viewBox=\"0 0 24 24\"\n sx={{ width: 14, height: 14, fill: \"#5928ed\", ...style }}\n >\n <path d=\"M12 2a7 7 0 0 0-4 12.74V17a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2.26A7 7 0 0 0 12 2zm-1 19h2v1h-2v-1z\" />\n </Box>\n);\n\nconst CognitiveReasoningPanel = ({ open, onClose, data, styles }: CognitiveReasoningPanelProps) => {\n const [selectedCitationKey, setSelectedCitationKey] = useState<string | null>(null);\n\n const activeCitation: BlockCognitiveCitation | null = useMemo(() => {\n if (!selectedCitationKey || !data) return null;\n return data.block_cognitive_citations.find((c) => String(c.citation_number) === selectedCitationKey) ?? null;\n }, [selectedCitationKey, data]);\n\n const reasoningItems = useMemo(\n () => (data?.block_cognitive_reasoning_html ? parseListItems(data.block_cognitive_reasoning_html) : []),\n [data?.block_cognitive_reasoning_html]\n );\n const gapItems = useMemo(\n () => (data?.block_cognitive_gap_html ? parseListItems(data.block_cognitive_gap_html) : []),\n [data?.block_cognitive_gap_html]\n );\n\n const renderReasonItem = (rawHtml: string, reasonIndex: number) => {\n const parts: React.ReactNode[] = [];\n const regex = /<a[^>]*href=\"([^\"]+)\"[^>]*>(.*?)<\\/a>/g;\n let lastIndex = 0;\n let match: RegExpExecArray | null;\n let segIdx = 0;\n\n while ((match = regex.exec(rawHtml)) !== null) {\n const citationKey = extractCitationKey(match[1]);\n const anchorText = match[2];\n const isSelected = selectedCitationKey === citationKey;\n\n if (match.index > lastIndex) {\n parts.push(<span key={`txt-${reasonIndex}-${segIdx++}`}>{rawHtml.substring(lastIndex, match.index)}</span>);\n }\n\n parts.push(\n <span key={`anchor-${reasonIndex}-${citationKey}`}>\n <span\n onClick={() => setSelectedCitationKey((prev) => (prev === citationKey ? null : citationKey))}\n style={{ color: \"#2563EB\", fontWeight: 500, cursor: \"pointer\", textDecoration: \"underline\", ...styles?.citationLink }}\n >\n {anchorText}\n <ChatBubbleOutlineOutlined sx={{ fontSize: \"12px\", ml: 0.2 }} />\n </span>\n {isSelected && activeCitation && (\n <Box sx={{ maxHeight: \"35vh\", padding: \"6px\", overflow: \"auto\", backgroundColor: \"#ffffff\", mt: 1, ...styles?.citationContainer }}>\n <ChatCitationRenderer\n showRootContainer={false}\n modalContainerStyle={styles?.citationModalContainer}\n rootContainer={{\n relevanceScore: data?.block_cognitive_confidence ?? 0,\n slotStyles: {\n container: {\n border: \"\",\n paddingLeft: \"-20px\",\n color: styles?.textContent?.color ?? \"black\",\n ...styles?.citationRootContainer,\n },\n },\n }}\n ruleBookContainer={{\n title:activeCitation.training_data_title || activeCitation.title || activeCitation.section_ref || \"Rule Book\",\n data: {\n content: activeCitation.data_sources?.join('\\n\\n') || activeCitation.content || activeCitation.paraphrase || \"\",\n highlighted_texts: activeCitation.paraphrase\n ? Array.isArray(activeCitation.paraphrase)\n ? activeCitation.paraphrase\n : [activeCitation.paraphrase]\n : Array.isArray(activeCitation.highlight)\n ? activeCitation.highlight\n : activeCitation.highlight\n ? [activeCitation.highlight]\n : [],\n },\n slotStyles: {\n title: styles?.citationTitle,\n body: styles?.citationBody,\n dataContainer: styles?.citationDataContainer,\n outerContainer: {\n margin: \"0\",\n color: styles?.textContent?.color ?? \"black\",\n minHeight: \"350px\",\n ...styles?.citationRuleBookContainer,\n },\n },\n }}\n additionalData={{ RuleBookDetailedViewVerticallyStacked: true }}\n reversePanels={true}\n />\n </Box>\n )}\n </span>\n );\n lastIndex = regex.lastIndex;\n }\n\n if (lastIndex < rawHtml.length) {\n parts.push(<span key={`txt-end-${reasonIndex}-${segIdx++}`}>{rawHtml.substring(lastIndex)}</span>);\n }\n return parts;\n };\n\n if (!open) return null;\n\n return (\n <Box\n sx={{\n width: \"min(500px, calc(100vw - 16px))\",\n maxWidth: \"calc(100vw - 16px)\",\n maxHeight: \"80vh\",\n borderRadius: 3,\n display: \"flex\",\n flexDirection: \"column\",\n overflow: \"hidden\",\n border: \"1px solid #e0e0e0\",\n backgroundColor: \"#fff\",\n color: \"#111827\",\n ...styles?.container,\n }}\n >\n {/* Header */}\n <Box sx={{ px: 2, py: 1, borderBottom: \"1px solid #e0e0e0\", display: \"flex\", justifyContent: \"space-between\", alignItems: \"center\", flexShrink: 0, backgroundColor: \"#e9ecfd\", ...styles?.header }}>\n <Box display=\"flex\" alignItems=\"center\" gap={1}>\n <CognitiveDecisioningIcon style={styles?.headerIcon} />\n <Typography fontWeight={500} sx={{ fontSize: \"0.72rem\", ...styles?.headerTitleText }}>Cognitive Decisioning AI</Typography>\n </Box>\n <Box display=\"flex\" alignItems=\"center\" gap={1}>\n <Chip\n icon={<AutoAwesomeIcon sx={{ fontSize: 12 }} />}\n label={`AI Relevance: ${data?.block_cognitive_confidence ?? 0}%`}\n size=\"small\"\n sx={{ fontWeight: 500, fontSize: \"0.68rem\", backgroundColor: \"#ffffff\", color: \"#000000\", border: \"1px solid #ac93f6\", height: 20, \"& .MuiChip-label\": { fontSize: \"0.68rem\", px: 0.75 }, ...styles?.badge }}\n />\n <IconButton size=\"small\" onClick={onClose} sx={styles?.closeButton}>\n <CloseIcon fontSize=\"small\" />\n </IconButton>\n </Box>\n </Box>\n\n {/* Body */}\n <Box sx={{ flex: 1, overflowY: \"auto\", p: 0.5, ...styles?.body }}>\n <Accordion defaultExpanded disableGutters elevation={0} sx={styles?.accordion}>\n <AccordionSummary expandIcon={<ExpandMoreIcon />} sx={styles?.accordionSummary}>\n <Typography sx={{ display: \"flex\", alignItems: \"center\", gap: 0.8, fontSize: \"0.78rem\", ...styles?.sectionTitle }} fontWeight={600}>\n <Box sx={{ width: 24, height: 24, borderRadius: \"50%\", backgroundColor: \"#e9ecfd\", display: \"flex\", alignItems: \"center\", justifyContent: \"center\", flexShrink: 0, ...styles?.sectionIcon }}>\n <LightbulbOutlined sx={{ fontSize: 14, color: \"#5928ed\" }} />\n </Box>\n Decision Making Factors\n </Typography>\n </AccordionSummary>\n <AccordionDetails sx={styles?.accordionDetails}>\n <Box sx={{ padding: 0, margin: 0 }}>\n {reasoningItems.length > 0 ? (\n reasoningItems.map((itemHtml, index) => (\n <Box key={index} sx={{ marginBottom: \"6px\", display: \"flex\", gap: 1, ...styles?.sectionItem }}>\n <Typography variant=\"body2\" sx={{ fontWeight: 500, fontSize: \"0.75rem\", ...styles?.indexText }}>{index + 1}.</Typography>\n <Box sx={{ flex: 1 }}>\n <Typography variant=\"body2\" component=\"span\" sx={{ fontSize: \"0.75rem\", ...styles?.textContent }}>\n {renderReasonItem(itemHtml, index)}\n </Typography>\n </Box>\n </Box>\n ))\n ) : (\n <Typography variant=\"body2\" color=\"gray\" sx={{ mb: 0.5, pl: 3, fontSize: \"0.72rem\", ...styles?.sectionSubtitle }}>No Reasons Found</Typography>\n )}\n </Box>\n </AccordionDetails>\n </Accordion>\n <Divider />\n <Accordion disableGutters elevation={0} sx={styles?.accordion}>\n <AccordionSummary expandIcon={<ExpandMoreIcon />} sx={styles?.accordionSummary}>\n <Typography sx={{ display: \"flex\", alignItems: \"center\", gap: 0.8, fontSize: \"0.78rem\", ...styles?.sectionTitle }} fontWeight={600}>\n <Box sx={{ width: 24, height: 24, borderRadius: \"50%\", backgroundColor: \"#e9ecfd\", display: \"flex\", alignItems: \"center\", justifyContent: \"center\", flexShrink: 0, ...styles?.sectionIcon }}>\n <ManageSearchOutlined sx={{ fontSize: 14, color: \"#5928ed\" }} />\n </Box>\n Gaps in Decision\n </Typography>\n </AccordionSummary>\n <AccordionDetails sx={styles?.accordionDetails}>\n <Box sx={{ padding: 0, margin: 0 }}>\n {gapItems.length > 0 ? (\n gapItems.map((gapHtml, index) => (\n <Box key={index} sx={{ marginBottom: \"6px\", display: \"flex\", gap: 1, ...styles?.sectionItem }}>\n <Typography variant=\"body2\" sx={{ fontWeight: 500, fontSize: \"0.75rem\", ...styles?.indexText }}>{index + 1}.</Typography>\n <Typography variant=\"body2\" component=\"span\" sx={{ fontSize: \"0.75rem\", ...styles?.textContent }} dangerouslySetInnerHTML={{ __html: gapHtml }} />\n </Box>\n ))\n ) : (\n <Typography variant=\"body2\" color=\"gray\" sx={{ mb: 0.5, pl: 3, fontSize: \"0.72rem\", ...styles?.sectionSubtitle }}>No Gaps Found</Typography>\n )}\n </Box>\n </AccordionDetails>\n </Accordion>\n </Box>\n </Box>\n );\n};\n\nexport default CognitiveReasoningPanel;\n"],"names":["parseListItems","html","div","document","createElement","innerHTML","Array","from","querySelectorAll","map","li","extractCitationKey","href","replace","CognitiveDecisioningIcon","style","jsx","Box","component","viewBox","sx","width","height","fill","children","d","open","onClose","data","styles","selectedCitationKey","setSelectedCitationKey","useState","activeCitation","useMemo","block_cognitive_citations","find","c","String","citation_number","reasoningItems","block_cognitive_reasoning_html","gapItems","block_cognitive_gap_html","renderReasonItem","rawHtml","reasonIndex","parts","regex","match","lastIndex","segIdx","exec","citationKey","anchorText","isSelected","index","push","substring","jsxs","onClick","prev","color","fontWeight","cursor","textDecoration","citationLink","ChatBubbleOutlineOutlined","fontSize","ml","maxHeight","padding","overflow","backgroundColor","mt","citationContainer","ChatCitationRenderer","showRootContainer","modalContainerStyle","citationModalContainer","rootContainer","relevanceScore","block_cognitive_confidence","slotStyles","container","border","paddingLeft","textContent","citationRootContainer","ruleBookContainer","title","training_data_title","section_ref","content","data_sources","join","paraphrase","highlighted_texts","isArray","highlight","citationTitle","body","citationBody","dataContainer","citationDataContainer","outerContainer","margin","minHeight","citationRuleBookContainer","additionalData","RuleBookDetailedViewVerticallyStacked","reversePanels","length","maxWidth","borderRadius","display","flexDirection","px","py","borderBottom","justifyContent","alignItems","flexShrink","header","gap","headerIcon","Typography","headerTitleText","Chip","icon","AutoAwesomeIcon","label","size","badge","IconButton","closeButton","CloseIcon","flex","overflowY","p","Accordion","defaultExpanded","disableGutters","elevation","accordion","AccordionSummary","expandIcon","ExpandMoreIcon","accordionSummary","sectionTitle","sectionIcon","LightbulbOutlined","AccordionDetails","accordionDetails","itemHtml","marginBottom","sectionItem","variant","indexText","mb","pl","sectionSubtitle","Divider","ManageSearchOutlined","gapHtml","dangerouslySetInnerHTML","__html"],"mappings":"qeA4EA,MAAMA,EAAkBC,IACd,MAAAC,EAAMC,SAASC,cAAc,OAE5B,OADPF,EAAIG,UAAYJ,EACTK,MAAMC,KAAKL,EAAIM,iBAAiB,OAAOC,IAAKC,GAAOA,EAAGL,YAG3DM,EAAsBC,GAAyBA,EAAKC,QAAQ,QAAS,IAErEC,EAA2B,EAAGC,WAChCC,EAAAA,IAACC,EAAAA,IAAA,CACGC,UAAU,MACVC,QAAQ,YACRC,GAAI,CAAEC,MAAO,GAAIC,OAAQ,GAAIC,KAAM,aAAcR,GAEjDS,SAAAR,EAAAA,IAAC,OAAK,CAAAS,EAAE,sHAIgB,EAAGC,OAAMC,UAASC,OAAMC,aACpD,MAAOC,EAAqBC,GAA0BC,WAAwB,MAExEC,EAAgDC,EAAAA,QAAQ,IACrDJ,GAAwBF,EACtBA,EAAKO,0BAA0BC,KAAMC,GAAMC,OAAOD,EAAEE,mBAAqBT,IAAwB,KAD9D,KAE3C,CAACA,EAAqBF,IAEnBY,EAAiBN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EAAAA,IAAC8G,EAAAA,YAAW+B,QAAQ,QAAQ/F,MAAM,OAAO1C,GAAI,CAAE2I,GAAI,GAAKC,GAAI,EAAG5F,SAAU,aAAcvC,GAAQoI,iBAAmBzI,SAAa,+BAvFzI"}
1
+ {"version":3,"file":"Cognitivereasoningpanel.js","sources":["../../../../src/features/SPBAnalysisPanel/Cognitivereasoningpanel.tsx"],"sourcesContent":["import { useMemo, useState, type CSSProperties } from \"react\";\nimport { Box } from \"@mui/system\";\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n Chip,\n Divider,\n IconButton,\n Typography,\n} from \"@mui/material\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\";\nimport { ChatBubbleOutlineOutlined, LightbulbOutlined, ManageSearchOutlined } from \"@mui/icons-material\";\nimport AutoAwesomeIcon from \"@mui/icons-material/AutoAwesome\";\nimport ChatCitationRenderer from \"../ChatCitation/ChatCitationRenderer\";\n\n// ─── Ported from the app's CognitiveReasoningPanelForFPB ───────────────────\n// The only app-specific thing here was a local SVG asset import\n// (`../../../assets/svg/CognitiveDecisioning.svg`), which is replaced below\n// with an inline icon so the library doesn't need to ship/resolve an asset\n// path. Everything else — including ChatCitationRenderer — is already\n// library-owned, so this is a near-verbatim port.\n\nexport type BlockCognitiveCitation = {\n citation_number: number;\n title?: string;\n section_ref?: string;\n content?: string;\n paraphrase?: string;\n highlight: string | string[];\n data_sources?: string[];\n training_data_title?: string;\n};\n\nexport type CognitiveReasoningData = {\n block_cognitive_reasoning_html: string;\n block_cognitive_gap_html: string;\n block_cognitive_confidence: number;\n block_cognitive_citations: BlockCognitiveCitation[];\n};\n\nexport interface CognitiveReasoningPanelStyles {\n container?: CSSProperties | any;\n header?: CSSProperties | any;\n headerIcon?: CSSProperties | any;\n headerTitleText?: CSSProperties | any;\n badge?: CSSProperties | any;\n closeButton?: CSSProperties | any;\n body?: CSSProperties | any;\n accordion?: CSSProperties | any;\n accordionSummary?: CSSProperties | any;\n accordionDetails?: CSSProperties | any;\n sectionIcon?: CSSProperties | any;\n sectionTitle?: CSSProperties | any;\n sectionSubtitle?: CSSProperties | any;\n sectionItem?: CSSProperties | any;\n indexText?: CSSProperties | any;\n textContent?: CSSProperties | any;\n citationLink?: CSSProperties | any;\n citationContainer?: CSSProperties | any;\n citationModalContainer?: CSSProperties | any;\n citationRootContainer?: CSSProperties | any;\n citationTitle?: CSSProperties | any;\n citationBody?: CSSProperties | any;\n citationDataContainer?: CSSProperties | any;\n citationRuleBookContainer?: CSSProperties | any;\n}\n\nexport interface CognitiveReasoningPanelProps {\n open: boolean;\n onClose: () => void;\n data: CognitiveReasoningData | null;\n styles?: CognitiveReasoningPanelStyles;\n}\n\nconst parseListItems = (html: string): string[] => {\n const div = document.createElement(\"div\");\n div.innerHTML = html;\n return Array.from(div.querySelectorAll(\"li\")).map((li) => li.innerHTML);\n};\n\nconst extractCitationKey = (href: string): string => href.replace(/^.*\\$/, \"\");\n\nconst CognitiveDecisioningIcon = ({ style }: { style?: CSSProperties | any }) => (\n <Box\n component=\"svg\"\n viewBox=\"0 0 24 24\"\n sx={{ width: 14, height: 14, fill: \"#5928ed\", ...style }}\n >\n <path d=\"M12 2a7 7 0 0 0-4 12.74V17a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2.26A7 7 0 0 0 12 2zm-1 19h2v1h-2v-1z\" />\n </Box>\n);\n\nconst CognitiveReasoningPanel = ({ open, onClose, data, styles }: CognitiveReasoningPanelProps) => {\n const [selectedCitationKey, setSelectedCitationKey] = useState<string | null>(null);\n\n const activeCitation: BlockCognitiveCitation | null = useMemo(() => {\n if (!selectedCitationKey || !data) return null;\n return data.block_cognitive_citations.find((c) => String(c.citation_number) === selectedCitationKey) ?? null;\n }, [selectedCitationKey, data]);\n\n const reasoningItems = useMemo(\n () => (data?.block_cognitive_reasoning_html ? parseListItems(data.block_cognitive_reasoning_html) : []),\n [data?.block_cognitive_reasoning_html]\n );\n const gapItems = useMemo(\n () => (data?.block_cognitive_gap_html ? parseListItems(data.block_cognitive_gap_html) : []),\n [data?.block_cognitive_gap_html]\n );\n\n const renderReasonItem = (rawHtml: string, reasonIndex: number) => {\n const parts: React.ReactNode[] = [];\n const regex = /<a[^>]*href=\"([^\"]+)\"[^>]*>(.*?)<\\/a>/g;\n let lastIndex = 0;\n let match: RegExpExecArray | null;\n let segIdx = 0;\n\n while ((match = regex.exec(rawHtml)) !== null) {\n const citationKey = extractCitationKey(match[1]);\n const anchorText = match[2];\n const isSelected = selectedCitationKey === citationKey;\n\n if (match.index > lastIndex) {\n parts.push(<span key={`txt-${reasonIndex}-${segIdx++}`}>{rawHtml.substring(lastIndex, match.index)}</span>);\n }\n\n parts.push(\n <span key={`anchor-${reasonIndex}-${citationKey}`}>\n <span\n onClick={() => setSelectedCitationKey((prev) => (prev === citationKey ? null : citationKey))}\n style={{ color: \"#2563EB\", fontWeight: 500, cursor: \"pointer\", textDecoration: \"underline\", ...styles?.citationLink }}\n >\n {anchorText}\n <ChatBubbleOutlineOutlined sx={{ fontSize: \"12px\", ml: 0.2 }} />\n </span>\n {isSelected && activeCitation && (\n <Box sx={{ maxHeight: \"35vh\", padding: \"6px\", overflow: \"auto\", backgroundColor: \"#ffffff\", mt: 1, ...styles?.citationContainer }}>\n <ChatCitationRenderer\n showRootContainer={false}\n modalContainerStyle={styles?.citationModalContainer}\n rootContainer={{\n relevanceScore: data?.block_cognitive_confidence ?? 0,\n slotStyles: {\n container: {\n border: \"\",\n paddingLeft: \"-20px\",\n color: styles?.textContent?.color ?? \"black\",\n ...styles?.citationRootContainer,\n },\n },\n }}\n ruleBookContainer={{\n title:activeCitation.training_data_title || activeCitation.title || activeCitation.section_ref || \"Rule Book\",\n data: {\n content: activeCitation.data_sources?.join('\\n\\n') || activeCitation.content || activeCitation.paraphrase || \"\",\n highlighted_texts: activeCitation.paraphrase\n ? Array.isArray(activeCitation.paraphrase)\n ? activeCitation.paraphrase\n : [activeCitation.paraphrase]\n : Array.isArray(activeCitation.highlight)\n ? activeCitation.highlight\n : activeCitation.highlight\n ? [activeCitation.highlight]\n : [],\n },\n slotStyles: {\n title: styles?.citationTitle,\n body: styles?.citationBody,\n dataContainer: styles?.citationDataContainer,\n outerContainer: {\n margin: \"0\",\n color: styles?.textContent?.color ?? \"black\",\n minHeight: \"350px\",\n ...styles?.citationRuleBookContainer,\n },\n },\n }}\n additionalData={{ RuleBookDetailedViewVerticallyStacked: true }}\n reversePanels={true}\n />\n </Box>\n )}\n </span>\n );\n lastIndex = regex.lastIndex;\n }\n\n if (lastIndex < rawHtml.length) {\n parts.push(<span key={`txt-end-${reasonIndex}-${segIdx++}`}>{rawHtml.substring(lastIndex)}</span>);\n }\n return parts;\n };\n\n if (!open) return null;\n\n return (\n <Box\n sx={{\n width: \"min(500px, calc(100vw - 16px))\",\n maxWidth: \"calc(100vw - 16px)\",\n maxHeight: \"80vh\",\n borderRadius: 3,\n display: \"flex\",\n flexDirection: \"column\",\n overflow: \"hidden\",\n border: \"1px solid #e0e0e0\",\n backgroundColor: \"#fff\",\n color: \"#111827\",\n ...styles?.container,\n }}\n >\n {/* Header */}\n <Box sx={{ px: 2, py: 1, borderBottom: \"1px solid #e0e0e0\", display: \"flex\", justifyContent: \"space-between\", alignItems: \"center\", flexShrink: 0, backgroundColor: \"#e9ecfd\", ...styles?.header }}>\n <Box display=\"flex\" alignItems=\"center\" gap={1}>\n <CognitiveDecisioningIcon style={styles?.headerIcon} />\n <Typography fontWeight={500} sx={{ fontSize: \"0.72rem\", ...styles?.headerTitleText }}>Cognitive Decisioning AI</Typography>\n </Box>\n <Box display=\"flex\" alignItems=\"center\" gap={1}>\n <Chip\n icon={<AutoAwesomeIcon sx={{ fontSize: 12 }} />}\n label={`AI Relevance: ${data?.block_cognitive_confidence ?? 0}%`}\n size=\"small\"\n sx={{ fontWeight: 500, fontSize: \"0.68rem\", backgroundColor: \"#ffffff\", color: \"#000000\", border: \"1px solid #ac93f6\", height: 20, \"& .MuiChip-label\": { fontSize: \"0.68rem\", px: 0.75 }, ...styles?.badge }}\n />\n <IconButton size=\"small\" onClick={onClose} sx={styles?.closeButton}>\n <CloseIcon fontSize=\"small\" />\n </IconButton>\n </Box>\n </Box>\n\n {/* Body */}\n <Box sx={{ flex: 1, overflowY: \"auto\", p: 0.5, ...styles?.body }}>\n <Accordion defaultExpanded disableGutters elevation={0} sx={styles?.accordion}>\n <AccordionSummary expandIcon={<ExpandMoreIcon />} sx={styles?.accordionSummary}>\n <Typography sx={{ display: \"flex\", alignItems: \"center\", gap: 0.8, fontSize: \"0.78rem\", ...styles?.sectionTitle }} fontWeight={600}>\n <Box sx={{ width: 24, height: 24, borderRadius: \"50%\", backgroundColor: \"#e9ecfd\", display: \"flex\", alignItems: \"center\", justifyContent: \"center\", flexShrink: 0, ...styles?.sectionIcon }}>\n <LightbulbOutlined sx={{ fontSize: 14, color: \"#5928ed\" }} />\n </Box>\n Decision Making Factors\n </Typography>\n </AccordionSummary>\n <AccordionDetails sx={styles?.accordionDetails}>\n <Box sx={{ padding: 0, margin: 0 }}>\n {reasoningItems.length > 0 ? (\n reasoningItems.map((itemHtml, index) => (\n <Box key={index} sx={{ marginBottom: \"6px\", display: \"flex\", gap: 1, ...styles?.sectionItem }}>\n <Typography variant=\"body2\" sx={{ fontWeight: 500, fontSize: \"0.75rem\", ...styles?.indexText }}>{index + 1}.</Typography>\n <Box sx={{ flex: 1 }}>\n <Typography variant=\"body2\" component=\"span\" sx={{ fontSize: \"0.75rem\", ...styles?.textContent }}>\n {renderReasonItem(itemHtml, index)}\n </Typography>\n </Box>\n </Box>\n ))\n ) : (\n <Typography variant=\"body2\" color=\"gray\" sx={{ mb: 0.5, pl: 3, fontSize: \"0.72rem\", ...styles?.sectionSubtitle }}>No Reasons Found</Typography>\n )}\n </Box>\n </AccordionDetails>\n </Accordion>\n <Divider />\n <Accordion disableGutters elevation={0} sx={styles?.accordion}>\n <AccordionSummary expandIcon={<ExpandMoreIcon />} sx={styles?.accordionSummary}>\n <Typography sx={{ display: \"flex\", alignItems: \"center\", gap: 0.8, fontSize: \"0.78rem\", ...styles?.sectionTitle }} fontWeight={600}>\n <Box sx={{ width: 24, height: 24, borderRadius: \"50%\", backgroundColor: \"#e9ecfd\", display: \"flex\", alignItems: \"center\", justifyContent: \"center\", flexShrink: 0, ...styles?.sectionIcon }}>\n <ManageSearchOutlined sx={{ fontSize: 14, color: \"#5928ed\" }} />\n </Box>\n Gaps in Decision\n </Typography>\n </AccordionSummary>\n <AccordionDetails sx={styles?.accordionDetails}>\n <Box sx={{ padding: 0, margin: 0 }}>\n {gapItems.length > 0 ? (\n gapItems.map((gapHtml, index) => (\n <Box key={index} sx={{ marginBottom: \"6px\", display: \"flex\", gap: 1, ...styles?.sectionItem }}>\n <Typography variant=\"body2\" sx={{ fontWeight: 500, fontSize: \"0.75rem\", ...styles?.indexText }}>{index + 1}.</Typography>\n <Typography variant=\"body2\" component=\"span\" sx={{ fontSize: \"0.75rem\", ...styles?.textContent }} dangerouslySetInnerHTML={{ __html: gapHtml }} />\n </Box>\n ))\n ) : (\n <Typography variant=\"body2\" color=\"gray\" sx={{ mb: 0.5, pl: 3, fontSize: \"0.72rem\", ...styles?.sectionSubtitle }}>No Gaps Found</Typography>\n )}\n </Box>\n </AccordionDetails>\n </Accordion>\n </Box>\n </Box>\n );\n};\n\nexport default CognitiveReasoningPanel;\n"],"names":["parseListItems","html","div","document","createElement","innerHTML","Array","from","querySelectorAll","map","li","extractCitationKey","href","replace","CognitiveDecisioningIcon","style","jsx","Box","component","viewBox","sx","width","height","fill","children","d","open","onClose","data","styles","selectedCitationKey","setSelectedCitationKey","useState","activeCitation","useMemo","block_cognitive_citations","find","c","String","citation_number","reasoningItems","block_cognitive_reasoning_html","gapItems","block_cognitive_gap_html","renderReasonItem","rawHtml","reasonIndex","parts","regex","match","lastIndex","segIdx","exec","citationKey","anchorText","isSelected","index","push","substring","jsxs","onClick","prev","color","fontWeight","cursor","textDecoration","citationLink","ChatBubbleOutlineOutlined","fontSize","ml","maxHeight","padding","overflow","backgroundColor","mt","citationContainer","ChatCitationRenderer","showRootContainer","modalContainerStyle","citationModalContainer","rootContainer","relevanceScore","block_cognitive_confidence","slotStyles","container","border","paddingLeft","textContent","citationRootContainer","ruleBookContainer","title","training_data_title","section_ref","content","data_sources","join","paraphrase","highlighted_texts","isArray","highlight","citationTitle","body","citationBody","dataContainer","citationDataContainer","outerContainer","margin","minHeight","citationRuleBookContainer","additionalData","RuleBookDetailedViewVerticallyStacked","reversePanels","length","maxWidth","borderRadius","display","flexDirection","px","py","borderBottom","justifyContent","alignItems","flexShrink","header","gap","headerIcon","Typography","headerTitleText","Chip","icon","AutoAwesomeIcon","label","size","badge","IconButton","closeButton","CloseIcon","flex","overflowY","p","Accordion","defaultExpanded","disableGutters","elevation","accordion","AccordionSummary","expandIcon","ExpandMoreIcon","accordionSummary","sectionTitle","sectionIcon","LightbulbOutlined","AccordionDetails","accordionDetails","itemHtml","marginBottom","sectionItem","variant","indexText","mb","pl","sectionSubtitle","Divider","ManageSearchOutlined","gapHtml","dangerouslySetInnerHTML","__html"],"mappings":"uvOA4EA,MAAMA,EAAkBC,IACd,MAAAC,EAAMC,SAASC,cAAc,OAE5B,OADPF,EAAIG,UAAYJ,EACTK,MAAMC,KAAKL,EAAIM,iBAAiB,OAAOC,IAAKC,GAAOA,EAAGL,YAG3DM,EAAsBC,GAAyBA,EAAKC,QAAQ,QAAS,IAErEC,EAA2B,EAAGC,WAChCC,EAAAA,IAACC,EAAA,QAAA,CACGC,UAAU,MACVC,QAAQ,YACRC,GAAI,CAAEC,MAAO,GAAIC,OAAQ,GAAIC,KAAM,aAAcR,GAEjDS,SAAAR,EAAAA,IAAC,OAAK,CAAAS,EAAE,sHAIgB,EAAGC,OAAMC,UAASC,OAAMC,aACpD,MAAOC,EAAqBC,GAA0BC,WAAwB,MAExEC,EAAgDC,EAAAA,QAAQ,IACrDJ,GAAwBF,EACtBA,EAAKO,0BAA0BC,KAAM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D,SAAU,aAAcvC,GAAQ0D,aAAe8E,wBAAyB,CAAEC,OAAQF,OAF/H5G,IAMdxC,EAAAA,IAAC8G,EAAAA,YAAW+B,QAAQ,QAAQ/F,MAAM,OAAO1C,GAAI,CAAE2I,GAAI,GAAKC,GAAI,EAAG5F,SAAU,aAAcvC,GAAQoI,iBAAmBzI,SAAa,+BAvFzI"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),a=require("clsx"),s=require("./TableCitationContent.module.css.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(a);exports.default=({title:a,timestamp:t,rows:i=[],highlightColumns:d=[],highlightRowIndex:c,onClose:n,CloseIcon:u,className:o})=>{const h=l.useMemo(()=>{const e=new Set;return i.forEach(l=>{Object.keys(l).forEach(l=>{"markFailed"!==l&&e.add(l)})}),Array.from(e)},[i]),f=e=>"number"==typeof e?e.toLocaleString(void 0,{minimumFractionDigits:2}):"boolean"==typeof e?e?"✓":"✕":String(e??"");return e.jsxs("div",{className:r.default(s.default.container,o),children:[e.jsxs("header",{className:s.default.header,children:[e.jsxs("div",{className:s.default.titleGroup,children:[e.jsx("h2",{className:s.default.title,children:a}),t&&e.jsx("span",{className:s.default.timestamp,children:t})]}),n&&e.jsxs("div",{className:s.default.actions,children:[e.jsx("div",{className:s.default.divider}),e.jsx("button",{className:s.default.closeBtn,onClick:n,"aria-label":"Close",children:u?e.jsx(u,{}):"×"})]})]}),e.jsx("div",{className:s.default.tableScroll,children:e.jsxs("table",{className:s.default.table,children:[e.jsx("thead",{children:e.jsx("tr",{children:h.map(l=>e.jsx("th",{className:r.default(d.includes(l)&&s.default.highlightCell),children:l},l))})}),e.jsx("tbody",{children:i.map((l,a)=>e.jsx("tr",{className:r.default(c===a&&s.default.highlightCell),children:h.map(a=>{const t=Array.isArray(l.markFailed)&&l.markFailed.includes(a),i="boolean"==typeof l[a];return e.jsx("td",{className:r.default(d.includes(a)&&s.default.highlightCell,t&&s.default.failedCell),children:i?e.jsx("span",{className:r.default(s.default.badge,l[a]?s.default.success:s.default.error),children:f(l[a])}):f(l[a])},a)})},a))})]})})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),s=require("../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs.js"),a=require("./TableCitationContent.module.css.js");exports.default=({title:t,timestamp:i,rows:r=[],highlightColumns:d=[],highlightRowIndex:c,onClose:n,CloseIcon:o,className:u})=>{const h=l.useMemo(()=>{const e=new Set;return r.forEach(l=>{Object.keys(l).forEach(l=>{"markFailed"!==l&&e.add(l)})}),Array.from(e)},[r]),m=e=>"number"==typeof e?e.toLocaleString(void 0,{minimumFractionDigits:2}):"boolean"==typeof e?e?"✓":"✕":String(e??"");return e.jsxs("div",{className:s.clsx(a.default.container,u),children:[e.jsxs("header",{className:a.default.header,children:[e.jsxs("div",{className:a.default.titleGroup,children:[e.jsx("h2",{className:a.default.title,children:t}),i&&e.jsx("span",{className:a.default.timestamp,children:i})]}),n&&e.jsxs("div",{className:a.default.actions,children:[e.jsx("div",{className:a.default.divider}),e.jsx("button",{className:a.default.closeBtn,onClick:n,"aria-label":"Close",children:o?e.jsx(o,{}):"×"})]})]}),e.jsx("div",{className:a.default.tableScroll,children:e.jsxs("table",{className:a.default.table,children:[e.jsx("thead",{children:e.jsx("tr",{children:h.map(l=>e.jsx("th",{className:s.clsx(d.includes(l)&&a.default.highlightCell),children:l},l))})}),e.jsx("tbody",{children:r.map((l,t)=>e.jsx("tr",{className:s.clsx(c===t&&a.default.highlightCell),children:h.map(t=>{const i=Array.isArray(l.markFailed)&&l.markFailed.includes(t),r="boolean"==typeof l[t];return e.jsx("td",{className:s.clsx(d.includes(t)&&a.default.highlightCell,i&&a.default.failedCell),children:r?e.jsx("span",{className:s.clsx(a.default.badge,l[t]?a.default.success:a.default.error),children:m(l[t])}):m(l[t])},t)})},t))})]})})]})};
2
2
  //# sourceMappingURL=TableCitationContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableCitationContent.js","sources":["../../../../src/features/TableCitation/TableCitationContent.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport clsx from \"clsx\"; // Helps manage multiple classes\nimport styles from \"./TableCitationContent.module.css\";\n\ninterface TableCitationProps {\n title?: string;\n timestamp?: string;\n rows: Record<string, any>[];\n highlightColumns?: string[];\n highlightRowIndex?: number; // Zero-based index\n onClose?: () => void;\n CloseIcon?: React.ElementType;\n className?: string; // Allow parent to pass a custom class\n}\n\nconst TableCitationContent = ({\n title,\n timestamp,\n rows = [],\n highlightColumns = [],\n highlightRowIndex,\n onClose,\n CloseIcon,\n className,\n}: TableCitationProps) => {\n // 1. Identify all unique columns from the data\n const columns = useMemo(() => {\n const keys = new Set<string>();\n rows.forEach((row) => {\n Object.keys(row).forEach((key) => {\n if (key !== \"markFailed\") keys.add(key);\n });\n });\n return Array.from(keys);\n }, [rows]);\n\n // 2. Formatting helper\n const formatValue = (val: any) => {\n if (typeof val === \"number\") return val.toLocaleString(undefined, { minimumFractionDigits: 2 });\n if (typeof val === \"boolean\") return val ? \"✓\" : \"✕\";\n return String(val ?? \"\");\n };\n\n return (\n <div className={clsx(styles.container, className)}>\n <header className={styles.header}>\n <div className={styles.titleGroup}>\n <h2 className={styles.title}>{title}</h2>\n {timestamp && <span className={styles.timestamp}>{timestamp}</span>}\n </div>\n \n {onClose && (\n <div className={styles.actions}>\n <div className={styles.divider} />\n <button className={styles.closeBtn} onClick={onClose} aria-label=\"Close\">\n {CloseIcon ? <CloseIcon /> : \"×\"}\n </button>\n </div>\n )}\n </header>\n\n <div className={styles.tableScroll}>\n <table className={styles.table}>\n <thead>\n <tr>\n {columns.map((col) => (\n <th \n key={col} \n className={clsx(highlightColumns.includes(col) && styles.highlightCell)}\n >\n {col}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.map((row, rIdx) => (\n <tr \n key={rIdx} \n className={clsx(highlightRowIndex === rIdx && styles.highlightCell)}\n >\n {columns.map((col) => {\n const isFailed = Array.isArray(row.markFailed) && row.markFailed.includes(col);\n const isBool = typeof row[col] === \"boolean\";\n\n return (\n <td \n key={col}\n className={clsx(\n highlightColumns.includes(col) && styles.highlightCell,\n isFailed && styles.failedCell\n )}\n >\n {isBool ? (\n <span className={clsx(styles.badge, row[col] ? styles.success : styles.error)}>\n {formatValue(row[col])}\n </span>\n ) : (\n formatValue(row[col])\n )}\n </td>\n );\n })}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </div>\n );\n};\n\nexport default TableCitationContent;"],"names":["title","timestamp","rows","highlightColumns","highlightRowIndex","onClose","CloseIcon","className","columns","useMemo","keys","Set","forEach","row","Object","key","add","Array","from","formatValue","val","toLocaleString","minimumFractionDigits","String","clsx","styles","container","children","jsxs","header","titleGroup","jsx","actions","divider","closeBtn","onClick","tableScroll","table","map","col","includes","highlightCell","rIdx","isFailed","isArray","markFailed","isBool","failedCell","badge","success","error"],"mappings":"iSAe6B,EAC3BA,QACAC,YACAC,OAAO,GACPC,mBAAmB,GACnBC,oBACAC,UACAC,YACAC,gBAGM,MAAAC,EAAUC,EAAAA,QAAQ,KAChB,MAAAC,MAAWC,IAMV,OALFT,EAAAU,QAASC,IACZC,OAAOJ,KAAKG,GAAKD,QAASG,IACZ,eAARA,GAA2BL,EAAAM,IAAID,OAGhCE,MAAMC,KAAKR,IACjB,CAACR,IAGEiB,EAAeC,GACA,iBAARA,EAAyBA,EAAIC,oBAA0B,EAAA,CAAEC,sBAAuB,IACxE,kBAARF,EAA0BA,EAAM,IAAM,IAC1CG,OAAOH,GAAO,IAGvB,cACG,MAAI,CAAAb,UAAWiB,EAAAA,QAAKC,EAAAA,QAAOC,UAAWnB,GACrCoB,SAAA,CAACC,EAAAA,KAAA,SAAA,CAAOrB,UAAWkB,EAAAA,QAAOI,OACxBF,SAAA,CAACC,EAAAA,KAAA,MAAA,CAAIrB,UAAW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,CAAKxB,UAAWiB,UAAKC,EAAAA,QAAOuB,MAAOnC,EAAI0B,GAAOd,EAAO,QAAAwB,QAAUxB,EAAAA,QAAOyB,OACpEvB,SAAYR,EAAAN,EAAI0B,MAGnBpB,EAAYN,EAAI0B,KAXbA,MATNG"}
1
+ {"version":3,"file":"TableCitationContent.js","sources":["../../../../src/features/TableCitation/TableCitationContent.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport clsx from \"clsx\"; // Helps manage multiple classes\nimport styles from \"./TableCitationContent.module.css\";\n\ninterface TableCitationProps {\n title?: string;\n timestamp?: string;\n rows: Record<string, any>[];\n highlightColumns?: string[];\n highlightRowIndex?: number; // Zero-based index\n onClose?: () => void;\n CloseIcon?: React.ElementType;\n className?: string; // Allow parent to pass a custom class\n}\n\nconst TableCitationContent = ({\n title,\n timestamp,\n rows = [],\n highlightColumns = [],\n highlightRowIndex,\n onClose,\n CloseIcon,\n className,\n}: TableCitationProps) => {\n // 1. Identify all unique columns from the data\n const columns = useMemo(() => {\n const keys = new Set<string>();\n rows.forEach((row) => {\n Object.keys(row).forEach((key) => {\n if (key !== \"markFailed\") keys.add(key);\n });\n });\n return Array.from(keys);\n }, [rows]);\n\n // 2. Formatting helper\n const formatValue = (val: any) => {\n if (typeof val === \"number\") return val.toLocaleString(undefined, { minimumFractionDigits: 2 });\n if (typeof val === \"boolean\") return val ? \"✓\" : \"✕\";\n return String(val ?? \"\");\n };\n\n return (\n <div className={clsx(styles.container, className)}>\n <header className={styles.header}>\n <div className={styles.titleGroup}>\n <h2 className={styles.title}>{title}</h2>\n {timestamp && <span className={styles.timestamp}>{timestamp}</span>}\n </div>\n \n {onClose && (\n <div className={styles.actions}>\n <div className={styles.divider} />\n <button className={styles.closeBtn} onClick={onClose} aria-label=\"Close\">\n {CloseIcon ? <CloseIcon /> : \"×\"}\n </button>\n </div>\n )}\n </header>\n\n <div className={styles.tableScroll}>\n <table className={styles.table}>\n <thead>\n <tr>\n {columns.map((col) => (\n <th \n key={col} \n className={clsx(highlightColumns.includes(col) && styles.highlightCell)}\n >\n {col}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.map((row, rIdx) => (\n <tr \n key={rIdx} \n className={clsx(highlightRowIndex === rIdx && styles.highlightCell)}\n >\n {columns.map((col) => {\n const isFailed = Array.isArray(row.markFailed) && row.markFailed.includes(col);\n const isBool = typeof row[col] === \"boolean\";\n\n return (\n <td \n key={col}\n className={clsx(\n highlightColumns.includes(col) && styles.highlightCell,\n isFailed && styles.failedCell\n )}\n >\n {isBool ? (\n <span className={clsx(styles.badge, row[col] ? styles.success : styles.error)}>\n {formatValue(row[col])}\n </span>\n ) : (\n formatValue(row[col])\n )}\n </td>\n );\n })}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </div>\n );\n};\n\nexport default TableCitationContent;"],"names":["title","timestamp","rows","highlightColumns","highlightRowIndex","onClose","CloseIcon","className","columns","useMemo","keys","Set","forEach","row","Object","key","add","Array","from","formatValue","val","toLocaleString","minimumFractionDigits","String","clsx","styles","container","children","jsxs","header","titleGroup","jsx","actions","divider","closeBtn","onClick","tableScroll","table","map","col","includes","highlightCell","rIdx","isFailed","isArray","markFailed","isBool","failedCell","badge","success","error"],"mappings":"gRAe6B,EAC3BA,QACAC,YACAC,OAAO,GACPC,mBAAmB,GACnBC,oBACAC,UACAC,YACAC,gBAGM,MAAAC,EAAUC,EAAAA,QAAQ,KAChB,MAAAC,MAAWC,IAMV,OALFT,EAAAU,QAASC,IACZC,OAAOJ,KAAKG,GAAKD,QAASG,IACZ,eAARA,GAA2BL,EAAAM,IAAID,OAGhCE,MAAMC,KAAKR,IACjB,CAACR,IAGEiB,EAAeC,GACA,iBAARA,EAAyBA,EAAIC,oBAA0B,EAAA,CAAEC,sBAAuB,IACxE,kBAARF,EAA0BA,EAAM,IAAM,IAC1CG,OAAOH,GAAO,IAGvB,cACG,MAAI,CAAAb,UAAWiB,EAAAA,KAAKC,EAAAA,QAAOC,UAAWnB,GACrCoB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,EAAAA,KACTrB,EAAiBqC,SAASD,IAAQd,EAAO,QAAAgB,cACzCE,GAAYlB,EAAO,QAAAsB,YAGpBpB,SAAAmB,EACEf,MAAA,OAAA,CAAKxB,UAAWiB,OAAKC,EAAAA,QAAOuB,MAAOnC,EAAI0B,GAAOd,EAAO,QAAAwB,QAAUxB,EAAAA,QAAOyB,OACpEvB,SAAYR,EAAAN,EAAI0B,MAGnBpB,EAAYN,EAAI0B,KAXbA,MATNG"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){for(var t,r=0,c=0,o=e.length;o>=4;++c,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(c+2))<<16;case 2:r^=(255&e.charCodeAt(c+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(c)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)};
2
+ //# sourceMappingURL=emotion-hash.esm.js.map