@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 +0,0 @@
1
- import{__assign as e,__awaiter as t,__generator as n}from"tslib";import{jsxs as i,Fragment as o,jsx as a}from"react/jsx-runtime";import r,{useRef as l,useState as s,useEffect as d}from"react";import c from"./CodeCitation.module.css.js";import u from"./_components/CodeEditor.js";import{getLanguageFromFileName as h}from"../../utils/codeCitations.utils.js";import g from"./_components/ThemeToggle.js";import m from"./_components/CodeCitationPopup.js";import p from"./_components/HighlightedCodeDetails.js";import f from"axios";import v from"./_components/Spinner.js";import{DEFAULT_DIAGNOSTIC_STYLES_BY_SEVERITY as x}from"../../constants/diagnosticStylesBySeverity.js";import{themeManager as I}from"../../utils/themeManager.js";var C=function(C){var y=C.baseUrlForCodeRetrieval,S=C.assistantName,b=C.organizationName,_=C.userId,k=C.taskId,D=C.repoUrl,P=C.inLineCitation,T=C.citationTitle,w=C.filename,F=C.filepath,H=C.citationContainerTitle,L=C.showThemeToggle,j=C.customCode,E=C.isDarkModeEnabled,B=C.chevronUpComponent,W=C.chevronDownComponent,N=C.isHighlightingEnabled,z=C.FileDetailsComponent,M=C.additionalCallbackForPillButton,V=C.CustomCodeRenderComponent,J=C.fileSummarySectionTitle,R=C.showFullscreenIcon,U=C.showFileSummaryIButton,A=C.editorHeight,O=C.editorWidth,q=C.styles,G=void 0===q?{}:q,K=C.diagnostics,Q=C.diagnosticStylesBySeverity,X=C.datasource,Y=void 0===X?"codebase":X,Z=C.externalFilesData,$=C.startIndex,ee=C.endIndex,te=l(!1),ne=h(w),ie=s(!1),oe=ie[0],ae=ie[1],re=s(function(){return I.getTheme(E)}),le=re[0],se=re[1];d(function(){return I.subscribe(se)},[]);var de=s(!1),ce=de[0],ue=de[1],he=s(!1),ge=he[0],me=he[1],pe=s(!1),fe=pe[0],ve=pe[1],xe=s(!1),Ie=xe[0],Ce=xe[1],ye=s(null),Se=ye[0],be=ye[1],_e=s(""),ke=_e[0],De=_e[1],Pe=s(""),Te=Pe[0],we=Pe[1],Fe=s({startIndex:-1,endIndex:-1}),He=Fe[0],Le=Fe[1],je=s({}),Ee=je[0],Be=je[1],We=s(!1),Ne=We[0],ze=We[1],Me=s(!1),Ve=Me[0],Je=Me[1],Re=s({startIndex:-1,endIndex:-1}),Ue=Re[0],Ae=Re[1],Oe=s({startIndex:-1,endIndex:-1}),qe=Oe[0],Ge=Oe[1],Ke=r.useMemo(function(){return e(e({},x),Q)},[Q]);d(function(){Ge({startIndex:null!=$?$:-1,endIndex:null!=ee?ee:-1})},[$,ee]),d(function(){Z&&j&&(be(Z),te.current=!0)},[Z,j]),d(function(){if("undefined"!=typeof window&&!te.current){te.current=!0;var i=new URL(F,"http://example.com"),o=i.searchParams,a=void 0!==$?$:o.has("startLine")?Number(o.get("startLine")):-1,r=void 0!==ee?ee:o.has("endLine")?Number(o.get("endLine")):-1;Ge({startIndex:a,endIndex:r}),Le({startIndex:a,endIndex:r}),Ae({startIndex:a,endIndex:r}),i.searchParams.delete("startLine"),i.searchParams.delete("endLine"),i.searchParams.delete("validation");var l=i.pathname+i.search,s=null==l?void 0:l.replace(/^\//,"");we(s),console.log("Params going to API:",{file_path:s,assistant_name:S,organization_name:b,user_id:_,task_id:k,chunks_search:!1,technical_details_only:!0,repo_url:D});j||Ne||t(void 0,void 0,void 0,function(){var t,i,o,a,r,l;return n(this,function(n){switch(n.label){case 0:Je(!1),ze(!0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,f.get("".concat(y,"/analyzer/get_file_details"),{params:e({file_path:String(s),assistant_name:String(S),organization_name:String(b),user_id:String(_),task_id:String(k),repo_url:String(D),chunks_search:!1,technical_details_only:!0},"codebase"!==Y&&{datasource:Y})})];case 2:return t=n.sent(),i=(null==t?void 0:t.data[0])||(null==t?void 0:t.data),!Se&&i&&(be(i),Object.keys(null==t?void 0:t.data)&&(o=(null===(l=null===(r=null==t?void 0:t.data)||void 0===r?void 0:r[0])||void 0===l?void 0:l.content)||(null==t?void 0:t.data.content),De(o))),ze(!1),[2,t.data];case 3:return a=n.sent(),Je(!0),console.error("Error in retrieving file details: ",a),[3,4];case 4:return ze(!1),[2]}})})}},[]);return i(o,{children:[i("span",e({onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),M&&M(),ae(function(e){return!e}),ue(function(e){return!e})}(e)},className:c.pillButton,style:G.pillButton},{children:[a("span",e({style:G.citationTitle},{children:T})),P&&(oe?B:W)]})),(!P||ge)&&a(m,{open:ce,onClose:function(){Ge({startIndex:null==Ue?void 0:Ue.startIndex,endIndex:null==Ue?void 0:Ue.endIndex}),me(!1),ue(!1),Le({startIndex:-1,endIndex:-1}),Be({})},title:T,customStyles:{popupContainer:{width:"100vw",height:"100vh",borderRadius:"0.75rem",fontFamily:"Plus Jakarta Sans, sans-serif"},popupTitleContainer:{color:"#d63384",fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"700"},topLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"},bottomLeftTitle:{backgroundColor:"#f9f9f9",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"1rem",fontWeight:"bold",padding:"5px",margin:"0px"}},editorChildren:a(u,{startIndex:null==qe?void 0:qe.startIndex,endIndex:null==qe?void 0:qe.endIndex,language:ne,editorHeight:A,editorWidth:O,code:j||ke,isHighlightingEnabled:N,isDarkModeEnabled:le,highlightCodeStatsLine:He,setHighlightCodeStatsLine:Le,highlightCodeStatsVariable:Ee,setHighlightCodeStatsVariable:Be,isExpanded:oe,highlightIndexes:qe,diagnostics:K,diagnosticStylesBySeverity:Ke}),fileDetails:Se,setHighlightIndexes:Ge,highlightCodeStatsLine:He,setHighlightCodeStatsLine:Le,highlightCodeStatsVariable:Ee,setHighlightCodeStatsVariable:Be,filepath:Te,datasource:Y}),P&&oe&&a("div",e({className:c.citationWrapper,style:G.citationWrapper},{children:i("div",e({className:c.citationContent,style:G.citationContent},{children:[!fe&&H?i("div",e({className:c.citationContainerTitle,style:G.citationContainerTitle},{children:[a("span",{children:H}),L?a(g,{darkMode:le,onToggle:function(e){return function(e){e.stopPropagation(),e.preventDefault(),I.setTheme(!le)}(e)},toggleFullscreen:function(e){e.stopPropagation(),e.preventDefault(),ue(!0),me(!0)},handleOpenFileDetailSection:function(e){e.stopPropagation(),e.preventDefault(),Ce(!0)},showFullscreenIcon:R,showFileSummaryIButton:U}):a(o,{})]})):a(o,{}),i("div",e({style:{zIndex:-1e3,color:"#000",overflow:"hidden",display:"flex",flexDirection:"column",height:A,width:O,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[!fe&&!Ie&&V,a(Ne?v:o,{}),Ve?a("div",e({style:{height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#242424"}},{children:"Something went wrong"})):a(o,{}),!fe&&!Ie&&!V&&!Ne&&!Ve&&a(u,{startIndex:null==qe?void 0:qe.startIndex,endIndex:null==qe?void 0:qe.endIndex,language:ne,editorHeight:A,editorWidth:O,code:null!=j?j:ke,isHighlightingEnabled:N,isDarkModeEnabled:le,openHighlightedCodeDetails:function(){ve(!0)},highlightCodeStatsVariable:Ee,setHighlightCodeStatsVariable:Be,isExpanded:oe,highlightIndexes:qe,diagnostics:K,diagnosticStylesBySeverity:Ke}),Ie&&a(p,{FileDetailsComponent:z,fileSummarySectionTitle:J,isDarkMode:le,editorHeight:A,editorWidth:O,code:null==Se?void 0:Se.content.split("\n").slice((null==qe?void 0:qe.startIndex)-1,null==qe?void 0:qe.endIndex).join("\n"),language:ne,onClose:function(e){e.stopPropagation(),e.preventDefault(),Ce(!1)},summary:null==Se?void 0:Se.summary,filepath:Te,citationTitle:T})]}))]}))}))]})};export{C as default};
2
- //# sourceMappingURL=CodeCitation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var o={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"};!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)}();export{o as default};
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
- import{__assign as r}from"tslib";import{jsxs as i,jsx as o}from"react/jsx-runtime";import{useState as t}from"react";var n=function(){return i("svg",r({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[o("title",{children:"up"}),o("path",{d:"M460 321L426 355 262 192 98 355 64 321 262 125 460 321Z"})]}))},e=function(e){var d=e.data,p=t(!1);p[0];var a=p[1];return i("div",r({style:{borderRadius:"4px",marginBottom:"8px",width:"100%"}},{children:[i("div",r({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(r){return!r})}},{children:[d.name,o("span",r({style:{display:"inline-block",transform:"rotate(0deg)",transition:"transform 0.3s ease",fontSize:"16px"}},{children:o(n,{})}))]})),i("div",r({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:[o("div",r({style:{fontWeight:600,marginBottom:"6px",fontSize:"13px",color:"#666"}},{children:"Description:"})),o("div",{children:d.description})]}))]}))};export{e as default};
2
- //# sourceMappingURL=Accordian.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordian.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as i}from"tslib";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{Close as l}from"@mui/icons-material";import o from"./CodeCitationsStats.js";import{returnCitationTitle as a,returnCodeTitle as r}from"../../../utils/codeCitations.utils.js";import n from"@mui/material/Dialog";import s from"@mui/material/IconButton";import d from"@mui/material/DialogContent";import f from"@mui/material/DialogTitle";var h=function(h){var g=h.open,c=h.onClose,p=h.title,u=h.customStyles,y=h.editorChildren,x=h.fileDetails,b=h.setHighlightIndexes,S=h.highlightCodeStatsLine,v=h.setHighlightCodeStatsLine,C=h.highlightCodeStatsVariable,k=h.setHighlightCodeStatsVariable,D=h.filepath,w=h.datasource,H=void 0===w?"codebase":w;return e(n,i({open:g,onClose:c,maxWidth:"xl",fullWidth:!0,PaperProps:{style:i({},null==u?void 0:u.popupContainer)}},{children:[e(f,i({style:(null==u?void 0:u.popupTitleContainer)||{fontFamily:"Plus Jakarta Sans, sans-serif",position:"relative",textAlign:"left",fontWeight:"bold"}},{children:[e("div",i({style:{display:"flex",flexDirection:"column"}},{children:[t("span",i({style:{fontWeight:"bold",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:p})),e("div",i({style:{display:"flex",flexDirection:"row",gap:"5px",fontSize:"0.875rem",color:"#666",marginTop:"0.25rem"}},{children:[t("span",i({style:{fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:"File path: "})),e("span",i({style:{fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[" ",a(D,H)]}))]}))]})),t(s,i({edge:"end",onClick:c,"aria-label":"close",style:{position:"absolute",top:5,right:16},size:"large"},{children:t(l,{})}))]})),e(d,i({style:i(i({},m.body),null==u?void 0:u.body)},{children:[t("div",i({style:(null==u?void 0:u.leftSection)||m.leftSection},{children:t(o,{datasource:H,fileDetails:x,setHighlightIndexes:b,highlightCodeStatsLine:S,setHighlightCodeStatsLine:v,highlightCodeStatsVariable:C,setHighlightCodeStatsVariable:k})})),e("div",i({style:m.rightSection},{children:[t("div",i({style:{minHeight:"4vh",fontWeight:"700",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:r(H)})),t("div",i({style:{width:"100%",height:"100%"}},{children:y}))]}))]}))]}))},m={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}};export{h as default};
2
- //# sourceMappingURL=CodeCitationPopup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeCitationPopup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as o}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{DescriptionWithToggle as t}from"./DescriptionWithToggle.js";import n from"./StatsComponents/StatsComponent.js";var d=function(o){return o.replace(/^(\s*)\*\*overview\*\*/im,"$1**Code Overview**")},r=function(r){var l,a,s,c,u,p,f,x,h,v,g,m,b,_,C=r.fileDetails,y=r.setHighlightIndexes,S=r.highlightCodeStatsLine,k=r.setHighlightCodeStatsLine,w=r.highlightCodeStatsVariable,N=r.datasource,I=r.setHighlightCodeStatsVariable,A={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"}},z={header:"Code Overview",description:d((null===(l=null==C?void 0:C.summary)||void 0===l?void 0:l.trim())||""),stats:[{header:"Total Class",count:(null===(a=null==C?void 0:C.file_stats)||void 0===a?void 0:a.classes_count)||"NA"},{header:"Total Functions",count:(null===(s=null==C?void 0:C.file_stats)||void 0===s?void 0:s.functions_count)||"NA"},{header:"Total Lines of Code",count:(null===(c=null==C?void 0:C.file_stats)||void 0===c?void 0:c.code_lines_count)||"NA"}]},T={header:"DB Overview",description:d((null===(u=null==C?void 0:C.summary)||void 0===u?void 0:u.trim())||""),stats:[{header:"Check Constraints",count:(null===(p=null==C?void 0:C.file_stats)||void 0===p?void 0:p.check_constraint_count)||"NA"},{header:"Composite Key",count:(null===(f=null==C?void 0:C.file_stats)||void 0===f?void 0:f.composite_key_count)||"NA"},{header:"Foreign Key",count:(null===(x=null==C?void 0:C.file_stats)||void 0===x?void 0:x.foreign_key_count)||"NA"},{header:"Default Constraint",count:(null===(h=null==C?void 0:C.file_stats)||void 0===h?void 0:h.default_constraint_count)||"NA"},{header:"Indexed Column",count:(null===(v=null==C?void 0:C.file_stats)||void 0===v?void 0:v.indexed_column_count)||"NA"},{header:"Not Null Constraint",count:(null===(g=null==C?void 0:C.file_stats)||void 0===g?void 0:g.not_null_constraint_count)||"NA"},{header:"Primary Key",count:(null===(m=null==C?void 0:C.file_stats)||void 0===m?void 0:m.primary_key_count)||"NA"},{header:"Regular Column",count:(null===(b=null==C?void 0:C.file_stats)||void 0===b?void 0:b.other_columns_count)||"NA"},{header:"Unique Key Constraint",count:(null===(_=null==C?void 0:C.file_stats)||void 0===_?void 0:_.unique_key_constraint_count)||"NA"}]};return e("div",{children:[e("div",o({style:{padding:"12px 16px",fontSize:"16px",fontWeight:"700"}},{children:[i("span",{children:"Codemon."}),i("span",o({style:{color:"blue"}},{children:"AI"}))]})),e("div",o({style:A.container},{children:[i(t,{datasource:N,overViewData:"db"===N?T:z}),i(n,{datasource:N,fileDetails:C,styles:A,highlightCodeStatsLine:S,handleStatsPillClick:function(o,e,i){y({}),I({}),k({startIndex:Number(o),endIndex:Number(e),name:i})},highlightCodeStatsVariable:w,handleVariableClick:function(o,e,i){e&&i&&-1!==e&&-1!==i&&(y({startIndex:e,endIndex:i}),k({startIndex:-1,endIndex:-1}),I({variableName:o,startIndex:e,endIndex:i}))}})]}))]})};export{r as default};
2
- //# sourceMappingURL=CodeCitationsStats.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeCitationsStats.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useRef as r,useMemo as o,useState as a,useEffect as l,useCallback as d}from"react";import{generateClassName as u,cssPropertiesToString as s,getClassNameFromDiagnostic as c}from"../../../utils/codeCitations.utils.js";var g;!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}(g||(g={}));var v=function(g){var v=g.startIndex,h=g.endIndex,f=g.language,m=g.editorHeight,p=g.editorWidth,x=g.code,I=g.isHighlightingEnabled,y=g.isDarkModeEnabled,S=g.openHighlightedCodeDetails,b=g.highlightCodeStatsLine;g.setHighlightCodeStatsLine;var C=g.highlightCodeStatsVariable;g.setHighlightCodeStatsVariable,g.setHighlightIndexes;var L=g.isExpanded,R=g.highlightIndexes,w=g.diagnostics,O=g.diagnosticStylesBySeverity,j=r(null),D=r([]);r([]);var H=r([]),k=r([]),E=o(function(){return v},[v]),M=o(function(){return h},[h]),N=a(null),V=N[0],W=N[1],z=a(null),A=z[0],F=z[1],T=a(null),q=T[0],_=T[1],B=a(void 0),J=B[0],P=B[1],G=a(null),K=G[0],Q=G[1];l(function(){Promise.all([import("@monaco-editor/react"),import("highlight.js/lib/core")]).then(function(e){var n=e[0],t=e[1];_(function(){return n.default});var i=t.default.highlightAuto(x).language;P(i)}).catch(function(){Q("Code editor dependencies not installed. Run: npm install @monaco-editor/react highlight.js")})},[x]);var U=o(function(){return O&&"object"==typeof O&&Object.entries(O).map(function(e){var n=e[0],t=e[1],i=[];return t.style&&i.push(".".concat(u(t.style,+n,!0)," {\n").concat(s(t.style),"\n}")),t.lightModeStyle&&i.push(".".concat(u(t.lightModeStyle,+n,!1)," {\n").concat(s(t.lightModeStyle),"\n}")),i.join("\n")}).join("\n")},[O]);l(function(){return function(){var e;(null===(e=j.current)||void 0===e?void 0:e._resizeObserver)&&j.current._resizeObserver.disconnect()}},[]),l(function(){if(I&&V&&j.current&&A){var e=V.start,n=V.end;if(X(j.current,e,n,b,C),-1===v&&w&&w.length>0){var t=w[0].range,i=t.lineStart,r=t.lineEnd;X(j.current,i,r,b,C)}}},[V,A,I,b,C]),l(function(){var e,n,t;if(A&&j.current&&I){var i=j.current;if(R&&(null===(e=Object.keys(R))||void 0===e?void 0:e.length)>0&&-1!==(null==R?void 0:R.startIndex)&&-1!==(null==R?void 0:R.endIndex)){var r=i.deltaDecorations(D.current,[{range:new A.Range(R.startIndex,1,R.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);D.current=r}if(b&&(null===(n=Object.keys(b))||void 0===n?void 0:n.length)>0&&-1!==(null==b?void 0:b.startIndex)&&-1!==(null==b?void 0:b.endIndex)&&(null==b?void 0:b.name)){r=i.deltaDecorations(D.current,[{range:new A.Range(b.startIndex,1,b.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);D.current=r}if(C&&(null===(t=Object.keys(C))||void 0===t?void 0:t.length)>0&&-1!==(null==C?void 0:C.startIndex)&&-1!==(null==C?void 0:C.endIndex)&&(null==b?void 0:b.name)){r=i.deltaDecorations(H.current,[{range:new A.Range(C.startIndex,1,C.endIndex,1),options:{isWholeLine:!0,className:"myLineHighlight"}}]);H.current=r}}},[v,h,I,A,b,JSON.stringify(C)]),l(function(){if(A&&j.current&&(null==w?void 0:w.length)&&O){var e=j.current,n=w.map(function(e){var n,t,i=c(e.severity,null==y||y,O);return{range:new A.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}}});k.current=e.deltaDecorations(k.current,n)}},[w,O,A,y]);var X=d(function(e,n,t,i,r){var o,a;if(A&&e&&I){var l=e.getModel();l&&(n=Math.max(-1,n),(t=Math.min(t,l.getLineCount()))<n&&(t=n),requestAnimationFrame(function(){e.revealRangeInCenterIfOutsideViewport(new A.Range(n,1,t,1),A.editor.ScrollType.Smooth),e.setSelection(new A.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 A.Range(i.startIndex,1,i.endIndex,1),A.editor.ScrollType.Smooth),e.setSelection(new A.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 A.Range(r.startIndex,1,r.endIndex,1),A.editor.ScrollType.Smooth),e.setSelection(new A.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)))}},[A,I,v,h,null==b?void 0:b.startIndex,null==b?void 0:b.endIndex,C]);l(function(){if(j.current&&A&&I){var e=j.current,n=e.onDidLayoutChange(function(){if(X(e,v,h,b,C),-1===v&&w&&w.length>0){var n=w[0].range,t=n.lineStart,i=n.lineEnd;X(e,t,i,b,C)}});return function(){return n.dispose()}}},[X,v,h,I,null==b?void 0:b.startIndex,null==b?void 0:b.endIndex,C,L]);var Y=d(function(e,n){X(e,E,M),j.current=e,F(n),W({start:E,end:M});var t=e.getContainerDomNode(),i=new ResizeObserver(function(){e.layout()});if(i.observe(t),j.current._resizeObserver=i,I){var r=e.getDomNode(),o=document.createElement("div");null==r||r.appendChild(o);var a=function(){var n=e.getTopForLineNumber(E)-e.getScrollTop();o.style.top="".concat(n,"px")};e.onDidScrollChange(a),a()}},[v,h,I,S]);return K?n("div",e({style:{color:"red",fontSize:"12px",padding:"8px"}},{children:K})):q?t(i,{children:[n(q,{height:m,width:p,defaultLanguage:J||f,defaultValue:x,theme:y?"vs-dark":"vs-light",onMount:Y,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("style",{children:[U,".myLineHighlight { background-color: rgba(0, 122, 204, 0.3); }"]})]}):n("div",e({style:{padding:"8px",color:"#666"}},{children:"Loading code editor..."}))};export{g as DiagnosticSeverity,v as default};
2
- //# sourceMappingURL=CodeEditor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeEditor.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e,__rest as o}from"tslib";import{jsxs as n,jsx as r,Fragment as i}from"react/jsx-runtime";import{useState as t}from"react";import d from"react-markdown";import l from"rehype-raw";var a=function(o){var i=o.IconComponent,t=o.text,d=o.number;return n("div",e({style:{display:"flex",alignItems:"center",justifyItems:"center",gap:"5px",color:"#5928ED",fontSize:"0.75rem"}},{children:[i,r("span",e({style:{fontWeight:"500"}},{children:t})),r("span",e({style:{backgroundColor:"#E9ECFD",borderRadius:"0.25rem",paddingLeft:"0.25rem",paddingRight:"0.25rem"}},{children:d}))]}))},s=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[r("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"}),r("defs",{children:n("linearGradient",e({id:"paint0_linear_5418_41338",x1:"-0.857143",y1:"-0.772414",x2:"13.3773",y2:"5.89501",gradientUnits:"userSpaceOnUse"},{children:[r("stop",{"stop-color":"#2546F0"}),r("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},p=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},{children:[r("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"}),r("defs",{children:n("linearGradient",e({id:"paint0_linear_5418_41361",x1:"-1.34111",y1:"-0.772414",x2:"13.8345",y2:"7.12565",gradientUnits:"userSpaceOnUse"},{children:[r("stop",{"stop-color":"#2546F0"}),r("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},c=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[r("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"}),r("defs",{children:n("linearGradient",e({id:"paint0_linear_5418_41370",x1:"0.126822",y1:"-1.74843",x2:"13.656",y2:"3.32123",gradientUnits:"userSpaceOnUse"},{children:[r("stop",{"stop-color":"#2546F0"}),r("stop",{offset:"1","stop-color":"#5928ED"})]}))})]}))},f={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(n){n.node;var i=o(n,["node"]);return r("p",e({},i,{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==i?void 0:i.children}))},pre:function(n){n.node;var i=o(n,["node"]);return r("p",e({},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=o(n,["node"]);return r("code",e({},i,{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==i?void 0:i.children}))},ol:function(n){n.node;var i=o(n,["node"]);return r("ol",e({style:{listStyle:"decimal",marginLeft:"1rem",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:i.children}))},li:function(n){n.node;var i=o(n,["node"]);return r("li",e({style:{marginTop:"1rem",marginBottom:"1rem"}},{children:i.children}))},a:function(n){n.node;var i=o(n,["node"]),t=!1;try{t=new URL(i.href||"").protocol.startsWith("http")}catch(e){t=!1}return r("a",e({href:i.href,style:{display:"inline-flex",pointerEvents:t?"auto":"none"}},{children:i.children}))}},x=function(o){var x,m,h,g,v,w,C,b,y=o.overViewData;o.ReactMarkdownComponent;var k,S,_=o.datasource,F=void 0===_?"codebase":_,H=t(!1),M=H[0],B=H[1],L=(null===(x=null==y?void 0:y.description)||void 0===x?void 0:x.length)>750,W=M?null==y?void 0:y.description:(void 0===(k=null==y?void 0:y.description)&&(k=""),void 0===(S=3)&&(S=3),(k.match(/[^.!?]*[.!?]/g)||[]).slice(0,S).join(" ").trim()+(L?"...":""));return n("div",e({style:f.descriptionsContainer},{children:[n("div",e({style:f.description},{children:[r(d,e({rehypePlugins:[l],components:u},{children:W})),L&&r("span",e({onClick:function(){return B(function(e){return!e})},style:{color:"#007bff",cursor:"pointer",marginLeft:0}},{children:M?"View Less":"View More"}))]})),r("div",e({style:{paddingTop:"1%",display:"db"===F?"grid":"flex",gridTemplateColumns:"db"===F?"repeat(4, 1fr)":void 0,flexWrap:"db"!==F?"wrap":void 0,alignItems:"center",gap:"10px",backgroundColor:"#FFF",padding:"10px 15px",borderBottom:"1px solid #ddd",overflow:"wrap"}},{children:"db"===F?null===(m=null==y?void 0:y.stats)||void 0===m?void 0:m.filter(function(e){return"NA"!==e.count}).map(function(e,o){return r(a,{IconComponent:"table"===e.type?r(s,{}):"function"===e.type?r(p,{}):"lineOfCode"===e.type?r(c,{}):null,text:null==e?void 0:e.header,number:e.count},o)}):n(i,{children:[r(a,{IconComponent:r(s,{}),text:"Total Class",number:null===(g=null===(h=null==y?void 0:y.stats)||void 0===h?void 0:h[0])||void 0===g?void 0:g.count}),r(a,{IconComponent:r(p,{}),text:"Total Functions",number:null===(w=null===(v=null==y?void 0:y.stats)||void 0===v?void 0:v[1])||void 0===w?void 0:w.count}),r(a,{IconComponent:r(c,{}),text:"Total Lines of Code",number:null===(b=null===(C=null==y?void 0:y.stats)||void 0===C?void 0:C[2])||void 0===b?void 0:b.count})]})}))]}))};export{x as DescriptionWithToggle};
2
- //# sourceMappingURL=DescriptionWithToggle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DescriptionWithToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e,__rest as r}from"tslib";import{jsxs as n,jsx as i,Fragment as l}from"react/jsx-runtime";import o from"react-markdown";import t from"rehype-raw";var d=function(){return n("svg",e({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:[i("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}))},a={p:function(n){n.node;var l=r(n,["node"]);return i("p",e({},l,{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==l?void 0:l.children}))},pre:function(n){n.node;var l=r(n,["node"]);return i("p",e({},l,{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==l?void 0:l.children}))},code:function(n){n.node;var l=r(n,["node"]);return i("span",e({},l,{style:{fontFamily:"Plus Jakarta Sans, sans-serif",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",textAlign:"justify"}},{children:null==l?void 0:l.children}))},ol:function(n){n.node;var l=r(n,["node"]);return i("ol",e({style:{listStyle:"decimal",marginLeft:"1rem",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:l.children}))},li:function(n){n.node;var l=r(n,["node"]);return i("li",e({style:{marginTop:"1rem",marginBottom:"1rem"}},{children:l.children}))},a:function(n){n.node;var l=r(n,["node"]);return i("a",e({href:l.href,style:{display:"inline-flex"}},{children:l.children}))}},s=function(r){var s=r.fileSummarySectionTitle,c=r.FileDetailsComponent,f=r.onClose;r.editorHeight,r.editorWidth,r.code,r.language,r.isDarkMode;var h=r.summary,m=r.filepath,w=r.citationTitle;return n("div",e({style:{display:"flex",flexDirection:"column",width:"100%",height:"95%",overflow:"hidden",color:"#242424"}},{children:[n("div",e({style:{flexShrink:0,display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem"}},{children:[i("div",e({style:{fontWeight:600,textAlign:"center",flex:1}},{children:s})),i("div",e({style:{cursor:"pointer"},onClick:f},{children:i(d,{})}))]})),i("div",e({style:{flex:1,overflowY:"auto"}},{children:c||("Generated Code"!==w?n("div",e({style:{padding:"0 0.5rem",wordBreak:"break-word",lineHeight:"2rem"}},{children:[m?n(l,{children:[i("span",e({style:{fontWeight:700}},{children:"File path: "})),i("span",{children:m})]}):i(l,{}),i(o,e({rehypePlugins:[t],components:a},{children:h}))]})):i("div",e({style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0 0.5rem",wordBreak:"break-word",lineHeight:"2rem"}},{children:i("span",{children:"No file summary found for the generated code"})})))}))]}))};export{s as default};
2
- //# sourceMappingURL=HighlightedCodeDetails.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HighlightedCodeDetails.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as e}from"tslib";import{jsxs as r,jsx as t}from"react/jsx-runtime";import i from"@mui/material/CircularProgress";var a=function(){return r("div",e({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(i,{size:24}),t("div",e({"aria-live":"polite"},{children:"Curating code and file statistics, please wait..."}))]}))};export{a as default};
2
- //# sourceMappingURL=Spinner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Spinner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__spreadArray as n,__assign as e}from"tslib";import{jsx as i,jsxs as l,Fragment as d}from"react/jsx-runtime";import{useState as t,useMemo as o}from"react";import r from"../Accordian.js";import a from"../../../../assests/svg/chevronUp.svg.js";import u from"../../../../assests/svg/chevronDownArrow.svg.js";var s=function(){return l("svg",e({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[i("title",{children:"down"}),i("path",{d:"M64 191L98 157 262 320 426 157 460 191 262 387 64 191Z"})]}))},v=function(v){var c,h,m,p,f,x,g,I,b,y,C,_,k,w,S,T,U,N,j=v.fileDetails,A=v.styles,V=v.highlightCodeStatsLine,G=v.handleStatsPillClick,P=v.highlightCodeStatsVariable,D=v.handleVariableClick,F=t(["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"]),K=F[0],M=F[1],E=t("Used"),L=E[0],q=E[1],B=o(function(){return"Used"===L?0:1},[L]),H=((null===(h=null===(c=null==j?void 0:j.chunk_details)||void 0===c?void 0:c.code_artifacts)||void 0===h?void 0:h.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}}),O=((null===(p=null===(m=null==j?void 0:j.chunk_details)||void 0===m?void 0:m.code_artifacts)||void 0===p?void 0:p.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}}),Z=((null===(x=null===(f=null==j?void 0:j.chunk_details)||void 0===f?void 0:f.code_artifacts)||void 0===x?void 0:x.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}}),z=((null===(I=null===(g=null==j?void 0:j.chunk_details)||void 0===g?void 0:g.code_artifacts)||void 0===I?void 0:I.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}}),J=(null===(C=null===(y=null===(b=null==j?void 0:j.chunk_details)||void 0===b?void 0:b.code_artifacts)||void 0===y?void 0:y.global_variables)||void 0===C?void 0:C.used)||[],Q=Array.from(new Map(J.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()),R=(null===(w=null===(k=null===(_=null==j?void 0:j.chunk_details)||void 0===_?void 0:_.code_artifacts)||void 0===k?void 0:k.global_variables)||void 0===w?void 0:w.not_used)||[],W=Array.from(new Map(R.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()),X=((null===(T=null===(S=null==j?void 0:j.chunk_details)||void 0===S?void 0:S.services)||void 0===T?void 0:T.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}}),Y=((null===(N=null===(U=null==j?void 0:j.chunk_details)||void 0===U?void 0:U.services)||void 0===N?void 0:N.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}}),$=[{header:"Technical Artifacts",content:[{header:"Class",content:H},{header:"Functions",content:O},{header:"Procedure",content:Z},{header:"Tables",content:z},{header:"Global Variables",content:n(n([],Q,!0),W,!0)}]},{header:"Services Used",content:[{header:"External Services",content:Y},{header:"Call to other files",content:X}]}],nn=[{header:"Used",content:Q||[]},{header:"Unused",content:W||[]}];return i("div",e({style:A},{children:$.map(function(t){var o,v=K.includes(t.header);return t.content.every(function(n){return 0===n.content.length})?i(d,{}):l("div",e({style:A.expandableSection},{children:[l("div",e({style:A.sectionHeader,onClick:function(){M(v?function(n){return n.filter(function(n){return n!==t.header})}:function(e){return e.includes(t.header)?e:n(n([],e,!0),[t.header],!1)})}},{children:[i("div",e({style:A.sectionTitle},{children:null==t?void 0:t.header})),i("img",{src:v?a:u})]})),v&&(null===(o=null==t?void 0:t.content)||void 0===o?void 0:o.map(function(n){var t,o,a,u,v;return(null===(t=null==n?void 0:n.content)||void 0===t?void 0:t.length)?i("div",e({style:A.sectionContent},{children:l("div",{children:[i("div",e({style:A.categoryTitle},{children:null==n?void 0:n.header})),"Global Variables"===(null==n?void 0:n.header)&&l("div",{children:[i("div",e({style:A.tabContainer},{children:nn.map(function(n){var t,o,r,a;return(null===(t=null==n?void 0:n.content)||void 0===t?void 0:t.length)>0&&(null===(r=null===(o=nn[B])||void 0===o?void 0:o.content)||void 0===r?void 0:r.length)?l("div",e({style:e(e({},A.tab),L===n.header?A.activeTab:{}),onClick:function(){return q(n.header)}},{children:[n.header," ","(",null===(a=null==n?void 0:n.content)||void 0===a?void 0:a.length,")"]}),n.header):i(d,{})})})),(null===(o=nn[B])||void 0===o?void 0:o.content)?null===(u=null===(a=nn[B])||void 0===a?void 0:a.content)||void 0===u?void 0:u.map(function(n){var t=(null==P?void 0:P.variableName)===(null==n?void 0:n.name);return t?i("div",e({style:{width:"100%"}},{children:i(r,{data:n})})):i(d,{children:l("span",e({style:e(e({},t?A.highlightTag:A.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return D(null==n?void 0:n.name,null==n?void 0:n.startIndex,null==n?void 0:n.endIndex)}},{children:[null==n?void 0:n.name,i("span",e({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:i(s,{})}))]}))})}):i(d,{})]}),"Global Variables"!==(null==n?void 0:n.header)?i("div",{children:null===(v=null==n?void 0:n.content)||void 0===v?void 0:v.map(function(n){var t,o,a=-1!==(null==n?void 0:n.startIndex)&&-1!==(null==n?void 0:n.endIndex)&&Number(null==n?void 0:n.startIndex)===(null==V?void 0:V.startIndex)&&Number(null==n?void 0:n.endIndex)===(null==V?void 0:V.endIndex)&&(null===(t=null==V?void 0:V.name)||void 0===t?void 0:t.trim())===(null===(o=null==n?void 0:n.name)||void 0===o?void 0:o.trim());return a?i("div",e({style:{width:"100%"}},{children:i(r,{data:n})})):i(d,{children:l("span",e({style:e(e({},a?A.highlightTag:A.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return G(null==n?void 0:n.startIndex,null==n?void 0:n.endIndex,null==n?void 0:n.name)}},{children:[null==n?void 0:n.name,i("span",e({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:i(s,{})}))]}))})})}):i(d,{})]})})):i(d,{})}))]}))})}))};export{v as default};
2
- //# sourceMappingURL=CodebaseStatsComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodebaseStatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as n,__spreadArray as e}from"tslib";import{jsx as t,jsxs as i,Fragment as l}from"react/jsx-runtime";import{useState as o}from"react";import d from"../Accordian.js";import r from"../../../../assests/svg/chevronUp.svg.js";import s from"../../../../assests/svg/chevronDownArrow.svg.js";var u=function(){return i("svg",n({fill:"#000000",width:"16px",height:"16px",viewBox:"0 -6 524 524",xmlns:"http://www.w3.org/2000/svg"},{children:[t("title",{children:"down"}),t("path",{d:"M64 191L98 157 262 320 426 157 460 191 262 387 64 191Z"})]}))},a=function(a){var c,v=a.fileDetails,h=a.styles,m=a.highlightCodeStatsLine,p=a.handleStatsPillClick,f=o(["Columns","Check Constraints","Composite Keys","Default Constraints","Foreign Keys","Indexed Columns","Not Null Constraints","Regular Columns","Primary Keys","Unique Constraints"]),g=f[0],y=f[1],x=(null===(c=null==v?void 0:v.chunk_details)||void 0===c?void 0:c.column_names)||{},C=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}})},I=C(null==x?void 0:x.check_constraints),_=C(null==x?void 0:x.composite_keys),w=C(null==x?void 0:x.default_constraints),k=C(null==x?void 0:x.foreign_keys),K=C(null==x?void 0:x.indexed_columns),N=C(null==x?void 0:x.not_null_constraints),j=C(null==x?void 0:x.other_columns),b=C(null==x?void 0:x.primary_keys),D=C(null==x?void 0:x.unique_constraints);return t("div",{children:[{header:"Columns",content:[{header:"Primary Keys",content:b},{header:"Foreign Keys",content:k},{header:"Indexed Columns",content:K},{header:"Not Null Constraints",content:N},{header:"Unique Constraints",content:D},{header:"Composite Keys",content:_},{header:"Check Constraints",content:I},{header:"Default Constraints",content:w},{header:"Regular Columns",content:j}]}].map(function(o){var a,c=g.includes(o.header);return o.content.every(function(n){return 0===n.content.length})?t(l,{}):i("div",n({style:h.expandableSection},{children:[i("div",n({style:h.sectionHeader,onClick:function(){y(c?function(n){return n.filter(function(n){return n!==o.header})}:function(n){return n.includes(o.header)?n:e(e([],n,!0),[o.header],!1)})}},{children:[t("div",n({style:h.sectionTitle},{children:null==o?void 0:o.header})),t("img",{src:c?r:s})]})),c&&(null===(a=null==o?void 0:o.content)||void 0===a?void 0:a.map(function(e){var o,r;return(null===(o=null==e?void 0:e.content)||void 0===o?void 0:o.length)?t("div",n({style:h.sectionContent},{children:i("div",{children:[t("div",n({style:h.categoryTitle},{children:null==e?void 0:e.header})),t("div",{children:null===(r=null==e?void 0:e.content)||void 0===r?void 0:r.map(function(o){var r,s,a=-1!==(null==o?void 0:o.startIndex)&&-1!==(null==o?void 0:o.endIndex)&&Number(null==o?void 0:o.startIndex)===(null==m?void 0:m.startIndex)&&Number(null==o?void 0:o.endIndex)===(null==m?void 0:m.endIndex)&&(null===(r=null==m?void 0:m.name)||void 0===r?void 0:r.trim())===(null===(s=(null==e?void 0:e.header)+"_"+(null==o?void 0:o.name))||void 0===s?void 0:s.trim());return a?t("div",n({style:{width:"100%"}},{children:t(d,{data:o})})):t(l,{children:i("span",n({style:n(n({},a?h.highlightTag:h.tag),{display:"inline-flex",alignItems:"center",gap:"4px"}),onClick:function(){return p(null==o?void 0:o.startIndex,null==o?void 0:o.endIndex,(null==e?void 0:e.header)+"_"+(null==o?void 0:o.name))}},{children:[null==o?void 0:o.name,t("span",n({style:{display:"flex",alignItems:"center",justifyContent:"center",height:"16px",width:"16px"}},{children:t(u,{})}))]}))})})})]})})):t(l,{})}))]}))})})};export{a as default};
2
- //# sourceMappingURL=DbStatsComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DbStatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{jsx as t}from"react/jsx-runtime";import e from"./DbStatsComponent.js";import i from"./CodebaseStatsComponent.js";var a=function(a){var l=a.fileDetails,s=a.styles,o=a.highlightCodeStatsLine,h=a.handleStatsPillClick,r=a.highlightCodeStatsVariable,d=a.handleVariableClick,n=a.datasource;return"db"===(void 0===n?"codebase":n)?t(e,{fileDetails:l,styles:s,highlightCodeStatsLine:o,handleStatsPillClick:h}):t(i,{fileDetails:l,styles:s,highlightCodeStatsLine:o,handleStatsPillClick:h,highlightCodeStatsVariable:r,handleVariableClick:d})};export{a as default};
2
- //# sourceMappingURL=StatsComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatsComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as t}from"tslib";import{jsxs as e,jsx as i,Fragment as n}from"react/jsx-runtime";import{useState as o}from"react";var c=function(){return i("svg",t({width:"100%",height:"100%",fill:"#000000",viewBox:"-1 0 19 19",xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg"},{children:i("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"})}))},r=function(){return e("svg",t({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:[i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"})]}))},l=function(l){var s=l.darkMode,d=l.onToggle,f=l.toggleFullscreen,p=l.handleOpenFileDetailSection,h=l.showFullscreenIcon,u=l.showFileSummaryIButton,g=o(!1),m=g[0],b=g[1];return e("div",t({style:a.container},{children:[e("div",t({style:{position:"relative",display:"inline-block"},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)}},{children:[u?i("button",t({onClick:function(t){p(t)},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:i(c,{})})):i(n,{}),m&&i("div",t({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"}))]})),e("label",t({className:"theme-switch",style:a.switch},{children:[i("input",{type:"checkbox",checked:s,onChange:d,onClick:d,style:a.input}),i("div",t({style:t(t({},a.slider),{backgroundColor:s?"#444":"#f7f7f7"}),onClick:d},{children:i("div",t({style:t(t({},a.thumb),{transform:s?"translateX(22px)":"translateX(0)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,backgroundColor:s?"#444":"#f7f7f7"})},{children:s?"🌙":i(r,{})}))}))]})),h?i("button",t({onClick:function(t){return f(t)},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:"⛶"})):i(n,{})]}))},a={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"}};export{l as default};
2
- //# sourceMappingURL=ThemeToggle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as i}from"tslib";import{jsxs as e,Fragment as t,jsx as n}from"react/jsx-runtime";import{useState as o,useRef as r,useCallback as d}from"react";import{X as l,Maximize2 as a}from"lucide-react";function c(c){var s=c.images,p=c.highlights,h=c.highlightColor,u=void 0===h?"rgba(255, 220, 0, 0.35)":h,x=c.highlightActiveColor,g=void 0===x?"rgba(255, 220, 0, 0.65)":x,f=c.highlightBorderColor,b=void 0===f?"rgba(200, 160, 0, 0.8)":f,m=c.height,y=void 0===m?"700px":m,v=p.flatMap(function(i,e){return i.bboxes.map(function(t,n){return{bbox:t,dimensions:i.dimensions,pageIndex:i.pageIndex,key:"".concat(e,"-").concat(n)}})}).length,k=o(0),w=k[0],C=k[1],I=o(!1),z=I[0],R=I[1],S=r(null),B=r(null),M=r([]),j=d(function(i,e){void 0===e&&(e=!1);var t=Math.max(0,Math.min(v-1,i));C(t);var n=e?B.current:S.current,o=M.current[t];if(n&&o){var r=n.getBoundingClientRect().top,d=o.getBoundingClientRect().top-r+n.scrollTop-n.clientHeight/2+o.clientHeight/2;n.scrollTo({top:d,behavior:"smooth"})}},[v]),T=function(t){return void 0===t&&(t=!1),v>0&&n("div",i({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:e("div",i({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"4px"}},{children:[e("span",i({style:{fontSize:"12px",color:"#888"}},{children:[w+1," / ",v]})),n("button",i({onClick:function(){return j(w-1,t)},disabled:w<=0,style:{padding:"2px 8px",fontSize:"12px",cursor:w<=0?"not-allowed":"pointer",opacity:w<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↑"})),n("button",i({onClick:function(){return j(w+1,t)},disabled:w>=v-1,style:{padding:"2px 8px",fontSize:"12px",cursor:w>=v-1?"not-allowed":"pointer",opacity:w>=v-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↓"})),n("span",{style:{width:"1px",height:"16px",background:"#e2e8f0",margin:"0 2px"}}),t?n(l,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return R(!1)}}):n(a,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return R(!0)}})]}))}))},D=function(){var t=-1;return s.map(function(o,r){var d=p.filter(function(i){return i.pageIndex===r}).flatMap(function(i,e){return i.bboxes.map(function(n,o){return t++,{bbox:n,dimensions:i.dimensions,key:"".concat(r,"-").concat(e,"-").concat(o),globalIndex:t}})});return e("div",{children:[e("div",i({style:{fontSize:"12px",color:"#888",marginBottom:"4px"}},{children:["Page ",r+1]})),n("div",i({style:{position:"relative",width:"100%",paddingTop:"129%",flexShrink:0}},{children:e("div",i({style:{position:"absolute",inset:0}},{children:[n("img",{src:o,alt:"Page ".concat(r+1),style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},draggable:!1}),d.map(function(i){var e=i.bbox,t=i.dimensions,o=i.key,r=i.globalIndex,d=w===r;return n("div",{ref:function(i){M.current[r]=i},style:{position:"absolute",left:"".concat(e.xmin/t.width*100,"%"),top:"".concat(e.ymin/t.height*100,"%"),width:"".concat((e.xmax-e.xmin)/t.width*100,"%"),height:"".concat((e.ymax-e.ymin)/t.height*100,"%"),background:d?g:u,border:d?"1.5px solid ".concat(b):"none",borderRadius:"2px",zIndex:2}},o)})]}))}))]},r)})},F={overflowY:"auto",border:"1px solid #ddd",borderRadius:"4px",padding:"8px",display:"flex",flexDirection:"column",gap:"8px",boxSizing:"border-box"};return e(t,{children:[e("div",i({style:{width:"100%",maxWidth:"600px",fontFamily:"inherit"}},{children:[T(!1),n("div",i({ref:S,style:i(i({},F),{height:y})},{children:D()}))]})),z&&n("div",i({style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"}},{children:e("div",i({style:{background:"white",borderRadius:"8px",padding:"16px",width:"90vw",maxWidth:"800px",height:"90vh",display:"flex",flexDirection:"column"}},{children:[T(!0),n("div",i({ref:B,style:i(i({},F),{flex:1})},{children:D()}))]}))}))]})}export{c as default};
2
- //# sourceMappingURL=ScannedDocCitation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScannedDocCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export declare function AccordianHeadTest(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=AccordianHeadTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordianHeadTest.d.ts","sourceRoot":"","sources":["../../../src/AccordianHeadTest.tsx"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB,4CAoBhC"}
@@ -1,3 +0,0 @@
1
- declare const BookCitationTest: () => import("react/jsx-runtime").JSX.Element;
2
- export default BookCitationTest;
3
- //# sourceMappingURL=BookCitationTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BookCitationTest.d.ts","sourceRoot":"","sources":["../../../src/BookCitationTest.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,gBAAgB,+CA4DrB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,83 +0,0 @@
1
- export declare const data: {
2
- bookOverView: {
3
- title: string;
4
- totalPages: number;
5
- totalSectionCount: number;
6
- readingTime: string;
7
- summary: string;
8
- author: string;
9
- bookDescription: string;
10
- tableOfContent: ({
11
- href: string;
12
- title: string;
13
- children?: undefined;
14
- } | {
15
- href: string;
16
- title: string;
17
- children: {
18
- href: string;
19
- title: string;
20
- }[];
21
- })[];
22
- };
23
- bookDetails: {
24
- isbn: string;
25
- isbn10: string;
26
- imprint: string;
27
- publisher: string;
28
- publishingDate: string;
29
- age: null;
30
- subjectCategories: string[];
31
- reviews: string[];
32
- };
33
- bookCopyRight: {
34
- copyright: {
35
- year: null;
36
- owner: string;
37
- };
38
- salesRights: {
39
- description: string;
40
- territory: string[];
41
- };
42
- };
43
- bookAwards: {
44
- publisher: {
45
- name: string;
46
- shortName: string;
47
- tags: never[];
48
- };
49
- contributors: {
50
- primary: {
51
- name: string;
52
- role: string;
53
- tags: never[];
54
- }[];
55
- additional: {
56
- name: string;
57
- role: string;
58
- tags: never[];
59
- }[];
60
- };
61
- awards: never[];
62
- };
63
- bookCoverImage: string;
64
- };
65
- export declare const getHighlightContent: (chunkIds: string[]) => Promise<any>;
66
- export declare const fetchPaginatedData: ({ endpoint, page, pageSize, isbn, title }: {
67
- endpoint: any;
68
- page: any;
69
- pageSize: any;
70
- isbn: any;
71
- title: string;
72
- }) => Promise<any>;
73
- export declare const handleFetchManuscriptElements: ({ endpoint, page, pageSize, isbn, title }: {
74
- endpoint: any;
75
- page: any;
76
- pageSize: any;
77
- isbn: any;
78
- title: string;
79
- }) => Promise<any>;
80
- export declare const highlightArray: string[];
81
- declare const BookemonTest: () => import("react/jsx-runtime").JSX.Element;
82
- export default BookemonTest;
83
- //# sourceMappingURL=BookemonTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BookemonTest.d.ts","sourceRoot":"","sources":["../../../src/BookemonTest.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgYd,CAAA;AAGH,eAAO,MAAM,mBAAmB,aAAmB,MAAM,EAAE,iBA2B1D,CAAC;AAGF,eAAO,MAAM,kBAAkB;cAAmE,GAAG;UAAS,GAAG;cAAa,GAAG;UAAS,GAAG;WAAW,MAAM;kBAW7J,CAAC;AAGF,eAAO,MAAM,6BAA6B;cAAkE,GAAG;UAAS,GAAG;cAAW,GAAG;UAAQ,GAAG;WAAU,MAAM;kBASjK,CAAC;AAEJ,eAAO,MAAM,cAAc,UAAmB,CAAA;AAE9C,QAAA,MAAM,YAAY,+CAkIjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- interface ChatCitationTestProps {
2
- closePreview?: () => void;
3
- selectedIdFromReason?: string;
4
- }
5
- export default function ChatCitationTest({ closePreview }: ChatCitationTestProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
7
- //# sourceMappingURL=ChatCitationTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChatCitationTest.d.ts","sourceRoot":"","sources":["../../../src/ChatCitationTest.tsx"],"names":[],"mappings":"AAYA,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAC,MAAM,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAC,YAAY,EAAC,EAAC,qBAAqB,2CAsH5E"}
@@ -1,3 +0,0 @@
1
- declare const CodeCitationTest: () => import("react/jsx-runtime").JSX.Element;
2
- export default CodeCitationTest;
3
- //# sourceMappingURL=CodeCitationTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeCitationTest.d.ts","sourceRoot":"","sources":["../../../src/CodeCitationTest.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,gBAAgB,+CAiFrB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const DatagestMonTest: () => import("react/jsx-runtime").JSX.Element;
2
- export default DatagestMonTest;
3
- //# sourceMappingURL=DatagestMonTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatagestMonTest.d.ts","sourceRoot":"","sources":["../../../src/DatagestMonTest.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,eAAe,+CAgEpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const DbCodeCitationTest: () => import("react/jsx-runtime").JSX.Element;
2
- export default DbCodeCitationTest;
3
- //# sourceMappingURL=DbCodeCitationTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DbCodeCitationTest.d.ts","sourceRoot":"","sources":["../../../src/DbCodeCitationTest.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,kBAAkB,+CAgFvB,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -1,2 +0,0 @@
1
- export default function ExcelCitationTest(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=ExcelCitationTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExcelCitationTest.d.ts","sourceRoot":"","sources":["../../../src/ExcelCitationTest.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,iBAAiB,4CA8BxC"}
@@ -1,3 +0,0 @@
1
- declare const PaginatedTableTest: () => import("react/jsx-runtime").JSX.Element;
2
- export default PaginatedTableTest;
3
- //# sourceMappingURL=PaginatedTableTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaginatedTableTest.d.ts","sourceRoot":"","sources":["../../../../src/PaginatedTableTest/PaginatedTableTest.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,kBAAkB,+CAkHvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- interface UseFetchFileDataProps {
3
- initialData: any;
4
- initialLoading: boolean;
5
- openTableView: boolean;
6
- setTotalRecords: React.Dispatch<React.SetStateAction<number>>;
7
- rowCount: number;
8
- }
9
- declare const useFetchFileData: ({ initialData, initialLoading, openTableView, setTotalRecords, rowCount }: UseFetchFileDataProps) => {
10
- data: any;
11
- loading: boolean;
12
- setData: import("react").Dispatch<any>;
13
- };
14
- export default useFetchFileData;
15
- //# sourceMappingURL=useFetchData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFetchData.d.ts","sourceRoot":"","sources":["../../../../src/PaginatedTableTest/useFetchData.tsx"],"names":[],"mappings":";AAKA,UAAU,qBAAqB;IAC7B,WAAW,EAAE,GAAG,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,gBAAgB,8EAA+E,qBAAqB;;;;CAqDzH,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const PdfViewerTest: () => import("react/jsx-runtime").JSX.Element;
2
- export default PdfViewerTest;
3
- //# sourceMappingURL=PdfViewerTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PdfViewerTest.d.ts","sourceRoot":"","sources":["../../../src/PdfViewerTest.tsx"],"names":[],"mappings":"AAcA,QAAA,MAAM,aAAa,+CAwClB,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const ProjectAccordianTest: () => import("react/jsx-runtime").JSX.Element;
2
- export default ProjectAccordianTest;
3
- //# sourceMappingURL=ProjectAccordianTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProjectAccordianTest.d.ts","sourceRoot":"","sources":["../../../src/ProjectAccordianTest.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,oBAAoB,+CA0DzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const RequirementAICitationTest: () => import("react/jsx-runtime").JSX.Element;
2
- export default RequirementAICitationTest;
3
- //# sourceMappingURL=RequirementAICitationTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequirementAICitationTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAICitationTest.tsx"],"names":[],"mappings":"AAwBA,QAAA,MAAM,yBAAyB,+CA+a9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1,2 +0,0 @@
1
- export default function ScannedDocCitationTest(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=ScannedDocCitationTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScannedDocCitationTest.d.ts","sourceRoot":"","sources":["../../../src/ScannedDocCitationTest.tsx"],"names":[],"mappings":"AAqCA,MAAM,CAAC,OAAO,UAAU,sBAAsB,4CAY7C"}
@@ -1,3 +0,0 @@
1
- declare const TableCitationTest: () => import("react/jsx-runtime").JSX.Element;
2
- export default TableCitationTest;
3
- //# sourceMappingURL=TableCitationTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableCitationTest.d.ts","sourceRoot":"","sources":["../../../src/TableCitationTest.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,iBAAiB,+CAkEtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,73 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { UploadSource } from '../features/UploadData/main';
3
- import { IModel } from '../features/UploadData/Components/SelectDataFromRLEF/interfaces/models';
4
- import { IProject } from '../features/UploadData/Components/SelectDataFromRLEF/interfaces/projects';
5
- import { ICollection } from '../features/UploadData/Components/SelectDataFromRLEF/interfaces/collections';
6
- import { IData } from '../features/UploadData/Components/SelectDataFromRLEF/interfaces/data';
7
- export interface IDataCartProjectsState {
8
- availableProjects: Array<IProject>;
9
- isFetchingProjects: boolean;
10
- selectedProject: IProject | null;
11
- searchTerm: string;
12
- }
13
- export interface IDataCartTasksState {
14
- availableTasks: Array<IModel>;
15
- isFetchingTasks: boolean;
16
- selectedTask: IModel | null;
17
- searchTerm: string;
18
- }
19
- export interface IDataSetState {
20
- availableDataSets: ICollection[];
21
- isFetchingDataSets: boolean;
22
- selectedDataSet: ICollection | null;
23
- datasetCollectionTotalCount?: number;
24
- }
25
- interface DataSelectedContextType {
26
- selectedModeOfUploadData: UploadSource | null;
27
- setSelectedModeOfUploadData: (source: UploadSource) => void;
28
- projectsState: IDataCartProjectsState;
29
- tasksState: IDataCartTasksState;
30
- fetchAllProjects: () => Promise<void>;
31
- fetchAllTasks: (projectId: string) => Promise<void>;
32
- selectTask: (task: IModel | null) => void;
33
- selectProject: (project: IProject | null) => void;
34
- setProjectsSearchTerm: (term: string) => void;
35
- setTasksSearchTerm: (term: string) => void;
36
- selectOrUnselectAnRlefResource: (resource: IData) => void;
37
- breadcrumbs: Breadcrumb[];
38
- setBreadcrumbs: React.Dispatch<React.SetStateAction<Breadcrumb[]>>;
39
- currentScreenState: ScreenState;
40
- setCurrentScreenState: React.Dispatch<React.SetStateAction<ScreenState>>;
41
- selectedLocalFiles: File[];
42
- setSelectedLocalFiles: React.Dispatch<React.SetStateAction<File[]>>;
43
- dataSetState: IDataSetState;
44
- setDataSetState: React.Dispatch<React.SetStateAction<IDataSetState>>;
45
- selectedRlefResources: Array<IData>;
46
- setSelectedRlefResources: React.Dispatch<React.SetStateAction<IData[]>>;
47
- tempSelectedRlefResources: Array<IData>;
48
- setTempSelectedRlefResources: React.Dispatch<React.SetStateAction<IData[]>>;
49
- selectedSavedDataSetIds: Set<string>;
50
- setSelectedSavedDataSetIds: React.Dispatch<React.SetStateAction<Set<string>>>;
51
- activeRlefDataTab: TActiveRlefDataTab;
52
- setActiveRlefDataTab: React.Dispatch<React.SetStateAction<TActiveRlefDataTab>>;
53
- }
54
- type Breadcrumb = {
55
- label: string;
56
- path?: string;
57
- onClick: () => void;
58
- };
59
- export type ScreenState = "" | "dataSelectOptionsScreen" | "selectedDataListScreen" | "projectAndTaskSelectionScreen" | "rlefDataSetCollectionsScreen" | "rlefDataPointsInSelectedDataSetCollectionScreen" | "savedDataSetListScreen" | "viewSavedDataSetScreen" | "rlefHistoricalCopilotDataScreen";
60
- export type TActiveRlefDataTab = "collections" | "data";
61
- interface DataSelectedProviderProps {
62
- children: ReactNode;
63
- }
64
- export declare var currentScreenStateRef: {
65
- current?: ScreenState;
66
- };
67
- export declare var currentScreenStateSetterRef: {
68
- current?: React.Dispatch<React.SetStateAction<ScreenState>>;
69
- };
70
- export declare const DataSelectedProvider: React.FC<DataSelectedProviderProps>;
71
- export declare const useSelectDataContext: () => DataSelectedContextType;
72
- export {};
73
- //# sourceMappingURL=DataSelectedContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataSelectedContext.d.ts","sourceRoot":"","sources":["../../../../src/context/DataSelectedContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAuC,SAAS,EAAmC,MAAM,OAAO,CAAC;AAC/G,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,wEAAwE,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,0EAA0E,CAAC;AAGpG,OAAO,EAAE,WAAW,EAAE,MAAM,6EAA6E,CAAC;AAC1G,OAAO,EAAE,KAAK,EAAE,MAAM,sEAAsE,CAAC;AAG7F,MAAM,WAAW,sBAAsB;IACnC,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACnC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,QAAQ,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAChC,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC1B,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,WAAW,GAAG,IAAI,CAAC;IACpC,2BAA2B,CAAC,EAAC,MAAM,CAAA;CACtC;AAGD,UAAU,uBAAuB;IAC7B,wBAAwB,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9C,2BAA2B,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAG5D,aAAa,EAAE,sBAAsB,CAAC;IACtC,UAAU,EAAE,mBAAmB,CAAC;IAChC,gBAAgB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,aAAa,EAAE,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IAClD,qBAAqB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,kBAAkB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAE3C,8BAA8B,EAAE,CAAC,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1D,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACnE,kBAAkB,EAAE,WAAW,CAAC;IAChC,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;IACzE,kBAAkB,EAAC,IAAI,EAAE,CAAC;IAC1B,qBAAqB,EAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IAClE,YAAY,EAAE,aAAa,CAAC;IAC5B,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;IACrE,qBAAqB,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpC,wBAAwB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACxE,yBAAyB,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACxC,4BAA4B,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC5E,uBAAuB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,0BAA0B,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9E,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAClF;AAED,KAAK,UAAU,GAAG;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB,CAAA;AAGD,MAAM,MAAM,WAAW,GAAG,EAAE,GAAG,yBAAyB,GAAG,wBAAwB,GAAG,+BAA+B,GAAG,8BAA8B,GAAG,iDAAiD,GAAG,wBAAwB,GAAG,wBAAwB,GAAG,iCAAiC,CAAA;AACpS,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,MAAM,CAAC;AAMxD,UAAU,yBAAyB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,IAAI,qBAAqB,EAAE;IAAE,OAAO,CAAC,EAAE,WAAW,CAAA;CAAO,CAAC;AACjE,eAAO,IAAI,2BAA2B,EAAE;IAAE,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAA;CAAM,CAAC;AAE5G,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA+JpE,CAAC;AAGF,eAAO,MAAM,oBAAoB,+BAMhC,CAAC"}