@e-llm-studio/requirement-ai 0.0.71 → 0.0.73

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 (35) hide show
  1. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +2 -0
  3. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js.map +1 -0
  4. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  7. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  8. package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  9. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  10. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  11. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  12. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +2 -0
  13. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js.map +1 -0
  14. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  15. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.module.css.js +1 -1
  16. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  17. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  18. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  19. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  20. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  21. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +0 -1
  22. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  23. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  24. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.d.ts +13 -0
  25. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.d.ts.map +1 -0
  26. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
  27. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  28. package/dist/types/src/features/RequirementAI/shared/AtomicButton.d.ts.map +1 -1
  29. package/dist/types/src/features/RequirementAI/shared/useMarkdownSearch.d.ts +1 -5
  30. package/dist/types/src/features/RequirementAI/shared/useMarkdownSearch.d.ts.map +1 -1
  31. package/dist/types/src/features/UserStoryImport/components/ScopeDropdown.d.ts +3 -3
  32. package/dist/types/src/features/UserStoryImport/components/ScopeDropdown.d.ts.map +1 -1
  33. package/dist/types/src/features/UserStoryImport/components/TypeDropdown.d.ts +2 -2
  34. package/dist/types/src/features/UserStoryImport/components/TypeDropdown.d.ts.map +1 -1
  35. package/package.json +2 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react"),s=require("showdown"),o=require("@mui/material"),i=require("uuid"),a=require("./UserStoryCard.module.css.js"),l=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=y(s);function m(n){for(var s,a=[],l=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(s=l.exec(n));){var c=s[1],f=s.index;f>u&&a.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),a.push(t.jsx(o.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(r.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(i.v4()))),u=l.lastIndex}return u<(null==n?void 0:n.length)&&a.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),a}var h=function(n){var s,o=n.displayName,i=v.useRequirementAI().customStyles,l=null===(s=null==i?void 0:i.userStoryCardStyles)||void 0===s?void 0:s.showDisplayName;return t.jsxs("div",e.__assign({className:a.default.displayName,style:null==l?void 0:l.wrapper},{children:[t.jsx(r.Bookmark,{className:a.default.displayNameIcon,style:null==l?void 0:l.displayNameIcon}),t.jsxs("span",e.__assign({style:null==l?void 0:l.label},{children:[o,":"]}))]}))},S=function(s){var i,y,p=s.isUserStoryCurrentlyUpdated,x=s.artifactId,g=s.artifactTitleId,I=s.parentUserStory,j=s.currentUserStory,C=s.onUserStoryChange,w=s.parentIndex,U=s.currentIndex,N=s.enableDownload,b=s.isDiffEditReviewMode,D=s.showUserStoryDiff,M=s.handleDownloadUserStory,k=s.handleOpenSendDialog,q=s.updateUserStoryArtifact,A=s.selectedArtifactId,B=v.useRequirementAI(),R=B.searchQueryList,T=B.citations,E=B.customStyles,L=null==E?void 0:E.userStoryCardStyles,P=null===(i=null==E?void 0:E.userStoryScreenStyles)||void 0===i?void 0:i.userStoryContentStyles,W=n.useState(e.__assign(e.__assign({},structuredClone(j)),{value:l.formatMarkdown(j.value)||""})),z=W[0],O=W[1],H=n.useState({userStory:!1}),F=H[0],V=H[1],Q=v.useRequirementAI().userStory,G=n.useState(""===w||A===j.artifactId),J=G[0],K=G[1],X=n.useState(!1);X[0];var Y=X[1],Z=n.useState(null),$=Z[0],ee=Z[1],te=n.useState(!1),ne=te[0],re=te[1],se=n.useRef(null),oe=n.useState(!1);oe[0];var ie=oe[1],ae=n.useRef(null);n.useEffect(function(){p&&K(p)},[p]),n.useEffect(function(){O(e.__assign(e.__assign({},structuredClone(j)),{value:l.formatMarkdown(j.value)||""}))},[j]),n.useEffect(function(){R.length>0?K(!0):A&&K(A===j.artifactId)},[R,A,j.artifactId]);var le=function(){ee(null)},ue=function(){K(function(e){return!e})};return t.jsxs("div",e.__assign({className:a.default.card,style:null==L?void 0:L.cardStyle},{children:[t.jsxs("div",e.__assign({className:a.default.titleSection,style:null==L?void 0:L.titleSection},{children:[t.jsxs("div",e.__assign({className:a.default.titleRow,style:null==L?void 0:L.titleRow,onClick:ue},{children:[t.jsxs("div",e.__assign({className:a.default.titleLeft,style:null==L?void 0:L.titleLeft,onMouseEnter:function(){return ie(!0)},onMouseLeave:function(){return ie(!1)}},{children:[t.jsx(h,{displayName:g}),t.jsx("h2",e.__assign({className:a.default.storyTitle,style:null==L?void 0:L.storyTitle},{children:m(j.title)}),j.artifactId)]})),t.jsxs("div",e.__assign({className:a.default.titleActions,style:null==L?void 0:L.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!F.userStory&&t.jsxs(t.Fragment,{children:[t.jsx("button",e.__assign({className:a.default.iconButton,style:null==L?void 0:L.iconButton,onClick:function(e){ee(e.currentTarget)}},{children:t.jsx(r.ExternalLink,{size:16})})),t.jsxs(o.Menu,e.__assign({id:"user-story-share-menu",anchorEl:$,open:!!$,onClose:function(){return ee(null)},style:null==L?void 0:L.userStoryShareMenu},{children:[N&&t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return Y(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),Y(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:se,className:a.default.menuItemContent,style:null==L?void 0:L.menuItemContent},{children:[t.jsx(r.Download,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Download"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=j,I&&(t=e.__assign(e.__assign({},j),{value:"".concat(u.replaceTitleSection(null==I?void 0:I.value,j.title)," \n").concat(j.value)})),null==k||k(!0,[t],j.artifactId),le(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==L?void 0:L.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(r.Share2,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Send"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,s,o;return e.__generator(this,function(e){switch(e.label){case 0:t=new _.default.Converter,n=t.makeHtml(l.formatMarkdown(j.value)||j.value),r=function(e){var t=(new _.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(l.formatMarkdown(j.value)||j.value),s=new ClipboardItem({"text/plain":new Blob([r],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([s])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return o=e.sent(),console.error("Failed to copy user story:",o),[3,5];case 4:return le(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==L?void 0:L.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(r.Copy,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Copy"}))]}))}))]}))]}),F.userStory&&J?t.jsx(d.default,{isDisable:ne,type:"outline",children:"Cancel",style:null==L?void 0:L.cancelButton,onClick:function(){var t;null===(t=ae.current)||void 0===t||t.abort(),V(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),F.userStory&&J?t.jsx(d.default,{type:"fill",children:ne?t.jsxs("span",e.__assign({className:a.default.savingSpinner},{children:[t.jsx(r.LoaderCircle,{className:a.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:ne,style:null==L?void 0:L.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return re(!0),"userStory"==="userStory"&&(C(z),console.log("I am changing RTE editor values",z)),[4,q(T,Q,x,null===(t=ae.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),V(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),re(!1),[2]}})})}}):!b&&!D&&J&&t.jsx("button",e.__assign({className:a.default.iconButton,style:null==L?void 0:L.editButton,onClick:function(){return V(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(r.PencilIcon,{color:null==L?void 0:L.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),ue()},style:null==L?void 0:L.chevronButton,className:a.default.chevronButton},{children:J?t.jsx(r.ChevronUp,{className:a.default.chevronIcon,color:null==L?void 0:L.chevronIconColor}):t.jsx(r.ChevronDown,{className:a.default.chevronIcon,color:null==L?void 0:L.chevronIconColor})}))]}))]})),t.jsx("div",{className:a.default.divider,style:null==L?void 0:L.dividerStyle})]})),J&&t.jsx("div",e.__assign({className:a.default.cardContent,style:null==L?void 0:L.cardContentStyle},{children:t.jsxs("div",e.__assign({className:a.default.contentInner,style:null==L?void 0:L.contentInner},{children:[t.jsxs("div",e.__assign({className:a.default.descriptionSection,style:null==L?void 0:L.descriptionSection},{children:[t.jsx("div",{className:a.default.justifyBetween,style:null==L?void 0:L.justifyBetween}),F.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:l.formatMarkdown(j.value)||"",handleUpdateState:function(t,n){var r=l.indentMarkdown(n);O(function(t){return e.__assign(e.__assign({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:F.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:D,isParent:""===w,message:l.formatMarkdown(j.value)||"",artifactId:j.artifactId,customStyles:P})]})),null===(y=z.sub_features)||void 0===y?void 0:y.map(function(n,r){return t.jsx(S,{artifactId:x,isUserStoryCurrentlyUpdated:p,artifactTitleId:"".concat(g,"-").concat(String.fromCharCode(65+r)),parentUserStory:j,parentIndex:"".concat(w).concat(w&&".").concat(U),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var r=e.__spreadArray([],j.sub_features||[],!0);r[t]=n,C(e.__assign(e.__assign({},j),{sub_features:r}))}(r,t)},enableDownload:!0,isDiffEditReviewMode:b,showUserStoryDiff:D,updateUserStoryArtifact:q,handleDownloadUserStory:M,handleOpenSendDialog:k},n.artifactId)})]}))}))]}))};exports.StoryCard=S,exports.UserStoryCardWrapper=function(n){var r=n.artifactTitleIDs,s=n.isDiffEditReviewMode,o=n.showUserStoryDiff,i=n.updateUserStoryArtifact,l=n.isUserStoryCurrentlyUpdated,u=n.artifactId,d=n.handleOpenSendDialog,c=n.handleDownloadUserStory,f=n.selectedArtifactId,y=v.useRequirementAI(),_=y.userStory,m=y.setUserStory,h=y.customStyles,p=null==h?void 0:h.userStoryCardStyles;return t.jsx("div",e.__assign({className:a.default.userStoryCardWrapper,style:null==p?void 0:p.userStoryCardWrapper},{children:_.map(function(n,a){return t.jsx(S,{isUserStoryCurrentlyUpdated:l,artifactId:u,artifactTitleId:r[a]||"",currentUserStory:n,onUserStoryChange:function(t){m(function(n){return n[a]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(a+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:o,updateUserStoryArtifact:i,handleOpenSendDialog:d,handleDownloadUserStory:c,selectedArtifactId:f},n.artifactId)})}))},exports.default=S,exports.replaceLearnedTagsWithInfo=m;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react"),s=require("showdown"),o=require("@mui/material"),i=require("uuid"),a=require("./UserStoryCard.module.css.js"),l=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=y(s);function m(n){for(var s,a=[],l=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(s=l.exec(n));){var c=s[1],f=s.index;f>u&&a.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),a.push(t.jsx(o.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(r.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(i.v4()))),u=l.lastIndex}return u<(null==n?void 0:n.length)&&a.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),a}var h=function(n){var s,o=n.displayName,i=v.useRequirementAI().customStyles,l=null===(s=null==i?void 0:i.userStoryCardStyles)||void 0===s?void 0:s.showDisplayName;return t.jsxs("div",e.__assign({className:a.default.displayName,style:null==l?void 0:l.wrapper},{children:[t.jsx(r.Bookmark,{className:a.default.displayNameIcon,style:null==l?void 0:l.displayNameIcon}),t.jsxs("span",e.__assign({style:null==l?void 0:l.label},{children:[o,":"]}))]}))},S=function(s){var i,y,p=s.isUserStoryCurrentlyUpdated,x=s.artifactId,g=s.artifactTitleId,I=s.parentUserStory,j=s.currentUserStory,C=s.onUserStoryChange,w=s.parentIndex,U=s.currentIndex,N=s.enableDownload,b=s.isDiffEditReviewMode,D=s.showUserStoryDiff,M=s.handleDownloadUserStory,k=s.handleOpenSendDialog,q=s.updateUserStoryArtifact,A=s.selectedArtifactId,B=v.useRequirementAI(),R=B.searchQueryList,T=B.citations,E=B.customStyles,L=null==E?void 0:E.userStoryCardStyles,P=null===(i=null==E?void 0:E.userStoryScreenStyles)||void 0===i?void 0:i.userStoryContentStyles,W=n.useState(e.__assign(e.__assign({},structuredClone(j)),{value:l.formatMarkdown(j.value)||""})),z=W[0],O=W[1],H=n.useState({userStory:!1}),F=H[0],V=H[1],Q=v.useRequirementAI().userStory,G=n.useState(""===w||A===j.artifactId),J=G[0],K=G[1],X=n.useState(!1);X[0];var Y=X[1],Z=n.useState(null),$=Z[0],ee=Z[1],te=n.useState(!1),ne=te[0],re=te[1],se=n.useRef(null),oe=n.useState(!1);oe[0];var ie=oe[1],ae=n.useRef(null);n.useEffect(function(){p&&K(p)},[p]),n.useEffect(function(){O(e.__assign(e.__assign({},structuredClone(j)),{value:l.formatMarkdown(j.value)||""}))},[j]),n.useEffect(function(){R.length>0?K(!0):A&&K(A===j.artifactId)},[R,A,j.artifactId]);var le=function(){ee(null)},ue=function(){K(function(e){return!e})};return t.jsxs("div",e.__assign({className:a.default.card,style:null==L?void 0:L.cardStyle},{children:[t.jsxs("div",e.__assign({className:a.default.titleSection,style:null==L?void 0:L.titleSection},{children:[t.jsxs("div",e.__assign({className:a.default.titleRow,style:null==L?void 0:L.titleRow,onClick:ue},{children:[t.jsxs("div",e.__assign({className:a.default.titleLeft,style:null==L?void 0:L.titleLeft,onMouseEnter:function(){return ie(!0)},onMouseLeave:function(){return ie(!1)}},{children:[t.jsx(h,{displayName:g}),t.jsx("h2",e.__assign({className:a.default.storyTitle,style:null==L?void 0:L.storyTitle},{children:m(j.title)}),j.artifactId)]})),t.jsxs("div",e.__assign({className:a.default.titleActions,style:null==L?void 0:L.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!F.userStory&&t.jsxs(t.Fragment,{children:[t.jsx("button",e.__assign({className:a.default.iconButton,style:null==L?void 0:L.iconButton,onClick:function(e){ee(e.currentTarget)}},{children:t.jsx(r.ExternalLink,{size:16})})),t.jsxs(o.Menu,e.__assign({id:"user-story-share-menu",anchorEl:$,open:!!$,onClose:function(){return ee(null)},style:null==L?void 0:L.userStoryShareMenu},{children:[N&&t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return Y(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),Y(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:se,className:a.default.menuItemContent,style:null==L?void 0:L.menuItemContent},{children:[t.jsx(r.Download,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Download"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=j,I&&(t=e.__assign(e.__assign({},j),{value:"".concat(u.replaceTitleSection(null==I?void 0:I.value,j.title)," \n").concat(j.value)})),null==k||k(!0,[t],j.artifactId),le(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==L?void 0:L.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(r.Share2,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Send"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==L?void 0:L.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,s,o;return e.__generator(this,function(e){switch(e.label){case 0:t=new _.default.Converter,n=t.makeHtml(l.formatMarkdown(j.value)||j.value),r=function(e){var t=(new _.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(l.formatMarkdown(j.value)||j.value),s=new ClipboardItem({"text/plain":new Blob([r],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([s])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return o=e.sent(),console.error("Failed to copy user story:",o),[3,5];case 4:return le(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==L?void 0:L.menuItemContent,className:a.default.menuItemContentPadded},{children:[t.jsx(r.Copy,{size:16,color:null==L?void 0:L.menuIconColor}),t.jsx("p",e.__assign({style:null==L?void 0:L.menuLabel},{children:"Copy"}))]}))}))]}))]}),F.userStory&&J?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==L?void 0:L.cancelButton,onClick:function(){var t;null===(t=ae.current)||void 0===t||t.abort(),V(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),F.userStory&&J?t.jsx(d.default,{type:"fill",children:ne?t.jsxs("span",e.__assign({className:a.default.savingSpinner},{children:[t.jsx(r.LoaderCircle,{className:a.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:ne,style:null==L?void 0:L.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return re(!0),"userStory"==="userStory"&&(C(z),console.log("I am changing RTE editor values",z)),[4,q(T,Q,x,null===(t=ae.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),V(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),re(!1),[2]}})})}}):!b&&!D&&J&&t.jsx("button",e.__assign({className:a.default.iconButton,style:null==L?void 0:L.editButton,onClick:function(){return V(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(r.PencilIcon,{color:null==L?void 0:L.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),ue()},style:null==L?void 0:L.chevronButton,className:a.default.chevronButton},{children:J?t.jsx(r.ChevronUp,{className:a.default.chevronIcon,color:null==L?void 0:L.chevronIconColor}):t.jsx(r.ChevronDown,{className:a.default.chevronIcon,color:null==L?void 0:L.chevronIconColor})}))]}))]})),t.jsx("div",{className:a.default.divider,style:null==L?void 0:L.dividerStyle})]})),J&&t.jsx("div",e.__assign({className:a.default.cardContent,style:null==L?void 0:L.cardContentStyle},{children:t.jsxs("div",e.__assign({className:a.default.contentInner,style:null==L?void 0:L.contentInner},{children:[t.jsxs("div",e.__assign({className:a.default.descriptionSection,style:null==L?void 0:L.descriptionSection},{children:[t.jsx("div",{className:a.default.justifyBetween,style:null==L?void 0:L.justifyBetween}),F.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:l.formatMarkdown(j.value)||"",handleUpdateState:function(t,n){var r=l.indentMarkdown(n);O(function(t){return e.__assign(e.__assign({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:F.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:D,isParent:""===w,message:l.formatMarkdown(j.value)||"",artifactId:j.artifactId,customStyles:P})]})),null===(y=z.sub_features)||void 0===y?void 0:y.map(function(n,r){return t.jsx(S,{artifactId:x,isUserStoryCurrentlyUpdated:p,artifactTitleId:"".concat(g,"-").concat(String.fromCharCode(65+r)),parentUserStory:j,parentIndex:"".concat(w).concat(w&&".").concat(U),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var r=e.__spreadArray([],j.sub_features||[],!0);r[t]=n,C(e.__assign(e.__assign({},j),{sub_features:r}))}(r,t)},enableDownload:!0,isDiffEditReviewMode:b,showUserStoryDiff:D,updateUserStoryArtifact:q,handleDownloadUserStory:M,handleOpenSendDialog:k},n.artifactId)})]}))}))]}))};exports.StoryCard=S,exports.UserStoryCardWrapper=function(n){var r=n.artifactTitleIDs,s=n.isDiffEditReviewMode,o=n.showUserStoryDiff,i=n.updateUserStoryArtifact,l=n.isUserStoryCurrentlyUpdated,u=n.artifactId,d=n.handleOpenSendDialog,c=n.handleDownloadUserStory,f=n.selectedArtifactId,y=v.useRequirementAI(),_=y.userStory,m=y.setUserStory,h=y.customStyles,p=null==h?void 0:h.userStoryCardStyles;return t.jsx("div",e.__assign({className:a.default.userStoryCardWrapper,style:null==p?void 0:p.userStoryCardWrapper},{children:_.map(function(n,a){return t.jsx(S,{isUserStoryCurrentlyUpdated:l,artifactId:u,artifactTitleId:r[a]||"",currentUserStory:n,onUserStoryChange:function(t){m(function(n){return n[a]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(a+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:o,updateUserStoryArtifact:i,handleOpenSendDialog:d,handleDownloadUserStory:c,selectedArtifactId:f},n.artifactId)})}))},exports.default=S,exports.replaceLearnedTagsWithInfo=m;
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("@exuanbo/file-icons-js"),r=require("lucide-react"),s=require("../../../../UserStoryImport/lib/cn.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(n),l=!1;exports.default=function(n){var a=this,u=n.name,o=n.size,f=void 0===o?"12px":o,d=n.className,m=i.useState(d||""),h=m[0],x=m[1];return i.useEffect(function(){e.__awaiter(a,void 0,void 0,function(){var t;return e.__generator(this,function(e){switch(e.label){case 0:return[4,c.default.getClass(u,{array:!0})];case 1:return t=e.sent(),x(t.join(" ")),[2]}})})},[u]),i.useEffect(function(){if(!l){var e=document.createElement("style");e.innerHTML="\n .custom-file-icon::before {\n font-size: inherit !important;\n }\n ",document.head.appendChild(e),l=!0}},[]),u.includes(".txt")?t.jsx(r.File,{className:s.cn("w-3 h-3 mr-2 text-muted",d)}):u.includes(".pdf")?t.jsx(r.FileText,{className:s.cn("w-3 h-3 mr-2 text-destructive",d)}):t.jsx("span",e.__assign({className:"mt-0",style:{width:f,height:f,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top"}},{children:h?t.jsx("i",{className:s.cn("custom-file-icon",h,d),style:{fontSize:f,height:f,display:"inline-flex",alignItems:"center",lineHeight:1}}):t.jsx(r.File,{className:s.cn("text-muted",d),width:f,height:f})}))};
2
+ //# sourceMappingURL=CustomFileIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomFileIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("react-dom"),r=require("monaco-editor"),a=require("./ReadFileCitationContent.module.css.js"),l=require("./icons/ExternalLinkIcon.js"),o=require("lucide-react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,Object.freeze(n)}var c=s(i),d=u(r);"undefined"!=typeof self&&(self.MonacoEnvironment=e.__assign(e.__assign({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var f=!1,h=function(){if(!f&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),d.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),f=!0}catch(e){f=!0}};h(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var g=function(e){return"number"==typeof e&&Number.isFinite(e)},m=function(e,n){return g(e)&&g(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},v=function(e,n,t,i){var r,a=e[0],l=e[1];if(!Number.isFinite(a)||!Number.isFinite(l))return null;if(l<a&&(a=(r=[l,a])[0],l=r[1]),g(t)&&g(i)){var o=Math.max(a,t),s=Math.min(l,i);if(o>s)return null;var u=o-t+1,c=s-t+1,d=Math.max(1,u),f=Math.min(n,c);return d>f?null:[d,f]}var h=Math.max(1,a),m=Math.min(n,l);return h>m?null:[h,m]},p=function(e,n,t,i){if(0===e.length)return!1;var r=m(t,i);return!!r&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(r.start>n||r.end>n||Math.abs(r.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<r.start||n>r.end})))},b={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},y={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},_={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},x=function(e){return _[e.toLowerCase()]||e},j=function(i){var r=i.code,l=i.language,o=i.theme,s=i.fontSize,u=i.fontFamily,c=i.height,f=i.blueHighlightRanges,g=i.yellowHighlightRanges,m=i.backgroundColor,v=i.editorWrapperStyle,p=i.lineNumberOffset,b=void 0===p?0:p,y=i.lineNumberDigits,_=t.useRef(null),j=t.useRef(null),N=t.useRef(!1);return t.useEffect(function(){N.current=!1,h();var e=setTimeout(function(){var e,n=_.current;if(n&&!N.current&&!j.current)try{d.editor.setTheme(o);var t=d.editor.create(n,{value:r,language:x(l),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:s,lineHeight:20,fontFamily:u,lineNumbers:function(e){return String(e+b)},folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,null!=y?y:4),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0});j.current=t;var i=[];f.forEach(function(e){var n=e[0],t=e[1];i.push({range:new d.Range(n,1,t,1),options:{isWholeLine:!0,className:a.default.highlightedLine,linesDecorationsClassName:a.default.highlightedLineDecoration}})}),g.forEach(function(e){var n=e[0],t=e[1];i.push({range:new d.Range(n,1,t,1),options:{isWholeLine:!0,className:a.default.yellowHighlightedLine,linesDecorationsClassName:a.default.yellowHighlightedLineDecoration}})}),i.length>0&&t.createDecorationsCollection(i);var c=null!==(e=g[0])&&void 0!==e?e:f[0];c&&requestAnimationFrame(function(){!N.current&&j.current&&t.revealLineInCenter(c[0])})}catch(e){}},50);return function(){if(N.current=!0,clearTimeout(e),j.current){try{j.current.dispose()}catch(e){}j.current=null}}},[]),t.useEffect(function(){try{d.editor.setTheme(o)}catch(e){}},[o]),n.jsx("div",e.__assign({className:a.default.editorWrapper,style:e.__assign({height:"".concat(c,"px"),backgroundColor:m},v)},{children:n.jsx("div",{ref:_,style:{width:"100%",height:"100%"}})}))};exports.default=function(i){var r=i.citation,s=i.customStyles,u=i.customColors,d=i.customIcons,f=i.editorConfig,h=i.fileCallback,_=t.useMemo(function(){return e.__assign(e.__assign({},b),u)},[u]),x=t.useMemo(function(){return e.__assign(e.__assign({},y),f)},[f]),N=t.useState(!1),C=N[0],M=N[1],w=t.useRef(null),k=t.useRef(!1),O=r.customMetadata.content||"",L=r.customMetadata.highlighted_text,F=r.customMetadata.start_line,S=r.customMetadata.end_line,E=t.useMemo(function(){if(!L)return{};try{var e=L.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[L]),R=t.useMemo(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(O));){var i=e[1]||"javascript",r=e[2].trim(),a=e[3].trim();r&&a&&n.push({filePath:r,code:a,language:i})}return n},[O]),P=t.useCallback(function(e){return(E[e]||[]).map(function(e){var n=e.split("-").map(function(e){return Number(e.trim())}),t=n[0],i=n.length>1?n[1]:t;return Number.isFinite(t)&&Number.isFinite(i)?[t,i]:null}).filter(function(e){return null!==e})},[E]),B=t.useMemo(function(){for(var e=function(e){var n=R[e],t=n.code.split("\n").length,i=P(n.filePath),r=p(i,t,F,S);if(i.map(function(e){return v(e,t,r?F:void 0,r?S:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<R.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[R,P,F,S]),H=B>=0,W=t.useCallback(function(e,n){var t=P(e),i=p(t,n,F,S);return t.map(function(e){return v(e,n,i?F:void 0,i?S:void 0)}).filter(function(e){return null!==e})},[P,F,S]),z=t.useCallback(function(e,n){if(null==F||null==S)return[];var t=n||function(e,n,t){var i=m(n,t);return!!i&&(i.start>e||i.end>e||Math.abs(i.length-e)<=1)}(e,F,S);if(t){var i=m(F,S);if(!i)return[];var r=Math.min(e,i.length);return r<1?[]:[[1,r]]}var a=Math.max(1,0===F?1:F),l=Math.min(S,e);return a>l?[]:[[a,l]]},[F,S]);t.useEffect(function(){if(H&&!k.current&&R.length>0&&(null==h?void 0:h.autoOpenFirstHighlighted)&&(null==h?void 0:h.onOpenFile)){var e=R[B],n=W(e.filePath,e.code.split("\n").length);k.current=!0;var t=setTimeout(function(){h.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[H,B,R,W,h]),t.useEffect(function(){k.current=!1},[O]),t.useEffect(function(){if(!(B<0)){var e=setTimeout(function(){var e;null===(e=w.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[B,L]);var T=t.useCallback(function(e,n){if(null==h?void 0:h.onOpenFile){var t=W(e,n);h.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[W,h]),D=t.useCallback(function(){(null==h?void 0:h.onExpandClick)?h.onExpandClick({blocks:R,highlightMap:E}):M(!0)},[h,R,E]),q=!!(null==h?void 0:h.onOpenFile),I=(null==d?void 0:d.readFileCitationIcon)||n.jsx(l.default,{style:{width:"14px",height:"14px"}}),G=function(t){return R.map(function(i,r){var l,u,c=i.code.split("\n").length,d=P(i.filePath),f=p(d,c,F,S),h=d.map(function(e){return v(e,c,f?F:void 0,f?S:void 0)}).filter(function(e){return null!==e}),m=f&&g(F)?h.map(function(e){var n=e[0],t=e[1];return[n+F-1,t+F-1]}):h,b=h.length>0,y=r===B,N=t?600:x.maxHeight,C=(l=20*i.code.split("\n").length+16+4,Math.min(Math.max(l,x.minHeight),N)),M=i.filePath.split("/").pop(),k=z(c,f),O=f&&g(F)?F-1:0,L=O+c,E=String(Math.max(1,L)).length;return n.jsxs("div",e.__assign({ref:!t&&y?w:void 0,"data-highlighted":b?"true":void 0,"data-first-highlighted":y?"true":void 0,className:a.default.blockContainer,style:e.__assign({border:"1px solid ".concat(_.border)},null==s?void 0:s.blockContainer)},{children:[n.jsxs("div",e.__assign({className:a.default.header,style:e.__assign({backgroundColor:b?_.highlightBg:_.headerBg,borderBottom:"1px solid ".concat(_.border),color:b?_.highlightGutter:_.foreground},b?null==s?void 0:s.headerHighlighted:null==s?void 0:s.header)},{children:[n.jsxs("div",e.__assign({className:a.default.headerLeft},{children:[n.jsx("span",e.__assign({className:a.default.fileName,title:i.filePath,style:null==s?void 0:s.fileName},{children:M})),q&&n.jsx("button",e.__assign({className:a.default.openFileButton,onClick:function(){return T(i.filePath,c)},title:"Open in editor","aria-label":"Open ".concat(M," in editor"),style:null==s?void 0:s.openFileButton},{children:I}))]})),n.jsxs("div",e.__assign({className:a.default.headerRight},{children:[b&&n.jsx("span",e.__assign({className:a.default.lineRanges,style:null==s?void 0:s.lineRanges},{children:(u=m,u.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!t&&0===r&&n.jsx("button",e.__assign({className:a.default.expandButton,style:null==s?void 0:s.expandButton,onClick:D,title:"Expand","aria-label":"Expand code view"},{children:n.jsx(o.Maximize2,{size:13})}))]}))]})),n.jsx(j,{code:i.code,language:i.language,theme:x.theme,fontSize:x.fontSize,fontFamily:x.fontFamily,height:C,blueHighlightRanges:k,yellowHighlightRanges:h,backgroundColor:_.background,editorWrapperStyle:null==s?void 0:s.editorWrapper,lineNumberOffset:O,lineNumberDigits:E})]}),r)})};if(0===R.length)return n.jsx("div",e.__assign({className:a.default.emptyState,style:e.__assign({color:_.inactiveText},null==s?void 0:s.emptyState)},{children:"No code content available"}));var A=C?c.default.createPortal(n.jsx("div",e.__assign({className:a.default.modalOverlay,style:null==s?void 0:s.modalOverlay,onClick:function(e){e.target===e.currentTarget&&M(!1)}},{children:n.jsxs("div",e.__assign({className:a.default.modalContent,style:null==s?void 0:s.modalContent},{children:[n.jsxs("div",e.__assign({className:a.default.modalHeader,style:null==s?void 0:s.modalHeader},{children:[n.jsx("span",e.__assign({className:a.default.modalTitle,style:null==s?void 0:s.modalTitle},{children:1===R.length?R[0].filePath:"".concat(R.length," files")})),n.jsx("button",e.__assign({className:a.default.modalCloseButton,style:null==s?void 0:s.modalCloseButton,onClick:function(){return M(!1)},"aria-label":"Close expanded view"},{children:n.jsx(o.X,{size:16})}))]})),n.jsx("div",e.__assign({className:a.default.modalBody},{children:n.jsx("div",e.__assign({className:a.default.container,style:null==s?void 0:s.container},{children:G(!0)}))}))]}))})),document.body):null;return n.jsxs(n.Fragment,{children:[A,n.jsx("div",e.__assign({className:a.default.container,style:null==s?void 0:s.container},{children:G(!1)}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("react-dom"),r=require("monaco-editor"),a=require("./ReadFileCitationContent.module.css.js"),l=require("./icons/ExternalLinkIcon.js"),o=require("lucide-react"),s=require("./CustomFileIcon.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,Object.freeze(n)}var d=u(i),f=c(r);"undefined"!=typeof self&&(self.MonacoEnvironment=e.__assign(e.__assign({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var h=!1,m=function(){if(!h&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),f.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),h=!0}catch(e){h=!0}};m(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var g=function(e){return"number"==typeof e&&Number.isFinite(e)},v=function(e,n){return g(e)&&g(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},p=function(e,n,t,i){var r,a=e[0],l=e[1];if(!Number.isFinite(a)||!Number.isFinite(l))return null;if(l<a&&(a=(r=[l,a])[0],l=r[1]),g(t)&&g(i)){var o=Math.max(a,t),s=Math.min(l,i);if(o>s)return null;var u=o-t+1,c=s-t+1,d=Math.max(1,u),f=Math.min(n,c);return d>f?null:[d,f]}var h=Math.max(1,a),m=Math.min(n,l);return h>m?null:[h,m]},b=function(e,n,t,i){if(0===e.length)return!1;var r=v(t,i);return!!r&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(r.start>n||r.end>n||Math.abs(r.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<r.start||n>r.end})))},y={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},x={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},_={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},j=function(e){return _[e.toLowerCase()]||e},C=function(i){var r=i.code,l=i.language,o=i.theme,s=i.fontSize,u=i.fontFamily,c=i.height,d=i.yellowHighlightRanges,h=i.backgroundColor,g=i.editorWrapperStyle,v=i.lineNumberOffset,p=void 0===v?0:v,b=i.lineNumberDigits,y=t.useRef(null),x=t.useRef(null),_=t.useRef(!1);return t.useEffect(function(){_.current=!1,m();var e=setTimeout(function(){var e=y.current;if(e&&!_.current&&!x.current)try{f.editor.setTheme(o);var n=f.editor.create(e,{value:r,language:j(l),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:s,lineHeight:20,fontFamily:u,lineNumbers:function(e){return String(e+p)},folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,null!=b?b:4),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0});x.current=n;var t=[];d.forEach(function(e){var n=e[0],i=e[1];t.push({range:new f.Range(n,1,i,1),options:{isWholeLine:!0,className:a.default.yellowHighlightedLine,linesDecorationsClassName:a.default.yellowHighlightedLineDecoration}})}),t.length>0&&n.createDecorationsCollection(t);var i=d[0];i&&requestAnimationFrame(function(){!_.current&&x.current&&n.revealLineInCenter(i[0])})}catch(e){}},50);return function(){if(_.current=!0,clearTimeout(e),x.current){try{x.current.dispose()}catch(e){}x.current=null}}},[]),t.useEffect(function(){try{f.editor.setTheme(o)}catch(e){}},[o]),n.jsx("div",e.__assign({className:a.default.editorWrapper,style:e.__assign({height:"".concat(c,"px"),backgroundColor:h},g)},{children:n.jsx("div",{ref:y,style:{width:"100%",height:"100%"}})}))};exports.default=function(i){var r=i.citation,u=i.customStyles,c=i.customColors,f=i.customIcons,h=i.editorConfig,m=i.fileCallback,_=t.useMemo(function(){return e.__assign(e.__assign({},y),c)},[c]),j=t.useMemo(function(){return e.__assign(e.__assign({},x),h)},[h]),N=t.useState(!1),M=N[0],w=N[1],k=t.useRef(null),O=t.useRef(!1),F=r.customMetadata.content||"",S=r.customMetadata.highlighted_text,L=r.customMetadata.start_line,E=r.customMetadata.end_line,P=g(L)?L+1:L,R=t.useMemo(function(){if(!S)return{};try{var e=S.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[S]),T=t.useMemo(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(F));){var i=e[1]||"javascript",r=e[2].trim(),a=e[3].trim();r&&a&&n.push({filePath:r,code:a,language:i})}return n},[F]),B=t.useCallback(function(e){return(R[e]||[]).map(function(e){var n=e.split("-").map(function(e){return Number(e.trim())}),t=n[0],i=n.length>1?n[1]:t;return Number.isFinite(t)&&Number.isFinite(i)?[t,i]:null}).filter(function(e){return null!==e})},[R]),z=t.useMemo(function(){for(var e=function(e){var n=T[e],t=n.code.split("\n").length,i=B(n.filePath),r=b(i,t,P,E);if(i.map(function(e){return p(e,t,r?P:void 0,r?E:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<T.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[T,B,P,E]),W=z>=0,H=t.useCallback(function(e,n){var t=B(e),i=b(t,n,P,E);return t.map(function(e){return p(e,n,i?P:void 0,i?E:void 0)}).filter(function(e){return null!==e})},[B,P,E]),q=t.useCallback(function(e,n){var t=B(e);if(b(t,n,P,E)){var i=v(P,E);return i?t.map(function(e){var n=e[0],t=e[1],r=n<=t?[n,t]:[t,n],a=Math.max(r[0],i.start),l=Math.min(r[1],i.end);return a>l?null:[a,l]}).filter(function(e){return null!==e}):[]}return H(e,n)},[B,H,P,E]);t.useEffect(function(){if(W&&!O.current&&T.length>0&&(null==m?void 0:m.autoOpenFirstHighlighted)&&(null==m?void 0:m.onOpenFile)){var e=T[z],n=q(e.filePath,e.code.split("\n").length);O.current=!0;var t=setTimeout(function(){m.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[W,z,T,H,m]),t.useEffect(function(){O.current=!1},[F]),t.useEffect(function(){if(!(z<0)){var e=setTimeout(function(){var e;null===(e=k.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[z,S]);var D=t.useCallback(function(e,n){if(null==m?void 0:m.onOpenFile){var t=q(e,n);m.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[q,m]),I=t.useCallback(function(){(null==m?void 0:m.onExpandClick)?m.onExpandClick({blocks:T,highlightMap:R}):w(!0)},[m,T,R]),G=!!(null==m?void 0:m.onOpenFile),A=(null==f?void 0:f.readFileCitationIcon)||n.jsx(l.default,{style:{width:"14px",height:"14px"}}),J=function(t){return T.map(function(i,r){var l,s,c=i.code.split("\n").length,d=B(i.filePath),f=b(d,c,P,E),h=d.map(function(e){return p(e,c,f?P:void 0,f?E:void 0)}).filter(function(e){return null!==e}),m=f&&g(P)?h.map(function(e){var n=e[0],t=e[1];return[n+P-1,t+P-1]}):h,v=h.length>0,y=r===z,x=t?600:j.maxHeight,N=(l=20*i.code.split("\n").length+16+4,Math.min(Math.max(l,j.minHeight),x)),M=i.filePath.split("/").pop(),w=f&&g(P)?P-1:0,O=w+c,F=String(Math.max(1,O)).length;return n.jsxs("div",e.__assign({ref:!t&&y?k:void 0,"data-highlighted":v?"true":void 0,"data-first-highlighted":y?"true":void 0,className:a.default.blockContainer,style:e.__assign({border:"1px solid ".concat(_.border)},null==u?void 0:u.blockContainer)},{children:[n.jsxs("div",e.__assign({className:a.default.header,style:e.__assign({backgroundColor:v?_.highlightBg:_.headerBg,borderBottom:"1px solid ".concat(_.border),color:v?_.highlightGutter:_.foreground},v?null==u?void 0:u.headerHighlighted:null==u?void 0:u.header)},{children:[n.jsxs("div",e.__assign({className:a.default.headerLeft},{children:[n.jsx("span",e.__assign({className:a.default.fileName,title:i.filePath,style:null==u?void 0:u.fileName,onClick:function(){return D(i.filePath,c)}},{children:M})),G&&n.jsx("button",e.__assign({className:a.default.openFileButton,onClick:function(){return D(i.filePath,c)},title:"Open in editor","aria-label":"Open ".concat(M," in editor"),style:null==u?void 0:u.openFileButton},{children:A}))]})),n.jsxs("div",e.__assign({className:a.default.headerRight},{children:[v&&n.jsx("span",e.__assign({className:a.default.lineRanges,style:null==u?void 0:u.lineRanges},{children:(s=m,s.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!t&&0===r&&n.jsx("button",e.__assign({className:a.default.expandButton,style:null==u?void 0:u.expandButton,onClick:I,title:"Expand","aria-label":"Expand code view"},{children:n.jsx(o.Maximize2,{size:13})}))]}))]})),n.jsx(C,{code:i.code,language:i.language,theme:j.theme,fontSize:j.fontSize,fontFamily:j.fontFamily,height:N,yellowHighlightRanges:h,backgroundColor:_.background,editorWrapperStyle:null==u?void 0:u.editorWrapper,lineNumberOffset:w,lineNumberDigits:F})]}),r)})};if(0===T.length)return n.jsx("div",e.__assign({className:a.default.emptyState,style:e.__assign({color:_.inactiveText},null==u?void 0:u.emptyState)},{children:"No code content available"}));var V=M?d.default.createPortal(n.jsx("div",e.__assign({className:a.default.modalOverlay,style:null==u?void 0:u.modalOverlay,onClick:function(e){e.target===e.currentTarget&&w(!1)}},{children:n.jsxs("div",e.__assign({className:a.default.modalContent,style:null==u?void 0:u.modalContent},{children:[n.jsxs("div",e.__assign({className:a.default.modalHeader,style:null==u?void 0:u.modalHeader},{children:[n.jsx("span",e.__assign({className:a.default.modalTitle,style:null==u?void 0:u.modalTitle},{children:1===T.length?n.jsxs("span",e.__assign({className:a.default.modalTitleContent},{children:[n.jsx(s.default,{name:T[0].filePath,size:"15px"}),n.jsx("span",e.__assign({className:a.default.modalTitleText},{children:T[0].filePath}))]})):"".concat(T.length," files")})),n.jsx("button",e.__assign({className:a.default.modalCloseButton,style:null==u?void 0:u.modalCloseButton,onClick:function(){return w(!1)},"aria-label":"Close expanded view"},{children:n.jsx(o.X,{size:16})}))]})),n.jsx("div",e.__assign({className:a.default.modalBody},{children:n.jsx("div",e.__assign({className:a.default.container,style:null==u?void 0:u.container},{children:J(!0)}))}))]}))})),document.body):null;return n.jsxs(n.Fragment,{children:[V,n.jsx("div",e.__assign({className:a.default.container,style:null==u?void 0:u.container},{children:J(!1)}))]})};
2
2
  //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReadFileCitationContent-module_container__Oi3tV{display:flex;flex-direction:column;gap:12px;margin-top:4px}.ReadFileCitationContent-module_blockContainer__yGEX8{border-radius:4px;overflow:hidden}.ReadFileCitationContent-module_header__39-AD{align-items:center;display:flex;font-family:monospace;font-size:12px;gap:8px;justify-content:space-between;padding:6px 12px}.ReadFileCitationContent-module_headerLeft__WOyMV{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.ReadFileCitationContent-module_fileName__ql9Qu{opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_openFileButton__oqea1{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_openFileButton__oqea1:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_lineRanges__RIofb{flex-shrink:0;font-size:11px;max-width:300px;opacity:.7;overflow-x:auto;white-space:nowrap}.ReadFileCitationContent-module_editorWrapper__ab5Sg{overflow:hidden}.ReadFileCitationContent-module_highlightedLine__w6iv-{background-color:#3b82f626!important}.ReadFileCitationContent-module_highlightedLineDecoration__EykBL{background-color:#3b82f6;margin-left:0;width:3px!important}.ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP{background-color:#eab30833!important}.ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N{background-color:#eab308;margin-left:0;width:3px!important}.ReadFileCitationContent-module_emptyState__34kcg{font-size:14px;padding:12px;text-align:center}.ReadFileCitationContent-module_loadingEditor__aOHYT{align-items:center;display:flex;font-size:14px;height:64px;justify-content:center}.ReadFileCitationContent-module_headerRight__Hetda{align-items:center;display:flex;flex-shrink:0;gap:6px}.ReadFileCitationContent-module_expandButton__wjkgL{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;flex-shrink:0;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_expandButton__wjkgL:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalOverlay__ZJSqk{align-items:center;background-color:#000000b3;box-sizing:border-box;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:9999}.ReadFileCitationContent-module_modalContent__PA-tB{background:#1e1e1e;border:1px solid #3c3c3c;border-radius:6px;display:flex;flex-direction:column;max-height:90vh;max-width:900px;overflow:hidden;width:100%}.ReadFileCitationContent-module_modalHeader__9Jcjf{align-items:center;background:#252526;border-bottom:1px solid #3c3c3c;display:flex;flex-shrink:0;justify-content:space-between;padding:10px 14px}.ReadFileCitationContent-module_modalTitle__M60Jk{color:#ccc;font-family:monospace;font-size:13px;opacity:.85}.ReadFileCitationContent-module_modalCloseButton__4bymQ{align-items:center;background:none;border:none;border-radius:4px;color:#ccc;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_modalCloseButton__4bymQ:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalBody__Oo7OO{flex:1;overflow-y:auto;padding:12px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"ReadFileCitationContent-module_container__Oi3tV",blockContainer:"ReadFileCitationContent-module_blockContainer__yGEX8",header:"ReadFileCitationContent-module_header__39-AD",headerLeft:"ReadFileCitationContent-module_headerLeft__WOyMV",fileName:"ReadFileCitationContent-module_fileName__ql9Qu",openFileButton:"ReadFileCitationContent-module_openFileButton__oqea1",lineRanges:"ReadFileCitationContent-module_lineRanges__RIofb",editorWrapper:"ReadFileCitationContent-module_editorWrapper__ab5Sg",highlightedLine:"ReadFileCitationContent-module_highlightedLine__w6iv-",highlightedLineDecoration:"ReadFileCitationContent-module_highlightedLineDecoration__EykBL",yellowHighlightedLine:"ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP",yellowHighlightedLineDecoration:"ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT",headerRight:"ReadFileCitationContent-module_headerRight__Hetda",expandButton:"ReadFileCitationContent-module_expandButton__wjkgL",modalOverlay:"ReadFileCitationContent-module_modalOverlay__ZJSqk",modalContent:"ReadFileCitationContent-module_modalContent__PA-tB",modalHeader:"ReadFileCitationContent-module_modalHeader__9Jcjf",modalTitle:"ReadFileCitationContent-module_modalTitle__M60Jk",modalCloseButton:"ReadFileCitationContent-module_modalCloseButton__4bymQ",modalBody:"ReadFileCitationContent-module_modalBody__Oo7OO"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReadFileCitationContent-module_container__Oi3tV{display:flex;flex-direction:column;gap:12px;margin-top:4px}.ReadFileCitationContent-module_blockContainer__yGEX8{border-radius:4px;overflow:hidden}.ReadFileCitationContent-module_header__39-AD{align-items:center;display:flex;font-family:monospace;font-size:12px;gap:8px;justify-content:space-between;padding:6px 12px}.ReadFileCitationContent-module_headerLeft__WOyMV{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.ReadFileCitationContent-module_fileName__ql9Qu{cursor:pointer;opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_openFileButton__oqea1{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_openFileButton__oqea1:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_lineRanges__RIofb{flex-shrink:0;font-size:11px;max-width:300px;opacity:.7;overflow-x:auto;white-space:nowrap}.ReadFileCitationContent-module_editorWrapper__ab5Sg{overflow:hidden}.ReadFileCitationContent-module_highlightedLine__w6iv-{background-color:#3b82f626!important}.ReadFileCitationContent-module_highlightedLineDecoration__EykBL{background-color:#3b82f6;margin-left:0;width:3px!important}.ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP{background-color:#eab30833!important}.ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N{background-color:#eab308;margin-left:0;width:3px!important}.ReadFileCitationContent-module_emptyState__34kcg{font-size:14px;padding:12px;text-align:center}.ReadFileCitationContent-module_loadingEditor__aOHYT{align-items:center;display:flex;font-size:14px;height:64px;justify-content:center}.ReadFileCitationContent-module_headerRight__Hetda{align-items:center;display:flex;flex-shrink:0;gap:6px}.ReadFileCitationContent-module_expandButton__wjkgL{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;flex-shrink:0;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_expandButton__wjkgL:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalOverlay__ZJSqk{align-items:center;background-color:#000000b3;box-sizing:border-box;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:9999}.ReadFileCitationContent-module_modalContent__PA-tB{background:#1e1e1e;border:1px solid #3c3c3c;border-radius:6px;display:flex;flex-direction:column;max-height:90vh;max-width:900px;overflow:hidden;width:100%}.ReadFileCitationContent-module_modalHeader__9Jcjf{align-items:center;background:#252526;border-bottom:1px solid #3c3c3c;display:flex;flex-shrink:0;justify-content:space-between;padding:10px 14px}.ReadFileCitationContent-module_modalTitle__M60Jk{align-items:center;color:#ccc;display:flex;font-family:monospace;font-size:13px;gap:6px;min-width:0;opacity:.85}.ReadFileCitationContent-module_modalTitleContent__QPLZb{align-items:center;display:inline-flex;gap:6px;min-width:0}.ReadFileCitationContent-module_modalTitleText__CptNG{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_modalCloseButton__4bymQ{align-items:center;background:none;border:none;border-radius:4px;color:#ccc;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_modalCloseButton__4bymQ:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalBody__Oo7OO{flex:1;overflow-y:auto;padding:12px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"ReadFileCitationContent-module_container__Oi3tV",blockContainer:"ReadFileCitationContent-module_blockContainer__yGEX8",header:"ReadFileCitationContent-module_header__39-AD",headerLeft:"ReadFileCitationContent-module_headerLeft__WOyMV",fileName:"ReadFileCitationContent-module_fileName__ql9Qu",openFileButton:"ReadFileCitationContent-module_openFileButton__oqea1",lineRanges:"ReadFileCitationContent-module_lineRanges__RIofb",editorWrapper:"ReadFileCitationContent-module_editorWrapper__ab5Sg",highlightedLine:"ReadFileCitationContent-module_highlightedLine__w6iv-",highlightedLineDecoration:"ReadFileCitationContent-module_highlightedLineDecoration__EykBL",yellowHighlightedLine:"ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP",yellowHighlightedLineDecoration:"ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT",headerRight:"ReadFileCitationContent-module_headerRight__Hetda",expandButton:"ReadFileCitationContent-module_expandButton__wjkgL",modalOverlay:"ReadFileCitationContent-module_modalOverlay__ZJSqk",modalContent:"ReadFileCitationContent-module_modalContent__PA-tB",modalHeader:"ReadFileCitationContent-module_modalHeader__9Jcjf",modalTitle:"ReadFileCitationContent-module_modalTitle__M60Jk",modalTitleContent:"ReadFileCitationContent-module_modalTitleContent__QPLZb",modalTitleText:"ReadFileCitationContent-module_modalTitleText__CptNG",modalCloseButton:"ReadFileCitationContent-module_modalCloseButton__4bymQ",modalBody:"ReadFileCitationContent-module_modalBody__Oo7OO"};
2
2
  //# sourceMappingURL=ReadFileCitationContent.module.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),r=require("rehype-raw"),o=require("./UserStoryWithCitation.module.css.js"),a=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("../ai-reasoning/AiReasoningCitation.js"),g=require("../../icons/RelevanceScoreIcon.js"),h=require("../RecommendationBlock/RecommendationBlock.js"),_=require("../UserStoryCard/AttachedContext.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(t),C=p(r),x=i.createContext(!1),y=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=i.createContext({rowId:""}),R=function(t){var r,a,l=t.children,s=t.node,d=i.useRef(Math.random().toString(36).slice(2)).current,c=i.useContext(y).expandedInfo,u=(null==c?void 0:c.rowId)===d,v=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(a=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r.style)&&void 0!==a?a:void 0;return n.jsxs(j.Provider,e.__assign({value:{rowId:d}},{children:[n.jsx("tr",e.__assign({style:f?{cssText:f}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:v||1,className:o.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:o.default.tableExpandedCellInner},{children:n.jsx("div",{className:o.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var r=t.message,p=t.isParent,j=t.scenario,S=t.showUserStoryDiff,w=void 0!==S&&S,I=t.aiReasoningsForBlock,b=t.isCitationLoadingDisplay,q=void 0!==b&&b,A=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var N=t.customStyles,M=t.customIcons,T=t.aiReasoningDiffView,L=t.userStoryCitations,U=t.artifactId,k=t.isCraflow,P=t.onCraAccept,E=t.onCraReject,F=i.useRef(null),$=v.useRequirementAI(),B=$.userStory,D=$.getAvgScoreForStory,W=$.setUserStory,H=$.aiReasoning,z=$.setAiReasoning,G=$.customIcons,O=$.searchQueryList,Q=$.searchQueryReasoningIdList,V=null!=M?M:null==G?void 0:G.userStoryIcons,J=null==N?void 0:N.searchHighlight,K=a.useMarkdownSearch(F,J),X=K.search,Y=K.clear,Z=K.isMutatingRef,ee=i.useState("1"),ne=ee[0],ie=ee[1],te=i.useState(null),re=te[0],oe=te[1],ae=i.useRef(new Map),le=i.useCallback(function(e,n){oe(e&&n?{rowId:e,aiReason:n}:null)},[]),se=U?D(U):0,de=i.useState([]),ce=de[0],ue=de[1],ve=i.useMemo(function(){return r?(e=r,n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),e.replace(n,"\n\n<$1>\n\n").replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")}).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})):r;var e,n},[r]);i.useEffect(function(){ue(I||H)},[I,H]);var fe=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:o.default.heading1,style:null==N?void 0:N.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:o.default.heading2,style:null==N?void 0:N.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:o.default.heading3,style:null==N?void 0:N.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:o.default.bold,style:null==N?void 0:N.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:o.default.paragraph,style:null==N?void 0:N.paragraph},{children:t.children}))},updated:function(i){var t=i.node,r=e.__rest(i,["node"]);return n.jsx(d.default,e.__assign({},r,{showUserStoryDiff:w,currentUpdatedTagId:ne,setCurrentUpdatedTagId:ie,userStory:B,setUserStory:W,setAiReasoning:z,node:t,isCraflow:k,onCraAccept:P,onCraReject:E,customStyles:null==N?void 0:N.updatedContent}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:o.default.orderedList,style:null==N?void 0:N.olist},{children:null==t?void 0:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:o.default.unorderedList,style:null==N?void 0:N.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:o.default.tableWrapper},{children:n.jsx("table",e.__assign({className:o.default.table,style:null==N?void 0:N.table},{children:t}))}))},tr:R,td:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},th:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},recommendation:function(i){var t;i.node;var r=e.__rest(i,["node"]),o="The AI has selected this content based on: ".concat((null===(t=null==r?void 0:r.children)||void 0===t?void 0:t[0])||"");return n.jsx(h.default,e.__assign({},r,{customStyles:null==N?void 0:N.recommendationBlock,label:o}))},a:function(t){var r,o,a;t.inline,t.children,t.node;var l=e.__rest(t,["inline","children","node"]);i.useContext(x)||null==l||l.table;var s="".concat(null==l?void 0:l.href),d=null===(r=s.split("$"))||void 0===r?void 0:r[0],c=null===(o=s.split("$"))||void 0===o?void 0:o[1];if("ai_reasoning"===d){var u=(null!==(a=w?T:H)&&void 0!==a?a:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)});if(u&&u.reason.length>0&&u.gap.length>0)return n.jsx(f.default,{aiReason:u,isSourceHasHighlight:!1,customIcons:V,customStyles:{aiReasoningContent:null==N?void 0:N.aiReasoningContent,aiReasoningAccordion:null==N?void 0:N.aiReasoningAccordion,aiReasoningMarkdown:null==N?void 0:N.aiReasoningMarkdown,aiReasoningPill:null==N?void 0:N.aiReasoningPill,webCitation:null==N?void 0:N.webCitation,stormeeCitation:null==N?void 0:N.stormeeCitation,waveformCitation:null==N?void 0:N.waveformCitation,imageCitation:null==N?void 0:N.imageCitation,fileCitation:null==N?void 0:N.fileCitation,appModCitation:null==N?void 0:N.appModCitation,rcaCitation:null==N?void 0:N.rcaCitation,readFileCitation:null==N?void 0:N.readFileCitation,loadingCitations:null==N?void 0:N.loadingCitations,chatCitation:null==N?void 0:N.chatCitation}})}return null},code:function(i){i.inline;var t=i.children,r=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode,style:null==N?void 0:N.code},{children:t}))}):n.jsx("code",e.__assign({className:o.default.inlineCode,style:null==N?void 0:N.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(s.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(l.Info,{size:16,className:o.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),r=(null==t?void 0:t.language)||"python",o=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(c.default,{title:"Generated Code",code:o,language:r,customStyles:{pill:null==N?void 0:N.generatedCodePill,content:null==N?void 0:N.generatedCodeContent}})}}},[ce,H,L,ne,w,r,M]),ge=i.useRef([]),he=i.useRef([]);return i.useEffect(function(){var n;if(F.current){if(!(null==O?void 0:O.length))return Y(),ge.current=[],void(he.current=[]);var i=O.length!==ge.current.length||O.some(function(e,n){return e!==ge.current[n]}),t=(null!==(n=null==Q?void 0:Q.length)&&void 0!==n?n:0)!==he.current.length||(null!=Q?Q:[]).some(function(e,n){return e!==he.current[n]});if(i||t){var r;ge.current=e.__spreadArray([],O,!0),he.current=e.__spreadArray([],null!=Q?Q:[],!0);var o=null,a=function(){X(O.map(function(e){return e.replace(/\*/g,"")}))};if(0===(null==Q?void 0:Q.length))requestAnimationFrame(a);else{var l=F.current;(o=new MutationObserver(function(){Z.current||(clearTimeout(r),r=setTimeout(function(){requestAnimationFrame(a)},50))})).observe(l,{childList:!0,subtree:!0}),requestAnimationFrame(a)}return function(){null==o||o.disconnect(),clearTimeout(r)}}}},[O,Q]),n.jsx(y.Provider,e.__assign({value:{expandedInfo:re,setExpanded:le,reasonToRow:ae}},{children:n.jsxs("div",e.__assign({ref:F,className:"".concat(o.default.container," ").concat("approving"!==j?o.default.wrapper:""," ").concat(A||""),style:null==N?void 0:N.container},{children:[n.jsx(m.default,e.__assign({components:fe,rehypePlugins:[C.default]},{children:ve})),se>0&&n.jsx("div",e.__assign({className:o.default.confidenceScoreContainer,style:null==N?void 0:N.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:o.default.confidenceScore,style:null==N?void 0:N.confidenceScore},{children:[n.jsx(g.default,{size:14,color:(null==N?void 0:N.confidenceScoreIconColor)||"#166534"}),se,"%"]}))})),q&&n.jsx("div",e.__assign({className:o.default.citationLoader,style:null==N?void 0:N.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==N?void 0:N.citationLoadingContainer,icon:null==N?void 0:N.citationLoadingIcon,text:null==N?void 0:N.citationLoadingText}})})),p&&n.jsx("div",e.__assign({className:"flex mt-5"},{children:n.jsx(_.default,{})}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),o=require("rehype-raw"),a=require("./UserStoryWithCitation.module.css.js"),r=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("../ai-reasoning/AiReasoningCitation.js"),g=require("../../icons/RelevanceScoreIcon.js"),h=require("../RecommendationBlock/RecommendationBlock.js"),_=require("../UserStoryCard/AttachedContext.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(t),C=p(o),x=i.createContext(!1),y=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=i.createContext({rowId:""}),S=function(t){var o,r,l=t.children,s=t.node,d=i.useRef(Math.random().toString(36).slice(2)).current,c=i.useContext(y).expandedInfo,u=(null==c?void 0:c.rowId)===d,v=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(r=null===(o=null==s?void 0:s.properties)||void 0===o?void 0:o.style)&&void 0!==r?r:void 0;return n.jsxs(j.Provider,e.__assign({value:{rowId:d}},{children:[n.jsx("tr",e.__assign({style:f?{cssText:f}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:v||1,className:a.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:a.default.tableExpandedCellInner},{children:n.jsx("div",{className:a.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var o=t.message,p=t.isParent,j=t.scenario,R=t.showUserStoryDiff,w=void 0!==R&&R,I=t.aiReasoningsForBlock,b=t.isCitationLoadingDisplay,N=void 0!==b&&b,q=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var A=t.customStyles,M=t.customIcons,T=t.aiReasoningDiffView,L=t.userStoryCitations,U=t.artifactId,k=t.isCraflow,P=t.onCraAccept,E=t.onCraReject,F=i.useRef(null),$=v.useRequirementAI(),B=$.userStory,D=$.getAvgScoreForStory,W=$.setUserStory,H=$.aiReasoning,z=$.setAiReasoning,G=$.customIcons,O=$.searchQueryList,Q=$.searchQueryReasoningIdList,V=null!=M?M:null==G?void 0:G.userStoryIcons,J=null==A?void 0:A.searchHighlight,K=r.useMarkdownSearch(F,J),X=K.search,Y=K.clear,Z=i.useState("1"),ee=Z[0],ne=Z[1],ie=i.useState(null),te=ie[0],oe=ie[1],ae=i.useRef(new Map),re=i.useCallback(function(e,n){oe(e&&n?{rowId:e,aiReason:n}:null)},[]),le=U?D(U):0,se=i.useState([]),de=se[0],ce=se[1],ue=i.useMemo(function(){return o?(e=o,n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),e.replace(n,"\n\n<$1>\n\n").replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")}).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})):o;var e,n},[o]);i.useEffect(function(){ce(I||H)},[I,H]);var ve=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:a.default.heading1,style:null==A?void 0:A.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:a.default.heading2,style:null==A?void 0:A.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:a.default.heading3,style:null==A?void 0:A.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:a.default.bold,style:null==A?void 0:A.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:a.default.paragraph,style:null==A?void 0:A.paragraph},{children:t.children}))},updated:function(i){var t=i.node,o=e.__rest(i,["node"]);return n.jsx(d.default,e.__assign({},o,{showUserStoryDiff:w,currentUpdatedTagId:ee,setCurrentUpdatedTagId:ne,userStory:B,setUserStory:W,setAiReasoning:z,node:t,isCraflow:k,onCraAccept:P,onCraReject:E,customStyles:null==A?void 0:A.updatedContent}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:a.default.orderedList,style:null==A?void 0:A.olist},{children:null==t?void 0:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:a.default.unorderedList,style:null==A?void 0:A.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:a.default.tableWrapper},{children:n.jsx("table",e.__assign({className:a.default.table,style:null==A?void 0:A.table},{children:t}))}))},tr:S,td:function(i){var t,o=i.node,a=i.children,r=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},l=r.style,s=e.__rest(r,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:a}))}))},th:function(i){var t,o=i.node,a=i.children,r=null!==(t=null==o?void 0:o.properties)&&void 0!==t?t:{},l=r.style,s=e.__rest(r,["style"]);return n.jsx(x.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:a}))}))},recommendation:function(i){var t;i.node;var o=e.__rest(i,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==o?void 0:o.children)||void 0===t?void 0:t[0])||"");return n.jsx(h.default,e.__assign({},o,{customStyles:null==A?void 0:A.recommendationBlock,label:a}))},a:function(t){var o,a,r;t.inline,t.children,t.node;var l=e.__rest(t,["inline","children","node"]);i.useContext(x)||null==l||l.table;var s="".concat(null==l?void 0:l.href),d=null===(o=s.split("$"))||void 0===o?void 0:o[0],c=null===(a=s.split("$"))||void 0===a?void 0:a[1];if("ai_reasoning"===d){var u=(null!==(r=w?T:H)&&void 0!==r?r:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)});if(u&&u.reason.length>0&&u.gap.length>0)return n.jsx(f.default,{aiReason:u,isSourceHasHighlight:!1,customIcons:V,customStyles:{aiReasoningContent:null==A?void 0:A.aiReasoningContent,aiReasoningAccordion:null==A?void 0:A.aiReasoningAccordion,aiReasoningMarkdown:null==A?void 0:A.aiReasoningMarkdown,aiReasoningPill:null==A?void 0:A.aiReasoningPill,webCitation:null==A?void 0:A.webCitation,stormeeCitation:null==A?void 0:A.stormeeCitation,waveformCitation:null==A?void 0:A.waveformCitation,imageCitation:null==A?void 0:A.imageCitation,fileCitation:null==A?void 0:A.fileCitation,appModCitation:null==A?void 0:A.appModCitation,rcaCitation:null==A?void 0:A.rcaCitation,readFileCitation:null==A?void 0:A.readFileCitation,loadingCitations:null==A?void 0:A.loadingCitations,chatCitation:null==A?void 0:A.chatCitation}})}return null},code:function(i){i.inline;var t=i.children,o=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:a.default.blockCode,style:null==A?void 0:A.code},{children:t}))}):n.jsx("code",e.__assign({className:a.default.inlineCode,style:null==A?void 0:A.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(s.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(l.Info,{size:16,className:a.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),o=(null==t?void 0:t.language)||"python",a=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(c.default,{title:"Generated Code",code:a,language:o,customStyles:{pill:null==A?void 0:A.generatedCodePill,content:null==A?void 0:A.generatedCodeContent}})}}},[de,H,L,ee,w,o,M]);return i.useEffect(function(){if(F.current){if(null==O?void 0:O.length){var e;if(0===(null==Q?void 0:Q.length))requestAnimationFrame(function(){X(O.map(function(e){return e.replace(/\*/g,"")}))});else{var n=F.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){X(O.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}Y()}},[O,Q]),n.jsx(y.Provider,e.__assign({value:{expandedInfo:te,setExpanded:re,reasonToRow:ae}},{children:n.jsxs("div",e.__assign({ref:F,className:"".concat(a.default.container," ").concat("approving"!==j?a.default.wrapper:""," ").concat(q||""),style:null==A?void 0:A.container},{children:[n.jsx(m.default,e.__assign({components:ve,rehypePlugins:[C.default]},{children:ue})),le>0&&n.jsx("div",e.__assign({className:a.default.confidenceScoreContainer,style:null==A?void 0:A.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:a.default.confidenceScore,style:null==A?void 0:A.confidenceScore},{children:[n.jsx(g.default,{size:14,color:(null==A?void 0:A.confidenceScoreIconColor)||"#166534"}),le,"%"]}))})),N&&n.jsx("div",e.__assign({className:a.default.citationLoader,style:null==A?void 0:A.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==A?void 0:A.citationLoadingContainer,icon:null==A?void 0:A.citationLoadingIcon,text:null==A?void 0:A.citationLoadingText}})})),p&&n.jsx("div",e.__assign({className:"flex mt-5"},{children:n.jsx(_.default,{})}))]}))}))};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),i=require("./AtomicButton.module.css.js"),l=require("@mui/material"),t=require("../components/RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(a){var r,o=a.onClick,n=a.isDisable,c=void 0!==n&&n,d=a.children,u=a.type,p=void 0===u?"fill":u,_=a.className,y=void 0===_?"":_,I=a.overrideStyles,m=void 0!==I&&I,b=a.style,v=a.lscUIAgent,f=t.useRequirementAI().customStyles,g="fill"===p?i.default.fill:i.default.outline,U=m?"".concat(y," ").concat(g).trim():"".concat(y," ").concat(i.default.base," ").concat(g).trim();return s.jsx(l.Button,e.__assign({className:U,onClick:o,disabled:c,style:e.__assign(e.__assign({},null==f?void 0:f.atomicButton),b),sx:e.__assign({},c&&"fill"===p&&(null===(r=null==f?void 0:f.userStoryCardStyles)||void 0===r?void 0:r.fillDisabled)?{"&.Mui-disabled":{background:"".concat(f.userStoryCardStyles.fillDisabled.backgroundColor," !important"),color:"".concat(f.userStoryCardStyles.fillDisabled.color," !important"),pointerEvents:"all !important",cursor:"".concat(f.userStoryCardStyles.fillDisabled.cursor," !important")}}:{})},v?e.__assign(e.__assign(e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},v.id?{id:v.id}:{}),v.lscUIType?{"data-lsc-ui-type":v.lscUIType}:{}),v.lscUILabel?{"data-lsc-ui-label":v.lscUILabel}:{}),v.lscUIDescription?{"data-lsc-ui-description":v.lscUIDescription}:{}),v.lscUIWhenToApply?{"data-lsc-ui-when-to-apply":v.lscUIWhenToApply}:{}),v.lscUIInteractionDelayInSeconds?{"data-lsc-ui-interaction-delay-in-seconds":v.lscUIInteractionDelayInSeconds}:{}),v.lscUIInteractBehaviorControl?{"data-lsc-ui-interact-behavior-control":v.lscUIInteractBehaviorControl}:{}):{},{children:d}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),i=require("./AtomicButton.module.css.js"),t=require("@mui/material"),l=require("../components/RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(a){var n=a.onClick,c=a.isDisable,r=void 0!==c&&c,o=a.children,u=a.type,d=void 0===u?"fill":u,I=a.className,_=void 0===I?"":I,p=a.overrideStyles,m=void 0!==p&&p,y=a.style,U=a.lscUIAgent,v="fill"===d?r?i.default.fillDisabled:i.default.fill:i.default.outline,f=l.useRequirementAI().customStyles,g=m?"".concat(_," ").concat(v).trim():"".concat(_," ").concat(i.default.base," ").concat(v).trim();return s.jsx(t.Button,e.__assign({className:g,onClick:n,disabled:r,style:e.__assign(e.__assign({},null==f?void 0:f.atomicButton),y)},U?e.__assign(e.__assign(e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},U.id?{id:U.id}:{}),U.lscUIType?{"data-lsc-ui-type":U.lscUIType}:{}),U.lscUILabel?{"data-lsc-ui-label":U.lscUILabel}:{}),U.lscUIDescription?{"data-lsc-ui-description":U.lscUIDescription}:{}),U.lscUIWhenToApply?{"data-lsc-ui-when-to-apply":U.lscUIWhenToApply}:{}),U.lscUIInteractionDelayInSeconds?{"data-lsc-ui-interaction-delay-in-seconds":U.lscUIInteractionDelayInSeconds}:{}),U.lscUIInteractBehaviorControl?{"data-lsc-ui-interact-behavior-control":U.lscUIInteractBehaviorControl}:{}):{},{children:o}))};
2
2
  //# sourceMappingURL=AtomicButton.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r="[MarkdownSearch]",n="markdown-search-highlight-active";exports.useMarkdownSearch=function(t,a){var l=e.useRef([]),u=e.useRef(-1),o=e.useRef(!1),c=e.useCallback(function(){o.current=!0,l.current.forEach(function(e){var r=e.mark,n=r.parentNode;if(n){for(;r.firstChild;)n.insertBefore(r.firstChild,r);n.removeChild(r)}}),l.current=[],u.current=-1,requestAnimationFrame(function(){setTimeout(function(){o.current=!1},0)})},[]),s=e.useCallback(function(e){for(var r,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),t="",a=[];r=n.nextNode();){for(var l=r,u=l.nodeValue||"",o=0;o<u.length;o++)a.push({node:l,offset:o});t+=u}return{fullText:t,map:a}},[]),i=e.useCallback(function(e,n,t){var u=n+t;if(!e[n]||!e[u-1])return null;var o=document.createRange();try{o.setStart(e[n].node,e[n].offset),o.setEnd(e[u-1].node,e[u-1].offset+1)}catch(e){return null}var c=document.createElement("mark");c.className="markdown-search-highlight",a&&Object.assign(c.style,a);try{o.surroundContents(c)}catch(e){return console.warn(r,"surroundContents failed, falling back"),null}return l.current.push({mark:c}),c},[a]),f=e.useCallback(function(e){var r=l.current;if(r.length){u.current>=0&&r[u.current]&&r[u.current].mark.classList.remove(n);var t=(e%r.length+r.length)%r.length;u.current=t;var a=r[t].mark;a.classList.add(n),a.scrollIntoView({behavior:"smooth",block:"center"})}},[]),h=e.useCallback(function(){f(u.current+1)},[f]),g=e.useCallback(function(){f(u.current-1)},[f]),d=e.useCallback(function(e){return e.toLowerCase().replace(/[^a-z0-9\s]/g,"")},[]),v=e.useCallback(function(e){for(var r=d(e),n=[],t=0;t<r.length-1;t++)n.push(r.slice(t,t+2));return n},[d]),k=e.useCallback(function(e,r){var n=v(e),t=v(r),a=new Set(n),l=0;return t.forEach(function(e){a.has(e)&&l++}),2*l/(n.length+t.length)},[v]),m=e.useCallback(function(e,r){var n=new Set(d(e).split(/\s+/).filter(Boolean)),t=new Set(d(r).split(/\s+/).filter(Boolean)),a=0;return n.forEach(function(e){return t.has(e)&&a++}),a/n.size},[d]),C=e.useCallback(function(e,r){for(var n=Array(e.length+1).fill(null).map(function(){return Array(r.length+1).fill(0)}),t=0,a=0,l=1;l<=e.length;l++)for(var u=1;u<=r.length;u++)e[l-1]===r[u-1]&&(n[l][u]=n[l-1][u-1]+1,n[l][u]>t&&(t=n[l][u],a=l));return{substring:e.slice(a-t,a),startOffset:a-t,length:t}},[]),b=e.useCallback(function(e){var n;if((null===(n=t.current)||void 0===n?void 0:n.isConnected)&&e.length){console.warn(r,"surroundContents failed, falling back"),o.current=!0,c(),o.current=!0;for(var a=s(t.current),u=a.fullText,h=a.map,g=u.toLowerCase(),d=!1,v=0,b=e;v<b.length;v++){var w=(S=b[v]).toLowerCase().trim();if(w)for(var p=0;-1!==(p=g.indexOf(w,p));)console.warn(r,"surroundContents failed, falling back"),i(h,p,w.length),d=!0,p+=w.length}if(!d)for(var x=0,L=e;x<L.length;x++){for(var S,T=(S=L[x]).length,y=0,E=-1,O=0;O<=u.length-T;O+=2){var M=u.slice(O,O+T),R=k(M,S),A=m(M,S);if(!(A<.8)){var N=.8*R+.2*A;N>y&&(y=N,E=O)}}if(y>.82&&-1!==E){M=u.slice(E,E+T);var q=C(M.toLowerCase(),S.toLowerCase()),B=q.startOffset,F=q.length;F>10&&i(h,E+B,F)}}requestAnimationFrame(function(){setTimeout(function(){o.current=!1},0)}),l.current.length>0&&f(0)}},[c,t,s,i,k,m,C,f]),w=e.useCallback(function(){return l.current.length},[]);return e.useMemo(function(){return{search:b,clear:c,next:h,prev:g,matchCount:w,isMutatingRef:o}},[b,c,h,g,w])};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r="[MarkdownSearch]";exports.useMarkdownSearch=function(t,n){var o=e.useRef([]),a=e.useCallback(function(){o.current.forEach(function(e){var r=e.mark,t=r.parentNode;if(t){for(;r.firstChild;)t.insertBefore(r.firstChild,r);t.removeChild(r)}}),o.current=[]},[]),l=function(e,r,t){var a=r+t;if(!e[r]||!e[a-1])return null;var l=e[r],c=e[a-1],s=document.createRange();try{s.setStart(l.node,l.offset),s.setEnd(c.node,c.offset+1)}catch(e){return null}var u=document.createElement("mark");u.className="markdown-search-highlight",n&&Object.assign(u.style,n);try{s.surroundContents(u)}catch(e){return null}return o.current.push({mark:u}),u},c=function(e){return e.toLowerCase().replace(/[^a-z0-9\s]/g,"")},s=function(e){for(var r=c(e),t=[],n=0;n<r.length-1;n++)t.push(r.slice(n,n+2));return t},u=function(e,r){var t=s(e),n=s(r),o=new Set(t),a=0;return n.forEach(function(e){o.has(e)&&a++}),2*a/(t.length+n.length)},i=function(e,r){var t=new Set(c(e).split(/\s+/).filter(Boolean)),n=new Set(c(r).split(/\s+/).filter(Boolean)),o=0;return t.forEach(function(e){return n.has(e)&&o++}),o/t.size},f=function(e,r){for(var t=Array(e.length+1).fill(null).map(function(){return Array(r.length+1).fill(0)}),n=0,o=0,a=1;a<=e.length;a++)for(var l=1;l<=r.length;l++)e[a-1]===r[l-1]&&(t[a][l]=t[a-1][l-1]+1,t[a][l]>n&&(n=t[a][l],o=a));return{substring:e.slice(o-n,o),startOffset:o-n,length:n}},h=e.useCallback(function(e,n){var o;if(void 0===n&&(n=1),t.current&&e.length&&(console.log(r,"Search started",e),a(),null===(o=t.current)||void 0===o?void 0:o.isConnected)){for(var c=function(e){for(var r,t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n="",o=[];r=t.nextNode();){for(var a=r,l=a.nodeValue||"",c=0;c<l.length;c++)o.push({node:a,offset:c});n+=l}return{fullText:n,map:o}}(t.current),s=c.fullText,h=c.map,g=s.toLowerCase(),d=0,v=null,m=!1,p=0,k=e;p<k.length;p++)for(var w=(z=k[p]).toLowerCase().trim(),b=0;-1!==(b=g.indexOf(w,b));){if(console.log(r,"Exact match found",b),(A=l(h,b,w.length))&&!v&&(v=A),m=!0,++d>=n)break;b+=w.length}if(m)return console.log(r,"Exact match phase complete, skipping fuzzy search"),void(null==v||v.scrollIntoView({behavior:"smooth",block:"center"}));console.log(r,"No exact matches, running strict fuzzy search");for(var C=0,y=e;C<y.length;C++){for(var z,x=(z=y[C]).length,S=0,E=-1,N=0;N<=s.length-x;N+=2){var O=s.slice(N,N+x),L=u(O,z),T=i(O,z);if(!(T<.8)){var B=.8*L+.2*T;B>S&&(S=B,E=N)}}if(console.log(r,"Best fuzzy score:",S),S>.82&&-1!==E){O=s.slice(E,E+x);var M=f(O.toLowerCase(),z.toLowerCase()),V=M.substring,_=M.startOffset,j=M.length;if(j>10){var A,F=E+_;console.log(r,"Fuzzy refined match",{refinedStart:F,length:j,substring:V}),(A=l(h,F,j))&&!v&&(v=A),d++}}}v?v.scrollIntoView({behavior:"smooth",block:"center"}):console.log(r,"No matches found")}},[a,t]);return e.useMemo(function(){return{search:h,clear:a}},[h,a])};
2
2
  //# sourceMappingURL=useMarkdownSearch.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),r=require("react"),o=require("../UserStoryPicker.context.js"),l=[{value:"currentRepository",label:"Current Repository"},{value:"allRepository",label:"All Repository"}];exports.ScopeDropdown=function(t){var a=t.options,n=void 0===a?l:a,c=t.className,i=t.style,p=t.labelStyle,u=t.selectStyle,d=o.useUSPContext(),_=d.state,y=d.dispatch,v=d.classNames,x=d.renderProps,S=d.onScopeRepoChange,j=r.useCallback(function(e){y({type:"SET_SCOPE_REPO",payload:e}),null==S||S(e)},[y,S]);if(x.renderScopeDropdown)return s.jsx(s.Fragment,{children:x.renderScopeDropdown(_.scopeRepo,j,n)});var b=["usp-scope",v.scopeDropdown,c].filter(Boolean).join(" ");return s.jsxs("div",e.__assign({className:b,style:i},{children:[s.jsx("span",e.__assign({className:"usp-scope__label",style:p},{children:"View:"})),s.jsx("select",e.__assign({className:"usp-scope__select",style:u,value:_.scopeRepo,onChange:function(e){return j(e.target.value)}},{children:n.map(function(r){return s.jsx("option",e.__assign({value:r.value},{children:r.label}),r.value)})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),r=require("react"),o=require("../UserStoryPicker.context.js");function n(){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:"m18 15-6-6-6 6"})}))}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:"m6 9 6 6 6-6"})}))}var l=[{value:"currentRepository",label:"Current Repository"},{value:"allRepository",label:"All Repositories"}];exports.ScopeDropdown=function(i){var u,a,c=i.options,p=void 0===c?l:c,d=i.className,_=i.style;i.labelStyle;var v=i.selectStyle,f=o.useUSPContext(),x=f.state,g=f.dispatch,j=f.classNames,m=f.renderProps,y=f.onScopeRepoChange,h=r.useState(!1),w=h[0],b=h[1],k=r.useRef(null),R=r.useCallback(function(e){g({type:"SET_SCOPE_REPO",payload:e}),null==y||y(e),b(!1)},[g,y]);if(r.useEffect(function(){function e(e){k.current&&!k.current.contains(e.target)&&b(!1)}return w&&document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[w]),m.renderScopeDropdown)return m.renderScopeDropdown(x.scopeRepo,R,p);var S=null!==(a=null===(u=p.find(function(e){return e.value===x.scopeRepo}))||void 0===u?void 0:u.label)&&void 0!==a?a:p[0].label,C=["usp-user-story-scope",j.scopeDropdown,d].filter(Boolean).join(" ");return s.jsxs("div",e.__assign({ref:k,className:[C,w&&"open"].filter(Boolean).join(" "),style:_},{children:[s.jsxs("button",e.__assign({type:"button",className:"usp-user-story-scope__trigger",style:v,onClick:function(){return b(function(e){return!e})}},{children:[s.jsx("span",e.__assign({className:"usp-user-story-scope__trigger-label"},{children:S})),s.jsx("span",e.__assign({className:"usp-user-story-scope__chevron"},{children:w?s.jsx(n,{}):s.jsx(t,{})}))," "]})),w&&s.jsx("ul",e.__assign({className:"usp-user-story-scope__menu",role:"listbox"},{children:p.map(function(r){return s.jsx("li",e.__assign({role:"option","aria-selected":x.scopeRepo===r.value,className:["usp-user-story-scope__option",x.scopeRepo===r.value&&"active"].filter(Boolean).join(" "),onClick:function(){return R(r.value)}},{children:r.label}),r.value)})}))]}))};
2
2
  //# sourceMappingURL=ScopeDropdown.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),r=require("react"),l=require("../UserStoryPicker.context.js"),a=[{value:"All Types",label:"All Types"},{value:"ECG Technical User Story",label:"ECG Technical User Story"}];exports.TypeDropdown=function(t){var n=t.options,o=void 0===n?a:n,c=t.className,i=t.style,p=t.labelStyle,u=t.selectStyle,y=l.useUSPContext(),d=y.state,_=y.dispatch,v=y.classNames,T=y.renderProps,h=y.onTypeChange,x=r.useCallback(function(e){_({type:"SET_TYPE",payload:e}),null==h||h(e)},[_,h]);if(T.renderTypeDropdown)return s.jsx(s.Fragment,{children:T.renderTypeDropdown(d.typeBy,x,o)});var j=["usp-scope",v.scopeDropdown,c].filter(Boolean).join(" ");return s.jsxs("div",e.__assign({className:j,style:i},{children:[s.jsx("span",e.__assign({className:"usp-scope__label",style:p},{children:"Type:"})),s.jsx("select",e.__assign({className:"usp-scope__select",style:u,value:d.typeBy,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)})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),n=require("react"),r=require("../UserStoryPicker.context.js");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:"m18 15-6-6-6 6"})}))}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:"m6 9 6 6 6-6"})}))}var l=[{value:"All Types",label:"All Types"},{value:"ECG Technical User Story",label:"ECG Technical User Story"}];exports.TypeDropdown=function(i){var u,a,c=i.options,p=void 0===c?l:c,d=i.className,y=i.style;i.labelStyle;var _=i.selectStyle,v=r.useUSPContext(),f=v.state,x=v.dispatch,g=v.classNames,j=v.renderProps,m=v.onTypeChange,h=n.useState(!1),w=h[0],b=h[1],k=n.useRef(null),T=n.useCallback(function(e){x({type:"SET_TYPE",payload:e}),null==m||m(e),b(!1)},[x,m]);if(n.useEffect(function(){function e(e){k.current&&!k.current.contains(e.target)&&b(!1)}return w&&document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[w]),j.renderTypeDropdown)return j.renderTypeDropdown(f.typeBy,T,p);var C=null!==(a=null===(u=p.find(function(e){return e.value===f.typeBy}))||void 0===u?void 0:u.label)&&void 0!==a?a:p[0].label,B=["usp-user-story-scope",g.scopeDropdown,d].filter(Boolean).join(" ");return s.jsxs("div",e.__assign({ref:k,className:[B,w&&"open"].filter(Boolean).join(" "),style:y},{children:[s.jsxs("button",e.__assign({type:"button",className:"usp-user-story-scope__trigger",style:_,onClick:function(){return b(function(e){return!e})}},{children:[s.jsx("span",e.__assign({className:"usp-user-story-scope__trigger-label"},{children:C})),s.jsx("span",e.__assign({className:"usp-user-story-scope__chevron"},{children:w?s.jsx(t,{}):s.jsx(o,{})}))," "]})),w&&s.jsx("ul",e.__assign({className:"usp-user-story-scope__menu"},{children:p.map(function(n){return s.jsx("li",e.__assign({className:["usp-user-story-scope__option",f.typeBy===n.value&&"active"].filter(Boolean).join(" "),onClick:function(){return T(n.value)}},{children:n.label}),n.value)})}))]}))};
2
2
  //# sourceMappingURL=TypeDropdown.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsx as o,jsxs as l,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ExternalLink as c,Download as d,Share2 as v,Copy as y,LoaderCircle as f,PencilIcon as m,ChevronUp as p,ChevronDown as h,Info as S,Bookmark as I}from"lucide-react";import C from"showdown";import{Menu as w,MenuItem as U,Tooltip as N}from"@mui/material";import{v4 as b}from"uuid";import g from"./UserStoryCard.module.css.js";import{formatMarkdown as D,indentMarkdown as x}from"../../utils/helpers.js";import{replaceTitleSection as B}from"../../utils/user-story.utils.js";import M from"../../shared/AtomicButton.js";import k from"../RichTextEditor/RichTextEditor.js";import A from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as T}from"../RequirementAIWrapper/RequirementAIWrapper.js";function R(t){for(var n,r=[],l=/<learned>(.*?)<\/learned>/g,i=0,a=0;null!==(n=l.exec(t));){var s=n[1],u=n.index;u>i&&r.push(o("span",{children:t.slice(i,u)},"text-pre-".concat(a++))),r.push(o(N,e({title:s,placement:"top"},{children:o(S,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(b()))),i=l.lastIndex}return i<(null==t?void 0:t.length)&&r.push(o("span",{children:t.slice(i)},"text-post-".concat(a++))),r}var j=function(t){var n,r=t.displayName,i=T().customStyles,a=null===(n=null==i?void 0:i.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return l("div",e({className:g.displayName,style:null==a?void 0:a.wrapper},{children:[o(I,{className:g.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),l("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},E=function(S){var I,N,b=S.isUserStoryCurrentlyUpdated,L=S.artifactId,z=S.artifactTitleId,P=S.parentUserStory,O=S.currentUserStory,W=S.onUserStoryChange,H=S.parentIndex,V=S.currentIndex,_=S.enableDownload,q=S.isDiffEditReviewMode,F=S.showUserStoryDiff,Q=S.handleDownloadUserStory,G=S.handleOpenSendDialog,J=S.updateUserStoryArtifact,K=S.selectedArtifactId,X=T(),Y=X.searchQueryList,Z=X.citations,$=X.customStyles,ee=null==$?void 0:$.userStoryCardStyles,te=null===(I=null==$?void 0:$.userStoryScreenStyles)||void 0===I?void 0:I.userStoryContentStyles,ne=a(e(e({},structuredClone(O)),{value:D(O.value)||""})),re=ne[0],oe=ne[1],le=a({userStory:!1}),ie=le[0],ae=le[1],se=T().userStory,ue=a(""===H||K===O.artifactId),ce=ue[0],de=ue[1],ve=a(!1);ve[0];var ye=ve[1],fe=a(null),me=fe[0],pe=fe[1],he=a(!1),Se=he[0],Ie=he[1],Ce=s(null),we=a(!1);we[0];var Ue=we[1],Ne=s(null);u(function(){b&&de(b)},[b]),u(function(){oe(e(e({},structuredClone(O)),{value:D(O.value)||""}))},[O]),u(function(){Y.length>0?de(!0):K&&de(K===O.artifactId)},[Y,K,O.artifactId]);var be=function(){pe(null)},ge=function(){de(function(e){return!e})};return l("div",e({className:g.card,style:null==ee?void 0:ee.cardStyle},{children:[l("div",e({className:g.titleSection,style:null==ee?void 0:ee.titleSection},{children:[l("div",e({className:g.titleRow,style:null==ee?void 0:ee.titleRow,onClick:ge},{children:[l("div",e({className:g.titleLeft,style:null==ee?void 0:ee.titleLeft,onMouseEnter:function(){return Ue(!0)},onMouseLeave:function(){return Ue(!1)}},{children:[o(j,{displayName:z}),o("h2",e({className:g.storyTitle,style:null==ee?void 0:ee.storyTitle},{children:R(O.title)}),O.artifactId)]})),l("div",e({className:g.titleActions,style:null==ee?void 0:ee.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!ie.userStory&&l(i,{children:[o("button",e({className:g.iconButton,style:null==ee?void 0:ee.iconButton,onClick:function(e){pe(e.currentTarget)}},{children:o(c,{size:16})})),l(w,e({id:"user-story-share-menu",anchorEl:me,open:!!me,onClose:function(){return pe(null)},style:null==ee?void 0:ee.userStoryShareMenu},{children:[_&&o(U,e({style:null==ee?void 0:ee.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return ye(!0),Q?[4,Promise.all([Q("pdf"),Q("doc")])]:[2];case 1:return e.sent(),ye(!1),[2]}})})}},{children:l("div",e({ref:Ce,className:g.menuItemContent,style:null==ee?void 0:ee.menuItemContent},{children:[o(d,{size:16,color:null==ee?void 0:ee.menuIconColor}),o("p",e({style:null==ee?void 0:ee.menuLabel},{children:"Download"}))]}))})),o(U,e({style:null==ee?void 0:ee.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){return t=O,P&&(t=e(e({},O),{value:"".concat(B(null==P?void 0:P.value,O.title)," \n").concat(O.value)})),null==G||G(!0,[t],O.artifactId),be(),[2]})})}},{children:l("div",e({style:null==ee?void 0:ee.menuItemContent,className:g.menuItemContentPadded},{children:[o(v,{size:16,color:null==ee?void 0:ee.menuIconColor}),o("p",e({style:null==ee?void 0:ee.menuLabel},{children:"Send"}))]}))})),o(U,e({style:null==ee?void 0:ee.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var e,t,n,o,l;return r(this,function(r){switch(r.label){case 0:e=new C.Converter,t=e.makeHtml(D(O.value)||O.value),n=function(e){var t=(new C.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(D(O.value)||O.value),o=new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return r.sent(),console.log("Copied User Story"),[3,5];case 3:return l=r.sent(),console.error("Failed to copy user story:",l),[3,5];case 4:return be(),[7];case 5:return[2]}})})}},{children:l("div",e({style:null==ee?void 0:ee.menuItemContent,className:g.menuItemContentPadded},{children:[o(y,{size:16,color:null==ee?void 0:ee.menuIconColor}),o("p",e({style:null==ee?void 0:ee.menuLabel},{children:"Copy"}))]}))}))]}))]}),ie.userStory&&ce?o(M,{isDisable:Se,type:"outline",children:"Cancel",style:null==ee?void 0:ee.cancelButton,onClick:function(){var t;null===(t=Ne.current)||void 0===t||t.abort(),ae(function(t){return e(e({},t),{userStory:!1})})}}):o(i,{}),ie.userStory&&ce?o(M,{type:"fill",children:Se?l("span",e({className:g.savingSpinner},{children:[o(f,{className:g.spinAnimation}),o("span",{children:"Saving..."})]})):"Save",isDisable:Se,style:null==ee?void 0:ee.saveButton,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return Ie(!0),"userStory"==="userStory"&&(W(re),console.log("I am changing RTE editor values",re)),[4,J(Z,se,L,null===(t=Ne.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ae(function(t){return e(e({},t),{userStory:!1})}),Ie(!1),[2]}})})}}):!q&&!F&&ce&&o("button",e({className:g.iconButton,style:null==ee?void 0:ee.editButton,onClick:function(){return ae(function(t){return e(e({},t),{userStory:!0})})}},{children:o(m,{color:null==ee?void 0:ee.pencilIconColor,size:16})})),o("button",e({type:"button",onClick:function(e){e.stopPropagation(),ge()},style:null==ee?void 0:ee.chevronButton,className:g.chevronButton},{children:o(ce?p:h,{className:g.chevronIcon,color:null==ee?void 0:ee.chevronIconColor})}))]}))]})),o("div",{className:g.divider,style:null==ee?void 0:ee.dividerStyle})]})),ce&&o("div",e({className:g.cardContent,style:null==ee?void 0:ee.cardContentStyle},{children:l("div",e({className:g.contentInner,style:null==ee?void 0:ee.contentInner},{children:[l("div",e({className:g.descriptionSection,style:null==ee?void 0:ee.descriptionSection},{children:[o("div",{className:g.justifyBetween,style:null==ee?void 0:ee.justifyBetween}),ie.userStory?o(k,{minHeight:"100%",height:"100%",type:"string",value:D(O.value)||"",handleUpdateState:function(t,n){var r=x(n);oe(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ie.userStory?"edit":"readOnly"}):o(A,{showUserStoryDiff:F,isParent:""===H,message:D(O.value)||"",artifactId:O.artifactId,customStyles:te})]})),null===(N=re.sub_features)||void 0===N?void 0:N.map(function(n,r){return o(E,{artifactId:L,isUserStoryCurrentlyUpdated:b,artifactTitleId:"".concat(z,"-").concat(String.fromCharCode(65+r)),parentUserStory:O,parentIndex:"".concat(H).concat(H&&".").concat(V),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,r){var o=t([],O.sub_features||[],!0);o[n]=r,W(e(e({},O),{sub_features:o}))}(r,n)},enableDownload:!0,isDiffEditReviewMode:q,showUserStoryDiff:F,updateUserStoryArtifact:J,handleDownloadUserStory:Q,handleOpenSendDialog:G},n.artifactId)})]}))}))]}))},L=function(n){var r=n.artifactTitleIDs,l=n.isDiffEditReviewMode,i=n.showUserStoryDiff,a=n.updateUserStoryArtifact,s=n.isUserStoryCurrentlyUpdated,u=n.artifactId,c=n.handleOpenSendDialog,d=n.handleDownloadUserStory,v=n.selectedArtifactId,y=T(),f=y.userStory,m=y.setUserStory,p=y.customStyles,h=null==p?void 0:p.userStoryCardStyles;return o("div",e({className:g.userStoryCardWrapper,style:null==h?void 0:h.userStoryCardWrapper},{children:f.map(function(e,n){return o(E,{isUserStoryCurrentlyUpdated:s,artifactId:u,artifactTitleId:r[n]||"",currentUserStory:e,onUserStoryChange:function(e){m(function(r){return r[n]=e,t([],r,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:l,showUserStoryDiff:i,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:d,selectedArtifactId:v},e.artifactId)})}))};export{E as StoryCard,L as UserStoryCardWrapper,E as default,R as replaceLearnedTagsWithInfo};
1
+ import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsx as o,jsxs as l,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ExternalLink as c,Download as d,Share2 as v,Copy as y,LoaderCircle as f,PencilIcon as m,ChevronUp as p,ChevronDown as h,Info as S,Bookmark as I}from"lucide-react";import C from"showdown";import{Menu as w,MenuItem as U,Tooltip as N}from"@mui/material";import{v4 as b}from"uuid";import g from"./UserStoryCard.module.css.js";import{formatMarkdown as x,indentMarkdown as D}from"../../utils/helpers.js";import{replaceTitleSection as B}from"../../utils/user-story.utils.js";import M from"../../shared/AtomicButton.js";import k from"../RichTextEditor/RichTextEditor.js";import A from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as T}from"../RequirementAIWrapper/RequirementAIWrapper.js";function R(t){for(var n,r=[],l=/<learned>(.*?)<\/learned>/g,i=0,a=0;null!==(n=l.exec(t));){var s=n[1],u=n.index;u>i&&r.push(o("span",{children:t.slice(i,u)},"text-pre-".concat(a++))),r.push(o(N,e({title:s,placement:"top"},{children:o(S,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(b()))),i=l.lastIndex}return i<(null==t?void 0:t.length)&&r.push(o("span",{children:t.slice(i)},"text-post-".concat(a++))),r}var j=function(t){var n,r=t.displayName,i=T().customStyles,a=null===(n=null==i?void 0:i.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return l("div",e({className:g.displayName,style:null==a?void 0:a.wrapper},{children:[o(I,{className:g.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),l("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},E=function(S){var I,N,b=S.isUserStoryCurrentlyUpdated,L=S.artifactId,z=S.artifactTitleId,P=S.parentUserStory,O=S.currentUserStory,W=S.onUserStoryChange,H=S.parentIndex,V=S.currentIndex,_=S.enableDownload,q=S.isDiffEditReviewMode,F=S.showUserStoryDiff,Q=S.handleDownloadUserStory,G=S.handleOpenSendDialog,J=S.updateUserStoryArtifact,K=S.selectedArtifactId,X=T(),Y=X.searchQueryList,Z=X.citations,$=X.customStyles,ee=null==$?void 0:$.userStoryCardStyles,te=null===(I=null==$?void 0:$.userStoryScreenStyles)||void 0===I?void 0:I.userStoryContentStyles,ne=a(e(e({},structuredClone(O)),{value:x(O.value)||""})),re=ne[0],oe=ne[1],le=a({userStory:!1}),ie=le[0],ae=le[1],se=T().userStory,ue=a(""===H||K===O.artifactId),ce=ue[0],de=ue[1],ve=a(!1);ve[0];var ye=ve[1],fe=a(null),me=fe[0],pe=fe[1],he=a(!1),Se=he[0],Ie=he[1],Ce=s(null),we=a(!1);we[0];var Ue=we[1],Ne=s(null);u(function(){b&&de(b)},[b]),u(function(){oe(e(e({},structuredClone(O)),{value:x(O.value)||""}))},[O]),u(function(){Y.length>0?de(!0):K&&de(K===O.artifactId)},[Y,K,O.artifactId]);var be=function(){pe(null)},ge=function(){de(function(e){return!e})};return l("div",e({className:g.card,style:null==ee?void 0:ee.cardStyle},{children:[l("div",e({className:g.titleSection,style:null==ee?void 0:ee.titleSection},{children:[l("div",e({className:g.titleRow,style:null==ee?void 0:ee.titleRow,onClick:ge},{children:[l("div",e({className:g.titleLeft,style:null==ee?void 0:ee.titleLeft,onMouseEnter:function(){return Ue(!0)},onMouseLeave:function(){return Ue(!1)}},{children:[o(j,{displayName:z}),o("h2",e({className:g.storyTitle,style:null==ee?void 0:ee.storyTitle},{children:R(O.title)}),O.artifactId)]})),l("div",e({className:g.titleActions,style:null==ee?void 0:ee.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!ie.userStory&&l(i,{children:[o("button",e({className:g.iconButton,style:null==ee?void 0:ee.iconButton,onClick:function(e){pe(e.currentTarget)}},{children:o(c,{size:16})})),l(w,e({id:"user-story-share-menu",anchorEl:me,open:!!me,onClose:function(){return pe(null)},style:null==ee?void 0:ee.userStoryShareMenu},{children:[_&&o(U,e({style:null==ee?void 0:ee.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return ye(!0),Q?[4,Promise.all([Q("pdf"),Q("doc")])]:[2];case 1:return e.sent(),ye(!1),[2]}})})}},{children:l("div",e({ref:Ce,className:g.menuItemContent,style:null==ee?void 0:ee.menuItemContent},{children:[o(d,{size:16,color:null==ee?void 0:ee.menuIconColor}),o("p",e({style:null==ee?void 0:ee.menuLabel},{children:"Download"}))]}))})),o(U,e({style:null==ee?void 0:ee.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){return t=O,P&&(t=e(e({},O),{value:"".concat(B(null==P?void 0:P.value,O.title)," \n").concat(O.value)})),null==G||G(!0,[t],O.artifactId),be(),[2]})})}},{children:l("div",e({style:null==ee?void 0:ee.menuItemContent,className:g.menuItemContentPadded},{children:[o(v,{size:16,color:null==ee?void 0:ee.menuIconColor}),o("p",e({style:null==ee?void 0:ee.menuLabel},{children:"Send"}))]}))})),o(U,e({style:null==ee?void 0:ee.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var e,t,n,o,l;return r(this,function(r){switch(r.label){case 0:e=new C.Converter,t=e.makeHtml(x(O.value)||O.value),n=function(e){var t=(new C.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(x(O.value)||O.value),o=new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return r.sent(),console.log("Copied User Story"),[3,5];case 3:return l=r.sent(),console.error("Failed to copy user story:",l),[3,5];case 4:return be(),[7];case 5:return[2]}})})}},{children:l("div",e({style:null==ee?void 0:ee.menuItemContent,className:g.menuItemContentPadded},{children:[o(y,{size:16,color:null==ee?void 0:ee.menuIconColor}),o("p",e({style:null==ee?void 0:ee.menuLabel},{children:"Copy"}))]}))}))]}))]}),ie.userStory&&ce?o(M,{type:"outline",children:"Cancel",style:null==ee?void 0:ee.cancelButton,onClick:function(){var t;null===(t=Ne.current)||void 0===t||t.abort(),ae(function(t){return e(e({},t),{userStory:!1})})}}):o(i,{}),ie.userStory&&ce?o(M,{type:"fill",children:Se?l("span",e({className:g.savingSpinner},{children:[o(f,{className:g.spinAnimation}),o("span",{children:"Saving..."})]})):"Save",isDisable:Se,style:null==ee?void 0:ee.saveButton,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return Ie(!0),"userStory"==="userStory"&&(W(re),console.log("I am changing RTE editor values",re)),[4,J(Z,se,L,null===(t=Ne.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ae(function(t){return e(e({},t),{userStory:!1})}),Ie(!1),[2]}})})}}):!q&&!F&&ce&&o("button",e({className:g.iconButton,style:null==ee?void 0:ee.editButton,onClick:function(){return ae(function(t){return e(e({},t),{userStory:!0})})}},{children:o(m,{color:null==ee?void 0:ee.pencilIconColor,size:16})})),o("button",e({type:"button",onClick:function(e){e.stopPropagation(),ge()},style:null==ee?void 0:ee.chevronButton,className:g.chevronButton},{children:o(ce?p:h,{className:g.chevronIcon,color:null==ee?void 0:ee.chevronIconColor})}))]}))]})),o("div",{className:g.divider,style:null==ee?void 0:ee.dividerStyle})]})),ce&&o("div",e({className:g.cardContent,style:null==ee?void 0:ee.cardContentStyle},{children:l("div",e({className:g.contentInner,style:null==ee?void 0:ee.contentInner},{children:[l("div",e({className:g.descriptionSection,style:null==ee?void 0:ee.descriptionSection},{children:[o("div",{className:g.justifyBetween,style:null==ee?void 0:ee.justifyBetween}),ie.userStory?o(k,{minHeight:"100%",height:"100%",type:"string",value:x(O.value)||"",handleUpdateState:function(t,n){var r=D(n);oe(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ie.userStory?"edit":"readOnly"}):o(A,{showUserStoryDiff:F,isParent:""===H,message:x(O.value)||"",artifactId:O.artifactId,customStyles:te})]})),null===(N=re.sub_features)||void 0===N?void 0:N.map(function(n,r){return o(E,{artifactId:L,isUserStoryCurrentlyUpdated:b,artifactTitleId:"".concat(z,"-").concat(String.fromCharCode(65+r)),parentUserStory:O,parentIndex:"".concat(H).concat(H&&".").concat(V),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,r){var o=t([],O.sub_features||[],!0);o[n]=r,W(e(e({},O),{sub_features:o}))}(r,n)},enableDownload:!0,isDiffEditReviewMode:q,showUserStoryDiff:F,updateUserStoryArtifact:J,handleDownloadUserStory:Q,handleOpenSendDialog:G},n.artifactId)})]}))}))]}))},L=function(n){var r=n.artifactTitleIDs,l=n.isDiffEditReviewMode,i=n.showUserStoryDiff,a=n.updateUserStoryArtifact,s=n.isUserStoryCurrentlyUpdated,u=n.artifactId,c=n.handleOpenSendDialog,d=n.handleDownloadUserStory,v=n.selectedArtifactId,y=T(),f=y.userStory,m=y.setUserStory,p=y.customStyles,h=null==p?void 0:p.userStoryCardStyles;return o("div",e({className:g.userStoryCardWrapper,style:null==h?void 0:h.userStoryCardWrapper},{children:f.map(function(e,n){return o(E,{isUserStoryCurrentlyUpdated:s,artifactId:u,artifactTitleId:r[n]||"",currentUserStory:e,onUserStoryChange:function(e){m(function(r){return r[n]=e,t([],r,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:l,showUserStoryDiff:i,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:d,selectedArtifactId:v},e.artifactId)})}))};export{E as StoryCard,L as UserStoryCardWrapper,E as default,R as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as e,__awaiter as t,__generator as i}from"tslib";import{jsx as n}from"react/jsx-runtime";import{useState as r,useEffect as s}from"react";import a from"@exuanbo/file-icons-js";import{File as o,FileText as c}from"lucide-react";import{cn as l}from"../../../../UserStoryImport/lib/cn.js";var m=!1;function f(f){var u=this,d=f.name,h=f.size,p=void 0===h?"12px":h,x=f.className,v=r(x||""),g=v[0],y=v[1];return s(function(){t(u,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,a.getClass(d,{array:!0})];case 1:return e=t.sent(),y(e.join(" ")),[2]}})})},[d]),s(function(){if(!m){var e=document.createElement("style");e.innerHTML="\n .custom-file-icon::before {\n font-size: inherit !important;\n }\n ",document.head.appendChild(e),m=!0}},[]),d.includes(".txt")?n(o,{className:l("w-3 h-3 mr-2 text-muted",x)}):d.includes(".pdf")?n(c,{className:l("w-3 h-3 mr-2 text-destructive",x)}):n("span",e({className:"mt-0",style:{width:p,height:p,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top"}},{children:g?n("i",{className:l("custom-file-icon",g,x),style:{fontSize:p,height:p,display:"inline-flex",alignItems:"center",lineHeight:1}}):n(o,{className:l("text-muted",x),width:p,height:p})}))}export{f as default};
2
+ //# sourceMappingURL=CustomFileIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomFileIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useMemo as r,useState as o,useRef as l,useCallback as a,useEffect as u}from"react";import c from"react-dom";import*as s from"monaco-editor";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as m,Maximize2 as f}from"lucide-react";"undefined"!=typeof self&&(self.MonacoEnvironment=e(e({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var g=!1,v=function(){if(!g&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),s.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),g=!0}catch(e){g=!0}};v(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var p=function(e){return"number"==typeof e&&Number.isFinite(e)},y=function(e,n){return p(e)&&p(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},b=function(e,n,t,i){var r,o=e[0],l=e[1];if(!Number.isFinite(o)||!Number.isFinite(l))return null;if(l<o&&(o=(r=[l,o])[0],l=r[1]),p(t)&&p(i)){var a=Math.max(o,t),u=Math.min(l,i);if(a>u)return null;var c=a-t+1,s=u-t+1,d=Math.max(1,c),h=Math.min(n,s);return d>h?null:[d,h]}var m=Math.max(1,o),f=Math.min(n,l);return m>f?null:[m,f]},N=function(e,n,t,i){if(0===e.length)return!1;var r=y(t,i);return!!r&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(r.start>n||r.end>n||Math.abs(r.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<r.start||n>r.end})))},x={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},C={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},w={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},M=function(e){return w[e.toLowerCase()]||e},k=function(t){var i=t.code,r=t.language,o=t.theme,a=t.fontSize,c=t.fontFamily,h=t.height,m=t.blueHighlightRanges,f=t.yellowHighlightRanges,g=t.backgroundColor,p=t.editorWrapperStyle,y=t.lineNumberOffset,b=void 0===y?0:y,N=t.lineNumberDigits,x=l(null),C=l(null),w=l(!1);return u(function(){w.current=!1,v();var e=setTimeout(function(){var e,n=x.current;if(n&&!w.current&&!C.current)try{s.editor.setTheme(o);var t=s.editor.create(n,{value:i,language:M(r),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:a,lineHeight:20,fontFamily:c,lineNumbers:function(e){return String(e+b)},folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,null!=N?N:4),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0});C.current=t;var l=[];m.forEach(function(e){var n=e[0],t=e[1];l.push({range:new s.Range(n,1,t,1),options:{isWholeLine:!0,className:d.highlightedLine,linesDecorationsClassName:d.highlightedLineDecoration}})}),f.forEach(function(e){var n=e[0],t=e[1];l.push({range:new s.Range(n,1,t,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),l.length>0&&t.createDecorationsCollection(l);var u=null!==(e=f[0])&&void 0!==e?e:m[0];u&&requestAnimationFrame(function(){!w.current&&C.current&&t.revealLineInCenter(u[0])})}catch(e){}},50);return function(){if(w.current=!0,clearTimeout(e),C.current){try{C.current.dispose()}catch(e){}C.current=null}}},[]),u(function(){try{s.editor.setTheme(o)}catch(e){}},[o]),n("div",e({className:d.editorWrapper,style:e({height:"".concat(h,"px"),backgroundColor:g},p)},{children:n("div",{ref:x,style:{width:"100%",height:"100%"}})}))},L=function(s){var g=s.citation,v=s.customStyles,w=s.customColors,M=s.customIcons,L=s.editorConfig,F=s.fileCallback,S=r(function(){return e(e({},x),w)},[w]),O=r(function(){return e(e({},C),L)},[L]),B=o(!1),H=B[0],W=B[1],j=l(null),E=l(!1),R=g.customMetadata.content||"",P=g.customMetadata.highlighted_text,T=g.customMetadata.start_line,z=g.customMetadata.end_line,D=r(function(){if(!P)return{};try{var e=P.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[P]),I=r(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(R));){var i=e[1]||"javascript",r=e[2].trim(),o=e[3].trim();r&&o&&n.push({filePath:r,code:o,language:i})}return n},[R]),_=a(function(e){return(D[e]||[]).map(function(e){var n=e.split("-").map(function(e){return Number(e.trim())}),t=n[0],i=n.length>1?n[1]:t;return Number.isFinite(t)&&Number.isFinite(i)?[t,i]:null}).filter(function(e){return null!==e})},[D]),q=r(function(){for(var e=function(e){var n=I[e],t=n.code.split("\n").length,i=_(n.filePath),r=N(i,t,T,z);if(i.map(function(e){return b(e,t,r?T:void 0,r?z:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<I.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[I,_,T,z]),G=q>=0,A=a(function(e,n){var t=_(e),i=N(t,n,T,z);return t.map(function(e){return b(e,n,i?T:void 0,i?z:void 0)}).filter(function(e){return null!==e})},[_,T,z]),J=a(function(e,n){if(null==T||null==z)return[];var t=n||function(e,n,t){var i=y(n,t);return!!i&&(i.start>e||i.end>e||Math.abs(i.length-e)<=1)}(e,T,z);if(t){var i=y(T,z);if(!i)return[];var r=Math.min(e,i.length);return r<1?[]:[[1,r]]}var o=Math.max(1,0===T?1:T),l=Math.min(z,e);return o>l?[]:[[o,l]]},[T,z]);u(function(){if(G&&!E.current&&I.length>0&&(null==F?void 0:F.autoOpenFirstHighlighted)&&(null==F?void 0:F.onOpenFile)){var e=I[q],n=A(e.filePath,e.code.split("\n").length);E.current=!0;var t=setTimeout(function(){F.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[G,q,I,A,F]),u(function(){E.current=!1},[R]),u(function(){if(!(q<0)){var e=setTimeout(function(){var e;null===(e=j.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[q,P]);var V=a(function(e,n){if(null==F?void 0:F.onOpenFile){var t=A(e,n);F.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[A,F]),$=a(function(){(null==F?void 0:F.onExpandClick)?F.onExpandClick({blocks:I,highlightMap:D}):W(!0)},[F,I,D]),K=!!(null==F?void 0:F.onOpenFile),Q=(null==M?void 0:M.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),U=function(i){return I.map(function(r,o){var l,a,u=r.code.split("\n").length,c=_(r.filePath),s=N(c,u,T,z),h=c.map(function(e){return b(e,u,s?T:void 0,s?z:void 0)}).filter(function(e){return null!==e}),m=s&&p(T)?h.map(function(e){var n=e[0],t=e[1];return[n+T-1,t+T-1]}):h,g=h.length>0,y=o===q,x=i?600:O.maxHeight,C=(l=20*r.code.split("\n").length+16+4,Math.min(Math.max(l,O.minHeight),x)),w=r.filePath.split("/").pop(),M=J(u,s),L=s&&p(T)?T-1:0,F=L+u,B=String(Math.max(1,F)).length;return t("div",e({ref:!i&&y?j:void 0,"data-highlighted":g?"true":void 0,"data-first-highlighted":y?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(S.border)},null==v?void 0:v.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:g?S.highlightBg:S.headerBg,borderBottom:"1px solid ".concat(S.border),color:g?S.highlightGutter:S.foreground},g?null==v?void 0:v.headerHighlighted:null==v?void 0:v.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:r.filePath,style:null==v?void 0:v.fileName},{children:w})),K&&n("button",e({className:d.openFileButton,onClick:function(){return V(r.filePath,u)},title:"Open in editor","aria-label":"Open ".concat(w," in editor"),style:null==v?void 0:v.openFileButton},{children:Q}))]})),t("div",e({className:d.headerRight},{children:[g&&n("span",e({className:d.lineRanges,style:null==v?void 0:v.lineRanges},{children:(a=m,a.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!i&&0===o&&n("button",e({className:d.expandButton,style:null==v?void 0:v.expandButton,onClick:$,title:"Expand","aria-label":"Expand code view"},{children:n(f,{size:13})}))]}))]})),n(k,{code:r.code,language:r.language,theme:O.theme,fontSize:O.fontSize,fontFamily:O.fontFamily,height:C,blueHighlightRanges:M,yellowHighlightRanges:h,backgroundColor:S.background,editorWrapperStyle:null==v?void 0:v.editorWrapper,lineNumberOffset:L,lineNumberDigits:B})]}),o)})};if(0===I.length)return n("div",e({className:d.emptyState,style:e({color:S.inactiveText},null==v?void 0:v.emptyState)},{children:"No code content available"}));var X=H?c.createPortal(n("div",e({className:d.modalOverlay,style:null==v?void 0:v.modalOverlay,onClick:function(e){e.target===e.currentTarget&&W(!1)}},{children:t("div",e({className:d.modalContent,style:null==v?void 0:v.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==v?void 0:v.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==v?void 0:v.modalTitle},{children:1===I.length?I[0].filePath:"".concat(I.length," files")})),n("button",e({className:d.modalCloseButton,style:null==v?void 0:v.modalCloseButton,onClick:function(){return W(!1)},"aria-label":"Close expanded view"},{children:n(m,{size:16})}))]})),n("div",e({className:d.modalBody},{children:n("div",e({className:d.container,style:null==v?void 0:v.container},{children:U(!0)}))}))]}))})),document.body):null;return t(i,{children:[X,n("div",e({className:d.container,style:null==v?void 0:v.container},{children:U(!1)}))]})};export{L as default};
1
+ import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useMemo as r,useState as o,useRef as l,useCallback as a,useEffect as u}from"react";import c from"react-dom";import*as s from"monaco-editor";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as m,Maximize2 as f}from"lucide-react";import v from"./CustomFileIcon.js";"undefined"!=typeof self&&(self.MonacoEnvironment=e(e({},self.MonacoEnvironment),{getWorker:function(){return{postMessage:function(){},terminate:function(){},addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!0},onmessage:null,onerror:null,onmessageerror:null}}}));var g=!1,p=function(){if(!g&&"undefined"!=typeof document)try{var e=document.createElement("div");e.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden;pointer-events:none;",document.body.appendChild(e),s.editor.create(e,{value:"",language:"plaintext",automaticLayout:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},overviewRulerLanes:0,lineNumbers:"off",glyphMargin:!1,folding:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}).dispose(),document.body.removeChild(e),g=!0}catch(e){g=!0}};p(),"undefined"!=typeof window&&(window.addEventListener("error",function(e){var n=e.message||"";if(n.includes("Worker")||n.includes("Monaco"))return e.preventDefault(),e.stopImmediatePropagation(),!1},!0),window.addEventListener("unhandledrejection",function(e){var n,t=(null===(n=e.reason)||void 0===n?void 0:n.message)||String(e.reason||"");(t.includes("Worker")||t.includes("Monaco"))&&(e.preventDefault(),e.stopImmediatePropagation())},!0));var y=function(e){return"number"==typeof e&&Number.isFinite(e)},b=function(e,n){return y(e)&&y(n)?e<=0||n<e?null:{start:e,end:n,length:n-e+1}:null},N=function(e,n,t,i){var r,o=e[0],l=e[1];if(!Number.isFinite(o)||!Number.isFinite(l))return null;if(l<o&&(o=(r=[l,o])[0],l=r[1]),y(t)&&y(i)){var a=Math.max(o,t),u=Math.min(l,i);if(a>u)return null;var c=a-t+1,s=u-t+1,d=Math.max(1,c),h=Math.min(n,s);return d>h?null:[d,h]}var m=Math.max(1,o),f=Math.min(n,l);return m>f?null:[m,f]},x=function(e,n,t,i){if(0===e.length)return!1;var r=b(t,i);return!!r&&(!!e.some(function(e){var t=e[0],i=e[1];return t>n||i>n})||(r.start>n||r.end>n||Math.abs(r.length-n)<=1&&!e.every(function(e){var n=e[0];return e[1]<r.start||n>r.end})))},C={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},w={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},M={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},k=function(e){return M[e.toLowerCase()]||e},F=function(t){var i=t.code,r=t.language,o=t.theme,a=t.fontSize,c=t.fontFamily,h=t.height,m=t.yellowHighlightRanges,f=t.backgroundColor,v=t.editorWrapperStyle,g=t.lineNumberOffset,y=void 0===g?0:g,b=t.lineNumberDigits,N=l(null),x=l(null),C=l(!1);return u(function(){C.current=!1,p();var e=setTimeout(function(){var e=N.current;if(e&&!C.current&&!x.current)try{s.editor.setTheme(o);var n=s.editor.create(e,{value:i,language:k(r),readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:a,lineHeight:20,fontFamily:c,lineNumbers:function(e){return String(e+y)},folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,null!=b?b:4),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0});x.current=n;var t=[];m.forEach(function(e){var n=e[0],i=e[1];t.push({range:new s.Range(n,1,i,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),t.length>0&&n.createDecorationsCollection(t);var l=m[0];l&&requestAnimationFrame(function(){!C.current&&x.current&&n.revealLineInCenter(l[0])})}catch(e){}},50);return function(){if(C.current=!0,clearTimeout(e),x.current){try{x.current.dispose()}catch(e){}x.current=null}}},[]),u(function(){try{s.editor.setTheme(o)}catch(e){}},[o]),n("div",e({className:d.editorWrapper,style:e({height:"".concat(h,"px"),backgroundColor:f},v)},{children:n("div",{ref:N,style:{width:"100%",height:"100%"}})}))},S=function(s){var g=s.citation,p=s.customStyles,M=s.customColors,k=s.customIcons,S=s.editorConfig,L=s.fileCallback,O=r(function(){return e(e({},C),M)},[M]),T=r(function(){return e(e({},w),S)},[S]),j=o(!1),B=j[0],P=j[1],W=l(null),E=l(!1),H=g.customMetadata.content||"",z=g.customMetadata.highlighted_text,R=g.customMetadata.start_line,D=g.customMetadata.end_line,I=y(R)?R+1:R,_=r(function(){if(!z)return{};try{var e=z.trim();return e.startsWith("```")&&(e=(e=e.replace(/^```\w*\n?/,"")).replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[z]),q=r(function(){for(var e,n=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;null!==(e=t.exec(H));){var i=e[1]||"javascript",r=e[2].trim(),o=e[3].trim();r&&o&&n.push({filePath:r,code:o,language:i})}return n},[H]),G=a(function(e){return(_[e]||[]).map(function(e){var n=e.split("-").map(function(e){return Number(e.trim())}),t=n[0],i=n.length>1?n[1]:t;return Number.isFinite(t)&&Number.isFinite(i)?[t,i]:null}).filter(function(e){return null!==e})},[_]),A=r(function(){for(var e=function(e){var n=q[e],t=n.code.split("\n").length,i=G(n.filePath),r=x(i,t,I,D);if(i.map(function(e){return N(e,t,r?I:void 0,r?D:void 0)}).filter(function(e){return null!==e}).length>0)return{value:e}},n=0;n<q.length;n++){var t=e(n);if("object"==typeof t)return t.value}return-1},[q,G,I,D]),J=A>=0,V=a(function(e,n){var t=G(e),i=x(t,n,I,D);return t.map(function(e){return N(e,n,i?I:void 0,i?D:void 0)}).filter(function(e){return null!==e})},[G,I,D]),$=a(function(e,n){var t=G(e);if(x(t,n,I,D)){var i=b(I,D);return i?t.map(function(e){var n=e[0],t=e[1],r=n<=t?[n,t]:[t,n],o=Math.max(r[0],i.start),l=Math.min(r[1],i.end);return o>l?null:[o,l]}).filter(function(e){return null!==e}):[]}return V(e,n)},[G,V,I,D]);u(function(){if(J&&!E.current&&q.length>0&&(null==L?void 0:L.autoOpenFirstHighlighted)&&(null==L?void 0:L.onOpenFile)){var e=q[A],n=$(e.filePath,e.code.split("\n").length);E.current=!0;var t=setTimeout(function(){L.onOpenFile({filePath:e.filePath,ranges:n.length>0?n:null})},300);return function(){return clearTimeout(t)}}},[J,A,q,V,L]),u(function(){E.current=!1},[H]),u(function(){if(!(A<0)){var e=setTimeout(function(){var e;null===(e=W.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return function(){return clearTimeout(e)}}},[A,z]);var K=a(function(e,n){if(null==L?void 0:L.onOpenFile){var t=$(e,n);L.onOpenFile({filePath:e,ranges:t.length>0?t:null})}},[$,L]),Q=a(function(){(null==L?void 0:L.onExpandClick)?L.onExpandClick({blocks:q,highlightMap:_}):P(!0)},[L,q,_]),U=!!(null==L?void 0:L.onOpenFile),X=(null==k?void 0:k.readFileCitationIcon)||n(h,{style:{width:"14px",height:"14px"}}),Y=function(i){return q.map(function(r,o){var l,a,u=r.code.split("\n").length,c=G(r.filePath),s=x(c,u,I,D),h=c.map(function(e){return N(e,u,s?I:void 0,s?D:void 0)}).filter(function(e){return null!==e}),m=s&&y(I)?h.map(function(e){var n=e[0],t=e[1];return[n+I-1,t+I-1]}):h,v=h.length>0,g=o===A,b=i?600:T.maxHeight,C=(l=20*r.code.split("\n").length+16+4,Math.min(Math.max(l,T.minHeight),b)),w=r.filePath.split("/").pop(),M=s&&y(I)?I-1:0,k=M+u,S=String(Math.max(1,k)).length;return t("div",e({ref:!i&&g?W:void 0,"data-highlighted":v?"true":void 0,"data-first-highlighted":g?"true":void 0,className:d.blockContainer,style:e({border:"1px solid ".concat(O.border)},null==p?void 0:p.blockContainer)},{children:[t("div",e({className:d.header,style:e({backgroundColor:v?O.highlightBg:O.headerBg,borderBottom:"1px solid ".concat(O.border),color:v?O.highlightGutter:O.foreground},v?null==p?void 0:p.headerHighlighted:null==p?void 0:p.header)},{children:[t("div",e({className:d.headerLeft},{children:[n("span",e({className:d.fileName,title:r.filePath,style:null==p?void 0:p.fileName,onClick:function(){return K(r.filePath,u)}},{children:w})),U&&n("button",e({className:d.openFileButton,onClick:function(){return K(r.filePath,u)},title:"Open in editor","aria-label":"Open ".concat(w," in editor"),style:null==p?void 0:p.openFileButton},{children:X}))]})),t("div",e({className:d.headerRight},{children:[v&&n("span",e({className:d.lineRanges,style:null==p?void 0:p.lineRanges},{children:(a=m,a.map(function(e){var n=e[0],t=e[1];return n===t?"L".concat(n):"L".concat(n,"-").concat(t)}).join(", "))})),!i&&0===o&&n("button",e({className:d.expandButton,style:null==p?void 0:p.expandButton,onClick:Q,title:"Expand","aria-label":"Expand code view"},{children:n(f,{size:13})}))]}))]})),n(F,{code:r.code,language:r.language,theme:T.theme,fontSize:T.fontSize,fontFamily:T.fontFamily,height:C,yellowHighlightRanges:h,backgroundColor:O.background,editorWrapperStyle:null==p?void 0:p.editorWrapper,lineNumberOffset:M,lineNumberDigits:S})]}),o)})};if(0===q.length)return n("div",e({className:d.emptyState,style:e({color:O.inactiveText},null==p?void 0:p.emptyState)},{children:"No code content available"}));var Z=B?c.createPortal(n("div",e({className:d.modalOverlay,style:null==p?void 0:p.modalOverlay,onClick:function(e){e.target===e.currentTarget&&P(!1)}},{children:t("div",e({className:d.modalContent,style:null==p?void 0:p.modalContent},{children:[t("div",e({className:d.modalHeader,style:null==p?void 0:p.modalHeader},{children:[n("span",e({className:d.modalTitle,style:null==p?void 0:p.modalTitle},{children:1===q.length?t("span",e({className:d.modalTitleContent},{children:[n(v,{name:q[0].filePath,size:"15px"}),n("span",e({className:d.modalTitleText},{children:q[0].filePath}))]})):"".concat(q.length," files")})),n("button",e({className:d.modalCloseButton,style:null==p?void 0:p.modalCloseButton,onClick:function(){return P(!1)},"aria-label":"Close expanded view"},{children:n(m,{size:16})}))]})),n("div",e({className:d.modalBody},{children:n("div",e({className:d.container,style:null==p?void 0:p.container},{children:Y(!0)}))}))]}))})),document.body):null;return t(i,{children:[Z,n("div",e({className:d.container,style:null==p?void 0:p.container},{children:Y(!1)}))]})};export{S as default};
2
2
  //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- var e={container:"ReadFileCitationContent-module_container__Oi3tV",blockContainer:"ReadFileCitationContent-module_blockContainer__yGEX8",header:"ReadFileCitationContent-module_header__39-AD",headerLeft:"ReadFileCitationContent-module_headerLeft__WOyMV",fileName:"ReadFileCitationContent-module_fileName__ql9Qu",openFileButton:"ReadFileCitationContent-module_openFileButton__oqea1",lineRanges:"ReadFileCitationContent-module_lineRanges__RIofb",editorWrapper:"ReadFileCitationContent-module_editorWrapper__ab5Sg",highlightedLine:"ReadFileCitationContent-module_highlightedLine__w6iv-",highlightedLineDecoration:"ReadFileCitationContent-module_highlightedLineDecoration__EykBL",yellowHighlightedLine:"ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP",yellowHighlightedLineDecoration:"ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT",headerRight:"ReadFileCitationContent-module_headerRight__Hetda",expandButton:"ReadFileCitationContent-module_expandButton__wjkgL",modalOverlay:"ReadFileCitationContent-module_modalOverlay__ZJSqk",modalContent:"ReadFileCitationContent-module_modalContent__PA-tB",modalHeader:"ReadFileCitationContent-module_modalHeader__9Jcjf",modalTitle:"ReadFileCitationContent-module_modalTitle__M60Jk",modalCloseButton:"ReadFileCitationContent-module_modalCloseButton__4bymQ",modalBody:"ReadFileCitationContent-module_modalBody__Oo7OO"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReadFileCitationContent-module_container__Oi3tV{display:flex;flex-direction:column;gap:12px;margin-top:4px}.ReadFileCitationContent-module_blockContainer__yGEX8{border-radius:4px;overflow:hidden}.ReadFileCitationContent-module_header__39-AD{align-items:center;display:flex;font-family:monospace;font-size:12px;gap:8px;justify-content:space-between;padding:6px 12px}.ReadFileCitationContent-module_headerLeft__WOyMV{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.ReadFileCitationContent-module_fileName__ql9Qu{opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_openFileButton__oqea1{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_openFileButton__oqea1:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_lineRanges__RIofb{flex-shrink:0;font-size:11px;max-width:300px;opacity:.7;overflow-x:auto;white-space:nowrap}.ReadFileCitationContent-module_editorWrapper__ab5Sg{overflow:hidden}.ReadFileCitationContent-module_highlightedLine__w6iv-{background-color:#3b82f626!important}.ReadFileCitationContent-module_highlightedLineDecoration__EykBL{background-color:#3b82f6;margin-left:0;width:3px!important}.ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP{background-color:#eab30833!important}.ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N{background-color:#eab308;margin-left:0;width:3px!important}.ReadFileCitationContent-module_emptyState__34kcg{font-size:14px;padding:12px;text-align:center}.ReadFileCitationContent-module_loadingEditor__aOHYT{align-items:center;display:flex;font-size:14px;height:64px;justify-content:center}.ReadFileCitationContent-module_headerRight__Hetda{align-items:center;display:flex;flex-shrink:0;gap:6px}.ReadFileCitationContent-module_expandButton__wjkgL{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;flex-shrink:0;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_expandButton__wjkgL:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalOverlay__ZJSqk{align-items:center;background-color:#000000b3;box-sizing:border-box;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:9999}.ReadFileCitationContent-module_modalContent__PA-tB{background:#1e1e1e;border:1px solid #3c3c3c;border-radius:6px;display:flex;flex-direction:column;max-height:90vh;max-width:900px;overflow:hidden;width:100%}.ReadFileCitationContent-module_modalHeader__9Jcjf{align-items:center;background:#252526;border-bottom:1px solid #3c3c3c;display:flex;flex-shrink:0;justify-content:space-between;padding:10px 14px}.ReadFileCitationContent-module_modalTitle__M60Jk{color:#ccc;font-family:monospace;font-size:13px;opacity:.85}.ReadFileCitationContent-module_modalCloseButton__4bymQ{align-items:center;background:none;border:none;border-radius:4px;color:#ccc;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_modalCloseButton__4bymQ:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalBody__Oo7OO{flex:1;overflow-y:auto;padding:12px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
1
+ var e={container:"ReadFileCitationContent-module_container__Oi3tV",blockContainer:"ReadFileCitationContent-module_blockContainer__yGEX8",header:"ReadFileCitationContent-module_header__39-AD",headerLeft:"ReadFileCitationContent-module_headerLeft__WOyMV",fileName:"ReadFileCitationContent-module_fileName__ql9Qu",openFileButton:"ReadFileCitationContent-module_openFileButton__oqea1",lineRanges:"ReadFileCitationContent-module_lineRanges__RIofb",editorWrapper:"ReadFileCitationContent-module_editorWrapper__ab5Sg",highlightedLine:"ReadFileCitationContent-module_highlightedLine__w6iv-",highlightedLineDecoration:"ReadFileCitationContent-module_highlightedLineDecoration__EykBL",yellowHighlightedLine:"ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP",yellowHighlightedLineDecoration:"ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N",emptyState:"ReadFileCitationContent-module_emptyState__34kcg",loadingEditor:"ReadFileCitationContent-module_loadingEditor__aOHYT",headerRight:"ReadFileCitationContent-module_headerRight__Hetda",expandButton:"ReadFileCitationContent-module_expandButton__wjkgL",modalOverlay:"ReadFileCitationContent-module_modalOverlay__ZJSqk",modalContent:"ReadFileCitationContent-module_modalContent__PA-tB",modalHeader:"ReadFileCitationContent-module_modalHeader__9Jcjf",modalTitle:"ReadFileCitationContent-module_modalTitle__M60Jk",modalTitleContent:"ReadFileCitationContent-module_modalTitleContent__QPLZb",modalTitleText:"ReadFileCitationContent-module_modalTitleText__CptNG",modalCloseButton:"ReadFileCitationContent-module_modalCloseButton__4bymQ",modalBody:"ReadFileCitationContent-module_modalBody__Oo7OO"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReadFileCitationContent-module_container__Oi3tV{display:flex;flex-direction:column;gap:12px;margin-top:4px}.ReadFileCitationContent-module_blockContainer__yGEX8{border-radius:4px;overflow:hidden}.ReadFileCitationContent-module_header__39-AD{align-items:center;display:flex;font-family:monospace;font-size:12px;gap:8px;justify-content:space-between;padding:6px 12px}.ReadFileCitationContent-module_headerLeft__WOyMV{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.ReadFileCitationContent-module_fileName__ql9Qu{cursor:pointer;opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_openFileButton__oqea1{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_openFileButton__oqea1:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_lineRanges__RIofb{flex-shrink:0;font-size:11px;max-width:300px;opacity:.7;overflow-x:auto;white-space:nowrap}.ReadFileCitationContent-module_editorWrapper__ab5Sg{overflow:hidden}.ReadFileCitationContent-module_highlightedLine__w6iv-{background-color:#3b82f626!important}.ReadFileCitationContent-module_highlightedLineDecoration__EykBL{background-color:#3b82f6;margin-left:0;width:3px!important}.ReadFileCitationContent-module_yellowHighlightedLine__bZ6XP{background-color:#eab30833!important}.ReadFileCitationContent-module_yellowHighlightedLineDecoration__Ru91N{background-color:#eab308;margin-left:0;width:3px!important}.ReadFileCitationContent-module_emptyState__34kcg{font-size:14px;padding:12px;text-align:center}.ReadFileCitationContent-module_loadingEditor__aOHYT{align-items:center;display:flex;font-size:14px;height:64px;justify-content:center}.ReadFileCitationContent-module_headerRight__Hetda{align-items:center;display:flex;flex-shrink:0;gap:6px}.ReadFileCitationContent-module_expandButton__wjkgL{align-items:center;background:none;border:none;border-radius:4px;color:inherit;cursor:pointer;display:flex;flex-shrink:0;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_expandButton__wjkgL:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalOverlay__ZJSqk{align-items:center;background-color:#000000b3;box-sizing:border-box;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:9999}.ReadFileCitationContent-module_modalContent__PA-tB{background:#1e1e1e;border:1px solid #3c3c3c;border-radius:6px;display:flex;flex-direction:column;max-height:90vh;max-width:900px;overflow:hidden;width:100%}.ReadFileCitationContent-module_modalHeader__9Jcjf{align-items:center;background:#252526;border-bottom:1px solid #3c3c3c;display:flex;flex-shrink:0;justify-content:space-between;padding:10px 14px}.ReadFileCitationContent-module_modalTitle__M60Jk{align-items:center;color:#ccc;display:flex;font-family:monospace;font-size:13px;gap:6px;min-width:0;opacity:.85}.ReadFileCitationContent-module_modalTitleContent__QPLZb{align-items:center;display:inline-flex;gap:6px;min-width:0}.ReadFileCitationContent-module_modalTitleText__CptNG{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ReadFileCitationContent-module_modalCloseButton__4bymQ{align-items:center;background:none;border:none;border-radius:4px;color:#ccc;cursor:pointer;display:flex;justify-content:center;opacity:.7;padding:2px;transition:opacity .15s ease,background-color .15s ease}.ReadFileCitationContent-module_modalCloseButton__4bymQ:hover{background-color:#ffffff1a;opacity:1}.ReadFileCitationContent-module_modalBody__Oo7OO{flex:1;overflow-y:auto;padding:12px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=ReadFileCitationContent.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as n,__spreadArray as o}from"tslib";import{jsx as i,jsxs as r}from"react/jsx-runtime";import{createContext as t,useRef as l,useState as a,useCallback as d,useMemo as c,useEffect as s,useContext as u}from"react";import v from"react-markdown";import m from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as f}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as g}from"@mui/material";import C from"../../shared/UpdatedAnimationContent.js";import y from"../../shared/GeneratedCodeCitation.js";import R from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import w from"../ai-reasoning/AiReasoningCitation.js";import I from"../../icons/RelevanceScoreIcon.js";import b from"../RecommendationBlock/RecommendationBlock.js";import N from"../UserStoryCard/AttachedContext.js";var A=t(!1),x=t({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),j=t({rowId:""}),L=function(e){var o,t,a=e.children,d=e.node,c=l(Math.random().toString(36).slice(2)).current,s=u(x).expandedInfo,v=(null==s?void 0:s.rowId)===c,m=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(t=null===(o=null==d?void 0:d.properties)||void 0===o?void 0:o.style)&&void 0!==t?t:void 0;return r(j.Provider,n({value:{rowId:c}},{children:[i("tr",n({style:f?{cssText:f}:void 0},{children:a})),v&&(null==s?void 0:s.aiReason)&&i("tr",n({style:{width:"100%"}},{children:i("td",n({colSpan:m||1,className:h.tableExpandedCell},{children:i("div",n({className:h.tableExpandedCellInner},{children:i("div",{className:h.tableExpandedCellContent})}))}))}))]}))},T=function(t){var j=t.message,T=t.isParent,U=t.scenario,M=t.showUserStoryDiff,k=void 0!==M&&M,P=t.aiReasoningsForBlock,E=t.isCitationLoadingDisplay,F=void 0!==E&&E,q=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var $=t.customStyles,B=t.customIcons,D=t.aiReasoningDiffView,W=t.userStoryCitations,H=t.artifactId,_=t.isCraflow,z=t.onCraAccept,G=t.onCraReject,Q=l(null),O=S(),V=O.userStory,J=O.getAvgScoreForStory,K=O.setUserStory,X=O.aiReasoning,Y=O.setAiReasoning,Z=O.customIcons,ee=O.searchQueryList,ne=O.searchQueryReasoningIdList,oe=null!=B?B:null==Z?void 0:Z.userStoryIcons,ie=null==$?void 0:$.searchHighlight,re=f(Q,ie),te=re.search,le=re.clear,ae=re.isMutatingRef,de=a("1"),ce=de[0],se=de[1],ue=a(null),ve=ue[0],me=ue[1],he=l(new Map),fe=d(function(e,n){me(e&&n?{rowId:e,aiReason:n}:null)},[]),pe=H?J(H):0,ge=a([]),Ce=ge[0],ye=ge[1],Re=c(function(){return j?(e=j,n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),e.replace(n,"\n\n<$1>\n\n").replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var o=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(o,"</deleted>")}).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,o){var i=btoa(encodeURIComponent(o.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(i,'"></generatedCode>\n\n')})):j;var e,n},[j]);s(function(){ye(P||X)},[P,X]);var Se=c(function(){return{h1:function(o){o.node;var r=e(o,["node"]);return i("h1",n({className:h.heading1,style:null==$?void 0:$.heading1},{children:r.children}))},h2:function(o){o.node;var r=e(o,["node"]);return i("h2",n({className:h.heading2,style:null==$?void 0:$.heading2},{children:r.children}))},h3:function(o){o.node;var r=e(o,["node"]);return i("h3",n({className:h.heading3,style:null==$?void 0:$.heading3},{children:r.children}))},b:function(o){o.node;var r=e(o,["node"]);return i("b",n({className:h.bold,style:null==$?void 0:$.bold},{children:null==r?void 0:r.children}))},p:function(o){o.node;var r=e(o,["node"]);return i("p",n({},r,{className:h.paragraph,style:null==$?void 0:$.paragraph},{children:r.children}))},updated:function(o){var r=o.node,t=e(o,["node"]);return i(C,n({},t,{showUserStoryDiff:k,currentUpdatedTagId:ce,setCurrentUpdatedTagId:se,userStory:V,setUserStory:K,setAiReasoning:Y,node:r,isCraflow:_,onCraAccept:z,onCraReject:G,customStyles:null==$?void 0:$.updatedContent}))},ol:function(o){o.node;var r=e(o,["node"]);return i("ol",n({className:h.orderedList,style:null==$?void 0:$.olist},{children:null==r?void 0:r.children}))},ul:function(o){o.node;var r=e(o,["node"]);return i("ul",n({className:h.unorderedList,style:null==$?void 0:$.ulist},{children:null==r?void 0:r.children}))},table:function(e){var o=e.children;return i("div",n({className:h.tableWrapper},{children:i("table",n({className:h.table,style:null==$?void 0:$.table},{children:o}))}))},tr:L,td:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(A.Provider,n({value:!0},{children:i("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(A.Provider,n({value:!0},{children:i("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},recommendation:function(o){var r;o.node;var t=e(o,["node"]),l="The AI has selected this content based on: ".concat((null===(r=null==t?void 0:t.children)||void 0===r?void 0:r[0])||"");return i(b,n({},t,{customStyles:null==$?void 0:$.recommendationBlock,label:l}))},a:function(n){var o,r,t;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]);u(A)||null==l||l.table;var a="".concat(null==l?void 0:l.href),d=null===(o=a.split("$"))||void 0===o?void 0:o[0],c=null===(r=a.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===d){var s=(null!==(t=k?D:X)&&void 0!==t?t:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)});if(s&&s.reason.length>0&&s.gap.length>0)return i(w,{aiReason:s,isSourceHasHighlight:!1,customIcons:oe,customStyles:{aiReasoningContent:null==$?void 0:$.aiReasoningContent,aiReasoningAccordion:null==$?void 0:$.aiReasoningAccordion,aiReasoningMarkdown:null==$?void 0:$.aiReasoningMarkdown,aiReasoningPill:null==$?void 0:$.aiReasoningPill,webCitation:null==$?void 0:$.webCitation,stormeeCitation:null==$?void 0:$.stormeeCitation,waveformCitation:null==$?void 0:$.waveformCitation,imageCitation:null==$?void 0:$.imageCitation,fileCitation:null==$?void 0:$.fileCitation,appModCitation:null==$?void 0:$.appModCitation,rcaCitation:null==$?void 0:$.rcaCitation,readFileCitation:null==$?void 0:$.readFileCitation,loadingCitations:null==$?void 0:$.loadingCitations,chatCitation:null==$?void 0:$.chatCitation}})}return null},code:function(o){o.inline;var r=o.children,t=o.className;return o.node,e(o,["inline","children","className","node"]),/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?i("div",{children:i("code",n({className:h.blockCode,style:null==$?void 0:$.code},{children:r}))}):i("code",n({className:h.inlineCode,style:null==$?void 0:$.code},{children:r}))},learned:function(e){var o=e.children;return i(g,n({title:o,placement:"top"},{children:i(p,{size:16,className:h.learned})}))},generatedcode:function(n){n.node;var o=e(n,["node"]),r=(null==o?void 0:o.language)||"python",t=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var o=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(o).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?o(e.props.children):""};n=o(e.children)}}catch(o){console.error("Error decoding generated code:",o),n=String(e.children)}return n}(o);return i(y,{title:"Generated Code",code:t,language:r,customStyles:{pill:null==$?void 0:$.generatedCodePill,content:null==$?void 0:$.generatedCodeContent}})}}},[Ce,X,W,ce,k,j,B]),we=l([]),Ie=l([]);return s(function(){var e;if(Q.current){if(!(null==ee?void 0:ee.length))return le(),we.current=[],void(Ie.current=[]);var n=ee.length!==we.current.length||ee.some(function(e,n){return e!==we.current[n]}),i=(null!==(e=null==ne?void 0:ne.length)&&void 0!==e?e:0)!==Ie.current.length||(null!=ne?ne:[]).some(function(e,n){return e!==Ie.current[n]});if(n||i){var r;we.current=o([],ee,!0),Ie.current=o([],null!=ne?ne:[],!0);var t=null,l=function(){te(ee.map(function(e){return e.replace(/\*/g,"")}))};if(0===(null==ne?void 0:ne.length))requestAnimationFrame(l);else{var a=Q.current;(t=new MutationObserver(function(){ae.current||(clearTimeout(r),r=setTimeout(function(){requestAnimationFrame(l)},50))})).observe(a,{childList:!0,subtree:!0}),requestAnimationFrame(l)}return function(){null==t||t.disconnect(),clearTimeout(r)}}}},[ee,ne]),i(x.Provider,n({value:{expandedInfo:ve,setExpanded:fe,reasonToRow:he}},{children:r("div",n({ref:Q,className:"".concat(h.container," ").concat("approving"!==U?h.wrapper:""," ").concat(q||""),style:null==$?void 0:$.container},{children:[i(v,n({components:Se,rehypePlugins:[m]},{children:Re})),pe>0&&i("div",n({className:h.confidenceScoreContainer,style:null==$?void 0:$.confidenceScoreContainer},{children:r("span",n({className:h.confidenceScore,style:null==$?void 0:$.confidenceScore},{children:[i(I,{size:14,color:(null==$?void 0:$.confidenceScoreIconColor)||"#166534"}),pe,"%"]}))})),F&&i("div",n({className:h.citationLoader,style:null==$?void 0:$.citationLoaderContainer},{children:i(R,{customStyles:{container:null==$?void 0:$.citationLoadingContainer,icon:null==$?void 0:$.citationLoadingIcon,text:null==$?void 0:$.citationLoadingText}})})),T&&i("div",n({className:"flex mt-5"},{children:i(N,{})}))]}))}))};export{T as default};
1
+ import{__rest as e,__assign as n}from"tslib";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{createContext as r,useRef as t,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import m from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as h}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as f}from"@mui/material";import g from"../../shared/UpdatedAnimationContent.js";import C from"../../shared/GeneratedCodeCitation.js";import y from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import w from"../ai-reasoning/AiReasoningCitation.js";import R from"../../icons/RelevanceScoreIcon.js";import I from"../RecommendationBlock/RecommendationBlock.js";import b from"../UserStoryCard/AttachedContext.js";var N=r(!1),x=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),A=r({rowId:""}),j=function(e){var r,l,a=e.children,d=e.node,c=t(Math.random().toString(36).slice(2)).current,u=s(x).expandedInfo,v=(null==u?void 0:u.rowId)===c,h=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,p=null!==(l=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==l?l:void 0;return i(A.Provider,n({value:{rowId:c}},{children:[o("tr",n({style:p?{cssText:p}:void 0},{children:a})),v&&(null==u?void 0:u.aiReason)&&o("tr",n({style:{width:"100%"}},{children:o("td",n({colSpan:h||1,className:m.tableExpandedCell},{children:o("div",n({className:m.tableExpandedCellInner},{children:o("div",{className:m.tableExpandedCellContent})}))}))}))]}))},L=function(r){var A=r.message,L=r.isParent,T=r.scenario,U=r.showUserStoryDiff,k=void 0!==U&&U,M=r.aiReasoningsForBlock,P=r.isCitationLoadingDisplay,E=void 0!==P&&P,F=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var $=r.customStyles,q=r.customIcons,B=r.aiReasoningDiffView,D=r.userStoryCitations,W=r.artifactId,H=r.isCraflow,_=r.onCraAccept,z=r.onCraReject,G=t(null),Q=S(),O=Q.userStory,V=Q.getAvgScoreForStory,J=Q.setUserStory,K=Q.aiReasoning,X=Q.setAiReasoning,Y=Q.customIcons,Z=Q.searchQueryList,ee=Q.searchQueryReasoningIdList,ne=null!=q?q:null==Y?void 0:Y.userStoryIcons,oe=null==$?void 0:$.searchHighlight,ie=h(G,oe),re=ie.search,te=ie.clear,le=l("1"),ae=le[0],de=le[1],ce=l(null),se=ce[0],ue=ce[1],ve=t(new Map),me=a(function(e,n){ue(e&&n?{rowId:e,aiReason:n}:null)},[]),he=W?V(W):0,pe=l([]),fe=pe[0],ge=pe[1],Ce=d(function(){return A?(e=A,n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),e.replace(n,"\n\n<$1>\n\n").replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var o=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(o,"</deleted>")}).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,o){var i=btoa(encodeURIComponent(o.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(i,'"></generatedCode>\n\n')})):A;var e,n},[A]);c(function(){ge(M||K)},[M,K]);var ye=d(function(){return{h1:function(i){i.node;var r=e(i,["node"]);return o("h1",n({className:m.heading1,style:null==$?void 0:$.heading1},{children:r.children}))},h2:function(i){i.node;var r=e(i,["node"]);return o("h2",n({className:m.heading2,style:null==$?void 0:$.heading2},{children:r.children}))},h3:function(i){i.node;var r=e(i,["node"]);return o("h3",n({className:m.heading3,style:null==$?void 0:$.heading3},{children:r.children}))},b:function(i){i.node;var r=e(i,["node"]);return o("b",n({className:m.bold,style:null==$?void 0:$.bold},{children:null==r?void 0:r.children}))},p:function(i){i.node;var r=e(i,["node"]);return o("p",n({},r,{className:m.paragraph,style:null==$?void 0:$.paragraph},{children:r.children}))},updated:function(i){var r=i.node,t=e(i,["node"]);return o(g,n({},t,{showUserStoryDiff:k,currentUpdatedTagId:ae,setCurrentUpdatedTagId:de,userStory:O,setUserStory:J,setAiReasoning:X,node:r,isCraflow:H,onCraAccept:_,onCraReject:z,customStyles:null==$?void 0:$.updatedContent}))},ol:function(i){i.node;var r=e(i,["node"]);return o("ol",n({className:m.orderedList,style:null==$?void 0:$.olist},{children:null==r?void 0:r.children}))},ul:function(i){i.node;var r=e(i,["node"]);return o("ul",n({className:m.unorderedList,style:null==$?void 0:$.ulist},{children:null==r?void 0:r.children}))},table:function(e){var i=e.children;return o("div",n({className:m.tableWrapper},{children:o("table",n({className:m.table,style:null==$?void 0:$.table},{children:i}))}))},tr:j,td:function(i){var r,t=i.node,l=i.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return o(N.Provider,n({value:!0},{children:o("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(i){var r,t=i.node,l=i.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return o(N.Provider,n({value:!0},{children:o("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},recommendation:function(i){var r;i.node;var t=e(i,["node"]),l="The AI has selected this content based on: ".concat((null===(r=null==t?void 0:t.children)||void 0===r?void 0:r[0])||"");return o(I,n({},t,{customStyles:null==$?void 0:$.recommendationBlock,label:l}))},a:function(n){var i,r,t;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]);s(N)||null==l||l.table;var a="".concat(null==l?void 0:l.href),d=null===(i=a.split("$"))||void 0===i?void 0:i[0],c=null===(r=a.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===d){var u=(null!==(t=k?B:K)&&void 0!==t?t:[]).find(function(e){return e.id.toString()===decodeURIComponent(c)});if(u&&u.reason.length>0&&u.gap.length>0)return o(w,{aiReason:u,isSourceHasHighlight:!1,customIcons:ne,customStyles:{aiReasoningContent:null==$?void 0:$.aiReasoningContent,aiReasoningAccordion:null==$?void 0:$.aiReasoningAccordion,aiReasoningMarkdown:null==$?void 0:$.aiReasoningMarkdown,aiReasoningPill:null==$?void 0:$.aiReasoningPill,webCitation:null==$?void 0:$.webCitation,stormeeCitation:null==$?void 0:$.stormeeCitation,waveformCitation:null==$?void 0:$.waveformCitation,imageCitation:null==$?void 0:$.imageCitation,fileCitation:null==$?void 0:$.fileCitation,appModCitation:null==$?void 0:$.appModCitation,rcaCitation:null==$?void 0:$.rcaCitation,readFileCitation:null==$?void 0:$.readFileCitation,loadingCitations:null==$?void 0:$.loadingCitations,chatCitation:null==$?void 0:$.chatCitation}})}return null},code:function(i){i.inline;var r=i.children,t=i.className;return i.node,e(i,["inline","children","className","node"]),/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?o("div",{children:o("code",n({className:m.blockCode,style:null==$?void 0:$.code},{children:r}))}):o("code",n({className:m.inlineCode,style:null==$?void 0:$.code},{children:r}))},learned:function(e){var i=e.children;return o(f,n({title:i,placement:"top"},{children:o(p,{size:16,className:m.learned})}))},generatedcode:function(n){n.node;var i=e(n,["node"]),r=(null==i?void 0:i.language)||"python",t=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var o=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(o).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?o(e.props.children):""};n=o(e.children)}}catch(o){console.error("Error decoding generated code:",o),n=String(e.children)}return n}(i);return o(C,{title:"Generated Code",code:t,language:r,customStyles:{pill:null==$?void 0:$.generatedCodePill,content:null==$?void 0:$.generatedCodeContent}})}}},[fe,K,D,ae,k,A,q]);return c(function(){if(G.current){if(null==Z?void 0:Z.length){var e;if(0===(null==ee?void 0:ee.length))requestAnimationFrame(function(){re(Z.map(function(e){return e.replace(/\*/g,"")}))});else{var n=G.current,o=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){o.disconnect(),requestAnimationFrame(function(){re(Z.map(function(e){return e.replace(/\*/g,"")}))})},50)});o.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}te()}},[Z,ee]),o(x.Provider,n({value:{expandedInfo:se,setExpanded:me,reasonToRow:ve}},{children:i("div",n({ref:G,className:"".concat(m.container," ").concat("approving"!==T?m.wrapper:""," ").concat(F||""),style:null==$?void 0:$.container},{children:[o(u,n({components:ye,rehypePlugins:[v]},{children:Ce})),he>0&&o("div",n({className:m.confidenceScoreContainer,style:null==$?void 0:$.confidenceScoreContainer},{children:i("span",n({className:m.confidenceScore,style:null==$?void 0:$.confidenceScore},{children:[o(R,{size:14,color:(null==$?void 0:$.confidenceScoreIconColor)||"#166534"}),he,"%"]}))})),E&&o("div",n({className:m.citationLoader,style:null==$?void 0:$.citationLoaderContainer},{children:o(y,{customStyles:{container:null==$?void 0:$.citationLoadingContainer,icon:null==$?void 0:$.citationLoadingIcon,text:null==$?void 0:$.citationLoadingText}})})),L&&o("div",n({className:"flex mt-5"},{children:o(b,{})}))]}))}))};export{L as default};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as l}from"tslib";import{jsx as t}from"react/jsx-runtime";import o from"./AtomicButton.module.css.js";import{Button as i}from"@mui/material";import{useRequirementAI as e}from"../components/RequirementAIWrapper/RequirementAIWrapper.js";var r=function(r){var a,c=r.onClick,s=r.isDisable,n=void 0!==s&&s,d=r.children,u=r.type,p=void 0===u?"fill":u,m=r.className,y=void 0===m?"":m,I=r.overrideStyles,b=void 0!==I&&I,f=r.style,v=r.lscUIAgent,U=e().customStyles,S="fill"===p?o.fill:o.outline,C=b?"".concat(y," ").concat(S).trim():"".concat(y," ").concat(o.base," ").concat(S).trim();return t(i,l({className:C,onClick:c,disabled:n,style:l(l({},null==U?void 0:U.atomicButton),f),sx:l({},n&&"fill"===p&&(null===(a=null==U?void 0:U.userStoryCardStyles)||void 0===a?void 0:a.fillDisabled)?{"&.Mui-disabled":{background:"".concat(U.userStoryCardStyles.fillDisabled.backgroundColor," !important"),color:"".concat(U.userStoryCardStyles.fillDisabled.color," !important"),pointerEvents:"all !important",cursor:"".concat(U.userStoryCardStyles.fillDisabled.cursor," !important")}}:{})},v?l(l(l(l(l(l(l({},v.id?{id:v.id}:{}),v.lscUIType?{"data-lsc-ui-type":v.lscUIType}:{}),v.lscUILabel?{"data-lsc-ui-label":v.lscUILabel}:{}),v.lscUIDescription?{"data-lsc-ui-description":v.lscUIDescription}:{}),v.lscUIWhenToApply?{"data-lsc-ui-when-to-apply":v.lscUIWhenToApply}:{}),v.lscUIInteractionDelayInSeconds?{"data-lsc-ui-interaction-delay-in-seconds":v.lscUIInteractionDelayInSeconds}:{}),v.lscUIInteractBehaviorControl?{"data-lsc-ui-interact-behavior-control":v.lscUIInteractBehaviorControl}:{}):{},{children:d}))};export{r as default};
1
+ import{__assign as t}from"tslib";import{jsx as e}from"react/jsx-runtime";import l from"./AtomicButton.module.css.js";import{Button as i}from"@mui/material";import{useRequirementAI as c}from"../components/RequirementAIWrapper/RequirementAIWrapper.js";var o=function(o){var a=o.onClick,s=o.isDisable,n=void 0!==s&&s,r=o.children,d=o.type,m=void 0===d?"fill":d,p=o.className,I=void 0===p?"":p,u=o.overrideStyles,y=void 0!==u&&u,U=o.style,f=o.lscUIAgent,v="fill"===m?n?l.fillDisabled:l.fill:l.outline,b=c().customStyles,h=y?"".concat(I," ").concat(v).trim():"".concat(I," ").concat(l.base," ").concat(v).trim();return e(i,t({className:h,onClick:a,disabled:n,style:t(t({},null==b?void 0:b.atomicButton),U)},f?t(t(t(t(t(t(t({},f.id?{id:f.id}:{}),f.lscUIType?{"data-lsc-ui-type":f.lscUIType}:{}),f.lscUILabel?{"data-lsc-ui-label":f.lscUILabel}:{}),f.lscUIDescription?{"data-lsc-ui-description":f.lscUIDescription}:{}),f.lscUIWhenToApply?{"data-lsc-ui-when-to-apply":f.lscUIWhenToApply}:{}),f.lscUIInteractionDelayInSeconds?{"data-lsc-ui-interaction-delay-in-seconds":f.lscUIInteractionDelayInSeconds}:{}),f.lscUIInteractBehaviorControl?{"data-lsc-ui-interact-behavior-control":f.lscUIInteractBehaviorControl}:{}):{},{children:r}))};export{o as default};
2
2
  //# sourceMappingURL=AtomicButton.js.map
@@ -1,2 +1,2 @@
1
- import{useRef as r,useCallback as e,useMemo as n}from"react";var t="[MarkdownSearch]",o="markdown-search-highlight-active";function a(a,u){var c=r([]),l=r(-1),i=r(!1),f=e(function(){i.current=!0,c.current.forEach(function(r){var e=r.mark,n=e.parentNode;if(n){for(;e.firstChild;)n.insertBefore(e.firstChild,e);n.removeChild(e)}}),c.current=[],l.current=-1,requestAnimationFrame(function(){setTimeout(function(){i.current=!1},0)})},[]),s=e(function(r){for(var e,n=document.createTreeWalker(r,NodeFilter.SHOW_TEXT),t="",o=[];e=n.nextNode();){for(var a=e,u=a.nodeValue||"",c=0;c<u.length;c++)o.push({node:a,offset:c});t+=u}return{fullText:t,map:o}},[]),h=e(function(r,e,n){var o=e+n;if(!r[e]||!r[o-1])return null;var a=document.createRange();try{a.setStart(r[e].node,r[e].offset),a.setEnd(r[o-1].node,r[o-1].offset+1)}catch(r){return null}var l=document.createElement("mark");l.className="markdown-search-highlight",u&&Object.assign(l.style,u);try{a.surroundContents(l)}catch(r){return console.warn(t,"surroundContents failed, falling back"),null}return c.current.push({mark:l}),l},[u]),g=e(function(r){var e=c.current;if(e.length){l.current>=0&&e[l.current]&&e[l.current].mark.classList.remove(o);var n=(r%e.length+e.length)%e.length;l.current=n;var t=e[n].mark;t.classList.add(o),t.scrollIntoView({behavior:"smooth",block:"center"})}},[]),v=e(function(){g(l.current+1)},[g]),d=e(function(){g(l.current-1)},[g]),m=e(function(r){return r.toLowerCase().replace(/[^a-z0-9\s]/g,"")},[]),w=e(function(r){for(var e=m(r),n=[],t=0;t<e.length-1;t++)n.push(e.slice(t,t+2));return n},[m]),C=e(function(r,e){var n=w(r),t=w(e),o=new Set(n),a=0;return t.forEach(function(r){o.has(r)&&a++}),2*a/(n.length+t.length)},[w]),k=e(function(r,e){var n=new Set(m(r).split(/\s+/).filter(Boolean)),t=new Set(m(e).split(/\s+/).filter(Boolean)),o=0;return n.forEach(function(r){return t.has(r)&&o++}),o/n.size},[m]),p=e(function(r,e){for(var n=Array(r.length+1).fill(null).map(function(){return Array(e.length+1).fill(0)}),t=0,o=0,a=1;a<=r.length;a++)for(var u=1;u<=e.length;u++)r[a-1]===e[u-1]&&(n[a][u]=n[a-1][u-1]+1,n[a][u]>t&&(t=n[a][u],o=a));return{substring:r.slice(o-t,o),startOffset:o-t,length:t}},[]),b=e(function(r){var e;if((null===(e=a.current)||void 0===e?void 0:e.isConnected)&&r.length){console.warn(t,"surroundContents failed, falling back"),i.current=!0,f(),i.current=!0;for(var n=s(a.current),o=n.fullText,u=n.map,l=o.toLowerCase(),v=!1,d=0,m=r;d<m.length;d++){var w=(x=m[d]).toLowerCase().trim();if(w)for(var b=0;-1!==(b=l.indexOf(w,b));)console.warn(t,"surroundContents failed, falling back"),h(u,b,w.length),v=!0,b+=w.length}if(!v)for(var L=0,T=r;L<T.length;L++){for(var x,E=(x=T[L]).length,S=0,y=-1,O=0;O<=o.length-E;O+=2){var A=o.slice(O,O+E),N=C(A,x),B=k(A,x);if(!(B<.8)){var F=.8*N+.2*B;F>S&&(S=F,y=O)}}if(S>.82&&-1!==y){A=o.slice(y,y+E);var q=p(A.toLowerCase(),x.toLowerCase()),z=q.startOffset,M=q.length;M>10&&h(u,y+z,M)}}requestAnimationFrame(function(){setTimeout(function(){i.current=!1},0)}),c.current.length>0&&g(0)}},[f,a,s,h,C,k,p,g]),L=e(function(){return c.current.length},[]);return n(function(){return{search:b,clear:f,next:v,prev:d,matchCount:L,isMutatingRef:i}},[b,f,v,d,L])}export{a as useMarkdownSearch};
1
+ import{useRef as e,useCallback as r,useMemo as t}from"react";var n="[MarkdownSearch]";function o(o,a){var l=e([]),c=r(function(){l.current.forEach(function(e){var r=e.mark,t=r.parentNode;if(t){for(;r.firstChild;)t.insertBefore(r.firstChild,r);t.removeChild(r)}}),l.current=[]},[]),s=function(e,r,t){var n=r+t;if(!e[r]||!e[n-1])return null;var o=e[r],c=e[n-1],s=document.createRange();try{s.setStart(o.node,o.offset),s.setEnd(c.node,c.offset+1)}catch(e){return null}var i=document.createElement("mark");i.className="markdown-search-highlight",a&&Object.assign(i.style,a);try{s.surroundContents(i)}catch(e){return null}return l.current.push({mark:i}),i},i=function(e){return e.toLowerCase().replace(/[^a-z0-9\s]/g,"")},f=function(e){for(var r=i(e),t=[],n=0;n<r.length-1;n++)t.push(r.slice(n,n+2));return t},u=function(e,r){var t=f(e),n=f(r),o=new Set(t),a=0;return n.forEach(function(e){o.has(e)&&a++}),2*a/(t.length+n.length)},h=function(e,r){var t=new Set(i(e).split(/\s+/).filter(Boolean)),n=new Set(i(r).split(/\s+/).filter(Boolean)),o=0;return t.forEach(function(e){return n.has(e)&&o++}),o/t.size},g=function(e,r){for(var t=Array(e.length+1).fill(null).map(function(){return Array(r.length+1).fill(0)}),n=0,o=0,a=1;a<=e.length;a++)for(var l=1;l<=r.length;l++)e[a-1]===r[l-1]&&(t[a][l]=t[a-1][l-1]+1,t[a][l]>n&&(n=t[a][l],o=a));return{substring:e.slice(o-n,o),startOffset:o-n,length:n}},v=r(function(e,r){var t;if(void 0===r&&(r=1),o.current&&e.length&&(console.log(n,"Search started",e),c(),null===(t=o.current)||void 0===t?void 0:t.isConnected)){for(var a=function(e){for(var r,t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n="",o=[];r=t.nextNode();){for(var a=r,l=a.nodeValue||"",c=0;c<l.length;c++)o.push({node:a,offset:c});n+=l}return{fullText:n,map:o}}(o.current),l=a.fullText,i=a.map,f=l.toLowerCase(),v=0,d=null,m=!1,p=0,w=e;p<w.length;p++)for(var k=(y=w[p]).toLowerCase().trim(),z=0;-1!==(z=f.indexOf(k,z));){if(console.log(n,"Exact match found",z),(W=s(i,z,k.length))&&!d&&(d=W),m=!0,++v>=r)break;z+=k.length}if(m)return console.log(n,"Exact match phase complete, skipping fuzzy search"),void(null==d||d.scrollIntoView({behavior:"smooth",block:"center"}));console.log(n,"No exact matches, running strict fuzzy search");for(var C=0,b=e;C<b.length;C++){for(var y,x=(y=b[C]).length,E=0,S=-1,N=0;N<=l.length-x;N+=2){var L=l.slice(N,N+x),O=u(L,y),T=h(L,y);if(!(T<.8)){var B=.8*O+.2*T;B>E&&(E=B,S=N)}}if(console.log(n,"Best fuzzy score:",E),E>.82&&-1!==S){L=l.slice(S,S+x);var V=g(L.toLowerCase(),y.toLowerCase()),A=V.substring,F=V.startOffset,I=V.length;if(I>10){var W,j=S+F;console.log(n,"Fuzzy refined match",{refinedStart:j,length:I,substring:A}),(W=s(i,j,I))&&!d&&(d=W),v++}}}d?d.scrollIntoView({behavior:"smooth",block:"center"}):console.log(n,"No matches found")}},[c,o]);return t(function(){return{search:v,clear:c}},[v,c])}export{o as useMarkdownSearch};
2
2
  //# sourceMappingURL=useMarkdownSearch.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as o,Fragment as r,jsxs as l}from"react/jsx-runtime";import{useCallback as t}from"react";import{useUSPContext as s}from"../UserStoryPicker.context.js";var a=[{value:"currentRepository",label:"Current Repository"},{value:"allRepository",label:"All Repository"}];function n(n){var p=n.options,c=void 0===p?a:p,i=n.className,u=n.style,d=n.labelStyle,m=n.selectStyle,y=s(),v=y.state,f=y.dispatch,h=y.classNames,R=y.renderProps,S=y.onScopeRepoChange,b=t(function(e){f({type:"SET_SCOPE_REPO",payload:e}),null==S||S(e)},[f,S]);if(R.renderScopeDropdown)return o(r,{children:R.renderScopeDropdown(v.scopeRepo,b,c)});var _=["usp-scope",h.scopeDropdown,i].filter(Boolean).join(" ");return l("div",e({className:_,style:u},{children:[o("span",e({className:"usp-scope__label",style:d},{children:"View:"})),o("select",e({className:"usp-scope__select",style:m,value:v.scopeRepo,onChange:function(e){return b(e.target.value)}},{children:c.map(function(r){return o("option",e({value:r.value},{children:r.label}),r.value)})}))]}))}export{n as ScopeDropdown};
1
+ import{__assign as e}from"tslib";import{jsxs as o,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as t,useCallback as s,useEffect as l}from"react";import{useUSPContext as i}from"../UserStoryPicker.context.js";function u(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"m18 15-6-6-6 6"})}))}function c(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"m6 9 6 6 6-6"})}))}var a=[{value:"currentRepository",label:"Current Repository"},{value:"allRepository",label:"All Repositories"}];function p(p){var d,m,v=p.options,f=void 0===v?a:v,y=p.className,h=p.style;p.labelStyle;var w=p.selectStyle,g=i(),_=g.state,b=g.dispatch,k=g.classNames,R=g.renderProps,x=g.onScopeRepoChange,N=n(!1),S=N[0],j=N[1],C=t(null),L=s(function(e){b({type:"SET_SCOPE_REPO",payload:e}),null==x||x(e),j(!1)},[b,x]);if(l(function(){function e(e){C.current&&!C.current.contains(e.target)&&j(!1)}return S&&document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[S]),R.renderScopeDropdown)return R.renderScopeDropdown(_.scopeRepo,L,f);var B=null!==(m=null===(d=f.find(function(e){return e.value===_.scopeRepo}))||void 0===d?void 0:d.label)&&void 0!==m?m:f[0].label,E=["usp-user-story-scope",k.scopeDropdown,y].filter(Boolean).join(" ");return o("div",e({ref:C,className:[E,S&&"open"].filter(Boolean).join(" "),style:h},{children:[o("button",e({type:"button",className:"usp-user-story-scope__trigger",style:w,onClick:function(){return j(function(e){return!e})}},{children:[r("span",e({className:"usp-user-story-scope__trigger-label"},{children:B})),r("span",e({className:"usp-user-story-scope__chevron"},{children:r(S?u:c,{})}))," "]})),S&&r("ul",e({className:"usp-user-story-scope__menu",role:"listbox"},{children:f.map(function(o){return r("li",e({role:"option","aria-selected":_.scopeRepo===o.value,className:["usp-user-story-scope__option",_.scopeRepo===o.value&&"active"].filter(Boolean).join(" "),onClick:function(){return L(o.value)}},{children:o.label}),o.value)})}))]}))}export{p as ScopeDropdown};
2
2
  //# sourceMappingURL=ScopeDropdown.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as l,Fragment as r,jsxs as t}from"react/jsx-runtime";import{useCallback as a}from"react";import{useUSPContext as o}from"../UserStoryPicker.context.js";var s=[{value:"All Types",label:"All Types"},{value:"ECG Technical User Story",label:"ECG Technical User Story"}];function n(n){var p=n.options,c=void 0===p?s:p,i=n.className,y=n.style,u=n.labelStyle,d=n.selectStyle,m=o(),v=m.state,f=m.dispatch,h=m.classNames,T=m.renderProps,b=m.onTypeChange,S=a(function(e){f({type:"SET_TYPE",payload:e}),null==b||b(e)},[f,b]);if(T.renderTypeDropdown)return l(r,{children:T.renderTypeDropdown(v.typeBy,S,c)});var N=["usp-scope",h.scopeDropdown,i].filter(Boolean).join(" ");return t("div",e({className:N,style:y},{children:[l("span",e({className:"usp-scope__label",style:u},{children:"Type:"})),l("select",e({className:"usp-scope__select",style:d,value:v.typeBy,onChange:function(e){return S(e.target.value)}},{children:c.map(function(r){return l("option",e({value:r.value},{children:r.label}),r.value)})}))]}))}export{n as TypeDropdown};
1
+ import{__assign as e}from"tslib";import{jsxs as r,jsx as n}from"react/jsx-runtime";import{useState as o,useRef as t,useCallback as s,useEffect as l}from"react";import{useUSPContext as i}from"../UserStoryPicker.context.js";function u(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:n("path",{d:"m18 15-6-6-6 6"})}))}function c(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:n("path",{d:"m6 9 6 6 6-6"})}))}var a=[{value:"All Types",label:"All Types"},{value:"ECG Technical User Story",label:"ECG Technical User Story"}];function p(p){var d,m,y=p.options,v=void 0===y?a:y,f=p.className,h=p.style;p.labelStyle;var w=p.selectStyle,g=i(),k=g.state,_=g.dispatch,b=g.classNames,T=g.renderProps,B=g.onTypeChange,N=o(!1),j=N[0],x=N[1],C=t(null),E=s(function(e){_({type:"SET_TYPE",payload:e}),null==B||B(e),x(!1)},[_,B]);if(l(function(){function e(e){C.current&&!C.current.contains(e.target)&&x(!1)}return j&&document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[j]),T.renderTypeDropdown)return T.renderTypeDropdown(k.typeBy,E,v);var L=null!==(m=null===(d=v.find(function(e){return e.value===k.typeBy}))||void 0===d?void 0:d.label)&&void 0!==m?m:v[0].label,S=["usp-user-story-scope",b.scopeDropdown,f].filter(Boolean).join(" ");return r("div",e({ref:C,className:[S,j&&"open"].filter(Boolean).join(" "),style:h},{children:[r("button",e({type:"button",className:"usp-user-story-scope__trigger",style:w,onClick:function(){return x(function(e){return!e})}},{children:[n("span",e({className:"usp-user-story-scope__trigger-label"},{children:L})),n("span",e({className:"usp-user-story-scope__chevron"},{children:n(j?u:c,{})}))," "]})),j&&n("ul",e({className:"usp-user-story-scope__menu"},{children:v.map(function(r){return n("li",e({className:["usp-user-story-scope__option",k.typeBy===r.value&&"active"].filter(Boolean).join(" "),onClick:function(){return E(r.value)}},{children:r.label}),r.value)})}))]}))}export{p as TypeDropdown};
2
2
  //# sourceMappingURL=TypeDropdown.js.map
@@ -224,7 +224,6 @@ export interface RequirementAICustomStyles {
224
224
  contentInner?: React.CSSProperties;
225
225
  descriptionSection?: React.CSSProperties;
226
226
  justifyBetween?: React.CSSProperties;
227
- fillDisabled?: React.CSSProperties;
228
227
  };
229
228
  gapSidebar?: GapSidebarCustomStyles;
230
229
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAwB,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE3G,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACjH,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAE7G,MAAM,WAAW,yBAAyB;IACxC,qBAAqB,CAAC,EAAE;QACtB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACvC,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa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ceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAwB,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE3G,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACjH,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAE7G,MAAM,WAAW,yBAAyB;IACxC,qBAAqB,CAAC,EAAE;QACtB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACvC,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC7B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACjC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAClC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACrC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACpC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QACtC,gBAAgB,CAAC,EAAE,KAAK,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,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAErE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEvE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,0BAA0B,EAAE,MAAM,EAAE,CAAC;IAErC,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,8BAA8B,CAAC,EAAE,0BAA0B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAC7C;AAID,QAAA,MAAM,oBAAoB,oTAmBvB,yBAAyB,4CAkE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAIzE,UAAU,cAAc;IACpB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,gBAAgB,EAAE,UAAU,CAAC;IAC7B,iBAAiB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;I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AE,CAAC,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrK,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,oBAAoB,uMAAwM,MAAM,4CAiC9O,CAAA;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAIzE,UAAU,cAAc;IACpB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,gBAAgB,EAAE,UAAU,CAAC;IAC7B,iBAAiB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB,EAAE,OAAO,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,2CAA2C;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,oBAAoB,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,EAAE,eAAe,E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,uMAAwM,MAAM,4CAiC9O,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ interface CustomFileIconProps {
3
+ name: string;
4
+ size?: string;
5
+ className?: string;
6
+ }
7
+ /**
8
+ * CustomFileIcon displays a file or language icon based on the file name or extension.
9
+ * It uses the @exuanbo/file-icons-js library to determine the appropriate icon class.
10
+ */
11
+ declare function CustomFileIcon({ name, size, className }: CustomFileIconProps): JSX.Element;
12
+ export default CustomFileIcon;
13
+ //# sourceMappingURL=CustomFileIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomFileIcon.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.tsx"],"names":[],"mappings":";AAKA,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;GAGG;AACH,iBAAS,cAAc,CAAC,EAAE,IAAI,EAAE,IAAa,EAAE,SAAS,EAAE,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CA4D5F;AAED,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ReadFileCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AA+F7F,UAAU,4BAA4B;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,YAAY,CAAC,EAAE,4BAA4B,CAAC;CAC7C;AA4TD,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA6ZnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"ReadFileCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAgG7F,UAAU,4BAA4B;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,YAAY,CAAC,EAAE,4BAA4B,CAAC;CAC7C;AAkSD,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA4anE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kB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,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD,WAAW,CAAC,EAAE,cAAc,CAAC;IAI7B,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;IAKzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAmHD,QAAA,MAAM,sBAAsB,+QAczB,2BAA2B,4CA4Y7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACrW,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AA2BzI,MAAM,WAAW,iCAAiC;IAChD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,SAAS,CAAC,EAAE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,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE;QACX,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,8BAA8B,CAAC,EAAE,MAAM,CAAC;QACxC,4BAA4B,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;KAC/C,CAAC;CACH;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiE7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,10 +1,6 @@
1
1
  import { RefObject } from "react";
2
2
  export declare function useMarkdownSearch(containerRef: RefObject<HTMLElement>, customHighlightStyle?: React.CSSProperties): {
3
- search: (rawQueries: string[]) => void;
3
+ search: (rawQueries: string[], limit?: any) => void;
4
4
  clear: () => void;
5
- next: () => void;
6
- prev: () => void;
7
- matchCount: () => number;
8
- isMutatingRef: import("react").MutableRefObject<boolean>;
9
5
  };
10
6
  //# sourceMappingURL=useMarkdownSearch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMarkdownSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/useMarkdownSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAUhE,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,SAAS,CAAC,WAAW,CAAC,EACpC,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa;yBA6K3B,MAAM,EAAE;;;;;;EAyExB"}
1
+ {"version":3,"file":"useMarkdownSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/useMarkdownSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAShE,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,SAAS,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa;yBAmJxE,MAAM,EAAE;;EAkGjD"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- export type USPScopeOption = 'currentRepository' | 'allRepository';
1
+ import React from "react";
2
+ export type USPScopeOption = "currentRepository" | "allRepository";
3
3
  export interface USPScopeDropdownProps {
4
4
  options?: {
5
5
  value: USPScopeOption;
@@ -10,5 +10,5 @@ export interface USPScopeDropdownProps {
10
10
  labelStyle?: React.CSSProperties;
11
11
  selectStyle?: React.CSSProperties;
12
12
  }
13
- export declare function ScopeDropdown({ options, className, style, labelStyle, selectStyle, }: USPScopeDropdownProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function ScopeDropdown({ options, className, style, labelStyle, selectStyle, }: USPScopeDropdownProps): React.ReactNode;
14
14
  //# sourceMappingURL=ScopeDropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScopeDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/ScopeDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,eAAe,CAAC;AAEnE,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,cAAc,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACnC;AAQD,wBAAgB,aAAa,CAAC,EAC5B,OAAyB,EACzB,SAAS,EACT,KAAK,EACL,UAAU,EACV,WAAW,GACZ,EAAE,qBAAqB,2CAwCvB"}
1
+ {"version":3,"file":"ScopeDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/ScopeDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAGxE,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,eAAe,CAAC;AAEnE,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,cAAc,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACnC;AAuCD,wBAAgB,aAAa,CAAC,EAC5B,OAAyB,EACzB,SAAS,EACT,KAAK,EACL,UAAU,EACV,WAAW,GACZ,EAAE,qBAAqB,mBA0FvB"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export type USPTypeOption = "ECG Technical User Story" | 'All Types';
2
+ export type USPTypeOption = "ECG Technical User Story" | "All Types";
3
3
  export interface USPTypeDropdownProps {
4
4
  options?: {
5
5
  value: USPTypeOption;
@@ -10,5 +10,5 @@ export interface USPTypeDropdownProps {
10
10
  labelStyle?: React.CSSProperties;
11
11
  selectStyle?: React.CSSProperties;
12
12
  }
13
- export declare function TypeDropdown({ options, className, style, labelStyle, selectStyle, }: USPTypeDropdownProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function TypeDropdown({ options, className, style, labelStyle, selectStyle, }: USPTypeDropdownProps): React.ReactNode;
14
14
  //# sourceMappingURL=TypeDropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TypeDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/TypeDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,MAAM,MAAM,aAAa,GACrB,0BAA0B,GAC3B,WAAW,CAAC;AAEf,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,aAAa,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACnC;AAcD,wBAAgB,YAAY,CAAC,EAC3B,OAAyB,EACzB,SAAS,EACT,KAAK,EACL,UAAU,EACV,WAAW,GACZ,EAAE,oBAAoB,2CAgDtB"}
1
+ {"version":3,"file":"TypeDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/features/UserStoryImport/components/TypeDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAGxE,MAAM,MAAM,aAAa,GAAG,0BAA0B,GAAG,WAAW,CAAC;AAErE,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,aAAa,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACnC;AAuCD,wBAAgB,YAAY,CAAC,EAC3B,OAAyB,EACzB,SAAS,EACT,KAAK,EACL,UAAU,EACV,WAAW,GACZ,EAAE,oBAAoB,mBAkFtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -583,6 +583,7 @@
583
583
  "dependencies": {
584
584
  "@lexical/react": "^0.41.0",
585
585
  "@lexical/yjs": "^0.41.0",
586
+ "@exuanbo/file-icons-js": "^3.3.0",
586
587
  "axios": "^1.7.9",
587
588
  "dayjs": "^1.11.19",
588
589
  "dompurify": "^3.3.1",