@e-llm-studio/requirement-ai 0.0.47 → 0.0.48

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 (375) hide show
  1. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  4. package/dist/index.js +1 -1
  5. package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +0 -14
  6. package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +1 -1
  7. package/dist/types/src/index.d.ts +0 -1
  8. package/dist/types/src/index.d.ts.map +1 -1
  9. package/package.json +6 -3
  10. package/dist/assests/svg/chevronDownArrow.svg.js +0 -2
  11. package/dist/assests/svg/chevronDownArrow.svg.js.map +0 -1
  12. package/dist/assests/svg/chevronUp.svg.js +0 -2
  13. package/dist/assests/svg/chevronUp.svg.js.map +0 -1
  14. package/dist/cjs/assests/svg/chevronDownArrow.svg.js +0 -2
  15. package/dist/cjs/assests/svg/chevronDownArrow.svg.js.map +0 -1
  16. package/dist/cjs/assests/svg/chevronUp.svg.js +0 -2
  17. package/dist/cjs/assests/svg/chevronUp.svg.js.map +0 -1
  18. package/dist/cjs/constants/diagnosticStylesBySeverity.js +0 -2
  19. package/dist/cjs/constants/diagnosticStylesBySeverity.js.map +0 -1
  20. package/dist/cjs/features/CodeCitation/CodeCitation.js +0 -2
  21. package/dist/cjs/features/CodeCitation/CodeCitation.js.map +0 -1
  22. package/dist/cjs/features/CodeCitation/CodeCitation.module.css.js +0 -2
  23. package/dist/cjs/features/CodeCitation/CodeCitation.module.css.js.map +0 -1
  24. package/dist/cjs/features/CodeCitation/_components/Accordian.js +0 -2
  25. package/dist/cjs/features/CodeCitation/_components/Accordian.js.map +0 -1
  26. package/dist/cjs/features/CodeCitation/_components/CodeCitationPopup.js +0 -2
  27. package/dist/cjs/features/CodeCitation/_components/CodeCitationPopup.js.map +0 -1
  28. package/dist/cjs/features/CodeCitation/_components/CodeCitationsStats.js +0 -2
  29. package/dist/cjs/features/CodeCitation/_components/CodeCitationsStats.js.map +0 -1
  30. package/dist/cjs/features/CodeCitation/_components/CodeEditor.js +0 -2
  31. package/dist/cjs/features/CodeCitation/_components/CodeEditor.js.map +0 -1
  32. package/dist/cjs/features/CodeCitation/_components/DescriptionWithToggle.js +0 -2
  33. package/dist/cjs/features/CodeCitation/_components/DescriptionWithToggle.js.map +0 -1
  34. package/dist/cjs/features/CodeCitation/_components/HighlightedCodeDetails.js +0 -2
  35. package/dist/cjs/features/CodeCitation/_components/HighlightedCodeDetails.js.map +0 -1
  36. package/dist/cjs/features/CodeCitation/_components/Spinner.js +0 -2
  37. package/dist/cjs/features/CodeCitation/_components/Spinner.js.map +0 -1
  38. package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js +0 -2
  39. package/dist/cjs/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map +0 -1
  40. package/dist/cjs/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js +0 -2
  41. package/dist/cjs/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js.map +0 -1
  42. package/dist/cjs/features/CodeCitation/_components/StatsComponents/StatsComponent.js +0 -2
  43. package/dist/cjs/features/CodeCitation/_components/StatsComponents/StatsComponent.js.map +0 -1
  44. package/dist/cjs/features/CodeCitation/_components/ThemeToggle.js +0 -2
  45. package/dist/cjs/features/CodeCitation/_components/ThemeToggle.js.map +0 -1
  46. package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js +0 -2
  47. package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js.map +0 -1
  48. package/dist/cjs/utils/codeCitations.utils.js +0 -2
  49. package/dist/cjs/utils/codeCitations.utils.js.map +0 -1
  50. package/dist/cjs/utils/themeManager.js +0 -2
  51. package/dist/cjs/utils/themeManager.js.map +0 -1
  52. package/dist/constants/diagnosticStylesBySeverity.js +0 -2
  53. package/dist/constants/diagnosticStylesBySeverity.js.map +0 -1
  54. package/dist/features/CodeCitation/CodeCitation.js +0 -2
  55. package/dist/features/CodeCitation/CodeCitation.js.map +0 -1
  56. package/dist/features/CodeCitation/CodeCitation.module.css.js +0 -2
  57. package/dist/features/CodeCitation/CodeCitation.module.css.js.map +0 -1
  58. package/dist/features/CodeCitation/_components/Accordian.js +0 -2
  59. package/dist/features/CodeCitation/_components/Accordian.js.map +0 -1
  60. package/dist/features/CodeCitation/_components/CodeCitationPopup.js +0 -2
  61. package/dist/features/CodeCitation/_components/CodeCitationPopup.js.map +0 -1
  62. package/dist/features/CodeCitation/_components/CodeCitationsStats.js +0 -2
  63. package/dist/features/CodeCitation/_components/CodeCitationsStats.js.map +0 -1
  64. package/dist/features/CodeCitation/_components/CodeEditor.js +0 -2
  65. package/dist/features/CodeCitation/_components/CodeEditor.js.map +0 -1
  66. package/dist/features/CodeCitation/_components/DescriptionWithToggle.js +0 -2
  67. package/dist/features/CodeCitation/_components/DescriptionWithToggle.js.map +0 -1
  68. package/dist/features/CodeCitation/_components/HighlightedCodeDetails.js +0 -2
  69. package/dist/features/CodeCitation/_components/HighlightedCodeDetails.js.map +0 -1
  70. package/dist/features/CodeCitation/_components/Spinner.js +0 -2
  71. package/dist/features/CodeCitation/_components/Spinner.js.map +0 -1
  72. package/dist/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js +0 -2
  73. package/dist/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.js.map +0 -1
  74. package/dist/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js +0 -2
  75. package/dist/features/CodeCitation/_components/StatsComponents/DbStatsComponent.js.map +0 -1
  76. package/dist/features/CodeCitation/_components/StatsComponents/StatsComponent.js +0 -2
  77. package/dist/features/CodeCitation/_components/StatsComponents/StatsComponent.js.map +0 -1
  78. package/dist/features/CodeCitation/_components/ThemeToggle.js +0 -2
  79. package/dist/features/CodeCitation/_components/ThemeToggle.js.map +0 -1
  80. package/dist/features/ScannedDocCitation/ScannedDocCitation.js +0 -2
  81. package/dist/features/ScannedDocCitation/ScannedDocCitation.js.map +0 -1
  82. package/dist/types/src/AccordianHeadTest.d.ts +0 -2
  83. package/dist/types/src/AccordianHeadTest.d.ts.map +0 -1
  84. package/dist/types/src/BookCitationTest.d.ts +0 -3
  85. package/dist/types/src/BookCitationTest.d.ts.map +0 -1
  86. package/dist/types/src/BookemonTest.d.ts +0 -83
  87. package/dist/types/src/BookemonTest.d.ts.map +0 -1
  88. package/dist/types/src/ChatCitationTest.d.ts +0 -7
  89. package/dist/types/src/ChatCitationTest.d.ts.map +0 -1
  90. package/dist/types/src/CodeCitationTest.d.ts +0 -3
  91. package/dist/types/src/CodeCitationTest.d.ts.map +0 -1
  92. package/dist/types/src/DatagestMonTest.d.ts +0 -3
  93. package/dist/types/src/DatagestMonTest.d.ts.map +0 -1
  94. package/dist/types/src/DbCodeCitationTest.d.ts +0 -3
  95. package/dist/types/src/DbCodeCitationTest.d.ts.map +0 -1
  96. package/dist/types/src/ExcelCitationTest.d.ts +0 -2
  97. package/dist/types/src/ExcelCitationTest.d.ts.map +0 -1
  98. package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts +0 -3
  99. package/dist/types/src/PaginatedTableTest/PaginatedTableTest.d.ts.map +0 -1
  100. package/dist/types/src/PaginatedTableTest/useFetchData.d.ts +0 -15
  101. package/dist/types/src/PaginatedTableTest/useFetchData.d.ts.map +0 -1
  102. package/dist/types/src/PdfViewerTest.d.ts +0 -3
  103. package/dist/types/src/PdfViewerTest.d.ts.map +0 -1
  104. package/dist/types/src/ProjectAccordianTest.d.ts +0 -3
  105. package/dist/types/src/ProjectAccordianTest.d.ts.map +0 -1
  106. package/dist/types/src/RequirementAICitationTest.d.ts +0 -3
  107. package/dist/types/src/RequirementAICitationTest.d.ts.map +0 -1
  108. package/dist/types/src/ScannedDocCitationTest.d.ts +0 -2
  109. package/dist/types/src/ScannedDocCitationTest.d.ts.map +0 -1
  110. package/dist/types/src/TableCitationTest.d.ts +0 -3
  111. package/dist/types/src/TableCitationTest.d.ts.map +0 -1
  112. package/dist/types/src/context/DataSelectedContext.d.ts +0 -73
  113. package/dist/types/src/context/DataSelectedContext.d.ts.map +0 -1
  114. package/dist/types/src/features/BookCitation/BookCitation.d.ts +0 -41
  115. package/dist/types/src/features/BookCitation/BookCitation.d.ts.map +0 -1
  116. package/dist/types/src/features/BookCitation/text-cleaner.d.ts +0 -2
  117. package/dist/types/src/features/BookCitation/text-cleaner.d.ts.map +0 -1
  118. package/dist/types/src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts +0 -21
  119. package/dist/types/src/features/Bookemon/BookCopyrightsCard/BookCopyrightsCard.d.ts.map +0 -1
  120. package/dist/types/src/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts +0 -13
  121. package/dist/types/src/features/Bookemon/BookDetailsCard/BookDetailsCard.d.ts.map +0 -1
  122. package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts +0 -52
  123. package/dist/types/src/features/Bookemon/BookElementsCard/BookElementsCard.d.ts.map +0 -1
  124. package/dist/types/src/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts +0 -20
  125. package/dist/types/src/features/Bookemon/BookOverviewCard/BookOverviewCard.d.ts.map +0 -1
  126. package/dist/types/src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts +0 -35
  127. package/dist/types/src/features/Bookemon/BookPeopleAwardsCard/BookPeopleAwardsCard.d.ts.map +0 -1
  128. package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts +0 -51
  129. package/dist/types/src/features/Bookemon/BookPreview/BookPreview.d.ts.map +0 -1
  130. package/dist/types/src/features/Bookemon/Bookemon.d.ts +0 -9
  131. package/dist/types/src/features/Bookemon/Bookemon.d.ts.map +0 -1
  132. package/dist/types/src/features/Bookemon/BookemonCitationLayer.d.ts +0 -7
  133. package/dist/types/src/features/Bookemon/BookemonCitationLayer.d.ts.map +0 -1
  134. package/dist/types/src/features/Bookemon/BookemonContent.d.ts +0 -3
  135. package/dist/types/src/features/Bookemon/BookemonContent.d.ts.map +0 -1
  136. package/dist/types/src/features/Bookemon/types/citation.types.d.ts +0 -65
  137. package/dist/types/src/features/Bookemon/types/citation.types.d.ts.map +0 -1
  138. package/dist/types/src/features/Bookemon/utils/highlight.d.ts +0 -7
  139. package/dist/types/src/features/Bookemon/utils/highlight.d.ts.map +0 -1
  140. package/dist/types/src/features/ChatCitation/BigQueryTable.d.ts +0 -8
  141. package/dist/types/src/features/ChatCitation/BigQueryTable.d.ts.map +0 -1
  142. package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts +0 -26
  143. package/dist/types/src/features/ChatCitation/ChatCitationRenderer.d.ts.map +0 -1
  144. package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts +0 -13
  145. package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts.map +0 -1
  146. package/dist/types/src/features/ChatCitation/assets/collapse.d.ts +0 -3
  147. package/dist/types/src/features/ChatCitation/assets/collapse.d.ts.map +0 -1
  148. package/dist/types/src/features/ChatCitation/components/AssistantChatItem.d.ts +0 -8
  149. package/dist/types/src/features/ChatCitation/components/AssistantChatItem.d.ts.map +0 -1
  150. package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts +0 -15
  151. package/dist/types/src/features/ChatCitation/components/ChatCitation.d.ts.map +0 -1
  152. package/dist/types/src/features/ChatCitation/components/Chip.d.ts +0 -8
  153. package/dist/types/src/features/ChatCitation/components/Chip.d.ts.map +0 -1
  154. package/dist/types/src/features/ChatCitation/components/DetailedView.d.ts +0 -10
  155. package/dist/types/src/features/ChatCitation/components/DetailedView.d.ts.map +0 -1
  156. package/dist/types/src/features/ChatCitation/components/IconContainer.d.ts +0 -8
  157. package/dist/types/src/features/ChatCitation/components/IconContainer.d.ts.map +0 -1
  158. package/dist/types/src/features/ChatCitation/components/InViewNavigation.d.ts +0 -11
  159. package/dist/types/src/features/ChatCitation/components/InViewNavigation.d.ts.map +0 -1
  160. package/dist/types/src/features/ChatCitation/components/MarkdownRenderer.d.ts +0 -10
  161. package/dist/types/src/features/ChatCitation/components/MarkdownRenderer.d.ts.map +0 -1
  162. package/dist/types/src/features/ChatCitation/components/RuleBook.d.ts +0 -9
  163. package/dist/types/src/features/ChatCitation/components/RuleBook.d.ts.map +0 -1
  164. package/dist/types/src/features/ChatCitation/components/SummarizedView.d.ts +0 -19
  165. package/dist/types/src/features/ChatCitation/components/SummarizedView.d.ts.map +0 -1
  166. package/dist/types/src/features/ChatCitation/components/UserChatItem.d.ts +0 -8
  167. package/dist/types/src/features/ChatCitation/components/UserChatItem.d.ts.map +0 -1
  168. package/dist/types/src/features/ChatCitation/components/UserInitialsAsAvatar.d.ts +0 -11
  169. package/dist/types/src/features/ChatCitation/components/UserInitialsAsAvatar.d.ts.map +0 -1
  170. package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts +0 -10
  171. package/dist/types/src/features/ChatCitation/components/wrappers/Modal.d.ts.map +0 -1
  172. package/dist/types/src/features/ChatCitation/constants/icons.d.ts +0 -9
  173. package/dist/types/src/features/ChatCitation/constants/icons.d.ts.map +0 -1
  174. package/dist/types/src/features/ChatCitation/constants/renderer.d.ts +0 -7
  175. package/dist/types/src/features/ChatCitation/constants/renderer.d.ts.map +0 -1
  176. package/dist/types/src/features/ChatCitation/types/citations.types.d.ts +0 -111
  177. package/dist/types/src/features/ChatCitation/types/citations.types.d.ts.map +0 -1
  178. package/dist/types/src/features/ChatCitation/utils/helpers.d.ts +0 -16
  179. package/dist/types/src/features/ChatCitation/utils/helpers.d.ts.map +0 -1
  180. package/dist/types/src/features/CitationViewer/CitationsViewer.d.ts +0 -5
  181. package/dist/types/src/features/CitationViewer/CitationsViewer.d.ts.map +0 -1
  182. package/dist/types/src/features/CitationViewer/components/AudioPlayer.d.ts +0 -8
  183. package/dist/types/src/features/CitationViewer/components/AudioPlayer.d.ts.map +0 -1
  184. package/dist/types/src/features/CitationViewer/components/AudioWaveform.d.ts +0 -17
  185. package/dist/types/src/features/CitationViewer/components/AudioWaveform.d.ts.map +0 -1
  186. package/dist/types/src/features/CitationViewer/components/ChatHistory.d.ts +0 -8
  187. package/dist/types/src/features/CitationViewer/components/ChatHistory.d.ts.map +0 -1
  188. package/dist/types/src/features/CitationViewer/components/Header.d.ts +0 -12
  189. package/dist/types/src/features/CitationViewer/components/Header.d.ts.map +0 -1
  190. package/dist/types/src/features/CitationViewer/components/KeyTakeaways.d.ts +0 -8
  191. package/dist/types/src/features/CitationViewer/components/KeyTakeaways.d.ts.map +0 -1
  192. package/dist/types/src/features/CitationViewer/components/Transcript.d.ts +0 -10
  193. package/dist/types/src/features/CitationViewer/components/Transcript.d.ts.map +0 -1
  194. package/dist/types/src/features/CitationViewer/config/apiConfig.d.ts +0 -3
  195. package/dist/types/src/features/CitationViewer/config/apiConfig.d.ts.map +0 -1
  196. package/dist/types/src/features/CitationViewer/hooks/getSignedUrl.d.ts +0 -2
  197. package/dist/types/src/features/CitationViewer/hooks/getSignedUrl.d.ts.map +0 -1
  198. package/dist/types/src/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts +0 -2
  199. package/dist/types/src/features/CitationViewer/hooks/useResolvedAudioUrl.d.ts.map +0 -1
  200. package/dist/types/src/features/CitationViewer/types/artifact.d.ts +0 -59
  201. package/dist/types/src/features/CitationViewer/types/artifact.d.ts.map +0 -1
  202. package/dist/types/src/features/CodeCitation/CodeCitation.d.ts +0 -49
  203. package/dist/types/src/features/CodeCitation/CodeCitation.d.ts.map +0 -1
  204. package/dist/types/src/features/CodeCitation/_components/Accordian.d.ts +0 -10
  205. package/dist/types/src/features/CodeCitation/_components/Accordian.d.ts.map +0 -1
  206. package/dist/types/src/features/CodeCitation/_components/CodeCitationPopup.d.ts +0 -31
  207. package/dist/types/src/features/CodeCitation/_components/CodeCitationPopup.d.ts.map +0 -1
  208. package/dist/types/src/features/CodeCitation/_components/CodeCitationsStats.d.ts +0 -13
  209. package/dist/types/src/features/CodeCitation/_components/CodeCitationsStats.d.ts.map +0 -1
  210. package/dist/types/src/features/CodeCitation/_components/CodeEditor.d.ts +0 -30
  211. package/dist/types/src/features/CodeCitation/_components/CodeEditor.d.ts.map +0 -1
  212. package/dist/types/src/features/CodeCitation/_components/DescriptionWithToggle.d.ts +0 -6
  213. package/dist/types/src/features/CodeCitation/_components/DescriptionWithToggle.d.ts.map +0 -1
  214. package/dist/types/src/features/CodeCitation/_components/HighlightedCodeDetails.d.ts +0 -16
  215. package/dist/types/src/features/CodeCitation/_components/HighlightedCodeDetails.d.ts.map +0 -1
  216. package/dist/types/src/features/CodeCitation/_components/Spinner.d.ts +0 -4
  217. package/dist/types/src/features/CodeCitation/_components/Spinner.d.ts.map +0 -1
  218. package/dist/types/src/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts +0 -12
  219. package/dist/types/src/features/CodeCitation/_components/StatsComponents/CodebaseStatsComponent.d.ts.map +0 -1
  220. package/dist/types/src/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts +0 -10
  221. package/dist/types/src/features/CodeCitation/_components/StatsComponents/DbStatsComponent.d.ts.map +0 -1
  222. package/dist/types/src/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts +0 -13
  223. package/dist/types/src/features/CodeCitation/_components/StatsComponents/StatsComponent.d.ts.map +0 -1
  224. package/dist/types/src/features/CodeCitation/_components/ThemeToggle.d.ts +0 -12
  225. package/dist/types/src/features/CodeCitation/_components/ThemeToggle.d.ts.map +0 -1
  226. package/dist/types/src/features/CodeCitation/_components/TooltipComponent.d.ts +0 -8
  227. package/dist/types/src/features/CodeCitation/_components/TooltipComponent.d.ts.map +0 -1
  228. package/dist/types/src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts +0 -42
  229. package/dist/types/src/features/CognitiveDecisioning/CognitiveDecisioningWrapper.d.ts.map +0 -1
  230. package/dist/types/src/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts +0 -8
  231. package/dist/types/src/features/CognitiveDecisioning/FaqCitation/FaqCitation.d.ts.map +0 -1
  232. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/DecisioningIcon.d.ts +0 -7
  233. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/DecisioningIcon.d.ts.map +0 -1
  234. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts +0 -7
  235. package/dist/types/src/features/CognitiveDecisioning/shared/Audacy/GapIcon.d.ts.map +0 -1
  236. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts +0 -23
  237. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +0 -1
  238. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts +0 -3
  239. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts.map +0 -1
  240. package/dist/types/src/features/DataSelector/DataSelector.d.ts +0 -18
  241. package/dist/types/src/features/DataSelector/DataSelector.d.ts.map +0 -1
  242. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +0 -3
  243. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +0 -1
  244. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +0 -3
  245. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +0 -1
  246. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +0 -3
  247. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +0 -1
  248. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts +0 -3
  249. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +0 -1
  250. package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +0 -3
  251. package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +0 -1
  252. package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts +0 -13
  253. package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +0 -1
  254. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts +0 -3
  255. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts.map +0 -1
  256. package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +0 -11
  257. package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +0 -1
  258. package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts +0 -7
  259. package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts.map +0 -1
  260. package/dist/types/src/features/DataSelector/tables/ShowSelectedDataTable.d.ts +0 -4
  261. package/dist/types/src/features/DataSelector/tables/ShowSelectedDataTable.d.ts.map +0 -1
  262. package/dist/types/src/features/DatagestMon/DatagestMon.d.ts +0 -21
  263. package/dist/types/src/features/DatagestMon/DatagestMon.d.ts.map +0 -1
  264. package/dist/types/src/features/DatagestMon/DynamicDataPreviiewer/DynamicDataPreviewer.d.ts +0 -19
  265. package/dist/types/src/features/DatagestMon/DynamicDataPreviiewer/DynamicDataPreviewer.d.ts.map +0 -1
  266. package/dist/types/src/features/DatagestMon/EpubPreviewer/EpubPreview.d.ts +0 -7
  267. package/dist/types/src/features/DatagestMon/EpubPreviewer/EpubPreview.d.ts.map +0 -1
  268. package/dist/types/src/features/ExcelCitation/ExcelCitations.d.ts +0 -15
  269. package/dist/types/src/features/ExcelCitation/ExcelCitations.d.ts.map +0 -1
  270. package/dist/types/src/features/ExcelCitation/utils/helper.d.ts +0 -2
  271. package/dist/types/src/features/ExcelCitation/utils/helper.d.ts.map +0 -1
  272. package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts +0 -27
  273. package/dist/types/src/features/PaginatedTable/PaginatedTable.d.ts.map +0 -1
  274. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitation.d.ts +0 -19
  275. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitation.d.ts.map +0 -1
  276. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitationTest/PdfEditorCitationTest.d.ts +0 -2
  277. package/dist/types/src/features/PdfEditorCitation/PdfEditorCitationTest/PdfEditorCitationTest.d.ts.map +0 -1
  278. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts +0 -11
  279. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts.map +0 -1
  280. package/dist/types/src/features/PdfViewer/PdfStyle.d.ts +0 -33
  281. package/dist/types/src/features/PdfViewer/PdfStyle.d.ts.map +0 -1
  282. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts +0 -18
  283. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +0 -1
  284. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +0 -40
  285. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +0 -1
  286. package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts +0 -21
  287. package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts.map +0 -1
  288. package/dist/types/src/features/ProjectAccordion/ProjectAccordion.d.ts +0 -24
  289. package/dist/types/src/features/ProjectAccordion/ProjectAccordion.d.ts.map +0 -1
  290. package/dist/types/src/features/ProjectAccordion/_components/Markdown.d.ts +0 -5
  291. package/dist/types/src/features/ProjectAccordion/_components/Markdown.d.ts.map +0 -1
  292. package/dist/types/src/features/ProjectAccordion/index.d.ts +0 -2
  293. package/dist/types/src/features/ProjectAccordion/index.d.ts.map +0 -1
  294. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts +0 -7
  295. package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/ChatCitationTestForAiReasoning.d.ts.map +0 -1
  296. package/dist/types/src/features/ReviewPanel/ReviewPanel.d.ts +0 -52
  297. package/dist/types/src/features/ReviewPanel/ReviewPanel.d.ts.map +0 -1
  298. package/dist/types/src/features/ReviewPanel/ReviewPanelTest/ReviewPanelTest.d.ts +0 -4
  299. package/dist/types/src/features/ReviewPanel/ReviewPanelTest/ReviewPanelTest.d.ts.map +0 -1
  300. package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts +0 -24
  301. package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts.map +0 -1
  302. package/dist/types/src/features/TableCitation/TableCitationContent.d.ts +0 -14
  303. package/dist/types/src/features/TableCitation/TableCitationContent.d.ts.map +0 -1
  304. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts +0 -3
  305. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts.map +0 -1
  306. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts +0 -3
  307. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts.map +0 -1
  308. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts +0 -3
  309. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts.map +0 -1
  310. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts +0 -3
  311. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts.map +0 -1
  312. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +0 -14
  313. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +0 -1
  314. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts +0 -3
  315. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts.map +0 -1
  316. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +0 -13
  317. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +0 -1
  318. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts +0 -3
  319. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts.map +0 -1
  320. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts +0 -21
  321. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts.map +0 -1
  322. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts +0 -33
  323. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/FilterHandlerUtility.d.ts.map +0 -1
  324. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts +0 -19
  325. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts.map +0 -1
  326. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts +0 -8
  327. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts.map +0 -1
  328. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts +0 -17
  329. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts.map +0 -1
  330. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts +0 -26
  331. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts.map +0 -1
  332. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts +0 -11
  333. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts.map +0 -1
  334. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts +0 -3
  335. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/RELFInterfaces.d.ts.map +0 -1
  336. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts +0 -3
  337. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts.map +0 -1
  338. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts +0 -3
  339. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts.map +0 -1
  340. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts +0 -1108
  341. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/collections.d.ts.map +0 -1
  342. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts +0 -57
  343. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/common.d.ts.map +0 -1
  344. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts +0 -643
  345. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/data.d.ts.map +0 -1
  346. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts +0 -24
  347. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/modelGroup.type.d.ts.map +0 -1
  348. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts +0 -283
  349. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/models.d.ts.map +0 -1
  350. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts +0 -58
  351. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/projects.d.ts.map +0 -1
  352. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts +0 -20
  353. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/interfaces/tags.d.ts.map +0 -1
  354. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts +0 -3
  355. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts.map +0 -1
  356. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts +0 -3
  357. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts.map +0 -1
  358. package/dist/types/src/features/UploadData/NotFound.d.ts +0 -4
  359. package/dist/types/src/features/UploadData/NotFound.d.ts.map +0 -1
  360. package/dist/types/src/features/UploadData/main.d.ts +0 -10
  361. package/dist/types/src/features/UploadData/main.d.ts.map +0 -1
  362. package/dist/types/src/methodsToExpose.d.ts +0 -13
  363. package/dist/types/src/methodsToExpose.d.ts.map +0 -1
  364. package/dist/types/src/routes/Routes.d.ts +0 -2
  365. package/dist/types/src/routes/Routes.d.ts.map +0 -1
  366. package/dist/types/src/service/DataService.d.ts +0 -73
  367. package/dist/types/src/service/DataService.d.ts.map +0 -1
  368. package/dist/types/src/service/ModelService.d.ts +0 -68
  369. package/dist/types/src/service/ModelService.d.ts.map +0 -1
  370. package/dist/types/src/service/ProjectService.d.ts +0 -16
  371. package/dist/types/src/service/ProjectService.d.ts.map +0 -1
  372. package/dist/utils/codeCitations.utils.js +0 -2
  373. package/dist/utils/codeCitations.utils.js.map +0 -1
  374. package/dist/utils/themeManager.js +0 -2
  375. package/dist/utils/themeManager.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("./CodeLinkHandler.module.css.js"),t=require("lucide-react"),a=require("../../../../../CodeCitation/CodeCitation.js"),o=require("../types.js");exports.default=function(r){var l,s,d=r.href,c=r.children,u=r.codeLinkConfig,f=r.isHighlighted,h=void 0!==f&&f,p=r.highlightTheme,m=void 0===p?o.DEFAULT_HIGHLIGHT_THEME:p,C=r.customLinkStyles,g=r.customIcon;if(!d)return n.jsx("span",{children:c});var v,x,b=function(e){try{var n=new URL(e,"http://example.com"),i=n.searchParams.get("startLine"),t=n.searchParams.get("endLine"),a=n.searchParams.get("validation");n.searchParams.delete("startLine"),n.searchParams.delete("endLine"),n.searchParams.delete("validation");var o=n.pathname+n.search;return{filePath:decodeURIComponent(o.replace(/^\//,"")),fullPath:decodeURIComponent(e),startLine:i,endLine:t,validation:a}}catch(n){return{filePath:e,fullPath:e,startLine:null,endLine:null,validation:null}}}(d),k="string"==typeof c?c.split("\n").length>1?"Generated Code":c:(null===(l=null==c?void 0:c.props)||void 0===l?void 0:l.children)||d||"Generated Code";if("vscode"===(null==u?void 0:u.mode)){var L=h?{backgroundColor:m.linkBackground,borderColor:m.linkBorder}:void 0,w=h?{color:m.linkText}:void 0,y=h?{color:m.linkIconColor}:void 0,I=g||n.jsx(t.ExternalLinkIcon,{className:i.default.linkIcon,style:y});return n.jsx("a",e.__assign({href:d,title:d,onClick:function(e){e.preventDefault(),(null==u?void 0:u.onCodeLinkClick)&&u.onCodeLinkClick({filePath:b.filePath,startLine:b.startLine,endLine:b.endLine,validation:b.validation})},className:i.default.linkContainer,style:C},{children:n.jsxs("span",e.__assign({className:i.default.linkWrapper,style:L},{children:[I,n.jsx("span",e.__assign({className:i.default.linkText,style:w},{children:c}))]}))}))}if("web"===(null==u?void 0:u.mode)&&u.webConfig){var P=(v=b.filePath,(x=/\.(\w+)$/.exec(v))?x[1]:"plaintext");return n.jsx(a.default,{baseUrlForCodeRetrieval:u.baseUrlForCodeRetrieval||"",filepath:b.fullPath,assistantName:u.webConfig.assistantName,organizationName:u.webConfig.organizationName,userId:u.webConfig.userId,taskId:u.webConfig.taskId,repoUrl:u.webConfig.repoUrl,inLineCitation:!0,citationTitle:k,filename:"Generated Code"!==k?b.filePath:".".concat(P),fileSummarySectionTitle:"File Summary",citationContainerTitle:"Code Preview",showFileSummaryIButton:!0,showFullscreenIcon:!0,showThemeToggle:!0,isDarkModeEnabled:null===(s=u.webConfig.isDarkModeEnabled)||void 0===s||s,chevronUpComponent:u.webConfig.chevronUpComponent||n.jsx(t.ChevronUpIcon,{}),chevronDownComponent:u.webConfig.chevronDownComponent||n.jsx(t.ChevronDownIcon,{}),isHighlightingEnabled:!0,editorHeight:"95%",editorWidth:"100%",startIndex:b.startLine?Number(b.startLine):void 0,endIndex:b.endLine?Number(b.endLine):void 0,datasource:u.webConfig.datasource,styles:{pillButton:e.__assign({display:"inline-flex",alignItems:"center",fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"transparent",padding:"0px",fontSize:"13px",borderRadius:"9999px",cursor:"pointer",color:"#d63384",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},C),citationWrapper:{justifyContent:"flex-start",width:"100%"},citationContent:{width:"100%",height:"500px",backgroundColor:"#eff6ff",border:"1px solid #000",padding:"8px",borderRadius:"4px"},citationContainerTitle:{fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",justifyContent:"space-between",alignItems:"center",color:"#000",fontSize:"16px",fontWeight:"bold",marginBottom:"8px"}}})}return n.jsx("a",e.__assign({href:d,target:"_blank",rel:"noopener noreferrer",className:i.default.regularLink,style:C},{children:c}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("./CodeLinkHandler.module.css.js"),t=require("lucide-react"),a=require("@e-llm-studio/citation"),o=require("../types.js");exports.default=function(r){var l,s,d=r.href,c=r.children,u=r.codeLinkConfig,f=r.isHighlighted,h=void 0!==f&&f,p=r.highlightTheme,m=void 0===p?o.DEFAULT_HIGHLIGHT_THEME:p,g=r.customLinkStyles,C=r.customIcon;if(!d)return n.jsx("span",{children:c});var v,x,b=function(e){try{var n=new URL(e,"http://example.com"),i=n.searchParams.get("startLine"),t=n.searchParams.get("endLine"),a=n.searchParams.get("validation");n.searchParams.delete("startLine"),n.searchParams.delete("endLine"),n.searchParams.delete("validation");var o=n.pathname+n.search;return{filePath:decodeURIComponent(o.replace(/^\//,"")),fullPath:decodeURIComponent(e),startLine:i,endLine:t,validation:a}}catch(n){return{filePath:e,fullPath:e,startLine:null,endLine:null,validation:null}}}(d),k="string"==typeof c?c.split("\n").length>1?"Generated Code":c:(null===(l=null==c?void 0:c.props)||void 0===l?void 0:l.children)||d||"Generated Code";if("vscode"===(null==u?void 0:u.mode)){var L=h?{backgroundColor:m.linkBackground,borderColor:m.linkBorder}:void 0,w=h?{color:m.linkText}:void 0,y=h?{color:m.linkIconColor}:void 0,I=C||n.jsx(t.ExternalLinkIcon,{className:i.default.linkIcon,style:y});return n.jsx("a",e.__assign({href:d,title:d,onClick:function(e){e.preventDefault(),(null==u?void 0:u.onCodeLinkClick)&&u.onCodeLinkClick({filePath:b.filePath,startLine:b.startLine,endLine:b.endLine,validation:b.validation})},className:i.default.linkContainer,style:g},{children:n.jsxs("span",e.__assign({className:i.default.linkWrapper,style:L},{children:[I,n.jsx("span",e.__assign({className:i.default.linkText,style:w},{children:c}))]}))}))}if("web"===(null==u?void 0:u.mode)&&u.webConfig){var P=(v=b.filePath,(x=/\.(\w+)$/.exec(v))?x[1]:"plaintext");return n.jsx(a.CodeCitation,{baseUrlForCodeRetrieval:u.baseUrlForCodeRetrieval||"",filepath:b.fullPath,assistantName:u.webConfig.assistantName,organizationName:u.webConfig.organizationName,userId:u.webConfig.userId,taskId:u.webConfig.taskId,repoUrl:u.webConfig.repoUrl,inLineCitation:!0,citationTitle:k,filename:"Generated Code"!==k?b.filePath:".".concat(P),fileSummarySectionTitle:"File Summary",citationContainerTitle:"Code Preview",showFileSummaryIButton:!0,showFullscreenIcon:!0,showThemeToggle:!0,isDarkModeEnabled:null===(s=u.webConfig.isDarkModeEnabled)||void 0===s||s,chevronUpComponent:u.webConfig.chevronUpComponent||n.jsx(t.ChevronUpIcon,{}),chevronDownComponent:u.webConfig.chevronDownComponent||n.jsx(t.ChevronDownIcon,{}),isHighlightingEnabled:!0,editorHeight:"95%",editorWidth:"100%",startIndex:b.startLine?Number(b.startLine):void 0,endIndex:b.endLine?Number(b.endLine):void 0,datasource:u.webConfig.datasource,styles:{pillButton:e.__assign({display:"inline-flex",alignItems:"center",fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"transparent",padding:"0px",fontSize:"13px",borderRadius:"9999px",cursor:"pointer",color:"#d63384",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},g),citationWrapper:{justifyContent:"flex-start",width:"100%"},citationContent:{width:"100%",height:"500px",backgroundColor:"#eff6ff",border:"1px solid #000",padding:"8px",borderRadius:"4px"},citationContainerTitle:{fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",justifyContent:"space-between",alignItems:"center",color:"#000",fontSize:"16px",fontWeight:"bold",marginBottom:"8px"}}})}return n.jsx("a",e.__assign({href:d,target:"_blank",rel:"noopener noreferrer",className:i.default.regularLink,style:g},{children:c}))};
2
2
  //# sourceMappingURL=CodeLinkHandler.js.map
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/ScannedDocCitation/ScannedDocCitation.js"),t=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js"),r=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js"),i=require("./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js"),o=require("./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js"),n=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js"),s=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js"),a=require("./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js"),u=require("./features/RequirementAI/components/story-screen/UserStoryScreen.js"),c=require("./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js"),p=require("./features/RequirementAI/components/RichTextEditor/RichTextEditor.js"),d=require("./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js"),m=require("./features/RequirementAI/components/story-screen/SubfeatureBlock.js"),l=require("./features/RequirementAI/shared/AtomicButton.js"),f=require("./features/RequirementAI/icons/SidebarOpenIcon.js"),R=require("./features/RequirementAI/icons/SidebarCloseIcon.js"),q=require("./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js"),A=require("./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js"),C=require("./features/RequirementAI/hooks/useStreamContentHandler.js"),I=require("./features/RequirementAI/utils/proccess-stream.utils.js"),x=require("./features/RequirementAI/utils/diff-edit.utils.js"),S=require("./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js"),j=require("./features/RequirementAI/hooks/useDiffEditReviewMode.js"),h=require("./features/RequirementAI/components/UserStoryCard/UserStoryCard.js"),y=require("./features/RequirementAI/components/citations/file-citation/FileCitationRender.js"),b=require("./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js"),g=require("./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js"),W=require("./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js"),D=require("./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js"),F=require("./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js");exports.ScannedDocCitation=e.default,exports.ReadFileCitationRenderer=t.default,exports.ReadFileCitationContent=r.default,exports.RCACitationRenderer=i.default,exports.RCACitationContent=o.default,exports.AppModCitationRenderer=n.default,exports.AppModCitationContent=s.default,exports.RequirementAIWrapper=a.default,exports.useRequirementAI=a.useRequirementAI,exports.UserStoryScreen=u.default,exports.UserStoryApprovalScreen=c.default,exports.RichTextEditor=p.default,exports.UserStoryWithCitation=d.default,exports.SubFeatureBlock=m.default,exports.AtomicButton=l.default,exports.SidebarOpenIcon=f.SidebarOpenIcon,exports.SidebarCloseIcon=R.SidebarCloseIcon,exports.StreamingScreenSidebar=q.default,exports.AiReasoningCitationContent=A.default,exports.useStreamContentHandler=C.useStreamContentHandler,exports.extractBlockStreams=I.extractBlockStreams,exports.extractDescription=I.extractDescription,exports.processAIReasoningFromBlocks=I.processAIReasoningFromBlocks,exports.processUserStoryValue=I.processUserStoryValue,exports.handleAcceptAllChanges=x.handleAcceptAllChanges,exports.handleDiffEditApplied=x.handleDiffEditApplied,exports.handleDiscardAll=x.handleDiscardAll,exports.GapFilterBlock=S.GapFilterBlock,exports.useDiffEditReviewMode=j.useDiffEditReviewMode,exports.UserStoryCardWrapper=h.UserStoryCardWrapper,exports.FileCitationRender=y.default,exports.WebCitationWithImageRenderer=b.default,exports.WebCitationRenderer=g.default,exports.StormeeCitationRenderer=W.default,exports.WaveformCitationRenderer=D.default,exports.ImageCitationRenderer=F.default;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js"),t=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js"),r=require("./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js"),i=require("./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js"),o=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js"),n=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js"),s=require("./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js"),a=require("./features/RequirementAI/components/story-screen/UserStoryScreen.js"),u=require("./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js"),p=require("./features/RequirementAI/components/RichTextEditor/RichTextEditor.js"),c=require("./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js"),d=require("./features/RequirementAI/components/story-screen/SubfeatureBlock.js"),m=require("./features/RequirementAI/shared/AtomicButton.js"),l=require("./features/RequirementAI/icons/SidebarOpenIcon.js"),R=require("./features/RequirementAI/icons/SidebarCloseIcon.js"),f=require("./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js"),q=require("./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js"),A=require("./features/RequirementAI/hooks/useStreamContentHandler.js"),C=require("./features/RequirementAI/utils/proccess-stream.utils.js"),I=require("./features/RequirementAI/utils/diff-edit.utils.js"),x=require("./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js"),S=require("./features/RequirementAI/hooks/useDiffEditReviewMode.js"),j=require("./features/RequirementAI/components/UserStoryCard/UserStoryCard.js"),h=require("./features/RequirementAI/components/citations/file-citation/FileCitationRender.js"),y=require("./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js"),b=require("./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js"),g=require("./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js"),W=require("./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js"),F=require("./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js");exports.ReadFileCitationRenderer=e.default,exports.ReadFileCitationContent=t.default,exports.RCACitationRenderer=r.default,exports.RCACitationContent=i.default,exports.AppModCitationRenderer=o.default,exports.AppModCitationContent=n.default,exports.RequirementAIWrapper=s.default,exports.useRequirementAI=s.useRequirementAI,exports.UserStoryScreen=a.default,exports.UserStoryApprovalScreen=u.default,exports.RichTextEditor=p.default,exports.UserStoryWithCitation=c.default,exports.SubFeatureBlock=d.default,exports.AtomicButton=m.default,exports.SidebarOpenIcon=l.SidebarOpenIcon,exports.SidebarCloseIcon=R.SidebarCloseIcon,exports.StreamingScreenSidebar=f.default,exports.AiReasoningCitationContent=q.default,exports.useStreamContentHandler=A.useStreamContentHandler,exports.extractBlockStreams=C.extractBlockStreams,exports.extractDescription=C.extractDescription,exports.processAIReasoningFromBlocks=C.processAIReasoningFromBlocks,exports.processUserStoryValue=C.processUserStoryValue,exports.handleAcceptAllChanges=I.handleAcceptAllChanges,exports.handleDiffEditApplied=I.handleDiffEditApplied,exports.handleDiscardAll=I.handleDiscardAll,exports.GapFilterBlock=x.GapFilterBlock,exports.useDiffEditReviewMode=S.useDiffEditReviewMode,exports.UserStoryCardWrapper=j.UserStoryCardWrapper,exports.FileCitationRender=h.default,exports.WebCitationWithImageRenderer=y.default,exports.WebCitationRenderer=b.default,exports.StormeeCitationRenderer=g.default,exports.WaveformCitationRenderer=W.default,exports.ImageCitationRenderer=F.default;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as i}from"react/jsx-runtime";import t from"./CodeLinkHandler.module.css.js";import{ExternalLinkIcon as o,ChevronUpIcon as a,ChevronDownIcon as r}from"lucide-react";import l from"../../../../../CodeCitation/CodeCitation.js";import{DEFAULT_HIGHLIGHT_THEME as d}from"../types.js";var s=function(s){var c,m,f=s.href,h=s.children,p=s.codeLinkConfig,u=s.isHighlighted,C=void 0!==u&&u,g=s.highlightTheme,v=void 0===g?d:g,b=s.customLinkStyles,k=s.customIcon;if(!f)return n("span",{children:h});var w,L,x=function(e){try{var n=new URL(e,"http://example.com"),i=n.searchParams.get("startLine"),t=n.searchParams.get("endLine"),o=n.searchParams.get("validation");n.searchParams.delete("startLine"),n.searchParams.delete("endLine"),n.searchParams.delete("validation");var a=n.pathname+n.search;return{filePath:decodeURIComponent(a.replace(/^\//,"")),fullPath:decodeURIComponent(e),startLine:i,endLine:t,validation:o}}catch(n){return{filePath:e,fullPath:e,startLine:null,endLine:null,validation:null}}}(f),y="string"==typeof h?h.split("\n").length>1?"Generated Code":h:(null===(c=null==h?void 0:h.props)||void 0===c?void 0:c.children)||f||"Generated Code";if("vscode"===(null==p?void 0:p.mode)){var P=C?{backgroundColor:v.linkBackground,borderColor:v.linkBorder}:void 0,I=C?{color:v.linkText}:void 0,N=C?{color:v.linkIconColor}:void 0,S=k||n(o,{className:t.linkIcon,style:N});return n("a",e({href:f,title:f,onClick:function(e){e.preventDefault(),(null==p?void 0:p.onCodeLinkClick)&&p.onCodeLinkClick({filePath:x.filePath,startLine:x.startLine,endLine:x.endLine,validation:x.validation})},className:t.linkContainer,style:b},{children:i("span",e({className:t.linkWrapper,style:P},{children:[S,n("span",e({className:t.linkText,style:I},{children:h}))]}))}))}if("web"===(null==p?void 0:p.mode)&&p.webConfig){var T=(w=x.filePath,(L=/\.(\w+)$/.exec(w))?L[1]:"plaintext");return n(l,{baseUrlForCodeRetrieval:p.baseUrlForCodeRetrieval||"",filepath:x.fullPath,assistantName:p.webConfig.assistantName,organizationName:p.webConfig.organizationName,userId:p.webConfig.userId,taskId:p.webConfig.taskId,repoUrl:p.webConfig.repoUrl,inLineCitation:!0,citationTitle:y,filename:"Generated Code"!==y?x.filePath:".".concat(T),fileSummarySectionTitle:"File Summary",citationContainerTitle:"Code Preview",showFileSummaryIButton:!0,showFullscreenIcon:!0,showThemeToggle:!0,isDarkModeEnabled:null===(m=p.webConfig.isDarkModeEnabled)||void 0===m||m,chevronUpComponent:p.webConfig.chevronUpComponent||n(a,{}),chevronDownComponent:p.webConfig.chevronDownComponent||n(r,{}),isHighlightingEnabled:!0,editorHeight:"95%",editorWidth:"100%",startIndex:x.startLine?Number(x.startLine):void 0,endIndex:x.endLine?Number(x.endLine):void 0,datasource:p.webConfig.datasource,styles:{pillButton:e({display:"inline-flex",alignItems:"center",fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"transparent",padding:"0px",fontSize:"13px",borderRadius:"9999px",cursor:"pointer",color:"#d63384",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},b),citationWrapper:{justifyContent:"flex-start",width:"100%"},citationContent:{width:"100%",height:"500px",backgroundColor:"#eff6ff",border:"1px solid #000",padding:"8px",borderRadius:"4px"},citationContainerTitle:{fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",justifyContent:"space-between",alignItems:"center",color:"#000",fontSize:"16px",fontWeight:"bold",marginBottom:"8px"}}})}return n("a",e({href:f,target:"_blank",rel:"noopener noreferrer",className:t.regularLink,style:b},{children:h}))};export{s as default};
1
+ import{__assign as e}from"tslib";import{jsx as n,jsxs as i}from"react/jsx-runtime";import t from"./CodeLinkHandler.module.css.js";import{ExternalLinkIcon as o,ChevronUpIcon as a,ChevronDownIcon as r}from"lucide-react";import{CodeCitation as l}from"@e-llm-studio/citation";import{DEFAULT_HIGHLIGHT_THEME as d}from"../types.js";var s=function(s){var c,m,f=s.href,h=s.children,p=s.codeLinkConfig,u=s.isHighlighted,g=void 0!==u&&u,C=s.highlightTheme,v=void 0===C?d:C,b=s.customLinkStyles,k=s.customIcon;if(!f)return n("span",{children:h});var w,L,x=function(e){try{var n=new URL(e,"http://example.com"),i=n.searchParams.get("startLine"),t=n.searchParams.get("endLine"),o=n.searchParams.get("validation");n.searchParams.delete("startLine"),n.searchParams.delete("endLine"),n.searchParams.delete("validation");var a=n.pathname+n.search;return{filePath:decodeURIComponent(a.replace(/^\//,"")),fullPath:decodeURIComponent(e),startLine:i,endLine:t,validation:o}}catch(n){return{filePath:e,fullPath:e,startLine:null,endLine:null,validation:null}}}(f),y="string"==typeof h?h.split("\n").length>1?"Generated Code":h:(null===(c=null==h?void 0:h.props)||void 0===c?void 0:c.children)||f||"Generated Code";if("vscode"===(null==p?void 0:p.mode)){var P=g?{backgroundColor:v.linkBackground,borderColor:v.linkBorder}:void 0,I=g?{color:v.linkText}:void 0,N=g?{color:v.linkIconColor}:void 0,S=k||n(o,{className:t.linkIcon,style:N});return n("a",e({href:f,title:f,onClick:function(e){e.preventDefault(),(null==p?void 0:p.onCodeLinkClick)&&p.onCodeLinkClick({filePath:x.filePath,startLine:x.startLine,endLine:x.endLine,validation:x.validation})},className:t.linkContainer,style:b},{children:i("span",e({className:t.linkWrapper,style:P},{children:[S,n("span",e({className:t.linkText,style:I},{children:h}))]}))}))}if("web"===(null==p?void 0:p.mode)&&p.webConfig){var T=(w=x.filePath,(L=/\.(\w+)$/.exec(w))?L[1]:"plaintext");return n(l,{baseUrlForCodeRetrieval:p.baseUrlForCodeRetrieval||"",filepath:x.fullPath,assistantName:p.webConfig.assistantName,organizationName:p.webConfig.organizationName,userId:p.webConfig.userId,taskId:p.webConfig.taskId,repoUrl:p.webConfig.repoUrl,inLineCitation:!0,citationTitle:y,filename:"Generated Code"!==y?x.filePath:".".concat(T),fileSummarySectionTitle:"File Summary",citationContainerTitle:"Code Preview",showFileSummaryIButton:!0,showFullscreenIcon:!0,showThemeToggle:!0,isDarkModeEnabled:null===(m=p.webConfig.isDarkModeEnabled)||void 0===m||m,chevronUpComponent:p.webConfig.chevronUpComponent||n(a,{}),chevronDownComponent:p.webConfig.chevronDownComponent||n(r,{}),isHighlightingEnabled:!0,editorHeight:"95%",editorWidth:"100%",startIndex:x.startLine?Number(x.startLine):void 0,endIndex:x.endLine?Number(x.endLine):void 0,datasource:p.webConfig.datasource,styles:{pillButton:e({display:"inline-flex",alignItems:"center",fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"transparent",padding:"0px",fontSize:"13px",borderRadius:"9999px",cursor:"pointer",color:"#d63384",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},b),citationWrapper:{justifyContent:"flex-start",width:"100%"},citationContent:{width:"100%",height:"500px",backgroundColor:"#eff6ff",border:"1px solid #000",padding:"8px",borderRadius:"4px"},citationContainerTitle:{fontFamily:"Plus Jakarta Sans, sans-serif",display:"flex",justifyContent:"space-between",alignItems:"center",color:"#000",fontSize:"16px",fontWeight:"bold",marginBottom:"8px"}}})}return n("a",e({href:f,target:"_blank",rel:"noopener noreferrer",className:t.regularLink,style:b},{children:h}))};export{s as default};
2
2
  //# sourceMappingURL=CodeLinkHandler.js.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ReadFileCitationRenderer}from"./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js";export{default as ReadFileCitationContent}from"./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js";export{default as RCACitationRenderer}from"./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js";export{default as RCACitationContent}from"./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js";export{default as AppModCitationRenderer}from"./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js";export{default as AppModCitationContent}from"./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js";export{default as RequirementAIWrapper,useRequirementAI}from"./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js";export{default as UserStoryScreen}from"./features/RequirementAI/components/story-screen/UserStoryScreen.js";export{default as UserStoryApprovalScreen}from"./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js";export{default as RichTextEditor}from"./features/RequirementAI/components/RichTextEditor/RichTextEditor.js";export{default as UserStoryWithCitation}from"./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js";export{default as SubFeatureBlock}from"./features/RequirementAI/components/story-screen/SubfeatureBlock.js";export{default as AtomicButton}from"./features/RequirementAI/shared/AtomicButton.js";export{SidebarOpenIcon}from"./features/RequirementAI/icons/SidebarOpenIcon.js";export{SidebarCloseIcon}from"./features/RequirementAI/icons/SidebarCloseIcon.js";export{default as StreamingScreenSidebar}from"./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js";export{default as AiReasoningCitationContent}from"./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js";export{useStreamContentHandler}from"./features/RequirementAI/hooks/useStreamContentHandler.js";export{extractBlockStreams,extractDescription,processAIReasoningFromBlocks,processUserStoryValue}from"./features/RequirementAI/utils/proccess-stream.utils.js";export{handleAcceptAllChanges,handleDiffEditApplied,handleDiscardAll}from"./features/RequirementAI/utils/diff-edit.utils.js";export{GapFilterBlock}from"./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js";export{useDiffEditReviewMode}from"./features/RequirementAI/hooks/useDiffEditReviewMode.js";export{UserStoryCardWrapper}from"./features/RequirementAI/components/UserStoryCard/UserStoryCard.js";export{default as FileCitationRender}from"./features/RequirementAI/components/citations/file-citation/FileCitationRender.js";export{default as WebCitationWithImageRenderer}from"./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js";export{default as WebCitationRenderer}from"./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js";export{default as StormeeCitationRenderer}from"./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js";export{default as WaveformCitationRenderer}from"./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js";export{default as ImageCitationRenderer}from"./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js";
1
+ export{default as ReadFileCitationRenderer}from"./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js";export{default as ReadFileCitationContent}from"./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js";export{default as RCACitationRenderer}from"./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js";export{default as RCACitationContent}from"./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js";export{default as AppModCitationRenderer}from"./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js";export{default as AppModCitationContent}from"./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js";export{default as RequirementAIWrapper,useRequirementAI}from"./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js";export{default as UserStoryScreen}from"./features/RequirementAI/components/story-screen/UserStoryScreen.js";export{default as UserStoryApprovalScreen}from"./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js";export{default as RichTextEditor}from"./features/RequirementAI/components/RichTextEditor/RichTextEditor.js";export{default as UserStoryWithCitation}from"./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js";export{default as SubFeatureBlock}from"./features/RequirementAI/components/story-screen/SubfeatureBlock.js";export{default as AtomicButton}from"./features/RequirementAI/shared/AtomicButton.js";export{SidebarOpenIcon}from"./features/RequirementAI/icons/SidebarOpenIcon.js";export{SidebarCloseIcon}from"./features/RequirementAI/icons/SidebarCloseIcon.js";export{default as StreamingScreenSidebar}from"./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js";export{default as AiReasoningCitationContent}from"./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js";export{useStreamContentHandler}from"./features/RequirementAI/hooks/useStreamContentHandler.js";export{extractBlockStreams,extractDescription,processAIReasoningFromBlocks,processUserStoryValue}from"./features/RequirementAI/utils/proccess-stream.utils.js";export{handleAcceptAllChanges,handleDiffEditApplied,handleDiscardAll}from"./features/RequirementAI/utils/diff-edit.utils.js";export{GapFilterBlock}from"./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js";export{useDiffEditReviewMode}from"./features/RequirementAI/hooks/useDiffEditReviewMode.js";export{UserStoryCardWrapper}from"./features/RequirementAI/components/UserStoryCard/UserStoryCard.js";export{default as FileCitationRender}from"./features/RequirementAI/components/citations/file-citation/FileCitationRender.js";export{default as WebCitationWithImageRenderer}from"./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js";export{default as WebCitationRenderer}from"./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js";export{default as StormeeCitationRenderer}from"./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js";export{default as WaveformCitationRenderer}from"./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js";export{default as ImageCitationRenderer}from"./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,3 @@
1
- import { BookemonProps } from "../../../Bookemon/types/citation.types";
2
1
  export type TAIReasoning = {
3
2
  id: string;
4
3
  reason: string[];
@@ -17,7 +16,6 @@ export type Citations = {
17
16
  rca_citations?: TRcaCitation[];
18
17
  web_citations?: TWebCitation[];
19
18
  code_generated?: TGeneratedCodeCitation[];
20
- bookemon_citations?: BookemonCitation[];
21
19
  custom_citations?: TCustomCitation[];
22
20
  readfile_citations?: TReadFileCitation[];
23
21
  };
@@ -141,18 +139,6 @@ export type TGeneratedCodeCitation = CommonCitation & {
141
139
  type: "code_generated";
142
140
  };
143
141
  };
144
- export type BookemonCitation = CommonCitation & {
145
- customMetadata: {
146
- citationNumber: number;
147
- ISBN: string;
148
- citation_type: string;
149
- citationSource: string;
150
- highlighted_text: string;
151
- highlight_score: number;
152
- type: "bookemon_citation";
153
- bookemonPayload: BookemonProps;
154
- };
155
- };
156
142
  export type TReadFileCitation = CommonCitation & {
157
143
  customMetadata: {
158
144
  type: "readfile_citation";
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,UAAU,GACV,SAAS,GACT,KAAK,GACL,OAAO,GACP,OAAO,GACP,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,KAAK,GACL,QAAQ,CAAC;AAEb,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,gBAAgB,C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E,MAAM,CAAC;KAChB,EAAE,CAAC;IACJ,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,cAAc;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,YAAY,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,YAAY;IACpB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B"}
1
+ {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/types/interface.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,UAAU,GACV,SAAS,GACT,KAAK,GACL,OAAO,GACP,OAAO,GACP,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,KAAK,GACL,QAAQ,CAAC;AAEb,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,gBAAgB,CAAC,EAAE,aAAa,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,cAAc,CAA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AO,EAAE,MAAM,CAAC;QAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,cAAc,EAAE;QACd,IAAI,EAAE,kBAAkB,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;IACJ,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,cAAc;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,YAAY,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,YAAY;IACpB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B"}
@@ -1,4 +1,3 @@
1
- export { default as ScannedDocCitation } from "./features/ScannedDocCitation/ScannedDocCitation";
2
1
  export { default as ReadFileCitationRenderer } from "./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer";
3
2
  export { default as ReadFileCitationContent } from "./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent";
4
3
  export type { ReadFileCitationRendererProps, ReadFileCitationColors, ReadFileCitationEditorConfig, ReadFileCitationFileCallback, } from "./features/RequirementAI/components/citations/readfile-citation/types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,0FAA0F,CAAC;AAC/I,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,yFAAyF,CAAC;AAC7I,YAAY,EACV,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,gFAAgF,CAAC;AAChI,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+EAA+E,CAAC;AAC9H,YAAY,EACV,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,sFAAsF,CAAC;AACzI,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,qFAAqF,CAAC;AACvI,YAAY,EACV,2BAA2B,EAC3B,cAAc,GACf,MAAM,qEAAqE,CAAC;AAC7E,YAAY,EACV,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,+EAA+E,CAAC;AAChI,OAAO,EAAE,gBAAgB,EAAE,MAAM,+EAA+E,CAAC;AACjH,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kEAAkE,CAAC;AAC9G,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,uFAAuF,CAAC;AAC3I,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mEAAmE,CAAC;AAC9G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4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -412,9 +412,13 @@
412
412
  "react-player": "^3.4.0",
413
413
  "react-reader": "^2.0.13",
414
414
  "video.js": "^8.23.7",
415
- "wavesurfer.js": "^7.12.1"
415
+ "wavesurfer.js": "^7.12.1",
416
+ "@e-llm-studio/citation": "^0.0.164"
416
417
  },
417
418
  "peerDependenciesMeta": {
419
+ "@e-llm-studio/citation": {
420
+ "optional": true
421
+ },
418
422
  "@mui/icons-material": {
419
423
  "optional": true
420
424
  },
@@ -450,7 +454,6 @@
450
454
  }
451
455
  },
452
456
  "dependencies": {
453
- "@e-llm-studio/citation": "^0.0.164",
454
457
  "@lexical/react": "^0.41.0",
455
458
  "@lexical/yjs": "^0.41.0",
456
459
  "axios": "^1.7.9",
@@ -1,2 +0,0 @@
1
- import"react";var t="data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201L5%205L9%201%22%20stroke%3D%22%23BE87FF%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";export{t as default};
2
- //# sourceMappingURL=chevronDownArrow.svg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chevronDownArrow.svg.js","sources":["../../../src/assests/svg/chevronDownArrow.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201L5%205L9%201%22%20stroke%3D%22%23BE87FF%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\""],"names":["ChevronDown"],"mappings":"cAeA,IAAAA,EAAe"}
@@ -1,2 +0,0 @@
1
- import"react";var t="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%3Cpath%20d%3D%22M12%2010L8%206L4%2010%22%20stroke%3D%22%23BE87FF%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";export{t as default};
2
- //# sourceMappingURL=chevronUp.svg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chevronUp.svg.js","sources":["../../../src/assests/svg/chevronUp.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%3Cpath%20d%3D%22M12%2010L8%206L4%2010%22%20stroke%3D%22%23BE87FF%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\""],"names":["ChevronUp"],"mappings":"cAeA,IAAAA,EAAe"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");exports.default="data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201L5%205L9%201%22%20stroke%3D%22%23BE87FF%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
2
- //# sourceMappingURL=chevronDownArrow.svg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chevronDownArrow.svg.js","sources":["../../../../src/assests/svg/chevronDownArrow.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201L5%205L9%201%22%20stroke%3D%22%23BE87FF%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\""],"names":[],"mappings":"qGAee"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");exports.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%3Cpath%20d%3D%22M12%2010L8%206L4%2010%22%20stroke%3D%22%23BE87FF%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
2
- //# sourceMappingURL=chevronUp.svg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chevronUp.svg.js","sources":["../../../../src/assests/svg/chevronUp.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%3Cpath%20d%3D%22M12%2010L8%206L4%2010%22%20stroke%3D%22%23BE87FF%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\""],"names":[],"mappings":"qGAee"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,o=require("../features/CodeCitation/_components/CodeEditor.js"),r=((e={})[o.DiagnosticSeverity.Error]={style:{backgroundColor:"#ef4444",mixBlendMode:"soft-light"},lightModeStyle:{backgroundColor:"#fecaca",mixBlendMode:"multiply"}},e[o.DiagnosticSeverity.Warning]={style:{backgroundColor:"#fde68a",mixBlendMode:"overlay"},lightModeStyle:{backgroundColor:"#fef9c3",mixBlendMode:"multiply"}},e[o.DiagnosticSeverity.Information]={style:{backgroundColor:"rgba(0, 122, 204, 0.3)"},lightModeStyle:{backgroundColor:"rgba(0, 122, 204, 0.3)"}},e[o.DiagnosticSeverity.Hint]={style:{backgroundColor:"#4ade80",mixBlendMode:"overlay"},lightModeStyle:{backgroundColor:"#bbf7d0",mixBlendMode:"multiply"}},e);exports.DEFAULT_DIAGNOSTIC_STYLES_BY_SEVERITY=r;
2
- //# sourceMappingURL=diagnosticStylesBySeverity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diagnosticStylesBySeverity.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),i=require("./CodeCitation.module.css.js"),a=require("./_components/CodeEditor.js"),s=require("../../utils/codeCitations.utils.js"),o=require("./_components/ThemeToggle.js"),r=require("./_components/CodeCitationPopup.js"),l=require("./_components/HighlightedCodeDetails.js"),d=require("axios"),u=require("./_components/Spinner.js"),c=require("../../constants/diagnosticStylesBySeverity.js"),g=require("../../utils/themeManager.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=h(n),m=h(d);exports.default=function(d){var h=d.baseUrlForCodeRetrieval,p=d.assistantName,x=d.organizationName,S=d.userId,v=d.taskId,_=d.repoUrl,I=d.inLineCitation,C=d.citationTitle,y=d.filename,j=d.filepath,b=d.citationContainerTitle,F=d.showThemeToggle,T=d.customCode,k=d.isDarkModeEnabled,D=d.chevronUpComponent,P=d.chevronDownComponent,w=d.isHighlightingEnabled,E=d.FileDetailsComponent,L=d.additionalCallbackForPillButton,H=d.CustomCodeRenderComponent,q=d.fileSummarySectionTitle,M=d.showFullscreenIcon,B=d.showFileSummaryIButton,N=d.editorHeight,W=d.editorWidth,z=d.styles,V=void 0===z?{}:z,R=d.diagnostics,J=d.diagnosticStylesBySeverity,U=d.datasource,A=void 0===U?"codebase":U,O=d.externalFilesData,Y=d.startIndex,G=d.endIndex,K=n.useRef(!1),Q=s.getLanguageFromFileName(y),X=n.useState(!1),Z=X[0],$=X[1],ee=n.useState(function(){return g.themeManager.getTheme(k)}),te=ee[0],ne=ee[1];n.useEffect(function(){return g.themeManager.subscribe(ne)},[]);var ie=n.useState(!1),ae=ie[0],se=ie[1],oe=n.useState(!1),re=oe[0],le=oe[1],de=n.useState(!1),ue=de[0],ce=de[1],ge=n.useState(!1),he=ge[0],fe=ge[1],me=n.useState(null),pe=me[0],xe=me[1],Se=n.useState(""),ve=Se[0],_e=Se[1],Ie=n.useState(""),Ce=Ie[0],ye=Ie[1],je=n.useState({startIndex:-1,endIndex:-1}),be=je[0],Fe=je[1],Te=n.useState({}),ke=Te[0],De=Te[1],Pe=n.useState(!1),we=Pe[0],Ee=Pe[1],Le=n.useState(!1),He=Le[0],qe=Le[1],Me=n.useState({startIndex:-1,endIndex:-1}),Be=Me[0],Ne=Me[1],We=n.useState({startIndex:-1,endIndex:-1}),ze=We[0],Ve=We[1],Re=f.default.useMemo(function(){return e.__assign(e.__assign({},c.DEFAULT_DIAGNOSTIC_STYLES_BY_SEVERITY),J)},[J]);n.useEffect(function(){Ve({startIndex:null!=Y?Y:-1,endIndex:null!=G?G:-1})},[Y,G]),n.useEffect(function(){O&&T&&(xe(O),K.current=!0)},[O,T]),n.useEffect(function(){if("undefined"!=typeof window&&!K.current){K.current=!0;var t=new URL(j,"http://example.com"),n=t.searchParams,i=void 0!==Y?Y:n.has("startLine")?Number(n.get("startLine")):-1,a=void 0!==G?G:n.has("endLine")?Number(n.get("endLine")):-1;Ve({startIndex:i,endIndex:a}),Fe({startIndex:i,endIndex:a}),Ne({startIndex:i,endIndex:a}),t.searchParams.delete("startLine"),t.searchParams.delete("endLine"),t.searchParams.delete("validation");var s=t.pathname+t.search,o=null==s?void 0:s.replace(/^\//,"");ye(o),console.log("Params going to API:",{file_path:o,assistant_name:p,organization_name:x,user_id:S,task_id:v,chunks_search:!1,technical_details_only:!0,repo_url:_});T||we||e.__awaiter(void 0,void 0,void 0,function(){var t,n,i,a,s,r;return e.__generator(this,function(l){switch(l.label){case 0:qe(!1),Ee(!0),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,m.default.get("".concat(h,"/analyzer/get_file_details"),{params:e.__assign({file_path:String(o),assistant_name:String(p),organization_name:String(x),user_id:String(S),task_id:String(v),repo_url:String(_),chunks_search:!1,technical_details_only:!0},"codebase"!==A&&{datasource:A})})];case 2:return t=l.sent(),n=(null==t?void 0:t.data[0])||(null==t?void 0:t.data),!pe&&n&&(xe(n),Object.keys(null==t?void 0:t.data)&&(i=(null===(r=null===(s=null==t?void 0:t.data)||void 0===s?void 0:s[0])||void 0===r?void 0:r.content)||(null==t?void 0:t.data.content),_e(i))),Ee(!1),[2,t.data];case 3:return a=l.sent(),qe(!0),console.error("Error in retrieving file details: ",a),[3,4];case 4:return Ee(!1),[2]}})})}},[]);return t.jsxs(t.Fragment,{children:[t.jsxs("span",e.__assign({onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),L&&L(),$(function(e){return!e}),se(function(e){return!e})}(e)},className:i.default.pillButton,style:V.pillButton},{children:[t.jsx("span",e.__assign({style:V.citationTitle},{children:C})),I&&(Z?D:P)]})),(!I||re)&&t.jsx(r.default,{open:ae,onClose:function(){Ve({startIndex:null==Be?void 0:Be.startIndex,endIndex:null==Be?void 0:Be.endIndex}),le(!1),se(!1),Fe({startIndex:-1,endIndex:-1}),De({})},title:C,customStyles:{popupContainer:{width:"100vw",height:"100vh",borderRadius:"0.75rem",fontFamily:"Plus Jakarta Sans, sans-serif"},popupTitleContainer:{color:"#d63384",fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"700"},topLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"},bottomLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"}},editorChildren:t.jsx(a.default,{startIndex:null==ze?void 0:ze.startIndex,endIndex:null==ze?void 0:ze.endIndex,language:Q,editorHeight:N,editorWidth:W,code:T||ve,isHighlightingEnabled:w,isDarkModeEnabled:te,highlightCodeStatsLine:be,setHighlightCodeStatsLine:Fe,highlightCodeStatsVariable:ke,setHighlightCodeStatsVariable:De,isExpanded:Z,highlightIndexes:ze,diagnostics:R,diagnosticStylesBySeverity:Re}),fileDetails:pe,setHighlightIndexes:Ve,highlightCodeStatsLine:be,setHighlightCodeStatsLine:Fe,highlightCodeStatsVariable:ke,setHighlightCodeStatsVariable:De,filepath:Ce,datasource:A}),I&&Z&&t.jsx("div",e.__assign({className:i.default.citationWrapper,style:V.citationWrapper},{children:t.jsxs("div",e.__assign({className:i.default.citationContent,style:V.citationContent},{children:[!ue&&b?t.jsxs("div",e.__assign({className:i.default.citationContainerTitle,style:V.citationContainerTitle},{children:[t.jsx("span",{children:b}),F?t.jsx(o.default,{darkMode:te,onToggle:function(e){return function(e){e.stopPropagation(),e.preventDefault(),g.themeManager.setTheme(!te)}(e)},toggleFullscreen:function(e){e.stopPropagation(),e.preventDefault(),se(!0),le(!0)},handleOpenFileDetailSection:function(e){e.stopPropagation(),e.preventDefault(),fe(!0)},showFullscreenIcon:M,showFileSummaryIButton:B}):t.jsx(t.Fragment,{})]})):t.jsx(t.Fragment,{}),t.jsxs("div",e.__assign({style:{zIndex:-1e3,color:"#000",overflow:"hidden",display:"flex",flexDirection:"column",height:N,width:W,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[!ue&&!he&&H,we?t.jsx(u.default,{}):t.jsx(t.Fragment,{}),He?t.jsx("div",e.__assign({style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#242424"}},{children:"Something went wrong"})):t.jsx(t.Fragment,{}),!ue&&!he&&!H&&!we&&!He&&t.jsx(a.default,{startIndex:null==ze?void 0:ze.startIndex,endIndex:null==ze?void 0:ze.endIndex,language:Q,editorHeight:N,editorWidth:W,code:null!=T?T:ve,isHighlightingEnabled:w,isDarkModeEnabled:te,openHighlightedCodeDetails:function(){ce(!0)},highlightCodeStatsVariable:ke,setHighlightCodeStatsVariable:De,isExpanded:Z,highlightIndexes:ze,diagnostics:R,diagnosticStylesBySeverity:Re}),he&&t.jsx(l.default,{FileDetailsComponent:E,fileSummarySectionTitle:q,isDarkMode:te,editorHeight:N,editorWidth:W,code:null==pe?void 0:pe.content.split("\n").slice((null==ze?void 0:ze.startIndex)-1,null==ze?void 0:ze.endIndex).join("\n"),language:Q,onClose:function(e){e.stopPropagation(),e.preventDefault(),fe(!1)},summary:null==pe?void 0:pe.summary,filepath:Ce,citationTitle:C})]}))]}))}))]})};
2
- //# sourceMappingURL=CodeCitation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap");.CodeCitation-module_pillButton__pugFh{align-items:center;background-color:#1e2135;border:1px solid #344054;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-family:Plus Jakarta Sans,sans-serif;font-family:Montserrat,sans-serif;font-size:12px;font-weight:550;gap:6px;justify-content:space-between;line-height:18px;margin:8px 4px;padding:4px 8px;width:fit-content}.CodeCitation-module_citationWrapper__goB2r{display:flex;justify-content:center;margin-top:8px}.CodeCitation-module_citationContent__fFlqE{background-color:#111827;border-radius:12px;color:#fff;min-height:42rem;padding:12px;width:32rem}.CodeCitation-module_bookHeader__LxVTS{display:flex;justify-content:space-between;margin-bottom:24px}.CodeCitation-module_bookInfo__45kX0{display:flex;gap:16px}.CodeCitation-module_bookCover__AGca3{height:auto;object-fit:cover;width:40px}.CodeCitation-module_title__GgfpM{font-family:serif;font-size:1.25rem;font-weight:700}.CodeCitation-module_author__IyoJH{font-family:serif;font-size:1rem;font-weight:500}.CodeCitation-module_scrollContainer__iSbL4{background-color:#f2f0f0;border-radius:8px;color:#181b1f;font-family:Times New Roman,Times,serif;font-size:14.4px;height:100%;line-height:1.4;overflow-y:auto;padding:40px;position:relative}.CodeCitation-module_spineLeft__8goHj,.CodeCitation-module_spineRight__HG-aa{bottom:0;opacity:.5;pointer-events:none;position:absolute;top:0;width:16px;z-index:0}.CodeCitation-module_spineLeft__8goHj{background:linear-gradient(90deg,#000 0,#0009 40%,#0003 70%,#0000);box-shadow:4px 0 8px #0000001a;right:5px}.CodeCitation-module_spineRight__HG-aa{background:linear-gradient(270deg,#000 0,#000000b3 40%,#0006 70%,#0000);box-shadow:-4px 0 8px #0000001a;right:20px}.CodeCitation-module_quoteParagraph__-3mva{margin-bottom:1rem;text-align:justify}.CodeCitation-module_indent__KfIxR{text-indent:1rem}.CodeCitation-module_pageNumber__eUsN9{color:#374151;font-weight:500;padding:.5rem;text-align:center}.CodeCitation-module_citationContainerTitle__Dt0Bq{font-family:Plus Jakarta Sans,sans-serif}'));const e=document.head||document.getElementsByTagName("head")[0]||document.documentElement;e&&e.appendChild(o)}(),exports.default={pillButton:"CodeCitation-module_pillButton__pugFh",citationWrapper:"CodeCitation-module_citationWrapper__goB2r",citationContent:"CodeCitation-module_citationContent__fFlqE",bookHeader:"CodeCitation-module_bookHeader__LxVTS",bookInfo:"CodeCitation-module_bookInfo__45kX0",bookCover:"CodeCitation-module_bookCover__AGca3",title:"CodeCitation-module_title__GgfpM",author:"CodeCitation-module_author__IyoJH",scrollContainer:"CodeCitation-module_scrollContainer__iSbL4",spineLeft:"CodeCitation-module_spineLeft__8goHj",spineRight:"CodeCitation-module_spineRight__HG-aa",quoteParagraph:"CodeCitation-module_quoteParagraph__-3mva",indent:"CodeCitation-module_indent__KfIxR",pageNumber:"CodeCitation-module_pageNumber__eUsN9",citationContainerTitle:"CodeCitation-module_citationContainerTitle__Dt0Bq"};
2
- //# sourceMappingURL=CodeCitation.module.css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),r=require("react"),n=function(){return i.jsxs("svg",e.__assign({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[i.jsx("title",{children:"up"}),i.jsx("path",{d:"M460 321L426 355 262 192 98 355 64 321 262 125 460 321Z"})]}))};exports.default=function(s){var t=s.data,o=r.useState(!1);o[0];var a=o[1];return i.jsxs("div",e.__assign({style:{borderRadius:"4px",marginBottom:"8px",width:"100%"}},{children:[i.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"10px 12px",margin:"5px",backgroundColor:"rgba(0, 122, 204, 0.3)",borderRadius:"15px",border:"1px solid #007acc",fontSize:"13px",color:"#333",fontWeight:500,cursor:"pointer",transition:"background-color 0.3s"},onClick:function(){return a(function(e){return!e})}},{children:[t.name,i.jsx("span",e.__assign({style:{display:"inline-block",transform:"rotate(0deg)",transition:"transform 0.3s ease",fontSize:"16px"}},{children:i.jsx(n,{})}))]})),i.jsxs("div",e.__assign({style:{padding:"14px 18px",marginTop:"8px",backgroundColor:"#fcfcfc",border:"1px solid #e0e0e0",borderRadius:"10px",color:"#333",fontSize:"14px",lineHeight:"1.6",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.05)"}},{children:[i.jsx("div",e.__assign({style:{fontWeight:600,marginBottom:"6px",fontSize:"13px",color:"#666"}},{children:"Description:"})),i.jsx("div",{children:t.description})]}))]}))};
2
- //# sourceMappingURL=Accordian.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordian.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("@mui/icons-material"),s=require("./CodeCitationsStats.js"),l=require("../../../utils/codeCitations.utils.js"),a=require("@mui/material/Dialog"),n=require("@mui/material/IconButton"),o=require("@mui/material/DialogContent"),r=require("@mui/material/DialogTitle");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=d(a),g=d(n),h=d(o),u=d(r),c={body:{backgroundColor:"#fff",display:"flex",gap:"1rem",flexDirection:"row",paddingTop:"1rem",paddingRight:"1rem",paddingLeft:"1rem",minHeight:"60vh",maxWidth:"100%",overflow:"hidden"},leftSection:{display:"flex",flexDirection:"column",width:"50%",background:"#f6f6f6",borderRadius:"0.375rem",fontFamily:"Plus Jakarta Sans, sans-serif",overflowY:"scroll"},topLeft:{height:"50%",background:"#f9f9f9",display:"flex",flexDirection:"column",overflowY:"auto",borderRadius:"0.375rem"},bottomLeft:{height:"50%",background:"#f9f9f9",display:"flex",flexDirection:"column",overflowY:"auto",borderRadius:"0.375rem"},rightSection:{width:"50%",minHeight:"70vh",paddingLeft:"10px",backgroundColor:"#fff",zIndex:30}};exports.default=function(a){var n=a.open,o=a.onClose,r=a.title,d=a.customStyles,p=a.editorChildren,x=a.fileDetails,m=a.setHighlightIndexes,_=a.highlightCodeStatsLine,y=a.setHighlightCodeStatsLine,b=a.highlightCodeStatsVariable,v=a.setHighlightCodeStatsVariable,C=a.filepath,S=a.datasource,j=void 0===S?"codebase":S;return i.jsxs(f.default,e.__assign({open:n,onClose:o,maxWidth:"xl",fullWidth:!0,PaperProps:{style:e.__assign({},null==d?void 0:d.popupContainer)}},{children:[i.jsxs(u.default,e.__assign({style:(null==d?void 0:d.popupTitleContainer)||{fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"bold"}},{children:[i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column"}},{children:[i.jsx("span",e.__assign({style:{fontWeight:"bold",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:r})),i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"row",gap:"5px",fontSize:"0.875rem",color:"#666",marginTop:"0.25rem"}},{children:[i.jsx("span",e.__assign({style:{fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:"File path: "})),i.jsxs("span",e.__assign({style:{fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[" ",l.returnCitationTitle(C,j)]}))]}))]})),i.jsx(g.default,e.__assign({edge:"end",onClick:o,"aria-label":"close",style:{position:"absolute",top:5,right:16},size:"large"},{children:i.jsx(t.Close,{})}))]})),i.jsxs(h.default,e.__assign({style:e.__assign(e.__assign({},c.body),null==d?void 0:d.body)},{children:[i.jsx("div",e.__assign({style:(null==d?void 0:d.leftSection)||c.leftSection},{children:i.jsx(s.default,{datasource:j,fileDetails:x,setHighlightIndexes:m,highlightCodeStatsLine:_,setHighlightCodeStatsLine:y,highlightCodeStatsVariable:b,setHighlightCodeStatsVariable:v})})),i.jsxs("div",e.__assign({style:c.rightSection},{children:[i.jsx("div",e.__assign({style:{minHeight:"4vh",fontWeight:"700",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:l.returnCodeTitle(j)})),i.jsx("div",e.__assign({style:{width:"100%",height:"100%"}},{children:p}))]}))]}))]}))};
2
- //# sourceMappingURL=CodeCitationPopup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeCitationPopup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),i=require("./DescriptionWithToggle.js"),t=require("./StatsComponents/StatsComponent.js"),n=function(e){return e.replace(/^(\s*)\*\*overview\*\*/im,"$1**Code Overview**")};exports.default=function(d){var r,l,a,s,u,c,p,x,f,g,h,v,m,_,b=d.fileDetails,C=d.setHighlightIndexes,y=d.highlightCodeStatsLine,S=d.setHighlightCodeStatsLine,k=d.highlightCodeStatsVariable,w=d.datasource,N=d.setHighlightCodeStatsVariable,I={container:{width:"90%",margin:"0 auto",borderRadius:"4px",marginTop:"5px",paddingBottom:"10px"},descriptionsContainer:{border:"1px solid #ddd"},header:{backgroundColor:"#fff",padding:"10px 15px",borderBottom:"2px solid #f0f0f0",color:"#333",fontWeight:"bold",fontSize:"16px"},description:{padding:"15px",fontSize:"14px",lineHeight:"1.5rem",color:"#555",backgroundColor:"#fff"},metrics:{display:"flex",padding:"10px 15px",borderBottom:"1px solid #eee",gap:"20px"},metric:{display:"flex",alignItems:"center",gap:"5px",fontSize:"14px",color:"#555"},metricIcon:{color:"#6366f1",marginRight:"5px"},expandableSection:{marginTop:"10px",border:"1px solid #ddd"},sectionHeader:{padding:"15px",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:"#fff"},sectionTitle:{fontSize:"14px",fontWeight:"bold",color:"#333"},sectionContent:{padding:"15px",fontSize:"14px",color:"#555",backgroundColor:"#fff"},tag:{display:"inline-block",padding:"10px 12px",margin:"5px",backgroundColor:"#FFF7ED",borderRadius:"15px",fontSize:"13px",color:"#555",cursor:"pointer",maxWidth:"100%",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal"},highlightTag:{display:"inline-block",padding:"10px 12px",margin:"5px",backgroundColor:"rgba(0, 122, 204, 0.3)",borderRadius:"15px",border:"1px #ff8e00",fontSize:"13px",color:"#555",cursor:"pointer",axWidth:"100%",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal"},categoryTitle:{fontSize:"14px",fontWeight:"bold",margin:"15px 5px 10px 5px",color:"#333"},tabContainer:{display:"flex",borderBottom:"1px solid #ddd",marginBottom:"10px"},tab:{padding:"8px 16px",cursor:"pointer",fontSize:"13px"},activeTab:{borderBottom:"2px solid #6366f1",color:"#6366f1"}},A={header:"Code Overview",description:n((null===(r=null==b?void 0:b.summary)||void 0===r?void 0:r.trim())||""),stats:[{header:"Total Class",count:(null===(l=null==b?void 0:b.file_stats)||void 0===l?void 0:l.classes_count)||"NA"},{header:"Total Functions",count:(null===(a=null==b?void 0:b.file_stats)||void 0===a?void 0:a.functions_count)||"NA"},{header:"Total Lines of Code",count:(null===(s=null==b?void 0:b.file_stats)||void 0===s?void 0:s.code_lines_count)||"NA"}]},j={header:"DB Overview",description:n((null===(u=null==b?void 0:b.summary)||void 0===u?void 0:u.trim())||""),stats:[{header:"Check Constraints",count:(null===(c=null==b?void 0:b.file_stats)||void 0===c?void 0:c.check_constraint_count)||"NA"},{header:"Composite Key",count:(null===(p=null==b?void 0:b.file_stats)||void 0===p?void 0:p.composite_key_count)||"NA"},{header:"Foreign Key",count:(null===(x=null==b?void 0:b.file_stats)||void 0===x?void 0:x.foreign_key_count)||"NA"},{header:"Default Constraint",count:(null===(f=null==b?void 0:b.file_stats)||void 0===f?void 0:f.default_constraint_count)||"NA"},{header:"Indexed Column",count:(null===(g=null==b?void 0:b.file_stats)||void 0===g?void 0:g.indexed_column_count)||"NA"},{header:"Not Null Constraint",count:(null===(h=null==b?void 0:b.file_stats)||void 0===h?void 0:h.not_null_constraint_count)||"NA"},{header:"Primary Key",count:(null===(v=null==b?void 0:b.file_stats)||void 0===v?void 0:v.primary_key_count)||"NA"},{header:"Regular Column",count:(null===(m=null==b?void 0:b.file_stats)||void 0===m?void 0:m.other_columns_count)||"NA"},{header:"Unique Key Constraint",count:(null===(_=null==b?void 0:b.file_stats)||void 0===_?void 0:_.unique_key_constraint_count)||"NA"}]};return o.jsxs("div",{children:[o.jsxs("div",e.__assign({style:{padding:"12px 16px",fontSize:"16px",fontWeight:"700"}},{children:[o.jsx("span",{children:"Codemon."}),o.jsx("span",e.__assign({style:{color:"blue"}},{children:"AI"}))]})),o.jsxs("div",e.__assign({style:I.container},{children:[o.jsx(i.DescriptionWithToggle,{datasource:w,overViewData:"db"===w?j:A}),o.jsx(t.default,{datasource:w,fileDetails:b,styles:I,highlightCodeStatsLine:y,handleStatsPillClick:function(e,o,i){C({}),N({}),S({startIndex:Number(e),endIndex:Number(o),name:i})},highlightCodeStatsVariable:k,handleVariableClick:function(e,o,i){o&&i&&-1!==o&&-1!==i&&(C({startIndex:o,endIndex:i}),S({startIndex:-1,endIndex:-1}),N({variableName:e,startIndex:o,endIndex:i}))}})]}))]})};
2
- //# sourceMappingURL=CodeCitationsStats.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeCitationsStats.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),r=require("../../../utils/codeCitations.utils.js");function o(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,Object.freeze(n)}exports.DiagnosticSeverity=void 0,(e=exports.DiagnosticSeverity||(exports.DiagnosticSeverity={}))[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint";exports.default=function(e){var a=e.startIndex,l=e.endIndex,s=e.language,d=e.editorHeight,u=e.editorWidth,c=e.code,g=e.isHighlightingEnabled,v=e.isDarkModeEnabled,f=e.openHighlightedCodeDetails,h=e.highlightCodeStatsLine;e.setHighlightCodeStatsLine;var m=e.highlightCodeStatsVariable;e.setHighlightCodeStatsVariable,e.setHighlightIndexes;var p=e.isExpanded,x=e.highlightIndexes,y=e.diagnostics,S=e.diagnosticStylesBySeverity,b=i.useRef(null),I=i.useRef([]);i.useRef([]);var j=i.useRef([]),C=i.useRef([]),O=i.useMemo(function(){return a},[a]),R=i.useMemo(function(){return l},[l]),L=i.useState(null),D=L[0],w=L[1],E=i.useState(null),M=E[0],k=E[1],H=i.useState(null),N=H[0],_=H[1],q=i.useState(void 0),P=q[0],V=q[1],W=i.useState(null),F=W[0],T=W[1];i.useEffect(function(){Promise.all([Promise.resolve().then(function(){return o(require("@monaco-editor/react"))}),Promise.resolve().then(function(){return o(require("highlight.js/lib/core"))})]).then(function(e){var n=e[0],t=e[1];_(function(){return n.default});var i=t.default.highlightAuto(c).language;V(i)}).catch(function(){T("Code editor dependencies not installed. Run: npm install @monaco-editor/react highlight.js")})},[c]);var z=i.useMemo(function(){return S&&"object"==typeof S&&Object.entries(S).map(function(e){var n=e[0],t=e[1],i=[];return t.style&&i.push(".".concat(r.generateClassName(t.style,+n,!0)," {\n").concat(r.cssPropertiesToString(t.style),"\n}")),t.lightModeStyle&&i.push(".".concat(r.generateClassName(t.lightModeStyle,+n,!1)," {\n").concat(r.cssPropertiesToString(t.lightModeStyle),"\n}")),i.join("\n")}).join("\n")},[S]);i.useEffect(function(){return function(){var e;(null===(e=b.current)||void 0===e?void 0:e._resizeObserver)&&b.current._resizeObserver.disconnect()}},[]),i.useEffect(function(){if(g&&D&&b.current&&M){var e=D.start,n=D.end;if(A(b.current,e,n,h,m),-1===a&&y&&y.length>0){var t=y[0].range,i=t.lineStart,r=t.lineEnd;A(b.current,i,r,h,m)}}},[D,M,g,h,m]),i.useEffect(function(){var e,n,t;if(M&&b.current&&g){var i=b.current;if(x&&(null===(e=Object.keys(x))||void 0===e?void 0:e.length)>0&&-1!==(null==x?void 0:x.startIndex)&&-1!==(null==x?void 0:x.endIndex)){var r=i.deltaDecorations(I.current,[{range:new M.Range(x.startIndex,1,x.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);I.current=r}if(h&&(null===(n=Object.keys(h))||void 0===n?void 0:n.length)>0&&-1!==(null==h?void 0:h.startIndex)&&-1!==(null==h?void 0:h.endIndex)&&(null==h?void 0:h.name)){r=i.deltaDecorations(I.current,[{range:new M.Range(h.startIndex,1,h.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);I.current=r}if(m&&(null===(t=Object.keys(m))||void 0===t?void 0:t.length)>0&&-1!==(null==m?void 0:m.startIndex)&&-1!==(null==m?void 0:m.endIndex)&&(null==h?void 0:h.name)){r=i.deltaDecorations(j.current,[{range:new M.Range(m.startIndex,1,m.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);j.current=r}}},[a,l,g,M,h,JSON.stringify(m)]),i.useEffect(function(){if(M&&b.current&&(null==y?void 0:y.length)&&S){var e=b.current,n=y.map(function(e){var n,t,i=r.getClassNameFromDiagnostic(e.severity,null==v||v,S);return{range:new M.Range(e.range.lineStart,null!==(n=e.range.columnStart)&&void 0!==n?n:1,e.range.lineEnd,null!==(t=e.range.columnEnd)&&void 0!==t?t:1),options:{className:i,isWholeLine:void 0===e.range.columnStart}}});C.current=e.deltaDecorations(C.current,n)}},[y,S,M,v]);var A=i.useCallback(function(e,n,t,i,r){var o,a;if(M&&e&&g){var l=e.getModel();l&&(n=Math.max(-1,n),(t=Math.min(t,l.getLineCount()))<n&&(t=n),requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new M.Range(n,1,t,1),M.editor.ScrollType.Smooth),e.setSelection(new M.Range(n,1,t+1,1))}),i&&-1!==(null==i?void 0:i.startIndex)&&-1!==(null==i?void 0:i.endIndex)&&requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new M.Range(i.startIndex,1,i.endIndex,1),M.editor.ScrollType.Smooth),e.setSelection(new M.Range(i.startIndex,1,i.endIndex+1,1))}),0===(null===(o=Object.keys(r))||void 0===o?void 0:o.length)&&e.getContribution("editor.contrib.findController").getState().change({isRevealed:!1},!1),(null===(a=Object.keys(r))||void 0===a?void 0:a.length)>0&&(requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new M.Range(r.startIndex,1,r.endIndex,1),M.editor.ScrollType.Smooth),e.setSelection(new M.Range(r.startIndex,1,r.endIndex+1,1))}),e.trigger("keyboard","actions.find"),e.getAction("actions.find").run(),e.getContribution("editor.contrib.findController").getState().change({searchString:(null==r?void 0:r.variableName)||"",isRevealed:!0},!1)))}},[M,g,a,l,null==h?void 0:h.startIndex,null==h?void 0:h.endIndex,m]);i.useEffect(function(){if(b.current&&M&&g){var e=b.current,n=e.onDidLayoutChange(function(){if(A(e,a,l,h,m),-1===a&&y&&y.length>0){var n=y[0].range,t=n.lineStart,i=n.lineEnd;A(e,t,i,h,m)}});return function(){return n.dispose()}}},[A,a,l,g,null==h?void 0:h.startIndex,null==h?void 0:h.endIndex,m,p]);var B=i.useCallback(function(e,n){A(e,O,R),b.current=e,k(n),w({start:O,end:R});var t=e.getContainerDomNode(),i=new ResizeObserver(function(){e.layout()});if(i.observe(t),b.current._resizeObserver=i,g){var r=e.getDomNode(),o=document.createElement("div");null==r||r.appendChild(o);var a=function(){var n=e.getTopForLineNumber(O)-e.getScrollTop();o.style.top="".concat(n,"px")};e.onDidScrollChange(a),a()}},[a,l,g,f]);return F?t.jsx("div",n.__assign({style:{color:"red",fontSize:"12px",padding:"8px"}},{children:F})):N?t.jsxs(t.Fragment,{children:[t.jsx(N,{height:d,width:u,defaultLanguage:P||s,defaultValue:c,theme:v?"vs-dark":"vs-light",onMount:B,beforeMount:function(e){e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0})},options:{minimap:{enabled:!0},overviewRulerLanes:3,fontFamily:"Plus Jakarta Sans, sans-serif",scrollBeyondLastLine:!1,readOnly:!0,smoothScrolling:!0,automaticLayout:!0,lineDecorationsWidth:10,padding:{top:20,bottom:20}}}),t.jsxs("style",{children:[z,".myLineHighlight { background-color: rgba(0, 122, 204, 0.3); }"]})]}):t.jsx("div",n.__assign({style:{padding:"8px",color:"#666"}},{children:"Loading code editor..."}))};
2
- //# sourceMappingURL=CodeEditor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeEditor.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),o=require("react"),r=require("react-markdown"),i=require("rehype-raw");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=t(r),d=t(i),l=function(o){var r=o.IconComponent,i=o.text,t=o.number;return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyItems:"center",gap:"5px",color:"#5928ED",fontSize:"0.75rem"}},{children:[r,n.jsx("span",e.__assign({style:{fontWeight:"500"}},{children:i})),n.jsx("span",e.__assign({style:{backgroundColor:"#E9ECFD",borderRadius:"0.25rem",paddingLeft:"0.25rem",paddingRight:"0.25rem"}},{children:t}))]}))},a=function(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[n.jsx("path",{d:"M2.33333 5.33333H10.6667M10.6667 5.33333V13.6667M10.6667 5.33333L13.6667 2.33333M14 10.2248V2.53333C14 2.34665 14 2.25331 13.9637 2.182C13.9317 2.11928 13.8807 2.06829 13.818 2.03633C13.7467 2 13.6534 2 13.4667 2H5.77516C5.6121 2 5.53057 2 5.45385 2.01842C5.38582 2.03475 5.32079 2.06169 5.26114 2.09824C5.19387 2.13947 5.13622 2.19712 5.02091 2.31242L2.31242 5.02091C2.19712 5.13621 2.13947 5.19387 2.09824 5.26114C2.06169 5.32079 2.03475 5.38582 2.01842 5.45385C2 5.53057 2 5.6121 2 5.77516V13.4667C2 13.6534 2 13.7467 2.03633 13.818C2.06829 13.8807 2.11928 13.9317 2.182 13.9637C2.25331 14 2.34665 14 2.53333 14H10.2248C10.3879 14 10.4694 14 10.5462 13.9816C10.6142 13.9652 10.6792 13.9383 10.7389 13.9018C10.8061 13.8605 10.8638 13.8029 10.9791 13.6876L13.6876 10.9791C13.8029 10.8638 13.8605 10.8061 13.9018 10.7389C13.9383 10.6792 13.9652 10.6142 13.9816 10.5462C14 10.4694 14 10.3879 14 10.2248Z",stroke:"url(#paint0_linear_5418_41338)","stroke-linecap":"round","stroke-linejoin":"round"}),n.jsx("defs",{children:n.jsxs("linearGradient",e.__assign({id:"paint0_linear_5418_41338",x1:"-0.857143",y1:"-0.772414",x2:"13.3773",y2:"5.89501",gradientUnits:"userSpaceOnUse"},{children:[n.jsx("stop",{"stop-color":"#2546F0"}),n.jsx("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},p=function(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},{children:[n.jsx("path",{d:"M13.7709 14C14.6644 12.1926 15.1668 10.1553 15.1668 8C15.1668 5.84474 14.6644 3.80744 13.7709 2M3.22945 2C2.33592 3.80744 1.8335 5.84474 1.8335 8C1.8335 10.1553 2.33592 12.1926 3.22945 14M11.5326 5.75H11.4728C11.0372 5.75 10.6233 5.94134 10.3399 6.27381L6.75664 10.4762C6.47315 10.8087 6.0593 11 5.6237 11H5.56392M6.31005 5.75H7.23944C7.57256 5.75 7.86531 5.97198 7.95682 6.29396L9.13978 10.456C9.23129 10.778 9.52404 11 9.85716 11H10.7866",stroke:"url(#paint0_linear_5418_41361)","stroke-linecap":"round","stroke-linejoin":"round"}),n.jsx("defs",{children:n.jsxs("linearGradient",e.__assign({id:"paint0_linear_5418_41361",x1:"-1.34111",y1:"-0.772414",x2:"13.8345",y2:"7.12565",gradientUnits:"userSpaceOnUse"},{children:[n.jsx("stop",{"stop-color":"#2546F0"}),n.jsx("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},c=function(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[n.jsx("path",{d:"M9.33317 1.51172V4.26541C9.33317 4.63878 9.33317 4.82546 9.40583 4.96807C9.46975 5.09351 9.57173 5.1955 9.69718 5.25942C9.83978 5.33208 10.0265 5.33208 10.3998 5.33208H13.1535M10.6665 8.66536H5.33317M10.6665 11.332H5.33317M6.6665 5.9987H5.33317M9.33317 1.33203H5.8665C4.7464 1.33203 4.18635 1.33203 3.75852 1.55002C3.3822 1.74176 3.07624 2.04773 2.88449 2.42405C2.6665 2.85187 2.6665 3.41193 2.6665 4.53203V11.4654C2.6665 12.5855 2.6665 13.1455 2.88449 13.5733C3.07624 13.9497 3.3822 14.2556 3.75852 14.4474C4.18635 14.6654 4.7464 14.6654 5.8665 14.6654H10.1332C11.2533 14.6654 11.8133 14.6654 12.2412 14.4474C12.6175 14.2556 12.9234 13.9497 13.1152 13.5733C13.3332 13.1455 13.3332 12.5855 13.3332 11.4654V5.33203L9.33317 1.33203Z",stroke:"url(#paint0_linear_5418_41370)","stroke-linecap":"round","stroke-linejoin":"round"}),n.jsx("defs",{children:n.jsxs("linearGradient",e.__assign({id:"paint0_linear_5418_41370",x1:"0.126822",y1:"-1.74843",x2:"13.656",y2:"3.32123",gradientUnits:"userSpaceOnUse"},{children:[n.jsx("stop",{"stop-color":"#2546F0"}),n.jsx("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},x={container:{width:"90%",margin:"0 auto",borderRadius:"4px",marginTop:"20px"},descriptionsContainer:{border:"1px solid #ddd"},header:{backgroundColor:"#fff",padding:"10px 15px",color:"#333",fontWeight:"bold",fontSize:"16px"},description:{padding:"5px 10px",fontSize:"14px",lineHeight:"1.5rem",color:"#555",backgroundColor:"#fff"},metrics:{display:"flex",padding:"10px 15px",borderBottom:"1px solid #eee",gap:"20px"},metric:{display:"flex",alignItems:"center",gap:"5px",fontSize:"14px",color:"#555"},metricIcon:{color:"#6366f1",marginRight:"5px"},expandableSection:{marginTop:"10px",border:"1px solid #ddd"},sectionHeader:{padding:"15px",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:"#fff"},sectionTitle:{fontSize:"14px",fontWeight:"bold",color:"#333"},sectionContent:{padding:"15px",fontSize:"14px",color:"#555",backgroundColor:"#fff"},tag:{display:"inline-block",padding:"10px 12px",margin:"5px",backgroundColor:"#FFF7ED",borderRadius:"15px",fontSize:"13px",color:"#555",cursor:"pointer"},categoryTitle:{fontSize:"14px",fontWeight:"bold",margin:"15px 5px 10px 5px",color:"#333"},tabContainer:{display:"flex",borderBottom:"1px solid #ddd",marginBottom:"10px"},tab:{padding:"8px 16px",cursor:"pointer",fontSize:"13px"},activeTab:{borderBottom:"2px solid #6366f1",color:"#6366f1"}},u={p:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("p",e.__assign({},r,{className:"max-w-full break-words text-base leading-relaxed my-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==r?void 0:r.children}))},pre:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("p",e.__assign({},r,{className:"max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==r?void 0:r.children}))},code:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("code",e.__assign({},r,{className:"text-[#d63384] max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",textAlign:"justify"}},{children:null==r?void 0:r.children}))},ol:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("ol",e.__assign({style:{listStyle:"decimal",marginLeft:"1rem",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:r.children}))},li:function(o){o.node;var r=e.__rest(o,["node"]);return n.jsx("li",e.__assign({style:{marginTop:"1rem",marginBottom:"1rem"}},{children:r.children}))},a:function(o){o.node;var r=e.__rest(o,["node"]),i=!1;try{i=new URL(r.href||"").protocol.startsWith("http")}catch(e){i=!1}return n.jsx("a",e.__assign({href:r.href,style:{display:"inline-flex",pointerEvents:i?"auto":"none"}},{children:r.children}))}};exports.DescriptionWithToggle=function(r){var i,t,f,g,h,m,v,_,w=r.overViewData;r.ReactMarkdownComponent;var C,b,j=r.datasource,y=void 0===j?"codebase":j,k=o.useState(!1),S=k[0],F=k[1],M=(null===(i=null==w?void 0:w.description)||void 0===i?void 0:i.length)>750,H=S?null==w?void 0:w.description:(void 0===(C=null==w?void 0:w.description)&&(C=""),void 0===(b=3)&&(b=3),(C.match(/[^.!?]*[.!?]/g)||[]).slice(0,b).join(" ").trim()+(M?"...":""));return n.jsxs("div",e.__assign({style:x.descriptionsContainer},{children:[n.jsxs("div",e.__assign({style:x.description},{children:[n.jsx(s.default,e.__assign({rehypePlugins:[d.default],components:u},{children:H})),M&&n.jsx("span",e.__assign({onClick:function(){return F(function(e){return!e})},style:{color:"#007bff",cursor:"pointer",marginLeft:0}},{children:S?"View Less":"View More"}))]})),n.jsx("div",e.__assign({style:{paddingTop:"1%",display:"db"===y?"grid":"flex",gridTemplateColumns:"db"===y?"repeat(4, 1fr)":void 0,flexWrap:"db"!==y?"wrap":void 0,alignItems:"center",gap:"10px",backgroundColor:"#FFF",padding:"10px 15px",borderBottom:"1px solid #ddd",overflow:"wrap"}},{children:"db"===y?null===(t=null==w?void 0:w.stats)||void 0===t?void 0:t.filter(function(e){return"NA"!==e.count}).map(function(e,o){return n.jsx(l,{IconComponent:"table"===e.type?n.jsx(a,{}):"function"===e.type?n.jsx(p,{}):"lineOfCode"===e.type?n.jsx(c,{}):null,text:null==e?void 0:e.header,number:e.count},o)}):n.jsxs(n.Fragment,{children:[n.jsx(l,{IconComponent:n.jsx(a,{}),text:"Total Class",number:null===(g=null===(f=null==w?void 0:w.stats)||void 0===f?void 0:f[0])||void 0===g?void 0:g.count}),n.jsx(l,{IconComponent:n.jsx(p,{}),text:"Total Functions",number:null===(m=null===(h=null==w?void 0:w.stats)||void 0===h?void 0:h[1])||void 0===m?void 0:m.count}),n.jsx(l,{IconComponent:n.jsx(c,{}),text:"Total Lines of Code",number:null===(_=null===(v=null==w?void 0:w.stats)||void 0===v?void 0:v[2])||void 0===_?void 0:_.count})]})}))]}))};
2
- //# sourceMappingURL=DescriptionWithToggle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DescriptionWithToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),n=require("react-markdown"),i=require("rehype-raw");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(n),l=s(i),t=function(){return r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:[r.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}))},o={p:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("p",e.__assign({},i,{className:"max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==i?void 0:i.children}))},pre:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("p",e.__assign({},i,{className:"max-w-full break-words text-base leading-relaxed mb-4 overflow-hidden overflow-x-hidden ",style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"block",textAlign:"justify"}},{children:null==i?void 0:i.children}))},code:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("span",e.__assign({},i,{style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",textAlign:"justify"}},{children:null==i?void 0:i.children}))},ol:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("ol",e.__assign({style:{listStyle:"decimal",marginLeft:"1rem",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:i.children}))},li:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("li",e.__assign({style:{marginTop:"1rem",marginBottom:"1rem"}},{children:i.children}))},a:function(n){n.node;var i=e.__rest(n,["node"]);return r.jsx("a",e.__assign({href:i.href,style:{display:"inline-flex"}},{children:i.children}))}};exports.default=function(n){var i=n.fileSummarySectionTitle,s=n.FileDetailsComponent,d=n.onClose;n.editorHeight,n.editorWidth,n.code,n.language,n.isDarkMode;var c=n.summary,f=n.filepath,h=n.citationTitle;return r.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",width:"100%",height:"95%",overflow:"hidden",color:"#242424"}},{children:[r.jsxs("div",e.__assign({style:{flexShrink:0,display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem"}},{children:[r.jsx("div",e.__assign({style:{fontWeight:600,textAlign:"center",flex:1}},{children:i})),r.jsx("div",e.__assign({style:{cursor:"pointer"},onClick:d},{children:r.jsx(t,{})}))]})),r.jsx("div",e.__assign({style:{flex:1,overflowY:"auto"}},{children:s||("Generated Code"!==h?r.jsxs("div",e.__assign({style:{padding:"0 0.5rem",wordBreak:"break-word",lineHeight:"2rem"}},{children:[f?r.jsxs(r.Fragment,{children:[r.jsx("span",e.__assign({style:{fontWeight:700}},{children:"File path: "})),r.jsx("span",{children:f})]}):r.jsx(r.Fragment,{}),r.jsx(a.default,e.__assign({rehypePlugins:[l.default],components:o},{children:c}))]})):r.jsx("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0 0.5rem",wordBreak:"break-word",lineHeight:"2rem"}},{children:r.jsx("span",{children:"No file summary found for the generated code"})})))}))]}))};
2
- //# sourceMappingURL=HighlightedCodeDetails.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HighlightedCodeDetails.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(require("@mui/material/CircularProgress"));exports.default=function(){return t.jsxs("div",e.__assign({role:"alert","aria-busy":"true","aria-label":"Loading content",style:{color:"#242424",display:"flex",justifyContent:"center",alignItems:"center",gap:"1rem",height:"100vh",fontSize:"1rem",padding:"0 1rem",textAlign:"center"}},{children:[t.jsx(i.default,{size:24}),t.jsx("div",e.__assign({"aria-live":"polite"},{children:"Curating code and file statistics, please wait..."}))]}))};
2
- //# sourceMappingURL=Spinner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Spinner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react/jsx-runtime"),i=require("react"),l=require("../Accordian.js"),d=require("../../../../assests/svg/chevronUp.svg.js"),t=require("../../../../assests/svg/chevronDownArrow.svg.js"),s=function(){return e.jsxs("svg",n.__assign({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("title",{children:"down"}),e.jsx("path",{d:"M64 191L98 157 262 320 426 157 460 191 262 387 64 191Z"})]}))};exports.default=function(o){var r,a,u,v,c,h,x,_,m,g,p,f,j,y,I,b,C,k,w=o.fileDetails,S=o.styles,A=o.highlightCodeStatsLine,F=o.handleStatsPillClick,T=o.highlightCodeStatsVariable,U=o.handleVariableClick,q=i.useState(["Technical Artifacts","Class","Functions","Procedure","Tables","Global Variables","Services Used","Internal Services","External Services","Columns","Check Constraints","Composite Keys","Default Constraints","Foreign Keys","Indexed Columns","Not Null Constraints","Other Columns","Primary Keys","Unique Constraints"]),N=q[0],V=q[1],M=i.useState("Used"),P=M[0],G=M[1],D=i.useMemo(function(){return"Used"===P?0:1},[P]),K=((null===(a=null===(r=null==w?void 0:w.chunk_details)||void 0===r?void 0:r.code_artifacts)||void 0===a?void 0:a.classes)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),E=((null===(v=null===(u=null==w?void 0:w.chunk_details)||void 0===u?void 0:u.code_artifacts)||void 0===v?void 0:v.functions)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),L=((null===(h=null===(c=null==w?void 0:w.chunk_details)||void 0===c?void 0:c.code_artifacts)||void 0===h?void 0:h.procedures)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),O=((null===(_=null===(x=null==w?void 0:w.chunk_details)||void 0===x?void 0:x.code_artifacts)||void 0===_?void 0:_.tables)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),B=(null===(p=null===(g=null===(m=null==w?void 0:w.chunk_details)||void 0===m?void 0:m.code_artifacts)||void 0===g?void 0:g.global_variables)||void 0===p?void 0:p.used)||[],H=Array.from(new Map(B.map(function(n){return[n.name,{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1,lineNumbers:(null==n?void 0:n.line_numbers)||[]}]})).values()),Z=(null===(y=null===(j=null===(f=null==w?void 0:w.chunk_details)||void 0===f?void 0:f.code_artifacts)||void 0===j?void 0:j.global_variables)||void 0===y?void 0:y.not_used)||[],z=Array.from(new Map(Z.map(function(n){return[n.name,{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1,lineNumbers:(null==n?void 0:n.line_numbers)||[]}]})).values()),J=((null===(b=null===(I=null==w?void 0:w.chunk_details)||void 0===I?void 0:I.services)||void 0===b?void 0:b.internal_services)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),Q=((null===(k=null===(C=null==w?void 0:w.chunk_details)||void 0===C?void 0:C.services)||void 0===k?void 0:k.external_services)||[]).map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}}),R=[{header:"Technical Artifacts",content:[{header:"Class",content:K},{header:"Functions",content:E},{header:"Procedure",content:L},{header:"Tables",content:O},{header:"Global Variables",content:n.__spreadArray(n.__spreadArray([],H,!0),z,!0)}]},{header:"Services Used",content:[{header:"External Services",content:Q},{header:"Call to other files",content:J}]}],W=[{header:"Used",content:H||[]},{header:"Unused",content:z||[]}];return e.jsx("div",n.__assign({style:S},{children:R.map(function(i){var o,r=N.includes(i.header);return i.content.every(function(n){return 0===n.content.length})?e.jsx(e.Fragment,{}):e.jsxs("div",n.__assign({style:S.expandableSection},{children:[e.jsxs("div",n.__assign({style:S.sectionHeader,onClick:function(){V(r?function(n){return n.filter(function(n){return n!==i.header})}:function(e){return e.includes(i.header)?e:n.__spreadArray(n.__spreadArray([],e,!0),[i.header],!1)})}},{children:[e.jsx("div",n.__assign({style:S.sectionTitle},{children:null==i?void 0:i.header})),e.jsx("img",{src:r?d.default:t.default})]})),r&&(null===(o=null==i?void 0:i.content)||void 0===o?void 0:o.map(function(i){var d,t,o,r,a;return(null===(d=null==i?void 0:i.content)||void 0===d?void 0:d.length)?e.jsx("div",n.__assign({style:S.sectionContent},{children:e.jsxs("div",{children:[e.jsx("div",n.__assign({style:S.categoryTitle},{children:null==i?void 0:i.header})),"Global Variables"===(null==i?void 0:i.header)&&e.jsxs("div",{children:[e.jsx("div",n.__assign({style:S.tabContainer},{children:W.map(function(i){var l,d,t,s;return(null===(l=null==i?void 0:i.content)||void 0===l?void 0:l.length)>0&&(null===(t=null===(d=W[D])||void 0===d?void 0:d.content)||void 0===t?void 0:t.length)?e.jsxs("div",n.__assign({style:n.__assign(n.__assign({},S.tab),P===i.header?S.activeTab:{}),onClick:function(){return G(i.header)}},{children:[i.header," ","(",null===(s=null==i?void 0:i.content)||void 0===s?void 0:s.length,")"]}),i.header):e.jsx(e.Fragment,{})})})),(null===(t=W[D])||void 0===t?void 0:t.content)?null===(r=null===(o=W[D])||void 0===o?void 0:o.content)||void 0===r?void 0:r.map(function(i){var d=(null==T?void 0:T.variableName)===(null==i?void 0:i.name);return d?e.jsx("div",n.__assign({style:{width:"100%"}},{children:e.jsx(l.default,{data:i})})):e.jsx(e.Fragment,{children:e.jsxs("span",n.__assign({style:n.__assign(n.__assign({},d?S.highlightTag:S.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return U(null==i?void 0:i.name,null==i?void 0:i.startIndex,null==i?void 0:i.endIndex)}},{children:[null==i?void 0:i.name,e.jsx("span",n.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:e.jsx(s,{})}))]}))})}):e.jsx(e.Fragment,{})]}),"Global Variables"!==(null==i?void 0:i.header)?e.jsx("div",{children:null===(a=null==i?void 0:i.content)||void 0===a?void 0:a.map(function(i){var d,t,o=-1!==(null==i?void 0:i.startIndex)&&-1!==(null==i?void 0:i.endIndex)&&Number(null==i?void 0:i.startIndex)===(null==A?void 0:A.startIndex)&&Number(null==i?void 0:i.endIndex)===(null==A?void 0:A.endIndex)&&(null===(d=null==A?void 0:A.name)||void 0===d?void 0:d.trim())===(null===(t=null==i?void 0:i.name)||void 0===t?void 0:t.trim());return o?e.jsx("div",n.__assign({style:{width:"100%"}},{children:e.jsx(l.default,{data:i})})):e.jsx(e.Fragment,{children:e.jsxs("span",n.__assign({style:n.__assign(n.__assign({},o?S.highlightTag:S.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return F(null==i?void 0:i.startIndex,null==i?void 0:i.endIndex,null==i?void 0:i.name)}},{children:[null==i?void 0:i.name,e.jsx("span",n.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:e.jsx(s,{})}))]}))})})}):e.jsx(e.Fragment,{})]})})):e.jsx(e.Fragment,{})}))]}))})}))};
2
- //# sourceMappingURL=CodebaseStatsComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodebaseStatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("react/jsx-runtime"),t=require("react"),i=require("../Accordian.js"),l=require("../../../../assests/svg/chevronUp.svg.js"),s=require("../../../../assests/svg/chevronDownArrow.svg.js"),r=function(){return e.jsxs("svg",n.__assign({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("title",{children:"down"}),e.jsx("path",{d:"M64 191L98 157 262 320 426 157 460 191 262 387 64 191Z"})]}))};exports.default=function(d){var o,a=d.fileDetails,u=d.styles,c=d.highlightCodeStatsLine,v=d.handleStatsPillClick,h=t.useState(["Columns","Check Constraints","Composite Keys","Default Constraints","Foreign Keys","Indexed Columns","Not Null Constraints","Regular Columns","Primary Keys","Unique Constraints"]),x=h[0],_=h[1],g=(null===(o=null==a?void 0:a.chunk_details)||void 0===o?void 0:o.column_names)||{},m=function(n){return void 0===n&&(n=[]),n.map(function(n){return{name:null==n?void 0:n.name,description:null==n?void 0:n.description,startIndex:(null==n?void 0:n.start)||-1,endIndex:(null==n?void 0:n.end)||-1}})},p=m(null==g?void 0:g.check_constraints),y=m(null==g?void 0:g.composite_keys),f=m(null==g?void 0:g.default_constraints),j=m(null==g?void 0:g.foreign_keys),C=m(null==g?void 0:g.indexed_columns),I=m(null==g?void 0:g.not_null_constraints),w=m(null==g?void 0:g.other_columns),k=[{header:"Columns",content:[{header:"Primary Keys",content:m(null==g?void 0:g.primary_keys)},{header:"Foreign Keys",content:j},{header:"Indexed Columns",content:C},{header:"Not Null Constraints",content:I},{header:"Unique Constraints",content:m(null==g?void 0:g.unique_constraints)},{header:"Composite Keys",content:y},{header:"Check Constraints",content:p},{header:"Default Constraints",content:f},{header:"Regular Columns",content:w}]}];return e.jsx("div",{children:k.map(function(t){var d,o=x.includes(t.header);return t.content.every(function(n){return 0===n.content.length})?e.jsx(e.Fragment,{}):e.jsxs("div",n.__assign({style:u.expandableSection},{children:[e.jsxs("div",n.__assign({style:u.sectionHeader,onClick:function(){_(o?function(n){return n.filter(function(n){return n!==t.header})}:function(e){return e.includes(t.header)?e:n.__spreadArray(n.__spreadArray([],e,!0),[t.header],!1)})}},{children:[e.jsx("div",n.__assign({style:u.sectionTitle},{children:null==t?void 0:t.header})),e.jsx("img",{src:o?l.default:s.default})]})),o&&(null===(d=null==t?void 0:t.content)||void 0===d?void 0:d.map(function(t){var l,s;return(null===(l=null==t?void 0:t.content)||void 0===l?void 0:l.length)?e.jsx("div",n.__assign({style:u.sectionContent},{children:e.jsxs("div",{children:[e.jsx("div",n.__assign({style:u.categoryTitle},{children:null==t?void 0:t.header})),e.jsx("div",{children:null===(s=null==t?void 0:t.content)||void 0===s?void 0:s.map(function(l){var s,d,o=-1!==(null==l?void 0:l.startIndex)&&-1!==(null==l?void 0:l.endIndex)&&Number(null==l?void 0:l.startIndex)===(null==c?void 0:c.startIndex)&&Number(null==l?void 0:l.endIndex)===(null==c?void 0:c.endIndex)&&(null===(s=null==c?void 0:c.name)||void 0===s?void 0:s.trim())===(null===(d=(null==t?void 0:t.header)+"_"+(null==l?void 0:l.name))||void 0===d?void 0:d.trim());return o?e.jsx("div",n.__assign({style:{width:"100%"}},{children:e.jsx(i.default,{data:l})})):e.jsx(e.Fragment,{children:e.jsxs("span",n.__assign({style:n.__assign(n.__assign({},o?u.highlightTag:u.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return v(null==l?void 0:l.startIndex,null==l?void 0:l.endIndex,(null==t?void 0:t.header)+"_"+(null==l?void 0:l.name))}},{children:[null==l?void 0:l.name,e.jsx("span",n.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:e.jsx(r,{})}))]}))})})})]})})):e.jsx(e.Fragment,{})}))]}))})})};
2
- //# sourceMappingURL=DbStatsComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DbStatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("./DbStatsComponent.js"),i=require("./CodebaseStatsComponent.js");exports.default=function(l){var a=l.fileDetails,s=l.styles,r=l.highlightCodeStatsLine,d=l.handleStatsPillClick,h=l.highlightCodeStatsVariable,o=l.handleVariableClick,n=l.datasource;return"db"===(void 0===n?"codebase":n)?e.jsx(t.default,{fileDetails:a,styles:s,highlightCodeStatsLine:r,handleStatsPillClick:d}):e.jsx(i.default,{fileDetails:a,styles:s,highlightCodeStatsLine:r,handleStatsPillClick:d,highlightCodeStatsVariable:h,handleVariableClick:o})};
2
- //# sourceMappingURL=StatsComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=function(){return t.jsx("svg",e.__assign({width:"100%",height:"100%",fill:"#000000",viewBox:"-1 0 19 19",xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg"},{children:t.jsx("path",{d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zM5.85 3.309a6.833 6.833 0 1 0 2.65-.534 6.787 6.787 0 0 0-2.65.534zm2.654 1.336A1.136 1.136 0 1 1 7.37 5.78a1.136 1.136 0 0 1 1.135-1.136zm.792 9.223V8.665a.792.792 0 1 0-1.583 0v5.203a.792.792 0 0 0 1.583 0z"})}))},s=function(){return t.jsxs("svg",e.__assign({width:"100%",height:"100%",viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--noto",preserveAspectRatio:"xMidYMid meet"},{children:[t.jsx("path",{d:"M37.41 41.95c-9.71 12.48-9.54 34.65 2.87 45.64c14.09 12.47 33.92 12.34 46.39.87c14.95-13.76 14.09-36.66.87-49.63c-13.29-13.04-37.04-13.72-50.13 3.12z",fill:"#fcc11a"}),t.jsx("path",{d:"M53 37.67c-3.84-1.7-8.04 2.93-9.87 6.09c-1.83 3.17-3.53 9.38.37 10.97c3.9 1.58 6.7-1.1 9.51-5.73c2.79-4.63 4.38-9.38-.01-11.33z",fill:"#fee269"}),t.jsx("path",{d:"M63 20.27c-.93 1.74-.62 3.08 1.23 3.52c1.85.44 13.36 2.31 14.33 2.37c1.41.09 1.93-.97 1.76-2.2c-.18-1.23-2.99-18.46-3.25-20.04S75.14.76 73.55 2.87S63.7 18.96 63 20.27z",fill:"#ffa722"}),t.jsx("path",{d:"M92.8 32.23c-1.81.56-1.76 1.67-.79 3.08c.97 1.41 7.65 11.6 8.26 12.31c.62.7 1.67.88 2.55-.18c.88-1.05 11.86-16.45 12.66-17.41c1.32-1.58.53-3.25-1.49-2.73c-1.54.41-20.05 4.58-21.19 4.93z",fill:"#ffa722"}),t.jsx("path",{d:"M106.6 61.86c-1.3-.74-2.99-.53-3.43 1.14c-.44 1.67-2.37 13.8-2.55 14.86s.62 2.11 1.93 1.85s19.45-2.95 20.66-3.25c2.11-.53 2.81-2.64.62-4.22c-1.42-1.03-16-9.68-17.23-10.38z",fill:"#ffa722"}),t.jsx("path",{d:"M92.09 90.6c1.4-.75 2.64-.18 2.99 1.41c.35 1.58 4.22 17.76 4.84 20.75c.31 1.5-1.41 2.73-2.81 1.85c-1.41-.88-16.69-11.53-17.67-12.4c-1.41-1.23-.43-2.51.26-3.16c1.4-1.33 11.07-7.74 12.39-8.45z",fill:"#ffa722"}),t.jsx("path",{d:"M49.54 99.48c-1.77-.17-2.29 1.41-2.02 2.81c.26 1.41 2.9 19.24 3.08 20.57c.26 1.93 2.29 2.73 3.6.79s10.35-16.4 11.08-17.76c1.32-2.46.35-2.99-.97-3.6c-1.31-.61-12.92-2.63-14.77-2.81z",fill:"#ffa722"}),t.jsx("path",{d:"M24.23 79c1.23-2.02 2.81-1.49 3.96.44c.78 1.32 7.38 10.2 8 11.16c.62.97.88 2.81-1.05 3.25c-1.95.45-17.68 4.58-20.14 5.02c-2.46.44-3.87-1.49-2.29-3.6c.92-1.24 10.82-15.12 11.52-16.27z",fill:"#ffa722"}),t.jsx("path",{d:"M20.89 63.7c2.25 1 3.31.64 3.78-.97c.62-2.11 2.46-11.78 2.55-13.98c.06-1.43-.53-2.81-2.73-2.46S6.47 48.85 4.45 49.55c-2.35.82-2.18 3.4-.62 4.22c1.85.97 15.47 9.23 17.06 9.93z",fill:"#ffa722"}),t.jsx("path",{d:"M48.23 26.78c1.27-1.01.88-2.46-.26-3.25c-1.14-.79-15.26-11-17.05-12.4c-1.58-1.23-3.52-.79-2.99 2.02c.38 2.02 4.88 19.7 5.19 20.92c.35 1.41 1.41 2.11 2.64 1.23c1.21-.87 11.15-7.46 12.47-8.52z",fill:"#ffa722"})]}))},o={container:{display:"flex",alignItems:"center",gap:8},icon:{fontSize:20,transition:"transform 0.3s ease"},switch:{position:"relative",display:"inline-block",width:44,height:24},input:{opacity:0,width:0,height:0},slider:{position:"absolute",cursor:"pointer",top:0,left:0,right:0,bottom:0,transition:"0.4s",borderRadius:20},thumb:{position:"absolute",height:19,width:19,backgroundColor:"white",borderRadius:"50%",top:2,left:2,transition:"transform 0.3s ease"}};exports.default=function(r){var c=r.darkMode,a=r.onToggle,l=r.toggleFullscreen,d=r.handleOpenFileDetailSection,f=r.showFullscreenIcon,p=r.showFileSummaryIButton,h=i.useState(!1),u=h[0],g=h[1];return t.jsxs("div",e.__assign({style:o.container},{children:[t.jsxs("div",e.__assign({style:{position:"relative",display:"inline-block"},onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)}},{children:[p?t.jsx("button",e.__assign({onClick:function(e){d(e)},style:{background:"transparent",color:"white",border:"none",borderRadius:"50%",width:"24px",height:"24px",fontWeight:"bold",cursor:"pointer",marginRight:"1rem",fontSize:"16px",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",padding:0}},{children:t.jsx(n,{})})):t.jsx(t.Fragment,{}),u&&t.jsx("div",e.__assign({style:{position:"absolute",zIndex:1001,bottom:"125%",left:"50%",transform:"translateX(-50%)",backgroundColor:"#555",color:"#fff",padding:"5px 8px",borderRadius:"6px",fontSize:"12px",textAlign:"center",whiteSpace:"nowrap",opacity:1,transition:"opacity 0.3s"}},{children:"Click to see file summary"}))]})),t.jsxs("label",e.__assign({className:"theme-switch",style:o.switch},{children:[t.jsx("input",{type:"checkbox",checked:c,onChange:a,onClick:a,style:o.input}),t.jsx("div",e.__assign({style:e.__assign(e.__assign({},o.slider),{backgroundColor:c?"#444":"#f7f7f7"}),onClick:a},{children:t.jsx("div",e.__assign({style:e.__assign(e.__assign({},o.thumb),{transform:c?"translateX(22px)":"translateX(0)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,backgroundColor:c?"#444":"#f7f7f7"})},{children:c?"🌙":t.jsx(s,{})}))}))]})),f?t.jsx("button",e.__assign({onClick:function(e){return l(e)},style:{background:"transparent",border:"none",padding:"7px 6px",borderRadius:"6px",cursor:"pointer",fontSize:"1.5rem",color:"black",transition:"background 0.3s"},title:"Toggle fullscreen"},{children:"⛶"})):t.jsx(t.Fragment,{})]}))};
2
- //# sourceMappingURL=ThemeToggle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n=require("react"),t=require("lucide-react");exports.default=function(o){var r=o.images,s=o.highlights,a=o.highlightColor,d=void 0===a?"rgba(255, 220, 0, 0.35)":a,l=o.highlightActiveColor,c=void 0===l?"rgba(255, 220, 0, 0.65)":l,x=o.highlightBorderColor,u=void 0===x?"rgba(200, 160, 0, 0.8)":x,g=o.height,p=void 0===g?"700px":g,h=s.flatMap(function(i,e){return i.bboxes.map(function(n,t){return{bbox:n,dimensions:i.dimensions,pageIndex:i.pageIndex,key:"".concat(e,"-").concat(t)}})}).length,b=n.useState(0),f=b[0],m=b[1],_=n.useState(!1),y=_[0],v=_[1],j=n.useRef(null),k=n.useRef(null),w=n.useRef([]),C=n.useCallback(function(i,e){void 0===e&&(e=!1);var n=Math.max(0,Math.min(h-1,i));m(n);var t=e?k.current:j.current,o=w.current[n];if(t&&o){var r=t.getBoundingClientRect().top,s=o.getBoundingClientRect().top-r+t.scrollTop-t.clientHeight/2+o.clientHeight/2;t.scrollTo({top:s,behavior:"smooth"})}},[h]),z=function(n){return void 0===n&&(n=!1),h>0&&e.jsx("div",i.__assign({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:e.jsxs("div",i.__assign({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"4px"}},{children:[e.jsxs("span",i.__assign({style:{fontSize:"12px",color:"#888"}},{children:[f+1," / ",h]})),e.jsx("button",i.__assign({onClick:function(){return C(f-1,n)},disabled:f<=0,style:{padding:"2px 8px",fontSize:"12px",cursor:f<=0?"not-allowed":"pointer",opacity:f<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↑"})),e.jsx("button",i.__assign({onClick:function(){return C(f+1,n)},disabled:f>=h-1,style:{padding:"2px 8px",fontSize:"12px",cursor:f>=h-1?"not-allowed":"pointer",opacity:f>=h-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↓"})),e.jsx("span",{style:{width:"1px",height:"16px",background:"#e2e8f0",margin:"0 2px"}}),n?e.jsx(t.X,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return v(!1)}}):e.jsx(t.Maximize2,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return v(!0)}})]}))}))},I=function(){var n=-1;return r.map(function(t,o){var r=s.filter(function(i){return i.pageIndex===o}).flatMap(function(i,e){return i.bboxes.map(function(t,r){return n++,{bbox:t,dimensions:i.dimensions,key:"".concat(o,"-").concat(e,"-").concat(r),globalIndex:n}})});return e.jsxs("div",{children:[e.jsxs("div",i.__assign({style:{fontSize:"12px",color:"#888",marginBottom:"4px"}},{children:["Page ",o+1]})),e.jsx("div",i.__assign({style:{position:"relative",width:"100%",paddingTop:"129%",flexShrink:0}},{children:e.jsxs("div",i.__assign({style:{position:"absolute",inset:0}},{children:[e.jsx("img",{src:t,alt:"Page ".concat(o+1),style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},draggable:!1}),r.map(function(i){var n=i.bbox,t=i.dimensions,o=i.key,r=i.globalIndex,s=f===r;return e.jsx("div",{ref:function(i){w.current[r]=i},style:{position:"absolute",left:"".concat(n.xmin/t.width*100,"%"),top:"".concat(n.ymin/t.height*100,"%"),width:"".concat((n.xmax-n.xmin)/t.width*100,"%"),height:"".concat((n.ymax-n.ymin)/t.height*100,"%"),background:s?c:d,border:s?"1.5px solid ".concat(u):"none",borderRadius:"2px",zIndex:2}},o)})]}))}))]},o)})},R={overflowY:"auto",border:"1px solid #ddd",borderRadius:"4px",padding:"8px",display:"flex",flexDirection:"column",gap:"8px",boxSizing:"border-box"};return e.jsxs(e.Fragment,{children:[e.jsxs("div",i.__assign({style:{width:"100%",maxWidth:"600px",fontFamily:"inherit"}},{children:[z(!1),e.jsx("div",i.__assign({ref:j,style:i.__assign(i.__assign({},R),{height:p})},{children:I()}))]})),y&&e.jsx("div",i.__assign({style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"}},{children:e.jsxs("div",i.__assign({style:{background:"white",borderRadius:"8px",padding:"16px",width:"90vw",maxWidth:"800px",height:"90vh",display:"flex",flexDirection:"column"}},{children:[z(!0),e.jsx("div",i.__assign({ref:k,style:i.__assign(i.__assign({},R),{flex:1})},{children:I()}))]}))}))]})};
2
- //# sourceMappingURL=ScannedDocCitation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScannedDocCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e,t,s){var r=s?"dark":"light",l=JSON.stringify(e).replace(/[^a-zA-Z0-9]/g,"").slice(0,20);return"".concat(r,"-severity-").concat(t,"-").concat(l)};exports.cssPropertiesToString=function(e){return Object.entries(e).map(function(e){var t=e[0],s=e[1];return"".concat(t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}),": ").concat(s,";")}).join("\n")},exports.generateClassName=e,exports.getClassNameFromDiagnostic=function(t,s,r){var l=null==r?void 0:r[t];if(!l)return"myLineHighlight";if(!s){if(l.lightModeStyle)return e(l.lightModeStyle,t,!1);if(l.style)return e(l.style,t,!0);if(l.lightModeClassName)return l.lightModeClassName;if(l.className)return l.className}if(s){if(l.style)return e(l.style,t,!0);if(l.className)return l.className;if(l.lightModeStyle)return e(l.lightModeStyle,t,!1);if(l.lightModeClassName)return l.lightModeClassName}return"myLineHighlight"},exports.getLanguageFromFileName=function(e){var t,s=null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase();return{js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",html:"html",htm:"html",css:"css",scss:"scss",sass:"sass",less:"less",py:"python",rb:"ruby",php:"php",java:"java",kt:"kotlin",kts:"kotlin",cs:"csharp",c:"c",h:"c",cpp:"cpp",cxx:"cpp",cc:"cpp",hpp:"cpp",mm:"objective-c",m:"objective-c",sh:"shell",bash:"shell",zsh:"shell",fish:"shell",bat:"bat",ps1:"powershell",json:"json",jsonc:"json",xml:"xml",yaml:"yaml",yml:"yaml",toml:"toml",ini:"ini",csv:"csv",md:"markdown",markdown:"markdown",txt:"plaintext",log:"plaintext",sql:"sql",gql:"graphql",graphql:"graphql",env:"dotenv",dotenv:"dotenv",cfg:"ini",conf:"ini",rs:"rust",go:"go",dart:"dart",scala:"scala",swift:"swift",lua:"lua",r:"r",dockerfile:"docker",docker:"docker",makefile:"makefile",mk:"makefile",gradle:"groovy",groovy:"groovy",tex:"latex",asm:"assembly",vb:"vbnet",erlang:"erlang",elm:"elm",clj:"clojure",coffee:"coffeescript",pug:"pug",jade:"pug"}[s||""]||s||""},exports.returnCitationTitle=function(e,t){return"db"===t&&(e=e.replace(/\.json$/,".table")),e},exports.returnCodeTitle=function(e){return"db"===e?"Table Preview":"Code Preview"};
2
- //# sourceMappingURL=codeCitations.utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codeCitations.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=new(function(){function e(){this.listeners=new Set,this.isDarkTheme=!0,this.isInitialized=!1}return e.prototype.subscribe=function(e){var t=this;return this.listeners.add(e),function(){return t.listeners.delete(e)}},e.prototype.setTheme=function(e){this.isDarkTheme=e,this.listeners.forEach(function(t){return t(e)})},e.prototype.getTheme=function(e){return this.isInitialized||void 0===e||(this.setTheme(e),this.isInitialized=!0),this.isDarkTheme},e}());exports.themeManager=e;
2
- //# sourceMappingURL=themeManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"themeManager.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{DiagnosticSeverity as o}from"../features/CodeCitation/_components/CodeEditor.js";var e,l=((e={})[o.Error]={style:{backgroundColor:"#ef4444",mixBlendMode:"soft-light"},lightModeStyle:{backgroundColor:"#fecaca",mixBlendMode:"multiply"}},e[o.Warning]={style:{backgroundColor:"#fde68a",mixBlendMode:"overlay"},lightModeStyle:{backgroundColor:"#fef9c3",mixBlendMode:"multiply"}},e[o.Information]={style:{backgroundColor:"rgba(0, 122, 204, 0.3)"},lightModeStyle:{backgroundColor:"rgba(0, 122, 204, 0.3)"}},e[o.Hint]={style:{backgroundColor:"#4ade80",mixBlendMode:"overlay"},lightModeStyle:{backgroundColor:"#bbf7d0",mixBlendMode:"multiply"}},e);export{l as DEFAULT_DIAGNOSTIC_STYLES_BY_SEVERITY};
2
- //# sourceMappingURL=diagnosticStylesBySeverity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diagnosticStylesBySeverity.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}