@e-llm-studio/instant-learning 1.0.2 → 1.0.4

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 (247) hide show
  1. package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.js +1 -1
  2. package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
  3. package/dist/features/LearningManagement/AuditLog/AuditLog.js +1 -1
  4. package/dist/features/LearningManagement/LearningManagement.js +1 -1
  5. package/dist/types/src/AccordianHeadTest.d.ts +2 -1
  6. package/dist/types/src/AccordianHeadTest.d.ts.map +1 -1
  7. package/dist/types/src/App.d.ts +2 -1
  8. package/dist/types/src/App.d.ts.map +1 -1
  9. package/dist/types/src/CommonComponents/AccordianHead/AccordianHead.d.ts +1 -1
  10. package/dist/types/src/CommonComponents/AccordianHead/AccordianHead.d.ts.map +1 -1
  11. package/dist/types/src/CommonComponents/GradientSparkleIcon.d.ts +2 -1
  12. package/dist/types/src/CommonComponents/GradientSparkleIcon.d.ts.map +1 -1
  13. package/dist/types/src/CommonComponents/HelloWorld.d.ts +1 -1
  14. package/dist/types/src/CommonComponents/HelloWorld.d.ts.map +1 -1
  15. package/dist/types/src/CommonComponents/NoTableData.d.ts +1 -1
  16. package/dist/types/src/CommonComponents/NoTableData.d.ts.map +1 -1
  17. package/dist/types/src/CommonComponents/Spinner.d.ts +2 -1
  18. package/dist/types/src/CommonComponents/Spinner.d.ts.map +1 -1
  19. package/dist/types/src/GoogleFilePickerDemo.d.ts +2 -1
  20. package/dist/types/src/GoogleFilePickerDemo.d.ts.map +1 -1
  21. package/dist/types/src/ThinkingBulbIconComponent.d.ts +2 -1
  22. package/dist/types/src/ThinkingBulbIconComponent.d.ts.map +1 -1
  23. package/dist/types/src/features/DataSelector/DataSelector.d.ts +1 -1
  24. package/dist/types/src/features/DataSelector/DataSelector.d.ts.map +1 -1
  25. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts +1 -1
  26. package/dist/types/src/features/DataSelector/components/DataSelectionOptionsScreen.d.ts.map +1 -1
  27. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts +1 -1
  28. package/dist/types/src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.d.ts.map +1 -1
  29. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts +1 -1
  30. package/dist/types/src/features/DataSelector/components/RLEFDataSetCollectionsList.d.ts.map +1 -1
  31. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts +1 -1
  32. package/dist/types/src/features/DataSelector/components/RlefDataTabsComponent.d.ts.map +1 -1
  33. package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts +2 -1
  34. package/dist/types/src/features/DataSelector/components/RlefHistoricalCopilotData.d.ts.map +1 -1
  35. package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts +2 -1
  36. package/dist/types/src/features/DataSelector/components/SavedDataSetListScreen.d.ts.map +1 -1
  37. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts +1 -1
  38. package/dist/types/src/features/DataSelector/components/SelectedDataList.d.ts.map +1 -1
  39. package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts +1 -1
  40. package/dist/types/src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.d.ts.map +1 -1
  41. package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts +2 -1
  42. package/dist/types/src/features/DataSelector/components/subcomponents/Pagination/Pagination.d.ts.map +1 -1
  43. package/dist/types/src/features/DocumentLearning/_components/MessageRendering.d.ts +2 -1
  44. package/dist/types/src/features/DocumentLearning/_components/MessageRendering.d.ts.map +1 -1
  45. package/dist/types/src/features/DocumentLearning/_components/MinimizedThinkingSteps.d.ts +2 -1
  46. package/dist/types/src/features/DocumentLearning/_components/MinimizedThinkingSteps.d.ts.map +1 -1
  47. package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowDown.d.ts +2 -1
  48. package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowDown.d.ts.map +1 -1
  49. package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowIconBlue.d.ts +2 -1
  50. package/dist/types/src/features/DocumentLearning/_components/_svg/ArrowIconBlue.d.ts.map +1 -1
  51. package/dist/types/src/features/DocumentLearning/_components/_svg/CompleteIconGreen.d.ts +2 -1
  52. package/dist/types/src/features/DocumentLearning/_components/_svg/CompleteIconGreen.d.ts.map +1 -1
  53. package/dist/types/src/features/DocumentLearning/_components/_svg/NewChatIcon.d.ts +2 -1
  54. package/dist/types/src/features/DocumentLearning/_components/_svg/NewChatIcon.d.ts.map +1 -1
  55. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +1 -1
  56. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -1
  57. package/dist/types/src/features/IL-OTJ/_components/AccordianSection.d.ts +2 -1
  58. package/dist/types/src/features/IL-OTJ/_components/AccordianSection.d.ts.map +1 -1
  59. package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatHeader.d.ts +2 -1
  60. package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatHeader.d.ts.map +1 -1
  61. package/dist/types/src/features/IL-OTJ/_components/ConflictingReasoningCard.d.ts +1 -1
  62. package/dist/types/src/features/IL-OTJ/_components/ConflictingReasoningCard.d.ts.map +1 -1
  63. package/dist/types/src/features/IL-OTJ/_components/CriticalGaps.d.ts +2 -1
  64. package/dist/types/src/features/IL-OTJ/_components/CriticalGaps.d.ts.map +1 -1
  65. package/dist/types/src/features/IL-OTJ/_components/GapExplanationAccordion.d.ts +1 -1
  66. package/dist/types/src/features/IL-OTJ/_components/GapExplanationAccordion.d.ts.map +1 -1
  67. package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts +1 -1
  68. package/dist/types/src/features/IL-OTJ/_components/ILPopup.d.ts.map +1 -1
  69. package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts +3 -3
  70. package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.d.ts.map +1 -1
  71. package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts +1 -1
  72. package/dist/types/src/features/IL-OTJ/_components/MarkdownComponents/MarkdownSelect.d.ts.map +1 -1
  73. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.d.ts +3 -3
  74. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/ClickableChatComponents.d.ts.map +1 -1
  75. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts +2 -1
  76. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map +1 -1
  77. package/dist/types/src/features/IL-OTJ/_components/MinimizedThinkingSteps.d.ts +2 -1
  78. package/dist/types/src/features/IL-OTJ/_components/MinimizedThinkingSteps.d.ts.map +1 -1
  79. package/dist/types/src/features/IL-OTJ/_components/ViewFormUpdateCard.d.ts +2 -1
  80. package/dist/types/src/features/IL-OTJ/_components/ViewFormUpdateCard.d.ts.map +1 -1
  81. package/dist/types/src/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.d.ts +2 -1
  82. package/dist/types/src/features/IL-OTJ/_components/ViewIdentifiedFieldsCard.d.ts.map +1 -1
  83. package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.d.ts +1 -1
  84. package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.d.ts.map +1 -1
  85. package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/StepDetailView.d.ts +2 -1
  86. package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/StepDetailView.d.ts.map +1 -1
  87. package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.d.ts +9 -9
  88. package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.d.ts.map +1 -1
  89. package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.d.ts +2 -1
  90. package/dist/types/src/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.d.ts.map +1 -1
  91. package/dist/types/src/features/IL-OTJ/_components/_svg/ArrowDown.d.ts +2 -1
  92. package/dist/types/src/features/IL-OTJ/_components/_svg/ArrowDown.d.ts.map +1 -1
  93. package/dist/types/src/features/IL-OTJ/_components/_svg/ArrowIconBlue.d.ts +2 -1
  94. package/dist/types/src/features/IL-OTJ/_components/_svg/ArrowIconBlue.d.ts.map +1 -1
  95. package/dist/types/src/features/IL-OTJ/_components/_svg/BookIcon.d.ts +2 -1
  96. package/dist/types/src/features/IL-OTJ/_components/_svg/BookIcon.d.ts.map +1 -1
  97. package/dist/types/src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts +1 -1
  98. package/dist/types/src/features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.d.ts.map +1 -1
  99. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronDown.d.ts +2 -1
  100. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronDown.d.ts.map +1 -1
  101. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronIcon.d.ts +1 -1
  102. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronIcon.d.ts.map +1 -1
  103. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronUp.d.ts +2 -1
  104. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronUp.d.ts.map +1 -1
  105. package/dist/types/src/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts +2 -1
  106. package/dist/types/src/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts.map +1 -1
  107. package/dist/types/src/features/IL-OTJ/_components/_svg/CompleteIconGreen.d.ts +2 -1
  108. package/dist/types/src/features/IL-OTJ/_components/_svg/CompleteIconGreen.d.ts.map +1 -1
  109. package/dist/types/src/features/IL-OTJ/_components/_svg/GapIcon.d.ts +1 -1
  110. package/dist/types/src/features/IL-OTJ/_components/_svg/GapIcon.d.ts.map +1 -1
  111. package/dist/types/src/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.d.ts +2 -1
  112. package/dist/types/src/features/IL-OTJ/_components/_svg/HumanWithBrainIcon.d.ts.map +1 -1
  113. package/dist/types/src/features/IL-OTJ/_components/_svg/InfoIcon.d.ts +2 -1
  114. package/dist/types/src/features/IL-OTJ/_components/_svg/InfoIcon.d.ts.map +1 -1
  115. package/dist/types/src/features/IL-OTJ/_components/_svg/LeftAndRightArrow.d.ts +1 -1
  116. package/dist/types/src/features/IL-OTJ/_components/_svg/LeftAndRightArrow.d.ts.map +1 -1
  117. package/dist/types/src/features/IL-OTJ/_components/_svg/Lightbulb.d.ts +1 -1
  118. package/dist/types/src/features/IL-OTJ/_components/_svg/Lightbulb.d.ts.map +1 -1
  119. package/dist/types/src/features/IL-OTJ/_components/_svg/NewChatIcon.d.ts +1 -1
  120. package/dist/types/src/features/IL-OTJ/_components/_svg/NewChatIcon.d.ts.map +1 -1
  121. package/dist/types/src/features/IL-OTJ/_components/_svg/PencilEdit.d.ts +2 -1
  122. package/dist/types/src/features/IL-OTJ/_components/_svg/PencilEdit.d.ts.map +1 -1
  123. package/dist/types/src/features/IL-OTJ/_components/_svg/RadioButton.d.ts +2 -1
  124. package/dist/types/src/features/IL-OTJ/_components/_svg/RadioButton.d.ts.map +1 -1
  125. package/dist/types/src/features/IL-OTJ/_components/_svg/RightSideIcons.d.ts +9 -8
  126. package/dist/types/src/features/IL-OTJ/_components/_svg/RightSideIcons.d.ts.map +1 -1
  127. package/dist/types/src/features/IL-OTJ/_components/_svg/ScrollToBottom.d.ts +2 -1
  128. package/dist/types/src/features/IL-OTJ/_components/_svg/ScrollToBottom.d.ts.map +1 -1
  129. package/dist/types/src/features/IL-OTJ/_components/_svg/SendButton.d.ts +2 -1
  130. package/dist/types/src/features/IL-OTJ/_components/_svg/SendButton.d.ts.map +1 -1
  131. package/dist/types/src/features/IL-OTJ/_components/_svg/SparkleIcon.d.ts +2 -1
  132. package/dist/types/src/features/IL-OTJ/_components/_svg/SparkleIcon.d.ts.map +1 -1
  133. package/dist/types/src/features/IL-OTJ/_components/_svg/TickIcon.d.ts +1 -1
  134. package/dist/types/src/features/IL-OTJ/_components/_svg/TickIcon.d.ts.map +1 -1
  135. package/dist/types/src/features/IL-OTJ/_components/_svg/UserIcon.d.ts +2 -1
  136. package/dist/types/src/features/IL-OTJ/_components/_svg/UserIcon.d.ts.map +1 -1
  137. package/dist/types/src/features/IL-OTJ/_components/_svg/WarningIcon.d.ts +2 -1
  138. package/dist/types/src/features/IL-OTJ/_components/_svg/WarningIcon.d.ts.map +1 -1
  139. package/dist/types/src/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.d.ts +2 -1
  140. package/dist/types/src/features/IL-OTJ/_components/_svg/WatchMeWorkIcon.d.ts.map +1 -1
  141. package/dist/types/src/features/IL-OTJ/_components/atoms/Button/Button.d.ts +1 -1
  142. package/dist/types/src/features/IL-OTJ/_components/atoms/Button/Button.d.ts.map +1 -1
  143. package/dist/types/src/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts +1 -1
  144. package/dist/types/src/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts.map +1 -1
  145. package/dist/types/src/features/IL-OTJ/_components/atoms/Toggle/Toggle.d.ts +2 -1
  146. package/dist/types/src/features/IL-OTJ/_components/atoms/Toggle/Toggle.d.ts.map +1 -1
  147. package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +1 -1
  148. package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -1
  149. package/dist/types/src/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts +1 -1
  150. package/dist/types/src/features/IL-OTJ/_components/molecules/Sections/SectionWrapper.d.ts.map +1 -1
  151. package/dist/types/src/features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.d.ts +2 -1
  152. package/dist/types/src/features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.d.ts.map +1 -1
  153. package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts +2 -1
  154. package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts.map +1 -1
  155. package/dist/types/src/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.d.ts +2 -1
  156. package/dist/types/src/features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.d.ts.map +1 -1
  157. package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts +1 -1
  158. package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts.map +1 -1
  159. package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts +2 -1
  160. package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map +1 -1
  161. package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.d.ts +2 -1
  162. package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/AgentComposerRuleComparison.d.ts.map +1 -1
  163. package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts +2 -1
  164. package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map +1 -1
  165. package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.d.ts +2 -1
  166. package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparisonNew.d.ts.map +1 -1
  167. package/dist/types/src/features/IL-OTJ/_components/templates/Testing/Testing.d.ts +2 -1
  168. package/dist/types/src/features/IL-OTJ/_components/templates/Testing/Testing.d.ts.map +1 -1
  169. package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts +2 -1
  170. package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
  171. package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.d.ts +2 -1
  172. package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.d.ts.map +1 -1
  173. package/dist/types/src/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.d.ts +2 -1
  174. package/dist/types/src/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.d.ts.map +1 -1
  175. package/dist/types/src/features/IL-OTJ/store/CitationsContext.d.ts +1 -1
  176. package/dist/types/src/features/IL-OTJ/store/CitationsContext.d.ts.map +1 -1
  177. package/dist/types/src/features/InstantLearning/_components/MessageRendering.d.ts +2 -1
  178. package/dist/types/src/features/InstantLearning/_components/MessageRendering.d.ts.map +1 -1
  179. package/dist/types/src/features/InstantLearning/_components/MinimizedThinkingSteps.d.ts +2 -1
  180. package/dist/types/src/features/InstantLearning/_components/MinimizedThinkingSteps.d.ts.map +1 -1
  181. package/dist/types/src/features/InstantLearning/_components/_svg/ArrowDown.d.ts +2 -1
  182. package/dist/types/src/features/InstantLearning/_components/_svg/ArrowDown.d.ts.map +1 -1
  183. package/dist/types/src/features/InstantLearning/_components/_svg/ArrowIconBlue.d.ts +2 -1
  184. package/dist/types/src/features/InstantLearning/_components/_svg/ArrowIconBlue.d.ts.map +1 -1
  185. package/dist/types/src/features/InstantLearning/_components/_svg/CompleteIconGreen.d.ts +2 -1
  186. package/dist/types/src/features/InstantLearning/_components/_svg/CompleteIconGreen.d.ts.map +1 -1
  187. package/dist/types/src/features/InstantLearning/_components/_svg/NewChatIcon.d.ts +2 -1
  188. package/dist/types/src/features/InstantLearning/_components/_svg/NewChatIcon.d.ts.map +1 -1
  189. package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +2 -1
  190. package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
  191. package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts +2 -1
  192. package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts.map +1 -1
  193. package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts +2 -1
  194. package/dist/types/src/features/LearningManagement/RuleContent/ApprovalLearningDialog.d.ts.map +1 -1
  195. package/dist/types/src/features/LearningManagement/components/CardSkeleton.d.ts +2 -1
  196. package/dist/types/src/features/LearningManagement/components/CardSkeleton.d.ts.map +1 -1
  197. package/dist/types/src/features/LearningManagement/components/LearningTemplateManagementSkeleton.d.ts +2 -1
  198. package/dist/types/src/features/LearningManagement/components/LearningTemplateManagementSkeleton.d.ts.map +1 -1
  199. package/dist/types/src/features/LearningManagement/components/RuleContentSkeleton.d.ts +2 -1
  200. package/dist/types/src/features/LearningManagement/components/RuleContentSkeleton.d.ts.map +1 -1
  201. package/dist/types/src/features/LearningManagement/components/Skeleton.d.ts +1 -1
  202. package/dist/types/src/features/LearningManagement/components/Skeleton.d.ts.map +1 -1
  203. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts +1 -1
  204. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDrive.d.ts.map +1 -1
  205. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts +1 -1
  206. package/dist/types/src/features/UploadData/Components/SelectDataFromGoogleDrive/SelectDataFromGoogleDriveButton.d.ts.map +1 -1
  207. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts +1 -1
  208. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystem.d.ts.map +1 -1
  209. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts +1 -1
  210. package/dist/types/src/features/UploadData/Components/SelectDataFromLocalSystem/SelectDataFromLocalSystemButton.d.ts.map +1 -1
  211. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts +1 -1
  212. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Dataset-collection.d.ts.map +1 -1
  213. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts +1 -1
  214. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/DatasetCollectionInfo.d.ts.map +1 -1
  215. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts +1 -1
  216. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/ProjectTaskSelect.d.ts.map +1 -1
  217. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts +1 -1
  218. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/Tooltip.d.ts.map +1 -1
  219. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts +2 -1
  220. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/ConfidenceScoreColumnMenu.d.ts.map +1 -1
  221. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts +2 -1
  222. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/LabelColumnMenu.d.ts.map +1 -1
  223. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts +2 -1
  224. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TableColumnResetFilterButton.d.ts.map +1 -1
  225. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts +2 -1
  226. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dataset-collectionFilterColumnMenuComponents/TagColumnMenu.d.ts.map +1 -1
  227. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts +1 -1
  228. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/dropdown-with-radio.d.ts.map +1 -1
  229. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts +1 -1
  230. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/Components/input-label-with-info.d.ts.map +1 -1
  231. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts +1 -1
  232. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEF.d.ts.map +1 -1
  233. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts +1 -1
  234. package/dist/types/src/features/UploadData/Components/SelectDataFromRLEF/SelectDataFromRLEFButton.d.ts.map +1 -1
  235. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts +1 -1
  236. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSet.d.ts.map +1 -1
  237. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts +1 -1
  238. package/dist/types/src/features/UploadData/Components/SelectDataFromSavedDataSet/SelectDataFromSavedDataSetButton.d.ts.map +1 -1
  239. package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts +2 -1
  240. package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -1
  241. package/dist/types/src/routes/Routes.d.ts +2 -1
  242. package/dist/types/src/routes/Routes.d.ts.map +1 -1
  243. package/dist/types/src/utils/CustomSkeleton.d.ts +1 -1
  244. package/dist/types/src/utils/CustomSkeleton.d.ts.map +1 -1
  245. package/dist/types/src/utils/SkeletonLoader.d.ts +1 -1
  246. package/dist/types/src/utils/SkeletonLoader.d.ts.map +1 -1
  247. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),o=require("react-router-dom"),n=require("@e-llm-studio/audit-log");require("@e-llm-studio/audit-log/dist/styles.css");var r=require("lucide-react");exports.default=function(a){var l=a.configId,s=a.ruleData,d=a.scopeId,c=a.scopeName,g=(null==c?void 0:c.trim())||"Selected",h=t.useMemo(function(){var i,t,o=[];d&&o.push(d);var n=(null===(i=null==s?void 0:s.data)||void 0===i?void 0:i.tier1)||(null==s?void 0:s.tier1)||[],r=(null===(t=null==s?void 0:s.data)||void 0===t?void 0:t.tier2)||(null==s?void 0:s.tier2)||[];return e.__spreadArray(e.__spreadArray([],n,!0),r,!0).forEach(function(e){(null==e?void 0:e.ruleId)&&o.push(e.ruleId),(null==e?void 0:e.variants)&&Array.isArray(e.variants)&&e.variants.forEach(function(e){(null==e?void 0:e.variantId)&&o.push(e.variantId)})}),o},[s,d]);return t.useEffect(function(){console.log("Flattened External Resource IDs:",h)},[h]),i.jsxs("div",e.__assign({style:{padding:"24px",fontFamily:"Arial, sans-serif"}},{children:[i.jsxs("div",e.__assign({style:{marginBottom:"16px",paddingBottom:"4px"}},{children:[i.jsxs("h1",e.__assign({style:{margin:0,color:"#334155",fontSize:"20px",fontWeight:700,lineHeight:1.25}},{children:[g," - Audit Log"]})),i.jsxs("p",e.__assign({style:{margin:"8px 0 0",color:"#667085",fontSize:"16px",fontWeight:500,lineHeight:1}},{children:["Track all learning updates and modifications with the ",g," scope."]}))]})),i.jsx(o.MemoryRouter,{children:i.jsx(n.AuditLog,{configId:l,getData:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/fetch"},distinctValuesApi:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/distinct-values"},query:{externalResourceId:h.length>0?h:[""],paginationLimit:10},sidebar:{config:{showAnalystFilter:!0,showDateFilter:!0,showChangeTitleFilter:!0,showImpactPercentage:!1},labels:{title:"Filters",multiSelectLabel:"Modified By",multiSelectHint:"Filter by the user who made the change",changeTitleLabel:"Change Action",changeTitleHint:"Filter by Actions"}},table:{tableProps:{scrollable:!0,scrollHeight:"80vh",showGridlines:!0,size:"small",rowClassName:function(){return"custom-compact-row"},pt:{bodyCell:{style:{paddingTop:"4px",paddingBottom:"4px"}}}},hiddenColumns:["actions","changeSummary","changeDateTime","logId"],extraColumns:[{key:"modifiedBy",header:"Modified By",body:function(t){return i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[i.jsx(r.User,{size:16,color:"#64748b",style:{flexShrink:0}}),i.jsx("span",e.__assign({style:{fontWeight:500}},{children:t.modifiedBy}))]}))},style:{width:"15%",minWidth:"140px"}},{key:"changeAction",header:"Action",body:function(t){var o,n,r=(o=t.changeTitle,(n=(o||"").toUpperCase()).includes("CREATE")?{color:"#2e7d32",backgroundColor:"#edf7ed",borderColor:"#c8e6c9",boxShadow:"0 1px 2px rgba(46, 125, 50, 0.08)"}:n.includes("UPDATE")||n.includes("TOGGLE")?{color:"#1565c0",backgroundColor:"#e3f2fd",borderColor:"#bbdefb",boxShadow:"0 1px 2px rgba(21, 101, 192, 0.08)"}:n.includes("DELETE")?{color:"#c62828",backgroundColor:"#fdeeed",borderColor:"#ffcdd2",boxShadow:"0 1px 2px rgba(198, 40, 40, 0.08)"}:{color:"#475569",backgroundColor:"#f8fafc",borderColor:"#cbd5e1",boxShadow:"0 1px 2px rgba(15, 23, 42, 0.06)"}),a=t.changeTitle?t.changeTitle.replace(/_/g," "):"—";return i.jsx("span",e.__assign({style:{color:r.color,backgroundColor:r.backgroundColor,border:"1px solid ".concat(r.borderColor),boxShadow:r.boxShadow,padding:"6px 12px",borderRadius:"999px",fontSize:"12px",lineHeight:1,fontWeight:600,display:"inline-block",minWidth:"76px",textAlign:"center",textTransform:"capitalize"}},{children:a}))},style:{width:"15%",textAlign:"center"}},{key:"customChangeSummary",header:"Change Summary",body:function(t){var o;return i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:"8px",padding:"4px 0"}},{children:[i.jsx(r.FileText,{size:16,color:"#94a3b8",style:{flexShrink:0,marginTop:"2px"}}),i.jsx("span",e.__assign({style:{color:"#334155",fontSize:"13px",lineHeight:1.5}},{children:null!==(o=t.actionText)&&void 0!==o?o:"—"}))]}))},style:{width:"35%",minWidth:"250px"}},{key:"customChangeDateTime",header:"Change Time and Date",body:function(t){if(!t.actionDate)return i.jsx("span",e.__assign({style:{color:"#94a3b8"}},{children:"—"}));var o=new Date(t.actionDate),n=o.toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}),r=o.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",fontSize:"13px",color:"#475569"}},{children:[i.jsx("span",e.__assign({style:{fontWeight:500}},{children:n})),i.jsx("span",{children:r})]}))},style:{width:"15%",minWidth:"150px",textAlign:"center"}}]},filters:{config:{showFilterButton:!0,showSort:!0,showDate:!0,showSearch:!0,sortOptions:{latest:!0,oldest:!0,impactHighToLow:!1,impactLowToHigh:!1}}}})})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),o=require("@e-llm-studio/audit-log");require("@e-llm-studio/audit-log/dist/styles.css");var n=require("lucide-react");exports.default=function(r){var a=r.configId,l=r.ruleData,s=r.scopeId,d=r.scopeName,c=(null==d?void 0:d.trim())||"Selected",g=t.useMemo(function(){var i,t,o=[];s&&o.push(s);var n=(null===(i=null==l?void 0:l.data)||void 0===i?void 0:i.tier1)||(null==l?void 0:l.tier1)||[],r=(null===(t=null==l?void 0:l.data)||void 0===t?void 0:t.tier2)||(null==l?void 0:l.tier2)||[];return e.__spreadArray(e.__spreadArray([],n,!0),r,!0).forEach(function(e){(null==e?void 0:e.ruleId)&&o.push(e.ruleId),(null==e?void 0:e.variants)&&Array.isArray(e.variants)&&e.variants.forEach(function(e){(null==e?void 0:e.variantId)&&o.push(e.variantId)})}),o},[l,s]);return t.useEffect(function(){console.log("Flattened External Resource IDs:",g)},[g]),i.jsxs("div",e.__assign({style:{padding:"24px",fontFamily:"Arial, sans-serif"}},{children:[i.jsxs("div",e.__assign({style:{marginBottom:"16px",paddingBottom:"4px"}},{children:[i.jsxs("h1",e.__assign({style:{margin:0,color:"#334155",fontSize:"20px",fontWeight:700,lineHeight:1.25}},{children:[c," - Audit Log"]})),i.jsxs("p",e.__assign({style:{margin:"8px 0 0",color:"#667085",fontSize:"16px",fontWeight:500,lineHeight:1}},{children:["Track all learning updates and modifications with the ",c," scope."]}))]})),i.jsx(o.AuditLog,{configId:a,getData:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/fetch"},distinctValuesApi:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/distinct-values"},query:{externalResourceId:g.length>0?g:[""],paginationLimit:10},sidebar:{config:{showAnalystFilter:!0,showDateFilter:!0,showChangeTitleFilter:!0,showImpactPercentage:!1},labels:{title:"Filters",multiSelectLabel:"Modified By",multiSelectHint:"Filter by the user who made the change",changeTitleLabel:"Change Action",changeTitleHint:"Filter by Actions"}},table:{tableProps:{scrollable:!0,scrollHeight:"80vh",showGridlines:!0,size:"small",rowClassName:function(){return"custom-compact-row"},pt:{bodyCell:{style:{paddingTop:"4px",paddingBottom:"4px"}}}},hiddenColumns:["actions","changeSummary","changeDateTime","logId"],extraColumns:[{key:"modifiedBy",header:"Modified By",body:function(t){return i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[i.jsx(n.User,{size:16,color:"#64748b",style:{flexShrink:0}}),i.jsx("span",e.__assign({style:{fontWeight:500}},{children:t.modifiedBy}))]}))},style:{width:"15%",minWidth:"140px"}},{key:"changeAction",header:"Action",body:function(t){var o,n,r=(o=t.changeTitle,(n=(o||"").toUpperCase()).includes("CREATE")?{color:"#2e7d32",backgroundColor:"#edf7ed",borderColor:"#c8e6c9",boxShadow:"0 1px 2px rgba(46, 125, 50, 0.08)"}:n.includes("UPDATE")||n.includes("TOGGLE")?{color:"#1565c0",backgroundColor:"#e3f2fd",borderColor:"#bbdefb",boxShadow:"0 1px 2px rgba(21, 101, 192, 0.08)"}:n.includes("DELETE")?{color:"#c62828",backgroundColor:"#fdeeed",borderColor:"#ffcdd2",boxShadow:"0 1px 2px rgba(198, 40, 40, 0.08)"}:{color:"#475569",backgroundColor:"#f8fafc",borderColor:"#cbd5e1",boxShadow:"0 1px 2px rgba(15, 23, 42, 0.06)"}),a=t.changeTitle?t.changeTitle.replace(/_/g," "):"—";return i.jsx("span",e.__assign({style:{color:r.color,backgroundColor:r.backgroundColor,border:"1px solid ".concat(r.borderColor),boxShadow:r.boxShadow,padding:"6px 12px",borderRadius:"999px",fontSize:"12px",lineHeight:1,fontWeight:600,display:"inline-block",minWidth:"76px",textAlign:"center",textTransform:"capitalize"}},{children:a}))},style:{width:"15%",textAlign:"center"}},{key:"customChangeSummary",header:"Change Summary",body:function(t){var o;return i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:"8px",padding:"4px 0"}},{children:[i.jsx(n.FileText,{size:16,color:"#94a3b8",style:{flexShrink:0,marginTop:"2px"}}),i.jsx("span",e.__assign({style:{color:"#334155",fontSize:"13px",lineHeight:1.5}},{children:null!==(o=t.actionText)&&void 0!==o?o:"—"}))]}))},style:{width:"35%",minWidth:"250px"}},{key:"customChangeDateTime",header:"Change Time and Date",body:function(t){if(!t.actionDate)return i.jsx("span",e.__assign({style:{color:"#94a3b8"}},{children:"—"}));var o=new Date(t.actionDate),n=o.toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}),r=o.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return i.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",fontSize:"13px",color:"#475569"}},{children:[i.jsx("span",e.__assign({style:{fontWeight:500}},{children:n})),i.jsx("span",{children:r})]}))},style:{width:"15%",minWidth:"150px",textAlign:"center"}}]},filters:{config:{showFilterButton:!0,showSort:!0,showDate:!0,showSearch:!0,sortOptions:{latest:!0,oldest:!0,impactHighToLow:!1,impactLowToHigh:!1}}}})]}))};
2
2
  //# sourceMappingURL=AuditLog.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react"),s=require("./store/useLearningTemplateStore.js"),a=require("primereact/toast"),i=require("./styles/LearningTemplateManagement.module.css.js"),o=require("./LearningTemplateLayout.js"),l=require("./components/EmptyLearningState.js"),u=require("./store/useAuthStore.js"),c=require("./apis/scopeApis.js"),d=require("./hooks/useLearningTemplateQueryParams.js"),p=require("./components/ConfirmationModal.js"),g=require("./components/LearningTemplateManagementSkeleton.js"),f=require("./utils/treeUtils.js"),S=require("./store/useEnvStore.js"),m=require("./store/useConfigStore.js"),v=require("./components/ToolTip.js"),h=require("./components/CreateRuleSetLegacyModal.js"),_=require("./store/usePermissionsStore.js"),y=require("./store/useAppSecRolesStore.js"),T=require("./queries/useApprovalQueries.js"),b=require("./RuleContent/AddScopeModal.js"),C=require("react-router-dom"),L=require("./shared/SuccessToastContent.js"),j=require("./shared/ErrorToastContent.js"),E=require("./RuleContent/RenameScopeModal.js"),A=[{id:"learnings",label:"Learnings",icon:r.BookOpen,badgeKey:"learningsCount"},{id:"access",label:"Access",icon:r.Users},{id:"history",label:"Change History",icon:r.History}],R=new Set(A.map(function(e){return e.id}));exports.default=function(r){var w,O=this,I=r.userDetails,q=r.llmStudioUrl,N=r.audacyBackendUrl,P=r.ilLabels,k=r.config,x=r.rbacConfig,D=r.app_integration_id,U=r.backwardCompatibility,M=void 0!==U&&U,B=s.useLearningTemplateStore(function(e){return e.selectedRuleSetId}),G=s.useLearningTemplateStore(function(e){return e.setSelectedRuleSetId}),F=s.useLearningTemplateStore(function(e){return e.error}),Q=s.useLearningTemplateStore(function(e){return e.setError}),Y=s.useLearningTemplateStore(function(e){return e.setStations}),K=s.useLearningTemplateStore(function(e){return e.scopeTreeData}),H=s.useLearningTemplateStore(function(e){return e.setScopeTreeData}),z=n.useState({isOpen:!1,type:"GLOBAL"}),V=z[0],W=z[1],J=n.useState(!1),X=J[0],Z=J[1],$=n.useState(!1),ee=$[0],te=$[1],ne=n.useState("learnings"),re=ne[0],se=ne[1],ae=n.useState(null),ie=ae[0],oe=ae[1],le=n.useState(null),ue=le[0],ce=le[1],de=n.useRef(null),pe=n.useRef(null),ge=n.useRef(null),fe=u.default();fe.user;var Se=fe.setUser,me=m.useConfigStore(),ve=me.setConfig,he=me.setIlLabels,_e=e.__spreadArray([{type:"GLOBAL",label:"Global",addChildLabel:"Add Scope",addChildType:"SCOPE"},e.__assign({type:"SCOPE",label:"Scope"},!M&&{addChildLabel:"Add Subscope",addChildType:"SUBSCOPE"})],M?[]:[{type:"SUBSCOPE",label:"Subscope"}],!0),ye=function(){try{return C.useLocation()}catch(e){return{search:""}}}();n.useEffect(function(){var e=new URLSearchParams(window.location.search),t=e.get(d.QUERY_PARAM_KEYS.RULESET_ID),n=e.get(d.QUERY_PARAM_KEYS.SECTION),r=n&&R.has(n)?n:"learnings";(null==t?void 0:t.length)&&G&&se&&(G(t),se(r))},[null==ye?void 0:ye.search,se,G]);var Te=_.usePermissionsStore(function(e){return e.fetchPermissions}),be=_.usePermissionsStore(function(e){return e.hasPermission}),Ce=y.useAppSecRolesStore(function(e){return e.setRoles}),Le=S.default(function(e){return e.appsecRbacUrl})===x.appsecRbacUrl,je=T.useGetAppSecRolesQuery(x.applicationId,Le).data;n.useEffect(function(){je&&Ce(je.map(function(e){return{_id:e._id,name:e.name}}))},[je,Ce]),n.useEffect(function(){var e;console.log("userDetails",I),Se(I),console.log("llmStudioUrl",q),console.log("audacyBackendUrl",N),S.default.getState().setLlmStudioUrl(q),S.default.getState().setAudacyBackendUrl(N),S.default.getState().setRbacConfig(x),ve(k),he(P),s.useLearningTemplateStore.getState().setAppIntegrationId(null!=D?D:null),s.useLearningTemplateStore.getState().setBackwardCompatibility(M),s.useLearningTemplateStore.getState().setToken(null!==(e=I.accessToken)&&void 0!==e?e:null)},[I,Se,q,N,x,k,ve,P,he,D,M]),n.useEffect(function(){(null==I?void 0:I.accessToken)&&q&&c.fetchTiers()},[D,null==I?void 0:I.accessToken,q]);var Ee=function(t){return void 0===t&&(t=!0),e.__awaiter(O,void 0,void 0,function(){var n,r,a,i,o,l;return e.__generator(this,function(u){switch(u.label){case 0:t&&Z(!0),Q(null),u.label=1;case 1:return u.trys.push([1,4,5,6]),[4,Te(x.applicationId)];case 2:return u.sent(),n=function(t){if(!_.usePermissionsStore.getState().hasPermission("ilotj.scope.view",t.id))return null;var r=t.children?t.children.map(function(e){return n(e)}).filter(function(e){return null!==e}):[];return e.__assign(e.__assign({},t),{children:r})},[4,c.fetchScopes(D,I.accessToken)];case 3:return(r=u.sent())&&r.data&&r.data.data&&(a=r.data.data,Array.isArray(a)&&(a=a.length>0?a[0]:null),a?(i=n(a))?(oe(null),H({data:i}),pe.current?(G(pe.current),se("learnings"),pe.current=null):s.useLearningTemplateStore.getState().selectedRuleSetId||G(i.id)):(oe(null!==(l=a.id)&&void 0!==l?l:null),H(null)):(oe(null),H(null))),[3,6];case 4:return o=u.sent(),console.error("Failed to fetch rule sets or permissions",o),Q("Failed to load data. Please try again later."),[3,6];case 5:return Z(!1),[7];case 6:return[2]}})})};n.useEffect(function(){var e;(null===(e=null==I?void 0:I.accessToken)||void 0===e?void 0:e.length)&&Le?Ee(!0):console.warn("Error: Trying to fetch rules without access token",I)},[null==I?void 0:I.accessToken,Q,Y,x.applicationId,Le]);var Ae=function(n){return e.__awaiter(O,void 0,void 0,function(){var r,s,a,o;return e.__generator(this,function(l){switch(l.label){case 0:te(!0),l.label=1;case 1:return l.trys.push([1,4,5,6]),V.scopeId?[4,c.renameScope({scope_id:V.scopeId,scope_name:n})]:[2];case 2:return l.sent(),[4,Ee(!0)];case 3:return l.sent(),W(function(t){return e.__assign(e.__assign({},t),{isOpen:!1})}),[3,6];case 4:throw r=l.sent(),console.error("An error occurred during scope rename.",r),null===(s=ge.current)||void 0===s||s.show({severity:"error",sticky:!1,className:i.default.errorToast,content:t.jsx(j.default,{message:(null===(o=null===(a=null==r?void 0:r.response)||void 0===a?void 0:a.data)||void 0===o?void 0:o.message)||"There was an error renaming the scope. Please try again."})}),r;case 5:return te(!1),[7];case 6:return[2]}})})},Re=function(t,n,r){return e.__awaiter(O,void 0,void 0,function(){var n,r,a,i,o,l,u,d;return e.__generator(this,function(p){switch(p.label){case 0:te(!0),p.label=1;case 1:return p.trys.push([1,4,5,6]),[4,c.deleteRuleSet(t,I.accessToken)];case 2:return p.sent(),s.useLearningTemplateStore.getState().selectedRuleSetId===t&&(n=s.useLearningTemplateStore.getState().scopeTreeData,(r=f.findNodePathById((null==n?void 0:n.data)||null,t))&&r.length>1&&(a=r[r.length-2],G(a),se("learnings"))),[4,Ee(!0)];case 3:return p.sent(),W(function(t){return e.__assign(e.__assign({},t),{isOpen:!1})}),null===(o=ge.current)||void 0===o||o.show({severity:"success",summary:"Deleted Successfully",detail:"The scope was permanently removed."}),[3,6];case 4:return i=p.sent(),console.error("An error occurred during scope deletion.",i),null===(l=ge.current)||void 0===l||l.show({severity:"error",summary:"Delete Failed",detail:(null===(d=null===(u=null==i?void 0:i.response)||void 0===u?void 0:u.data)||void 0===d?void 0:d.message)||"There was an error deleting the scope. Please try again."}),[3,6];case 5:return te(!1),[7];case 6:return[2]}})})},we=K,Oe=ue?{data:{id:ue.stationId,name:ue.stationName,type:"STATION",metrics:{learningsCount:ue.learningsCount,stationsCount:0},children:[]}}:we,Ie=!!(null==Oe?void 0:Oe.data);null===(w=null==Oe?void 0:Oe.data)||void 0===w||w.type;var qe=_.usePermissionsStore(function(e){return e.hasGlobalPermission})("ilotj.scope.global.create",x.applicationResourceId||""),Ne=(ue?A.filter(function(e){return"stations"!==e.id}):A).filter(function(e){return!(!M&&"access"===e.id)});return t.jsx(v.TooltipProvider,{children:t.jsxs("div",e.__assign({className:i.default.learningManagementContainer},{children:[t.jsx("div",e.__assign({className:i.default.mainWrapper},{children:X?t.jsx(g.default,{}):F?t.jsxs("div",e.__assign({className:i.default.errorContainer},{children:[t.jsx("div",e.__assign({className:i.default.errorTitle},{children:"Error Loading Data"})),t.jsx("p",e.__assign({className:i.default.errorDesc},{children:F})),t.jsx("button",e.__assign({onClick:function(){return Ee(!0)},className:i.default.tryAgainBtn},{children:"Try Again"}))]})):Ie?t.jsx(o.default,{onOpenCreateModal:function(){return W({isOpen:!0,type:"GLOBAL"})},onAddChild:function(e,t,n){return W({isOpen:!0,type:t,parentId:e,parentName:n})},onRenameChild:function(e,t){return W({isOpen:!0,type:"RENAME",scopeId:e,initialName:t})},onDeleteChild:function(t,n,r){return e.__awaiter(O,void 0,void 0,function(){var a,i,o;return e.__generator(this,function(e){switch(e.label){case 0:return a=s.useLearningTemplateStore.getState().scopeTreeData,i=f.findNodePathById((null==a?void 0:a.data)||null,t),o=!!i&&3===i.length,0!==r?[3,2]:[4,Re(t)];case 1:return e.sent(),[3,3];case 2:W({isOpen:!0,type:"DELETE",scopeId:t,initialName:n,isSubscope:o}),e.label=3;case 3:return[2]}})})},canDeleteScope:function(e){return be("ilotj.scope.delete",e)},canEditScope:function(e){return be("ilotj.scope.edit",e)},canCreateScope:function(e){return be("ilotj.scope.create",e)},onSectionSelect:function(e,t){var n;console.log("Section Selected:",{scopeId:e,sectionId:t}),d.setQueryParams(((n={})[d.QUERY_PARAM_KEYS.SECTION]="learnings"===t?null:t,n)),se(t),G(e)},activeSectionId:re,scopeTreeData:Oe,sectionsConfig:Ne,onViewStation:function(e){de.current=B,ce(e),se("learnings"),G(e.stationId)},onRefreshRuleSets:function(e,t){void 0===e&&(e=!0),t&&(pe.current=t),Ee(e)},nodeTypesConfig:_e,app_integration_id:D,token:I.accessToken}):t.jsx(l.default,{onCreate:function(){return W({isOpen:!0,type:"GLOBAL"})},title:"No Global Scope has been added!",desc:"Start by creating a Global scope to define base learnings that apply across all stations.",button:"Create Global Scope",canCreateRule:qe,noAccessTitle:"Access Restricted",noAccessDesc:"You do not have access to create a Global scope for this application.",onRequestAccess:function(){return e.__awaiter(O,void 0,void 0,function(){var n,r,a,o,l,u,d,p,g;return e.__generator(this,function(e){switch(e.label){case 0:if(!(n=(null===(o=null===(a=s.useLearningTemplateStore.getState().scopeTreeData)||void 0===a?void 0:a.data)||void 0===o?void 0:o.id)||ie))return null===(l=ge.current)||void 0===l||l.show({severity:"error",sticky:!1,className:i.default.errorToast,content:t.jsx(j.default,{message:"Unable to identify the global scope for this access request."})}),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,c.requestAccess(n)];case 2:return e.sent(),null===(u=ge.current)||void 0===u||u.show({severity:"success",sticky:!1,life:3e3,className:i.default.successToast,content:t.jsx(L.default,{message:"Access request submitted successfully!"})}),[3,4];case 3:return r=e.sent(),null===(d=ge.current)||void 0===d||d.show({severity:"error",sticky:!1,className:i.default.errorToast,content:t.jsx(j.default,{message:(null===(g=null===(p=null==r?void 0:r.response)||void 0===p?void 0:p.data)||void 0===g?void 0:g.detail)||"Failed to request access. Please try again."})}),[3,4];case 4:return[2]}})})}})})),t.jsx(a.Toast,{ref:ge,pt:{root:{style:{zIndex:9999}}}}),M&&V.isOpen&&"DELETE"!==V.type&&"RENAME"!==V.type?t.jsx(h.default,{isOpen:!0,onClose:function(){return W(e.__assign(e.__assign({},V),{isOpen:!1}))},onSubmit:function(t){return e.__awaiter(O,void 0,void 0,function(){var n,r,a,i,o,l,u,d,p,g,f,S,m,v,h,_,y,T,b,C;return e.__generator(this,function(L){switch(L.label){case 0:te(!0),n=s.useLearningTemplateStore.getState().backwardCompatibility,L.label=1;case 1:return L.trys.push([1,12,13,14]),r=void 0,n&&"object"==typeof t?r=t:(a=t,i="SCOPE"===V.type&&V.parentId,o=i?"genreRuleSet":V.type,r={topic:o,scope_reference_id:null,scopeDescription:"demo",parentScopeId:V.parentId||null,scopeName:a,scopeReferenceMetadata:{},applicationMappingId:D}),[4,c.createRuleSet(r,I.accessToken)];case 2:if(l=L.sent(),!(u=null===(v=null==l?void 0:l.data)||void 0===v?void 0:v.scopeId))return[3,10];if(pe.current=u,d=n&&(null===(h=r.topic)||void 0===h?void 0:h.toLowerCase().includes("genre")),p=!n&&"GLOBAL"!==V.type&&V.parentId,!d&&!p)return[3,10];if(!(g=n?null===(y=null===(_=s.useLearningTemplateStore.getState().scopeTreeData)||void 0===_?void 0:_.data)||void 0===y?void 0:y.id:V.parentId))return[3,10];if(!M)return[3,7];L.label=3;case 3:return L.trys.push([3,5,,6]),[4,c.inheritScopeBackwardCompatible({source_scope_id:g,target_scope_id:u})];case 4:return L.sent(),[3,6];case 5:return f=L.sent(),console.error("Failed to inherit rules for the new scope:",f),[3,6];case 6:return[3,10];case 7:return L.trys.push([7,9,,10]),[4,c.inheritScope({source_scope_id:g,target_scope_id:u,application_mapping_id:D||"",is_copy_parent_variant_id:!1})];case 8:return L.sent(),[3,10];case 9:return S=L.sent(),console.error("Failed to inherit rules for the new scope:",S),[3,10];case 10:return[4,Ee(!0)];case 11:return L.sent(),W(function(t){return e.__assign(e.__assign({},t),{isOpen:!1})}),[3,14];case 12:throw m=L.sent(),console.error("An error occurred during scope creation.",m),null===(T=ge.current)||void 0===T||T.show({severity:"error",summary:"Creation Failed",detail:(null===(C=null===(b=null==m?void 0:m.response)||void 0===b?void 0:b.data)||void 0===C?void 0:C.message)||"There was an error creating the scope. Please try again."}),m;case 13:return te(!1),[7];case 14:return[2]}})})},hasGlobalRuleSet:Ie,canCreateGlobal:qe}):t.jsxs(t.Fragment,{children:[t.jsx(b.default,{isOpen:V.isOpen&&"DELETE"!==V.type&&"RENAME"!==V.type,onClose:function(){return W(e.__assign(e.__assign({},V),{isOpen:!1}))},onCreate:function(e){return Ae(null!=e?e:"")},hasGlobalRuleSet:Ie}),t.jsx(E.default,{isOpen:V.isOpen&&"RENAME"===V.type,onClose:function(){return W(e.__assign(e.__assign({},V),{isOpen:!1}))},onSave:Ae,initialName:V.initialName})]}),t.jsx(p.default,{isOpen:V.isOpen&&"DELETE"===V.type,onCancel:function(){return W(e.__assign(e.__assign({},V),{isOpen:!1}))},onConfirm:function(){return Re(V.scopeId,V.initialName,V.isSubscope)},title:"Delete Scope",description:t.jsxs(t.Fragment,{children:["Deleting ",t.jsx("span",e.__assign({className:i.default.highlight},{children:V.initialName||"this scope"}))," will permanently remove all Learnings, Access rules, and Change History inside it. This cannot be undone."]}),confirmText:"Delete",confirmBgColor:"#EF4444",isLoading:ee})]}))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react"),s=require("./store/useLearningTemplateStore.js"),a=require("primereact/toast"),i=require("./styles/LearningTemplateManagement.module.css.js"),o=require("./LearningTemplateLayout.js"),l=require("./components/EmptyLearningState.js"),u=require("./store/useAuthStore.js"),c=require("./apis/scopeApis.js"),d=require("./hooks/useLearningTemplateQueryParams.js"),p=require("./components/ConfirmationModal.js"),f=require("./components/LearningTemplateManagementSkeleton.js"),g=require("./utils/treeUtils.js"),S=require("./store/useEnvStore.js"),m=require("./store/useConfigStore.js"),v=require("./components/ToolTip.js"),_=require("./components/CreateRuleSetLegacyModal.js"),h=require("./store/usePermissionsStore.js"),y=require("./store/useAppSecRolesStore.js"),T=require("./queries/useApprovalQueries.js"),b=require("./RuleContent/AddScopeModal.js"),C=require("react-router-dom"),L=require("./shared/SuccessToastContent.js"),j=require("./shared/ErrorToastContent.js"),E=require("./RuleContent/RenameScopeModal.js"),A=[{id:"learnings",label:"Learnings",icon:r.BookOpen,badgeKey:"learningsCount"},{id:"access",label:"Access",icon:r.Users}],R=new Set(A.map(function(e){return e.id}));exports.default=function(r){var w,O=this,I=r.userDetails,q=r.llmStudioUrl,N=r.audacyBackendUrl,P=r.ilLabels,k=r.config,x=r.rbacConfig,D=r.app_integration_id,U=r.backwardCompatibility,M=void 0!==U&&U,B=s.useLearningTemplateStore(function(e){return e.selectedRuleSetId}),G=s.useLearningTemplateStore(function(e){return e.setSelectedRuleSetId}),F=s.useLearningTemplateStore(function(e){return e.error}),Q=s.useLearningTemplateStore(function(e){return e.setError}),Y=s.useLearningTemplateStore(function(e){return e.setStations}),K=s.useLearningTemplateStore(function(e){return e.scopeTreeData}),z=s.useLearningTemplateStore(function(e){return e.setScopeTreeData}),H=n.useState({isOpen:!1,type:"GLOBAL"}),V=H[0],W=H[1],J=n.useState(!1),X=J[0],Z=J[1],$=n.useState(!1),ee=$[0],te=$[1],ne=n.useState("learnings"),re=ne[0],se=ne[1],ae=n.useState(null),ie=ae[0],oe=ae[1],le=n.useState(null),ue=le[0],ce=le[1],de=n.useRef(null),pe=n.useRef(null),fe=n.useRef(null),ge=u.default();ge.user;var Se=ge.setUser,me=m.useConfigStore(),ve=me.setConfig,_e=me.setIlLabels,he=e.__spreadArray([{type:"GLOBAL",label:"Global",addChildLabel:"Add Scope",addChildType:"SCOPE"},e.__assign({type:"SCOPE",label:"Scope"},!M&&{addChildLabel:"Add Subscope",addChildType:"SUBSCOPE"})],M?[]:[{type:"SUBSCOPE",label:"Subscope"}],!0),ye=function(){try{return C.useLocation()}catch(e){return{search:""}}}();n.useEffect(function(){var e=new URLSearchParams(window.location.search),t=e.get(d.QUERY_PARAM_KEYS.RULESET_ID),n=e.get(d.QUERY_PARAM_KEYS.SECTION),r=n&&R.has(n)?n:"learnings";(null==t?void 0:t.length)&&G&&se&&(G(t),se(r))},[null==ye?void 0:ye.search,se,G]);var Te=h.usePermissionsStore(function(e){return e.fetchPermissions}),be=h.usePermissionsStore(function(e){return e.hasPermission}),Ce=y.useAppSecRolesStore(function(e){return e.setRoles}),Le=S.default(function(e){return e.appsecRbacUrl})===x.appsecRbacUrl,je=T.useGetAppSecRolesQuery(x.applicationId,Le).data;n.useEffect(function(){je&&Ce(je.map(function(e){return{_id:e._id,name:e.name}}))},[je,Ce]),n.useEffect(function(){var e;console.log("userDetails",I),Se(I),console.log("llmStudioUrl",q),console.log("audacyBackendUrl",N),S.default.getState().setLlmStudioUrl(q),S.default.getState().setAudacyBackendUrl(N),S.default.getState().setRbacConfig(x),ve(k),_e(P),s.useLearningTemplateStore.getState().setAppIntegrationId(null!=D?D:null),s.useLearningTemplateStore.getState().setBackwardCompatibility(M),s.useLearningTemplateStore.getState().setToken(null!==(e=I.accessToken)&&void 0!==e?e:null)},[I,Se,q,N,x,k,ve,P,_e,D,M]),n.useEffect(function(){(null==I?void 0:I.accessToken)&&q&&c.fetchTiers()},[D,null==I?void 0:I.accessToken,q]);var Ee=function(t){return void 0===t&&(t=!0),e.__awaiter(O,void 0,void 0,function(){var n,r,a,i,o,l;return e.__generator(this,function(u){switch(u.label){case 0:t&&Z(!0),Q(null),u.label=1;case 1:return u.trys.push([1,4,5,6]),[4,Te(x.applicationId)];case 2:return u.sent(),n=function(t){if(!h.usePermissionsStore.getState().hasPermission("ilotj.scope.view",t.id))return null;var r=t.children?t.children.map(function(e){return n(e)}).filter(function(e){return null!==e}):[];return e.__assign(e.__assign({},t),{children:r})},[4,c.fetchScopes(D,I.accessToken)];case 3:return(r=u.sent())&&r.data&&r.data.data&&(a=r.data.data,Array.isArray(a)&&(a=a.length>0?a[0]:null),a?(i=n(a))?(oe(null),z({data:i}),pe.current?(G(pe.current),se("learnings"),pe.current=null):s.useLearningTemplateStore.getState().selectedRuleSetId||G(i.id)):(oe(null!==(l=a.id)&&void 0!==l?l:null),z(null)):(oe(null),z(null))),[3,6];case 4:return o=u.sent(),console.error("Failed to fetch rule sets or permissions",o),Q("Failed to load data. Please try again later."),[3,6];case 5:return Z(!1),[7];case 6:return[2]}})})};n.useEffect(function(){var e;(null===(e=null==I?void 0:I.accessToken)||void 0===e?void 0:e.length)&&Le?Ee(!0):console.warn("Error: Trying to fetch rules without access token",I)},[null==I?void 0:I.accessToken,Q,Y,x.applicationId,Le]);var Ae=function(n){return e.__awaiter(O,void 0,void 0,function(){var r,s,a,o;return e.__generator(this,function(l){switch(l.label){case 0:te(!0),l.label=1;case 1:return l.trys.push([1,4,5,6]),V.scopeId?[4,c.renameScope({scope_id:V.scopeId,scope_name:n})]:[2];case 2:return l.sent(),[4,Ee(!0)];case 3:return l.sent(),W(function(t){return e.__assign(e.__assign({},t),{isOpen:!1})}),[3,6];case 4:throw r=l.sent(),console.error("An error occurred during scope rename.",r),null===(s=fe.current)||void 0===s||s.show({severity:"error",sticky:!1,className:i.default.errorToast,content:t.jsx(j.default,{message:(null===(o=null===(a=null==r?void 0:r.response)||void 0===a?void 0:a.data)||void 0===o?void 0:o.message)||"There was an error renaming the scope. Please try again."})}),r;case 5:return te(!1),[7];case 6:return[2]}})})},Re=function(t,n,r){return e.__awaiter(O,void 0,void 0,function(){var n,r,a,i,o,l,u,d;return e.__generator(this,function(p){switch(p.label){case 0:te(!0),p.label=1;case 1:return p.trys.push([1,4,5,6]),[4,c.deleteRuleSet(t,I.accessToken)];case 2:return p.sent(),s.useLearningTemplateStore.getState().selectedRuleSetId===t&&(n=s.useLearningTemplateStore.getState().scopeTreeData,(r=g.findNodePathById((null==n?void 0:n.data)||null,t))&&r.length>1&&(a=r[r.length-2],G(a),se("learnings"))),[4,Ee(!0)];case 3:return p.sent(),W(function(t){return e.__assign(e.__assign({},t),{isOpen:!1})}),null===(o=fe.current)||void 0===o||o.show({severity:"success",summary:"Deleted Successfully",detail:"The scope was permanently removed."}),[3,6];case 4:return i=p.sent(),console.error("An error occurred during scope deletion.",i),null===(l=fe.current)||void 0===l||l.show({severity:"error",summary:"Delete Failed",detail:(null===(d=null===(u=null==i?void 0:i.response)||void 0===u?void 0:u.data)||void 0===d?void 0:d.message)||"There was an error deleting the scope. Please try again."}),[3,6];case 5:return te(!1),[7];case 6:return[2]}})})},we=K,Oe=ue?{data:{id:ue.stationId,name:ue.stationName,type:"STATION",metrics:{learningsCount:ue.learningsCount,stationsCount:0},children:[]}}:we,Ie=!!(null==Oe?void 0:Oe.data);null===(w=null==Oe?void 0:Oe.data)||void 0===w||w.type;var qe=h.usePermissionsStore(function(e){return e.hasGlobalPermission})("ilotj.scope.global.create",x.applicationResourceId||""),Ne=(ue?A.filter(function(e){return"stations"!==e.id}):A).filter(function(e){return!(!M&&"access"===e.id)});return t.jsx(v.TooltipProvider,{children:t.jsxs("div",e.__assign({className:i.default.learningManagementContainer},{children:[t.jsx("div",e.__assign({className:i.default.mainWrapper},{children:X?t.jsx(f.default,{}):F?t.jsxs("div",e.__assign({className:i.default.errorContainer},{children:[t.jsx("div",e.__assign({className:i.default.errorTitle},{children:"Error Loading Data"})),t.jsx("p",e.__assign({className:i.default.errorDesc},{children:F})),t.jsx("button",e.__assign({onClick:function(){return Ee(!0)},className:i.default.tryAgainBtn},{children:"Try Again"}))]})):Ie?t.jsx(o.default,{onOpenCreateModal:function(){return W({isOpen:!0,type:"GLOBAL"})},onAddChild:function(e,t,n){return W({isOpen:!0,type:t,parentId:e,parentName:n})},onRenameChild:function(e,t){return W({isOpen:!0,type:"RENAME",scopeId:e,initialName:t})},onDeleteChild:function(t,n,r){return e.__awaiter(O,void 0,void 0,function(){var a,i,o;return e.__generator(this,function(e){switch(e.label){case 0:return a=s.useLearningTemplateStore.getState().scopeTreeData,i=g.findNodePathById((null==a?void 0:a.data)||null,t),o=!!i&&3===i.length,0!==r?[3,2]:[4,Re(t)];case 1:return e.sent(),[3,3];case 2:W({isOpen:!0,type:"DELETE",scopeId:t,initialName:n,isSubscope:o}),e.label=3;case 3:return[2]}})})},canDeleteScope:function(e){return be("ilotj.scope.delete",e)},canEditScope:function(e){return be("ilotj.scope.edit",e)},canCreateScope:function(e){return be("ilotj.scope.create",e)},onSectionSelect:function(e,t){var n;console.log("Section Selected:",{scopeId:e,sectionId:t}),d.setQueryParams(((n={})[d.QUERY_PARAM_KEYS.SECTION]="learnings"===t?null:t,n)),se(t),G(e)},activeSectionId:re,scopeTreeData:Oe,sectionsConfig:Ne,onViewStation:function(e){de.current=B,ce(e),se("learnings"),G(e.stationId)},onRefreshRuleSets:function(e,t){void 0===e&&(e=!0),t&&(pe.current=t),Ee(e)},nodeTypesConfig:he,app_integration_id:D,token:I.accessToken}):t.jsx(l.default,{onCreate:function(){return W({isOpen:!0,type:"GLOBAL"})},title:"No Global Scope has been added!",desc:"Start by creating a Global scope to define base learnings that apply across all stations.",button:"Create Global Scope",canCreateRule:qe,noAccessTitle:"Access Restricted",noAccessDesc:"You do not have access to create a Global scope for this application.",onRequestAccess:function(){return e.__awaiter(O,void 0,void 0,function(){var n,r,a,o,l,u,d,p,f;return e.__generator(this,function(e){switch(e.label){case 0:if(!(n=(null===(o=null===(a=s.useLearningTemplateStore.getState().scopeTreeData)||void 0===a?void 0:a.data)||void 0===o?void 0:o.id)||ie))return null===(l=fe.current)||void 0===l||l.show({severity:"error",sticky:!1,className:i.default.errorToast,content:t.jsx(j.default,{message:"Unable to identify the global scope for this access request."})}),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,c.requestAccess(n)];case 2:return e.sent(),null===(u=fe.current)||void 0===u||u.show({severity:"success",sticky:!1,life:3e3,className:i.default.successToast,content:t.jsx(L.default,{message:"Access request submitted successfully!"})}),[3,4];case 3:return r=e.sent(),null===(d=fe.current)||void 0===d||d.show({severity:"error",sticky:!1,className:i.default.errorToast,content:t.jsx(j.default,{message:(null===(f=null===(p=null==r?void 0:r.response)||void 0===p?void 0:p.data)||void 0===f?void 0:f.detail)||"Failed to request access. Please try again."})}),[3,4];case 4:return[2]}})})}})})),t.jsx(a.Toast,{ref:fe,pt:{root:{style:{zIndex:9999}}}}),M&&V.isOpen&&"DELETE"!==V.type&&"RENAME"!==V.type?t.jsx(_.default,{isOpen:!0,onClose:function(){return W(e.__assign(e.__assign({},V),{isOpen:!1}))},onSubmit:function(t){return e.__awaiter(O,void 0,void 0,function(){var n,r,a,i,o,l,u,d,p,f,g,S,m,v,_,h,y,T,b,C;return e.__generator(this,function(L){switch(L.label){case 0:te(!0),n=s.useLearningTemplateStore.getState().backwardCompatibility,L.label=1;case 1:return L.trys.push([1,12,13,14]),r=void 0,n&&"object"==typeof t?r=t:(a=t,i="SCOPE"===V.type&&V.parentId,o=i?"genreRuleSet":V.type,r={topic:o,scope_reference_id:null,scopeDescription:"demo",parentScopeId:V.parentId||null,scopeName:a,scopeReferenceMetadata:{},applicationMappingId:D}),[4,c.createRuleSet(r,I.accessToken)];case 2:if(l=L.sent(),!(u=null===(v=null==l?void 0:l.data)||void 0===v?void 0:v.scopeId))return[3,10];if(pe.current=u,d=n&&(null===(_=r.topic)||void 0===_?void 0:_.toLowerCase().includes("genre")),p=!n&&"GLOBAL"!==V.type&&V.parentId,!d&&!p)return[3,10];if(!(f=n?null===(y=null===(h=s.useLearningTemplateStore.getState().scopeTreeData)||void 0===h?void 0:h.data)||void 0===y?void 0:y.id:V.parentId))return[3,10];if(!M)return[3,7];L.label=3;case 3:return L.trys.push([3,5,,6]),[4,c.inheritScopeBackwardCompatible({source_scope_id:f,target_scope_id:u})];case 4:return L.sent(),[3,6];case 5:return g=L.sent(),console.error("Failed to inherit rules for the new scope:",g),[3,6];case 6:return[3,10];case 7:return L.trys.push([7,9,,10]),[4,c.inheritScope({source_scope_id:f,target_scope_id:u,application_mapping_id:D||"",is_copy_parent_variant_id:!1})];case 8:return L.sent(),[3,10];case 9:return S=L.sent(),console.error("Failed to inherit rules for the new scope:",S),[3,10];case 10:return[4,Ee(!0)];case 11:return L.sent(),W(function(t){return e.__assign(e.__assign({},t),{isOpen:!1})}),[3,14];case 12:throw m=L.sent(),console.error("An error occurred during scope creation.",m),null===(T=fe.current)||void 0===T||T.show({severity:"error",summary:"Creation Failed",detail:(null===(C=null===(b=null==m?void 0:m.response)||void 0===b?void 0:b.data)||void 0===C?void 0:C.message)||"There was an error creating the scope. Please try again."}),m;case 13:return te(!1),[7];case 14:return[2]}})})},hasGlobalRuleSet:Ie,canCreateGlobal:qe}):t.jsxs(t.Fragment,{children:[t.jsx(b.default,{isOpen:V.isOpen&&"DELETE"!==V.type&&"RENAME"!==V.type,onClose:function(){return W(e.__assign(e.__assign({},V),{isOpen:!1}))},onCreate:function(e){return Ae(null!=e?e:"")},hasGlobalRuleSet:Ie}),t.jsx(E.default,{isOpen:V.isOpen&&"RENAME"===V.type,onClose:function(){return W(e.__assign(e.__assign({},V),{isOpen:!1}))},onSave:Ae,initialName:V.initialName})]}),t.jsx(p.default,{isOpen:V.isOpen&&"DELETE"===V.type,onCancel:function(){return W(e.__assign(e.__assign({},V),{isOpen:!1}))},onConfirm:function(){return Re(V.scopeId,V.initialName,V.isSubscope)},title:"Delete Scope",description:t.jsxs(t.Fragment,{children:["Deleting ",t.jsx("span",e.__assign({className:i.default.highlight},{children:V.initialName||"this scope"}))," will permanently remove all Learnings, Access rules, and Change History inside it. This cannot be undone."]}),confirmText:"Delete",confirmBgColor:"#EF4444",isLoading:ee})]}))})};
2
2
  //# sourceMappingURL=LearningManagement.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as t}from"tslib";import{jsxs as i,jsx as o}from"react/jsx-runtime";import{useMemo as n,useEffect as l}from"react";import{MemoryRouter as r}from"react-router-dom";import{AuditLog as a}from"@e-llm-studio/audit-log";import"@e-llm-studio/audit-log/dist/styles.css";import{User as d,FileText as c}from"lucide-react";var s=function(s){var h=s.configId,p=s.ruleData,g=s.scopeId,u=s.scopeName,m=(null==u?void 0:u.trim())||"Selected",f=n(function(){var t,i,o=[];g&&o.push(g);var n=(null===(t=null==p?void 0:p.data)||void 0===t?void 0:t.tier1)||(null==p?void 0:p.tier1)||[],l=(null===(i=null==p?void 0:p.data)||void 0===i?void 0:i.tier2)||(null==p?void 0:p.tier2)||[];return e(e([],n,!0),l,!0).forEach(function(e){(null==e?void 0:e.ruleId)&&o.push(e.ruleId),(null==e?void 0:e.variants)&&Array.isArray(e.variants)&&e.variants.forEach(function(e){(null==e?void 0:e.variantId)&&o.push(e.variantId)})}),o},[p,g]);return l(function(){console.log("Flattened External Resource IDs:",f)},[f]),i("div",t({style:{padding:"24px",fontFamily:"Arial, sans-serif"}},{children:[i("div",t({style:{marginBottom:"16px",paddingBottom:"4px"}},{children:[i("h1",t({style:{margin:0,color:"#334155",fontSize:"20px",fontWeight:700,lineHeight:1.25}},{children:[m," - Audit Log"]})),i("p",t({style:{margin:"8px 0 0",color:"#667085",fontSize:"16px",fontWeight:500,lineHeight:1}},{children:["Track all learning updates and modifications with the ",m," scope."]}))]})),o(r,{children:o(a,{configId:h,getData:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/fetch"},distinctValuesApi:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/distinct-values"},query:{externalResourceId:f.length>0?f:[""],paginationLimit:10},sidebar:{config:{showAnalystFilter:!0,showDateFilter:!0,showChangeTitleFilter:!0,showImpactPercentage:!1},labels:{title:"Filters",multiSelectLabel:"Modified By",multiSelectHint:"Filter by the user who made the change",changeTitleLabel:"Change Action",changeTitleHint:"Filter by Actions"}},table:{tableProps:{scrollable:!0,scrollHeight:"80vh",showGridlines:!0,size:"small",rowClassName:function(){return"custom-compact-row"},pt:{bodyCell:{style:{paddingTop:"4px",paddingBottom:"4px"}}}},hiddenColumns:["actions","changeSummary","changeDateTime","logId"],extraColumns:[{key:"modifiedBy",header:"Modified By",body:function(e){return i("div",t({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[o(d,{size:16,color:"#64748b",style:{flexShrink:0}}),o("span",t({style:{fontWeight:500}},{children:e.modifiedBy}))]}))},style:{width:"15%",minWidth:"140px"}},{key:"changeAction",header:"Action",body:function(e){var i,n,l=(i=e.changeTitle,(n=(i||"").toUpperCase()).includes("CREATE")?{color:"#2e7d32",backgroundColor:"#edf7ed",borderColor:"#c8e6c9",boxShadow:"0 1px 2px rgba(46, 125, 50, 0.08)"}:n.includes("UPDATE")||n.includes("TOGGLE")?{color:"#1565c0",backgroundColor:"#e3f2fd",borderColor:"#bbdefb",boxShadow:"0 1px 2px rgba(21, 101, 192, 0.08)"}:n.includes("DELETE")?{color:"#c62828",backgroundColor:"#fdeeed",borderColor:"#ffcdd2",boxShadow:"0 1px 2px rgba(198, 40, 40, 0.08)"}:{color:"#475569",backgroundColor:"#f8fafc",borderColor:"#cbd5e1",boxShadow:"0 1px 2px rgba(15, 23, 42, 0.06)"}),r=e.changeTitle?e.changeTitle.replace(/_/g," "):"—";return o("span",t({style:{color:l.color,backgroundColor:l.backgroundColor,border:"1px solid ".concat(l.borderColor),boxShadow:l.boxShadow,padding:"6px 12px",borderRadius:"999px",fontSize:"12px",lineHeight:1,fontWeight:600,display:"inline-block",minWidth:"76px",textAlign:"center",textTransform:"capitalize"}},{children:r}))},style:{width:"15%",textAlign:"center"}},{key:"customChangeSummary",header:"Change Summary",body:function(e){var n;return i("div",t({style:{display:"flex",alignItems:"flex-start",gap:"8px",padding:"4px 0"}},{children:[o(c,{size:16,color:"#94a3b8",style:{flexShrink:0,marginTop:"2px"}}),o("span",t({style:{color:"#334155",fontSize:"13px",lineHeight:1.5}},{children:null!==(n=e.actionText)&&void 0!==n?n:"—"}))]}))},style:{width:"35%",minWidth:"250px"}},{key:"customChangeDateTime",header:"Change Time and Date",body:function(e){if(!e.actionDate)return o("span",t({style:{color:"#94a3b8"}},{children:"—"}));var n=new Date(e.actionDate),l=n.toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}),r=n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return i("div",t({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",fontSize:"13px",color:"#475569"}},{children:[o("span",t({style:{fontWeight:500}},{children:l})),o("span",{children:r})]}))},style:{width:"15%",minWidth:"150px",textAlign:"center"}}]},filters:{config:{showFilterButton:!0,showSort:!0,showDate:!0,showSearch:!0,sortOptions:{latest:!0,oldest:!0,impactHighToLow:!1,impactLowToHigh:!1}}}})})]}))};export{s as default};
1
+ import{__spreadArray as e,__assign as t}from"tslib";import{jsxs as i,jsx as o}from"react/jsx-runtime";import{useMemo as n,useEffect as l}from"react";import{AuditLog as r}from"@e-llm-studio/audit-log";import"@e-llm-studio/audit-log/dist/styles.css";import{User as a,FileText as d}from"lucide-react";var c=function(c){var s=c.configId,h=c.ruleData,p=c.scopeId,g=c.scopeName,u=(null==g?void 0:g.trim())||"Selected",m=n(function(){var t,i,o=[];p&&o.push(p);var n=(null===(t=null==h?void 0:h.data)||void 0===t?void 0:t.tier1)||(null==h?void 0:h.tier1)||[],l=(null===(i=null==h?void 0:h.data)||void 0===i?void 0:i.tier2)||(null==h?void 0:h.tier2)||[];return e(e([],n,!0),l,!0).forEach(function(e){(null==e?void 0:e.ruleId)&&o.push(e.ruleId),(null==e?void 0:e.variants)&&Array.isArray(e.variants)&&e.variants.forEach(function(e){(null==e?void 0:e.variantId)&&o.push(e.variantId)})}),o},[h,p]);return l(function(){console.log("Flattened External Resource IDs:",m)},[m]),i("div",t({style:{padding:"24px",fontFamily:"Arial, sans-serif"}},{children:[i("div",t({style:{marginBottom:"16px",paddingBottom:"4px"}},{children:[i("h1",t({style:{margin:0,color:"#334155",fontSize:"20px",fontWeight:700,lineHeight:1.25}},{children:[u," - Audit Log"]})),i("p",t({style:{margin:"8px 0 0",color:"#667085",fontSize:"16px",fontWeight:500,lineHeight:1}},{children:["Track all learning updates and modifications with the ",u," scope."]}))]})),o(r,{configId:s,getData:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/fetch"},distinctValuesApi:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/distinct-values"},query:{externalResourceId:m.length>0?m:[""],paginationLimit:10},sidebar:{config:{showAnalystFilter:!0,showDateFilter:!0,showChangeTitleFilter:!0,showImpactPercentage:!1},labels:{title:"Filters",multiSelectLabel:"Modified By",multiSelectHint:"Filter by the user who made the change",changeTitleLabel:"Change Action",changeTitleHint:"Filter by Actions"}},table:{tableProps:{scrollable:!0,scrollHeight:"80vh",showGridlines:!0,size:"small",rowClassName:function(){return"custom-compact-row"},pt:{bodyCell:{style:{paddingTop:"4px",paddingBottom:"4px"}}}},hiddenColumns:["actions","changeSummary","changeDateTime","logId"],extraColumns:[{key:"modifiedBy",header:"Modified By",body:function(e){return i("div",t({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[o(a,{size:16,color:"#64748b",style:{flexShrink:0}}),o("span",t({style:{fontWeight:500}},{children:e.modifiedBy}))]}))},style:{width:"15%",minWidth:"140px"}},{key:"changeAction",header:"Action",body:function(e){var i,n,l=(i=e.changeTitle,(n=(i||"").toUpperCase()).includes("CREATE")?{color:"#2e7d32",backgroundColor:"#edf7ed",borderColor:"#c8e6c9",boxShadow:"0 1px 2px rgba(46, 125, 50, 0.08)"}:n.includes("UPDATE")||n.includes("TOGGLE")?{color:"#1565c0",backgroundColor:"#e3f2fd",borderColor:"#bbdefb",boxShadow:"0 1px 2px rgba(21, 101, 192, 0.08)"}:n.includes("DELETE")?{color:"#c62828",backgroundColor:"#fdeeed",borderColor:"#ffcdd2",boxShadow:"0 1px 2px rgba(198, 40, 40, 0.08)"}:{color:"#475569",backgroundColor:"#f8fafc",borderColor:"#cbd5e1",boxShadow:"0 1px 2px rgba(15, 23, 42, 0.06)"}),r=e.changeTitle?e.changeTitle.replace(/_/g," "):"—";return o("span",t({style:{color:l.color,backgroundColor:l.backgroundColor,border:"1px solid ".concat(l.borderColor),boxShadow:l.boxShadow,padding:"6px 12px",borderRadius:"999px",fontSize:"12px",lineHeight:1,fontWeight:600,display:"inline-block",minWidth:"76px",textAlign:"center",textTransform:"capitalize"}},{children:r}))},style:{width:"15%",textAlign:"center"}},{key:"customChangeSummary",header:"Change Summary",body:function(e){var n;return i("div",t({style:{display:"flex",alignItems:"flex-start",gap:"8px",padding:"4px 0"}},{children:[o(d,{size:16,color:"#94a3b8",style:{flexShrink:0,marginTop:"2px"}}),o("span",t({style:{color:"#334155",fontSize:"13px",lineHeight:1.5}},{children:null!==(n=e.actionText)&&void 0!==n?n:"—"}))]}))},style:{width:"35%",minWidth:"250px"}},{key:"customChangeDateTime",header:"Change Time and Date",body:function(e){if(!e.actionDate)return o("span",t({style:{color:"#94a3b8"}},{children:"—"}));var n=new Date(e.actionDate),l=n.toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}),r=n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return i("div",t({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",fontSize:"13px",color:"#475569"}},{children:[o("span",t({style:{fontWeight:500}},{children:l})),o("span",{children:r})]}))},style:{width:"15%",minWidth:"150px",textAlign:"center"}}]},filters:{config:{showFilterButton:!0,showSort:!0,showDate:!0,showSearch:!0,sortOptions:{latest:!0,oldest:!0,impactHighToLow:!1,impactLowToHigh:!1}}}})]}))};export{c as default};
2
2
  //# sourceMappingURL=AuditLog.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as t,__awaiter as n,__generator as r}from"tslib";import{jsx as o,jsxs as s,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as l,useEffect as c}from"react";import{BookOpen as u,Users as d,History as p}from"lucide-react";import{useLearningTemplateStore as m}from"./store/useLearningTemplateStore.js";import{Toast as f}from"primereact/toast";import v from"./styles/LearningTemplateManagement.module.css.js";import h from"./LearningTemplateLayout.js";import g from"./components/EmptyLearningState.js";import y from"./store/useAuthStore.js";import{fetchTiers as S,fetchScopes as b,inheritScope as C,inheritScopeBackwardCompatible as T,createRuleSet as E,renameScope as O,deleteRuleSet as w,requestAccess as A}from"./apis/scopeApis.js";import{QUERY_PARAM_KEYS as I,setQueryParams as L}from"./hooks/useLearningTemplateQueryParams.js";import R from"./components/ConfirmationModal.js";import j from"./components/LearningTemplateManagementSkeleton.js";import{findNodePathById as N}from"./utils/treeUtils.js";import k from"./store/useEnvStore.js";import{useConfigStore as D}from"./store/useConfigStore.js";import{TooltipProvider as _}from"./components/ToolTip.js";import P from"./components/CreateRuleSetLegacyModal.js";import{usePermissionsStore as U}from"./store/usePermissionsStore.js";import{useAppSecRolesStore as G}from"./store/useAppSecRolesStore.js";import{useGetAppSecRolesQuery as M}from"./queries/useApprovalQueries.js";import B from"./RuleContent/AddScopeModal.js";import{useLocation as F}from"react-router-dom";import q from"./shared/SuccessToastContent.js";import x from"./shared/ErrorToastContent.js";import H from"./RuleContent/RenameScopeModal.js";var Q=[{id:"learnings",label:"Learnings",icon:u,badgeKey:"learningsCount"},{id:"access",label:"Access",icon:d},{id:"history",label:"Change History",icon:p}],z=new Set(Q.map(function(e){return e.id}));function K(u){var d,p=this,K=u.userDetails,V=u.llmStudioUrl,W=u.audacyBackendUrl,Y=u.ilLabels,J=u.config,X=u.rbacConfig,Z=u.app_integration_id,$=u.backwardCompatibility,ee=void 0!==$&&$,te=m(function(e){return e.selectedRuleSetId}),ne=m(function(e){return e.setSelectedRuleSetId}),re=m(function(e){return e.error}),oe=m(function(e){return e.setError}),se=m(function(e){return e.setStations}),ie=m(function(e){return e.scopeTreeData}),ae=m(function(e){return e.setScopeTreeData}),le=a({isOpen:!1,type:"GLOBAL"}),ce=le[0],ue=le[1],de=a(!1),pe=de[0],me=de[1],fe=a(!1),ve=fe[0],he=fe[1],ge=a("learnings"),ye=ge[0],Se=ge[1],be=a(null),Ce=be[0],Te=be[1],Ee=a(null),Oe=Ee[0],we=Ee[1],Ae=l(null),Ie=l(null),Le=l(null),Re=y();Re.user;var je=Re.setUser,Ne=D(),ke=Ne.setConfig,De=Ne.setIlLabels,_e=e([{type:"GLOBAL",label:"Global",addChildLabel:"Add Scope",addChildType:"SCOPE"},t({type:"SCOPE",label:"Scope"},!ee&&{addChildLabel:"Add Subscope",addChildType:"SUBSCOPE"})],ee?[]:[{type:"SUBSCOPE",label:"Subscope"}],!0),Pe=function(){try{return F()}catch(e){return{search:""}}}();c(function(){var e=new URLSearchParams(window.location.search),t=e.get(I.RULESET_ID),n=e.get(I.SECTION),r=n&&z.has(n)?n:"learnings";(null==t?void 0:t.length)&&ne&&Se&&(ne(t),Se(r))},[null==Pe?void 0:Pe.search,Se,ne]);var Ue=U(function(e){return e.fetchPermissions}),Ge=U(function(e){return e.hasPermission}),Me=G(function(e){return e.setRoles}),Be=k(function(e){return e.appsecRbacUrl})===X.appsecRbacUrl,Fe=M(X.applicationId,Be).data;c(function(){Fe&&Me(Fe.map(function(e){return{_id:e._id,name:e.name}}))},[Fe,Me]),c(function(){var e;console.log("userDetails",K),je(K),console.log("llmStudioUrl",V),console.log("audacyBackendUrl",W),k.getState().setLlmStudioUrl(V),k.getState().setAudacyBackendUrl(W),k.getState().setRbacConfig(X),ke(J),De(Y),m.getState().setAppIntegrationId(null!=Z?Z:null),m.getState().setBackwardCompatibility(ee),m.getState().setToken(null!==(e=K.accessToken)&&void 0!==e?e:null)},[K,je,V,W,X,J,ke,Y,De,Z,ee]),c(function(){(null==K?void 0:K.accessToken)&&V&&S()},[Z,null==K?void 0:K.accessToken,V]);var qe=function(e){return void 0===e&&(e=!0),n(p,void 0,void 0,function(){var n,o,s,i,a,l;return r(this,function(r){switch(r.label){case 0:e&&me(!0),oe(null),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,Ue(X.applicationId)];case 2:return r.sent(),n=function(e){if(!U.getState().hasPermission("ilotj.scope.view",e.id))return null;var r=e.children?e.children.map(function(e){return n(e)}).filter(function(e){return null!==e}):[];return t(t({},e),{children:r})},[4,b(Z,K.accessToken)];case 3:return(o=r.sent())&&o.data&&o.data.data&&(s=o.data.data,Array.isArray(s)&&(s=s.length>0?s[0]:null),s?(i=n(s))?(Te(null),ae({data:i}),Ie.current?(ne(Ie.current),Se("learnings"),Ie.current=null):m.getState().selectedRuleSetId||ne(i.id)):(Te(null!==(l=s.id)&&void 0!==l?l:null),ae(null)):(Te(null),ae(null))),[3,6];case 4:return a=r.sent(),console.error("Failed to fetch rule sets or permissions",a),oe("Failed to load data. Please try again later."),[3,6];case 5:return me(!1),[7];case 6:return[2]}})})};c(function(){var e;(null===(e=null==K?void 0:K.accessToken)||void 0===e?void 0:e.length)&&Be?qe(!0):console.warn("Error: Trying to fetch rules without access token",K)},[null==K?void 0:K.accessToken,oe,se,X.applicationId,Be]);var xe=function(e){return n(p,void 0,void 0,function(){var n,s,i,a;return r(this,function(r){switch(r.label){case 0:he(!0),r.label=1;case 1:return r.trys.push([1,4,5,6]),ce.scopeId?[4,O({scope_id:ce.scopeId,scope_name:e})]:[2];case 2:return r.sent(),[4,qe(!0)];case 3:return r.sent(),ue(function(e){return t(t({},e),{isOpen:!1})}),[3,6];case 4:throw n=r.sent(),console.error("An error occurred during scope rename.",n),null===(s=Le.current)||void 0===s||s.show({severity:"error",sticky:!1,className:v.errorToast,content:o(x,{message:(null===(a=null===(i=null==n?void 0:n.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.message)||"There was an error renaming the scope. Please try again."})}),n;case 5:return he(!1),[7];case 6:return[2]}})})},He=function(e,o,s){return n(p,void 0,void 0,function(){var n,o,s,i,a,l,c,u;return r(this,function(r){switch(r.label){case 0:he(!0),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,w(e,K.accessToken)];case 2:return r.sent(),m.getState().selectedRuleSetId===e&&(n=m.getState().scopeTreeData,(o=N((null==n?void 0:n.data)||null,e))&&o.length>1&&(s=o[o.length-2],ne(s),Se("learnings"))),[4,qe(!0)];case 3:return r.sent(),ue(function(e){return t(t({},e),{isOpen:!1})}),null===(a=Le.current)||void 0===a||a.show({severity:"success",summary:"Deleted Successfully",detail:"The scope was permanently removed."}),[3,6];case 4:return i=r.sent(),console.error("An error occurred during scope deletion.",i),null===(l=Le.current)||void 0===l||l.show({severity:"error",summary:"Delete Failed",detail:(null===(u=null===(c=null==i?void 0:i.response)||void 0===c?void 0:c.data)||void 0===u?void 0:u.message)||"There was an error deleting the scope. Please try again."}),[3,6];case 5:return he(!1),[7];case 6:return[2]}})})},Qe=ie,ze=Oe?{data:{id:Oe.stationId,name:Oe.stationName,type:"STATION",metrics:{learningsCount:Oe.learningsCount,stationsCount:0},children:[]}}:Qe,Ke=!!(null==ze?void 0:ze.data);null===(d=null==ze?void 0:ze.data)||void 0===d||d.type;var Ve=U(function(e){return e.hasGlobalPermission})("ilotj.scope.global.create",X.applicationResourceId||""),We=(Oe?Q.filter(function(e){return"stations"!==e.id}):Q).filter(function(e){return!(!ee&&"access"===e.id)});return o(_,{children:s("div",t({className:v.learningManagementContainer},{children:[o("div",t({className:v.mainWrapper},{children:pe?o(j,{}):re?s("div",t({className:v.errorContainer},{children:[o("div",t({className:v.errorTitle},{children:"Error Loading Data"})),o("p",t({className:v.errorDesc},{children:re})),o("button",t({onClick:function(){return qe(!0)},className:v.tryAgainBtn},{children:"Try Again"}))]})):Ke?o(h,{onOpenCreateModal:function(){return ue({isOpen:!0,type:"GLOBAL"})},onAddChild:function(e,t,n){return ue({isOpen:!0,type:t,parentId:e,parentName:n})},onRenameChild:function(e,t){return ue({isOpen:!0,type:"RENAME",scopeId:e,initialName:t})},onDeleteChild:function(e,t,o){return n(p,void 0,void 0,function(){var n,s,i;return r(this,function(r){switch(r.label){case 0:return n=m.getState().scopeTreeData,s=N((null==n?void 0:n.data)||null,e),i=!!s&&3===s.length,0!==o?[3,2]:[4,He(e)];case 1:return r.sent(),[3,3];case 2:ue({isOpen:!0,type:"DELETE",scopeId:e,initialName:t,isSubscope:i}),r.label=3;case 3:return[2]}})})},canDeleteScope:function(e){return Ge("ilotj.scope.delete",e)},canEditScope:function(e){return Ge("ilotj.scope.edit",e)},canCreateScope:function(e){return Ge("ilotj.scope.create",e)},onSectionSelect:function(e,t){var n;console.log("Section Selected:",{scopeId:e,sectionId:t}),L(((n={})[I.SECTION]="learnings"===t?null:t,n)),Se(t),ne(e)},activeSectionId:ye,scopeTreeData:ze,sectionsConfig:We,onViewStation:function(e){Ae.current=te,we(e),Se("learnings"),ne(e.stationId)},onRefreshRuleSets:function(e,t){void 0===e&&(e=!0),t&&(Ie.current=t),qe(e)},nodeTypesConfig:_e,app_integration_id:Z,token:K.accessToken}):o(g,{onCreate:function(){return ue({isOpen:!0,type:"GLOBAL"})},title:"No Global Scope has been added!",desc:"Start by creating a Global scope to define base learnings that apply across all stations.",button:"Create Global Scope",canCreateRule:Ve,noAccessTitle:"Access Restricted",noAccessDesc:"You do not have access to create a Global scope for this application.",onRequestAccess:function(){return n(p,void 0,void 0,function(){var e,t,n,s,i,a,l,c,u;return r(this,function(r){switch(r.label){case 0:if(!(e=(null===(s=null===(n=m.getState().scopeTreeData)||void 0===n?void 0:n.data)||void 0===s?void 0:s.id)||Ce))return null===(i=Le.current)||void 0===i||i.show({severity:"error",sticky:!1,className:v.errorToast,content:o(x,{message:"Unable to identify the global scope for this access request."})}),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,A(e)];case 2:return r.sent(),null===(a=Le.current)||void 0===a||a.show({severity:"success",sticky:!1,life:3e3,className:v.successToast,content:o(q,{message:"Access request submitted successfully!"})}),[3,4];case 3:return t=r.sent(),null===(l=Le.current)||void 0===l||l.show({severity:"error",sticky:!1,className:v.errorToast,content:o(x,{message:(null===(u=null===(c=null==t?void 0:t.response)||void 0===c?void 0:c.data)||void 0===u?void 0:u.detail)||"Failed to request access. Please try again."})}),[3,4];case 4:return[2]}})})}})})),o(f,{ref:Le,pt:{root:{style:{zIndex:9999}}}}),ee&&ce.isOpen&&"DELETE"!==ce.type&&"RENAME"!==ce.type?o(P,{isOpen:!0,onClose:function(){return ue(t(t({},ce),{isOpen:!1}))},onSubmit:function(e){return n(p,void 0,void 0,function(){var n,o,s,i,a,l,c,u,d,p,f,v,h,g,y,S,b,O,w,A;return r(this,function(r){switch(r.label){case 0:he(!0),n=m.getState().backwardCompatibility,r.label=1;case 1:return r.trys.push([1,12,13,14]),o=void 0,n&&"object"==typeof e?o=e:(s=e,i="SCOPE"===ce.type&&ce.parentId,a=i?"genreRuleSet":ce.type,o={topic:a,scope_reference_id:null,scopeDescription:"demo",parentScopeId:ce.parentId||null,scopeName:s,scopeReferenceMetadata:{},applicationMappingId:Z}),[4,E(o,K.accessToken)];case 2:if(l=r.sent(),!(c=null===(g=null==l?void 0:l.data)||void 0===g?void 0:g.scopeId))return[3,10];if(Ie.current=c,u=n&&(null===(y=o.topic)||void 0===y?void 0:y.toLowerCase().includes("genre")),d=!n&&"GLOBAL"!==ce.type&&ce.parentId,!u&&!d)return[3,10];if(!(p=n?null===(b=null===(S=m.getState().scopeTreeData)||void 0===S?void 0:S.data)||void 0===b?void 0:b.id:ce.parentId))return[3,10];if(!ee)return[3,7];r.label=3;case 3:return r.trys.push([3,5,,6]),[4,T({source_scope_id:p,target_scope_id:c})];case 4:return r.sent(),[3,6];case 5:return f=r.sent(),console.error("Failed to inherit rules for the new scope:",f),[3,6];case 6:return[3,10];case 7:return r.trys.push([7,9,,10]),[4,C({source_scope_id:p,target_scope_id:c,application_mapping_id:Z||"",is_copy_parent_variant_id:!1})];case 8:return r.sent(),[3,10];case 9:return v=r.sent(),console.error("Failed to inherit rules for the new scope:",v),[3,10];case 10:return[4,qe(!0)];case 11:return r.sent(),ue(function(e){return t(t({},e),{isOpen:!1})}),[3,14];case 12:throw h=r.sent(),console.error("An error occurred during scope creation.",h),null===(O=Le.current)||void 0===O||O.show({severity:"error",summary:"Creation Failed",detail:(null===(A=null===(w=null==h?void 0:h.response)||void 0===w?void 0:w.data)||void 0===A?void 0:A.message)||"There was an error creating the scope. Please try again."}),h;case 13:return he(!1),[7];case 14:return[2]}})})},hasGlobalRuleSet:Ke,canCreateGlobal:Ve}):s(i,{children:[o(B,{isOpen:ce.isOpen&&"DELETE"!==ce.type&&"RENAME"!==ce.type,onClose:function(){return ue(t(t({},ce),{isOpen:!1}))},onCreate:function(e){return xe(null!=e?e:"")},hasGlobalRuleSet:Ke}),o(H,{isOpen:ce.isOpen&&"RENAME"===ce.type,onClose:function(){return ue(t(t({},ce),{isOpen:!1}))},onSave:xe,initialName:ce.initialName})]}),o(R,{isOpen:ce.isOpen&&"DELETE"===ce.type,onCancel:function(){return ue(t(t({},ce),{isOpen:!1}))},onConfirm:function(){return He(ce.scopeId,ce.initialName,ce.isSubscope)},title:"Delete Scope",description:s(i,{children:["Deleting ",o("span",t({className:v.highlight},{children:ce.initialName||"this scope"}))," will permanently remove all Learnings, Access rules, and Change History inside it. This cannot be undone."]}),confirmText:"Delete",confirmBgColor:"#EF4444",isLoading:ve})]}))})}export{K as default};
1
+ import{__spreadArray as e,__assign as t,__awaiter as n,__generator as r}from"tslib";import{jsx as o,jsxs as s,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as l,useEffect as c}from"react";import{BookOpen as u,Users as d}from"lucide-react";import{useLearningTemplateStore as p}from"./store/useLearningTemplateStore.js";import{Toast as m}from"primereact/toast";import f from"./styles/LearningTemplateManagement.module.css.js";import v from"./LearningTemplateLayout.js";import h from"./components/EmptyLearningState.js";import g from"./store/useAuthStore.js";import{fetchTiers as y,fetchScopes as S,inheritScope as b,inheritScopeBackwardCompatible as C,createRuleSet as T,renameScope as E,deleteRuleSet as O,requestAccess as w}from"./apis/scopeApis.js";import{QUERY_PARAM_KEYS as A,setQueryParams as I}from"./hooks/useLearningTemplateQueryParams.js";import L from"./components/ConfirmationModal.js";import R from"./components/LearningTemplateManagementSkeleton.js";import{findNodePathById as j}from"./utils/treeUtils.js";import N from"./store/useEnvStore.js";import{useConfigStore as k}from"./store/useConfigStore.js";import{TooltipProvider as D}from"./components/ToolTip.js";import _ from"./components/CreateRuleSetLegacyModal.js";import{usePermissionsStore as P}from"./store/usePermissionsStore.js";import{useAppSecRolesStore as U}from"./store/useAppSecRolesStore.js";import{useGetAppSecRolesQuery as G}from"./queries/useApprovalQueries.js";import M from"./RuleContent/AddScopeModal.js";import{useLocation as B}from"react-router-dom";import F from"./shared/SuccessToastContent.js";import q from"./shared/ErrorToastContent.js";import x from"./RuleContent/RenameScopeModal.js";var Q=[{id:"learnings",label:"Learnings",icon:u,badgeKey:"learningsCount"},{id:"access",label:"Access",icon:d}],z=new Set(Q.map(function(e){return e.id}));function H(u){var d,H=this,K=u.userDetails,V=u.llmStudioUrl,W=u.audacyBackendUrl,Y=u.ilLabels,J=u.config,X=u.rbacConfig,Z=u.app_integration_id,$=u.backwardCompatibility,ee=void 0!==$&&$,te=p(function(e){return e.selectedRuleSetId}),ne=p(function(e){return e.setSelectedRuleSetId}),re=p(function(e){return e.error}),oe=p(function(e){return e.setError}),se=p(function(e){return e.setStations}),ie=p(function(e){return e.scopeTreeData}),ae=p(function(e){return e.setScopeTreeData}),le=a({isOpen:!1,type:"GLOBAL"}),ce=le[0],ue=le[1],de=a(!1),pe=de[0],me=de[1],fe=a(!1),ve=fe[0],he=fe[1],ge=a("learnings"),ye=ge[0],Se=ge[1],be=a(null),Ce=be[0],Te=be[1],Ee=a(null),Oe=Ee[0],we=Ee[1],Ae=l(null),Ie=l(null),Le=l(null),Re=g();Re.user;var je=Re.setUser,Ne=k(),ke=Ne.setConfig,De=Ne.setIlLabels,_e=e([{type:"GLOBAL",label:"Global",addChildLabel:"Add Scope",addChildType:"SCOPE"},t({type:"SCOPE",label:"Scope"},!ee&&{addChildLabel:"Add Subscope",addChildType:"SUBSCOPE"})],ee?[]:[{type:"SUBSCOPE",label:"Subscope"}],!0),Pe=function(){try{return B()}catch(e){return{search:""}}}();c(function(){var e=new URLSearchParams(window.location.search),t=e.get(A.RULESET_ID),n=e.get(A.SECTION),r=n&&z.has(n)?n:"learnings";(null==t?void 0:t.length)&&ne&&Se&&(ne(t),Se(r))},[null==Pe?void 0:Pe.search,Se,ne]);var Ue=P(function(e){return e.fetchPermissions}),Ge=P(function(e){return e.hasPermission}),Me=U(function(e){return e.setRoles}),Be=N(function(e){return e.appsecRbacUrl})===X.appsecRbacUrl,Fe=G(X.applicationId,Be).data;c(function(){Fe&&Me(Fe.map(function(e){return{_id:e._id,name:e.name}}))},[Fe,Me]),c(function(){var e;console.log("userDetails",K),je(K),console.log("llmStudioUrl",V),console.log("audacyBackendUrl",W),N.getState().setLlmStudioUrl(V),N.getState().setAudacyBackendUrl(W),N.getState().setRbacConfig(X),ke(J),De(Y),p.getState().setAppIntegrationId(null!=Z?Z:null),p.getState().setBackwardCompatibility(ee),p.getState().setToken(null!==(e=K.accessToken)&&void 0!==e?e:null)},[K,je,V,W,X,J,ke,Y,De,Z,ee]),c(function(){(null==K?void 0:K.accessToken)&&V&&y()},[Z,null==K?void 0:K.accessToken,V]);var qe=function(e){return void 0===e&&(e=!0),n(H,void 0,void 0,function(){var n,o,s,i,a,l;return r(this,function(r){switch(r.label){case 0:e&&me(!0),oe(null),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,Ue(X.applicationId)];case 2:return r.sent(),n=function(e){if(!P.getState().hasPermission("ilotj.scope.view",e.id))return null;var r=e.children?e.children.map(function(e){return n(e)}).filter(function(e){return null!==e}):[];return t(t({},e),{children:r})},[4,S(Z,K.accessToken)];case 3:return(o=r.sent())&&o.data&&o.data.data&&(s=o.data.data,Array.isArray(s)&&(s=s.length>0?s[0]:null),s?(i=n(s))?(Te(null),ae({data:i}),Ie.current?(ne(Ie.current),Se("learnings"),Ie.current=null):p.getState().selectedRuleSetId||ne(i.id)):(Te(null!==(l=s.id)&&void 0!==l?l:null),ae(null)):(Te(null),ae(null))),[3,6];case 4:return a=r.sent(),console.error("Failed to fetch rule sets or permissions",a),oe("Failed to load data. Please try again later."),[3,6];case 5:return me(!1),[7];case 6:return[2]}})})};c(function(){var e;(null===(e=null==K?void 0:K.accessToken)||void 0===e?void 0:e.length)&&Be?qe(!0):console.warn("Error: Trying to fetch rules without access token",K)},[null==K?void 0:K.accessToken,oe,se,X.applicationId,Be]);var xe=function(e){return n(H,void 0,void 0,function(){var n,s,i,a;return r(this,function(r){switch(r.label){case 0:he(!0),r.label=1;case 1:return r.trys.push([1,4,5,6]),ce.scopeId?[4,E({scope_id:ce.scopeId,scope_name:e})]:[2];case 2:return r.sent(),[4,qe(!0)];case 3:return r.sent(),ue(function(e){return t(t({},e),{isOpen:!1})}),[3,6];case 4:throw n=r.sent(),console.error("An error occurred during scope rename.",n),null===(s=Le.current)||void 0===s||s.show({severity:"error",sticky:!1,className:f.errorToast,content:o(q,{message:(null===(a=null===(i=null==n?void 0:n.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.message)||"There was an error renaming the scope. Please try again."})}),n;case 5:return he(!1),[7];case 6:return[2]}})})},Qe=function(e,o,s){return n(H,void 0,void 0,function(){var n,o,s,i,a,l,c,u;return r(this,function(r){switch(r.label){case 0:he(!0),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,O(e,K.accessToken)];case 2:return r.sent(),p.getState().selectedRuleSetId===e&&(n=p.getState().scopeTreeData,(o=j((null==n?void 0:n.data)||null,e))&&o.length>1&&(s=o[o.length-2],ne(s),Se("learnings"))),[4,qe(!0)];case 3:return r.sent(),ue(function(e){return t(t({},e),{isOpen:!1})}),null===(a=Le.current)||void 0===a||a.show({severity:"success",summary:"Deleted Successfully",detail:"The scope was permanently removed."}),[3,6];case 4:return i=r.sent(),console.error("An error occurred during scope deletion.",i),null===(l=Le.current)||void 0===l||l.show({severity:"error",summary:"Delete Failed",detail:(null===(u=null===(c=null==i?void 0:i.response)||void 0===c?void 0:c.data)||void 0===u?void 0:u.message)||"There was an error deleting the scope. Please try again."}),[3,6];case 5:return he(!1),[7];case 6:return[2]}})})},ze=ie,He=Oe?{data:{id:Oe.stationId,name:Oe.stationName,type:"STATION",metrics:{learningsCount:Oe.learningsCount,stationsCount:0},children:[]}}:ze,Ke=!!(null==He?void 0:He.data);null===(d=null==He?void 0:He.data)||void 0===d||d.type;var Ve=P(function(e){return e.hasGlobalPermission})("ilotj.scope.global.create",X.applicationResourceId||""),We=(Oe?Q.filter(function(e){return"stations"!==e.id}):Q).filter(function(e){return!(!ee&&"access"===e.id)});return o(D,{children:s("div",t({className:f.learningManagementContainer},{children:[o("div",t({className:f.mainWrapper},{children:pe?o(R,{}):re?s("div",t({className:f.errorContainer},{children:[o("div",t({className:f.errorTitle},{children:"Error Loading Data"})),o("p",t({className:f.errorDesc},{children:re})),o("button",t({onClick:function(){return qe(!0)},className:f.tryAgainBtn},{children:"Try Again"}))]})):Ke?o(v,{onOpenCreateModal:function(){return ue({isOpen:!0,type:"GLOBAL"})},onAddChild:function(e,t,n){return ue({isOpen:!0,type:t,parentId:e,parentName:n})},onRenameChild:function(e,t){return ue({isOpen:!0,type:"RENAME",scopeId:e,initialName:t})},onDeleteChild:function(e,t,o){return n(H,void 0,void 0,function(){var n,s,i;return r(this,function(r){switch(r.label){case 0:return n=p.getState().scopeTreeData,s=j((null==n?void 0:n.data)||null,e),i=!!s&&3===s.length,0!==o?[3,2]:[4,Qe(e)];case 1:return r.sent(),[3,3];case 2:ue({isOpen:!0,type:"DELETE",scopeId:e,initialName:t,isSubscope:i}),r.label=3;case 3:return[2]}})})},canDeleteScope:function(e){return Ge("ilotj.scope.delete",e)},canEditScope:function(e){return Ge("ilotj.scope.edit",e)},canCreateScope:function(e){return Ge("ilotj.scope.create",e)},onSectionSelect:function(e,t){var n;console.log("Section Selected:",{scopeId:e,sectionId:t}),I(((n={})[A.SECTION]="learnings"===t?null:t,n)),Se(t),ne(e)},activeSectionId:ye,scopeTreeData:He,sectionsConfig:We,onViewStation:function(e){Ae.current=te,we(e),Se("learnings"),ne(e.stationId)},onRefreshRuleSets:function(e,t){void 0===e&&(e=!0),t&&(Ie.current=t),qe(e)},nodeTypesConfig:_e,app_integration_id:Z,token:K.accessToken}):o(h,{onCreate:function(){return ue({isOpen:!0,type:"GLOBAL"})},title:"No Global Scope has been added!",desc:"Start by creating a Global scope to define base learnings that apply across all stations.",button:"Create Global Scope",canCreateRule:Ve,noAccessTitle:"Access Restricted",noAccessDesc:"You do not have access to create a Global scope for this application.",onRequestAccess:function(){return n(H,void 0,void 0,function(){var e,t,n,s,i,a,l,c,u;return r(this,function(r){switch(r.label){case 0:if(!(e=(null===(s=null===(n=p.getState().scopeTreeData)||void 0===n?void 0:n.data)||void 0===s?void 0:s.id)||Ce))return null===(i=Le.current)||void 0===i||i.show({severity:"error",sticky:!1,className:f.errorToast,content:o(q,{message:"Unable to identify the global scope for this access request."})}),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,w(e)];case 2:return r.sent(),null===(a=Le.current)||void 0===a||a.show({severity:"success",sticky:!1,life:3e3,className:f.successToast,content:o(F,{message:"Access request submitted successfully!"})}),[3,4];case 3:return t=r.sent(),null===(l=Le.current)||void 0===l||l.show({severity:"error",sticky:!1,className:f.errorToast,content:o(q,{message:(null===(u=null===(c=null==t?void 0:t.response)||void 0===c?void 0:c.data)||void 0===u?void 0:u.detail)||"Failed to request access. Please try again."})}),[3,4];case 4:return[2]}})})}})})),o(m,{ref:Le,pt:{root:{style:{zIndex:9999}}}}),ee&&ce.isOpen&&"DELETE"!==ce.type&&"RENAME"!==ce.type?o(_,{isOpen:!0,onClose:function(){return ue(t(t({},ce),{isOpen:!1}))},onSubmit:function(e){return n(H,void 0,void 0,function(){var n,o,s,i,a,l,c,u,d,m,f,v,h,g,y,S,E,O,w,A;return r(this,function(r){switch(r.label){case 0:he(!0),n=p.getState().backwardCompatibility,r.label=1;case 1:return r.trys.push([1,12,13,14]),o=void 0,n&&"object"==typeof e?o=e:(s=e,i="SCOPE"===ce.type&&ce.parentId,a=i?"genreRuleSet":ce.type,o={topic:a,scope_reference_id:null,scopeDescription:"demo",parentScopeId:ce.parentId||null,scopeName:s,scopeReferenceMetadata:{},applicationMappingId:Z}),[4,T(o,K.accessToken)];case 2:if(l=r.sent(),!(c=null===(g=null==l?void 0:l.data)||void 0===g?void 0:g.scopeId))return[3,10];if(Ie.current=c,u=n&&(null===(y=o.topic)||void 0===y?void 0:y.toLowerCase().includes("genre")),d=!n&&"GLOBAL"!==ce.type&&ce.parentId,!u&&!d)return[3,10];if(!(m=n?null===(E=null===(S=p.getState().scopeTreeData)||void 0===S?void 0:S.data)||void 0===E?void 0:E.id:ce.parentId))return[3,10];if(!ee)return[3,7];r.label=3;case 3:return r.trys.push([3,5,,6]),[4,C({source_scope_id:m,target_scope_id:c})];case 4:return r.sent(),[3,6];case 5:return f=r.sent(),console.error("Failed to inherit rules for the new scope:",f),[3,6];case 6:return[3,10];case 7:return r.trys.push([7,9,,10]),[4,b({source_scope_id:m,target_scope_id:c,application_mapping_id:Z||"",is_copy_parent_variant_id:!1})];case 8:return r.sent(),[3,10];case 9:return v=r.sent(),console.error("Failed to inherit rules for the new scope:",v),[3,10];case 10:return[4,qe(!0)];case 11:return r.sent(),ue(function(e){return t(t({},e),{isOpen:!1})}),[3,14];case 12:throw h=r.sent(),console.error("An error occurred during scope creation.",h),null===(O=Le.current)||void 0===O||O.show({severity:"error",summary:"Creation Failed",detail:(null===(A=null===(w=null==h?void 0:h.response)||void 0===w?void 0:w.data)||void 0===A?void 0:A.message)||"There was an error creating the scope. Please try again."}),h;case 13:return he(!1),[7];case 14:return[2]}})})},hasGlobalRuleSet:Ke,canCreateGlobal:Ve}):s(i,{children:[o(M,{isOpen:ce.isOpen&&"DELETE"!==ce.type&&"RENAME"!==ce.type,onClose:function(){return ue(t(t({},ce),{isOpen:!1}))},onCreate:function(e){return xe(null!=e?e:"")},hasGlobalRuleSet:Ke}),o(x,{isOpen:ce.isOpen&&"RENAME"===ce.type,onClose:function(){return ue(t(t({},ce),{isOpen:!1}))},onSave:xe,initialName:ce.initialName})]}),o(L,{isOpen:ce.isOpen&&"DELETE"===ce.type,onCancel:function(){return ue(t(t({},ce),{isOpen:!1}))},onConfirm:function(){return Qe(ce.scopeId,ce.initialName,ce.isSubscope)},title:"Delete Scope",description:s(i,{children:["Deleting ",o("span",t({className:f.highlight},{children:ce.initialName||"this scope"}))," will permanently remove all Learnings, Access rules, and Change History inside it. This cannot be undone."]}),confirmText:"Delete",confirmBgColor:"#EF4444",isLoading:ve})]}))})}export{H as default};
2
2
  //# sourceMappingURL=LearningManagement.js.map
@@ -1,2 +1,3 @@
1
- export declare function AccordianHeadTest(): import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare function AccordianHeadTest(): import("react").JSX.Element;
2
3
  //# sourceMappingURL=AccordianHeadTest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccordianHeadTest.d.ts","sourceRoot":"","sources":["../../../src/AccordianHeadTest.tsx"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB,4CAoBhC"}
1
+ {"version":3,"file":"AccordianHeadTest.d.ts","sourceRoot":"","sources":["../../../src/AccordianHeadTest.tsx"],"names":[],"mappings":";AAKA,wBAAgB,iBAAiB,gCAoBhC"}
@@ -1,3 +1,4 @@
1
- declare function App(): import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare function App(): import("react").JSX.Element;
2
3
  export default App;
3
4
  //# sourceMappingURL=App.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":"AAcA,iBAAS,GAAG,4CAEX;AAED,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":";AAcA,iBAAS,GAAG,gCAEX;AAED,eAAe,GAAG,CAAC"}
@@ -4,6 +4,6 @@ type Props = {
4
4
  state: "collapsed" | "expanded";
5
5
  onStateChange: (state: "collapsed" | "expanded") => void;
6
6
  };
7
- export declare function AccordianHead(props: Props): import("react/jsx-runtime").JSX.Element;
7
+ export declare function AccordianHead(props: Props): import("react").JSX.Element;
8
8
  export {};
9
9
  //# sourceMappingURL=AccordianHead.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccordianHead.d.ts","sourceRoot":"","sources":["../../../../../src/CommonComponents/AccordianHead/AccordianHead.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,KAAK,KAAK,GAAG;IACX,oBAAoB,EAAE,YAAY,CAAC;IACnC,KAAK,EAAE,WAAW,GAAG,UAAU,CAAC;IAChC,aAAa,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,2CAYzC"}
1
+ {"version":3,"file":"AccordianHead.d.ts","sourceRoot":"","sources":["../../../../../src/CommonComponents/AccordianHead/AccordianHead.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,KAAK,KAAK,GAAG;IACX,oBAAoB,EAAE,YAAY,CAAC;IACnC,KAAK,EAAE,WAAW,GAAG,UAAU,CAAC;IAChC,aAAa,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,UAAU,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,+BAYzC"}
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  declare const GradientSparkleIcon: ({ color }: {
2
3
  color?: string | undefined;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => React.JSX.Element;
4
5
  export default GradientSparkleIcon;
5
6
  //# sourceMappingURL=GradientSparkleIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GradientSparkleIcon.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/GradientSparkleIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,mBAAmB;;6CAqBxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"GradientSparkleIcon.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/GradientSparkleIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,mBAAmB;;uBAqBxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const HelloWorld: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const HelloWorld: () => import("react").JSX.Element;
2
2
  //# sourceMappingURL=HelloWorld.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HelloWorld.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/HelloWorld.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,+CAEtB,CAAA"}
1
+ {"version":3,"file":"HelloWorld.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/HelloWorld.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,mCAEtB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  type Props = {
2
2
  colSpan: number;
3
3
  };
4
- declare const NoTableData: (props: Props) => import("react/jsx-runtime").JSX.Element;
4
+ declare const NoTableData: (props: Props) => import("react").JSX.Element;
5
5
  export { NoTableData };
6
6
  //# sourceMappingURL=NoTableData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NoTableData.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/NoTableData.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACT,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,WAAW,UAAW,KAAK,4CAYhC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"NoTableData.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/NoTableData.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACT,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,WAAW,UAAW,KAAK,gCAYhC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import 'Spinner.css';
2
- declare const Spinner: () => import("react/jsx-runtime").JSX.Element;
3
+ declare const Spinner: () => React.JSX.Element;
3
4
  export default Spinner;
4
5
  //# sourceMappingURL=Spinner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAA;AAEpB,QAAA,MAAM,OAAO,+CAMZ,CAAA;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/CommonComponents/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,aAAa,CAAA;AAEpB,QAAA,MAAM,OAAO,yBAMZ,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -1,2 +1,3 @@
1
- export default function GoogleFilePickerDemo(): import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ export default function GoogleFilePickerDemo(): import("react").JSX.Element;
2
3
  //# sourceMappingURL=GoogleFilePickerDemo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GoogleFilePickerDemo.d.ts","sourceRoot":"","sources":["../../../src/GoogleFilePickerDemo.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,oBAAoB,4CAsD3C"}
1
+ {"version":3,"file":"GoogleFilePickerDemo.d.ts","sourceRoot":"","sources":["../../../src/GoogleFilePickerDemo.tsx"],"names":[],"mappings":";AAIA,MAAM,CAAC,OAAO,UAAU,oBAAoB,gCAsD3C"}
@@ -1,3 +1,4 @@
1
- declare const ThinkingBulbIconComponent: () => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ declare const ThinkingBulbIconComponent: () => React.JSX.Element;
2
3
  export default ThinkingBulbIconComponent;
3
4
  //# sourceMappingURL=ThinkingBulbIconComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThinkingBulbIconComponent.d.ts","sourceRoot":"","sources":["../../../src/ThinkingBulbIconComponent.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,yBAAyB,+CAI9B,CAAA;AAED,eAAe,yBAAyB,CAAA"}
1
+ {"version":3,"file":"ThinkingBulbIconComponent.d.ts","sourceRoot":"","sources":["../../../src/ThinkingBulbIconComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,QAAA,MAAM,yBAAyB,yBAI9B,CAAA;AAED,eAAe,yBAAyB,CAAA"}
@@ -13,6 +13,6 @@ interface IProps {
13
13
  export declare const goToNextScreenFunctionRef: {
14
14
  current?: () => void;
15
15
  };
16
- declare const DataSelector: (props: IProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const DataSelector: (props: IProps) => React.JSX.Element;
17
17
  export default DataSelector;
18
18
  //# sourceMappingURL=DataSelector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSelector.d.ts","sourceRoot":"","sources":["../../../../../src/features/DataSelector/DataSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAStD,OAAO,EAAE,KAAK,EAAE,MAAM,6DAA6D,CAAC;AAUpF,UAAU,MAAM;IACZ,qBAAqB,CAAC,EAAE,KAAK,EAAE,CAAC;IAChC,wBAAwB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACzE,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;IAC5B,qBAAqB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACrE,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAG5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,eAAO,MAAM,yBAAyB,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAO,CAAC;AAEtE,QAAA,MAAM,YAAY,UAAW,MAAM,4CAoJlC,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"DataSelector.d.ts","sourceRoot":"","sources":["../../../../../src/features/DataSelector/DataSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAStD,OAAO,EAAE,KAAK,EAAE,MAAM,6DAA6D,CAAC;AAUpF,UAAU,MAAM;IACZ,qBAAqB,CAAC,EAAE,KAAK,EAAE,CAAC;IAChC,wBAAwB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACzE,kBAAkB,CAAC,EAAE,IAAI,EAAE,CAAC;IAC5B,qBAAqB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACrE,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAG5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED,eAAO,MAAM,yBAAyB,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAO,CAAC;AAEtE,QAAA,MAAM,YAAY,UAAW,MAAM,sBAoJlC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1,3 +1,3 @@
1
- declare const DataSelectionOptionsScreen: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const DataSelectionOptionsScreen: () => import("react").JSX.Element;
2
2
  export default DataSelectionOptionsScreen;
3
3
  //# sourceMappingURL=DataSelectionOptionsScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSelectionOptionsScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/DataSelectionOptionsScreen.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,0BAA0B,+CAmE/B,CAAA;AAED,eAAe,0BAA0B,CAAA"}
1
+ {"version":3,"file":"DataSelectionOptionsScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/DataSelectionOptionsScreen.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,0BAA0B,mCAmE/B,CAAA;AAED,eAAe,0BAA0B,CAAA"}
@@ -1,3 +1,3 @@
1
- declare const RLEFDataPointsListInSelectedDataSetCollection: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const RLEFDataPointsListInSelectedDataSetCollection: () => import("react").JSX.Element;
2
2
  export default RLEFDataPointsListInSelectedDataSetCollection;
3
3
  //# sourceMappingURL=RLEFDataPointsListInSelectedDataSetCollection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RLEFDataPointsListInSelectedDataSetCollection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,6CAA6C,+CAgDlD,CAAA;AAED,eAAe,6CAA6C,CAAA"}
1
+ {"version":3,"file":"RLEFDataPointsListInSelectedDataSetCollection.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RLEFDataPointsListInSelectedDataSetCollection.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,6CAA6C,mCAgDlD,CAAA;AAED,eAAe,6CAA6C,CAAA"}
@@ -1,3 +1,3 @@
1
- declare const RLEFDataSetCollectionsList: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const RLEFDataSetCollectionsList: () => import("react").JSX.Element;
2
2
  export default RLEFDataSetCollectionsList;
3
3
  //# sourceMappingURL=RLEFDataSetCollectionsList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RLEFDataSetCollectionsList.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RLEFDataSetCollectionsList.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,0BAA0B,+CAgF/B,CAAA;AAED,eAAe,0BAA0B,CAAA"}
1
+ {"version":3,"file":"RLEFDataSetCollectionsList.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RLEFDataSetCollectionsList.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,0BAA0B,mCAgF/B,CAAA;AAED,eAAe,0BAA0B,CAAA"}
@@ -1,3 +1,3 @@
1
- declare const RlefDataTabsComponent: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const RlefDataTabsComponent: () => import("react").JSX.Element;
2
2
  export default RlefDataTabsComponent;
3
3
  //# sourceMappingURL=RlefDataTabsComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RlefDataTabsComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RlefDataTabsComponent.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,qBAAqB,+CA+D1B,CAAA;AAED,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"RlefDataTabsComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RlefDataTabsComponent.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,qBAAqB,mCA+D1B,CAAA;AAED,eAAe,qBAAqB,CAAA"}
@@ -1,3 +1,4 @@
1
- declare const RlefHistoricalCopilotData: () => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ declare const RlefHistoricalCopilotData: () => React.JSX.Element;
2
3
  export default RlefHistoricalCopilotData;
3
4
  //# sourceMappingURL=RlefHistoricalCopilotData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RlefHistoricalCopilotData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RlefHistoricalCopilotData.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,yBAAyB,+CAuD9B,CAAA;AAED,eAAe,yBAAyB,CAAA"}
1
+ {"version":3,"file":"RlefHistoricalCopilotData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/RlefHistoricalCopilotData.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAOlD,QAAA,MAAM,yBAAyB,yBAuD9B,CAAA;AAED,eAAe,yBAAyB,CAAA"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type TProps = {
2
3
  userEmail: string;
3
4
  };
@@ -8,6 +9,6 @@ export type TDataSet = {
8
9
  createdAt: string;
9
10
  dataPointsCount: string;
10
11
  };
11
- declare function SavedDataSetListScreen({ userEmail }: TProps): import("react/jsx-runtime").JSX.Element;
12
+ declare function SavedDataSetListScreen({ userEmail }: TProps): import("react").JSX.Element;
12
13
  export default SavedDataSetListScreen;
13
14
  //# sourceMappingURL=SavedDataSetListScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SavedDataSetListScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/SavedDataSetListScreen.tsx"],"names":[],"mappings":"AAIA,KAAK,MAAM,GAAG;IACV,SAAS,EAAG,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,iBAAS,sBAAsB,CAAC,EAAE,SAAS,EAAE,EAAG,MAAM,2CA6BrD;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"SavedDataSetListScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/SavedDataSetListScreen.tsx"],"names":[],"mappings":";AAIA,KAAK,MAAM,GAAG;IACV,SAAS,EAAG,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,iBAAS,sBAAsB,CAAC,EAAE,SAAS,EAAE,EAAG,MAAM,+BA6BrD;AAED,eAAe,sBAAsB,CAAA"}
@@ -1,3 +1,3 @@
1
- declare const SelectedDataList: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const SelectedDataList: () => import("react").JSX.Element;
2
2
  export default SelectedDataList;
3
3
  //# sourceMappingURL=SelectedDataList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectedDataList.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/SelectedDataList.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,gBAAgB,+CAyErB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"SelectedDataList.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DataSelector/components/SelectedDataList.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,gBAAgB,mCAyErB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -6,6 +6,6 @@ type TProps = {
6
6
  setDatasets: React.Dispatch<React.SetStateAction<TDataSet[]>>;
7
7
  userEmail: string;
8
8
  };
9
- declare function DataSetElement({ dataSet, setDatasets, userEmail }: TProps): import("react/jsx-runtime").JSX.Element;
9
+ declare function DataSetElement({ dataSet, setDatasets, userEmail }: TProps): import("react").JSX.Element;
10
10
  export default DataSetElement;
11
11
  //# sourceMappingURL=DataSetElement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSetElement.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAEvD,KAAK,MAAM,GAAG;IACV,OAAO,EAAE,QAAQ,CAAC;IAClB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC9D,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,iBAAS,cAAc,CAAC,EAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAC,EAAC,MAAM,2CA0E/D;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"DataSetElement.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/DataSelector/components/subcomponents/DataSetElement/DataSetElement.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAEvD,KAAK,MAAM,GAAG;IACV,OAAO,EAAE,QAAQ,CAAC;IAClB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC9D,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,iBAAS,cAAc,CAAC,EAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAC,EAAC,MAAM,+BA0E/D;AAED,eAAe,cAAc,CAAA"}
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import './Pagination.css';
2
3
  declare function Pagination({ checked, openSelectedDataList }: {
3
4
  checked: any;
4
5
  openSelectedDataList: any;
5
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): import("react").JSX.Element;
6
7
  export default Pagination;
7
8
  //# sourceMappingURL=Pagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/DataSelector/components/subcomponents/Pagination/Pagination.tsx"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAA;AAIzB,iBAAS,UAAU,CAAC,EAAC,OAAO,EAAE,oBAAoB,EAAC;;;CAAA,2CAalD;AAED,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/DataSelector/components/subcomponents/Pagination/Pagination.tsx"],"names":[],"mappings":";AACA,OAAO,kBAAkB,CAAA;AAIzB,iBAAS,UAAU,CAAC,EAAC,OAAO,EAAE,oBAAoB,EAAC;;;CAAA,+BAalD;AAED,eAAe,UAAU,CAAA"}
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  declare const MessageRendering: ({ index, content, messages, handleStream, scrollToBottom }: {
2
3
  index: number;
3
4
  content: string;
4
5
  messages: any;
5
6
  handleStream: any;
6
7
  scrollToBottom: any;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
+ }) => React.JSX.Element;
8
9
  export default MessageRendering;
9
10
  //# sourceMappingURL=MessageRendering.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DocumentLearning/_components/MessageRendering.tsx"],"names":[],"mappings":"AA8JA,QAAA,MAAM,gBAAgB;WAEP,MAAM;aACJ,MAAM;cACL,GAAG;kBACC,GAAG;oBACD,GAAG;6CA2pB1B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"MessageRendering.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DocumentLearning/_components/MessageRendering.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AA8JhF,QAAA,MAAM,gBAAgB;WAEP,MAAM;aACJ,MAAM;cACL,GAAG;kBACC,GAAG;oBACD,GAAG;uBA2pB1B,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,3 +1,4 @@
1
- declare const MinimizedThinkingSteps: ({ orchestratorAndAgentsMessages, isStreamEnd, isCurrentMessage, name, ThinkingBulbIconComponent }: any) => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ declare const MinimizedThinkingSteps: ({ orchestratorAndAgentsMessages, isStreamEnd, isCurrentMessage, name, ThinkingBulbIconComponent }: any) => React.JSX.Element;
2
3
  export default MinimizedThinkingSteps;
3
4
  //# sourceMappingURL=MinimizedThinkingSteps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MinimizedThinkingSteps.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DocumentLearning/_components/MinimizedThinkingSteps.tsx"],"names":[],"mappings":"AAmEA,QAAA,MAAM,sBAAsB,sGAAuG,GAAG,4CAwIrI,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"MinimizedThinkingSteps.d.ts","sourceRoot":"","sources":["../../../../../../src/features/DocumentLearning/_components/MinimizedThinkingSteps.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAgE3D,QAAA,MAAM,sBAAsB,sGAAuG,GAAG,sBAwIrI,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,3 +1,4 @@
1
- declare const ArrowDown: () => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const ArrowDown: () => import("react").JSX.Element;
2
3
  export default ArrowDown;
3
4
  //# sourceMappingURL=ArrowDown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowDown.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/ArrowDown.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS,+CAOd,CAAC;AAEF,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"ArrowDown.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/ArrowDown.tsx"],"names":[],"mappings":";AAAA,QAAA,MAAM,SAAS,mCAOd,CAAC;AAEF,eAAe,SAAS,CAAA"}
@@ -1,3 +1,4 @@
1
- declare const ArrowIconBlue: () => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const ArrowIconBlue: () => import("react").JSX.Element;
2
3
  export default ArrowIconBlue;
3
4
  //# sourceMappingURL=ArrowIconBlue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowIconBlue.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/ArrowIconBlue.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,+CAOlB,CAAC;AAEF,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"ArrowIconBlue.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/ArrowIconBlue.tsx"],"names":[],"mappings":";AAAA,QAAA,MAAM,aAAa,mCAOlB,CAAC;AAEF,eAAe,aAAa,CAAA"}
@@ -1,3 +1,4 @@
1
- declare const CompleteIconGreen: () => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const CompleteIconGreen: () => import("react").JSX.Element;
2
3
  export default CompleteIconGreen;
3
4
  //# sourceMappingURL=CompleteIconGreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompleteIconGreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/CompleteIconGreen.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,iBAAiB,+CAsBpB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"CompleteIconGreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/CompleteIconGreen.tsx"],"names":[],"mappings":";AAAA,QAAA,MAAM,iBAAiB,mCAsBpB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,3 +1,4 @@
1
- declare const NewChatIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const NewChatIcon: () => import("react").JSX.Element;
2
3
  export default NewChatIcon;
3
4
  //# sourceMappingURL=NewChatIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewChatIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/NewChatIcon.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW,+CAUhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"NewChatIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/DocumentLearning/_components/_svg/NewChatIcon.tsx"],"names":[],"mappings":";AAAA,QAAA,MAAM,WAAW,mCAUhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -14,6 +14,6 @@ export interface TeachMeWrapperProps {
14
14
  */
15
15
  templateRegistry?: Record<string, React.FC<TeachMeWrapperProps>>;
16
16
  }
17
- declare const TeachMeWrapper: (props: TeachMeWrapperProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const TeachMeWrapper: (props: TeachMeWrapperProps) => import("react").JSX.Element;
18
18
  export default TeachMeWrapper;
19
19
  //# sourceMappingURL=TeachMeWrapper.d.ts.map