@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 +1 @@
1
- {"version":3,"file":"BookPreview.js","sources":["../../../../../src/features/Bookemon/BookPreview/BookPreview.tsx"],"sourcesContent":["import React, { CSSProperties, useEffect, useRef, useState } from \"react\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport ArrowBackIcon from \"@mui/icons-material/ArrowBack\";\nimport BookCitation from \"../../BookCitation/BookCitation\";\nimport { IBookOverview } from \"../BookOverviewCard/BookOverviewCard\";\nimport \"./BookPreview.css\";\nimport { comingSoonStyles, defaultIcon } from \"../Bookemon\";\nimport Switch from \"@mui/material/Switch\";\nimport Tooltip from \"@mui/material/Tooltip\";\n// import {Switch, Tooltip } from \"@mui/material\";\n\ninterface BookPreviewProps {\n bookOverView: IBookOverview\n bookCoverImage: string;\n previewPage: number;\n setPreviewPage: (page: number) => void;\n onClose: () => void;\n quotesToHighLightData: {\n textToHighLight: string;\n content: string;\n };\n citationLoad: boolean;\n updateQuotesToHighLight: (textToHighLight: string,\n clickableElementCategory: string,\n chunkIds?: string[]) => void;\n customStyle?: {\n citationCustomStyle?: {\n citationButtonWrapper?: CSSProperties;\n arrow?: CSSProperties;\n citationButton?: CSSProperties;\n expandableContent?: CSSProperties;\n bookHeader?: CSSProperties;\n relative?: CSSProperties;\n pageColor?: CSSProperties;\n highlightedText?: CSSProperties;\n expandedWrapper?: CSSProperties;\n expandableContainer?: CSSProperties;\n bookBodyContent?: CSSProperties;\n customScrollbarClass?: CSSProperties;\n relativeWrapper?: CSSProperties;\n }\n dialogDimension?: CSSProperties\n leftPanel?: CSSProperties\n rightPanel?: CSSProperties\n previewWrapper?: CSSProperties\n coverImagePreview?: CSSProperties\n }\n comingSoonData?: {\n header?: string;\n subheader?: string;\n icon?: React.ReactNode;\n };\n clickableElementCategory?: string;\n isNonHighlightedBlur: boolean\n isBlurToggleVisible?: boolean\n noHtmlContent : boolean\n isBookemon : boolean\n}\n\nconst BookPreview: React.FC<BookPreviewProps> = ({\n bookOverView,\n bookCoverImage,\n onClose,\n customStyle,\n quotesToHighLightData,\n updateQuotesToHighLight,\n citationLoad,\n clickableElementCategory = \"\",\n comingSoonData,\n isNonHighlightedBlur=false,\n isBlurToggleVisible = false,\n noHtmlContent=false,\n isBookemon=true,\n}) => {\n const [hasError, setHasError] = useState(false);\n const [toggleBlur, setToggleBlur] = useState<boolean>(true);\n // Local state to toggle between image preview and citation view\n const showCitation = !!quotesToHighLightData.content;\n \n const defaultStyles: { [key: string]: CSSProperties } = {\n header: {\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n padding: \"16px\",\n },\n headerLeft: {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"8px\",\n },\n closeButton: {\n padding: \"4px\",\n borderRadius: \"4px\",\n cursor: \"pointer\",\n backgroundColor: \"transparent\",\n },\n flexCenter: {\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n coverContainer: {\n width: \"100%\",\n maxWidth: \"300px\",\n borderRadius: \"12px\",\n padding: \"4px\",\n background: \"linear-gradient(135deg, #34D399, #3B82F6, #10B981)\",\n position: \"relative\",\n overflow: \"hidden\",\n boxShadow: \"0 10px 25px rgba(0,0,0,0.3)\",\n marginBottom: \"24px\",\n },\n bookCoverStyle: {\n width: \"100%\",\n height: \"auto\",\n objectFit: \"contain\",\n borderRadius: \"12px\",\n boxShadow: \"0 4px 12px rgba(0,0,0,0.1)\",\n },\n loadingStyle : {\n width : \"100%\",\n height : \"100%\",\n display : \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexDirection : \"column\",\n },\n rightPanel: {\n height: \"100%\",\n display: \"flex\",\n flexDirection: \"column\",\n overflow: \"hidden\",\n },\n clickableElementCategory: { fontSize: \"20px\", fontWeight: 600 },\n previewWrapper:{\n flex: 1,\n width: \"80%\",\n margin: \"0 auto\",\n display: \"flex\",\n flexDirection: \"column\",\n overflow: \"hidden\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n },\n coverImagePreview: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n aspectRatio: \"7 / 10\",\n background: \"\",\n padding: 0\n },\n toggleBlurContainer: {\n display: 'flex',\n alignItems: 'center',\n gap: '20px'\n },\n bookCoverPlaceholder: {\n width: '100%',\n height: 'calc(100% - 8px)',\n background: 'linear-gradient(to bottom, #22c55e, #14532d)',\n borderRadius: '4px',\n padding: '4px',\n color: 'white',\n fontSize: '10px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n },\n\n bookCoverInner: {\n border: '1px solid white',\n padding: '4px',\n width: 'calc(100% - 26px)',\n height: 'calc(100% - 26px)',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n textAlign: 'center',\n justifyContent: 'space-around',\n },\n\n bookTitle: {\n fontWeight: 800,\n fontSize: '1.5rem',\n textTransform: 'uppercase',\n letterSpacing: '0.5px',\n lineHeight: 1.2,\n display: '-webkit-box',\n WebkitLineClamp: 2,\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n padding: '0 8px',\n },\n\n bookAuthor: {\n fontSize: '1rem',\n fontWeight: 500,\n opacity: 0.9,\n marginTop: '8px',\n display: '-webkit-box',\n WebkitLineClamp: 2,\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n },\n\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setToggleBlur(event.target.checked);\n console.log(event.target.checked, \"event.target.checked\")\n };\n\n useEffect(() => {\n setToggleBlur(true)\n console.log(citationLoad, \"citationLoad\")\n }, [citationLoad])\n\n\nreturn (\n<div\n style={{\n ...defaultStyles.rightPanel,\n ...(customStyle?.rightPanel || {}),\n }}\n>\n {/* Header - Fixed at top */}\n <div style={defaultStyles.header}>\n <div style={defaultStyles.headerLeft}>\n {(showCitation || noHtmlContent) && (\n <button\n style={defaultStyles.closeButton}\n onClick={() => updateQuotesToHighLight(\"\", \"Book Preview\")}\n onMouseOver={(e) =>\n (e.currentTarget.style.backgroundColor = \"#F3F4F6\")\n }\n onMouseOut={(e) =>\n (e.currentTarget.style.backgroundColor = \"transparent\")\n }\n >\n <ArrowBackIcon />\n </button>\n )}\n <h2 style={defaultStyles.clickableElementCategory}>\n {clickableElementCategory}\n </h2>\n </div>\n\n <div style={defaultStyles.toggleBlurContainer}>\n {(showCitation && isBlurToggleVisible) && <div style={{ display: \"flex\", alignItems: \"center\", gap: \"2px\" }}>\n <Switch\n checked={toggleBlur}\n onChange={handleChange}\n color=\"primary\"\n size=\"small\"\n />\n <span style={{ fontSize: \"0.75rem\", display: \"flex\", alignItems: \"center\", gap: \"4px\" }}>\n Blur\n <Tooltip title=\"Blur Text is enabled by default. Non-highlighted parts of the text will appear blurred to help you focus on the highlighted content. You can turn this off if you want to see all text clearly.\">\n <span\n style={{\n display: \"inline-flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n width: \"14px\",\n height: \"14px\",\n borderRadius: \"50%\",\n backgroundColor: \"#485468\",\n color: \"#fff\",\n fontSize: \"10px\",\n fontWeight: \"bold\",\n cursor: \"pointer\",\n lineHeight: \"14px\",\n userSelect: \"none\",\n }}\n >\n i\n </span>\n </Tooltip>\n </span>\n </div>\n }\n <button\n style={defaultStyles.closeButton}\n onClick={() => {\n onClose();\n updateQuotesToHighLight(\"\", \"Book Preview\");\n }}\n onMouseOver={(e) =>\n (e.currentTarget.style.backgroundColor = \"#F3F4F6\")\n }\n onMouseOut={(e) =>\n (e.currentTarget.style.backgroundColor = \"transparent\")\n }\n >\n <CloseIcon />\n </button>\n </div>\n </div>\n {/* Content Area */}\n <div style={{...defaultStyles.previewWrapper,...customStyle?.previewWrapper}}>\n {showCitation ? (\n <BookCitation\n citationNumber={1}\n defaultState={true}\n partialMatch={true}\n fixedWidth={false}\n citationTitle={\"Sample Citation\"}\n title={\"Sample Title\"}\n paragraphs={[quotesToHighLightData?.content]}\n textToHighlight={[quotesToHighLightData?.textToHighLight]}\n externalLinkComponent={\"\"}\n bookCoverImage={bookCoverImage}\n customStyle={customStyle?.citationCustomStyle}\n isNonHighlightedBlur={isNonHighlightedBlur}\n isBookemon={isBookemon}\n toggleBlur={toggleBlur}\n />\n ) : (citationLoad || noHtmlContent) ? \n <div style={defaultStyles.loadingStyle}>\n <div style={comingSoonStyles.iconWrapper}>{comingSoonData?.icon||defaultIcon}</div>\n {noHtmlContent ? <p style={comingSoonStyles.text}>No data found matching the selected {clickableElementCategory.toLowerCase()}</p> :<p style={comingSoonStyles.text}>fetching {clickableElementCategory.toLowerCase()}....</p>}\n </div>\n : (\n <div style={defaultStyles.flexCenter}>\n <div style={{\n ...defaultStyles.coverContainer,\n ...(hasError || !bookCoverImage ? { ...defaultStyles.coverImagePreview,...customStyle?.coverImagePreview } : {})\n }} >\n {bookCoverImage && !hasError ? (\n <img\n onError={() => setHasError(true)}\n style={defaultStyles.bookCoverStyle} \n src={bookCoverImage} \n alt=\"Book Cover Image\" />\n ) : (\n <div style={defaultStyles.bookCoverPlaceholder}>\n <div style={defaultStyles.bookCoverInner}>\n <div style={defaultStyles.bookTitle}>{bookOverView?.title || 'Unknown Title'}</div>\n <div style={defaultStyles.bookAuthor}>{bookOverView?.author || 'Unknown Author'}</div>\n </div>\n </div>\n )}\n </div>\n </div>\n )}\n </div>\n </div>\n );\n};\n\nexport default BookPreview;\n"],"names":["bookOverView","bookCoverImage","onClose","customStyle","quotesToHighLightData","updateQuotesToHighLight","citationLoad","clickableElementCategory","comingSoonData","isNonHighlightedBlur","isBlurToggleVisible","noHtmlContent","isBookemon","hasError","setHasError","useState","toggleBlur","setToggleBlur","showCitation","content","defaultStyles","header","display","justifyContent","alignItems","padding","headerLeft","gap","closeButton","borderRadius","cursor","backgroundColor","flexCenter","width","height","coverContainer","maxWidth","background","position","overflow","boxShadow","marginBottom","bookCoverStyle","objectFit","loadingStyle","flexDirection","rightPanel","fontSize","fontWeight","previewWrapper","flex","margin","coverImagePreview","aspectRatio","toggleBlurContainer","bookCoverPlaceholder","color","bookCoverInner","border","textAlign","bookTitle","textTransform","letterSpacing","lineHeight","WebkitLineClamp","WebkitBoxOrient","bookAuthor","opacity","marginTop","useEffect","console","log","jsxs","style","children","jsx","onClick","onMouseOver","e","currentTarget","onMouseOut","ArrowBackIcon","Switch","checked","onChange","event","target","size","Tooltip","title","userSelect","CloseIcon","BookCitation","citationNumber","defaultState","partialMatch","fixedWidth","citationTitle","paragraphs","textToHighlight","textToHighLight","externalLinkComponent","citationCustomStyle","comingSoonStyles","iconWrapper","icon","defaultIcon","text","toLowerCase","onError","src","alt","author"],"mappings":"yfA2DgD,EAC9CA,eACAC,iBACAC,UACAC,cACAC,wBACAC,0BACAC,eACAC,2BAA2B,GAC3BC,iBACAC,wBAAqB,EACrBC,uBAAsB,EACtBC,iBAAc,EACdC,cAAW,MAEX,MAAOC,EAAUC,GAAeC,YAAS,IAClCC,EAAYC,GAAiBF,YAAkB,GAEhDG,IAAiBd,EAAsBe,QAEvCC,EAAkD,CACtDC,OAAQ,CACNC,Q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CAAAC,MAAO8B,mBAAiBI,KAAMjC,SAAA,CAAA,YAAUnE,EAAyBqG,cAAc,mBAG1N,MAAI,CAAAnC,MAAOrD,EAAcY,WACxB0C,SAAAC,EAAAA,IAAC,OAAIF,MAAO,IACRrD,EAAce,kBACTtB,IAAaZ,EAAiB,IAAKmB,EAAcgC,qBAAqBjD,GAAaiD,mBAAsB,CAAC,GAEpHsB,SAAkBzE,IAACY,EACpB8D,EAAAA,IAAC,MAAA,CACCkC,QAAS,IAAM/F,GAAY,GAC3B2D,MAAOrD,EAAcsB,eACrBoE,IAAK7G,EACL8G,IAAI,qBAENpC,EAAAA,IAAA,MAAA,CAAIF,MAAOrD,EAAcmC,qBACvBmB,SAACF,EAAAA,KAAA,MAAA,CAAIC,MAAOrD,EAAcqC,eACxBiB,SAAA,CAAAC,MAAC,OAAIF,MAAOrD,EAAcwC,UAAYc,SAAA1E,GAAcyF,OAAS,wBAC5D,MAAI,CAAAhB,MAAOrD,EAAc8C,WAAaQ,SAAA1E,GAAcgH,QAAU"}
1
+ {"version":3,"file":"BookPreview.js","sources":["../../../../../src/features/Bookemon/BookPreview/BookPreview.tsx"],"sourcesContent":["import React, { CSSProperties, useEffect, useRef, useState } from \"react\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport ArrowBackIcon from \"@mui/icons-material/ArrowBack\";\nimport BookCitation from \"../../BookCitation/BookCitation\";\nimport { IBookOverview } from \"../BookOverviewCard/BookOverviewCard\";\nimport \"./BookPreview.css\";\nimport { comingSoonStyles, defaultIcon } from \"../Bookemon\";\nimport Switch from \"@mui/material/Switch\";\nimport Tooltip from \"@mui/material/Tooltip\";\n// import {Switch, Tooltip } from \"@mui/material\";\n\ninterface BookPreviewProps {\n bookOverView: IBookOverview\n bookCoverImage: string;\n previewPage: number;\n setPreviewPage: (page: number) => void;\n onClose: () => void;\n quotesToHighLightData: {\n textToHighLight: string;\n content: string;\n };\n citationLoad: boolean;\n updateQuotesToHighLight: (textToHighLight: string,\n clickableElementCategory: string,\n chunkIds?: string[]) => void;\n customStyle?: {\n citationCustomStyle?: {\n citationButtonWrapper?: CSSProperties;\n arrow?: CSSProperties;\n citationButton?: CSSProperties;\n expandableContent?: CSSProperties;\n bookHeader?: CSSProperties;\n relative?: CSSProperties;\n pageColor?: CSSProperties;\n highlightedText?: CSSProperties;\n expandedWrapper?: CSSProperties;\n expandableContainer?: CSSProperties;\n bookBodyContent?: CSSProperties;\n customScrollbarClass?: CSSProperties;\n relativeWrapper?: CSSProperties;\n }\n dialogDimension?: CSSProperties\n leftPanel?: CSSProperties\n rightPanel?: CSSProperties\n previewWrapper?: CSSProperties\n coverImagePreview?: CSSProperties\n }\n comingSoonData?: {\n header?: string;\n subheader?: string;\n icon?: React.ReactNode;\n };\n clickableElementCategory?: string;\n isNonHighlightedBlur: boolean\n isBlurToggleVisible?: boolean\n noHtmlContent : boolean\n isBookemon : boolean\n}\n\nconst BookPreview: React.FC<BookPreviewProps> = ({\n bookOverView,\n bookCoverImage,\n onClose,\n customStyle,\n quotesToHighLightData,\n updateQuotesToHighLight,\n citationLoad,\n clickableElementCategory = \"\",\n comingSoonData,\n isNonHighlightedBlur=false,\n isBlurToggleVisible = false,\n noHtmlContent=false,\n isBookemon=true,\n}) => {\n const [hasError, setHasError] = useState(false);\n const [toggleBlur, setToggleBlur] = useState<boolean>(true);\n // Local state to toggle between image preview and citation view\n const showCitation = !!quotesToHighLightData.content;\n \n const defaultStyles: { [key: string]: CSSProperties } = {\n header: {\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n padding: \"16px\",\n },\n headerLeft: {\n display: \"flex\",\n alignItems: \"center\",\n gap: \"8px\",\n },\n closeButton: {\n padding: \"4px\",\n borderRadius: \"4px\",\n cursor: \"pointer\",\n backgroundColor: \"transparent\",\n },\n flexCenter: {\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n coverContainer: {\n width: \"100%\",\n maxWidth: \"300px\",\n borderRadius: \"12px\",\n padding: \"4px\",\n background: \"linear-gradient(135deg, #34D399, #3B82F6, #10B981)\",\n position: \"relative\",\n overflow: \"hidden\",\n boxShadow: \"0 10px 25px rgba(0,0,0,0.3)\",\n marginBottom: \"24px\",\n },\n bookCoverStyle: {\n width: \"100%\",\n height: \"auto\",\n objectFit: \"contain\",\n borderRadius: \"12px\",\n boxShadow: \"0 4px 12px rgba(0,0,0,0.1)\",\n },\n loadingStyle : {\n width : \"100%\",\n height : \"100%\",\n display : \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexDirection : \"column\",\n },\n rightPanel: {\n height: \"100%\",\n display: \"flex\",\n flexDirection: \"column\",\n overflow: \"hidden\",\n },\n clickableElementCategory: { fontSize: \"20px\", fontWeight: 600 },\n previewWrapper:{\n flex: 1,\n width: \"80%\",\n margin: \"0 auto\",\n display: \"flex\",\n flexDirection: \"column\",\n overflow: \"hidden\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n },\n coverImagePreview: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n aspectRatio: \"7 / 10\",\n background: \"\",\n padding: 0\n },\n toggleBlurContainer: {\n display: 'flex',\n alignItems: 'center',\n gap: '20px'\n },\n bookCoverPlaceholder: {\n width: '100%',\n height: 'calc(100% - 8px)',\n background: 'linear-gradient(to bottom, #22c55e, #14532d)',\n borderRadius: '4px',\n padding: '4px',\n color: 'white',\n fontSize: '10px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n },\n\n bookCoverInner: {\n border: '1px solid white',\n padding: '4px',\n width: 'calc(100% - 26px)',\n height: 'calc(100% - 26px)',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n textAlign: 'center',\n justifyContent: 'space-around',\n },\n\n bookTitle: {\n fontWeight: 800,\n fontSize: '1.5rem',\n textTransform: 'uppercase',\n letterSpacing: '0.5px',\n lineHeight: 1.2,\n display: '-webkit-box',\n WebkitLineClamp: 2,\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n padding: '0 8px',\n },\n\n bookAuthor: {\n fontSize: '1rem',\n fontWeight: 500,\n opacity: 0.9,\n marginTop: '8px',\n display: '-webkit-box',\n WebkitLineClamp: 2,\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n },\n\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n setToggleBlur(event.target.checked);\n console.log(event.target.checked, \"event.target.checked\")\n };\n\n useEffect(() => {\n setToggleBlur(true)\n console.log(citationLoad, \"citationLoad\")\n }, [citationLoad])\n\n\nreturn (\n<div\n style={{\n ...defaultStyles.rightPanel,\n ...(customStyle?.rightPanel || {}),\n }}\n>\n {/* Header - Fixed at top */}\n <div style={defaultStyles.header}>\n <div style={defaultStyles.headerLeft}>\n {(showCitation || noHtmlContent) && (\n <button\n style={defaultStyles.closeButton}\n onClick={() => updateQuotesToHighLight(\"\", \"Book Preview\")}\n onMouseOver={(e) =>\n (e.currentTarget.style.backgroundColor = \"#F3F4F6\")\n }\n onMouseOut={(e) =>\n (e.currentTarget.style.backgroundColor = \"transparent\")\n }\n >\n <ArrowBackIcon />\n </button>\n )}\n <h2 style={defaultStyles.clickableElementCategory}>\n {clickableElementCategory}\n </h2>\n </div>\n\n <div style={defaultStyles.toggleBlurContainer}>\n {(showCitation && isBlurToggleVisible) && <div style={{ display: \"flex\", alignItems: \"center\", gap: \"2px\" }}>\n <Switch\n checked={toggleBlur}\n onChange={handleChange}\n color=\"primary\"\n size=\"small\"\n />\n <span style={{ fontSize: \"0.75rem\", display: \"flex\", alignItems: \"center\", gap: \"4px\" }}>\n Blur\n <Tooltip title=\"Blur Text is enabled by default. Non-highlighted parts of the text will appear blurred to help you focus on the highlighted content. You can turn this off if you want to see all text clearly.\">\n <span\n style={{\n display: \"inline-flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n width: \"14px\",\n height: \"14px\",\n borderRadius: \"50%\",\n backgroundColor: \"#485468\",\n color: \"#fff\",\n fontSize: \"10px\",\n fontWeight: \"bold\",\n cursor: \"pointer\",\n lineHeight: \"14px\",\n userSelect: \"none\",\n }}\n >\n i\n </span>\n </Tooltip>\n </span>\n </div>\n }\n <button\n style={defaultStyles.closeButton}\n onClick={() => {\n onClose();\n updateQuotesToHighLight(\"\", \"Book Preview\");\n }}\n onMouseOver={(e) =>\n (e.currentTarget.style.backgroundColor = \"#F3F4F6\")\n }\n onMouseOut={(e) =>\n (e.currentTarget.style.backgroundColor = \"transparent\")\n }\n >\n <CloseIcon />\n </button>\n </div>\n </div>\n {/* Content Area */}\n <div style={{...defaultStyles.previewWrapper,...customStyle?.previewWrapper}}>\n {showCitation ? (\n <BookCitation\n citationNumber={1}\n defaultState={true}\n partialMatch={true}\n fixedWidth={false}\n citationTitle={\"Sample Citation\"}\n title={\"Sample Title\"}\n paragraphs={[quotesToHighLightData?.content]}\n textToHighlight={[quotesToHighLightData?.textToHighLight]}\n externalLinkComponent={\"\"}\n bookCoverImage={bookCoverImage}\n customStyle={customStyle?.citationCustomStyle}\n isNonHighlightedBlur={isNonHighlightedBlur}\n isBookemon={isBookemon}\n toggleBlur={toggleBlur}\n />\n ) : (citationLoad || noHtmlContent) ? \n <div style={defaultStyles.loadingStyle}>\n <div style={comingSoonStyles.iconWrapper}>{comingSoonData?.icon||defaultIcon}</div>\n {noHtmlContent ? <p style={comingSoonStyles.text}>No data found matching the selected {clickableElementCategory.toLowerCase()}</p> :<p style={comingSoonStyles.text}>fetching {clickableElementCategory.toLowerCase()}....</p>}\n </div>\n : (\n <div style={defaultStyles.flexCenter}>\n <div style={{\n ...defaultStyles.coverContainer,\n ...(hasError || !bookCoverImage ? { ...defaultStyles.coverImagePreview,...customStyle?.coverImagePreview } : {})\n }} >\n {bookCoverImage && !hasError ? (\n <img\n onError={() => setHasError(true)}\n style={defaultStyles.bookCoverStyle} \n src={bookCoverImage} \n alt=\"Book Cover Image\" />\n ) : (\n <div style={defaultStyles.bookCoverPlaceholder}>\n <div style={defaultStyles.bookCoverInner}>\n <div style={defaultStyles.bookTitle}>{bookOverView?.title || 'Unknown Title'}</div>\n <div style={defaultStyles.bookAuthor}>{bookOverView?.author || 'Unknown Author'}</div>\n </div>\n </div>\n )}\n </div>\n </div>\n )}\n </div>\n </div>\n );\n};\n\nexport default BookPreview;\n"],"names":["bookOverView","bookCoverImage","onClose","customStyle","quotesToHighLightData","updateQuotesToHighLight","citationLoad","clickableElementCategory","comingSoonData","isNonHighlightedBlur","isBlurToggleVisible","noHtmlContent","isBookemon","hasError","setHasError","useState","toggleBlur","setToggleBlur","showCitation","content","defaultStyles","header","display","justifyContent","alignItems","padding","headerLeft","gap","closeButton","borderRadius","cursor","backgroundColor","flexCenter","width","height","coverContainer","maxWidth","background","position","overflow","boxShadow","marginBottom","bookCoverStyle","objectFit","loadingStyle","flexDirection","rightPanel","fontSize","fontWeight","previewWrapper","flex","margin","coverImagePreview","aspectRatio","toggleBlurContainer","bookCoverPlaceholder","color","bookCoverInner","border","textAlign","bookTitle","textTransform","letterSpacing","lineHeight","WebkitLineClamp","WebkitBoxOrient","bookAuthor","opacity","marginTop","useEffect","console","log","jsxs","style","children","jsx","onClick","onMouseOver","e","currentTarget","onMouseOut","ArrowBackIcon","Switch","checked","onChange","event","target","size","Tooltip","title","userSelect","CloseIcon","BookCitation","citationNumber","defaultState","partialMatch","fixedWidth","citationTitle","paragraphs","textToHighlight","textToHighLight","externalLinkComponent","citationCustomStyle","comingSoonStyles","iconWrapper","icon","defaultIcon","text","toLowerCase","onError","src","alt","author"],"mappings":"qdA2DgD,EAC9CA,eACAC,iBACAC,UACAC,cACAC,wBACAC,0BACAC,eACAC,2BAA2B,GAC3BC,iBACAC,wBAAqB,EACrBC,uBAAsB,EACtBC,iBAAc,EACdC,cAAW,MAEX,MAAOC,EAAUC,GAAeC,YAAS,IAClCC,EAAYC,GAAiBF,YAAkB,GAEhDG,IAAiBd,EAAsBe,QAEvCC,EAAkD,CACtDC,OAAQ,CACNC,QAAS,OACTC,eAAgB,gBA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BI,KAAMjC,SAAA,CAAA,YAAUnE,EAAyBqG,cAAc,mBAG1N,MAAI,CAAAnC,MAAOrD,EAAcY,WACxB0C,SAAAC,EAAAA,IAAC,OAAIF,MAAO,IACRrD,EAAce,kBACTtB,IAAaZ,EAAiB,IAAKmB,EAAcgC,qBAAqBjD,GAAaiD,mBAAsB,CAAC,GAEpHsB,SAAkBzE,IAACY,EACpB8D,EAAAA,IAAC,MAAA,CACCkC,QAAS,IAAM/F,GAAY,GAC3B2D,MAAOrD,EAAcsB,eACrBoE,IAAK7G,EACL8G,IAAI,qBAENpC,EAAAA,IAAA,MAAA,CAAIF,MAAOrD,EAAcmC,qBACvBmB,SAACF,EAAAA,KAAA,MAAA,CAAIC,MAAOrD,EAAcqC,eACxBiB,SAAA,CAAAC,MAAC,OAAIF,MAAOrD,EAAcwC,UAAYc,SAAA1E,GAAcyF,OAAS,wBAC5D,MAAI,CAAAhB,MAAOrD,EAAc8C,WAAaQ,SAAA1E,GAAcgH,QAAU"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("./components/ChatCitation.js"),r=require("./utils/helpers.js"),o=require("./components/Chip.js"),i=require("./assets/message-chat-square.svg.js");require("@mui/icons-material/KeyboardArrowDown"),require("@mui/icons-material/KeyboardArrowUp"),require("@mui/icons-material/Clear");var l=require("./components/InViewNavigation.js"),s=require("./components/DetailedView.js"),n=require("./components/SummarizedView.js"),a=require("./components/RuleBook.js"),c=require("react"),d=require("./constants/renderer.js");require("./styles/common.css.js");var u=require("./components/IconContainer.js"),h=require("lucide-react"),f=require("./BigQueryTable.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(require("@mui/icons-material/CloseOutlined"));const x=(e,t,r="smooth")=>{if(!t)return;let o=e.parentElement;for(;o;){const{overflowY:e}=window.getComputedStyle(o);if(("auto"===e||"scroll"===e)&&o.scrollHeight>o.clientHeight)break;if(o===t){o=null;break}o=o.parentElement}const i=o??t,l=e.getBoundingClientRect(),s=i.getBoundingClientRect(),n=i.scrollTop+l.top-s.top-(i.clientHeight-l.height)/2;i.scrollTo({top:Math.max(0,n),behavior:r})},b={chatData:[]};exports.default=function({rootContainer:p,chatContainer:g=b,ruleBookContainer:y,renderer:v,additionalData:C,tableComponent:w,closePreview:S,isRenderedCustomComponent:j=!1,showRootContainer:k=!0,reversePanels:A=!1}){const[q,T]=c.useState(0),[D,R]=c.useState(0),[F,E]=c.useState(0),[I,z]=c.useState(0),B=c.useRef(null),P=c.useRef(null),H=c.useRef(null),V=c.useMemo(()=>({...d.defaultRenderer,...v}),[v]),M=c.useMemo(()=>!!(w?.rows&&Object.keys(w.rows).length>0),[w]),N=c.useMemo(()=>C?.RuleBookDetailedViewVerticallyStacked??!1,[C?.RuleBookDetailedViewVerticallyStacked]);c.useEffect(()=>{if(y?.show&&B.current){const e=B.current?.querySelectorAll(".rule-book-highlight");if(T(e?.length||0),R(0),e&&e.length>0){const t=e[0];t.style.backgroundColor="#ffff5c",x(t,B.current)}}if(g?.show&&P?.current){const e=P.current?.querySelectorAll(".user-chat-highlight");if(E(e?.length||0),z(0),e&&e.length>0){const t=e[0];t.style.backgroundColor="#ffff5c";const r=requestAnimationFrame(()=>{x(t,H.current)});return()=>cancelAnimationFrame(r)}const t=C?.targetIndex;if(void 0!==t&&t>=0&&P.current?.firstElementChild){const e=P.current.firstElementChild.children[t];if(e){const t=requestAnimationFrame(()=>{x(e,H.current)});return()=>cancelAnimationFrame(t)}}}},[g?.show,y?.show,y?.data,g?.chatData,C?.targetIndex]);const W=c.useCallback(()=>{if(D+1<q){const e=B.current?.querySelectorAll(".rule-book-highlight");if(!e)return;e[D].style.backgroundColor="#ffffb8";const t=D+1;R(t);const r=e[t];r.style.backgroundColor="#ffff5c",x(r,B.current)}},[D,q]),Y=c.useCallback(()=>{if(D-1<0)return;const e=B.current?.querySelectorAll(".rule-book-highlight");if(!e)return;e[D].style.backgroundColor="#ffffb8";const t=D-1,r=e[t];r.style.backgroundColor="#ffff5c",R(t),x(r,B.current)},[D]),O=c.useCallback(()=>{if(I+1<F){const e=P.current?.querySelectorAll(".user-chat-highlight");if(!e)return;e[I].style.backgroundColor="#ffffb8";const t=I+1,r=e[t];r.style.backgroundColor="#ffff5c",z(t),x(r,H.current)}},[I,F]),K=c.useCallback(()=>{if(I-1<0)return;const e=P.current?.querySelectorAll(".user-chat-highlight");if(!e)return;e[I].style.backgroundColor="#ffffb8";const t=I-1,r=e[t];r.style.backgroundColor="#ffff5c",z(t),x(r,H.current)},[I]),Q=r.getColorCode(p?.relevanceScore||0),_=c.useMemo(()=>{const t=e.jsxs("span",{style:{display:"flex",border:"1px solid",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",borderColor:Q.border,backgroundColor:Q.background,color:Q.text,...p?.slotStyles?.relevanceScore},children:[p?.relevanceTitle||"Decision Strength",":"," ",p?.relevanceScore||0,"%"]},"relevance-score"),r=e.jsx("span",{style:{display:"flex",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",backgroundColor:"white",color:"black",cursor:"pointer"},onClick:S,children:e.jsx(m.default,{})},"close-preview");return j&&!C?.isExpanded?[t,r]:[t]},[j,Q.background,Q.border,Q.text,p?.relevanceScore,p?.slotStyles?.relevanceScore,p?.relevanceTitle]),U=c.useMemo(()=>[q>0&&e.jsx(l.default,{currentItemNumber:D+1,totalItems:q,disableNext:D+1>=q,onNext:W,onPrevious:Y,disablePrevious:D<=0},"rulebook-nav")],[D,W,Y,q]),G=c.useMemo(()=>C?.RuleBookContainerHeight?C.RuleBookContainerHeight:!(!N||C?.isExpanded)&&"600px",[C?.RuleBookContainerHeight,N]),J=c.useMemo(()=>[g?.detailedTab?.chip?.isActive&&F>0&&e.jsx(l.default,{currentItemNumber:I+1,totalItems:F,onNext:O,onPrevious:K,disableNext:I+1>=F,disablePrevious:I<=0},"chat-nav")],[g?.detailedTab?.chip?.isActive,I,O,K,F]),L=e.jsxs("div",{style:{display:"flex",flexDirection:A?N?"column-reverse":"row-reverse":N?"column":"row",gap:[g?.chatData&&g.chatData.length>0&&(g.show||void 0===g.show),y?.data&&(y.show||void 0===y.show),M].filter(Boolean).length>1?"12px":"0",height:G||"100%",minHeight:0,...p?.slotStyles?.container},children:[M&&e.jsx("span",{style:{flex:"1 1 0%",minWidth:0,...g?.slotStyles?.outerContainer},children:e.jsx(t.default,{title:"Invoice Data Preview",icon:e.jsx(u.default,{children:e.jsx(h.Table,{size:16})}),slotStyles:{title:{color:"#475569",fontWeight:500}},secondaryActions:[],children:e.jsx("div",{style:{height:"100%",maxHeight:C?.isExpanded?"none":"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",backgroundColor:"#FFFFFF",position:"relative",overflow:"hidden"},children:w?.rows&&e.jsx(f.BigQueryTable,{rows:w.rows,columns:w.columns||[]})})})}),y?.data&&(y.show||void 0===y.show)&&e.jsx("span",{style:{flex:"1 1 0%",minWidth:0,...y?.slotStyles?.outerContainer},children:e.jsx(t.default,{title:y?.title??"Rule book",icon:y?.ruleBookIcon,slotStyles:{title:{color:"#475569",fontWeight:500,...y?.slotStyles?.title},body:y?.slotStyles?.body},secondaryActions:y?.secondaryActions?y.secondaryActions(U):U,children:e.jsx("div",{style:{height:"100%",maxHeight:"275px",minHeight:0,border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto",...y?.slotStyles?.dataContainer},children:e.jsx("div",{style:{padding:"12px",height:"100%",overflowY:"auto"},ref:B,children:e.jsx(a.default,{data:y.data,renderers:y?.renderer??V})})})})}),g?.chatData&&g.chatData.length>0&&(g.show||void 0===g.show)&&e.jsx("span",{style:{flex:"1 1 0%",minWidth:0,...g?.slotStyles?.outerContainer},children:e.jsx(t.default,{title:g?.title??"Chat",icon:g?.chatIcon,containerStyles:g?.slotStyles?.container,slotStyles:{title:{color:"#475569",fontWeight:500,...g?.slotStyles?.title},body:g?.slotStyles?.body},primaryActions:[(g?.summarizedTab?.chip?.show||void 0===g?.summarizedTab?.chip?.show)&&e.jsx(o.default,{label:"Summarized",...g?.summarizedTab?.chip}),e.jsx(o.default,{label:"Detailed",...g?.detailedTab?.chip})],secondaryActions:g.secondaryActions?g?.secondaryActions(J):J,children:e.jsxs("div",{ref:H,style:{height:"100%",maxHeight:"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto",...g?.slotStyles?.chatDataContainer},children:[g?.detailedTab?.chip?.isActive&&e.jsx("div",{ref:P,style:{position:C?.isExpanded?"absolute":"relative",inset:0,padding:"12px",overflowY:"auto"},children:e.jsx(s.default,{chatData:g.chatData??[],assistantChatProps:{...g?.detailedTab?.view?.assistantChatProps,renderers:g?.detailedTab?.detailedViewRenderer?.assistantText??V},userChatItemProps:{...g?.detailedTab?.view?.userChatItemProps,renderers:g?.detailedTab?.detailedViewRenderer?.userText??V}})}),g?.summarizedTab?.chip?.show&&g?.summarizedTab?.chip?.isActive&&e.jsx(n.default,{chatData:g.chatData??[],...g?.summarizedTab?.view,renderer:g?.summarizedTab?.summarizedViewRenderer??V})]})})})]});return k?e.jsx(t.default,{title:p?.title,slotStyles:{title:p?.slotStyles?.title,body:p?.slotStyles?.body},containerStyles:p?.slotStyles?.container,icon:p?.icon??e.jsx(u.default,{children:e.jsx("img",{src:i.default,alt:"chat icon",style:{width:16,height:16}})}),secondaryActions:p?.secondaryActions?p.secondaryActions(_):_,children:L}):L};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("./components/ChatCitation.js"),r=require("./utils/helpers.js"),o=require("./components/Chip.js"),i=require("./assets/message-chat-square.svg.js");require("@mui/icons-material/KeyboardArrowDown"),require("@mui/icons-material/KeyboardArrowUp"),require("@mui/icons-material/Clear");var l=require("./components/InViewNavigation.js"),s=require("./components/DetailedView.js"),n=require("./components/SummarizedView.js"),a=require("./components/RuleBook.js"),c=require("react"),d=require("./constants/renderer.js"),u=require("./components/IconContainer.js"),h=require("lucide-react"),f=require("./BigQueryTable.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(require("@mui/icons-material/CloseOutlined"));const x=(e,t,r="smooth")=>{if(!t)return;let o=e.parentElement;for(;o;){const{overflowY:e}=window.getComputedStyle(o);if(("auto"===e||"scroll"===e)&&o.scrollHeight>o.clientHeight)break;if(o===t){o=null;break}o=o.parentElement}const i=o??t,l=e.getBoundingClientRect(),s=i.getBoundingClientRect(),n=i.scrollTop+l.top-s.top-(i.clientHeight-l.height)/2;i.scrollTo({top:Math.max(0,n),behavior:r})},b={chatData:[]};exports.default=function({rootContainer:p,chatContainer:g=b,ruleBookContainer:y,renderer:v,additionalData:C,tableComponent:w,closePreview:S,isRenderedCustomComponent:j=!1,showRootContainer:k=!0,reversePanels:A=!1}){const[q,T]=c.useState(0),[D,R]=c.useState(0),[F,E]=c.useState(0),[I,z]=c.useState(0),B=c.useRef(null),P=c.useRef(null),H=c.useRef(null),V=c.useMemo(()=>({...d.defaultRenderer,...v}),[v]),M=c.useMemo(()=>!!(w?.rows&&Object.keys(w.rows).length>0),[w]),N=c.useMemo(()=>C?.RuleBookDetailedViewVerticallyStacked??!1,[C?.RuleBookDetailedViewVerticallyStacked]);c.useEffect(()=>{if(y?.show&&B.current){const e=B.current?.querySelectorAll(".rule-book-highlight");if(T(e?.length||0),R(0),e&&e.length>0){const t=e[0];t.style.backgroundColor="#ffff5c",x(t,B.current)}}if(g?.show&&P?.current){const e=P.current?.querySelectorAll(".user-chat-highlight");if(E(e?.length||0),z(0),e&&e.length>0){const t=e[0];t.style.backgroundColor="#ffff5c";const r=requestAnimationFrame(()=>{x(t,H.current)});return()=>cancelAnimationFrame(r)}const t=C?.targetIndex;if(void 0!==t&&t>=0&&P.current?.firstElementChild){const e=P.current.firstElementChild.children[t];if(e){const t=requestAnimationFrame(()=>{x(e,H.current)});return()=>cancelAnimationFrame(t)}}}},[g?.show,y?.show,y?.data,g?.chatData,C?.targetIndex]);const W=c.useCallback(()=>{if(D+1<q){const e=B.current?.querySelectorAll(".rule-book-highlight");if(!e)return;e[D].style.backgroundColor="#ffffb8";const t=D+1;R(t);const r=e[t];r.style.backgroundColor="#ffff5c",x(r,B.current)}},[D,q]),Y=c.useCallback(()=>{if(D-1<0)return;const e=B.current?.querySelectorAll(".rule-book-highlight");if(!e)return;e[D].style.backgroundColor="#ffffb8";const t=D-1,r=e[t];r.style.backgroundColor="#ffff5c",R(t),x(r,B.current)},[D]),O=c.useCallback(()=>{if(I+1<F){const e=P.current?.querySelectorAll(".user-chat-highlight");if(!e)return;e[I].style.backgroundColor="#ffffb8";const t=I+1,r=e[t];r.style.backgroundColor="#ffff5c",z(t),x(r,H.current)}},[I,F]),K=c.useCallback(()=>{if(I-1<0)return;const e=P.current?.querySelectorAll(".user-chat-highlight");if(!e)return;e[I].style.backgroundColor="#ffffb8";const t=I-1,r=e[t];r.style.backgroundColor="#ffff5c",z(t),x(r,H.current)},[I]),Q=r.getColorCode(p?.relevanceScore||0),_=c.useMemo(()=>{const t=e.jsxs("span",{style:{display:"flex",border:"1px solid",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",borderColor:Q.border,backgroundColor:Q.background,color:Q.text,...p?.slotStyles?.relevanceScore},children:[p?.relevanceTitle||"Decision Strength",":"," ",p?.relevanceScore||0,"%"]},"relevance-score"),r=e.jsx("span",{style:{display:"flex",alignItems:"center",gap:"4px",borderRadius:"6px",padding:"2px 8px",fontSize:"12px",backgroundColor:"white",color:"black",cursor:"pointer"},onClick:S,children:e.jsx(m.default,{})},"close-preview");return j&&!C?.isExpanded?[t,r]:[t]},[j,Q.background,Q.border,Q.text,p?.relevanceScore,p?.slotStyles?.relevanceScore,p?.relevanceTitle]),U=c.useMemo(()=>[q>0&&e.jsx(l.default,{currentItemNumber:D+1,totalItems:q,disableNext:D+1>=q,onNext:W,onPrevious:Y,disablePrevious:D<=0},"rulebook-nav")],[D,W,Y,q]),G=c.useMemo(()=>C?.RuleBookContainerHeight?C.RuleBookContainerHeight:!(!N||C?.isExpanded)&&"600px",[C?.RuleBookContainerHeight,N]),J=c.useMemo(()=>[g?.detailedTab?.chip?.isActive&&F>0&&e.jsx(l.default,{currentItemNumber:I+1,totalItems:F,onNext:O,onPrevious:K,disableNext:I+1>=F,disablePrevious:I<=0},"chat-nav")],[g?.detailedTab?.chip?.isActive,I,O,K,F]),L=e.jsxs("div",{style:{display:"flex",flexDirection:A?N?"column-reverse":"row-reverse":N?"column":"row",gap:[g?.chatData&&g.chatData.length>0&&(g.show||void 0===g.show),y?.data&&(y.show||void 0===y.show),M].filter(Boolean).length>1?"12px":"0",height:G||"100%",minHeight:0,...p?.slotStyles?.container},children:[M&&e.jsx("span",{style:{flex:"1 1 0%",minWidth:0,...g?.slotStyles?.outerContainer},children:e.jsx(t.default,{title:"Invoice Data Preview",icon:e.jsx(u.default,{children:e.jsx(h.Table,{size:16})}),slotStyles:{title:{color:"#475569",fontWeight:500}},secondaryActions:[],children:e.jsx("div",{style:{height:"100%",maxHeight:C?.isExpanded?"none":"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",backgroundColor:"#FFFFFF",position:"relative",overflow:"hidden"},children:w?.rows&&e.jsx(f.BigQueryTable,{rows:w.rows,columns:w.columns||[]})})})}),y?.data&&(y.show||void 0===y.show)&&e.jsx("span",{style:{flex:"1 1 0%",minWidth:0,...y?.slotStyles?.outerContainer},children:e.jsx(t.default,{title:y?.title??"Rule book",icon:y?.ruleBookIcon,slotStyles:{title:{color:"#475569",fontWeight:500,...y?.slotStyles?.title},body:y?.slotStyles?.body},secondaryActions:y?.secondaryActions?y.secondaryActions(U):U,children:e.jsx("div",{style:{height:"100%",maxHeight:"275px",minHeight:0,border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto",...y?.slotStyles?.dataContainer},children:e.jsx("div",{style:{padding:"12px",height:"100%",overflowY:"auto"},ref:B,children:e.jsx(a.default,{data:y.data,renderers:y?.renderer??V})})})})}),g?.chatData&&g.chatData.length>0&&(g.show||void 0===g.show)&&e.jsx("span",{style:{flex:"1 1 0%",minWidth:0,...g?.slotStyles?.outerContainer},children:e.jsx(t.default,{title:g?.title??"Chat",icon:g?.chatIcon,containerStyles:g?.slotStyles?.container,slotStyles:{title:{color:"#475569",fontWeight:500,...g?.slotStyles?.title},body:g?.slotStyles?.body},primaryActions:[(g?.summarizedTab?.chip?.show||void 0===g?.summarizedTab?.chip?.show)&&e.jsx(o.default,{label:"Summarized",...g?.summarizedTab?.chip}),e.jsx(o.default,{label:"Detailed",...g?.detailedTab?.chip})],secondaryActions:g.secondaryActions?g?.secondaryActions(J):J,children:e.jsxs("div",{ref:H,style:{height:"100%",maxHeight:"275px",border:"2px solid #E2E8F0",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px",backgroundColor:"#F8FAFC",position:"relative",overflowY:"auto",...g?.slotStyles?.chatDataContainer},children:[g?.detailedTab?.chip?.isActive&&e.jsx("div",{ref:P,style:{position:C?.isExpanded?"absolute":"relative",inset:0,padding:"12px",overflowY:"auto"},children:e.jsx(s.default,{chatData:g.chatData??[],assistantChatProps:{...g?.detailedTab?.view?.assistantChatProps,renderers:g?.detailedTab?.detailedViewRenderer?.assistantText??V},userChatItemProps:{...g?.detailedTab?.view?.userChatItemProps,renderers:g?.detailedTab?.detailedViewRenderer?.userText??V}})}),g?.summarizedTab?.chip?.show&&g?.summarizedTab?.chip?.isActive&&e.jsx(n.default,{chatData:g.chatData??[],...g?.summarizedTab?.view,renderer:g?.summarizedTab?.summarizedViewRenderer??V})]})})})]});return k?e.jsx(t.default,{title:p?.title,slotStyles:{title:p?.slotStyles?.title,body:p?.slotStyles?.body},containerStyles:p?.slotStyles?.container,icon:p?.icon??e.jsx(u.default,{children:e.jsx("img",{src:i.default,alt:"chat icon",style:{width:16,height:16}})}),secondaryActions:p?.secondaryActions?p.secondaryActions(_):_,children:L}):L};
2
2
  //# sourceMappingURL=InternalChatCitationRenderer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InternalChatCitationRenderer.js","sources":["../../../../src/features/ChatCitation/InternalChatCitationRenderer.tsx"],"sourcesContent":["import ChatCitation from \"./components/ChatCitation\";\nimport { FeatureModMarkdownProps } from \"./components/MarkdownRenderer\";\nimport { ChatCitationProps } from \"./types/citations.types\";\nimport { getColorCode } from \"./utils/helpers\";\nimport Chip from \"./components/Chip\";\nimport { ChatIcon } from \"./constants/icons\";\nimport InViewNavigation from \"./components/InViewNavigation\";\nimport DetailedView from \"./components/DetailedView\";\nimport SummarizedView from \"./components/SummarizedView\";\nimport RuleBook from \"./components/RuleBook\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { defaultRenderer } from \"./constants/renderer\";\nimport \"./styles/common.css\";\nimport IconContainer from \"./components/IconContainer\";\nimport { Table } from \"lucide-react\";\nimport { BigQueryTable } from \"./BigQueryTable\";\nimport CloseOutlinedIcon from '@mui/icons-material/CloseOutlined';\n// BigQuery Table Data Interface\ninterface BigQueryTableData {\n rows: Record<string, any[]>;\n columns?: string[];\n}\n\n/**\n * Scrolls the given element into view within the specified container boundary\n * instead of delegating the scrolling to browser's default behavior.\n */\nconst scrollHighlightIntoContainer = (\n element: HTMLElement,\n containerBoundary: HTMLElement | null,\n behavior: ScrollBehavior = \"smooth\",\n) => {\n if (!containerBoundary) return;\n\n let scrollContainer: HTMLElement | null = element.parentElement;\n\n while (scrollContainer) {\n const { overflowY } = window.getComputedStyle(scrollContainer);\n const canScroll =\n (overflowY === \"auto\" || overflowY === \"scroll\") &&\n scrollContainer.scrollHeight > scrollContainer.clientHeight;\n\n if (canScroll) break;\n if (scrollContainer === containerBoundary) {\n scrollContainer = null;\n break;\n }\n\n scrollContainer = scrollContainer.parentElement;\n }\n\n const container = scrollContainer ?? containerBoundary;\n const elementRect = element.getBoundingClientRect();\n const containerRect = container.getBoundingClientRect();\n const top =\n container.scrollTop +\n elementRect.top -\n containerRect.top -\n (container.clientHeight - elementRect.height) / 2;\n\n container.scrollTo({\n top: Math.max(0, top),\n behavior,\n });\n};\n\n\ntype InternalChatCitationRendererProps = ChatCitationProps & {\n showRootContainer?: boolean; \n tableComponent?: BigQueryTableData; // Changed to BigQueryTableData\n};\n\nconst EMPTY_CHAT_CONTAINER = { chatData: [] };\n\nexport default function InternalChatCitationRenderer({\n rootContainer,\n chatContainer = EMPTY_CHAT_CONTAINER,\n ruleBookContainer,\n renderer,\n additionalData,\n tableComponent,\n closePreview,\n isRenderedCustomComponent = false,\n showRootContainer = true, \n reversePanels=false\n}: InternalChatCitationRendererProps) {\n const [\n totalNumberOfHighlightedItemsInRuleBook,\n setTotalNumberOfHighlightedItemsInRuleBook,\n ] = useState<number>(0);\n const [currentlyHighlightedInRuleBook, setCurrentlyHighlightedInRuleBook] =\n useState<number>(0);\n\n const [\n totalNumberOfHighlightedItemsInUserChat,\n setTotalNumberOfHighlightedItemsInUserChat,\n ] = useState<number>(0);\n const [currentlyHighlightedInUserChat, setCurrentlyHighlightedInUserChat] =\n useState<number>(0);\n\n const ruleBookRef = useRef<HTMLDivElement | null>(null);\n const userChatRef = useRef<HTMLDivElement | null>(null);\n const userChatScrollRef = useRef<HTMLDivElement | null>(null);\n\n const rendererToUse: FeatureModMarkdownProps[\"renderers\"] = useMemo(() => {\n return { ...defaultRenderer, ...renderer };\n }, [renderer]);\n\n const isTableDataPresent = useMemo(() => {\n return !!(\n tableComponent?.rows &&\n Object.keys(tableComponent.rows).length > 0\n );\n }, [tableComponent]);\n\n // Determine if we're in vertical (column) or horizontal (row) layout\n const isVerticalLayout = useMemo(() => {\n return additionalData?.RuleBookDetailedViewVerticallyStacked ?? false;\n }, [additionalData?.RuleBookDetailedViewVerticallyStacked]);\n\n useEffect(() => {\n if (ruleBookContainer?.show && ruleBookRef.current) {\n const result = ruleBookRef.current?.querySelectorAll(\n \".rule-book-highlight\",\n );\n setTotalNumberOfHighlightedItemsInRuleBook(result?.length || 0);\n setCurrentlyHighlightedInRuleBook(0);\n if (result && result.length > 0) {\n const element = result[0] as HTMLElement;\n element.style.backgroundColor = \"#ffff5c\";\n scrollHighlightIntoContainer(element, ruleBookRef.current);\n }\n }\n if (chatContainer?.show && userChatRef?.current) {\n const userChatHighlightsResult = userChatRef.current?.querySelectorAll(\n \".user-chat-highlight\",\n );\n setTotalNumberOfHighlightedItemsInUserChat(\n userChatHighlightsResult?.length || 0,\n );\n setCurrentlyHighlightedInUserChat(0);\n if (userChatHighlightsResult && userChatHighlightsResult.length > 0) {\n const element = userChatHighlightsResult[0] as HTMLElement;\n element.style.backgroundColor = \"#ffff5c\";\n\n // request animation frame to ensure DOM has completely rendered before scrolling\n const animationFrame = requestAnimationFrame(() => {\n scrollHighlightIntoContainer(element, userChatScrollRef.current);\n });\n\n return () => cancelAnimationFrame(animationFrame);\n }\n // FALLBACK LOGIC IF THE HIGHLIGHTED_PHRASE is empty and we got the msgOrderNumber for CR_CITATION\n const targetIndex = (additionalData as any)?.targetIndex;\n if (targetIndex !== undefined && targetIndex >= 0 && userChatRef.current?.firstElementChild) {\n const messageNode = userChatRef.current.firstElementChild.children[targetIndex] as HTMLElement;\n if (messageNode) {\n const animationFrame = requestAnimationFrame(() => {\n scrollHighlightIntoContainer(messageNode, userChatScrollRef.current);\n });\n return () => cancelAnimationFrame(animationFrame);\n }\n }\n }\n }, [\n chatContainer?.show,\n ruleBookContainer?.show,\n ruleBookContainer?.data,\n chatContainer?.chatData,\n (additionalData as any)?.targetIndex\n ]);\n\n const handleRuleBookNextHighlight = useCallback(() => {\n if (\n currentlyHighlightedInRuleBook + 1 <\n totalNumberOfHighlightedItemsInRuleBook\n ) {\n const result = ruleBookRef.current?.querySelectorAll(\n \".rule-book-highlight\",\n );\n if (!result) return;\n const prevElement = result[currentlyHighlightedInRuleBook] as HTMLElement;\n prevElement.style.backgroundColor = \"#ffffb8\";\n const nextIndex = currentlyHighlightedInRuleBook + 1;\n setCurrentlyHighlightedInRuleBook(nextIndex);\n const element = result[nextIndex] as HTMLElement;\n element.style.backgroundColor = \"#ffff5c\";\n scrollHighlightIntoContainer(element, ruleBookRef.current);\n }\n }, [currentlyHighlightedInRuleBook, totalNumberOfHighlightedItemsInRuleBook]);\n\n const handleRuleBookPreviousHighlight = useCallback(() => {\n if (currentlyHighlightedInRuleBook - 1 < 0) return;\n const result = ruleBookRef.current?.querySelectorAll(\n \".rule-book-highlight\",\n );\n if (!result) return;\n const element = result[currentlyHighlightedInRuleBook] as HTMLElement;\n element.style.backgroundColor = \"#ffffb8\";\n const previousIndex = currentlyHighlightedInRuleBook - 1;\n const prevElement = result[previousIndex] as HTMLElement;\n prevElement.style.backgroundColor = \"#ffff5c\";\n setCurrentlyHighlightedInRuleBook(previousIndex);\n scrollHighlightIntoContainer(prevElement, ruleBookRef.current);\n }, [currentlyHighlightedInRuleBook]);\n\n const handleUserChatNextHighlight = useCallback(() => {\n if (\n currentlyHighlightedInUserChat + 1 <\n totalNumberOfHighlightedItemsInUserChat\n ) {\n const result = userChatRef.current?.querySelectorAll(\n \".user-chat-highlight\",\n );\n if (!result) return;\n const element = result[currentlyHighlightedInUserChat] as HTMLElement;\n element.style.backgroundColor = \"#ffffb8\";\n const nextIndex = currentlyHighlightedInUserChat + 1;\n const nextElement = result[nextIndex] as HTMLElement;\n nextElement.style.backgroundColor = \"#ffff5c\";\n setCurrentlyHighlightedInUserChat(nextIndex);\n scrollHighlightIntoContainer(nextElement, userChatScrollRef.current);\n }\n }, [currentlyHighlightedInUserChat, totalNumberOfHighlightedItemsInUserChat]);\n\n const handleUserChatPreviousHighlight = useCallback(() => {\n if (currentlyHighlightedInUserChat - 1 < 0) return;\n const result = userChatRef.current?.querySelectorAll(\n \".user-chat-highlight\",\n );\n if (!result) return;\n const element = result[currentlyHighlightedInUserChat] as HTMLElement;\n element.style.backgroundColor = \"#ffffb8\";\n const previousIndex = currentlyHighlightedInUserChat - 1;\n const prevElement = result[previousIndex] as HTMLElement;\n prevElement.style.backgroundColor = \"#ffff5c\";\n setCurrentlyHighlightedInUserChat(previousIndex);\n scrollHighlightIntoContainer(prevElement, userChatScrollRef.current);\n }, [currentlyHighlightedInUserChat]);\n\n const colorCodes = getColorCode(rootContainer?.relevanceScore || 0);\n\nconst rootContainerSecondaryActions = useMemo(() => {\n const relevanceBadge = (\n <span\n key=\"relevance-score\"\n style={{\n display: \"flex\",\n border: \"1px solid\",\n alignItems: \"center\",\n gap: \"4px\",\n borderRadius: \"6px\",\n padding: \"2px 8px\",\n fontSize: \"12px\",\n borderColor: colorCodes.border,\n backgroundColor: colorCodes.background,\n color: colorCodes.text,\n ...rootContainer?.slotStyles?.relevanceScore,\n }}\n >\n {rootContainer?.relevanceTitle || \"Decision Strength\"}:{\" \"}\n {rootContainer?.relevanceScore || 0}%\n \n </span>\n );\n\n const closeButton = (\n <span\n key=\"close-preview\"\n style={{\n display: \"flex\",\n // border: \"1px solid black\",\n alignItems: \"center\",\n gap: \"4px\",\n borderRadius: \"6px\",\n padding: \"2px 8px\",\n fontSize: \"12px\",\n backgroundColor: \"white\",\n color: \"black\",\n cursor: \"pointer\",\n }}\n onClick={closePreview}\n >\n <CloseOutlinedIcon />\n </span>\n );\n\n return isRenderedCustomComponent && !additionalData?.isExpanded ? [relevanceBadge,closeButton] : [relevanceBadge];\n}, [\n isRenderedCustomComponent,\n colorCodes.background,\n colorCodes.border,\n colorCodes.text,\n rootContainer?.relevanceScore,\n rootContainer?.slotStyles?.relevanceScore,\n rootContainer?.relevanceTitle,\n]);\n\n const ruleBookContainerSecondaryActions = useMemo(() => {\n return [\n totalNumberOfHighlightedItemsInRuleBook > 0 && (\n <InViewNavigation\n key=\"rulebook-nav\"\n currentItemNumber={currentlyHighlightedInRuleBook + 1}\n totalItems={totalNumberOfHighlightedItemsInRuleBook}\n disableNext={\n currentlyHighlightedInRuleBook + 1 >=\n totalNumberOfHighlightedItemsInRuleBook\n }\n onNext={handleRuleBookNextHighlight}\n onPrevious={handleRuleBookPreviousHighlight}\n disablePrevious={currentlyHighlightedInRuleBook <= 0}\n />\n ),\n ];\n }, [\n currentlyHighlightedInRuleBook,\n handleRuleBookNextHighlight,\n handleRuleBookPreviousHighlight,\n totalNumberOfHighlightedItemsInRuleBook,\n ]);\n\n\n\n const containerHeight = useMemo(() => {\n if (additionalData?.RuleBookContainerHeight) {\n return additionalData.RuleBookContainerHeight;\n }\n\n if (isVerticalLayout) {\n if(!additionalData?.isExpanded){\n return \"600px\";\n }\n }\n\n return false;\n }, [additionalData?.RuleBookContainerHeight, isVerticalLayout]);\n\n const chatContainerSecondaryActions = useMemo(() => {\n return [\n chatContainer?.detailedTab?.chip?.isActive &&\n totalNumberOfHighlightedItemsInUserChat > 0 && (\n <InViewNavigation\n key=\"chat-nav\"\n currentItemNumber={currentlyHighlightedInUserChat + 1}\n totalItems={totalNumberOfHighlightedItemsInUserChat}\n onNext={handleUserChatNextHighlight}\n onPrevious={handleUserChatPreviousHighlight}\n disableNext={\n currentlyHighlightedInUserChat + 1 >=\n totalNumberOfHighlightedItemsInUserChat\n }\n disablePrevious={currentlyHighlightedInUserChat <= 0}\n />\n ),\n ];\n }, [\n chatContainer?.detailedTab?.chip?.isActive,\n currentlyHighlightedInUserChat,\n handleUserChatNextHighlight,\n handleUserChatPreviousHighlight,\n totalNumberOfHighlightedItemsInUserChat,\n ]);\n\n\n\n\n // Extract the inner content that's currently inside <ChatCitation>\nconst innerContent = (\n <div\n style={{\n display: \"flex\",\n flexDirection: reversePanels ? isVerticalLayout ? \"column-reverse\" : \"row-reverse\": isVerticalLayout ? \"column\" : \"row\",\n gap: (() => {\n const hasChat = chatContainer?.chatData && chatContainer.chatData.length > 0 && (chatContainer.show || chatContainer.show === undefined);\n const hasRulebook = ruleBookContainer?.data && (ruleBookContainer.show || ruleBookContainer.show === undefined);\n const hasTable = isTableDataPresent;\n \n // Count how many containers we have\n const containerCount = [hasChat, hasRulebook, hasTable].filter(Boolean).length;\n \n // Only add gap if we have more than 1 container\n return containerCount > 1 ? \"12px\" : \"0\";\n })(),\n height: containerHeight ? containerHeight : \"100%\",\n minHeight: 0,\n ...rootContainer?.slotStyles?.container, \n }}\n >\n {isTableDataPresent && (\n <span style={{ flex: \"1 1 0%\", minWidth: 0, ...chatContainer?.slotStyles?.outerContainer }}>\n <ChatCitation\n title=\"Invoice Data Preview\"\n icon={\n <IconContainer>\n <Table size={16} />\n </IconContainer>\n }\n slotStyles={{\n title: {\n color: \"#475569\",\n fontWeight: 500,\n },\n }}\n secondaryActions={[]}\n >\n <div\n style={{\n height: \"100%\",\n maxHeight: additionalData?.isExpanded ? \"none\" : \"275px\",\n border: \"2px solid #E2E8F0\",\n borderRadius: \"8px\",\n display: \"flex\",\n flexDirection: \"column\",\n backgroundColor: \"#FFFFFF\",\n position: \"relative\",\n overflow: \"hidden\",\n }}\n >\n {tableComponent?.rows && (\n <BigQueryTable\n rows={tableComponent.rows}\n columns={tableComponent.columns || []}\n />\n )}\n </div>\n </ChatCitation>\n </span>\n )}\n\n {ruleBookContainer?.data &&\n (ruleBookContainer.show || ruleBookContainer.show === undefined) && (\n <span style={{ flex: \"1 1 0%\", minWidth: 0, ...ruleBookContainer?.slotStyles?.outerContainer }}>\n <ChatCitation\n title={ruleBookContainer?.title ?? \"Rule book\"}\n icon={ruleBookContainer?.ruleBookIcon}\n slotStyles={{\n title: {\n color: \"#475569\",\n fontWeight: 500,\n ...ruleBookContainer?.slotStyles?.title,\n },\n body: ruleBookContainer?.slotStyles?.body,\n }}\n secondaryActions={\n ruleBookContainer?.secondaryActions\n ? ruleBookContainer.secondaryActions(\n ruleBookContainerSecondaryActions,\n )\n : ruleBookContainerSecondaryActions\n }\n >\n \n <div\n style={{\n height: \"100%\",\n maxHeight: \"275px\",\n minHeight: 0,\n border: \"2px solid #E2E8F0\",\n borderRadius: \"8px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"12px\",\n backgroundColor: \"#F8FAFC\",\n position: \"relative\",\n overflowY: \"auto\",\n ...ruleBookContainer?.slotStyles?.dataContainer,\n }}\n >\n <div\n style={{\n padding: \"12px\",\n height: \"100%\",\n overflowY: \"auto\",\n }}\n ref={ruleBookRef}\n >\n <RuleBook\n data={ruleBookContainer.data}\n renderers={ruleBookContainer?.renderer ?? rendererToUse}\n />\n </div>\n </div>\n </ChatCitation>\n </span>\n )}\n\n {chatContainer?.chatData && chatContainer.chatData.length > 0 && (chatContainer.show || chatContainer.show === undefined) && (\n <span style={{ flex: \"1 1 0%\", minWidth: 0, ...chatContainer?.slotStyles?.outerContainer }}>\n <ChatCitation\n title={chatContainer?.title ?? \"Chat\"}\n icon={chatContainer?.chatIcon}\n containerStyles={chatContainer?.slotStyles?.container}\n slotStyles={{\n title: {\n color: \"#475569\",\n fontWeight: 500,\n ...chatContainer?.slotStyles?.title,\n },\n body: chatContainer?.slotStyles?.body,\n }}\n primaryActions={[\n (chatContainer?.summarizedTab?.chip?.show ||\n chatContainer?.summarizedTab?.chip?.show === undefined) && (\n <Chip\n label=\"Summarized\"\n {...chatContainer?.summarizedTab?.chip}\n />\n ),\n <Chip label=\"Detailed\" {...chatContainer?.detailedTab?.chip} />,\n ]}\n secondaryActions={\n chatContainer.secondaryActions\n ? chatContainer?.secondaryActions(\n chatContainerSecondaryActions,\n )\n : chatContainerSecondaryActions\n }\n >\n <div\n ref={userChatScrollRef}\n style={{\n height: \"100%\",\n maxHeight: \"275px\",\n border: \"2px solid #E2E8F0\",\n borderRadius: \"8px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"12px\",\n backgroundColor: \"#F8FAFC\",\n position: \"relative\",\n overflowY: \"auto\",\n ...chatContainer?.slotStyles?.chatDataContainer,\n }}\n >\n {chatContainer?.detailedTab?.chip?.isActive && (\n <div\n ref={userChatRef}\n style={{\n position: additionalData?.isExpanded\n ? \"absolute\"\n : \"relative\",\n inset: 0,\n padding: \"12px\",\n overflowY: \"auto\",\n }}\n >\n <DetailedView\n chatData={chatContainer.chatData ?? []}\n assistantChatProps={{\n ...chatContainer?.detailedTab?.view?.assistantChatProps,\n renderers:\n chatContainer?.detailedTab?.detailedViewRenderer\n ?.assistantText ?? rendererToUse,\n }}\n userChatItemProps={{\n ...chatContainer?.detailedTab?.view?.userChatItemProps,\n renderers:\n chatContainer?.detailedTab?.detailedViewRenderer\n ?.userText ?? rendererToUse,\n }}\n />\n </div>\n )}\n {chatContainer?.summarizedTab?.chip?.show &&\n chatContainer?.summarizedTab?.chip?.isActive && (\n <SummarizedView\n chatData={chatContainer.chatData ?? []}\n {...chatContainer?.summarizedTab?.view}\n renderer={\n chatContainer?.summarizedTab?.summarizedViewRenderer ??\n rendererToUse\n }\n />\n )}\n </div>\n </ChatCitation>\n </span>\n )}\n </div>\n);\n\n// Conditional wrapper\nif (!showRootContainer) {\n return innerContent;\n}\n\nreturn (\n <ChatCitation\n title={rootContainer?.title}\n slotStyles={{\n title: rootContainer?.slotStyles?.title,\n body: rootContainer?.slotStyles?.body,\n }}\n containerStyles={rootContainer?.slotStyles?.container}\n icon={\n rootContainer?.icon ?? (\n <IconContainer>\n <img\n src={ChatIcon}\n alt=\"chat icon\"\n style={{ width: 16, height: 16 }}\n />\n </IconContainer>\n )\n }\n secondaryActions={\n rootContainer?.secondaryActions\n ? rootContainer.secondaryActions(rootContainerSecondaryActions)\n : rootContainerSecondaryActions\n }\n >\n {innerContent}\n </ChatCitation>\n);\n}"],"names":["scrollHighlightIntoContainer","element","containerBoundary","behavior","scrollContainer","parentElement","overflowY","window","getComputedStyle","scrollHeight","clientHeight","container","elementRect","getBoundingClientRect","containerRect","top","scrollTop","height","scrollTo","Math","max","EMPTY_CHAT_CONTAINER","chatData","rootContainer","chatContainer","ruleBookContainer","renderer","additionalData","tableComponent","closePreview","isRenderedCustomComponent","showRootContainer","reversePanels","totalNumberOfHighlightedItemsInRuleBook","setTotalNumberOfHighlightedItemsInRuleBook","useState","currentlyHighlightedInRuleBook","setCurrentlyHighlightedInRuleBook","totalNumberOfHighlightedItemsInUserChat","setTotalNumberOfHighlightedItemsInUserChat","currentlyHighlightedInUserChat","setCurrentlyHighlightedInUserChat","ruleBookRef","useRef","userChatRef","userChatScrollRef","rendererToUse","useMemo","defaultRenderer","isTableDataPresent","rows","Object","keys","length","isVerticalLayout","RuleBookDetailedViewVerticallyStacked","useEffect","show","current","result","querySelectorAll","style","backgroundColor","userChatHighlightsResult","animationFrame","requestAnimationFrame","cancelAnimationFrame","targetIndex","firstElementChild","messageNode","children","data","handleRuleBookNextHighlight","useCallback","nextIndex","handleRuleBookPreviousHighlight","previousIndex","prevElement","handleUserChatNextHighlight","nextElement","handleUserChatPreviousHighlight","colorCodes","getColorCode","relevanceScore","rootContainerSecondaryActions","relevanceBadge","jsxs","display","border","alignItems","gap","borderRadius","padding","fontSize","borderColor","background","color","text","slotStyles","relevanceTitle","closeButton","jsx","cursor","onClick","CloseOutlinedIcon","isExpanded","ruleBookContainerSecondaryActions","InViewNavigation","currentItemNumber","totalItems","disableNext","onNext","onPrevious","disablePrevious","containerHeight","RuleBookContainerHeight","chatContainerSecondaryActions","detailedTab","chip","isActive","innerContent","flexDirection","filter","Boolean","minHeight","flex","minWidth","outerContainer","ChatCitation","title","icon","IconContainer","Table","size","fontWeight","secondaryActions","maxHeight","position","overflow","BigQueryTable","columns","ruleBookIcon","body","dataContainer","ref","RuleBook","renderers","chatIcon","containerStyles","primaryActions","summarizedTab","Chip","label","chatDataContainer","inset","DetailedView","assistantChatProps","view","detailedViewRenderer","assistantText","userChatItemProps","userText","SummarizedView","summarizedViewRenderer","src","ChatIcon","alt","width"],"mappings":"w3BA2BA,MAAMA,EAA+B,CACnCC,EACAC,EACAC,EAA2B,YAE3B,IAAKD,EAAmB,OAExB,IAAIE,EAAsCH,EAAQI,cAElD,KAAOD,GAAiB,CACtB,MAAME,UAAEA,GAAcC,OAAOC,iBAA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C,IAAI,YACJzG,MAAO,CAAE0G,MAAO,GAAItJ,OAAQ,QAKpCsH,iBACEhH,GAAegH,iBACXhH,EAAcgH,iBAAiBnD,GAC/BA,EAGLd,SAAAkD,IA5BIA,CA+BT"}
1
+ {"version":3,"file":"InternalChatCitationRenderer.js","sources":["../../../../src/features/ChatCitation/InternalChatCitationRenderer.tsx"],"sourcesContent":["import ChatCitation from \"./components/ChatCitation\";\nimport { FeatureModMarkdownProps } from \"./components/MarkdownRenderer\";\nimport { ChatCitationProps } from \"./types/citations.types\";\nimport { getColorCode } from \"./utils/helpers\";\nimport Chip from \"./components/Chip\";\nimport { ChatIcon } from \"./constants/icons\";\nimport InViewNavigation from \"./components/InViewNavigation\";\nimport DetailedView from \"./components/DetailedView\";\nimport SummarizedView from \"./components/SummarizedView\";\nimport RuleBook from \"./components/RuleBook\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { defaultRenderer } from \"./constants/renderer\";\nimport \"./styles/common.css\";\nimport IconContainer from \"./components/IconContainer\";\nimport { Table } from \"lucide-react\";\nimport { BigQueryTable } from \"./BigQueryTable\";\nimport CloseOutlinedIcon from '@mui/icons-material/CloseOutlined';\n// BigQuery Table Data Interface\ninterface BigQueryTableData {\n rows: Record<string, any[]>;\n columns?: string[];\n}\n\n/**\n * Scrolls the given element into view within the specified container boundary\n * instead of delegating the scrolling to browser's default behavior.\n */\nconst scrollHighlightIntoContainer = (\n element: HTMLElement,\n containerBoundary: HTMLElement | null,\n behavior: ScrollBehavior = \"smooth\",\n) => {\n if (!containerBoundary) return;\n\n let scrollContainer: HTMLElement | null = element.parentElement;\n\n while (scrollContainer) {\n const { overflowY } = window.getComputedStyle(scrollContainer);\n const canScroll =\n (overflowY === \"auto\" || overflowY === \"scroll\") &&\n scrollContainer.scrollHeight > scrollContainer.clientHeight;\n\n if (canScroll) break;\n if (scrollContainer === containerBoundary) {\n scrollContainer = null;\n break;\n }\n\n scrollContainer = scrollContainer.parentElement;\n }\n\n const container = scrollContainer ?? containerBoundary;\n const elementRect = element.getBoundingClientRect();\n const containerRect = container.getBoundingClientRect();\n const top =\n container.scrollTop +\n elementRect.top -\n containerRect.top -\n (container.clientHeight - elementRect.height) / 2;\n\n container.scrollTo({\n top: Math.max(0, top),\n behavior,\n });\n};\n\n\ntype InternalChatCitationRendererProps = ChatCitationProps & {\n showRootContainer?: boolean; \n tableComponent?: BigQueryTableData; // Changed to BigQueryTableData\n};\n\nconst EMPTY_CHAT_CONTAINER = { chatData: [] };\n\nexport default function InternalChatCitationRenderer({\n rootContainer,\n chatContainer = EMPTY_CHAT_CONTAINER,\n ruleBookContainer,\n renderer,\n additionalData,\n tableComponent,\n closePreview,\n isRenderedCustomComponent = false,\n showRootContainer = true, \n reversePanels=false\n}: InternalChatCitationRendererProps) {\n const [\n totalNumberOfHighlightedItemsInRuleBook,\n setTotalNumberOfHighlightedItemsInRuleBook,\n ] = useState<number>(0);\n const [currentlyHighlightedInRuleBook, setCurrentlyHighlightedInRuleBook] =\n useState<number>(0);\n\n const [\n totalNumberOfHighlightedItemsInUserChat,\n setTotalNumberOfHighlightedItemsInUserChat,\n ] = useState<number>(0);\n const [currentlyHighlightedInUserChat, setCurrentlyHighlightedInUserChat] =\n useState<number>(0);\n\n const ruleBookRef = useRef<HTMLDivElement | null>(null);\n const userChatRef = useRef<HTMLDivElement | null>(null);\n const userChatScrollRef = useRef<HTMLDivElement | null>(null);\n\n const rendererToUse: FeatureModMarkdownProps[\"renderers\"] = useMemo(() => {\n return { ...defaultRenderer, ...renderer };\n }, [renderer]);\n\n const isTableDataPresent = useMemo(() => {\n return !!(\n tableComponent?.rows &&\n Object.keys(tableComponent.rows).length > 0\n );\n }, [tableComponent]);\n\n // Determine if we're in vertical (column) or horizontal (row) layout\n const isVerticalLayout = useMemo(() => {\n return additionalData?.RuleBookDetailedViewVerticallyStacked ?? false;\n }, [additionalData?.RuleBookDetailedViewVerticallyStacked]);\n\n useEffect(() => {\n if (ruleBookContainer?.show && ruleBookRef.current) {\n const result = ruleBookRef.current?.querySelectorAll(\n \".rule-book-highlight\",\n );\n setTotalNumberOfHighlightedItemsInRuleBook(result?.length || 0);\n setCurrentlyHighlightedInRuleBook(0);\n if (result && result.length > 0) {\n const element = result[0] as HTMLElement;\n element.style.backgroundColor = \"#ffff5c\";\n scrollHighlightIntoContainer(element, ruleBookRef.current);\n }\n }\n if (chatContainer?.show && userChatRef?.current) {\n const userChatHighlightsResult = userChatRef.current?.querySelectorAll(\n \".user-chat-highlight\",\n );\n setTotalNumberOfHighlightedItemsInUserChat(\n userChatHighlightsResult?.length || 0,\n );\n setCurrentlyHighlightedInUserChat(0);\n if (userChatHighlightsResult && userChatHighlightsResult.length > 0) {\n const element = userChatHighlightsResult[0] as HTMLElement;\n element.style.backgroundColor = \"#ffff5c\";\n\n // request animation frame to ensure DOM has completely rendered before scrolling\n const animationFrame = requestAnimationFrame(() => {\n scrollHighlightIntoContainer(element, userChatScrollRef.current);\n });\n\n return () => cancelAnimationFrame(animationFrame);\n }\n // FALLBACK LOGIC IF THE HIGHLIGHTED_PHRASE is empty and we got the msgOrderNumber for CR_CITATION\n const targetIndex = (additionalData as any)?.targetIndex;\n if (targetIndex !== undefined && targetIndex >= 0 && userChatRef.current?.firstElementChild) {\n const messageNode = userChatRef.current.firstElementChild.children[targetIndex] as HTMLElement;\n if (messageNode) {\n const animationFrame = requestAnimationFrame(() => {\n scrollHighlightIntoContainer(messageNode, userChatScrollRef.current);\n });\n return () => cancelAnimationFrame(animationFrame);\n }\n }\n }\n }, [\n chatContainer?.show,\n ruleBookContainer?.show,\n ruleBookContainer?.data,\n chatContainer?.chatData,\n (additionalData as any)?.targetIndex\n ]);\n\n const handleRuleBookNextHighlight = useCallback(() => {\n if (\n currentlyHighlightedInRuleBook + 1 <\n totalNumberOfHighlightedItemsInRuleBook\n ) {\n const result = ruleBookRef.current?.querySelectorAll(\n \".rule-book-highlight\",\n );\n if (!result) return;\n const prevElement = result[currentlyHighlightedInRuleBook] as HTMLElement;\n prevElement.style.backgroundColor = \"#ffffb8\";\n const nextIndex = currentlyHighlightedInRuleBook + 1;\n setCurrentlyHighlightedInRuleBook(nextIndex);\n const element = result[nextIndex] as HTMLElement;\n element.style.backgroundColor = \"#ffff5c\";\n scrollHighlightIntoContainer(element, ruleBookRef.current);\n }\n }, [currentlyHighlightedInRuleBook, totalNumberOfHighlightedItemsInRuleBook]);\n\n const handleRuleBookPreviousHighlight = useCallback(() => {\n if (currentlyHighlightedInRuleBook - 1 < 0) return;\n const result = ruleBookRef.current?.querySelectorAll(\n \".rule-book-highlight\",\n );\n if (!result) return;\n const element = result[currentlyHighlightedInRuleBook] as HTMLElement;\n element.style.backgroundColor = \"#ffffb8\";\n const previousIndex = currentlyHighlightedInRuleBook - 1;\n const prevElement = result[previousIndex] as HTMLElement;\n prevElement.style.backgroundColor = \"#ffff5c\";\n setCurrentlyHighlightedInRuleBook(previousIndex);\n scrollHighlightIntoContainer(prevElement, ruleBookRef.current);\n }, [currentlyHighlightedInRuleBook]);\n\n const handleUserChatNextHighlight = useCallback(() => {\n if (\n currentlyHighlightedInUserChat + 1 <\n totalNumberOfHighlightedItemsInUserChat\n ) {\n const result = userChatRef.current?.querySelectorAll(\n \".user-chat-highlight\",\n );\n if (!result) return;\n const element = result[currentlyHighlightedInUserChat] as HTMLElement;\n element.style.backgroundColor = \"#ffffb8\";\n const nextIndex = currentlyHighlightedInUserChat + 1;\n const nextElement = result[nextIndex] as HTMLElement;\n nextElement.style.backgroundColor = \"#ffff5c\";\n setCurrentlyHighlightedInUserChat(nextIndex);\n scrollHighlightIntoContainer(nextElement, userChatScrollRef.current);\n }\n }, [currentlyHighlightedInUserChat, totalNumberOfHighlightedItemsInUserChat]);\n\n const handleUserChatPreviousHighlight = useCallback(() => {\n if (currentlyHighlightedInUserChat - 1 < 0) return;\n const result = userChatRef.current?.querySelectorAll(\n \".user-chat-highlight\",\n );\n if (!result) return;\n const element = result[currentlyHighlightedInUserChat] as HTMLElement;\n element.style.backgroundColor = \"#ffffb8\";\n const previousIndex = currentlyHighlightedInUserChat - 1;\n const prevElement = result[previousIndex] as HTMLElement;\n prevElement.style.backgroundColor = \"#ffff5c\";\n setCurrentlyHighlightedInUserChat(previousIndex);\n scrollHighlightIntoContainer(prevElement, userChatScrollRef.current);\n }, [currentlyHighlightedInUserChat]);\n\n const colorCodes = getColorCode(rootContainer?.relevanceScore || 0);\n\nconst rootContainerSecondaryActions = useMemo(() => {\n const relevanceBadge = (\n <span\n key=\"relevance-score\"\n style={{\n display: \"flex\",\n border: \"1px solid\",\n alignItems: \"center\",\n gap: \"4px\",\n borderRadius: \"6px\",\n padding: \"2px 8px\",\n fontSize: \"12px\",\n borderColor: colorCodes.border,\n backgroundColor: colorCodes.background,\n color: colorCodes.text,\n ...rootContainer?.slotStyles?.relevanceScore,\n }}\n >\n {rootContainer?.relevanceTitle || \"Decision Strength\"}:{\" \"}\n {rootContainer?.relevanceScore || 0}%\n \n </span>\n );\n\n const closeButton = (\n <span\n key=\"close-preview\"\n style={{\n display: \"flex\",\n // border: \"1px solid black\",\n alignItems: \"center\",\n gap: \"4px\",\n borderRadius: \"6px\",\n padding: \"2px 8px\",\n fontSize: \"12px\",\n backgroundColor: \"white\",\n color: \"black\",\n cursor: \"pointer\",\n }}\n onClick={closePreview}\n >\n <CloseOutlinedIcon />\n </span>\n );\n\n return isRenderedCustomComponent && !additionalData?.isExpanded ? [relevanceBadge,closeButton] : [relevanceBadge];\n}, [\n isRenderedCustomComponent,\n colorCodes.background,\n colorCodes.border,\n colorCodes.text,\n rootContainer?.relevanceScore,\n rootContainer?.slotStyles?.relevanceScore,\n rootContainer?.relevanceTitle,\n]);\n\n const ruleBookContainerSecondaryActions = useMemo(() => {\n return [\n totalNumberOfHighlightedItemsInRuleBook > 0 && (\n <InViewNavigation\n key=\"rulebook-nav\"\n currentItemNumber={currentlyHighlightedInRuleBook + 1}\n totalItems={totalNumberOfHighlightedItemsInRuleBook}\n disableNext={\n currentlyHighlightedInRuleBook + 1 >=\n totalNumberOfHighlightedItemsInRuleBook\n }\n onNext={handleRuleBookNextHighlight}\n onPrevious={handleRuleBookPreviousHighlight}\n disablePrevious={currentlyHighlightedInRuleBook <= 0}\n />\n ),\n ];\n }, [\n currentlyHighlightedInRuleBook,\n handleRuleBookNextHighlight,\n handleRuleBookPreviousHighlight,\n totalNumberOfHighlightedItemsInRuleBook,\n ]);\n\n\n\n const containerHeight = useMemo(() => {\n if (additionalData?.RuleBookContainerHeight) {\n return additionalData.RuleBookContainerHeight;\n }\n\n if (isVerticalLayout) {\n if(!additionalData?.isExpanded){\n return \"600px\";\n }\n }\n\n return false;\n }, [additionalData?.RuleBookContainerHeight, isVerticalLayout]);\n\n const chatContainerSecondaryActions = useMemo(() => {\n return [\n chatContainer?.detailedTab?.chip?.isActive &&\n totalNumberOfHighlightedItemsInUserChat > 0 && (\n <InViewNavigation\n key=\"chat-nav\"\n currentItemNumber={currentlyHighlightedInUserChat + 1}\n totalItems={totalNumberOfHighlightedItemsInUserChat}\n onNext={handleUserChatNextHighlight}\n onPrevious={handleUserChatPreviousHighlight}\n disableNext={\n currentlyHighlightedInUserChat + 1 >=\n totalNumberOfHighlightedItemsInUserChat\n }\n disablePrevious={currentlyHighlightedInUserChat <= 0}\n />\n ),\n ];\n }, [\n chatContainer?.detailedTab?.chip?.isActive,\n currentlyHighlightedInUserChat,\n handleUserChatNextHighlight,\n handleUserChatPreviousHighlight,\n totalNumberOfHighlightedItemsInUserChat,\n ]);\n\n\n\n\n // Extract the inner content that's currently inside <ChatCitation>\nconst innerContent = (\n <div\n style={{\n display: \"flex\",\n flexDirection: reversePanels ? isVerticalLayout ? \"column-reverse\" : \"row-reverse\": isVerticalLayout ? \"column\" : \"row\",\n gap: (() => {\n const hasChat = chatContainer?.chatData && chatContainer.chatData.length > 0 && (chatContainer.show || chatContainer.show === undefined);\n const hasRulebook = ruleBookContainer?.data && (ruleBookContainer.show || ruleBookContainer.show === undefined);\n const hasTable = isTableDataPresent;\n \n // Count how many containers we have\n const containerCount = [hasChat, hasRulebook, hasTable].filter(Boolean).length;\n \n // Only add gap if we have more than 1 container\n return containerCount > 1 ? \"12px\" : \"0\";\n })(),\n height: containerHeight ? containerHeight : \"100%\",\n minHeight: 0,\n ...rootContainer?.slotStyles?.container, \n }}\n >\n {isTableDataPresent && (\n <span style={{ flex: \"1 1 0%\", minWidth: 0, ...chatContainer?.slotStyles?.outerContainer }}>\n <ChatCitation\n title=\"Invoice Data Preview\"\n icon={\n <IconContainer>\n <Table size={16} />\n </IconContainer>\n }\n slotStyles={{\n title: {\n color: \"#475569\",\n fontWeight: 500,\n },\n }}\n secondaryActions={[]}\n >\n <div\n style={{\n height: \"100%\",\n maxHeight: additionalData?.isExpanded ? \"none\" : \"275px\",\n border: \"2px solid #E2E8F0\",\n borderRadius: \"8px\",\n display: \"flex\",\n flexDirection: \"column\",\n backgroundColor: \"#FFFFFF\",\n position: \"relative\",\n overflow: \"hidden\",\n }}\n >\n {tableComponent?.rows && (\n <BigQueryTable\n rows={tableComponent.rows}\n columns={tableComponent.columns || []}\n />\n )}\n </div>\n </ChatCitation>\n </span>\n )}\n\n {ruleBookContainer?.data &&\n (ruleBookContainer.show || ruleBookContainer.show === undefined) && (\n <span style={{ flex: \"1 1 0%\", minWidth: 0, ...ruleBookContainer?.slotStyles?.outerContainer }}>\n <ChatCitation\n title={ruleBookContainer?.title ?? \"Rule book\"}\n icon={ruleBookContainer?.ruleBookIcon}\n slotStyles={{\n title: {\n color: \"#475569\",\n fontWeight: 500,\n ...ruleBookContainer?.slotStyles?.title,\n },\n body: ruleBookContainer?.slotStyles?.body,\n }}\n secondaryActions={\n ruleBookContainer?.secondaryActions\n ? ruleBookContainer.secondaryActions(\n ruleBookContainerSecondaryActions,\n )\n : ruleBookContainerSecondaryActions\n }\n >\n \n <div\n style={{\n height: \"100%\",\n maxHeight: \"275px\",\n minHeight: 0,\n border: \"2px solid #E2E8F0\",\n borderRadius: \"8px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"12px\",\n backgroundColor: \"#F8FAFC\",\n position: \"relative\",\n overflowY: \"auto\",\n ...ruleBookContainer?.slotStyles?.dataContainer,\n }}\n >\n <div\n style={{\n padding: \"12px\",\n height: \"100%\",\n overflowY: \"auto\",\n }}\n ref={ruleBookRef}\n >\n <RuleBook\n data={ruleBookContainer.data}\n renderers={ruleBookContainer?.renderer ?? rendererToUse}\n />\n </div>\n </div>\n </ChatCitation>\n </span>\n )}\n\n {chatContainer?.chatData && chatContainer.chatData.length > 0 && (chatContainer.show || chatContainer.show === undefined) && (\n <span style={{ flex: \"1 1 0%\", minWidth: 0, ...chatContainer?.slotStyles?.outerContainer }}>\n <ChatCitation\n title={chatContainer?.title ?? \"Chat\"}\n icon={chatContainer?.chatIcon}\n containerStyles={chatContainer?.slotStyles?.container}\n slotStyles={{\n title: {\n color: \"#475569\",\n fontWeight: 500,\n ...chatContainer?.slotStyles?.title,\n },\n body: chatContainer?.slotStyles?.body,\n }}\n primaryActions={[\n (chatContainer?.summarizedTab?.chip?.show ||\n chatContainer?.summarizedTab?.chip?.show === undefined) && (\n <Chip\n label=\"Summarized\"\n {...chatContainer?.summarizedTab?.chip}\n />\n ),\n <Chip label=\"Detailed\" {...chatContainer?.detailedTab?.chip} />,\n ]}\n secondaryActions={\n chatContainer.secondaryActions\n ? chatContainer?.secondaryActions(\n chatContainerSecondaryActions,\n )\n : chatContainerSecondaryActions\n }\n >\n <div\n ref={userChatScrollRef}\n style={{\n height: \"100%\",\n maxHeight: \"275px\",\n border: \"2px solid #E2E8F0\",\n borderRadius: \"8px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"12px\",\n backgroundColor: \"#F8FAFC\",\n position: \"relative\",\n overflowY: \"auto\",\n ...chatContainer?.slotStyles?.chatDataContainer,\n }}\n >\n {chatContainer?.detailedTab?.chip?.isActive && (\n <div\n ref={userChatRef}\n style={{\n position: additionalData?.isExpanded\n ? \"absolute\"\n : \"relative\",\n inset: 0,\n padding: \"12px\",\n overflowY: \"auto\",\n }}\n >\n <DetailedView\n chatData={chatContainer.chatData ?? []}\n assistantChatProps={{\n ...chatContainer?.detailedTab?.view?.assistantChatProps,\n renderers:\n chatContainer?.detailedTab?.detailedViewRenderer\n ?.assistantText ?? rendererToUse,\n }}\n userChatItemProps={{\n ...chatContainer?.detailedTab?.view?.userChatItemProps,\n renderers:\n chatContainer?.detailedTab?.detailedViewRenderer\n ?.userText ?? rendererToUse,\n }}\n />\n </div>\n )}\n {chatContainer?.summarizedTab?.chip?.show &&\n chatContainer?.summarizedTab?.chip?.isActive && (\n <SummarizedView\n chatData={chatContainer.chatData ?? []}\n {...chatContainer?.summarizedTab?.view}\n renderer={\n chatContainer?.summarizedTab?.summarizedViewRenderer ??\n rendererToUse\n }\n />\n )}\n </div>\n </ChatCitation>\n </span>\n )}\n </div>\n);\n\n// Conditional wrapper\nif (!showRootContainer) {\n return innerContent;\n}\n\nreturn (\n <ChatCitation\n title={rootContainer?.title}\n slotStyles={{\n title: rootContainer?.slotStyles?.title,\n body: rootContainer?.slotStyles?.body,\n }}\n containerStyles={rootContainer?.slotStyles?.container}\n icon={\n rootContainer?.icon ?? (\n <IconContainer>\n <img\n src={ChatIcon}\n alt=\"chat icon\"\n style={{ width: 16, height: 16 }}\n />\n </IconContainer>\n )\n }\n secondaryActions={\n rootContainer?.secondaryActions\n ? rootContainer.secondaryActions(rootContainerSecondaryActions)\n : rootContainerSecondaryActions\n }\n >\n {innerContent}\n </ChatCitation>\n);\n}"],"names":["scrollHighlightIntoContainer","element","containerBoundary","behavior","scrollContainer","parentElement","overflowY","window","getComputedStyle","scrollHeight","clientHeight","container","elementRect","getBoundingClientRect","containerRect","top","scrollTop","height","scrollTo","Math","max","EMPTY_CHAT_CONTAINER","chatData","rootContainer","chatContainer","ruleBookContainer","renderer","additionalData","tableComponent","closePreview","isRenderedCustomComponent","showRootContainer","reversePanels","totalNumberOfHighlightedItemsInRuleBook","setTotalNumberOfHighlightedItemsInRuleBook","useState","currentlyHighlightedInRuleBook","setCurrentlyHighlightedInRuleBook","totalNumberOfHighlightedItemsInUserChat","setTotalNumberOfHighlightedItemsInUserChat","currentlyHighlightedInUserChat","setCurrentlyHighlightedInUserChat","ruleBookRef","useRef","userChatRef","userChatScrollRef","rendererToUse","useMemo","defaultRenderer","isTableDataPresent","rows","Object","keys","length","isVerticalLayout","RuleBookDetailedViewVerticallyStacked","useEffect","show","current","result","querySelectorAll","style","backgroundColor","userChatHighlightsResult","animationFrame","requestAnimationFrame","cancelAnimationFrame","targetIndex","firstElementChild","messageNode","children","data","handleRuleBookNextHighlight","useCallback","nextIndex","handleRuleBookPreviousHighlight","previousIndex","prevElement","handleUserChatNextHighlight","nextElement","handleUserChatPreviousHighlight","colorCodes","getColorCode","relevanceScore","rootContainerSecondaryActions","relevanceBadge","jsxs","display","border","alignItems","gap","borderRadius","padding","fontSize","borderColor","background","color","text","slotStyles","relevanceTitle","closeButton","jsx","cursor","onClick","CloseOutlinedIcon","isExpanded","ruleBookContainerSecondaryActions","InViewNavigation","currentItemNumber","totalItems","disableNext","onNext","onPrevious","disablePrevious","containerHeight","RuleBookContainerHeight","chatContainerSecondaryActions","detailedTab","chip","isActive","innerContent","flexDirection","filter","Boolean","minHeight","flex","minWidth","outerContainer","ChatCitation","title","icon","IconContainer","Table","size","fontWeight","secondaryActions","maxHeight","position","overflow","BigQueryTable","columns","ruleBookIcon","body","dataContainer","ref","RuleBook","renderers","chatIcon","containerStyles","primaryActions","summarizedTab","Chip","label","chatDataContainer","inset","DetailedView","assistantChatProps","view","detailedViewRenderer","assistantText","userChatItemProps","userText","SummarizedView","summarizedViewRenderer","src","ChatIcon","alt","width"],"mappings":"k1BA2BA,MAAMA,EAA+B,CACnCC,EACAC,EACAC,EAA2B,YAE3B,IAAKD,EAAmB,OAExB,IAAIE,EAAsCH,EAAQI,cAElD,KAAOD,GAAiB,CACtB,MAAME,UAAEA,GAAcC,OAAOC,iBAAiBJ,GAK9C,IAHiB,SAAdE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0G,MAAO,GAAItJ,OAAQ,QAKpCsH,iBACEhH,GAAegH,iBACXhH,EAAcgH,iBAAiBnD,GAC/BA,EAGLd,SAAAkD,IA5BIA,CA+BT"}
@@ -1 +1 @@
1
- {"version":3,"file":"cw_chat.svg.js","sources":["../../../../../src/features/ChatCitation/assets/cw_chat.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2221%22%20height%3D%2221%22%20viewBox%3D%220%200%2021%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.6228%206.98031C12.526%206.50656%2011.849%206.50656%2011.7522%206.98031C11.1582%209.88678%208.88678%2012.1582%205.98031%2012.7522C5.50656%2012.849%205.50656%2013.526%205.98031%2013.6228C8.88678%2014.2168%2011.1582%2016.4882%2011.7522%2019.3947C11.849%2019.8684%2012.526%2019.8684%2012.6228%2019.3947C13.2168%2016.4882%2015.4882%2014.2168%2018.3947%2013.6228C18.8684%2013.526%2018.8684%2012.849%2018.3947%2012.7522C15.4882%2012.1582%2013.2168%209.88678%2012.6228%206.98031Z%22%20fill%3D%22url%28%23paint0_linear_22023_3754%29%22%2F%3E%3Cpath%20d%3D%22M4.56003%202.2735C4.55363%202.24217%204.50887%202.24217%204.50247%202.2735C4.17013%203.89946%202.89946%205.17013%201.27349%205.50247C1.24217%205.50887%201.24217%205.55363%201.27349%205.56003C2.89946%205.89237%204.17013%207.16304%204.50247%208.789C4.50887%208.82033%204.55363%208.82033%204.56003%208.789C4.89237%207.16304%206.16304%205.89237%207.789%205.56003C7.82033%205.55363%207.82033%205.50887%207.789%205.50247C6.16304%205.17013%204.89237%203.89946%204.56003%202.2735Z%22%20fill%3D%22url%28%23paint1_linear_22023_3754%29%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_22023_3754%22%20x1%3D%2210.013%22%20y1%3D%22-4.76184%22%20x2%3D%2226.194%22%20y2%3D%2210.9087%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2333D2FF%22%2F%3E%3Cstop%20offset%3D%220.537474%22%20stop-color%3D%22%233D68DE%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%239845E8%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_22023_3754%22%20x1%3D%2210.013%22%20y1%3D%22-4.76184%22%20x2%3D%2226.194%22%20y2%3D%2210.9087%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2333D2FF%22%2F%3E%3Cstop%20offset%3D%220.537474%22%20stop-color%3D%22%233D68DE%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%239845E8%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\""],"names":[],"mappings":"qGA+Ce"}
1
+ {"version":3,"file":"cw_chat.svg.js","sources":["../../../../../src/features/ChatCitation/assets/cw_chat.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2221%22%20height%3D%2221%22%20viewBox%3D%220%200%2021%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.6228%206.98031C12.526%206.50656%2011.849%206.50656%2011.7522%206.98031C11.1582%209.88678%208.88678%2012.1582%205.98031%2012.7522C5.50656%2012.849%205.50656%2013.526%205.98031%2013.6228C8.88678%2014.2168%2011.1582%2016.4882%2011.7522%2019.3947C11.849%2019.8684%2012.526%2019.8684%2012.6228%2019.3947C13.2168%2016.4882%2015.4882%2014.2168%2018.3947%2013.6228C18.8684%2013.526%2018.8684%2012.849%2018.3947%2012.7522C15.4882%2012.1582%2013.2168%209.88678%2012.6228%206.98031Z%22%20fill%3D%22url%28%23paint0_linear_22023_3754%29%22%2F%3E%3Cpath%20d%3D%22M4.56003%202.2735C4.55363%202.24217%204.50887%202.24217%204.50247%202.2735C4.17013%203.89946%202.89946%205.17013%201.27349%205.50247C1.24217%205.50887%201.24217%205.55363%201.27349%205.56003C2.89946%205.89237%204.17013%207.16304%204.50247%208.789C4.50887%208.82033%204.55363%208.82033%204.56003%208.789C4.89237%207.16304%206.16304%205.89237%207.789%205.56003C7.82033%205.55363%207.82033%205.50887%207.789%205.50247C6.16304%205.17013%204.89237%203.89946%204.56003%202.2735Z%22%20fill%3D%22url%28%23paint1_linear_22023_3754%29%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_22023_3754%22%20x1%3D%2210.013%22%20y1%3D%22-4.76184%22%20x2%3D%2226.194%22%20y2%3D%2210.9087%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2333D2FF%22%2F%3E%3Cstop%20offset%3D%220.537474%22%20stop-color%3D%22%233D68DE%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%239845E8%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_22023_3754%22%20x1%3D%2210.013%22%20y1%3D%22-4.76184%22%20x2%3D%2226.194%22%20y2%3D%2210.9087%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2333D2FF%22%2F%3E%3Cstop%20offset%3D%220.537474%22%20stop-color%3D%22%233D68DE%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%239845E8%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\""],"names":[],"mappings":"qGA6Ce"}
@@ -1 +1 @@
1
- {"version":3,"file":"message-chat-square.svg.js","sources":["../../../../../src/features/ChatCitation/assets/message-chat-square.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_22708_25%29%22%3E%3Cpath%20d%3D%22M6.66732%2010.0026L4.61715%2012.0784C4.33117%2012.3679%204.18819%2012.5127%204.06529%2012.5229C3.95866%2012.5318%203.85426%2012.4889%203.78462%2012.4077C3.70435%2012.3141%203.70435%2012.1106%203.70435%2011.7036V10.6637C3.70435%2010.2986%203.40537%2010.0344%203.04412%209.98149C2.16981%209.85342%201.48317%209.16678%201.3551%208.29247C1.33398%208.14831%201.33398%207.97628%201.33398%207.63223V4.53594C1.33398%203.41583%201.33398%202.85578%201.55197%202.42796C1.74372%202.05163%202.04968%201.74567%202.426%201.55392C2.85383%201.33594%203.41388%201.33594%204.53398%201.33594H9.46732C10.5874%201.33594%2011.1475%201.33594%2011.5753%201.55392C11.9516%201.74567%2012.2576%202.05163%2012.4493%202.42796C12.6673%202.85578%2012.6673%203.41583%2012.6673%204.53594V7.33594M12.6673%2014.6693L11.2164%2013.6605C11.0124%2013.5187%2010.9104%2013.4478%2010.7995%2013.3976C10.7009%2013.3529%2010.5974%2013.3205%2010.491%2013.3009C10.3712%2013.2788%2010.247%2013.2788%209.9986%2013.2788H8.80065C8.05391%2013.2788%207.68055%2013.2788%207.39533%2013.1335C7.14445%2013.0056%206.94047%2012.8017%206.81264%2012.5508C6.66732%2012.2656%206.66732%2011.8922%206.66732%2011.1455V9.46927C6.66732%208.72253%206.66732%208.34917%206.81264%208.06395C6.94047%207.81307%207.14445%207.60909%207.39533%207.48126C7.68055%207.33594%208.05391%207.33594%208.80065%207.33594H12.534C13.2807%207.33594%2013.6541%207.33594%2013.9393%207.48126C14.1902%207.60909%2014.3942%207.81307%2014.522%208.06395C14.6673%208.34917%2014.6673%208.72253%2014.6673%209.46927V11.2788C14.6673%2011.9001%2014.6673%2012.2107%2014.5658%2012.4557C14.4305%2012.7824%2014.1709%2013.042%2013.8442%2013.1773C13.5992%2013.2788%2013.2886%2013.2788%2012.6673%2013.2788V14.6693Z%22%20stroke%3D%22%235928ED%22%20stroke-width%3D%221.33333%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_22708_25%22%3E%3Crect%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\""],"names":[],"mappings":"qGAwBe"}
1
+ {"version":3,"file":"message-chat-square.svg.js","sources":["../../../../../src/features/ChatCitation/assets/message-chat-square.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_22708_25%29%22%3E%3Cpath%20d%3D%22M6.66732%2010.0026L4.61715%2012.0784C4.33117%2012.3679%204.18819%2012.5127%204.06529%2012.5229C3.95866%2012.5318%203.85426%2012.4889%203.78462%2012.4077C3.70435%2012.3141%203.70435%2012.1106%203.70435%2011.7036V10.6637C3.70435%2010.2986%203.40537%2010.0344%203.04412%209.98149C2.16981%209.85342%201.48317%209.16678%201.3551%208.29247C1.33398%208.14831%201.33398%207.97628%201.33398%207.63223V4.53594C1.33398%203.41583%201.33398%202.85578%201.55197%202.42796C1.74372%202.05163%202.04968%201.74567%202.426%201.55392C2.85383%201.33594%203.41388%201.33594%204.53398%201.33594H9.46732C10.5874%201.33594%2011.1475%201.33594%2011.5753%201.55392C11.9516%201.74567%2012.2576%202.05163%2012.4493%202.42796C12.6673%202.85578%2012.6673%203.41583%2012.6673%204.53594V7.33594M12.6673%2014.6693L11.2164%2013.6605C11.0124%2013.5187%2010.9104%2013.4478%2010.7995%2013.3976C10.7009%2013.3529%2010.5974%2013.3205%2010.491%2013.3009C10.3712%2013.2788%2010.247%2013.2788%209.9986%2013.2788H8.80065C8.05391%2013.2788%207.68055%2013.2788%207.39533%2013.1335C7.14445%2013.0056%206.94047%2012.8017%206.81264%2012.5508C6.66732%2012.2656%206.66732%2011.8922%206.66732%2011.1455V9.46927C6.66732%208.72253%206.66732%208.34917%206.81264%208.06395C6.94047%207.81307%207.14445%207.60909%207.39533%207.48126C7.68055%207.33594%208.05391%207.33594%208.80065%207.33594H12.534C13.2807%207.33594%2013.6541%207.33594%2013.9393%207.48126C14.1902%207.60909%2014.3942%207.81307%2014.522%208.06395C14.6673%208.34917%2014.6673%208.72253%2014.6673%209.46927V11.2788C14.6673%2011.9001%2014.6673%2012.2107%2014.5658%2012.4557C14.4305%2012.7824%2014.1709%2013.042%2013.8442%2013.1773C13.5992%2013.2788%2013.2886%2013.2788%2012.6673%2013.2788V14.6693Z%22%20stroke%3D%22%235928ED%22%20stroke-width%3D%221.33333%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_22708_25%22%3E%3Crect%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\""],"names":[],"mappings":"qGAsBe"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("react-markdown"),i=require("rehype-raw"),a=require("remark-gfm"),l=require("unist-util-visit"),n=require("./MarkdownRenderer.module.css.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(t),p=s(r),u=s(i),c=s(a);function d(){return e=>{l.visit(e,"text",(e,t,r)=>{if(!r||"string"!=typeof e.value)return;if(!e.value.includes("✓"))return;const i=e.value.split("✓"),a=[];for(let e=0;e<i.length;e++){const t=i[e];t&&a.push({type:"text",value:t}),e<i.length-1&&a.push({type:"element",tagName:"span",properties:{"data-green-check":"true",className:[n.default.checkGreen]},children:[{type:"text",value:"✓"}]})}return r.children.splice(t,1,...a),t+a.length})}}function m(){return e=>{l.visit(e,"element",(e,t,r)=>{if(r&&"p"===e.tagName)return e.children&&1===e.children.length&&"element"===e.children[0].type&&"details"===e.children[0].tagName?(r.children.splice(t,1,e.children[0]),t):void 0})}}const h=e=>"text"===e?.type&&/^\s*$/.test(e.value??"");function f(){return e=>{l.visit(e,"element",e=>{if("details"!==e.tagName)return;if(!("data-target"in(e.properties||{})))return;const t=e.children||[];let r=0;"element"===t[0]?.type&&"summary"===t[0]?.tagName&&(r=1);const i=t.slice(r),a=i.filter(e=>!h(e));if(1===a.length&&"element"===a[0].type&&a[0].properties&&("data-popup"in a[0].properties||void 0!==a[0].properties["data-popup"]))return;if(a.some(e=>"element"===e?.type&&e?.properties&&("data-popup"in e.properties||void 0!==e.properties["data-popup"])))return;const l={type:"element",tagName:"div",properties:{"data-popup":""},children:i};e.children=t.slice(0,r).concat([l])})}}function g(){return e=>{l.visit(e,"element",e=>{if("details"!==e.tagName)return;const t=e.properties||{};if("data-inline"in t||"data-target"in t)return;const r=e.children||[];let i=0;"element"===r[0]?.type&&"summary"===r[0]?.tagName&&(i=1);const a=r.slice(i),l=a.filter(e=>!h(e));if(1===l.length&&"element"===l[0].type&&l[0].properties&&("data-popup"in l[0].properties||void 0!==l[0].properties["data-popup"]))return;if(l.some(e=>"element"===e?.type&&e?.properties&&("data-popup"in e.properties||void 0!==e.properties["data-popup"])))return;const n={type:"element",tagName:"div",properties:{"data-popup":""},children:a};e.children=r.slice(0,i).concat([n])})}}const y=(t,r,i)=>{if(!r||!r.trim())return t;const a=new RegExp(`(${l=r,l.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")})`,"gi");var l;return t.split(a).map((t,r)=>a.test(t)?e.jsx("mark",{className:n.default.customHighlight,id:"customHighlight",style:i,children:t},r):t)};exports.default=({value:r,highlightedText:i,scrollTo:a,styles:l={}})=>{const s=o.default.useRef(null),h=o.default.useRef(null);t.useEffect(()=>{if(i){const e=setTimeout(()=>{if(h.current){const e=h.current.querySelector("#customHighlight");e&&e.scrollIntoView({behavior:"smooth",block:a||"center"})}},225);return()=>clearTimeout(e)}},[i,r]);return e.jsx("div",{ref:s,className:n.default.containerWrapper,style:l.containerWrapper,children:e.jsx("div",{className:n.default.mainCard,style:l.mainCard,children:e.jsx("div",{ref:h,className:n.default.scrollArea,style:l.scrollArea,children:e.jsx(p.default,{remarkPlugins:[c.default],rehypePlugins:[u.default,m,d,f,g],components:{details:({node:t,...r})=>{const i=!!r["data-inline"],a=!!r["data-target"];let o=n.default.detailsBlock,p=l.detailsBlock;return i&&(o=n.default.detailsInline,p=l.detailsInline),a&&(o=n.default.detailsTarget,p=l.detailsTarget),e.jsxs("details",{...r,className:o,style:{...p,...r.style},onToggle:e=>{e.stopPropagation(),i&&(e=>{const t=e.currentTarget,r=t.getAttribute("data-inline");if(!r||!s.current)return;const i=s.current.querySelector(`details[data-target="${r}"]`);i&&(i.open=t.open)})(e)},children:[a&&e.jsx("summary",{className:n.default.targetDummySummary,"aria-hidden":"true"}),r.children]})},summary:({node:t,...r})=>e.jsx("summary",{className:n.default.summary,style:l.summary,onClick:e=>e.stopPropagation(),...r,children:r.children}),ul:t=>e.jsx("ul",{className:n.default.list,style:l.list,...t}),ol:t=>e.jsx("ol",{className:n.default.list,style:l.list,...t}),div:({node:t,...r})=>{const i=t?.properties&&"data-popup"in t.properties;return e.jsx("div",{...r,className:i?n.default.popup:r.className,style:i?l.popup:r.style})},span:({node:t,...r})=>"true"===t?.properties?.["data-green-check"]?e.jsx("span",{...r,style:l.checkGreen}):e.jsx("span",{...r}),p:function({children:t}){const r=Array.isArray(t)?t:[t];return e.jsx("p",{children:r.map((t,r)=>"string"==typeof t?y(t,i,l.customHighlight):e.jsx(o.default.Fragment,{children:t},r))})},li:({children:t})=>{try{const r=null==t?[]:Array.isArray(t)?t:[t];return e.jsx("li",{style:{marginBottom:"4px"},children:r?.map((t,r)=>"string"==typeof t?y(t,i,l.customHighlight):e.jsx(o.default.Fragment,{children:t},r))})}catch(r){return console.error("Error rendering <li>:",r),e.jsx("li",{children:t})}},code:({children:t,...r})=>e.jsx("code",{...r,children:o.default.Children.map(t,e=>"string"==typeof e?y(e,i,l.customHighlight):e)})},children:r})})})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("react-markdown"),i=require("rehype-raw"),n=require("remark-gfm"),l=require("../../node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js"),a=require("./MarkdownRenderer.module.css.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(t),u=s(r),p=s(i),c=s(n);function d(){return e=>{l.visit(e,"text",(e,t,r)=>{if(!r||"string"!=typeof e.value)return;if(!e.value.includes("✓"))return;const i=e.value.split("✓"),n=[];for(let e=0;e<i.length;e++){const t=i[e];t&&n.push({type:"text",value:t}),e<i.length-1&&n.push({type:"element",tagName:"span",properties:{"data-green-check":"true",className:[a.default.checkGreen]},children:[{type:"text",value:"✓"}]})}return r.children.splice(t,1,...n),t+n.length})}}function m(){return e=>{l.visit(e,"element",(e,t,r)=>{if(r&&"p"===e.tagName)return e.children&&1===e.children.length&&"element"===e.children[0].type&&"details"===e.children[0].tagName?(r.children.splice(t,1,e.children[0]),t):void 0})}}const h=e=>"text"===e?.type&&/^\s*$/.test(e.value??"");function f(){return e=>{l.visit(e,"element",e=>{if("details"!==e.tagName)return;if(!("data-target"in(e.properties||{})))return;const t=e.children||[];let r=0;"element"===t[0]?.type&&"summary"===t[0]?.tagName&&(r=1);const i=t.slice(r),n=i.filter(e=>!h(e));if(1===n.length&&"element"===n[0].type&&n[0].properties&&("data-popup"in n[0].properties||void 0!==n[0].properties["data-popup"]))return;if(n.some(e=>"element"===e?.type&&e?.properties&&("data-popup"in e.properties||void 0!==e.properties["data-popup"])))return;const l={type:"element",tagName:"div",properties:{"data-popup":""},children:i};e.children=t.slice(0,r).concat([l])})}}function g(){return e=>{l.visit(e,"element",e=>{if("details"!==e.tagName)return;const t=e.properties||{};if("data-inline"in t||"data-target"in t)return;const r=e.children||[];let i=0;"element"===r[0]?.type&&"summary"===r[0]?.tagName&&(i=1);const n=r.slice(i),l=n.filter(e=>!h(e));if(1===l.length&&"element"===l[0].type&&l[0].properties&&("data-popup"in l[0].properties||void 0!==l[0].properties["data-popup"]))return;if(l.some(e=>"element"===e?.type&&e?.properties&&("data-popup"in e.properties||void 0!==e.properties["data-popup"])))return;const a={type:"element",tagName:"div",properties:{"data-popup":""},children:n};e.children=r.slice(0,i).concat([a])})}}const y=(t,r,i)=>{if(!r||!r.trim())return t;const n=new RegExp(`(${l=r,l.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")})`,"gi");var l;return t.split(n).map((t,r)=>n.test(t)?e.jsx("mark",{className:a.default.customHighlight,id:"customHighlight",style:i,children:t},r):t)};exports.default=({value:r,highlightedText:i,scrollTo:n,styles:l={}})=>{const s=o.default.useRef(null),h=o.default.useRef(null);t.useEffect(()=>{if(i){const e=setTimeout(()=>{if(h.current){const e=h.current.querySelector("#customHighlight");e&&e.scrollIntoView({behavior:"smooth",block:n||"center"})}},225);return()=>clearTimeout(e)}},[i,r]);return e.jsx("div",{ref:s,className:a.default.containerWrapper,style:l.containerWrapper,children:e.jsx("div",{className:a.default.mainCard,style:l.mainCard,children:e.jsx("div",{ref:h,className:a.default.scrollArea,style:l.scrollArea,children:e.jsx(u.default,{remarkPlugins:[c.default],rehypePlugins:[p.default,m,d,f,g],components:{details:({node:t,...r})=>{const i=!!r["data-inline"],n=!!r["data-target"];let o=a.default.detailsBlock,u=l.detailsBlock;return i&&(o=a.default.detailsInline,u=l.detailsInline),n&&(o=a.default.detailsTarget,u=l.detailsTarget),e.jsxs("details",{...r,className:o,style:{...u,...r.style},onToggle:e=>{e.stopPropagation(),i&&(e=>{const t=e.currentTarget,r=t.getAttribute("data-inline");if(!r||!s.current)return;const i=s.current.querySelector(`details[data-target="${r}"]`);i&&(i.open=t.open)})(e)},children:[n&&e.jsx("summary",{className:a.default.targetDummySummary,"aria-hidden":"true"}),r.children]})},summary:({node:t,...r})=>e.jsx("summary",{className:a.default.summary,style:l.summary,onClick:e=>e.stopPropagation(),...r,children:r.children}),ul:t=>e.jsx("ul",{className:a.default.list,style:l.list,...t}),ol:t=>e.jsx("ol",{className:a.default.list,style:l.list,...t}),div:({node:t,...r})=>{const i=t?.properties&&"data-popup"in t.properties;return e.jsx("div",{...r,className:i?a.default.popup:r.className,style:i?l.popup:r.style})},span:({node:t,...r})=>"true"===t?.properties?.["data-green-check"]?e.jsx("span",{...r,style:l.checkGreen}):e.jsx("span",{...r}),p:function({children:t}){const r=Array.isArray(t)?t:[t];return e.jsx("p",{children:r.map((t,r)=>"string"==typeof t?y(t,i,l.customHighlight):e.jsx(o.default.Fragment,{children:t},r))})},li:({children:t})=>{try{const r=null==t?[]:Array.isArray(t)?t:[t];return e.jsx("li",{style:{marginBottom:"4px"},children:r?.map((t,r)=>"string"==typeof t?y(t,i,l.customHighlight):e.jsx(o.default.Fragment,{children:t},r))})}catch(r){return console.error("Error rendering <li>:",r),e.jsx("li",{children:t})}},code:({children:t,...r})=>e.jsx("code",{...r,children:o.default.Children.map(t,e=>"string"==typeof e?y(e,i,l.customHighlight):e)})},children:r})})})})};
2
2
  //# sourceMappingURL=MarkdownRenderer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownRenderer.js","sources":["../../../../src/features/CitationRenderer/MarkdownRenderer.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport Markdown from 'react-markdown';\nimport { CSSProperties } from 'react';\n\nimport rehypeRaw from 'rehype-raw';\nimport remarkGfm from 'remark-gfm';\nimport { visit } from 'unist-util-visit';\nimport defaultStyles from './MarkdownRenderer.module.css';\n\nexport interface MarkdownRendererStyles {\n containerWrapper?: CSSProperties;\n mainCard?: CSSProperties;\n scrollArea?: CSSProperties;\n customHighlight?: CSSProperties;\n popup?: CSSProperties;\n summary?: CSSProperties;\n list?: CSSProperties;\n detailsBlock?: CSSProperties;\n detailsInline?: CSSProperties;\n detailsTarget?: CSSProperties;\n checkGreen?: CSSProperties;\n}\n\ntype Props = {\n value: string;\n highlightedText?: string;\n highlightKeys?: any[];\n scrollTo?: 'center' | 'start' | 'end';\n styles?: MarkdownRendererStyles;\n};\n\n/** ✓ → green in preview (inline with following text) */\nfunction rehypeGreenChecks() {\n return (tree: any) => {\n // @ts-ignore\n visit(tree, 'text', (node: any, index: number, parent: any) => {\n if (!parent || typeof node.value !== 'string') return;\n if (!node.value.includes('✓')) return;\n\n const parts = node.value.split('✓');\n const newChildren: any[] = [];\n for (let i = 0; i < parts.length; i++) {\n const text = parts[i];\n if (text) newChildren.push({ type: 'text', value: text });\n if (i < parts.length - 1) {\n newChildren.push({\n type: 'element',\n tagName: 'span',\n properties: {\n 'data-green-check': 'true',\n className: [defaultStyles.checkGreen],\n },\n children: [{ type: 'text', value: '✓' }],\n });\n }\n }\n parent.children.splice(index, 1, ...newChildren);\n return index + newChildren.length;\n });\n };\n}\n\n/** Unwrap <p><details>…</details></p> → <details>…</details> */\nfunction rehypeUnwrapParagraphDetails() {\n return (tree: any) => {\n // @ts-ignore\n visit(tree, 'element', (node: any, i: number, parent: any) => {\n if (!parent || node.tagName !== 'p') return;\n if (\n node.children &&\n node.children.length === 1 &&\n node.children[0].type === 'element' &&\n node.children[0].tagName === 'details'\n ) {\n parent.children.splice(i, 1, node.children[0]);\n return i;\n }\n });\n };\n}\n\n/** helper: treat whitespace-only text as ignorable */\nconst isWhitespaceText = (n: any) => n?.type === 'text' && /^\\s*$/.test(n.value ?? '');\n\nfunction rehypeWrapTargetContent() {\n return (tree: any) => {\n // @ts-ignore\n visit(tree, 'element', (node: any) => {\n if (node.tagName !== 'details') return;\n const props = node.properties || {};\n if (!('data-target' in props)) return;\n\n const children = node.children || [];\n let startIdx = 0;\n if (children[0]?.type === 'element' && children[0]?.tagName === 'summary') {\n startIdx = 1;\n }\n const rest = children.slice(startIdx);\n const meaningful = rest.filter((c: any) => !isWhitespaceText(c));\n\n if (\n meaningful.length === 1 &&\n meaningful[0].type === 'element' &&\n meaningful[0].properties &&\n ('data-popup' in meaningful[0].properties ||\n meaningful[0].properties['data-popup'] !== undefined)\n ) {\n return;\n }\n\n if (\n meaningful.some(\n (c: any) =>\n c?.type === 'element' &&\n c?.properties &&\n ('data-popup' in c.properties || c.properties['data-popup'] !== undefined),\n )\n ) {\n return;\n }\n\n const popupDiv = {\n type: 'element',\n tagName: 'div',\n properties: { 'data-popup': '' },\n children: rest,\n };\n node.children = children.slice(0, startIdx).concat([popupDiv]);\n });\n };\n}\n\nfunction rehypeWrapAnyDetailsBody() {\n return (tree: any) => {\n // @ts-ignore\n visit(tree, 'element', (node: any) => {\n if (node.tagName !== 'details') return;\n const props = node.properties || {};\n if ('data-inline' in props || 'data-target' in props) return;\n\n const children = node.children || [];\n let startIdx = 0;\n if (children[0]?.type === 'element' && children[0]?.tagName === 'summary') {\n startIdx = 1;\n }\n const rest = children.slice(startIdx);\n const meaningful = rest.filter((c: any) => !isWhitespaceText(c));\n\n if (\n meaningful.length === 1 &&\n meaningful[0].type === 'element' &&\n meaningful[0].properties &&\n ('data-popup' in meaningful[0].properties ||\n meaningful[0].properties['data-popup'] !== undefined)\n ) {\n return;\n }\n if (\n meaningful.some(\n (c: any) =>\n c?.type === 'element' &&\n c?.properties &&\n ('data-popup' in c.properties || c.properties['data-popup'] !== undefined),\n )\n ) {\n return;\n }\n\n const popupDiv = {\n type: 'element',\n tagName: 'div',\n properties: { 'data-popup': '' },\n children: rest,\n };\n node.children = children.slice(0, startIdx).concat([popupDiv]);\n });\n };\n}\n\nconst renderWithHighlights = (\n text: string, \n highlightedText?: string, \n customHighlightStyle?: CSSProperties\n): React.ReactNode => {\n if (!highlightedText || !highlightedText.trim()) return text;\n\n const escapeRegExp = (str: string) => str.replace(/[-[\\]/{}()*+?.\\\\^$|]/g, '\\\\$&');\n const regex = new RegExp(`(${escapeRegExp(highlightedText)})`, 'gi');\n \n const parts = text.split(regex);\n\n return parts.map((part, i) => \n regex.test(part) ? (\n <mark \n key={i} \n className={defaultStyles.customHighlight} \n id=\"customHighlight\"\n style={customHighlightStyle} // Apply custom style\n >\n {part}\n </mark>\n ) : (\n part\n )\n );\n};\n\nconst MarkdownRenderer: React.FC<Props> = ({\n value,\n highlightedText,\n scrollTo,\n styles = {}, // Default to empty object\n}) => {\n const rootRef = React.useRef<HTMLDivElement | null>(null);\n const scrollRef = React.useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (highlightedText) {\n const timer = setTimeout(() => {\n if (scrollRef.current) {\n const highlightElement = scrollRef.current.querySelector('#customHighlight');\n\n if (highlightElement) {\n highlightElement.scrollIntoView({\n behavior: 'smooth',\n block: scrollTo ? scrollTo : 'center',\n });\n }\n }\n }, 225);\n return () => clearTimeout(timer);\n }\n }, [highlightedText, value]);\n\n const handleInlineToggle = (e: React.SyntheticEvent<HTMLDetailsElement>) => {\n const trigger = e.currentTarget;\n const id = trigger.getAttribute('data-inline');\n if (!id || !rootRef.current) return;\n\n const target = rootRef.current.querySelector<HTMLDetailsElement>(\n `details[data-target=\"${id}\"]`,\n );\n if (target) {\n target.open = trigger.open;\n }\n };\n\n return (\n <div \n ref={rootRef} // Attached to outer wrapper to help scope queries\n className={defaultStyles.containerWrapper} \n style={styles.containerWrapper}\n >\n <div \n className={defaultStyles.mainCard} \n style={styles.mainCard}\n >\n <div \n ref={scrollRef} \n className={defaultStyles.scrollArea} \n style={styles.scrollArea}\n >\n <Markdown\n remarkPlugins={[remarkGfm]}\n rehypePlugins={[\n rehypeRaw as any,\n rehypeUnwrapParagraphDetails,\n rehypeGreenChecks,\n rehypeWrapTargetContent,\n rehypeWrapAnyDetailsBody,\n ]}\n components={{\n details: ({ node, ...props }) => {\n const isInline = !!(props as any)['data-inline'];\n const isTarget = !!(props as any)['data-target'];\n \n let className = defaultStyles.detailsBlock;\n let style = styles.detailsBlock;\n\n if (isInline) {\n className = defaultStyles.detailsInline;\n style = styles.detailsInline;\n }\n if (isTarget) {\n className = defaultStyles.detailsTarget;\n style = styles.detailsTarget;\n }\n\n return (\n <details\n {...props}\n className={className}\n style={{ ...style, ...props.style }} // Merge with Markdown props if any\n onToggle={(e) => {\n e.stopPropagation();\n if (isInline) handleInlineToggle(e);\n }}\n >\n {isTarget && <summary className={defaultStyles.targetDummySummary} aria-hidden=\"true\" />}\n {props.children}\n </details>\n );\n },\n summary: ({ node, ...props }) => (\n <summary \n className={defaultStyles.summary} \n style={styles.summary}\n onClick={(e) => e.stopPropagation()} \n {...props}\n >\n {props.children}\n </summary>\n ),\n\n ul: (props) => <ul className={defaultStyles.list} style={styles.list} {...props} />,\n ol: (props) => <ol className={defaultStyles.list} style={styles.list} {...props} />,\n \n div: ({ node, ...props }) => {\n const isPopup = (node as any)?.properties && 'data-popup' in (node as any).properties;\n return (\n <div \n {...props} \n className={isPopup ? defaultStyles.popup : props.className} \n style={isPopup ? styles.popup : props.style}\n />\n );\n },\n \n // Handle the Green check that rehypeGreenChecks created\n span: ({node, ...props}) => {\n const isGreenCheck = (node as any)?.properties?.['data-green-check'] === 'true';\n if (isGreenCheck) {\n return <span {...props} style={styles.checkGreen} />;\n }\n return <span {...props} />;\n },\n\n p: function ({ children }) {\n const childArray = Array.isArray(children) ? children : [children];\n return (\n <p>\n {childArray.map((child, i) =>\n typeof child === 'string' ? (\n renderWithHighlights(child, highlightedText, styles.customHighlight)\n ) : (\n <React.Fragment key={i}>{child}</React.Fragment>\n ),\n )}\n </p>\n );\n },\n li: ({ children }) => {\n try {\n const childArray = children == null\n ? []\n : Array.isArray(children)\n ? children\n : [children];\n\n return (\n <li style={{ marginBottom: '4px' }}>\n {childArray?.map((child, index) =>\n typeof child === 'string'\n ? renderWithHighlights(child, highlightedText, styles.customHighlight)\n : <React.Fragment key={index}>{child}</React.Fragment>\n )}\n </li>\n );\n } catch (e) {\n console.error('Error rendering <li>:', e);\n return <li>{children}</li>;\n }\n },\n code: ({ children, ...props }) => (\n <code {...props}>\n {React.Children.map(children, (child) =>\n typeof child === 'string'\n ? renderWithHighlights(child, highlightedText, styles.customHighlight)\n : child,\n )}\n </code>\n ),\n }}\n >\n {value}\n </Markdown>\n </div>\n </div>\n </div>\n );\n};\n\nexport default MarkdownRenderer;\n"],"names":["rehypeGreenChecks","tree","visit","node","index","parent","value","includes","parts","split","newChildren","i","length","text","push","type","tagName","properties","className","defaultStyles","checkGreen","children","splice","rehypeUnwrapParagraphDetails","isWhitespaceText","n","test","rehypeWrapTargetContent","startIdx","rest","slice","meaningful","filter","c","some","popupDiv","concat","rehypeWrapAnyDetailsBody","props","renderWithHighlights","highlightedText","customHighlightStyle","trim","regex","RegExp","str","replace","map","part","jsx","customHighlight","id","style","scrollTo","styles","rootRef","React","useRef","scrollRef","useEffect","timer","setTimeout","current","highlightElement","querySelector","scrollIntoView","behavior","block","clearTimeout","ref","containerWrapper","mainCard","scrollArea","Markdown","remarkPlugins","remarkGfm","rehypePlugins","rehypeRaw","components","details","isInline","isTarget","detailsBlock","detailsInline","detailsTarget","jsxs","onToggle","e","stopPropagation","trigger","currentTarget","getAttribute","target","open","targetDummySummary","summary","onClick","ul","list","ol","div","isPopup","popup","span","p","childArray","Array","isArray","child","Fragment","li","marginBottom","console","error","code","Children"],"mappings":"0XAgCA,SAASA,IACP,OAAQC,IAENC,EAAAA,MAAMD,EAAM,OAAQ,CAACE,EAAWC,EAAeC,KAC7C,IAAKA,GAAgC,iBAAfF,EAAKG,MAAoB,OAC/C,IAAKH,EAAKG,MAAMC,SAAS,KAAM,OAE/B,MAAMC,EAAQL,EAAKG,MAAMG,MAAM,KACzBC,EAAqB,GAC3B,IAAA,IAASC,EAAI,EAAGA,EAAIH,EAAMI,OAAQD,IAAK,CAC/B,MAAAE,EAAOL,EAAMG,GACfE,KAAkBC,KAAK,CAAEC,KAAM,OAAQT,MAAOO,IAC9CF,EAAIH,EAAMI,OAAS,GACrBF,EAAYI,KAAK,CACfC,KAAM,UACNC,QAAS,OACTC,WAAY,CACV,mBAAoB,OACp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AAOjG,IACL,iBAAViG,EACLrE,EAAqBqE,EAAOpE,EAAiBc,EAAOJ,iBAEpDD,EAAAA,IAACO,UAAMqD,SAAN,CAAwBxF,YAAJV,KAK/B,EACAmG,GAAI,EAAGzF,eACD,IACM,MAAAoF,EAAyB,MAAZpF,EACb,GACAqF,MAAMC,QAAQtF,GACVA,EACA,CAACA,GAEX,aACK,KAAG,CAAA+B,MAAO,CAAE2D,aAAc,OACtB1F,SAAYoF,GAAA1D,IAAI,CAAC6D,EAAOxG,IACJ,iBAAVwG,EACDrE,EAAqBqE,EAAOpE,EAAiBc,EAAOJ,iBACpDD,EAAAA,IAACO,UAAMqD,SAAN,CAA4BxF,YAARjB,YAIlCmF,GAEE,OADCyB,QAAAC,MAAM,wBAAyB1B,GAChCtC,MAAC,MAAI5B,YAChB,GAEJ6F,KAAM,EAAG7F,cAAaiB,KAClBW,EAAAA,IAAC,OAAM,IAAGX,EACPjB,SAAAmC,EAAA,QAAM2D,SAASpE,IAAI1B,EAAWuF,GACZ,iBAAVA,EACHrE,EAAqBqE,EAAOpE,EAAiBc,EAAOJ,iBACpD0D,MAMXvF,SAAAf"}
1
+ {"version":3,"file":"MarkdownRenderer.js","sources":["../../../../src/features/CitationRenderer/MarkdownRenderer.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport Markdown from 'react-markdown';\nimport { CSSProperties } from 'react';\n\nimport rehypeRaw from 'rehype-raw';\nimport remarkGfm from 'remark-gfm';\nimport { visit } from 'unist-util-visit';\nimport defaultStyles from './MarkdownRenderer.module.css';\n\nexport interface MarkdownRendererStyles {\n containerWrapper?: CSSProperties;\n mainCard?: CSSProperties;\n scrollArea?: CSSProperties;\n customHighlight?: CSSProperties;\n popup?: CSSProperties;\n summary?: CSSProperties;\n list?: CSSProperties;\n detailsBlock?: CSSProperties;\n detailsInline?: CSSProperties;\n detailsTarget?: CSSProperties;\n checkGreen?: CSSProperties;\n}\n\ntype Props = {\n value: string;\n highlightedText?: string;\n highlightKeys?: any[];\n scrollTo?: 'center' | 'start' | 'end';\n styles?: MarkdownRendererStyles;\n};\n\n/** ✓ → green in preview (inline with following text) */\nfunction rehypeGreenChecks() {\n return (tree: any) => {\n // @ts-ignore\n visit(tree, 'text', (node: any, index: number, parent: any) => {\n if (!parent || typeof node.value !== 'string') return;\n if (!node.value.includes('✓')) return;\n\n const parts = node.value.split('✓');\n const newChildren: any[] = [];\n for (let i = 0; i < parts.length; i++) {\n const text = parts[i];\n if (text) newChildren.push({ type: 'text', value: text });\n if (i < parts.length - 1) {\n newChildren.push({\n type: 'element',\n tagName: 'span',\n properties: {\n 'data-green-check': 'true',\n className: [defaultStyles.checkGreen],\n },\n children: [{ type: 'text', value: '✓' }],\n });\n }\n }\n parent.children.splice(index, 1, ...newChildren);\n return index + newChildren.length;\n });\n };\n}\n\n/** Unwrap <p><details>…</details></p> → <details>…</details> */\nfunction rehypeUnwrapParagraphDetails() {\n return (tree: any) => {\n // @ts-ignore\n visit(tree, 'element', (node: any, i: number, parent: any) => {\n if (!parent || node.tagName !== 'p') return;\n if (\n node.children &&\n node.children.length === 1 &&\n node.children[0].type === 'element' &&\n node.children[0].tagName === 'details'\n ) {\n parent.children.splice(i, 1, node.children[0]);\n return i;\n }\n });\n };\n}\n\n/** helper: treat whitespace-only text as ignorable */\nconst isWhitespaceText = (n: any) => n?.type === 'text' && /^\\s*$/.test(n.value ?? '');\n\nfunction rehypeWrapTargetContent() {\n return (tree: any) => {\n // @ts-ignore\n visit(tree, 'element', (node: any) => {\n if (node.tagName !== 'details') return;\n const props = node.properties || {};\n if (!('data-target' in props)) return;\n\n const children = node.children || [];\n let startIdx = 0;\n if (children[0]?.type === 'element' && children[0]?.tagName === 'summary') {\n startIdx = 1;\n }\n const rest = children.slice(startIdx);\n const meaningful = rest.filter((c: any) => !isWhitespaceText(c));\n\n if (\n meaningful.length === 1 &&\n meaningful[0].type === 'element' &&\n meaningful[0].properties &&\n ('data-popup' in meaningful[0].properties ||\n meaningful[0].properties['data-popup'] !== undefined)\n ) {\n return;\n }\n\n if (\n meaningful.some(\n (c: any) =>\n c?.type === 'element' &&\n c?.properties &&\n ('data-popup' in c.properties || c.properties['data-popup'] !== undefined),\n )\n ) {\n return;\n }\n\n const popupDiv = {\n type: 'element',\n tagName: 'div',\n properties: { 'data-popup': '' },\n children: rest,\n };\n node.children = children.slice(0, startIdx).concat([popupDiv]);\n });\n };\n}\n\nfunction rehypeWrapAnyDetailsBody() {\n return (tree: any) => {\n // @ts-ignore\n visit(tree, 'element', (node: any) => {\n if (node.tagName !== 'details') return;\n const props = node.properties || {};\n if ('data-inline' in props || 'data-target' in props) return;\n\n const children = node.children || [];\n let startIdx = 0;\n if (children[0]?.type === 'element' && children[0]?.tagName === 'summary') {\n startIdx = 1;\n }\n const rest = children.slice(startIdx);\n const meaningful = rest.filter((c: any) => !isWhitespaceText(c));\n\n if (\n meaningful.length === 1 &&\n meaningful[0].type === 'element' &&\n meaningful[0].properties &&\n ('data-popup' in meaningful[0].properties ||\n meaningful[0].properties['data-popup'] !== undefined)\n ) {\n return;\n }\n if (\n meaningful.some(\n (c: any) =>\n c?.type === 'element' &&\n c?.properties &&\n ('data-popup' in c.properties || c.properties['data-popup'] !== undefined),\n )\n ) {\n return;\n }\n\n const popupDiv = {\n type: 'element',\n tagName: 'div',\n properties: { 'data-popup': '' },\n children: rest,\n };\n node.children = children.slice(0, startIdx).concat([popupDiv]);\n });\n };\n}\n\nconst renderWithHighlights = (\n text: string, \n highlightedText?: string, \n customHighlightStyle?: CSSProperties\n): React.ReactNode => {\n if (!highlightedText || !highlightedText.trim()) return text;\n\n const escapeRegExp = (str: string) => str.replace(/[-[\\]/{}()*+?.\\\\^$|]/g, '\\\\$&');\n const regex = new RegExp(`(${escapeRegExp(highlightedText)})`, 'gi');\n \n const parts = text.split(regex);\n\n return parts.map((part, i) => \n regex.test(part) ? (\n <mark \n key={i} \n className={defaultStyles.customHighlight} \n id=\"customHighlight\"\n style={customHighlightStyle} // Apply custom style\n >\n {part}\n </mark>\n ) : (\n part\n )\n );\n};\n\nconst MarkdownRenderer: React.FC<Props> = ({\n value,\n highlightedText,\n scrollTo,\n styles = {}, // Default to empty object\n}) => {\n const rootRef = React.useRef<HTMLDivElement | null>(null);\n const scrollRef = React.useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (highlightedText) {\n const timer = setTimeout(() => {\n if (scrollRef.current) {\n const highlightElement = scrollRef.current.querySelector('#customHighlight');\n\n if (highlightElement) {\n highlightElement.scrollIntoView({\n behavior: 'smooth',\n block: scrollTo ? scrollTo : 'center',\n });\n }\n }\n }, 225);\n return () => clearTimeout(timer);\n }\n }, [highlightedText, value]);\n\n const handleInlineToggle = (e: React.SyntheticEvent<HTMLDetailsElement>) => {\n const trigger = e.currentTarget;\n const id = trigger.getAttribute('data-inline');\n if (!id || !rootRef.current) return;\n\n const target = rootRef.current.querySelector<HTMLDetailsElement>(\n `details[data-target=\"${id}\"]`,\n );\n if (target) {\n target.open = trigger.open;\n }\n };\n\n return (\n <div \n ref={rootRef} // Attached to outer wrapper to help scope queries\n className={defaultStyles.containerWrapper} \n style={styles.containerWrapper}\n >\n <div \n className={defaultStyles.mainCard} \n style={styles.mainCard}\n >\n <div \n ref={scrollRef} \n className={defaultStyles.scrollArea} \n style={styles.scrollArea}\n >\n <Markdown\n remarkPlugins={[remarkGfm]}\n rehypePlugins={[\n rehypeRaw as any,\n rehypeUnwrapParagraphDetails,\n rehypeGreenChecks,\n rehypeWrapTargetContent,\n rehypeWrapAnyDetailsBody,\n ]}\n components={{\n details: ({ node, ...props }) => {\n const isInline = !!(props as any)['data-inline'];\n const isTarget = !!(props as any)['data-target'];\n \n let className = defaultStyles.detailsBlock;\n let style = styles.detailsBlock;\n\n if (isInline) {\n className = defaultStyles.detailsInline;\n style = styles.detailsInline;\n }\n if (isTarget) {\n className = defaultStyles.detailsTarget;\n style = styles.detailsTarget;\n }\n\n return (\n <details\n {...props}\n className={className}\n style={{ ...style, ...props.style }} // Merge with Markdown props if any\n onToggle={(e) => {\n e.stopPropagation();\n if (isInline) handleInlineToggle(e);\n }}\n >\n {isTarget && <summary className={defaultStyles.targetDummySummary} aria-hidden=\"true\" />}\n {props.children}\n </details>\n );\n },\n summary: ({ node, ...props }) => (\n <summary \n className={defaultStyles.summary} \n style={styles.summary}\n onClick={(e) => e.stopPropagation()} \n {...props}\n >\n {props.children}\n </summary>\n ),\n\n ul: (props) => <ul className={defaultStyles.list} style={styles.list} {...props} />,\n ol: (props) => <ol className={defaultStyles.list} style={styles.list} {...props} />,\n \n div: ({ node, ...props }) => {\n const isPopup = (node as any)?.properties && 'data-popup' in (node as any).properties;\n return (\n <div \n {...props} \n className={isPopup ? defaultStyles.popup : props.className} \n style={isPopup ? styles.popup : props.style}\n />\n );\n },\n \n // Handle the Green check that rehypeGreenChecks created\n span: ({node, ...props}) => {\n const isGreenCheck = (node as any)?.properties?.['data-green-check'] === 'true';\n if (isGreenCheck) {\n return <span {...props} style={styles.checkGreen} />;\n }\n return <span {...props} />;\n },\n\n p: function ({ children }) {\n const childArray = Array.isArray(children) ? children : [children];\n return (\n <p>\n {childArray.map((child, i) =>\n typeof child === 'string' ? (\n renderWithHighlights(child, highlightedText, styles.customHighlight)\n ) : (\n <React.Fragment key={i}>{child}</React.Fragment>\n ),\n )}\n </p>\n );\n },\n li: ({ children }) => {\n try {\n const childArray = children == null\n ? []\n : Array.isArray(children)\n ? children\n : [children];\n\n return (\n <li style={{ marginBottom: '4px' }}>\n {childArray?.map((child, index) =>\n typeof child === 'string'\n ? renderWithHighlights(child, highlightedText, styles.customHighlight)\n : <React.Fragment key={index}>{child}</React.Fragment>\n )}\n </li>\n );\n } catch (e) {\n console.error('Error rendering <li>:', e);\n return <li>{children}</li>;\n }\n },\n code: ({ children, ...props }) => (\n <code {...props}>\n {React.Children.map(children, (child) =>\n typeof child === 'string'\n ? renderWithHighlights(child, highlightedText, styles.customHighlight)\n : child,\n )}\n </code>\n ),\n }}\n >\n {value}\n </Markdown>\n </div>\n </div>\n </div>\n );\n};\n\nexport default MarkdownRenderer;\n"],"names":["rehypeGreenChecks","tree","visit","node","index","parent","value","includes","parts","split","newChildren","i","length","text","push","type","tagName","properties","className","defaultStyles","checkGreen","children","splice","rehypeUnwrapParagraphDetails","isWhitespaceText","n","test","rehypeWrapTargetContent","startIdx","rest","slice","meaningful","filter","c","some","popupDiv","concat","rehypeWrapAnyDetailsBody","props","renderWithHighlights","highlightedText","customHighlightStyle","trim","regex","RegExp","str","replace","map","part","jsx","customHighlight","id","style","scrollTo","styles","rootRef","React","useRef","scrollRef","useEffect","timer","setTimeout","current","highlightElement","querySelector","scrollIntoView","behavior","block","clearTimeout","ref","containerWrapper","mainCard","scrollArea","Markdown","remarkPlugins","remarkGfm","rehypePlugins","rehypeRaw","components","details","isInline","isTarget","detailsBlock","detailsInline","detailsTarget","jsxs","onToggle","e","stopPropagation","trigger","currentTarget","getAttribute","target","open","targetDummySummary","summary","onClick","ul","list","ol","div","isPopup","popup","span","p","childArray","Array","isArray","child","Fragment","li","marginBottom","console","error","code","Children"],"mappings":"ocAgCA,SAASA,IACP,OAAQC,IAENC,EAAAA,MAAMD,EAAM,OAAQ,CAACE,EAAWC,EAAeC,KAC7C,IAAKA,GAAgC,iBAAfF,EAAKG,MAAoB,OAC/C,IAAKH,EAAKG,MAAMC,SAAS,KAAM,OAE/B,MAAMC,EAAQL,EAAKG,MAAMG,MAAM,KACzBC,EAAqB,GAC3B,IAAA,IAASC,EAAI,EAAGA,EAAIH,EAAMI,OAAQD,IAAK,CAC/B,MAAAE,EAAOL,EAAMG,GACfE,KAAkBC,KAAK,CAAEC,KAAM,OAAQT,MAAOO,IAC9CF,EAAIH,EAAMI,OAAS,GACrBF,EAAYI,KAAK,CACfC,KAAM,UACNC,QAAS,OACTC,WAAY,CACV,mBAAoB,OACpBC,UAAW,CAACC,EAAA,QAAcC,aAE5BC,SAAU,CAAC,CAAEN,KAAM,OAAQT,MAAO,OAGxC,CAEA,OADAD,EAAOgB,SAASC,O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AAJV,KAK/B,EACAmG,GAAI,EAAGzF,eACD,IACM,MAAAoF,EAAyB,MAAZpF,EACb,GACAqF,MAAMC,QAAQtF,GACVA,EACA,CAACA,GAEX,aACK,KAAG,CAAA+B,MAAO,CAAE2D,aAAc,OACtB1F,SAAYoF,GAAA1D,IAAI,CAAC6D,EAAOxG,IACJ,iBAAVwG,EACDrE,EAAqBqE,EAAOpE,EAAiBc,EAAOJ,iBACpDD,EAAAA,IAACO,UAAMqD,SAAN,CAA4BxF,YAARjB,YAIlCmF,GAEE,OADCyB,QAAAC,MAAM,wBAAyB1B,GAChCtC,MAAC,MAAI5B,YAChB,GAEJ6F,KAAM,EAAG7F,cAAaiB,KAClBW,EAAAA,IAAC,OAAM,IAAGX,EACPjB,SAAAmC,EAAA,QAAM2D,SAASpE,IAAI1B,EAAWuF,GACZ,iBAAVA,EACHrE,EAAqBqE,EAAOpE,EAAiBc,EAAOJ,iBACpD0D,MAMXvF,SAAAf"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("./utils/helper.js");require("./css/excel-citation.css.js");exports.default=({data:o,highlightRow:i,loading:n,highlightText:l,isErrored:s})=>{const d=r.useRef(null);if(r.useEffect(()=>{if(!i||!l||n)return;const e=setTimeout(()=>{const e=d.current;if(!e)return;const r=e.querySelector('[data-highlight="true"]');r&&r.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},200);return()=>clearTimeout(e)},[i,l,n,o]),n)return e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.7)",backdropFilter:"blur(4px)"},children:[e.jsx("div",{style:{height:"2rem",width:"2rem",borderRadius:"9999px",border:"3px solid #d1d5db",borderTopColor:"#3b82f6",animation:"excel-citation-loader-spin 1s linear infinite"}}),e.jsx("span",{style:{marginTop:"0.5rem",fontSize:"0.875rem",color:"#4b5563"},children:"Fetching citations…"})]});if(s)return e.jsx("div",{style:{padding:"0.75rem 1rem",fontSize:"0.875rem",color:"#4b5563",backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"2px"},children:"We are having trouble fetching the citations."});const a=Object.values(o??{}).reduce((e,r)=>Math.max(e,r.length),0);return e.jsx("div",{style:{padding:"0.5rem 1rem",backgroundColor:"white"},children:e.jsx("div",{ref:d,style:{position:"relative",maxHeight:"500px",overflow:"auto",border:"1px solid #d1d5db",borderRadius:"2px",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)"},children:e.jsx("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:"0.875rem"},children:e.jsx("tbody",{children:Object.entries(o??{}).map(([r,o])=>{const n=Number(r),s=1===n,d=n===i,c=d&&!!l&&o.some(e=>e.toLowerCase().includes(l.toLowerCase()));return e.jsxs("tr",{"data-highlight":d?"true":"false",style:{transition:"background-color 0.2s",position:s?"sticky":"static",top:s?0:"auto",zIndex:s?9:"auto",fontWeight:s?"bold":"normal",backgroundColor:s?"white":"transparent",boxShadow:s?"0 1px 2px 0 rgba(0, 0, 0, 0.05)":"none"},children:[e.jsx("td",{style:{position:"sticky",left:0,zIndex:8,width:"3rem",textAlign:"center",border:"1px solid #e5e7eb",minWidth:"0.5rem",padding:"0 0.5rem",backgroundColor:n!==i||c?"#f1f5f9":"#fef08a"},children:s?null:n}),o.map((r,o)=>e.jsx("td",{style:{padding:"0.5rem 0.75rem",border:"1px solid #e5e7eb",color:"#374151",whiteSpace:"nowrap",backgroundColor:!c&&d?"#fef08a":"transparent"},children:l&&d&&c?t.highlightMatch(r,l):r},o)),o.length<a&&Array.from({length:a-o.length}).map((r,t)=>e.jsx("td",{style:{border:"1px solid #e5e7eb",backgroundColor:"rgba(249, 250, 251, 0.3)"}},`empty-${t}`))]},n)})})})})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("./utils/helper.js");exports.default=({data:o,highlightRow:i,loading:n,highlightText:l,isErrored:d})=>{const s=r.useRef(null);if(r.useEffect(()=>{if(!i||!l||n)return;const e=setTimeout(()=>{const e=s.current;if(!e)return;const r=e.querySelector('[data-highlight="true"]');r&&r.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},200);return()=>clearTimeout(e)},[i,l,n,o]),n)return e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.7)",backdropFilter:"blur(4px)"},children:[e.jsx("div",{style:{height:"2rem",width:"2rem",borderRadius:"9999px",border:"3px solid #d1d5db",borderTopColor:"#3b82f6",animation:"excel-citation-loader-spin 1s linear infinite"}}),e.jsx("span",{style:{marginTop:"0.5rem",fontSize:"0.875rem",color:"#4b5563"},children:"Fetching citations…"})]});if(d)return e.jsx("div",{style:{padding:"0.75rem 1rem",fontSize:"0.875rem",color:"#4b5563",backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"2px"},children:"We are having trouble fetching the citations."});const a=Object.values(o??{}).reduce((e,r)=>Math.max(e,r.length),0);return e.jsx("div",{style:{padding:"0.5rem 1rem",backgroundColor:"white"},children:e.jsx("div",{ref:s,style:{position:"relative",maxHeight:"500px",overflow:"auto",border:"1px solid #d1d5db",borderRadius:"2px",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)"},children:e.jsx("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:"0.875rem"},children:e.jsx("tbody",{children:Object.entries(o??{}).map(([r,o])=>{const n=Number(r),d=1===n,s=n===i,c=s&&!!l&&o.some(e=>e.toLowerCase().includes(l.toLowerCase()));return e.jsxs("tr",{"data-highlight":s?"true":"false",style:{transition:"background-color 0.2s",position:d?"sticky":"static",top:d?0:"auto",zIndex:d?9:"auto",fontWeight:d?"bold":"normal",backgroundColor:d?"white":"transparent",boxShadow:d?"0 1px 2px 0 rgba(0, 0, 0, 0.05)":"none"},children:[e.jsx("td",{style:{position:"sticky",left:0,zIndex:8,width:"3rem",textAlign:"center",border:"1px solid #e5e7eb",minWidth:"0.5rem",padding:"0 0.5rem",backgroundColor:n!==i||c?"#f1f5f9":"#fef08a"},children:d?null:n}),o.map((r,o)=>e.jsx("td",{style:{padding:"0.5rem 0.75rem",border:"1px solid #e5e7eb",color:"#374151",whiteSpace:"nowrap",backgroundColor:!c&&s?"#fef08a":"transparent"},children:l&&s&&c?t.highlightMatch(r,l):r},o)),o.length<a&&Array.from({length:a-o.length}).map((r,t)=>e.jsx("td",{style:{border:"1px solid #e5e7eb",backgroundColor:"rgba(249, 250, 251, 0.3)"}},`empty-${t}`))]},n)})})})})})};
2
2
  //# sourceMappingURL=ExcelCitations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExcelCitations.js","sources":["../../../../src/features/ExcelCitation/ExcelCitations.tsx"],"sourcesContent":["import React, { useEffect, useRef } from \"react\";\nimport { highlightMatch } from \"./utils/helper\";\nimport \"./css/excel-citation.css\";\n\nexport interface DataDict {\n [key: number]: string[];\n}\n\ninterface ExcelCitationProps {\n data: DataDict;\n highlightRow?: number;\n loading: boolean;\n isErrored: boolean;\n highlightText?: string | null;\n}\n\nconst ExcelCitation: React.FC<ExcelCitationProps> = ({\n data,\n highlightRow,\n loading,\n highlightText,\n isErrored,\n}) => {\n const containerRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (!highlightRow || !highlightText || loading) return;\n\n const timeout = setTimeout(() => {\n const container = containerRef.current;\n if (!container) return;\n\n const highlightedEl = container.querySelector(\n '[data-highlight=\"true\"]',\n ) as HTMLElement | null;\n\n if (highlightedEl) {\n highlightedEl.scrollIntoView({\n behavior: \"smooth\",\n block: \"center\",\n inline: \"center\",\n });\n }\n }, 200);\n\n return () => clearTimeout(timeout);\n }, [highlightRow, highlightText, loading, data]);\n\n // Loading State\n if (loading) {\n return (\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n backgroundColor: \"rgba(255, 255, 255, 0.7)\",\n backdropFilter: \"blur(4px)\",\n }}\n >\n <div\n style={{\n height: \"2rem\",\n width: \"2rem\",\n borderRadius: \"9999px\",\n border: \"3px solid #d1d5db\",\n borderTopColor: \"#3b82f6\",\n animation: \"excel-citation-loader-spin 1s linear infinite\",\n }}\n />\n\n <span\n style={{\n marginTop: \"0.5rem\",\n fontSize: \"0.875rem\",\n color: \"#4b5563\",\n }}\n >\n Fetching citations…\n </span>\n </div>\n );\n }\n\n // Error State\n if (isErrored) {\n return (\n <div\n style={{\n padding: \"0.75rem 1rem\",\n fontSize: \"0.875rem\",\n color: \"#4b5563\",\n backgroundColor: \"white\",\n border: \"1px solid #e5e7eb\",\n borderRadius: \"2px\",\n }}\n >\n We are having trouble fetching the citations.\n </div>\n );\n }\n\n const maxCols = Object.values(data ?? {}).reduce(\n (max, arr) => Math.max(max, arr.length),\n 0,\n );\n\n return (\n <div style={{ padding: \"0.5rem 1rem\", backgroundColor: \"white\" }}>\n <div\n ref={containerRef}\n style={{\n position: \"relative\",\n maxHeight: \"500px\",\n overflow: \"auto\",\n border: \"1px solid #d1d5db\",\n borderRadius: \"2px\",\n boxShadow: \"0 1px 2px 0 rgba(0, 0, 0, 0.05)\",\n }}\n >\n <table\n style={{\n width: \"100%\",\n borderCollapse: \"collapse\",\n fontSize: \"0.875rem\",\n }}\n >\n <tbody>\n {Object.entries(data ?? {}).map(([key, values]) => {\n const rowId = Number(key);\n const isHeaderRow = rowId === 1;\n const isHighlighted = rowId === highlightRow;\n const rowHasMatch =\n isHighlighted &&\n !!highlightText &&\n values.some((cell: string) =>\n cell.toLowerCase().includes(highlightText.toLowerCase()),\n );\n\n return (\n <tr\n key={rowId}\n data-highlight={isHighlighted ? \"true\" : \"false\"}\n style={{\n transition: \"background-color 0.2s\",\n position: isHeaderRow ? \"sticky\" : \"static\",\n top: isHeaderRow ? 0 : \"auto\",\n zIndex: isHeaderRow ? 9 : \"auto\",\n fontWeight: isHeaderRow ? \"bold\" : \"normal\",\n backgroundColor: isHeaderRow ? \"white\" : \"transparent\",\n boxShadow: isHeaderRow\n ? \"0 1px 2px 0 rgba(0, 0, 0, 0.05)\"\n : \"none\",\n }}\n >\n {/* Row Number Column */}\n <td\n style={{\n position: \"sticky\",\n left: 0,\n zIndex: 8,\n width: \"3rem\",\n textAlign: \"center\",\n border: \"1px solid #e5e7eb\",\n minWidth: \"0.5rem\",\n padding: \"0 0.5rem\",\n backgroundColor:\n rowId === highlightRow && !rowHasMatch\n ? \"#fef08a\"\n : \"#f1f5f9\",\n }}\n >\n {isHeaderRow ? null : rowId}\n </td>\n\n {/* Data Cells */}\n {values.map((cell: string, idx: number) => (\n <td\n key={idx}\n style={{\n padding: \"0.5rem 0.75rem\",\n border: \"1px solid #e5e7eb\",\n color: \"#374151\",\n whiteSpace: \"nowrap\",\n backgroundColor:\n !rowHasMatch && isHighlighted\n ? \"#fef08a\"\n : \"transparent\",\n }}\n >\n {!highlightText || !isHighlighted || !rowHasMatch\n ? cell\n : highlightMatch(cell, highlightText)}\n </td>\n ))}\n\n {/* Fill empty columns if row is shorter than max */}\n {values.length < maxCols &&\n Array.from({ length: maxCols - values.length }).map(\n (_, i) => (\n <td\n key={`empty-${i}`}\n style={{\n border: \"1px solid #e5e7eb\",\n backgroundColor: \"rgba(249, 250, 251, 0.3)\",\n }}\n />\n ),\n )}\n </tr>\n );\n })}\n </tbody>\n </table>\n </div>\n </div>\n );\n};\n\nexport default ExcelCitation;\n"],"names":["data","highlightRow","loading","highlightText","isErrored","containerRef","useRef","useEffect","timeout","setTimeout","container","current","highlightedEl","querySelector","scrollIntoView","behavior","block","inline","clearTimeout","jsxs","style","display","flexDirection","alignItems","justifyContent","backgroundColor","backdropFilter","children","jsx","height","width","borderRadius","border","borderTopColor","animation","marginTop","fontSize","color","padding","maxCols","Object","values","reduce","max","arr","Math","length","ref","position","maxHeight","overflow","boxShadow","borderCollapse","entries","map","key","rowId","Number","isHeaderRow","isHighlighted","rowHasMatch","some","cell","toLowerCase","includes","transition","top","zIndex","fontWeight","left","textAlign","minWidth","idx","whiteSpace","highlightMatch","Array","from","_","i"],"mappings":"gNAgBoD,EAClDA,OACAC,eACAC,UACAC,gBACAC,gBAEM,MAAAC,EAAeC,SAA8B,MA0BnD,GAxBAC,EAAAA,UAAU,KACR,IAAKN,IAAiBE,GAAiBD,EAAS,OAE1C,MAAAM,EAAUC,WAAW,KACzB,MAAMC,EAAYL,EAAaM,QAC/B,IAAKD,EAAW,OAEhB,MAAME,EAAgBF,EAAUG,cAC9B,2BAGED,GACFA,EAAcE,eAAe,CAC3BC,SAAU,SACVC,MAAO,SACPC,OAAQ,YAGX,KAEI,MAAA,IAAMC,aAAaV,IACzB,CAACP,EAAcE,EAAeD,EAASF,IAGtCE,EAEA,OAAAiB,EAAAA,KAAC,MAAA,CACCC,MAAO,CACLC,QAAS,OACTC,cAAe,SACfC,WAAY,SACZC,eAAgB,SAChBC,gBAAiB,2BACjBC,eAAgB,aAGlBC,SAAA,CAAAC,EAAAA,IAAC,MAAA,CACCR,MAAO,CACLS,OAAQ,OACRC,MAAO,OACPC,aAAc,SACdC,OAAQ,oBACRC,eAAgB,UAChBC,UAAW,mDAIfN,EAAAA,IAAC,OAAA,CACCR,MAAO,CACLe,UAAW,SACXC,SAAU,WACVC,MAAO,WAEVV,SAAA,2BAQP,GAAIvB,EAEA,OAAAwB,EAAAA,IAAC,MAAA,CACCR,MAAO,CACLkB,QAAS,eACTF,SAAU,WACVC,MAAO,UACPZ,gBAAiB,QACjBO,OAAQ,oBACRD,aAAc,OAEjBJ,SAAA,kDAML,MAAMY,EAAUC,OAAOC,OAAOzC,GAAQ,CAAA,GAAI0C,OACxC,CAACC,EAAKC,IAAQC,KAAKF,IAAIA,EAAKC,EAAIE,QAChC,GAIA,OAAAlB,MAAC,OAAIR,MAAO,CAAEkB,QAAS,cAAeb,gBAAiB,SACrDE,SAAAC,EAAAA,IAAC,MAAA,CACCmB,IAAK1C,EACLe,MAAO,CACL4B,SAAU,WACVC,UAAW,QACXC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FlD,EAAAA,IAAC,KAAA,CAECR,MAAO,CACLY,OAAQ,oBACRP,gBAAiB,6BAHd,SAASqD,QA5DjBtB"}
1
+ {"version":3,"file":"ExcelCitations.js","sources":["../../../../src/features/ExcelCitation/ExcelCitations.tsx"],"sourcesContent":["import React, { useEffect, useRef } from \"react\";\nimport { highlightMatch } from \"./utils/helper\";\nimport \"./css/excel-citation.css\";\n\nexport interface DataDict {\n [key: number]: string[];\n}\n\ninterface ExcelCitationProps {\n data: DataDict;\n highlightRow?: number;\n loading: boolean;\n isErrored: boolean;\n highlightText?: string | null;\n}\n\nconst ExcelCitation: React.FC<ExcelCitationProps> = ({\n data,\n highlightRow,\n loading,\n highlightText,\n isErrored,\n}) => {\n const containerRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (!highlightRow || !highlightText || loading) return;\n\n const timeout = setTimeout(() => {\n const container = containerRef.current;\n if (!container) return;\n\n const highlightedEl = container.querySelector(\n '[data-highlight=\"true\"]',\n ) as HTMLElement | null;\n\n if (highlightedEl) {\n highlightedEl.scrollIntoView({\n behavior: \"smooth\",\n block: \"center\",\n inline: \"center\",\n });\n }\n }, 200);\n\n return () => clearTimeout(timeout);\n }, [highlightRow, highlightText, loading, data]);\n\n // Loading State\n if (loading) {\n return (\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n backgroundColor: \"rgba(255, 255, 255, 0.7)\",\n backdropFilter: \"blur(4px)\",\n }}\n >\n <div\n style={{\n height: \"2rem\",\n width: \"2rem\",\n borderRadius: \"9999px\",\n border: \"3px solid #d1d5db\",\n borderTopColor: \"#3b82f6\",\n animation: \"excel-citation-loader-spin 1s linear infinite\",\n }}\n />\n\n <span\n style={{\n marginTop: \"0.5rem\",\n fontSize: \"0.875rem\",\n color: \"#4b5563\",\n }}\n >\n Fetching citations…\n </span>\n </div>\n );\n }\n\n // Error State\n if (isErrored) {\n return (\n <div\n style={{\n padding: \"0.75rem 1rem\",\n fontSize: \"0.875rem\",\n color: \"#4b5563\",\n backgroundColor: \"white\",\n border: \"1px solid #e5e7eb\",\n borderRadius: \"2px\",\n }}\n >\n We are having trouble fetching the citations.\n </div>\n );\n }\n\n const maxCols = Object.values(data ?? {}).reduce(\n (max, arr) => Math.max(max, arr.length),\n 0,\n );\n\n return (\n <div style={{ padding: \"0.5rem 1rem\", backgroundColor: \"white\" }}>\n <div\n ref={containerRef}\n style={{\n position: \"relative\",\n maxHeight: \"500px\",\n overflow: \"auto\",\n border: \"1px solid #d1d5db\",\n borderRadius: \"2px\",\n boxShadow: \"0 1px 2px 0 rgba(0, 0, 0, 0.05)\",\n }}\n >\n <table\n style={{\n width: \"100%\",\n borderCollapse: \"collapse\",\n fontSize: \"0.875rem\",\n }}\n >\n <tbody>\n {Object.entries(data ?? {}).map(([key, values]) => {\n const rowId = Number(key);\n const isHeaderRow = rowId === 1;\n const isHighlighted = rowId === highlightRow;\n const rowHasMatch =\n isHighlighted &&\n !!highlightText &&\n values.some((cell: string) =>\n cell.toLowerCase().includes(highlightText.toLowerCase()),\n );\n\n return (\n <tr\n key={rowId}\n data-highlight={isHighlighted ? \"true\" : \"false\"}\n style={{\n transition: \"background-color 0.2s\",\n position: isHeaderRow ? \"sticky\" : \"static\",\n top: isHeaderRow ? 0 : \"auto\",\n zIndex: isHeaderRow ? 9 : \"auto\",\n fontWeight: isHeaderRow ? \"bold\" : \"normal\",\n backgroundColor: isHeaderRow ? \"white\" : \"transparent\",\n boxShadow: isHeaderRow\n ? \"0 1px 2px 0 rgba(0, 0, 0, 0.05)\"\n : \"none\",\n }}\n >\n {/* Row Number Column */}\n <td\n style={{\n position: \"sticky\",\n left: 0,\n zIndex: 8,\n width: \"3rem\",\n textAlign: \"center\",\n border: \"1px solid #e5e7eb\",\n minWidth: \"0.5rem\",\n padding: \"0 0.5rem\",\n backgroundColor:\n rowId === highlightRow && !rowHasMatch\n ? \"#fef08a\"\n : \"#f1f5f9\",\n }}\n >\n {isHeaderRow ? null : rowId}\n </td>\n\n {/* Data Cells */}\n {values.map((cell: string, idx: number) => (\n <td\n key={idx}\n style={{\n padding: \"0.5rem 0.75rem\",\n border: \"1px solid #e5e7eb\",\n color: \"#374151\",\n whiteSpace: \"nowrap\",\n backgroundColor:\n !rowHasMatch && isHighlighted\n ? \"#fef08a\"\n : \"transparent\",\n }}\n >\n {!highlightText || !isHighlighted || !rowHasMatch\n ? cell\n : highlightMatch(cell, highlightText)}\n </td>\n ))}\n\n {/* Fill empty columns if row is shorter than max */}\n {values.length < maxCols &&\n Array.from({ length: maxCols - values.length }).map(\n (_, i) => (\n <td\n key={`empty-${i}`}\n style={{\n border: \"1px solid #e5e7eb\",\n backgroundColor: \"rgba(249, 250, 251, 0.3)\",\n }}\n />\n ),\n )}\n </tr>\n );\n })}\n </tbody>\n </table>\n </div>\n </div>\n );\n};\n\nexport default ExcelCitation;\n"],"names":["data","highlightRow","loading","highlightText","isErrored","containerRef","useRef","useEffect","timeout","setTimeout","container","current","highlightedEl","querySelector","scrollIntoView","behavior","block","inline","clearTimeout","jsxs","style","display","flexDirection","alignItems","justifyContent","backgroundColor","backdropFilter","children","jsx","height","width","borderRadius","border","borderTopColor","animation","marginTop","fontSize","color","padding","maxCols","Object","values","reduce","max","arr","Math","length","ref","position","maxHeight","overflow","boxShadow","borderCollapse","entries","map","key","rowId","Number","isHeaderRow","isHighlighted","rowHasMatch","some","cell","toLowerCase","includes","transition","top","zIndex","fontWeight","left","textAlign","minWidth","idx","whiteSpace","highlightMatch","Array","from","_","i"],"mappings":"yKAgBoD,EAClDA,OACAC,eACAC,UACAC,gBACAC,gBAEM,MAAAC,EAAeC,SAA8B,MA0BnD,GAxBAC,EAAAA,UAAU,KACR,IAAKN,IAAiBE,GAAiBD,EAAS,OAE1C,MAAAM,EAAUC,WAAW,KACzB,MAAMC,EAAYL,EAAaM,QAC/B,IAAKD,EAAW,OAEhB,MAAME,EAAgBF,EAAUG,cAC9B,2BAGED,GACFA,EAAcE,eAA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