@e-llm-studio/requirement-ai 0.0.49 → 0.0.51

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 (242) hide show
  1. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  3. package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.js +2 -0
  4. package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.js.map +1 -0
  5. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +2 -0
  6. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js.map +1 -0
  7. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +2 -0
  8. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js.map +1 -0
  9. package/dist/cjs/features/UserStoryImport/components/BackNav.js +2 -0
  10. package/dist/cjs/features/UserStoryImport/components/BackNav.js.map +1 -0
  11. package/dist/cjs/features/UserStoryImport/components/Badge.js +2 -0
  12. package/dist/cjs/features/UserStoryImport/components/Badge.js.map +1 -0
  13. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +2 -0
  14. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js.map +1 -0
  15. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +2 -0
  16. package/dist/cjs/features/UserStoryImport/components/CardGrid.js.map +1 -0
  17. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +2 -0
  18. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js.map +1 -0
  19. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +2 -0
  20. package/dist/cjs/features/UserStoryImport/components/ContentArea.js.map +1 -0
  21. package/dist/cjs/features/UserStoryImport/components/Footer.js +2 -0
  22. package/dist/cjs/features/UserStoryImport/components/Footer.js.map +1 -0
  23. package/dist/cjs/features/UserStoryImport/components/Header.js +2 -0
  24. package/dist/cjs/features/UserStoryImport/components/Header.js.map +1 -0
  25. package/dist/cjs/features/UserStoryImport/components/NavRow.js +2 -0
  26. package/dist/cjs/features/UserStoryImport/components/NavRow.js.map +1 -0
  27. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +2 -0
  28. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js.map +1 -0
  29. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +2 -0
  30. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js.map +1 -0
  31. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +2 -0
  32. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js.map +1 -0
  33. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +2 -0
  34. package/dist/cjs/features/UserStoryImport/components/SearchInput.js.map +1 -0
  35. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +2 -0
  36. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js.map +1 -0
  37. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +2 -0
  38. package/dist/cjs/features/UserStoryImport/components/ShowMore.js.map +1 -0
  39. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +2 -0
  40. package/dist/cjs/features/UserStoryImport/components/Sidebar.js.map +1 -0
  41. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +2 -0
  42. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js.map +1 -0
  43. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +2 -0
  44. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js.map +1 -0
  45. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +2 -0
  46. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js.map +1 -0
  47. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +2 -0
  48. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js.map +1 -0
  49. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +2 -0
  50. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js.map +1 -0
  51. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +2 -0
  52. package/dist/cjs/features/UserStoryImport/components/Toolbar.js.map +1 -0
  53. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +2 -0
  54. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js.map +1 -0
  55. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +2 -0
  56. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js.map +1 -0
  57. package/dist/cjs/features/UserStoryImport/components/usePanelResize.js +2 -0
  58. package/dist/cjs/features/UserStoryImport/components/usePanelResize.js.map +1 -0
  59. package/dist/cjs/features/UserStoryImport/demo.js +2 -0
  60. package/dist/cjs/features/UserStoryImport/demo.js.map +1 -0
  61. package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.js +2 -0
  62. package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.js.map +1 -0
  63. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +2 -0
  64. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js.map +1 -0
  65. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +2 -0
  66. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js.map +1 -0
  67. package/dist/cjs/features/UserStoryImport/index.js +2 -0
  68. package/dist/cjs/features/UserStoryImport/index.js.map +1 -0
  69. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +2 -0
  70. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js.map +1 -0
  71. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +2 -0
  72. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js.map +1 -0
  73. package/dist/cjs/features/UserStoryImport/lib/cn.js +2 -0
  74. package/dist/cjs/features/UserStoryImport/lib/cn.js.map +1 -0
  75. package/dist/cjs/features/UserStoryImport/lib/dialog.js +2 -0
  76. package/dist/cjs/features/UserStoryImport/lib/dialog.js.map +1 -0
  77. package/dist/cjs/features/UserStoryImport/user-story-picker.css.js +2 -0
  78. package/dist/cjs/features/UserStoryImport/user-story-picker.css.js.map +1 -0
  79. package/dist/cjs/index.js +1 -1
  80. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  81. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  82. package/dist/features/UserStoryImport/UserStoryPicker.context.js +2 -0
  83. package/dist/features/UserStoryImport/UserStoryPicker.context.js.map +1 -0
  84. package/dist/features/UserStoryImport/UserStoryPicker.js +2 -0
  85. package/dist/features/UserStoryImport/UserStoryPicker.js.map +1 -0
  86. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +2 -0
  87. package/dist/features/UserStoryImport/UserStoryPicker.theme.js.map +1 -0
  88. package/dist/features/UserStoryImport/components/BackNav.js +2 -0
  89. package/dist/features/UserStoryImport/components/BackNav.js.map +1 -0
  90. package/dist/features/UserStoryImport/components/Badge.js +2 -0
  91. package/dist/features/UserStoryImport/components/Badge.js.map +1 -0
  92. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +2 -0
  93. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js.map +1 -0
  94. package/dist/features/UserStoryImport/components/CardGrid.js +2 -0
  95. package/dist/features/UserStoryImport/components/CardGrid.js.map +1 -0
  96. package/dist/features/UserStoryImport/components/CardProceedButton.js +2 -0
  97. package/dist/features/UserStoryImport/components/CardProceedButton.js.map +1 -0
  98. package/dist/features/UserStoryImport/components/ContentArea.js +2 -0
  99. package/dist/features/UserStoryImport/components/ContentArea.js.map +1 -0
  100. package/dist/features/UserStoryImport/components/Footer.js +2 -0
  101. package/dist/features/UserStoryImport/components/Footer.js.map +1 -0
  102. package/dist/features/UserStoryImport/components/Header.js +2 -0
  103. package/dist/features/UserStoryImport/components/Header.js.map +1 -0
  104. package/dist/features/UserStoryImport/components/NavRow.js +2 -0
  105. package/dist/features/UserStoryImport/components/NavRow.js.map +1 -0
  106. package/dist/features/UserStoryImport/components/ProceedButton.js +2 -0
  107. package/dist/features/UserStoryImport/components/ProceedButton.js.map +1 -0
  108. package/dist/features/UserStoryImport/components/ProjectCard.js +2 -0
  109. package/dist/features/UserStoryImport/components/ProjectCard.js.map +1 -0
  110. package/dist/features/UserStoryImport/components/ResizeHandle.js +2 -0
  111. package/dist/features/UserStoryImport/components/ResizeHandle.js.map +1 -0
  112. package/dist/features/UserStoryImport/components/SearchInput.js +2 -0
  113. package/dist/features/UserStoryImport/components/SearchInput.js.map +1 -0
  114. package/dist/features/UserStoryImport/components/SectionHeading.js +2 -0
  115. package/dist/features/UserStoryImport/components/SectionHeading.js.map +1 -0
  116. package/dist/features/UserStoryImport/components/ShowMore.js +2 -0
  117. package/dist/features/UserStoryImport/components/ShowMore.js.map +1 -0
  118. package/dist/features/UserStoryImport/components/Sidebar.js +2 -0
  119. package/dist/features/UserStoryImport/components/Sidebar.js.map +1 -0
  120. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +2 -0
  121. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js.map +1 -0
  122. package/dist/features/UserStoryImport/components/SidebarProjectList.js +2 -0
  123. package/dist/features/UserStoryImport/components/SidebarProjectList.js.map +1 -0
  124. package/dist/features/UserStoryImport/components/SidebarSection.js +2 -0
  125. package/dist/features/UserStoryImport/components/SidebarSection.js.map +1 -0
  126. package/dist/features/UserStoryImport/components/SortDropdown.js +2 -0
  127. package/dist/features/UserStoryImport/components/SortDropdown.js.map +1 -0
  128. package/dist/features/UserStoryImport/components/SplitLayout.js +2 -0
  129. package/dist/features/UserStoryImport/components/SplitLayout.js.map +1 -0
  130. package/dist/features/UserStoryImport/components/Toolbar.js +2 -0
  131. package/dist/features/UserStoryImport/components/Toolbar.js.map +1 -0
  132. package/dist/features/UserStoryImport/components/UserStoryCard.js +2 -0
  133. package/dist/features/UserStoryImport/components/UserStoryCard.js.map +1 -0
  134. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +2 -0
  135. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js.map +1 -0
  136. package/dist/features/UserStoryImport/components/usePanelResize.js +2 -0
  137. package/dist/features/UserStoryImport/components/usePanelResize.js.map +1 -0
  138. package/dist/features/UserStoryImport/demo.js +2 -0
  139. package/dist/features/UserStoryImport/demo.js.map +1 -0
  140. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +2 -0
  141. package/dist/features/UserStoryImport/hooks/useFilteredItems.js.map +1 -0
  142. package/dist/features/UserStoryImport/hooks/useUSPData.js +2 -0
  143. package/dist/features/UserStoryImport/hooks/useUSPData.js.map +1 -0
  144. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +2 -0
  145. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js.map +1 -0
  146. package/dist/features/UserStoryImport/index.js +2 -0
  147. package/dist/features/UserStoryImport/index.js.map +1 -0
  148. package/dist/features/UserStoryImport/lib/CustomTooltip.js +2 -0
  149. package/dist/features/UserStoryImport/lib/CustomTooltip.js.map +1 -0
  150. package/dist/features/UserStoryImport/lib/Tooltip.js +2 -0
  151. package/dist/features/UserStoryImport/lib/Tooltip.js.map +1 -0
  152. package/dist/features/UserStoryImport/lib/cn.js +2 -0
  153. package/dist/features/UserStoryImport/lib/cn.js.map +1 -0
  154. package/dist/features/UserStoryImport/lib/dialog.js +2 -0
  155. package/dist/features/UserStoryImport/lib/dialog.js.map +1 -0
  156. package/dist/features/UserStoryImport/user-story-picker.css.js +2 -0
  157. package/dist/features/UserStoryImport/user-story-picker.css.js.map +1 -0
  158. package/dist/index.js +1 -1
  159. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +9 -1
  160. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  161. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  162. package/dist/types/src/features/UserStoryImport/UserStoryPicker.context.d.ts +48 -0
  163. package/dist/types/src/features/UserStoryImport/UserStoryPicker.context.d.ts.map +1 -0
  164. package/dist/types/src/features/UserStoryImport/UserStoryPicker.d.ts +4 -0
  165. package/dist/types/src/features/UserStoryImport/UserStoryPicker.d.ts.map +1 -0
  166. package/dist/types/src/features/UserStoryImport/UserStoryPicker.theme.d.ts +99 -0
  167. package/dist/types/src/features/UserStoryImport/UserStoryPicker.theme.d.ts.map +1 -0
  168. package/dist/types/src/features/UserStoryImport/UserStoryPicker.types.d.ts +230 -0
  169. package/dist/types/src/features/UserStoryImport/UserStoryPicker.types.d.ts.map +1 -0
  170. package/dist/types/src/features/UserStoryImport/components/BackNav.d.ts +10 -0
  171. package/dist/types/src/features/UserStoryImport/components/BackNav.d.ts.map +1 -0
  172. package/dist/types/src/features/UserStoryImport/components/Badge.d.ts +10 -0
  173. package/dist/types/src/features/UserStoryImport/components/Badge.d.ts.map +1 -0
  174. package/dist/types/src/features/UserStoryImport/components/BrowseProjectsButton.d.ts +9 -0
  175. package/dist/types/src/features/UserStoryImport/components/BrowseProjectsButton.d.ts.map +1 -0
  176. package/dist/types/src/features/UserStoryImport/components/CardGrid.d.ts +9 -0
  177. package/dist/types/src/features/UserStoryImport/components/CardGrid.d.ts.map +1 -0
  178. package/dist/types/src/features/UserStoryImport/components/CardProceedButton.d.ts +7 -0
  179. package/dist/types/src/features/UserStoryImport/components/CardProceedButton.d.ts.map +1 -0
  180. package/dist/types/src/features/UserStoryImport/components/ContentArea.d.ts +8 -0
  181. package/dist/types/src/features/UserStoryImport/components/ContentArea.d.ts.map +1 -0
  182. package/dist/types/src/features/UserStoryImport/components/Footer.d.ts +8 -0
  183. package/dist/types/src/features/UserStoryImport/components/Footer.d.ts.map +1 -0
  184. package/dist/types/src/features/UserStoryImport/components/Header.d.ts +12 -0
  185. package/dist/types/src/features/UserStoryImport/components/Header.d.ts.map +1 -0
  186. package/dist/types/src/features/UserStoryImport/components/NavRow.d.ts +8 -0
  187. package/dist/types/src/features/UserStoryImport/components/NavRow.d.ts.map +1 -0
  188. package/dist/types/src/features/UserStoryImport/components/ProceedButton.d.ts +9 -0
  189. package/dist/types/src/features/UserStoryImport/components/ProceedButton.d.ts.map +1 -0
  190. package/dist/types/src/features/UserStoryImport/components/ProjectCard.d.ts +13 -0
  191. package/dist/types/src/features/UserStoryImport/components/ProjectCard.d.ts.map +1 -0
  192. package/dist/types/src/features/UserStoryImport/components/ResizeHandle.d.ts +10 -0
  193. package/dist/types/src/features/UserStoryImport/components/ResizeHandle.d.ts.map +1 -0
  194. package/dist/types/src/features/UserStoryImport/components/SearchInput.d.ts +12 -0
  195. package/dist/types/src/features/UserStoryImport/components/SearchInput.d.ts.map +1 -0
  196. package/dist/types/src/features/UserStoryImport/components/SectionHeading.d.ts +11 -0
  197. package/dist/types/src/features/UserStoryImport/components/SectionHeading.d.ts.map +1 -0
  198. package/dist/types/src/features/UserStoryImport/components/ShowMore.d.ts +8 -0
  199. package/dist/types/src/features/UserStoryImport/components/ShowMore.d.ts.map +1 -0
  200. package/dist/types/src/features/UserStoryImport/components/Sidebar.d.ts +12 -0
  201. package/dist/types/src/features/UserStoryImport/components/Sidebar.d.ts.map +1 -0
  202. package/dist/types/src/features/UserStoryImport/components/SidebarFavoritesList.d.ts +8 -0
  203. package/dist/types/src/features/UserStoryImport/components/SidebarFavoritesList.d.ts.map +1 -0
  204. package/dist/types/src/features/UserStoryImport/components/SidebarProjectList.d.ts +8 -0
  205. package/dist/types/src/features/UserStoryImport/components/SidebarProjectList.d.ts.map +1 -0
  206. package/dist/types/src/features/UserStoryImport/components/SidebarSection.d.ts +24 -0
  207. package/dist/types/src/features/UserStoryImport/components/SidebarSection.d.ts.map +1 -0
  208. package/dist/types/src/features/UserStoryImport/components/SortDropdown.d.ts +14 -0
  209. package/dist/types/src/features/UserStoryImport/components/SortDropdown.d.ts.map +1 -0
  210. package/dist/types/src/features/UserStoryImport/components/SplitLayout.d.ts +8 -0
  211. package/dist/types/src/features/UserStoryImport/components/SplitLayout.d.ts.map +1 -0
  212. package/dist/types/src/features/UserStoryImport/components/Toolbar.d.ts +8 -0
  213. package/dist/types/src/features/UserStoryImport/components/Toolbar.d.ts.map +1 -0
  214. package/dist/types/src/features/UserStoryImport/components/UserStoryCard.d.ts +13 -0
  215. package/dist/types/src/features/UserStoryImport/components/UserStoryCard.d.ts.map +1 -0
  216. package/dist/types/src/features/UserStoryImport/components/UserStoryImportDialog.d.ts +10 -0
  217. package/dist/types/src/features/UserStoryImport/components/UserStoryImportDialog.d.ts.map +1 -0
  218. package/dist/types/src/features/UserStoryImport/components/usePanelResize.d.ts +14 -0
  219. package/dist/types/src/features/UserStoryImport/components/usePanelResize.d.ts.map +1 -0
  220. package/dist/types/src/features/UserStoryImport/components/useProjectUserStory.d.ts +33 -0
  221. package/dist/types/src/features/UserStoryImport/components/useProjectUserStory.d.ts.map +1 -0
  222. package/dist/types/src/features/UserStoryImport/demo.d.ts +10 -0
  223. package/dist/types/src/features/UserStoryImport/demo.d.ts.map +1 -0
  224. package/dist/types/src/features/UserStoryImport/hooks/useFilteredItems.d.ts +10 -0
  225. package/dist/types/src/features/UserStoryImport/hooks/useFilteredItems.d.ts.map +1 -0
  226. package/dist/types/src/features/UserStoryImport/hooks/useUSPData.d.ts +28 -0
  227. package/dist/types/src/features/UserStoryImport/hooks/useUSPData.d.ts.map +1 -0
  228. package/dist/types/src/features/UserStoryImport/hooks/useUserStoryPickerState.d.ts +4 -0
  229. package/dist/types/src/features/UserStoryImport/hooks/useUserStoryPickerState.d.ts.map +1 -0
  230. package/dist/types/src/features/UserStoryImport/index.d.ts +61 -0
  231. package/dist/types/src/features/UserStoryImport/index.d.ts.map +1 -0
  232. package/dist/types/src/features/UserStoryImport/lib/CustomTooltip.d.ts +13 -0
  233. package/dist/types/src/features/UserStoryImport/lib/CustomTooltip.d.ts.map +1 -0
  234. package/dist/types/src/features/UserStoryImport/lib/Tooltip.d.ts +8 -0
  235. package/dist/types/src/features/UserStoryImport/lib/Tooltip.d.ts.map +1 -0
  236. package/dist/types/src/features/UserStoryImport/lib/cn.d.ts +4 -0
  237. package/dist/types/src/features/UserStoryImport/lib/cn.d.ts.map +1 -0
  238. package/dist/types/src/features/UserStoryImport/lib/dialog.d.ts +22 -0
  239. package/dist/types/src/features/UserStoryImport/lib/dialog.d.ts.map +1 -0
  240. package/dist/types/src/index.d.ts +60 -0
  241. package/dist/types/src/index.d.ts.map +1 -1
  242. package/package.json +8 -2
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),n=require("../../store/ref.context.js"),i=t.createContext(null);exports.default=function(s){var o=s.children,u=s.userStory,a=s.setUserStory,c=s.aiReasoning,l=s.setAiReasoning,f=s.citations,d=s.setCitations,g=s.apiCachingConfig,h=s.customStyles,v=s.customIcons,y=s.searchQueryList,m=s.searchQueryReasoningIdList,x=s.citationConfig,C=s.chatHistory,p=t.useMemo(function(){if(0===u.length||0===c.length)return Array(u.length).fill(0);var e=Array.from({length:u.length},function(){return[]});return c.forEach(function(r){var t=Number(r.relevance_score);if(!(isNaN(t)||t<=0)){var n="ai_reasoning$".concat(r.id),i=u.findIndex(function(e){var r;return e.value.includes(n)||(null===(r=e.sub_features)||void 0===r?void 0:r.some(function(e){return e.value.includes(n)}))});-1!==i&&e[i].push(t)}}),e.map(function(e){return 0===e.length?0:Math.round(e.reduce(function(e,r){return e+r},0)/e.length)})},[u,c]),I=t.useCallback(function(e){var r,t=u.findIndex(function(r){return r.artifactId===e});return-1===t?0:null!==(r=p[t])&&void 0!==r?r:0},[u,p]);return r.jsx(i.Provider,e.__assign({value:{chatHistory:C,userStory:u,setUserStory:a,aiReasoning:c,setAiReasoning:l,citations:f,setCitations:d,apiCachingConfig:g,customStyles:h,customIcons:v,searchQueryList:y,searchQueryReasoningIdList:m,citationConfig:x,getAvgScoreForStory:I}},{children:r.jsx(n.RefProvider,{children:o})}))},exports.useRequirementAI=function(){var e=t.useContext(i);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("../../store/ref.context.js"),i=r.createContext(null);exports.default=function(o){var s=o.children,u=o.userStory,a=o.setUserStory,c=o.aiReasoning,l=o.setAiReasoning,f=o.citations,g=o.setCitations,d=o.apiCachingConfig,h=o.customStyles,v=o.customIcons,y=o.searchQueryList,C=o.searchQueryReasoningIdList,m=o.citationConfig,p=o.chatHistory,x=o.gptCitationConfigs,I=r.useMemo(function(){if(0===u.length||0===c.length)return Array(u.length).fill(0);var e=Array.from({length:u.length},function(){return[]});return c.forEach(function(t){var r=Number(t.relevance_score);if(!(isNaN(r)||r<=0)){var n="ai_reasoning$".concat(t.id),i=u.findIndex(function(e){var t;return e.value.includes(n)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(function(e){return e.value.includes(n)}))});-1!==i&&e[i].push(r)}}),e.map(function(e){return 0===e.length?0:Math.round(e.reduce(function(e,t){return e+t},0)/e.length)})},[u,c]),R=r.useCallback(function(e){var t,r=u.findIndex(function(t){return t.artifactId===e});return-1===r?0:null!==(t=I[r])&&void 0!==t?t:0},[u,I]);return t.jsx(i.Provider,e.__assign({value:{chatHistory:p,userStory:u,setUserStory:a,aiReasoning:c,setAiReasoning:l,citations:f,setCitations:g,apiCachingConfig:d,customStyles:h,customIcons:v,searchQueryList:y,searchQueryReasoningIdList:C,citationConfig:m,getAvgScoreForStory:R,gptCitationConfigs:x}},{children:t.jsx(n.RefProvider,{children:s})}))},exports.useRequirementAI=function(){var e=r.useContext(i);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
2
2
  //# sourceMappingURL=RequirementAIWrapper.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),t=require("react/jsx-runtime"),e=require("react"),n=require("react-markdown"),o=require("rehype-raw"),a=require("lucide-react"),l=require("@mui/material"),s=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),c=require("../citations/web-citation/WebCitationWithImageRenderer.js"),r=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),_=require("../citations/file-citation/FileCitationRender.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),f=require("../citations/appmod-citation/AppmodCitationRenderer.js"),h=require("../citations/rca-citation/RCACitationRenderer.js"),g=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),j=require("../citations/chat-citation/ChatCitationRenderer.js");function x(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var C=x(n),b=x(o),y=["appmode_citation","image_citation","audio_citation","document_citation","rca_citation","web_citation","code_generated","chat_citation","readfile_citation"],S=function(t,e,n){return i.__spreadArray([],t.map(function(t,o){var a=o>=e&&o<=n;return i.__assign(i.__assign({},t),{highlighted_text:a?t.message:""})}),!0)};exports.AiReasonMarkdownWrapper=function(n){var o=n.message,x=n.isExpandableOrderedListEnabled,q=n.customStyles,I=n.citationStyles,k=n.customIcons,R=n.onSelectProceed,M=n.isDisableProceedButton,w=e.useRef(null),N=v.useRequirementAI(),F=N.citations,W=N.citationConfig,A=N.chatHistory,L=N.chatCitationConfigs,P=e.useMemo(function(){return{h1:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h1",i.__assign({className:s.default.h1,style:null==q?void 0:q.h1},{children:null==n?void 0:n.children}))},h2:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h2,style:null==q?void 0:q.h2},{children:null==n?void 0:n.children}))},h3:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h3,style:null==q?void 0:q.h3},{children:null==n?void 0:n.children}))},b:function(e){return e.node,i.__rest(e,["node"]),t.jsx("b",{className:s.default.bold,style:null==q?void 0:q.b})},p:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("p",i.__assign({},n,{className:s.default.paragraph,style:null==q?void 0:q.p},{children:null==n?void 0:n.children}))},ol:function(e){e.node;var n=i.__rest(e,["node"]);return x?t.jsx(d.default,i.__assign({customStyles:null==q?void 0:q.expandOlStyle,onProceed:R,isProceedDisabled:M,aiReasoningCitation:F},{children:null==n?void 0:n.children})):t.jsx("ol",i.__assign({className:s.default.orderedList,style:null==q?void 0:q.ol},{children:null==n?void 0:n.children}))},ul:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("ul",i.__assign({className:s.default.unorderedList},{children:null==n?void 0:n.children}))},a:function(n){var o,a,d,v,x,C,b,R,M,w,N,P,O,T,D,E,H,$,z,B;n.inline;var U=n.children;n.node;var G=i.__rest(n,["inline","children","node"]),J="true"===(null==G?void 0:G.table),K="".concat(null==G?void 0:G.href),Q=null===(o=K.split("$"))||void 0===o?void 0:o[0],V=null===(a=K.split("$"))||void 0===a?void 0:a[1],X=("appmode_citation"===Q||"appmode_citations"===Q?(null==F?void 0:F.appmod_citations)||[]:"image_citation"===Q||"image_citations"===Q?(null==F?void 0:F.image_citations)||[]:"audio_citation"===Q||"audio_citations"===Q?(null==F?void 0:F.audio_citations)||[]:"document_citation"===Q||"document_citations"===Q?(null==F?void 0:F.file_citations)||[]:"rca_citation"===Q||"rca_citations"===Q?(null==F?void 0:F.rca_citations)||[]:"web_citation"===Q||"web_citations"===Q?(null==F?void 0:F.web_citations)||[]:"code_generated"===Q?(null==F?void 0:F.code_generated)||[]:("readfile_citation"===Q||"readfile_citations"===Q)&&(null==F?void 0:F.readfile_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(V)});if(y.includes(Q)&&!X){var Y=null!==(d=null==k?void 0:k.citationLoadingIcon)&&void 0!==d?d:t.jsx("span",{className:s.default.citationSpinner,style:null===(v=null==I?void 0:I.loadingCitations)||void 0===v?void 0:v.citationSpinner});return t.jsx(l.Tooltip,i.__assign({title:null!==(C=null===(x=null==I?void 0:I.loadingCitations)||void 0===x?void 0:x.tooltipTitle)&&void 0!==C?C:"".concat(Q," loading..."),arrow:!0},{children:t.jsxs("span",i.__assign({className:s.default.citationSpinnerWrapper,style:null===(b=null==I?void 0:I.loadingCitations)||void 0===b?void 0:b.citationSpinnerWrapper},{children:[U,Y]}))}))}if("chat_citation"===Q){if(!A||0===A.length)return null;var Z=V.split("-").map(Number),ii=Z[0],ti=Z[1];return ii=ii>0?ii-1:ii,ti=ti<A.length-1?ti+1:ti,t.jsx(j.default,{customIcon:null==k?void 0:k.chatCitationIcon,title:U,chatHistory:S(A,ii,ti),isTable:J,chatCitationProps:null==L?void 0:L.chatCitationProps,onCitationClick:null==L?void 0:L.handleCitationClicked,customStyles:null==I?void 0:I.chatCitation})}return"image_citation"!==Q||X?"web_citation"===(null===(R=null==X?void 0:X.customMetadata)||void 0===R?void 0:R.type)?(null===(M=X.customMetadata)||void 0===M?void 0:M.screenshot_url)?t.jsx(c.default,{title:U,citation:X,customStyles:null==I?void 0:I.webCitation,customIcons:k}):t.jsx(r.default,{label:U,url:null===(w=X.customMetadata)||void 0===w?void 0:w.link,customStyles:null==I?void 0:I.webCitation,customIcons:k}):"audio_transcript"===(null===(N=null==X?void 0:X.customMetadata)||void 0===N?void 0:N.type)?"stormee"===(null==X?void 0:X.customMetadata.audio_citation_mode)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(m.default,{title:"".concat(U),citation:X,customStyles:null==I?void 0:I.stormeeCitation,customIcons:k})})):t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(p.default,{title:"".concat(U),citation:X,customStyles:null==I?void 0:I.waveformCitation,customIcons:k})})):"image_citation"===(null==X?void 0:X.customMetadata.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(u.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.imageCitation})})):"book_citation_doc"===(null===(P=null==X?void 0:X.customMetadata)||void 0===P?void 0:P.type)||"book_citation_pdf"===(null==X?void 0:X.customMetadata.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(_.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.fileCitation})})):"app_mod_rag_question"===(null===(O=null==X?void 0:X.customMetadata)||void 0===O?void 0:O.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(f.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.appModCitation,codeLinkConfig:null===(T=null==W?void 0:W.appMod)||void 0===T?void 0:T.codeLinkConfig,isLoading:null===(D=null==W?void 0:W.appMod)||void 0===D?void 0:D.isLoading})})):"rca_citation"===(null===(E=null==X?void 0:X.customMetadata)||void 0===E?void 0:E.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(h.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.rcaCitation})})):"readfile_citation"===(null===(H=null==X?void 0:X.customMetadata)||void 0===H?void 0:H.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(g.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.readFileCitation,fileCallback:null===($=null==W?void 0:W.readFile)||void 0===$?void 0:$.fileCallback,editorConfig:null===(z=null==W?void 0:W.readFile)||void 0===z?void 0:z.editorConfig,customColors:null===(B=null==W?void 0:W.readFile)||void 0===B?void 0:B.customColors})})):t.jsx("span",i.__assign({},G,{className:s.default.paragraph,style:null==q?void 0:q.p},{children:null==G?void 0:G.children})):null},code:function(e){e.inline;var n=e.children,o=e.className;return e.node,i.__rest(e,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?t.jsx("div",{children:t.jsx("code",i.__assign({className:s.default.blockCode},{children:n}))}):t.jsx("code",i.__assign({className:s.default.inlineCode,style:null==q?void 0:q.code},{children:n}))},learned:function(e){var n=e.children;return t.jsx(t.Fragment,{children:t.jsx(l.Tooltip,i.__assign({title:n,placement:"top"},{children:t.jsx(a.Info,{size:16,className:s.default.learnedIcon})}))})}}},[F,x,W,A]);return t.jsx("div",i.__assign({ref:w,className:"w-full"},{children:t.jsx(C.default,i.__assign({components:P,rehypePlugins:[b.default]},{children:o}))}))},exports.formatChatData=S;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),t=require("react/jsx-runtime"),e=require("react"),n=require("react-markdown"),o=require("rehype-raw"),a=require("lucide-react"),l=require("@mui/material"),s=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),r=require("../citations/web-citation/WebCitationWithImageRenderer.js"),c=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),v=require("../citations/file-citation/FileCitationRender.js"),_=require("../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),f=require("../citations/appmod-citation/AppmodCitationRenderer.js"),g=require("../citations/rca-citation/RCACitationRenderer.js"),h=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),j=require("../citations/chat-citation/ChatCitationRenderer.js"),C=require("@e-llm-studio/citation");function x(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var b=x(n),y=x(o),S=["appmode_citation","image_citation","audio_citation","document_citation","rca_citation","web_citation","code_generated","chat_citation","readfile_citation"],q=function(t,e,n){return i.__spreadArray([],t.map(function(t,o){var a=o>=e&&o<=n;return i.__assign(i.__assign({},t),{highlighted_text:a?t.message:""})}),!0)};exports.AiReasonMarkdownWrapper=function(n){var o=n.message,x=n.isExpandableOrderedListEnabled,I=n.customStyles,M=n.citationStyles,R=n.customIcons,k=n.onSelectProceed,w=n.isDisableProceedButton,N=e.useRef(null),F=_.useRequirementAI(),W=F.citations,P=F.citationConfig,A=F.chatHistory,L=F.chatCitationConfigs,T=F.gptCitationConfigs,D=e.useMemo(function(){return{h1:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h1",i.__assign({className:s.default.h1,style:null==I?void 0:I.h1},{children:null==n?void 0:n.children}))},h2:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h2,style:null==I?void 0:I.h2},{children:null==n?void 0:n.children}))},h3:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h3,style:null==I?void 0:I.h3},{children:null==n?void 0:n.children}))},b:function(e){return e.node,i.__rest(e,["node"]),t.jsx("b",{className:s.default.bold,style:null==I?void 0:I.b})},p:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("p",i.__assign({},n,{className:s.default.paragraph,style:null==I?void 0:I.p},{children:null==n?void 0:n.children}))},ol:function(e){e.node;var n=i.__rest(e,["node"]);return x?t.jsx(d.default,i.__assign({customStyles:null==I?void 0:I.expandOlStyle,onProceed:k,isProceedDisabled:w,aiReasoningCitation:W},{children:null==n?void 0:n.children})):t.jsx("ol",i.__assign({className:s.default.orderedList,style:null==I?void 0:I.ol},{children:null==n?void 0:n.children}))},ul:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("ul",i.__assign({className:s.default.unorderedList},{children:null==n?void 0:n.children}))},a:function(n){var o,d,_,x,b,y,k,w,N,F,D,O,z,E,U,G,H,$,B,X,J,K,Q,V,Y,Z;n.inline;var ii=n.children;n.node;var ti=i.__rest(n,["inline","children","node"]),ei="true"===(null==ti?void 0:ti.table),ni="".concat(null==ti?void 0:ti.href),oi=null===(o=ni.split("$"))||void 0===o?void 0:o[0],ai=null===(d=ni.split("$"))||void 0===d?void 0:d[1],li=("appmode_citation"===oi||"appmode_citations"===oi?(null==W?void 0:W.appmod_citations)||[]:"image_citation"===oi||"image_citations"===oi?(null==W?void 0:W.image_citations)||[]:"audio_citation"===oi||"audio_citations"===oi?(null==W?void 0:W.audio_citations)||[]:"document_citation"===oi||"document_citations"===oi?(null==W?void 0:W.file_citations)||[]:"rca_citation"===oi||"rca_citations"===oi?(null==W?void 0:W.rca_citations)||[]:"web_citation"===oi||"web_citations"===oi?(null==W?void 0:W.web_citations)||[]:"code_generated"===oi?(null==W?void 0:W.code_generated)||[]:"readfile_citation"===oi||"readfile_citations"===oi?(null==W?void 0:W.readfile_citations)||[]:("gpt_citation"===oi||"gpt_citations"===oi)&&(null==W?void 0:W.gpt_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(ai)}),si=S.includes(oi);if("chat_citation"===oi){if(!A||0===A.length)return null;var di=ai.split("-").map(Number),ri=di[0],ci=di[1];return ri=ri>0?ri-1:ri,ci=ci<A.length-1?ci+1:ci,t.jsx(j.default,{customIcon:null==R?void 0:R.chatCitationIcon,title:ii,chatHistory:q(A,ri,ci),isTable:ei,chatCitationProps:null==L?void 0:L.chatCitationProps,onCitationClick:null==L?void 0:L.handleCitationClicked,customStyles:null==M?void 0:M.chatCitation})}if("gpt_citation"===oi&&li)return t.jsx(C.NonWebReasoningComponent,i.__assign({item:{text:"",dataSource:null===(x=null===(_=li.customMetadata)||void 0===_?void 0:_.data_sources)||void 0===x?void 0:x[0],trainingDataTitle:null===(y=null===(b=li.customMetadata)||void 0===b?void 0:b.training_data_title)||void 0===y?void 0:y[0],paraphrase:null===(w=null===(k=li.customMetadata)||void 0===k?void 0:k.paraphrase)||void 0===w?void 0:w[0]},headerTitle:(null==T?void 0:T.title)||"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:a.ChevronDown,ChevronUpIcon:a.ChevronUp,MaximizeIcon:a.Maximize2,CloseIcon:a.X}},null==T?void 0:T.gptCitationProps));if("image_citation"===oi&&!li)return null;if("web_citation"===(null===(N=null==li?void 0:li.customMetadata)||void 0===N?void 0:N.type))return(null===(F=li.customMetadata)||void 0===F?void 0:F.screenshot_url)?t.jsx(r.default,{title:ii,citation:li,customStyles:null==M?void 0:M.webCitation,customIcons:R}):t.jsx(c.default,{label:ii,url:null===(D=li.customMetadata)||void 0===D?void 0:D.link,customStyles:null==M?void 0:M.webCitation,customIcons:R});if("audio_transcript"===(null===(O=null==li?void 0:li.customMetadata)||void 0===O?void 0:O.type))return"stormee"===(null==li?void 0:li.customMetadata.audio_citation_mode)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(m.default,{title:"".concat(ii),citation:li,customStyles:null==M?void 0:M.stormeeCitation,customIcons:R})})):t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(p.default,{title:"".concat(ii),citation:li,customStyles:null==M?void 0:M.waveformCitation,customIcons:R})}));if("image_citation"===(null==li?void 0:li.customMetadata.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(u.default,{title:"".concat(ii),citation:li,customIcons:R,customStyles:null==M?void 0:M.imageCitation})}));if("book_citation_doc"===(null===(z=null==li?void 0:li.customMetadata)||void 0===z?void 0:z.type)||"book_citation_pdf"===(null==li?void 0:li.customMetadata.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(v.default,{title:"".concat(ii),citation:li,customIcons:R,customStyles:null==M?void 0:M.fileCitation})}));if("app_mod_rag_question"===(null===(E=null==li?void 0:li.customMetadata)||void 0===E?void 0:E.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(f.default,{title:"".concat(ii),citation:li,customIcons:R,customStyles:null==M?void 0:M.appModCitation,codeLinkConfig:null===(U=null==P?void 0:P.appMod)||void 0===U?void 0:U.codeLinkConfig,isLoading:null===(G=null==P?void 0:P.appMod)||void 0===G?void 0:G.isLoading})}));if("rca_citation"===(null===(H=null==li?void 0:li.customMetadata)||void 0===H?void 0:H.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(g.default,{title:"".concat(ii),citation:li,customIcons:R,customStyles:null==M?void 0:M.rcaCitation})}));if("readfile_citation"===(null===($=null==li?void 0:li.customMetadata)||void 0===$?void 0:$.type))return t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(h.default,{title:"".concat(ii),citation:li,customIcons:R,customStyles:null==M?void 0:M.readFileCitation,fileCallback:null===(B=null==P?void 0:P.readFile)||void 0===B?void 0:B.fileCallback,editorConfig:null===(X=null==P?void 0:P.readFile)||void 0===X?void 0:X.editorConfig,customColors:null===(J=null==P?void 0:P.readFile)||void 0===J?void 0:J.customColors})}));if(si&&!li){var ui=null!==(K=null==R?void 0:R.citationLoadingIcon)&&void 0!==K?K:t.jsx("span",{className:s.default.citationSpinner,style:null===(Q=null==M?void 0:M.loadingCitations)||void 0===Q?void 0:Q.citationSpinner});return t.jsx(l.Tooltip,i.__assign({title:null!==(Y=null===(V=null==M?void 0:M.loadingCitations)||void 0===V?void 0:V.tooltipTitle)&&void 0!==Y?Y:"".concat(oi," loading..."),arrow:!0},{children:t.jsxs("span",i.__assign({className:s.default.citationSpinnerWrapper,style:null===(Z=null==M?void 0:M.loadingCitations)||void 0===Z?void 0:Z.citationSpinnerWrapper},{children:[ii,ui]}))}))}return t.jsx("span",i.__assign({},ti,{className:s.default.paragraph,style:null==I?void 0:I.p},{children:null==ti?void 0:ti.children}))},code:function(e){e.inline;var n=e.children,o=e.className;return e.node,i.__rest(e,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?t.jsx("div",{children:t.jsx("code",i.__assign({className:s.default.blockCode},{children:n}))}):t.jsx("code",i.__assign({className:s.default.inlineCode,style:null==I?void 0:I.code},{children:n}))},learned:function(e){var n=e.children;return t.jsx(t.Fragment,{children:t.jsx(l.Tooltip,i.__assign({title:n,placement:"top"},{children:t.jsx(a.Info,{size:16,className:s.default.learnedIcon})}))})}}},[W,x,P,A]);return t.jsx("div",i.__assign({ref:N,className:"w-full"},{children:t.jsx(b.default,i.__assign({components:D,rehypePlugins:[y.default]},{children:o}))}))},exports.formatChatData=q;
2
2
  //# sourceMappingURL=AiReasonMarkdownWrapper.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=e.createContext(null);exports.USPContext=t,exports.useUSPContext=function(){var r=e.useContext(t);if(!r)throw new Error("UserStoryPicker compound components must be used within <UserStoryPicker>");return r};
2
+ //# sourceMappingURL=UserStoryPicker.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserStoryPicker.context.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),o=require("react"),t=require("./UserStoryPicker.context.js"),s=require("./hooks/useUserStoryPickerState.js"),i=require("./hooks/useFilteredItems.js"),n=require("./hooks/useUSPData.js"),a=require("./UserStoryPicker.theme.js"),c=require("./lib/Tooltip.js");require("./user-story-picker.css.js");var d=require("./lib/cn.js"),l={},u={};exports.UserStoryPickerRoot=function(S){var j,P,v=S.userEmail,h=S.adapter,f=S.defaultView,p=void 0===f?"recent":f,g=S.defaultSort,M=void 0===g?"newest":g,m=S.pageSize,b=void 0===m?4:m,y=S.theme,w=S.classNames,U=void 0===w?l:w,I=S.renderProps,_=void 0===I?u:I,q=S.onProceed,F=S.onStorySelect,k=S.onProjectSelect,T=S.onSearch,x=S.onViewChange,L=S.onSortChange,C=S.onShowMore,N=S.onViewMoreDescription,E=S.onFavoriteToggle,V=S.hidePopUp,D=void 0!==V&&V,B=S.disableTooltip,H=void 0!==B&&B,Q=S.tooltipClassName,R=S.children,z=s.useUserStoryPickerState(p,M,b),O=z[0],A=z[1];o.useEffect(function(){null==x||x(O.viewMode)},[O.viewMode,x]);var G=n.useUSPData(v,h.fetchProjects,h.fetchUserStories,O.sortBy,O.searchQuery,O.sidebarSearchQuery,O.selectedProjectId),J=G.projects,K=G.userStories,W=G.hasMoreProjects,X=G.hasMoreStories,Y=G.loadMoreProjects,Z=G.loadMoreStories,$=G.isLoadingProjects,ee=G.isLoadingStories,re=G.projectStories,oe=G.hasMoreProjectStories,te=G.loadMoreProjectStories,se=G.isLoadingProjectStories,ie=G.sidebarProjects,ne=G.hasMoreSidebarProjects,ae=G.loadMoreSidebarProjects,ce=G.scopedUserStories,de=G.toggleScopedUserStories,le=G.isLoadingSidebarProjects,ue=G.favoriteStories,Se=G.hasMoreFavoriteStories,je=G.loadMoreFavoriteStories,Pe=G.isLoadingFavoriteStories,ve=G.updateFavorite,he=O.selectedProjectId?oe:X,fe=O.selectedProjectId?te:Z,pe=O.selectedProjectId?se:ee,ge=o.useMemo(function(){var e;return null!==(e=J.find(function(e){return e.id===O.selectedProjectId}))&&void 0!==e?e:null},[J,O.selectedProjectId]),Me=o.useMemo(function(){return ge?re.map(function(r){return e.__assign(e.__assign({},r),{projectName:ge.name})}):re},[re,ge]),me=o.useMemo(function(){var e;return null!==(e=(O.selectedProjectId?Me:K).find(function(e){return e.user_story_id===O.selectedStoryId}))&&void 0!==e?e:null},[O.selectedProjectId,Me,K,O.selectedStoryId]),be=i.useFilteredItems(K,J,O,Me,ue),ye=be.filteredStories,we=be.filteredProjects,Ue=be.visibleStories,Ie=be.visibleProjects,_e="favorites"===O.viewMode?(null!==(j=null==ye?void 0:ye.length)&&void 0!==j?j:0)>(null!==(P=null==Ue?void 0:Ue.length)&&void 0!==P?P:0):he,qe=o.useCallback(function(e,r){ve(e,r),null==E||E(e,r)},[ve,E]),Fe=o.useMemo(function(){return{adapter:h,state:O,dispatch:A,userStories:K,projects:J,filteredStories:ye,filteredProjects:we,visibleStories:Ue,visibleProjects:Ie,hasMoreStories:_e,hasMoreProjects:W,selectedStory:me,selectedProject:ge,classNames:U,renderProps:_,loadMoreProjects:Y,loadMoreStories:fe,isLoadingProjects:$,isLoadingStories:pe,scopedUserStories:ce,toggleScopedUserStories:de,sidebarProjects:ie,hasMoreSidebarProjects:ne,loadMoreSidebarProjects:ae,isLoadingSidebarProjects:le,favoriteStories:ue,hasMoreFavoriteStories:Se,loadMoreFavoriteStories:je,isLoadingFavoriteStories:Pe,onProceed:q,onStorySelect:F,onProjectSelect:k,onSearch:T,onViewChange:x,onSortChange:L,onShowMore:C,onViewMoreDescription:N,onFavoriteToggle:qe,hidePopUp:D,disableTooltip:H,tooltipClassName:Q}},[h,O,A,K,J,ye,we,Ue,Ie,he,_e,W,me,ge,U,_,Y,fe,$,pe,ie,ne,ae,le,ue,Se,je,ce,de,Pe,q,F,k,T,x,L,C,N,qe,D,H,Q]),ke=o.useState(!1),Te=ke[0],xe=ke[1],Le=o.useRef(null);o.useEffect(function(){if(h.onHostEvent){var e=h.onHostEvent("cw-project-glow",function(){xe(!0),Le.current&&clearTimeout(Le.current),Le.current=setTimeout(function(){xe(!1)},3e3)});return function(){Le.current&&(clearTimeout(Le.current),Le.current=null),e&&e()}}},[h]);var Ce=["usp-root",U.root].filter(Boolean).join(" "),Ne=y?a.themeToStyle(y):void 0;return r.jsx(c.TooltipProvider,{children:r.jsx(t.USPContext.Provider,e.__assign({value:Fe},{children:r.jsx("div",e.__assign({className:d.cn(Ce,"rounded-lg flex-1 min-h-0 overflow-auto border-2 pt-2",Te?"border-primary animate ease-in-out duration-500 mb-4":"transition-colors duration-500 border-transparent shadow-none"),style:Ne},{children:R}))}))})};
2
+ //# sourceMappingURL=UserStoryPicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserStoryPicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib"),e={blue400:"#60a5fa",blue500:"#3b82f6",blue600:"#2563eb",blue700:"#1d4ed8",cyan400:"#22d3ee",cyan500:"#06b6d4",green400:"#4ade80",green500:"#22c55e",red400:"#f87171",red500:"#ef4444",amber400:"#fbbf24",amber500:"#f59e0b",purple400:"#c084fc",purple500:"#a855f7",purple600:"#9333ea",gray50:"#f9fafb",gray100:"#f3f4f6",gray200:"#e5e7eb",gray300:"#d1d5db",gray400:"#9ca3af",gray500:"#6b7280",gray600:"#4b5563",gray700:"#374151",gray800:"#1f2937",gray900:"#111827",neutral700:"#404040",neutral750:"#333333",neutral800:"#262626",neutral850:"#1f1f1f",neutral900:"#171717",neutral950:"#0a0a0a",white:"#ffffff",offWhite:"#f8f8f8",vscodeBlue:"#007fd4",vscodeDarkBg:"#1e1e1e",vscodeDarkCard:"#252526",vscodeDarkBorder:"#3c3c3c",vscodeDarkInput:"#3c3c3c",vscodeDarkMuted:"#858585"},o={colors:{background:"var(--vscode-editor-background, #1e1e1e)",foreground:"var(--vscode-editor-foreground, #cccccc)",border:"var(--vscode-panel-border, #3c3c3c)",cardBackground:"var(--vscode-editorWidget-background, #252526)",cardHoverBorder:"var(--vscode-focusBorder, #007fd4)",accent:"var(--vscode-focusBorder, #007fd4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #858585)",link:"var(--vscode-textLink-foreground, #3794ff)",inputBackground:"var(--vscode-input-background, #3c3c3c)",inputBorder:"var(--vscode-input-border, #3c3c3c)",inputForeground:"var(--vscode-input-foreground, #cccccc)",primaryBackground:"var(--vscode-button-background, #0e639c)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #1177bb)",badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #094771)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #2a2d2e)"}},d={colors:{background:"var(--vscode-editor-background, #ffffff)",foreground:"var(--vscode-editor-foreground, #1f1f1f)",border:"var(--vscode-panel-border, #e5e5e5)",cardBackground:"var(--vscode-editorWidget-background, #f8f8f8)",cardHoverBorder:"var(--vscode-focusBorder, #0078d4)",accent:"var(--vscode-focusBorder, #0078d4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #717171)",link:"var(--vscode-textLink-foreground, #006ab1)",inputBackground:"var(--vscode-input-background, #ffffff)",inputBorder:"var(--vscode-input-border, #cecece)",inputForeground:"var(--vscode-input-foreground, #1f1f1f)",primaryBackground:"var(--vscode-button-background, #0078d4)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #106ebe)",badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #0060c0)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #f0f0f0)",skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}},a={colors:{background:e.neutral900,foreground:e.gray200,border:e.neutral700,cardBackground:e.neutral850,cardHoverBorder:e.blue500,accent:e.blue500,accentForeground:e.white,muted:e.gray500,link:e.blue400,inputBackground:e.neutral800,inputBorder:e.neutral700,inputForeground:e.gray200,primaryBackground:e.blue600,primaryForeground:e.white,primaryHoverBackground:e.blue700,badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:e.blue700,sidebarActiveForeground:e.white,sidebarHoverBackground:e.neutral800}},u={colors:{background:e.white,foreground:e.gray900,border:e.gray200,cardBackground:e.gray50,cardHoverBorder:e.blue500,accent:e.blue600,accentForeground:e.white,muted:e.gray500,link:e.blue600,inputBackground:e.white,inputBorder:e.gray300,inputForeground:e.gray900,primaryBackground:e.blue600,primaryForeground:e.white,primaryHoverBackground:e.blue700,badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:e.blue600,sidebarActiveForeground:e.white,sidebarHoverBackground:e.gray100,skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}};exports.darkTheme=a,exports.lightTheme=u,exports.themeToStyle=function(e){var o=e.colors,d=e.radius,a=e.radiusLg,u=e.transition,c=e.fontSize,n=e.fontFamily;return r.__assign(r.__assign(r.__assign(r.__assign(r.__assign(r.__assign(r.__assign({"--usp-bg":o.background,"--usp-fg":o.foreground,"--usp-border":o.border,"--usp-card-bg":o.cardBackground,"--usp-card-hover-border":o.cardHoverBorder,"--usp-accent":o.accent,"--usp-primary-fg":o.accentForeground,"--usp-muted":o.muted,"--usp-link-fg":o.link,"--usp-input-bg":o.inputBackground,"--usp-input-border":o.inputBorder,"--usp-input-fg":o.inputForeground,"--usp-primary-bg":o.primaryBackground,"--usp-primary-hover-bg":o.primaryHoverBackground,"--usp-badge-bg":o.badgeBackground,"--usp-badge-fg":o.badgeForeground,"--usp-sidebar-active-bg":o.sidebarActiveBackground,"--usp-sidebar-active-fg":o.sidebarActiveForeground,"--usp-sidebar-hover-bg":o.sidebarHoverBackground},o.skeletonShimmerRgb&&{"--usp-skeleton-shimmer-rgb":o.skeletonShimmerRgb}),o.skeletonShimmerOpacity&&{"--usp-skeleton-shimmer-opacity":o.skeletonShimmerOpacity}),d&&{"--usp-radius":d}),a&&{"--usp-radius-lg":a}),u&&{"--usp-transition":u}),c&&{fontSize:c}),n&&{fontFamily:n})},exports.uspColorPalette=e,exports.uspVSCodeLightTheme=d,exports.vscodeTheme=o;
2
+ //# sourceMappingURL=UserStoryPicker.theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserStoryPicker.theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("react"),r=require("../UserStoryPicker.context.js");function n(){return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[s.jsx("path",{d:"m12 19-7-7 7-7"}),s.jsx("path",{d:"M19 12H5"})]}))}function t(){return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:[s.jsx("circle",{cx:"9",cy:"12",r:"3"}),s.jsx("rect",{width:"20",height:"14",x:"2",y:"5",rx:"7"})]}))}function i(){return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:[s.jsx("circle",{cx:"15",cy:"12",r:"3"}),s.jsx("rect",{width:"20",height:"14",x:"2",y:"5",rx:"7"})]}))}function l(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}exports.BackNav=function(a){var c,d=a.label,u=a.className,g=a.style,j=a.labelStyle;a.children;var p=r.useUSPContext(),h=p.state,x=p.dispatch,_=p.classNames,v=p.renderProps,w=p.selectedProject,k=p.onViewChange,f=p.toggleScopedUserStories,y=p.scopedUserStories,m=p.isLoadingStories,b="project-detail"===h.viewMode,S="project-detail"===h.viewMode&&!h.selectedProjectId,N="favorites"===h.viewMode,C=o.useCallback(function(){return N?(x({type:"SHOW_RECENT_IN_SPLIT"}),x({type:"SET_VIEW",payload:"project-detail"}),void(null==k||k("project-detail"))):S?(x({type:"SELECT_PROJECT",payload:null}),void(null==k||k("projects"))):void("project-detail"===h.viewMode?(x({type:"SELECT_PROJECT",payload:null}),null==k||k("projects")):"projects"===h.viewMode&&(x({type:"SET_VIEW",payload:"recent"}),null==k||k("recent")))},[N,S,h.viewMode,x,k]),B=null!==(c=null!=d?d:N?"View Shortlisted Story":void 0)&&void 0!==c?c:S?"Recent User Stories":"project-detail"===h.viewMode&&w?w.name:"Projects",E=["usp-back-nav",_.backNav,u].filter(Boolean).join(" ");return s.jsxs("div",e.__assign({className:E,style:g},{children:[s.jsxs("div",e.__assign({className:"usp-back-nav__left"},{children:[s.jsx("button",e.__assign({type:"button",className:"usp-back-nav__arrow",onClick:C},{children:v.renderBackIcon?v.renderBackIcon():s.jsx(n,{})})),"project-detail"===h.viewMode&&!S&&s.jsx("span",e.__assign({className:"usp-back-nav__icon"},{children:v.renderFolderIcon?v.renderFolderIcon():s.jsx(l,{})})),s.jsx("span",e.__assign({className:"usp-back-nav__label",style:j},{children:B}))]})),b&&s.jsxs("div",e.__assign({className:["usp-toggle-icon",m&&"disabled",_.toggleIcon].filter(Boolean).join(" "),onClick:function(){m||f()}},{children:[s.jsx("span",e.__assign({className:["toggle-label",_.toggleLabel].filter(Boolean).join(" ")},{children:"shared"===y?"Shared":"Owned"})),"shared"===y?s.jsx("span",e.__assign({className:["toggle on",_.toggleOn].filter(Boolean).join(" ")},{children:s.jsx(i,{})})):s.jsx("span",e.__assign({className:["toggle off",_.toggleOff].filter(Boolean).join(" ")},{children:s.jsx(t,{})}))]}))]}))};
2
+ //# sourceMappingURL=BackNav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackNav.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),n=require("../UserStoryPicker.context.js");exports.Badge=function(s){var t=s.type,a=s.value,u=s.label,l=s.className,c=s.style,o=n.useUSPContext(),d=o.classNames,i=o.renderProps;if(i.renderBadge)return r.jsx(r.Fragment,{children:i.renderBadge(t,a)});var g=["usp-badge","new"===t&&"usp-badge--new","count"===t&&"usp-badge--count","new"===t&&d.badgeNew,"count"===t&&d.badgeCount,d.badge,l].filter(Boolean).join(" "),b=null!=u?u:"new"===t?"New":"".concat(null!=a?a:0," Artifacts");return r.jsx("span",e.__assign({className:g,style:c},{children:b}))};
2
+ //# sourceMappingURL=Badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Badge.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("react"),r=require("../UserStoryPicker.context.js");function o(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:s.jsx("path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"})}))}function n(){return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"m15 9-6 6"}),s.jsx("path",{d:"m9 9 6 6"})]}))}exports.BrowseProjectsButton=function(i){var a=i.label,l=void 0===a?"Browse Projects":a,c=i.activeLabel,u=void 0===c?"Browse All Projects":c,p=i.className,d=i.style,j=r.useUSPContext(),w=j.state,x=j.dispatch,h=j.classNames,_=j.onViewChange,b="projects"===w.viewMode||"project-detail"===w.viewMode,v=t.useCallback(function(){b?(x({type:"SET_VIEW",payload:"recent"}),null==_||_("recent")):(x({type:"SET_VIEW",payload:"projects"}),null==_||_("projects"))},[b,x,_]),g=["usp-browse-btn",b&&"usp-browse-btn--active",h.browseToggle,p].filter(Boolean).join(" ");return s.jsxs("button",e.__assign({type:"button",className:g,style:d,onClick:v},{children:[s.jsx("span",e.__assign({className:"usp-browse-btn__icon"},{children:s.jsx(o,{})})),b?u:l,b&&s.jsx("span",e.__assign({className:"usp-browse-btn__close"},{children:s.jsx(n,{})}))]}))};
2
+ //# sourceMappingURL=BrowseProjectsButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowseProjectsButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("tslib"),e=require("react/jsx-runtime"),r=require("../UserStoryPicker.context.js"),t=require("./UserStoryCard.js"),a=require("./ProjectCard.js");function i(){return e.jsxs("div",s.__assign({className:"usp-skeleton-card"},{children:[e.jsxs("div",s.__assign({className:"usp-skeleton-card__header"},{children:[e.jsx("div",{className:"usp-skeleton usp-skeleton--bookmark"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--id"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--title"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--radio"})]})),e.jsxs("div",s.__assign({className:"usp-skeleton-card__project"},{children:[e.jsx("div",{className:"usp-skeleton usp-skeleton--folder"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--project-name"})]})),e.jsx("div",{className:"usp-skeleton usp-skeleton--desc-line"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--desc-line usp-skeleton--desc-line-short"}),e.jsx("div",{className:"usp-skeleton usp-skeleton--date"})]}))}exports.CardGrid=function(n){var l=n.className,o=n.style,d=n.children,c=r.useUSPContext(),u=c.state,p=c.visibleStories,j=c.visibleProjects,m=c.classNames,_=c.renderProps,x=c.isLoadingStories,k=c.isLoadingProjects,v="projects"===u.viewMode,N=v?k:x,y=v?j:p,g=0===y.length,h=["usp-card-grid",g&&!N&&"usp-card-grid--empty",m.cardGrid,l].filter(Boolean).join(" ");return"function"==typeof d?e.jsx("div",s.__assign({className:h,style:o},{children:d(y,u.viewMode)})):d?e.jsx("div",s.__assign({className:h,style:o},{children:d})):N&&g?e.jsx("div",s.__assign({className:h,style:o},{children:Array.from({length:4}).map(function(s,r){return e.jsx(i,{},r)})})):g?e.jsx("div",s.__assign({className:h,style:o},{children:e.jsx("div",s.__assign({className:"usp-card-grid__empty-state"},{children:_.renderEmptyState?_.renderEmptyState(u.viewMode):"No ".concat(v?"projects":"user stories"," found")}))})):e.jsxs("div",s.__assign({className:h,style:o},{children:[" ",v?j.map(function(s){return e.jsx(a.ProjectCard,{project:s},s.id)}):p.map(function(s){return e.jsx(t.UserStoryCard,{story:s},s.user_story_id)}),N&&Array.from({length:4}).map(function(s,r){return e.jsx(i,{},"skel-".concat(r))})]}))};
2
+ //# sourceMappingURL=CardGrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardGrid.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),n=require("../UserStoryPicker.context.js"),o=require("./UserStoryImportDialog.js");exports.CardProceedButton=function(s){var i=this,a=s.story,c=n.useUSPContext(),u=c.adapter,l=c.onProceed,d=c.hidePopUp,p=c.dispatch,_=c.classNames,h=c.renderProps,f=u.sendNotification,g=u.sendEvent,y=u.onProceedComplete,v=t.useState(!1),C=v[0],b=v[1],x=t.useState(!1),m=x[0],P=x[1],k=t.useCallback(function(e,r){null==f||f(e,r)},[f]),j=t.useCallback(function(r){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return(null==a?void 0:a.artifact_id)?(b(!0),[4,null==y?void 0:y({selectedStory:a,importChoice:r})]):(k("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error"),[2]);case 1:return e.sent(),k("You selected userStory ".concat(null==a?void 0:a.storyId,": ").concat(null==a?void 0:a.title),"info"),null==g||g({}),l(a),[2]}})})},[a,k,y,g,l]),w=t.useCallback(function(r){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return r.stopPropagation(),p({type:"SELECT_STORY",payload:a.user_story_id}),a.multi_user_story&&!d?(P(!0),[2]):[4,j("all")];case 1:return e.sent(),[2]}})})},[a,p,d,j]),S=t.useCallback(function(r){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return P(!1),[4,j(r)];case 1:return e.sent(),[2]}})})},[j]),B=t.useCallback(function(e){P(e)},[]);return r.jsxs(r.Fragment,{children:[h.renderCardProceedButton?h.renderCardProceedButton(a,w,C):r.jsx("button",e.__assign({type:"button",className:["usp-card__proceed-btn",_.cardProceedButton].filter(Boolean).join(" "),onClick:w,disabled:C},{children:C?r.jsxs(r.Fragment,{children:[r.jsxs("svg",e.__assign({className:"usp-card__proceed-btn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"13",height:"13"},{children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),r.jsx("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})),"Loading..."]}):"Proceed"})),r.jsx(o.UserStoryImportDialog,{open:m,onOpenChange:B,onConfirm:S})]})};
2
+ //# sourceMappingURL=CardProceedButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardProceedButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("../UserStoryPicker.context.js");exports.ContentArea=function(s){var n=s.className,a=s.style,i=s.children,o=["usp-content-area",t.useUSPContext().classNames.contentArea,n].filter(Boolean).join(" ");return r.jsx("div",e.__assign({className:o,style:a},{children:i}))};
2
+ //# sourceMappingURL=ContentArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentArea.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js");exports.Footer=function(t){var o=t.className,i=t.style,a=t.children,l=["usp-footer",s.useUSPContext().classNames.footer,o].filter(Boolean).join(" ");return r.jsx("div",e.__assign({className:l,style:i},{children:a}))};
2
+ //# sourceMappingURL=Footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("../UserStoryPicker.context.js");exports.Header=function(r){var l=r.title,i=r.subtitle,a=r.className,n=r.style,o=r.titleStyle,u=r.subtitleStyle,c=r.children,d=t.useUSPContext().classNames,_=["usp-header",d.header,a].filter(Boolean).join(" "),h=["usp-header__title",d.headerTitle].filter(Boolean).join(" "),j=["usp-header__subtitle",d.headerSubtitle].filter(Boolean).join(" ");return s.jsxs("div",e.__assign({className:_,style:n},{children:[s.jsx("h1",e.__assign({className:h,style:o},{children:l})),i&&s.jsx("p",e.__assign({className:j,style:u},{children:i})),c]}))};
2
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js");exports.NavRow=function(t){var a=t.className,i=t.style,n=t.children,o=["usp-nav-row",s.useUSPContext().classNames.navRow,a].filter(Boolean).join(" ");return r.jsx("div",e.__assign({className:o,style:i},{children:n}))};
2
+ //# sourceMappingURL=NavRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavRow.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),o=require("../UserStoryPicker.context.js"),n=require("./UserStoryImportDialog.js");exports.ProceedButton=function(s){var i=this,a=s.label,c=void 0===a?"Proceed":a,l=s.disableWhenNoSelection,u=void 0===l||l,d=s.className,p=s.style,h=o.useUSPContext(),_=h.selectedStory,f=h.classNames,v=h.onProceed,y=h.adapter,b=h.hidePopUp,g=h.dispatch,m=y.sendNotification,x=y.sendEvent,C=y.onProceedComplete,k=u&&!_,j=r.useState(!1),w=j[0],S=j[1],P=r.useState(!1),N=P[0],U=P[1],q=r.useCallback(function(e,t){null==m||m(e,t)},[m]),B=r.useCallback(function(t){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return(null==_?void 0:_.artifact_id)?(S(!0),[4,null==C?void 0:C({selectedStory:_,importChoice:t})]):(q("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error"),[2]);case 1:return e.sent(),q("You selected userStory ".concat(null==_?void 0:_.storyId,": ").concat(null==_?void 0:_.title),"info"),null==x||x({}),k||v(_),[2]}})})},[_,k,q,C,x,v]),I=r.useCallback(function(){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return k?[2]:(g({type:"SELECT_STORY",payload:_.user_story_id}),(null==_?void 0:_.multi_user_story)&&!b?(U(!0),[2]):[4,B("all")]);case 1:return e.sent(),[2]}})})},[_,k,b,B,g]),O=r.useCallback(function(e){U(e)},[]),E=r.useCallback(function(t){return e.__awaiter(i,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return U(!1),[4,B(t)];case 1:return e.sent(),[2]}})})},[B]),L=["usp-proceed",k&&"usp-proceed--disabled",f.proceedButton,d].filter(Boolean).join(" ");return t.jsxs(t.Fragment,{children:[t.jsx("button",e.__assign({type:"button",className:L,style:p,onClick:I,disabled:k||w},{children:w?t.jsxs(t.Fragment,{children:[t.jsxs("svg",e.__assign({className:"usp-card__proceed-btn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"13",height:"13"},{children:[t.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),t.jsx("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})),"Loading..."]}):c})),t.jsx(n.UserStoryImportDialog,{open:N,onOpenChange:O,onConfirm:E})]})};
2
+ //# sourceMappingURL=ProceedButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProceedButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),n=require("../UserStoryPicker.context.js");function a(){return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function t(){return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"})}))}function i(){return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function o(e){try{return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(r){return e}}exports.ProjectCard=function(l){var c,d,u=l.project,p=l.className,_=l.style,j=l.headerStyle,h=l.titleStyle,m=l.descriptionStyle,x=l.metaStyle,g=n.useUSPContext(),f=g.dispatch,v=g.classNames,y=g.renderProps,k=g.onProjectSelect,w=g.onViewMoreDescription,S=s.useState(!1),C=S[0],L=S[1],N=s.useCallback(function(e){e.stopPropagation(),L(function(e){return!e})},[]),b=C?u.description:(null!==(d=null===(c=u.description)||void 0===c?void 0:c.length)&&void 0!==d?d:0)>100?u.description.slice(0,100):u.description,B=u.description.length>100;if(y.renderProjectCard)return r.jsx(r.Fragment,{children:y.renderProjectCard(u)});var P=s.useCallback(function(){f({type:"SELECT_PROJECT",payload:u.id}),null==k||k(u)},[f,u,k]);s.useCallback(function(e){e.stopPropagation(),null==w||w(u)},[w,u]);var A=["usp-card usp-card--project",v.card,p].filter(Boolean).join(" ");return r.jsxs("div",e.__assign({className:A,style:_,onClick:P,role:"button",tabIndex:0},{children:[r.jsxs("div",e.__assign({className:["usp-card__header",v.cardHeader].filter(Boolean).join(" "),style:j},{children:[r.jsx("span",e.__assign({className:"usp-card__icon"},{children:y.renderFolderIcon?y.renderFolderIcon():r.jsx(a,{})})),r.jsx("span",e.__assign({className:["usp-card__title",v.cardTitle].filter(Boolean).join(" "),style:h},{children:u.name})),r.jsxs("span",e.__assign({className:["usp-card__artifact-count",v.cardArtifactCount].filter(Boolean).join(" ")},{children:[r.jsx(i,{}),u.artifactCount," Artifacts"]}))]})),void 0!==u.summary&&r.jsxs("div",e.__assign({className:["usp-card__summary-label",v.cardSummaryLabel].filter(Boolean).join(" ")},{children:[y.renderSparkleIcon?y.renderSparkleIcon():r.jsx(t,{}),"Summary"]})),r.jsx("div",e.__assign({className:["usp-card-userstory-description",!u.description&&"usp-card__description--empty",v.cardDescription].filter(Boolean).join(" "),style:m},{children:u.description?r.jsxs(r.Fragment,{children:[b,B&&r.jsx("button",e.__assign({onClick:N,className:["usp-card-moreButton",v.cardViewMore].filter(Boolean).join(" "),"aria-label":C?"Show less":"Show more"},{children:C?"less":"..."}))]}):r.jsx("span",e.__assign({className:"usp-card__description--placeholder"},{children:"No Description available"}))})),r.jsx("div",e.__assign({className:"usp-card__meta",style:x},{children:r.jsxs("span",e.__assign({className:["usp-card__date",v.cardDate].filter(Boolean).join(" ")},{children:["Last Updated: ",o(u.lastUpdated)]}))}))]}))};
2
+ //# sourceMappingURL=ProjectCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("../lib/cn.js"),t=require("../lib/CustomTooltip.js");function n(n){var r=n.isCollapsed,l=n.onToggle,c=n.className,u=n.style;return s.jsx(t.default,e.__assign({content:r?"Open Sidebar":"Close Sidebar"},{children:s.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),l()},onMouseDown:function(e){return e.stopPropagation()},className:o.cn("fm-resize-toggle",r?"fm-resize-toggle--collapsed":"fm-resize-toggle--open",c),"aria-label":r?"Expand panel":"Collapse panel",style:u},{children:r?s.jsx(i,{className:"h-3.5 w-3.5 text-primary-foreground"}):s.jsx(a,{className:"h-3.5 w-3.5 text-primary-foreground"})}))}))}function r(o){var t=o.className;return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t},{children:[s.jsx("line",{x1:"9",y1:"5",x2:"9",y2:"19"}),s.jsx("line",{x1:"15",y1:"5",x2:"15",y2:"19"})]}))}function a(o){var t=o.className;return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t},{children:s.jsx("path",{d:"M15 18l-6-6 6-6"})}))}function i(o){var t=o.className;return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t},{children:s.jsx("path",{d:"M9 18l6-6-6-6"})}))}exports.ResizeHandle=function(t){var a=t.visualLeftWidth,i=t.isResizing,l=t.isLeftPanelCollapsed,c=t.onResizeStart,u=t.onToggle;return s.jsxs("div",e.__assign({className:o.cn("absolute top-0 bottom-0 z-10 group",!l&&"cursor-col-resize"),style:{left:l?0:"".concat(a,"%"),width:l?0:9,marginLeft:l?0:-4,pointerEvents:"auto"},onMouseDown:l?void 0:c},{children:[s.jsx("div",{className:o.cn("absolute left-1/2 top-0 bottom-0 -translate-x-1/2","transition-all duration-150",l&&"opacity-0 pointer-events-none",i?"w-[2px] bg-focus-border":"w-px bg-editor-widget-border group-hover:w-[2px] group-hover:bg-sash-hover-border")}),!l&&!i&&s.jsx("div",e.__assign({className:o.cn("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","pointer-events-none","opacity-0 group-hover:opacity-60 transition-opacity duration-200")},{children:s.jsx(r,{className:"h-4 w-4 text-description-foreground"})})),s.jsx(n,{isCollapsed:l,onToggle:u,className:"absolute transition-all duration-200",style:{left:l?2:"50%",top:6,transform:l?"translateY(0)":"translate(-100%, 0)",zIndex:20}})]}))};
2
+ //# sourceMappingURL=ResizeHandle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResizeHandle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),a=require("../UserStoryPicker.context.js");function t(){return r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[r.jsx("circle",{cx:"11",cy:"11",r:"8"}),r.jsx("path",{d:"m21 21-4.3-4.3"})]}))}exports.SearchInput=function(n){var c=n.placeholder,o=void 0===c?"Search...":c,i=n.className,l=n.style,u=n.inputStyle,p=n.iconStyle,d=n.scope,h=void 0===d?"main":d,x=a.useUSPContext(),y=x.state,S=x.dispatch,_=x.classNames,j=x.renderProps,v=x.onSearch,m=s.useCallback(function(e){var r=e.target.value;"sidebar"===h?S({type:"SET_SIDEBAR_SEARCH",payload:r}):(S({type:"SET_SEARCH",payload:r}),null==v||v(r))},[S,v,h]),g="sidebar"===h?y.sidebarSearchQuery:y.searchQuery,f=["usp-search__input",_.searchInput,i].filter(Boolean).join(" "),b=["usp-search__icon",_.searchIcon].filter(Boolean).join(" ");return r.jsxs("div",e.__assign({className:"usp-search",style:l},{children:[r.jsx("span",e.__assign({className:b,style:p},{children:j.renderSearchIcon?j.renderSearchIcon():r.jsx(t,{})})),r.jsx("input",{type:"text",className:f,style:u,placeholder:o,value:g,onChange:m})]}))};
2
+ //# sourceMappingURL=SearchInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),n=require("../UserStoryPicker.context.js");function o(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function r(){return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:[s.jsx("circle",{cx:"9",cy:"12",r:"3"}),s.jsx("rect",{width:"20",height:"14",x:"2",y:"5",rx:"7"})]}))}function i(){return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:[s.jsx("circle",{cx:"15",cy:"12",r:"3"}),s.jsx("rect",{width:"20",height:"14",x:"2",y:"5",rx:"7"})]}))}function t(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function l(){return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]}))}exports.SectionHeading=function(a){var c=a.label,g=a.icon,d=a.className,u=a.style,x=a.iconStyle,h=a.labelStyle,j=n.useUSPContext(),w=j.classNames,f=j.state,_=j.toggleScopedUserStories,p=j.scopedUserStories,k=j.isLoadingStories,v="recent"===f.viewMode,m=["usp-section-heading",w.sectionHeading,d].filter(Boolean).join(" "),y=function(e){if("string"==typeof e)switch(e){case"bookmark":return s.jsx(o,{});case"folder":return s.jsx(t,{});case"recent":return s.jsx(l,{});default:return null}return null!=e?e:null}(g);return s.jsxs("div",e.__assign({className:m,style:u},{children:[s.jsxs("div",e.__assign({className:["usp-section-heading__left",w.sectionHeadingLeft].filter(Boolean).join(" ")},{children:[y&&s.jsx("span",e.__assign({className:["usp-section-heading__icon",w.sectionHeadingLeft].filter(Boolean).join(" "),style:x},{children:y})),s.jsx("span",e.__assign({style:h},{children:c}))]})),v&&s.jsxs("div",e.__assign({className:["usp-toggle-icon",k&&"disabled",w.toggleIcon].filter(Boolean).join(" "),onClick:function(){k||_()}},{children:[s.jsx("span",e.__assign({className:["toggle-label",w.toggleLabel].filter(Boolean).join(" ")},{children:"shared"===p?"Shared":"Owned"})),"shared"===p?s.jsx("span",e.__assign({className:["toggle on",w.toggleOn].filter(Boolean).join(" ")},{children:s.jsx(i,{})})):s.jsx("span",e.__assign({className:["toggle off",w.toggleOff].filter(Boolean).join(" ")},{children:s.jsx(r,{})}))]}))]}))};
2
+ //# sourceMappingURL=SectionHeading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionHeading.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),o=require("../UserStoryPicker.context.js");exports.ShowMore=function(s){var i=s.label,l=void 0===i?"Show more":i,n=s.className,a=s.style,c=o.useUSPContext(),u=c.state,d=c.dispatch,h=c.classNames,j=c.hasMoreStories,S=c.hasMoreProjects,M=c.loadMoreStories,b=c.loadMoreProjects,f=c.isLoadingStories,p=c.isLoadingProjects,v=c.visibleStories,P=c.visibleProjects,g=c.filteredStories,m=c.filteredProjects,w=c.onShowMore,x="projects"===u.viewMode,y=x?p:f,_=x?S:j,q=x?P:v,k=(x?m:g).length>q.length,C=k||_,N=t.useCallback(function(){d({type:"SHOW_MORE"}),k||(x?b():M()),null==w||w()},[d,k,x,b,M,w]);if(0===q.length)return null;if(y||!C)return null;var O=["usp-show-more",h.showMore,n].filter(Boolean).join(" ");return r.jsx("button",e.__assign({type:"button",className:O,style:a,onClick:N},{children:l}))};
2
+ //# sourceMappingURL=ShowMore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShowMore.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js");exports.Sidebar=function(t){var n=t.className,r=t.style,a=t.children,o=t.visualLeftWidth,l=t.isLeftPanelClosing,c=t.isResizing,d=t.isLeftPanelCollapsed,u=["usp-sidebar","flex flex-col flex-shrink-0 bg-editor-background min-h-0 overflow-y-auto",!c&&"transition-[width,opacity] duration-150 ease-in-out",(d||l)&&"opacity-0 pointer-events-none",s.useUSPContext().classNames.sidebar,n].filter(Boolean).join(" ");return i.jsx("nav",e.__assign({className:u,style:e.__assign(e.__assign({},r),{width:"".concat(o,"%"),flexShrink:0,willChange:"width",minWidth:d?0:"10px"})},{children:a}))};
2
+ //# sourceMappingURL=Sidebar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sidebar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("react"),r=require("../UserStoryPicker.context.js");function i(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})}))}exports.SidebarFavoritesList=function(o){var a=o.className,n=o.style,l=o.itemStyle,c=r.useUSPContext(),d=c.favoriteStories,u=c.hasMoreFavoriteStories,p=c.loadMoreFavoriteStories,_=c.isLoadingFavoriteStories,j=c.state,m=c.dispatch,v=c.classNames,b=c.onStorySelect,h=d,x=t.useCallback(function(e){m({type:"SELECT_STORY",payload:e.user_story_id}),null==b||b(e)},[m,b]),y=["usp-sidebar-project-list",a].filter(Boolean).join(" ");return _&&0===h.length?s.jsx("div",e.__assign({className:y,style:n},{children:["55%","70%","45%"].map(function(t,r){return s.jsxs("div",e.__assign({className:"usp-sidebar-skeleton-row"},{children:[s.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:t}})]}),r)})})):_||0!==h.length?s.jsxs("div",e.__assign({className:y,style:n},{children:[h.map(function(t){var r=j.selectedStoryId===t.user_story_id,o=["usp-sidebar-project",r&&"usp-sidebar-project--active",r&&v.sidebarProjectActive,v.sidebarProject].filter(Boolean).join(" ");return s.jsxs("button",e.__assign({type:"button",className:o,style:l,onClick:function(){return x(t)}},{children:[s.jsx("span",e.__assign({className:"usp-sidebar-project__icon usp-sidebar-project__icon--heart"},{children:s.jsx(i,{})})),s.jsxs("span",e.__assign({className:"usp-sidebar-project__name"},{children:[t.storyId,": ",t.title]}))]}),"".concat(t.projectId,":").concat(t.storyId))}),_&&s.jsxs("div",e.__assign({className:"usp-sidebar-skeleton-row"},{children:[s.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),s.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:"60%"}})]})),!_&&u&&s.jsx("button",e.__assign({type:"button",className:["usp-show-more",v.showMore].filter(Boolean).join(" "),onClick:p},{children:"Show more"}))]})):s.jsx("div",e.__assign({className:"usp-sidebar-favorites__empty"},{children:"No favorites yet"}))};
2
+ //# sourceMappingURL=SidebarFavoritesList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarFavoritesList.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),t=require("../UserStoryPicker.context.js"),n=["55%","70%","45%","65%","50%"];function i(s){var t=s.width;return r.jsxs("div",e.__assign({className:"usp-sidebar-skeleton-row"},{children:[r.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),r.jsx("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:t}})]}))}function a(){return r.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}exports.SidebarProjectList=function(o){var c=o.className,d=o.style,l=o.itemStyle,u=t.useUSPContext(),j=u.sidebarProjects,p=u.hasMoreSidebarProjects,b=u.loadMoreSidebarProjects,h=u.isLoadingSidebarProjects,_=u.state,m=u.dispatch,x=u.classNames,f=u.renderProps,v=u.onProjectSelect,P=s.useMemo(function(){if(!_.sidebarSearchQuery)return j;var e=_.sidebarSearchQuery.toLowerCase();return j.filter(function(r){return r.name.toLowerCase().includes(e)})},[j,_.sidebarSearchQuery]),k=s.useCallback(function(e){m({type:"SELECT_PROJECT",payload:e.id}),null==v||v(e)},[m,v]),w=["usp-sidebar-project-list",c].filter(Boolean).join(" ");return h&&0===P.length?r.jsx("div",e.__assign({className:w,style:d},{children:n.map(function(e,s){return r.jsx(i,{width:e},s)})})):r.jsxs("div",e.__assign({className:w,style:d},{children:[P.map(function(s){var t=_.selectedProjectId===s.id;if(f.renderSidebarProject)return r.jsx("div",e.__assign({onClick:function(){return k(s)}},{children:f.renderSidebarProject(s,t)}),s.id);var n=["usp-sidebar-project",t&&"usp-sidebar-project--active",t&&x.sidebarProjectActive,x.sidebarProject].filter(Boolean).join(" ");return r.jsxs("button",e.__assign({type:"button",className:n,style:l,onClick:function(){return k(s)}},{children:[r.jsx("span",e.__assign({className:"usp-sidebar-project__icon"},{children:f.renderFolderIcon?f.renderFolderIcon():r.jsx(a,{})})),r.jsx("span",e.__assign({className:"usp-sidebar-project__name"},{children:s.name}))]}),s.id)}),h&&n.map(function(e,s){return r.jsx(i,{width:e},"skel-".concat(s))}),!h&&p&&r.jsx("button",e.__assign({type:"button",className:["usp-show-more",x.showMore].filter(Boolean).join(" "),onClick:b},{children:"Show more"}))]}))};
2
+ //# sourceMappingURL=SidebarProjectList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarProjectList.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("react"),n=require("../UserStoryPicker.context.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(o);function r(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"m6 9 6 6 6-6"})}))}function a(){return s.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]}))}function l(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}exports.SidebarSection=function(t){var c=t.label,d=t.sectionId,p=t.collapsible,u=void 0!==p&&p,_=t.defaultCollapsed,v=void 0!==_&&_,h=t.icon,j=t.className,y=t.style,x=t.headerStyle,f=t.contentStyle,S=t.children,w=t.clearProject,b=t.viewMode,E=t.navItem,C=t.sectionsToCollapse,g=n.useUSPContext(),I=g.state,T=g.dispatch,k=g.classNames,L=g.renderProps,N=g.onViewChange,O=null!=d?d:c;i.default.useEffect(function(){v&&!I.collapsedSections.has("__init_".concat(O))&&(T({type:"TOGGLE_SECTION",payload:O}),T({type:"TOGGLE_SECTION",payload:"__init_".concat(O)}))},[]);var m=o.useCallback(function(){return b?(null==C||C.forEach(function(e){I.collapsedSections.has(e)||T({type:"TOGGLE_SECTION",payload:e})}),void("favorites"===b?(T({type:"SHOW_FAVORITES_IN_SPLIT"}),null==N||N("favorites")):(T({type:"SET_VIEW",payload:b}),null==N||N(b)))):w?(null==C||C.forEach(function(e){I.collapsedSections.has(e)||T({type:"TOGGLE_SECTION",payload:e})}),T({type:"SHOW_RECENT_IN_SPLIT"}),void("project-detail"!==I.viewMode&&(T({type:"SET_VIEW",payload:"project-detail"}),null==N||N("project-detail")))):void(u&&T({type:"TOGGLE_SECTION",payload:O}))},[b,w,C,u,T,O,I.collapsedSections,I.viewMode,N]),G=I.collapsedSections.has(O),P=b&&I.viewMode===b||w&&"project-detail"===I.viewMode&&!I.selectedProjectId,M=["usp-sidebar-section",(w||E||b)&&"usp-sidebar-section--nav",P&&"usp-sidebar-section--active",G&&"usp-sidebar-section--collapsed",G&&k.sidebarSectionCollapsed,k.sidebarSection,j].filter(Boolean).join(" "),W=["usp-sidebar-section__header",k.sidebarSectionHeader].filter(Boolean).join(" "),B=null!=h?h:c.toLowerCase().includes("recent")?s.jsx(a,{}):s.jsx(l,{});return s.jsxs("div",e.__assign({className:M,style:y},{children:[s.jsxs("button",e.__assign({type:"button",className:W,style:x,onClick:m},{children:[s.jsx("span",e.__assign({className:"usp-sidebar-section__icon"},{children:B})),c,u&&s.jsx("span",e.__assign({className:"usp-sidebar-section__chevron"},{children:L.renderChevronIcon?L.renderChevronIcon():s.jsx(r,{})}))]})),!G&&S&&s.jsx("div",e.__assign({className:"usp-sidebar-section__content",style:f},{children:S}))]}))};
2
+ //# sourceMappingURL=SidebarSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),r=require("react"),t=require("../UserStoryPicker.context.js"),l=[{value:"newest",label:"Newest First"},{value:"oldest",label:"Oldest First"},{value:"a-z",label:"A-Z"},{value:"z-a",label:"Z-A"}];exports.SortDropdown=function(a){var n=a.options,o=void 0===n?l:n,i=a.className,u=a.style,c=a.labelStyle,d=a.selectStyle,p=t.useUSPContext(),v=p.state,_=p.dispatch,y=p.classNames,b=p.renderProps,S=p.onSortChange,x=r.useCallback(function(e){_({type:"SET_SORT",payload:e}),null==S||S(e)},[_,S]);if(b.renderSortDropdown)return s.jsx(s.Fragment,{children:b.renderSortDropdown(v.sortBy,x,o)});var j=["usp-sort",y.sortDropdown,i].filter(Boolean).join(" ");return s.jsxs("div",e.__assign({className:j,style:u},{children:[s.jsx("span",e.__assign({className:"usp-sort__label",style:c},{children:"Sort by:"})),s.jsx("select",e.__assign({className:"usp-sort__select",style:d,value:v.sortBy,onChange:function(e){return x(e.target.value)}},{children:o.map(function(r){return s.jsx("option",e.__assign({value:r.value},{children:r.label}),r.value)})}))]}))};
2
+ //# sourceMappingURL=SortDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SortDropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),s=require("../UserStoryPicker.context.js");exports.SplitLayout=function(u){var n=u.className,o=u.style,c=u.children,i=s.useUSPContext().classNames,a=r.useState(!1),l=a[0];a[1];var d=r.useState(260),m=d[0],v=d[1],y=r.useRef(!1),p=r.useRef(0),f=r.useRef(260);r.useCallback(function(e){y.current=!0,p.current=e.clientX,f.current=m,document.body.style.cursor="col-resize",document.body.style.userSelect="none";var t=function(e){if(y.current){var t=e.clientX-p.current,r=Math.min(480,Math.max(160,f.current+t));v(r)}},r=function(){y.current=!1,document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)},[m]);var b=["usp-split-layout",l&&"usp-split-layout--sidebar-collapsed",i.splitLayout,n].filter(Boolean).join(" ");return t.jsx("div",e.__assign({className:b,style:e.__assign(e.__assign({},o),{"--usp-sidebar-width":"".concat(m,"px")})},{children:c}))};
2
+ //# sourceMappingURL=SplitLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitLayout.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("../UserStoryPicker.context.js");exports.Toolbar=function(t){var o=t.className,a=t.style,i=t.children,l=["usp-toolbar",s.useUSPContext().classNames.toolbar,o].filter(Boolean).join(" ");return r.jsx("div",e.__assign({className:l,style:a},{children:i}))};
2
+ //# sourceMappingURL=Toolbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toolbar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),r=require("react"),t=require("../UserStoryPicker.context.js"),n=require("./Badge.js"),a=require("./CardProceedButton.js"),o=require("../lib/CustomTooltip.js");function i(r){var t=r.filled;return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:t?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})}))}function l(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function c(){return s.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s.jsx("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function d(e){try{var s=e.split(" "),r=s[0],t=s[1],n=void 0===t?"00:00:00":t,a=r.split("/"),o=a[0],i=a[1],l=a[2];if(!o||!i||!l)return e;var c=Number(l)+2e3,d="".concat(c,"-").concat(i,"-").concat(o,"T").concat(n),u=new Date(d);return isNaN(u.getTime())?e:u.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(s){return e}}exports.UserStoryCard=function(u){var p,_,j,h=this,m=u.story,v=u.className,x=u.style,f=u.headerStyle,g=u.titleStyle,y=u.descriptionStyle,w=u.metaStyle,S=t.useUSPContext(),N=S.state,k=S.dispatch,C=S.classNames,b=S.renderProps,B=S.onStorySelect,L=S.onFavoriteToggle,T=S.adapter,F=S.disableTooltip,I=S.tooltipClassName,P=N.selectedStoryId===m.user_story_id,q=r.useState(!1),M=q[0],U=q[1],A=r.useState(null!==(p=m.isFavorite)&&void 0!==p&&p),D=A[0],E=A[1],R=r.useState(!1),V=R[0],W=R[1],H=r.useState(!1),O=H[0],Z=H[1],z=r.useCallback(function(e){e.stopPropagation(),Z(function(e){return!e})},[]),Y=O?m.description:(null!==(j=null===(_=m.description)||void 0===_?void 0:_.length)&&void 0!==j?j:0)>100?m.description.slice(0,100):m.description,G=m.description.length>100;if(r.useEffect(function(){var e;E(null!==(e=m.isFavorite)&&void 0!==e&&e)},[m.isFavorite]),r.useEffect(function(){if(V){var e=window.setTimeout(function(){W(!1)},600);return function(){return window.clearTimeout(e)}}},[V]),b.renderStoryCard)return s.jsx(s.Fragment,{children:b.renderStoryCard(m,{isSelected:P})});var J=r.useCallback(function(){k({type:"SELECT_STORY",payload:P?null:m.user_story_id}),P||null==B||B(m)},[k,P,m,B]),K=r.useCallback(function(s){return e.__awaiter(h,void 0,void 0,function(){var r,t;return e.__generator(this,function(e){switch(e.label){case 0:return s.stopPropagation(),E(r=!D),r&&W(!0),null==L||L(m,r),t={user_story_title_id:m.storyId,is_favorite:r},[4,T.markFavorite(t)];case 1:return e.sent()||(E(!r),r&&W(!1),null==L||L(m,!r)),[2]}})})},[D,m,L,T]),Q=["usp-card usp-card--story",M&&"usp-card--hovered",V&&"usp-card--favorite-bounce",C.card,v].filter(Boolean).join(" ");return s.jsxs("div",e.__assign({className:Q,style:x,onClick:J,onMouseEnter:function(){return U(!0)},onMouseLeave:function(){return U(!1)},role:"option","aria-selected":P},{children:[s.jsxs("div",e.__assign({className:["usp-card__header",C.cardHeader].filter(Boolean).join(" "),style:f},{children:[s.jsx("span",e.__assign({className:"usp-card__icon"},{children:b.renderBookmarkIcon?b.renderBookmarkIcon():s.jsx(l,{})})),""!==m.storyId&&s.jsxs("span",e.__assign({className:["usp-card__id",C.cardId].filter(Boolean).join(" ")},{children:[m.storyId,":"]})),s.jsx(o.default,e.__assign({content:m.title,placement:"top",disabled:F,contentClassName:I},{children:s.jsx("span",e.__assign({className:["usp-card__title",C.cardTitle].filter(Boolean).join(" "),style:g},{children:m.title}))})),m.isNew&&s.jsx(n.Badge,{type:"new"}),s.jsx("div",e.__assign({className:"usp-card__actions"},{children:s.jsx(o.default,e.__assign({content:D?"Remove from Shortlist":"Add to Shortlist",placement:"top",disabled:F,contentClassName:I},{children:s.jsxs("button",e.__assign({type:"button",className:["usp-card__heart",D&&"usp-card__heart--active",V&&"usp-card__heart--burst"].filter(Boolean).join(" "),onClick:K,"aria-label":D?"Remove from Shortlist":"Add to Shortlist","aria-pressed":D},{children:[s.jsx(i,{filled:D}),s.jsxs("span",e.__assign({className:"usp-card__heart-burst","aria-hidden":"true"},{children:[s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{})]}))]}))}))}))]})),s.jsxs("div",e.__assign({className:["usp-card__project-name",C.cardProjectName].filter(Boolean).join(" ")},{children:[b.renderFolderIcon?b.renderFolderIcon():s.jsx(c,{}),m.projectName]})),s.jsx("div",e.__assign({className:["usp-card-userstory-description",!m.description&&"usp-card__description--empty",C.cardDescription].filter(Boolean).join(" "),style:y},{children:m.description?s.jsxs(s.Fragment,{children:[Y,G&&s.jsx("button",e.__assign({onClick:z,className:["usp-card-moreButton",C.cardViewMore].filter(Boolean).join(" "),"aria-label":O?"Show less":"Show more"},{children:O?"less":"..."}))]}):s.jsx("span",e.__assign({className:"usp-card__description--placeholder"},{children:"No Description available"}))})),s.jsx("div",e.__assign({className:"usp-card__meta",style:w},{children:s.jsxs("span",e.__assign({className:["usp-card__date",C.cardDate].filter(Boolean).join(" ")},{children:["Last Updated: ",d(m.lastUpdated)]}))})),s.jsx(a.CardProceedButton,{story:m})]}))};
2
+ //# sourceMappingURL=UserStoryCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserStoryCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),o=require("../lib/dialog.js"),n=require("lucide-react"),s=require("../lib/cn.js"),i=[{value:"all",title:"Import entire artifact with all user stories",description:"Keeps the artifact as is and includes all user stories for full context.",recommended:!0},{value:"selected",title:"Import selected user story as a copy",description:"Creates a copy as a new artifact with just the selected user story."}];exports.UserStoryImportDialog=function(a){var d=a.open,l=a.onOpenChange,c=a.onConfirm,u=a.defaultChoice,b=void 0===u?"all":u,g=r.useState(b),x=g[0],m=g[1];r.useEffect(function(){d&&m(b)},[d,b]);var f=r.useMemo(function(){return i},[]);return t.jsx(o.Dialog,e.__assign({open:d,onOpenChange:l},{children:t.jsxs(o.DialogContent,e.__assign({className:"sm:max-w-xl bg-editor-widget-background border border-editor-widget-border text-editor-foreground",overlayClassName:"bg-black/35 backdrop-blur-sm"},{children:[t.jsxs(o.DialogHeader,e.__assign({className:"space-y-2 text-center"},{children:[t.jsx(o.DialogTitle,e.__assign({className:"text-lg font-semibold text-editor-foreground"},{children:"This user story belongs to an artifact with multiple user stories"})),t.jsx(o.DialogDescription,e.__assign({className:"text-sm text-description-foreground"},{children:"Choose how you would like to proceed"}))]})),t.jsx("div",e.__assign({role:"radiogroup",className:"space-y-3"},{children:f.map(function(r){var o=x===r.value;return t.jsx("button",e.__assign({type:"button",role:"radio","aria-checked":o,onClick:function(){return m(r.value)},className:s.cn("w-full rounded-lg border px-4 py-3 text-left transition-colors focus:outline-none focus:ring-2 focus:ring-button-background/40",o?"border-button-background bg-button-background/10":"border-editor-widget-border bg-editor-background/40 hover:border-button-background/60")},{children:t.jsxs("div",e.__assign({className:"flex items-start gap-4"},{children:[t.jsxs("div",e.__assign({className:"flex-1 space-y-1"},{children:[r.recommended?t.jsx("span",e.__assign({className:"inline-flex items-center rounded-full border border-button-background/40 bg-button-background/10 px-2 py-0.5 text-[10px] font-semibold text-button-background"},{children:"Recommended"})):null,t.jsx("div",e.__assign({className:"text-sm font-semibold text-editor-foreground"},{children:r.title})),t.jsx("div",e.__assign({className:"text-xs text-description-foreground"},{children:r.description}))]})),t.jsx("div",e.__assign({className:s.cn("mt-0.5 flex h-5 w-5 items-center justify-center rounded-full border",o?"border-button-background bg-button-background text-button-foreground":"border-editor-widget-border text-transparent")},{children:t.jsx(n.Check,{className:"h-3.5 w-3.5"})}))]}))}),r.value)})})),t.jsxs(o.DialogFooter,e.__assign({className:"flex-row justify-end gap-3 sm:justify-end"},{children:[t.jsx("button",e.__assign({type:"button",onClick:function(){return l(!1)},className:"min-w-[120px] rounded-lg border border-editor-widget-border bg-transparent px-4 py-2 text-sm font-medium text-editor-foreground transition-colors hover:border-button-background/70"},{children:"Cancel"})),t.jsx("button",e.__assign({type:"button",onClick:function(){return c(x)},className:"min-w-[120px] rounded-lg bg-button-background px-4 py-2 text-sm font-semibold text-button-foreground transition-colors hover:bg-button-hover-background"},{children:"Continue"}))]}))]}))}))};
2
+ //# sourceMappingURL=UserStoryImportDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserStoryImportDialog.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.usePanelResize=function(){var t=e.useState(!1),n=t[0],u=t[1],r=e.useState(25),o=r[0],i=r[1],s=e.useState(!1),c=s[0],a=s[1],d=e.useState(!1),f=d[0],l=d[1],m=e.useRef(!1),v=e.useRef(25),L=c||f?0:o;e.useEffect(function(){var e=function(e){if(m.current){var t=document.querySelector(".panels-container");if(t){var n=t.getBoundingClientRect(),u=(e.clientX-n.left)/n.width*100;(u=Math.min(50,u))>15&&(u=Math.max(15,u)),u<15&&(u=0),Math.abs(u-50)<2&&(u=50),i(u),u>=15&&(v.current=u)}}},t=function(){m.current&&(m.current=!1,u(!1),0===o||o<15?(l(!0),setTimeout(function(){a(!0),l(!1),i(15)},300)):a(!1))};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[o]);return{leftPanelWidth:o,isLeftPanelCollapsed:c,isLeftPanelClosing:f,isResizing:n,visualLeftWidth:L,setIsLeftPanelCollapsed:a,setIsLeftPanelClosing:l,handleResizeStart:function(e){e.preventDefault(),document.body.style.userSelect="none";var t=function(e){if(c){var t=v.current||25;a(!1),l(!1),i(t)}m.current=!0,u(!0)},n=function(){document.body.style.userSelect="",window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)},toggleSidebar:function(){if(c){var e=v.current||25;a(!1),l(!1),i(e)}else v.current=o,l(!0),setTimeout(function(){a(!0),l(!1)},300)},closeSidebar:function(){c||(m.current=!1,u(!1),v.current=o||v.current,l(!0),setTimeout(function(){a(!0),l(!1)},300))}}};
2
+ //# sourceMappingURL=usePanelResize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePanelResize.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.demoProjects=[{id:"proj-stormee-ecg",name:"Stormee ECG",description:"Stormee ECG project for enterprise code generation.",artifactCount:12,lastUpdated:"2026-03-09T00:00:00.000Z"},{id:"proj-ecg",name:"ECG",description:"Core ECG project.",artifactCount:5,lastUpdated:"2026-03-09T00:00:00.000Z"},{id:"proj-ecg-federation",name:"ECG Federation",description:"Federated ECG project across multiple domains.",artifactCount:8,lastUpdated:"2026-03-09T00:00:00.000Z"},{id:"proj-us-appmod",name:"User Story - Appmod",description:"User story management for Appmod.",artifactCount:3,lastUpdated:"2026-03-09T00:00:00.000Z"}],exports.demoUserStories=[{storyId:"ECG-101",title:"Federated Authentication Module",description:"Implement federated authentication to support enterprise SSO across multiple identity providers.",projectName:"ECG Federation",projectId:"proj-ecg-federation",lastUpdated:"2026-03-07T00:00:00.000Z",gs_util_url:"",artifact_id:"",user_story_id:"ECG-101"},{storyId:"ILF-002",title:"A2A Agent Discovery and Registry System",description:"Build a discovery and registry system for A2A agents to enable seamless agent-to-agent communication.",projectName:"Stormee ECG",projectId:"proj-stormee-ecg",lastUpdated:"2026-03-09T00:00:00.000Z",gs_util_url:"",artifact_id:"",user_story_id:"ILF-002",isNew:!0},{storyId:"A-087",title:"ADRS: Code Sync for Project Analysis",description:"Automated dependency resolution system that syncs code changes across project modules for real-time analysis.",projectName:"Stormee ECG",projectId:"proj-stormee-ecg",lastUpdated:"2026-03-09T00:00:00.000Z",gs_util_url:"",artifact_id:"",user_story_id:"A-087"},{storyId:"ECG-205",title:"Real-time Code Review Pipeline",description:"Build a real-time pipeline for automated code review using static analysis and AI suggestions.",projectName:"ECG",projectId:"proj-ecg",lastUpdated:"2026-03-05T00:00:00.000Z",gs_util_url:"",artifact_id:"",user_story_id:"ECG-205"},{storyId:"AM-033",title:"User Story Import & Mapping Engine",description:"Design an engine to import user stories from external tools and map them to internal project structures.",projectName:"User Story - Appmod",projectId:"proj-us-appmod",lastUpdated:"2026-03-04T00:00:00.000Z",gs_util_url:"",artifact_id:"",user_story_id:"AM-033",isNew:!0},{storyId:"ECG-210",title:"Multi-tenant Workspace Isolation",description:"Implement workspace-level isolation for multi-tenant deployments to ensure data and process separation.",projectName:"ECG",projectId:"proj-ecg",lastUpdated:"2026-03-03T00:00:00.000Z",gs_util_url:"",artifact_id:"",user_story_id:"ECG-210"}];
2
+ //# sourceMappingURL=demo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demo.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useFilteredItems=function(r,i,t,s,o){void 0===s&&(s=[]),void 0===o&&(o=[]);var n=Array.isArray(r)?r:[],u=Array.isArray(i)?i:[],l=Array.isArray(s)?s:[],c=Array.isArray(o)?o:[],v=e.useMemo(function(){return"favorites"===t.viewMode?c.filter(function(e){return e.isFavorite}):t.selectedProjectId?l:n},[n,l,c,t.selectedProjectId,t.viewMode]),a=e.useMemo(function(){return u},[u]),d=e.useMemo(function(){return v.slice(0,t.visibleCount)},[v,t.visibleCount]),f=e.useMemo(function(){return a.slice(0,t.visibleCount)},[a,t.visibleCount]),b=v.length>t.visibleCount,y=a.length>t.visibleCount;return{filteredStories:v,filteredProjects:a,visibleStories:d,visibleProjects:f,hasMoreStories:b,hasMoreProjects:y}};
2
+ //# sourceMappingURL=useFilteredItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFilteredItems.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react");function r(e){return Array.isArray(e)?e:e&&Array.isArray(e.data)?e.data:e&&Array.isArray(e.items)?e.items:[]}function n(e){return r(e).map(function(e){var t,r,n=(null===(t=e.files)||void 0===t?void 0:t.length)>0?e.files.reduce(function(e,t){return new Date(t.timestamp)>new Date(e)?t.timestamp:e},e.files[0].timestamp):e.timestamp;return{id:e._id,name:e.name,description:""!==e.description&&null!==e.description&&void 0!==e.description&&!1!==e.description?e.description:"No Description Available",artifactCount:null!==(r=e.artifactCount)&&void 0!==r?r:0,lastUpdated:n}})}function i(e,t){var n=r(e);return 0===n.length?[]:n.map(function(e){var t,r,n,i,a,o,u,s;return{storyId:e.ticket_id,title:e.title,description:null!==(t=e.description)&&void 0!==t?t:"",projectName:null!==(r=e.project_name)&&void 0!==r?r:"PROJECT",projectId:null!==(n=e.project_id)&&void 0!==n?n:"",lastUpdated:null!==(i=e.updated_at)&&void 0!==i?i:"",gs_util_url:null!==(a=e.gs_util_url)&&void 0!==a?a:"",artifact_id:null!==(o=e.artifact_id)&&void 0!==o?o:"",user_story_id:null!==(u=e.user_story_id)&&void 0!==u?u:"",isFavorite:Boolean(e.is_favorite),isNew:null!==(s=e.is_new)&&void 0!==s&&s,multi_user_story:Boolean(e.multi_user_story)}})}function a(e){return[e.user_story_id,e.storyId].filter(Boolean)}function o(e,t){for(var r=0,n=a(e);r<n.length;r++){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i))return t[i]}}function u(t,r){return t.length&&r&&0!==Object.keys(r).length?t.map(function(t){return void 0!==o(t,r)?e.__assign(e.__assign({},t),{isFavorite:o(t,r)}):t}):t}exports.useUSPData=function(r,s,c,f,l,d,_){void 0===f&&(f="newest"),void 0===l&&(l=""),void 0===d&&(d=""),void 0===_&&(_=null);var v=t.useRef(s);v.current=s;var p=t.useRef(c);p.current=c;var m=t.useState(1),g=m[0],y=m[1],S=t.useState(1),h=S[0],A=S[1],j=t.useState(1),b=j[0],P=j[1],E=t.useState(1),C=E[0],F=E[1],M=t.useState(1),w=M[0],k=M[1],O=t.useState(l),I=O[0],x=O[1],T=t.useState(d),U=T[0],B=T[1],L=t.useState("owned"),N=L[0],R=L[1],q=t.useState([]),D=q[0],z=q[1],J=t.useState([]),G=J[0],H=J[1],K=t.useState(!1),Q=K[0],V=K[1],W=t.useState(!1),X=W[0],Y=W[1],Z=t.useState([]),$=Z[0],ee=Z[1],te=t.useState(!1),re=te[0],ne=te[1],ie=t.useState([]),ae=ie[0],oe=ie[1],ue=t.useState(!1),se=ue[0],ce=ue[1],fe=t.useState([]),le=fe[0],de=fe[1],_e=t.useState(!1),ve=_e[0],pe=_e[1],me=t.useState({}),ge=me[0],ye=me[1],Se=t.useState(!1),he=Se[0],Ae=Se[1],je=t.useState(!1),be=je[0],Pe=je[1],Ee=t.useState(!1),Ce=Ee[0],Fe=Ee[1],Me=t.useState(!1),we=Me[0],ke=Me[1],Oe=t.useState(!1),Ie=Oe[0],xe=Oe[1],Te=t.useState(0),Ue=Te[0],Be=Te[1],Le=Boolean(r),Ne=function(e){switch(e){case"newest":default:return"date-desc";case"oldest":return"date-asc";case"a-z":return"name-asc";case"z-a":return"name-desc"}}(f);t.useEffect(function(){var e=setTimeout(function(){return x(l)},700);return function(){return clearTimeout(e)}},[l]),t.useEffect(function(){var e=setTimeout(function(){return B(d)},700);return function(){return clearTimeout(e)}},[d]),t.useEffect(function(){y(1),A(1),z([]),H([]),V(!1),Y(!1)},[r,f,I]),t.useEffect(function(){P(1),ee([]),ne(!1)},[r,U]),t.useEffect(function(){F(1),oe([]),ce(!1)},[_,r,f,I]),t.useEffect(function(){k(1),de([]),pe(!1)},[r]),t.useEffect(function(){if(Le){var t=!1;Ae(!0);var i=e.__assign({user_email:r,page:g,limit:6,sortOrder:Ne,modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0},I?{nameContains:I}:{});return v.current(i).then(function(r){var i;if(!t){var a=n(r);z(function(t){return 1===g?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(i=null==r?void 0:r.pagination)||void 0===i?void 0:i.has_next;V("boolean"==typeof o?o:a.length>=6)}}).catch(function(){}).finally(function(){t||Ae(!1)}),function(){t=!0}}},[Le,r,g,Ne,I]),t.useEffect(function(){if(Le){var t=!1;Fe(!0);var i=e.__assign({user_email:r,page:b,limit:10,sortOrder:"date-desc",modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0},U?{nameContains:U}:{});return v.current(i).then(function(r){var i;if(!t){var a=n(r);ee(function(t){return 1===b?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(i=null==r?void 0:r.pagination)||void 0===i?void 0:i.has_next;ne("boolean"==typeof o?o:a.length>=10)}}).catch(function(){}).finally(function(){t||Fe(!1)}),function(){t=!0}}},[Le,r,b,U]),t.useEffect(function(){if(Le){var t=!1;Pe(!0);var n=e.__assign({email:r,page:h,limit:6,scope:N,paginate:!0,project_id_search:"",sortOrder:Ne},I?{search:I}:{});return p.current(n).then(function(r){var n;if(!t){var a=u(i(null==r?void 0:r.artifacts),ge);H(function(t){return 1===h?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(n=null==r?void 0:r.pagination)||void 0===n?void 0:n.has_next;Y("boolean"==typeof o?o:a.length>=6)}}).catch(function(){}).finally(function(){t||Pe(!1)}),function(){t=!0}}},[Le,r,h,Ne,I,N]),t.useEffect(function(){if(Le&&_){var t=!1;ke(!0);var n=e.__assign({email:r,page:C,limit:6,paginate:!0,project_id_search:_,scope:N,sortOrder:Ne},I?{search:I}:{});return p.current(n).then(function(r){var n;if(!t){var a=u(i(null==r?void 0:r.artifacts),ge);oe(function(t){return 1===C?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(n=null==r?void 0:r.pagination)||void 0===n?void 0:n.has_next;ce("boolean"==typeof o?o:a.length>=6)}}).catch(function(){}).finally(function(){t||ke(!1)}),function(){t=!0}}},[Le,r,_,C,Ne,I,N]),t.useEffect(function(){if(Le){var t=!1;xe(!0);var n={email:r,page:w,limit:10,paginate:!0,project_id_search:"",favorite_only:!0};return p.current(n).then(function(r){var n;if(!t){var a=u(i(null==r?void 0:r.artifacts),ge);de(function(t){return 1===w?a:e.__spreadArray(e.__spreadArray([],t,!0),a,!0)});var o=null===(n=null==r?void 0:r.pagination)||void 0===n?void 0:n.has_next;pe("boolean"==typeof o?o:a.length>=10)}}).catch(function(){}).finally(function(){t||xe(!1)}),function(){t=!0}}},[Le,r,w,Ue]),t.useEffect(function(){ge&&0!==Object.keys(ge).length&&de(function(e){return u(e,ge)})},[ge]);var Re=t.useCallback(function(){return y(function(e){return e+1})},[]),qe=t.useCallback(function(){return A(function(e){return e+1})},[]),De=t.useCallback(function(){return F(function(e){return e+1})},[]),ze=t.useCallback(function(){return P(function(e){return e+1})},[]),Je=t.useCallback(function(){return k(function(e){return e+1})},[]),Ge=t.useCallback(function(){return R(function(e){return"owned"===e?"shared":"owned"})},[]),He=t.useCallback(function(t,r){var n=a(t);ye(function(t){var i=e.__assign({},t);return n.forEach(function(e){i[e]=r}),i}),H(function(i){return i.some(function(e){return a(e).some(function(e){return n.includes(e)})})?i.map(function(t){return a(t).some(function(e){return n.includes(e)})?e.__assign(e.__assign({},t),{isFavorite:r}):t}):r?e.__spreadArray(e.__spreadArray([],i,!0),[e.__assign(e.__assign({},t),{isFavorite:r})],!1):i}),oe(function(t){return t.map(function(t){return a(t).some(function(e){return n.includes(e)})?e.__assign(e.__assign({},t),{isFavorite:r}):t})}),de(function(i){var o=i.some(function(e){return a(e).some(function(e){return n.includes(e)})});return r?o?i.map(function(t){return a(t).some(function(e){return n.includes(e)})?e.__assign(e.__assign({},t),{isFavorite:r}):t}):e.__spreadArray(e.__spreadArray([],i,!0),[e.__assign(e.__assign({},t),{isFavorite:r})],!1):i.filter(function(e){return!a(e).some(function(e){return n.includes(e)})})}),k(1),Be(function(e){return e+1})},[]),Ke=t.useMemo(function(){var t=new Map;return e.__spreadArray(e.__spreadArray(e.__spreadArray([],le,!0),G,!0),ae,!0).forEach(function(r){if(r){var n=o(r,ge);if(void 0!==n?n:Boolean(r.isFavorite)){var i=r.user_story_id||r.storyId;i&&!t.has(i)&&t.set(i,e.__assign(e.__assign({},r),{isFavorite:!0}))}}}),Array.from(t.values())},[le,G,ae,ge]);return{projects:D,userStories:G,hasMoreProjects:Q,hasMoreStories:X,loadMoreProjects:Re,loadMoreStories:qe,isLoadingProjects:he,isLoadingStories:be,projectStories:ae,hasMoreProjectStories:se,loadMoreProjectStories:De,scopedUserStories:N,toggleScopedUserStories:Ge,isLoadingProjectStories:we,sidebarProjects:$,hasMoreSidebarProjects:re,loadMoreSidebarProjects:ze,isLoadingSidebarProjects:Ce,favoriteStories:Ke,hasMoreFavoriteStories:ve,loadMoreFavoriteStories:Je,isLoadingFavoriteStories:Ie,updateFavorite:He}};
2
+ //# sourceMappingURL=useUSPData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUSPData.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react");function r(e,s,r){return void 0===e&&(e="recent"),void 0===s&&(s="newest"),void 0===r&&(r=6),{viewMode:e,searchQuery:"",sidebarSearchQuery:"",selectedStoryId:null,selectedProjectId:null,sortBy:s,visibleCount:r,pageSize:r,collapsedSections:new Set}}function a(s,a){switch(a.type){case"SET_VIEW":return e.__assign(e.__assign({},s),{viewMode:a.payload,searchQuery:"",sidebarSearchQuery:""});case"SET_SEARCH":return e.__assign(e.__assign({},s),{searchQuery:a.payload});case"SET_SIDEBAR_SEARCH":return e.__assign(e.__assign({},s),{sidebarSearchQuery:a.payload});case"SELECT_STORY":return e.__assign(e.__assign({},s),{selectedStoryId:a.payload});case"SELECT_PROJECT":return e.__assign(e.__assign({},s),{selectedProjectId:a.payload,viewMode:a.payload?"project-detail":"projects",searchQuery:"",sidebarSearchQuery:"",visibleCount:s.pageSize});case"SHOW_RECENT_IN_SPLIT":return e.__assign(e.__assign({},s),{selectedProjectId:null,searchQuery:""});case"SHOW_FAVORITES_IN_SPLIT":return e.__assign(e.__assign({},s),{viewMode:"favorites",selectedProjectId:null,searchQuery:"",sidebarSearchQuery:""});case"SET_SORT":return e.__assign(e.__assign({},s),{sortBy:a.payload});case"SHOW_MORE":return e.__assign(e.__assign({},s),{visibleCount:s.visibleCount+s.pageSize});case"TOGGLE_SECTION":var t=new Set(s.collapsedSections);return t.has(a.payload)?t.delete(a.payload):t.add(a.payload),e.__assign(e.__assign({},s),{collapsedSections:t});case"RESET":return r();default:return s}}exports.useUserStoryPickerState=function(e,t,i){return s.useReducer(a,void 0,function(){return r(e,t,i)})};
2
+ //# sourceMappingURL=useUserStoryPickerState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUserStoryPickerState.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./UserStoryPicker.js"),r=require("./components/Header.js"),o=require("./components/Toolbar.js"),t=require("./components/SearchInput.js"),s=require("./components/BrowseProjectsButton.js"),i=require("./components/SectionHeading.js"),n=require("./components/CardGrid.js"),a=require("./components/UserStoryCard.js"),c=require("./components/ProjectCard.js"),p=require("./components/Badge.js"),d=require("./components/BackNav.js"),u=require("./components/SortDropdown.js"),S=require("./components/ShowMore.js"),m=require("./components/ProceedButton.js"),j=require("./components/Footer.js"),P=require("./components/SplitLayout.js"),l=require("./components/Sidebar.js"),q=require("./components/SidebarSection.js"),h=require("./components/SidebarProjectList.js"),U=require("./components/SidebarFavoritesList.js"),y=require("./components/ContentArea.js"),x=require("./components/NavRow.js"),C=require("./components/UserStoryImportDialog.js"),b=require("./components/ResizeHandle.js"),g=require("./UserStoryPicker.context.js"),B=require("./hooks/useUSPData.js"),v=require("./components/usePanelResize.js"),T=require("./demo.js"),w=require("./UserStoryPicker.theme.js"),R=Object.assign(e.UserStoryPickerRoot,{Header:r.Header,Toolbar:o.Toolbar,SearchInput:t.SearchInput,BrowseProjectsButton:s.BrowseProjectsButton,SectionHeading:i.SectionHeading,CardGrid:n.CardGrid,UserStoryCard:a.UserStoryCard,ProjectCard:c.ProjectCard,Badge:p.Badge,BackNav:d.BackNav,SortDropdown:u.SortDropdown,ShowMore:S.ShowMore,ProceedButton:m.ProceedButton,Footer:j.Footer,SplitLayout:P.SplitLayout,Sidebar:l.Sidebar,SidebarSection:q.SidebarSection,SidebarProjectList:h.SidebarProjectList,SidebarFavoritesList:U.SidebarFavoritesList,ContentArea:y.ContentArea,NavRow:x.NavRow,UserStoryImportDialog:C.UserStoryImportDialog,ResizeHandle:b.ResizeHandle});exports.UserStoryImportDialog=C.UserStoryImportDialog,exports.ResizeHandle=b.ResizeHandle,exports.useUSPContext=g.useUSPContext,exports.useUSPData=B.useUSPData,exports.usePanelResize=v.usePanelResize,exports.demoProjects=T.demoProjects,exports.demoUserStories=T.demoUserStories,exports.darkTheme=w.darkTheme,exports.lightTheme=w.lightTheme,exports.themeToStyle=w.themeToStyle,exports.uspColorPalette=w.uspColorPalette,exports.uspVSCodeLightTheme=w.uspVSCodeLightTheme,exports.vscodeTheme=w.vscodeTheme,exports.UserStoryPicker=R;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),r=require("./Tooltip.js"),l=require("./cn.js");exports.default=function(o){var a=o.content,s=o.children,i=o.contentClassName,n=o.placement,u=void 0===n?"top":n,d=o.withArrow,c=void 0!==d&&d,p=o.delayDuration,x=void 0===p?100:p,g=o.disabled;if(void 0!==g&&g)return s;return e.jsxs(r.Tooltip,t.__assign({delayDuration:x},{children:[e.jsx(r.TooltipTrigger,t.__assign({asChild:!0},{children:s})),e.jsxs(r.TooltipContent,t.__assign({side:u,className:l.cn("relative bg-tooltip-background text-tooltip-foreground p-2 px-3 w-auto max-w-[90vw] sm:max-w-lg z-50",i)},{children:[c&&e.jsx("svg",t.__assign({width:8,height:8,viewBox:"0 0 8 8",className:l.cn("absolute fill-menu-background",{top:"bottom-0 left-1/2 -translate-x-1/2 translate-y-full",bottom:"top-0 left-1/2 -translate-x-1/2 -translate-y-full rotate-180",left:"right-0 top-1/2 -translate-y-1/2 translate-x-full -rotate-90",right:"left-0 top-1/2 -translate-y-1/2 -translate-x-full rotate-90"}[u])},{children:e.jsx("polygon",{points:"0,0 8,0 4,8"})})),a]}))]}))};
2
+ //# sourceMappingURL=CustomTooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomTooltip.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("@radix-ui/react-tooltip"),o=require("react"),i=require("./cn.js");function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var s=a(r),n=a(o),d=s.Provider,f=s.Root,l=s.Trigger,u=n.forwardRef(function(r,o){var a=r.className,n=r.sideOffset,d=void 0===n?4:n,f=e.__rest(r,["className","sideOffset"]);return t.jsx(s.Portal,{children:t.jsx(s.Content,e.__assign({ref:o,sideOffset:d,className:i.cn("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)",a)},f))})});u.displayName=s.Content.displayName,exports.Tooltip=f,exports.TooltipContent=u,exports.TooltipProvider=d,exports.TooltipTrigger=l;
2
+ //# sourceMappingURL=Tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.cn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.filter(Boolean).join(" ")};
2
+ //# sourceMappingURL=cn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}