@e-llm-studio/requirement-ai 0.0.155 → 0.0.157

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 (51) hide show
  1. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +2 -0
  4. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js.map +1 -0
  5. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/segment/segment.module.css.js +1 -1
  10. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  11. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  12. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  13. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  14. package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  15. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  16. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  17. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +2 -0
  18. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js.map +1 -0
  19. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  20. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  21. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  22. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  23. package/dist/features/RequirementAI/components/segment/segment.module.css.js +1 -1
  24. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  25. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  26. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  27. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  28. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  29. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  30. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +4 -10
  31. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  32. package/dist/types/src/features/RequirementAI/components/UserStoryCard/AttachedContext.d.ts +13 -1
  33. package/dist/types/src/features/RequirementAI/components/UserStoryCard/AttachedContext.d.ts.map +1 -1
  34. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +3 -6
  35. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  36. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.d.ts.map +1 -1
  37. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map +1 -1
  38. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +1 -1
  39. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
  40. package/dist/types/src/features/RequirementAI/components/story-screen/SubfeatureBlock.d.ts.map +1 -1
  41. package/dist/types/src/features/RequirementAI/components/story-screen/UserStoryScreen.d.ts.map +1 -1
  42. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +13 -7
  43. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  44. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +2 -0
  45. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  46. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +1 -0
  47. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  48. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +7 -0
  49. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -1
  50. package/dist/types/src/features/RequirementAI/utils/userstory-approval-transform.utils.d.ts.map +1 -1
  51. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as t,__generator as n,__spreadArray as r}from"tslib";import{jsxs as o,jsx as l,Fragment as i}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ExternalLink as d,Download as c,Share2 as v,Copy as m,LoaderCircle as h,PencilIcon as y,ChevronUp as p,ChevronDown as f,ChevronUpIcon as S,ChevronDownIcon as g,Info as C,Bookmark as I}from"lucide-react";import w from"showdown";import{Menu as N,MenuItem as D,Tooltip as b}from"@mui/material";import{v4 as x}from"uuid";import U from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as E}from"../../utils/helpers.js";import{replaceTitleSection as k}from"../../utils/user-story.utils.js";import A from"../../shared/AtomicButton.js";import L from"../RichTextEditor/RichTextEditor.js";import M from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as H}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as P}from"../story-screen/BigEnoughPanel.js";function R(t){for(var n,r=[],o=/<learned>(.*?)<\/learned>/g,i=0,a=0;null!==(n=o.exec(t));){var s=n[1],u=n.index;u>i&&r.push(l("span",{children:t.slice(i,u)},"text-pre-".concat(a++))),r.push(l(b,e({title:s,placement:"top"},{children:l(C,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(x()))),i=o.lastIndex}return i<(null==t?void 0:t.length)&&r.push(l("span",{children:t.slice(i)},"text-post-".concat(a++))),r}function T(t,n,r){var o;if(!t)return{};if(n)return e({},t.parentConfig);var l=e({},t.childConfig);return r&&(null===(o=t.subFeatureOverrides)||void 0===o?void 0:o[r])?e(e({},l),t.subFeatureOverrides[r]):l}var j=function(t){var n,r=t.displayName,i=H().customStyles,a=null===(n=null==i?void 0:i.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return o("div",e({className:U.displayName,style:null==a?void 0:a.wrapper},{children:[l(I,{className:U.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),o("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},V=function(S){var g,C,I,b,x,_,W=S.isUserStoryCurrentlyUpdated,z=S.artifactId,F=S.artifactTitleId,G=S.parentUserStory,O=S.currentUserStory,q=S.onUserStoryChange,Q=S.parentIndex,J=S.currentIndex,K=S.enableDownload,X=S.isDiffEditReviewMode,Y=S.showUserStoryDiff,Z=S.handleDownloadUserStory,$=S.handleOpenSendDialog,ee=S.updateUserStoryArtifact,te=S.selectedArtifactId,ne=S.isDisplayHighlightControl,re=S.elementDisplayConfig,oe=S._resolvedConfig,le=S.showWrapper,ie=void 0!==le&&le,ae=S.handleViewGlossary,se=S.segmentDataList,ue=S.getSegmentExampleComponent,de=S.handleFetchSegmentDetails,ce=H(),ve=ce.searchQueryList,me=ce.citations,he=ce.customStyles,ye=null==he?void 0:he.userStoryCardStyles,pe=null===(g=null==he?void 0:he.userStoryScreenStyles)||void 0===g?void 0:g.userStoryContentStyles,fe=null==ye?void 0:ye.progressHeaderStyles,Se=a(e(e({},structuredClone(O)),{value:B(O.value)||""})),ge=Se[0],Ce=Se[1],Ie=a({userStory:!1}),we=Ie[0],Ne=Ie[1],De=H(),be=De.userStory,xe=De.customIcons,Ue=a(""===Q||te===O.artifactId),Be=Ue[0],Ee=Ue[1],ke=a(!1);ke[0];var Ae=ke[1],Le=a(null),Me=Le[0],He=Le[1],Pe=a(!1),Re=Pe[0],Te=Pe[1],je=s(null),Ve=a(!1);Ve[0];var _e=Ve[1],We=s(null);u(function(){W&&Ee(W)},[W]),u(function(){Ce(e(e({},structuredClone(O)),{value:B(O.value)||""}))},[O]),u(function(){ve.length>0?Ee(!0):te&&Ee(te===O.artifactId)},[ve,te,O.artifactId]);var ze=function(){He(null)},Fe=function(){Ee(function(e){return!e})};var Ge=null!=(null==O?void 0:O.big_enough)&&!Number.isNaN(O.big_enough)&&!!(null==O?void 0:O.big_enough_decision_factors),Oe=null!=oe?oe:T(re,""===Q);return o("div",e({className:U.card,style:null==ye?void 0:ye.cardStyle,id:"story-card-".concat(O.title),"data-expanded":Be},{children:[o("div",e({className:U.titleSection,style:null==ye?void 0:ye.titleSection},{children:[o("div",e({className:U.titleRow,style:null==ye?void 0:ye.titleRow,onClick:Fe},{children:[o("div",e({className:U.titleLeft,style:null==ye?void 0:ye.titleLeft,onMouseEnter:function(){return _e(!0)},onMouseLeave:function(){return _e(!1)}},{children:[l(j,{displayName:F}),l("h2",e({className:U.storyTitle,style:null==ye?void 0:ye.storyTitle},{children:R(O.title)}),O.artifactId)]})),o("div",e({className:U.titleActions,style:null==ye?void 0:ye.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Oe.showProgressPercentage||Oe.showGapBox)&&ie&&o("div",e({className:U.progressHeader,style:null==fe?void 0:fe.wrapper},{children:[Oe.showProgressPercentage&&o("div",e({className:U.progressPercentage,style:null==fe?void 0:fe.percentage},{children:[null!==(I=null!==(C=null==O?void 0:O.confidenceScore)&&void 0!==C?C:null==Oe?void 0:Oe.confidenceValue)&&void 0!==I?I:"0","%"]})),Oe.showGapBox&&o("div",e({className:U.gapBox,style:null==fe?void 0:fe.gapBox},{children:[null!==(x=null!==(b=null==O?void 0:O.gapValue)&&void 0!==b?b:null==Oe?void 0:Oe.gapBoxValue)&&void 0!==x?x:"2"," ","Gaps"]}))]})),Ge&&l(P,{customIcons:null==xe?void 0:xe.userStoryIcons,customStyles:null==ye?void 0:ye.aiReasoningCitaionStyles,currentUserStory:O,panelStyles:null==ye?void 0:ye.BigEnoughStyles}),!we.userStory&&o(i,{children:[!1!==(null==Oe?void 0:Oe.showShareButton)&&l("button",e({className:U.iconButton,style:null==ye?void 0:ye.iconButton,onClick:function(e){He(e.currentTarget)}},{children:l(d,{size:16})})),o(N,e({id:"user-story-share-menu",anchorEl:Me,open:!!Me,onClose:function(){return He(null)},style:null==ye?void 0:ye.userStoryShareMenu},{children:[K&&l(D,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return Ae(!0),Z?[4,Promise.all([Z("pdf"),Z("doc")])]:[2];case 1:return e.sent(),Ae(!1),[2]}})})}},{children:o("div",e({ref:je,className:U.menuItemContent,style:null==ye?void 0:ye.menuItemContent},{children:[l(c,{size:16,color:null==ye?void 0:ye.menuIconColor}),l("p",e({style:null==ye?void 0:ye.menuLabel},{children:"Download"}))]}))})),l(D,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){return t=O,G&&(t=e(e({},O),{value:"".concat(k(null==G?void 0:G.value,O.title)," \n").concat(O.value)})),null==$||$(!0,[t],O.artifactId),ze(),[2]})})}},{children:o("div",e({style:null==ye?void 0:ye.menuItemContent,className:U.menuItemContentPadded},{children:[l(v,{size:16,color:null==ye?void 0:ye.menuIconColor}),l("p",e({style:null==ye?void 0:ye.menuLabel},{children:"Send"}))]}))})),l(D,e({style:null==ye?void 0:ye.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var e,t,r,o,l;return n(this,function(n){switch(n.label){case 0:e=new w.Converter,t=e.makeHtml(B(O.value)||O.value),r=function(e){var t=(new w.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(O.value)||O.value),o=new ClipboardItem({"text/plain":new Blob([r],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return n.sent(),console.log("Copied User Story"),[3,5];case 3:return l=n.sent(),console.error("Failed to copy user story:",l),[3,5];case 4:return ze(),[7];case 5:return[2]}})})}},{children:o("div",e({style:null==ye?void 0:ye.menuItemContent,className:U.menuItemContentPadded},{children:[l(m,{size:16,color:null==ye?void 0:ye.menuIconColor}),l("p",e({style:null==ye?void 0:ye.menuLabel},{children:"Copy"}))]}))}))]}))]}),we.userStory&&Be?l(A,{type:"outline",children:"Cancel",style:null==ye?void 0:ye.cancelButton,onClick:function(){var t;null===(t=We.current)||void 0===t||t.abort(),Ne(function(t){return e(e({},t),{userStory:!1})})}}):l(i,{}),we.userStory&&Be?l(A,{type:"fill",children:Re?o("span",e({className:U.savingSpinner,style:null==ye?void 0:ye.savingSpinner},{children:[l(h,{className:U.spinAnimation,style:null==ye?void 0:ye.spinAnimation}),l("span",{children:"Saving..."})]})):"Save",isDisable:Re,style:Re?null==ye?void 0:ye.savingButton:null==ye?void 0:ye.saveButton,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return Te(!0),"userStory"==="userStory"&&(q(ge),console.log("I am changing RTE editor values",ge)),[4,ee(me,be,z,null===(t=We.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),Ne(function(t){return e(e({},t),{userStory:!1})}),Te(!1),[2]}})})}}):!X&&!Y&&Be&&!1!==(null==Oe?void 0:Oe.showEditButton)&&l("button",e({className:U.iconButton,style:null==ye?void 0:ye.editButton,onClick:function(){return Ne(function(t){return e(e({},t),{userStory:!0})})}},{children:l(y,{color:null==ye?void 0:ye.pencilIconColor,size:16})})),l("button",e({type:"button",onClick:function(e){e.stopPropagation(),Fe()},style:null==ye?void 0:ye.chevronButton,className:U.chevronButton},{children:l(Be?p:f,{className:U.chevronIcon,color:null==ye?void 0:ye.chevronIconColor})}))]}))]})),l("div",{className:U.divider,style:null==ye?void 0:ye.dividerStyle})]})),Be&&l("div",e({className:U.cardContent,style:null==ye?void 0:ye.cardContentStyle},{children:o("div",e({className:U.contentInner,style:null==ye?void 0:ye.contentInner},{children:[o("div",e({className:U.descriptionSection,style:null==ye?void 0:ye.descriptionSection},{children:[l("div",{className:U.justifyBetween,style:null==ye?void 0:ye.justifyBetween}),we.userStory?l(L,{minHeight:"100%",height:"100%",type:"string",value:B(O.value)||"",handleUpdateState:function(t,n){var r=E(n);Ce(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:we.userStory?"edit":"readOnly"}):l(M,{showUserStoryDiff:Y,isParent:""===Q,message:B(O.value)||"",artifactId:O.artifactId,customStyles:pe,isDisplayHighlightControl:ne,getSegmentExampleComponent:ue,handleViewGlossary:ae,segmentDataList:se,handleFetchSegmentDetails:de})]})),null===(_=ge.sub_features)||void 0===_?void 0:_.map(function(t,n){var o=T(re,!1,t.artifactId);return l(V,{artifactId:z,isUserStoryCurrentlyUpdated:W,artifactTitleId:"".concat(F,"-").concat(String.fromCharCode(65+n)),parentUserStory:O,parentIndex:"".concat(Q).concat(Q&&".").concat(J),currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(t){return function(t,n){var o=r([],O.sub_features||[],!0);o[t]=n,q(e(e({},O),{sub_features:o}))}(n,t)},enableDownload:!0,isDiffEditReviewMode:X,showUserStoryDiff:Y,updateUserStoryArtifact:ee,handleDownloadUserStory:Z,handleOpenSendDialog:$,isDisplayHighlightControl:ne,elementDisplayConfig:re,_resolvedConfig:o,getSegmentExampleComponent:ue,handleViewGlossary:ae,segmentDataList:se,handleFetchSegmentDetails:de},t.artifactId)})]}))}))]}))},_=function(t){var n=t.artifactTitleIDs,a=t.isDiffEditReviewMode,s=t.showUserStoryDiff,u=t.updateUserStoryArtifact,d=t.isUserStoryCurrentlyUpdated,c=t.artifactId,v=t.handleOpenSendDialog,m=t.handleDownloadUserStory,h=t.selectedArtifactId,y=t.isDisplayHighlightControl,p=t.elementDisplayConfig,f=t.showWrapper,C=H(),I=C.userStory,w=C.setUserStory,N=C.customStyles,D=C.searchQueryList,b=C.currentHighlightIndex,x=C.setCurrentHighlightIndex,B=C.segmentDataList,E=C.handleViewGlossary,k=C.getSegmentExampleComponent,A=C.handleFetchSegmentDetails,L=null==N?void 0:N.userStoryCardStyles,M=0===b,P=b===D.length-1;return o("div",e({className:U.userStoryCardWrapper,style:y?e(e({},null==L?void 0:L.userStoryCardWrapper),{position:"relative"}):null==L?void 0:L.userStoryCardWrapper},{children:[y&&l(i,{children:D.length>0&&l("div",e({className:U.wrapper},{children:l("div",e({className:U.highlightNavigation},{children:o("div",e({className:U.navigationContainer},{children:[o("span",e({className:U.navCounter},{children:[b+1," of ",D.length]})),o("div",e({className:U.navButtons},{children:[l("button",e({onClick:function(){b>0&&x(function(e){return e-1})},className:U.navButton,disabled:M},{children:l(S,{size:20,className:U.navIcon})})),l("button",e({onClick:function(){b<D.length-1&&x(function(e){return e+1})},className:U.navButton,disabled:P},{children:l(g,{size:20,className:U.navIcon})}))]}))]}))}))}))}),I.map(function(e,t){var o=T(p,!0);return l(V,{isUserStoryCurrentlyUpdated:d,artifactId:c,artifactTitleId:n[t]||"",currentUserStory:e,onUserStoryChange:function(e){w(function(n){return n[t]=e,r([],n,!0)})},parentIndex:"",currentIndex:"".concat(t+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:v,handleDownloadUserStory:m,selectedArtifactId:h,isDisplayHighlightControl:y,elementDisplayConfig:p,_resolvedConfig:o,showWrapper:f,getSegmentExampleComponent:k,handleViewGlossary:E,segmentDataList:B,handleFetchSegmentDetails:A},e.artifactId)})]}))};export{V as StoryCard,_ as UserStoryCardWrapper,V as default,R as replaceLearnedTagsWithInfo};
1
+ import{__assign as e,__awaiter as t,__generator as n,__spreadArray as o}from"tslib";import{jsxs as r,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as s,useRef as a,useEffect as u}from"react";import{ExternalLink as d,Download as c,Share2 as v,Copy as y,LoaderCircle as m,PencilIcon as h,ChevronUp as f,ChevronDown as p,ChevronUpIcon as S,ChevronDownIcon as g,Info as C,Bookmark as I}from"lucide-react";import w from"showdown";import{Menu as N,MenuItem as b,Tooltip as U}from"@mui/material";import{v4 as D}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as A}from"../../utils/user-story.utils.js";import M from"../../shared/AtomicButton.js";import E from"../RichTextEditor/RichTextEditor.js";import H from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as P}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as R}from"../story-screen/BigEnoughPanel.js";function T(t){for(var n,o=[],r=/<learned>(.*?)<\/learned>/g,l=0,s=0;null!==(n=r.exec(t));){var a=n[1],u=n.index;u>l&&o.push(i("span",{children:t.slice(l,u)},"text-pre-".concat(s++))),o.push(i(U,e({title:a,placement:"top"},{children:i(C,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(D()))),l=r.lastIndex}return l<(null==t?void 0:t.length)&&o.push(i("span",{children:t.slice(l)},"text-post-".concat(s++))),o}function j(t,n,o){var r;if(!t)return{};if(n)return e({},t.parentConfig);var i=e({},t.childConfig);return o&&(null===(r=t.subFeatureOverrides)||void 0===r?void 0:r[o])?e(e({},i),t.subFeatureOverrides[o]):i}var _=function(t){var n,o=t.displayName,l=P().customStyles,s=null===(n=null==l?void 0:l.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return r("div",e({className:x.displayName,style:null==s?void 0:s.wrapper},{children:[i(I,{className:x.displayNameIcon,style:null==s?void 0:s.displayNameIcon}),r("span",e({style:null==s?void 0:s.label},{children:[o,":"]}))]}))},L=function(S){var g,C,I,U,D,W,z=S.isUserStoryCurrentlyUpdated,O=S.artifactId,V=S.artifactTitleId,F=S.parentUserStory,G=S.currentUserStory,q=S.onUserStoryChange,Q=S.parentIndex,J=S.currentIndex,K=S.enableDownload,X=S.isDiffEditReviewMode,Y=S.showUserStoryDiff,Z=S.handleDownloadUserStory,$=S.handleOpenSendDialog,ee=S.updateUserStoryArtifact,te=S.selectedArtifactId,ne=S.isDisplayHighlightControl,oe=S.elementDisplayConfig,re=S._resolvedConfig,ie=S.showWrapper,le=void 0!==ie&&ie,se=S.segmentComponentConfig,ae=P(),ue=ae.searchQueryList,de=ae.citations,ce=ae.customStyles,ve=null==ce?void 0:ce.userStoryCardStyles,ye=null===(g=null==ce?void 0:ce.userStoryScreenStyles)||void 0===g?void 0:g.userStoryContentStyles,me=null==ve?void 0:ve.progressHeaderStyles,he=s(e(e({},structuredClone(G)),{value:B(G.value)||""})),fe=he[0],pe=he[1],Se=s({userStory:!1}),ge=Se[0],Ce=Se[1],Ie=P(),we=Ie.userStory,Ne=Ie.customIcons,be=s(""===Q||te===G.artifactId),Ue=be[0],De=be[1],xe=s(!1);xe[0];var Be=xe[1],ke=s(null),Ae=ke[0],Me=ke[1],Ee=s(!1),He=Ee[0],Pe=Ee[1],Re=a(null),Te=s(!1);Te[0];var je=Te[1],_e=a(null);u(function(){z&&De(z)},[z]),u(function(){pe(e(e({},structuredClone(G)),{value:B(G.value)||""}))},[G]),u(function(){ue.length>0?De(!0):te&&De(te===G.artifactId)},[ue,te,G.artifactId]);var Le=function(){Me(null)},We=function(){De(function(e){return!e})};var ze=null!=(null==G?void 0:G.big_enough)&&!Number.isNaN(G.big_enough)&&!!(null==G?void 0:G.big_enough_decision_factors),Oe=null!=re?re:j(oe,""===Q);return r("div",e({className:x.card,style:null==ve?void 0:ve.cardStyle,id:"story-card-".concat(G.title),"data-expanded":Ue},{children:[r("div",e({className:x.titleSection,style:null==ve?void 0:ve.titleSection},{children:[r("div",e({className:x.titleRow,style:null==ve?void 0:ve.titleRow,onClick:We},{children:[r("div",e({className:x.titleLeft,style:null==ve?void 0:ve.titleLeft,onMouseEnter:function(){return je(!0)},onMouseLeave:function(){return je(!1)}},{children:[i(_,{displayName:V}),i("h2",e({className:x.storyTitle,style:null==ve?void 0:ve.storyTitle},{children:T(G.title)}),G.artifactId)]})),r("div",e({className:x.titleActions,style:null==ve?void 0:ve.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Oe.showProgressPercentage||Oe.showGapBox)&&le&&r("div",e({className:x.progressHeader,style:null==me?void 0:me.wrapper},{children:[Oe.showProgressPercentage&&r("div",e({className:x.progressPercentage,style:null==me?void 0:me.percentage},{children:[null!==(I=null!==(C=null==G?void 0:G.confidenceScore)&&void 0!==C?C:null==Oe?void 0:Oe.confidenceValue)&&void 0!==I?I:"0","%"]})),Oe.showGapBox&&r("div",e({className:x.gapBox,style:null==me?void 0:me.gapBox},{children:[null!==(D=null!==(U=null==G?void 0:G.gapValue)&&void 0!==U?U:null==Oe?void 0:Oe.gapBoxValue)&&void 0!==D?D:"2"," ","Gaps"]}))]})),ze&&i(R,{customIcons:null==Ne?void 0:Ne.userStoryIcons,customStyles:null==ve?void 0:ve.aiReasoningCitaionStyles,currentUserStory:G,panelStyles:null==ve?void 0:ve.BigEnoughStyles}),!ge.userStory&&r(l,{children:[!1!==(null==Oe?void 0:Oe.showShareButton)&&i("button",e({className:x.iconButton,style:null==ve?void 0:ve.iconButton,onClick:function(e){Me(e.currentTarget)}},{children:i(d,{size:16})})),r(N,e({id:"user-story-share-menu",anchorEl:Ae,open:!!Ae,onClose:function(){return Me(null)},style:null==ve?void 0:ve.userStoryShareMenu},{children:[K&&i(b,e({style:null==ve?void 0:ve.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return Be(!0),Z?[4,Promise.all([Z("pdf"),Z("doc")])]:[2];case 1:return e.sent(),Be(!1),[2]}})})}},{children:r("div",e({ref:Re,className:x.menuItemContent,style:null==ve?void 0:ve.menuItemContent},{children:[i(c,{size:16,color:null==ve?void 0:ve.menuIconColor}),i("p",e({style:null==ve?void 0:ve.menuLabel},{children:"Download"}))]}))})),i(b,e({style:null==ve?void 0:ve.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){return t=G,F&&(t=e(e({},G),{value:"".concat(A(null==F?void 0:F.value,G.title)," \n").concat(G.value)})),null==$||$(!0,[t],G.artifactId),Le(),[2]})})}},{children:r("div",e({style:null==ve?void 0:ve.menuItemContent,className:x.menuItemContentPadded},{children:[i(v,{size:16,color:null==ve?void 0:ve.menuIconColor}),i("p",e({style:null==ve?void 0:ve.menuLabel},{children:"Send"}))]}))})),i(b,e({style:null==ve?void 0:ve.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var e,t,o,r,i;return n(this,function(n){switch(n.label){case 0:e=new w.Converter,t=e.makeHtml(B(G.value)||G.value),o=function(e){var t=(new w.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(G.value)||G.value),r=new ClipboardItem({"text/plain":new Blob([o],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,navigator.clipboard.write([r])];case 2:return n.sent(),console.log("Copied User Story"),[3,5];case 3:return i=n.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return Le(),[7];case 5:return[2]}})})}},{children:r("div",e({style:null==ve?void 0:ve.menuItemContent,className:x.menuItemContentPadded},{children:[i(y,{size:16,color:null==ve?void 0:ve.menuIconColor}),i("p",e({style:null==ve?void 0:ve.menuLabel},{children:"Copy"}))]}))}))]}))]}),ge.userStory&&Ue?i(M,{type:"outline",children:"Cancel",style:null==ve?void 0:ve.cancelButton,onClick:function(){var t;null===(t=_e.current)||void 0===t||t.abort(),Ce(function(t){return e(e({},t),{userStory:!1})})}}):i(l,{}),ge.userStory&&Ue?i(M,{type:"fill",children:He?r("span",e({className:x.savingSpinner,style:null==ve?void 0:ve.savingSpinner},{children:[i(m,{className:x.spinAnimation,style:null==ve?void 0:ve.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:He,style:He?null==ve?void 0:ve.savingButton:null==ve?void 0:ve.saveButton,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return Pe(!0),"userStory"==="userStory"&&(q(fe),console.log("I am changing RTE editor values",fe)),[4,ee(de,we,O,null===(t=_e.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),Ce(function(t){return e(e({},t),{userStory:!1})}),Pe(!1),[2]}})})}}):!X&&!Y&&Ue&&!1!==(null==Oe?void 0:Oe.showEditButton)&&i("button",e({className:x.iconButton,style:null==ve?void 0:ve.editButton,onClick:function(){return Ce(function(t){return e(e({},t),{userStory:!0})})}},{children:i(h,{color:null==ve?void 0:ve.pencilIconColor,size:16})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),We()},style:null==ve?void 0:ve.chevronButton,className:x.chevronButton},{children:i(Ue?f:p,{className:x.chevronIcon,color:null==ve?void 0:ve.chevronIconColor})}))]}))]})),i("div",{className:x.divider,style:null==ve?void 0:ve.dividerStyle})]})),Ue&&i("div",e({className:x.cardContent,style:null==ve?void 0:ve.cardContentStyle},{children:r("div",e({className:x.contentInner,style:null==ve?void 0:ve.contentInner},{children:[r("div",e({className:x.descriptionSection,style:null==ve?void 0:ve.descriptionSection},{children:[i("div",{className:x.justifyBetween,style:null==ve?void 0:ve.justifyBetween}),ge.userStory?i(E,{minHeight:"100%",height:"100%",type:"string",value:B(G.value)||"",handleUpdateState:function(t,n){var o=k(n);pe(function(t){return e(e({},t),{value:o||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ge.userStory?"edit":"readOnly"}):i(H,{showUserStoryDiff:Y,isParent:""===Q,message:B(G.value)||"",artifactId:G.artifactId,customStyles:ye,isDisplayHighlightControl:ne,segmentComponentConfig:se})]})),null===(W=fe.sub_features)||void 0===W?void 0:W.map(function(t,n){var r=j(oe,!1,t.artifactId);return i(L,{artifactId:O,isUserStoryCurrentlyUpdated:z,artifactTitleId:"".concat(V,"-").concat(String.fromCharCode(65+n)),parentUserStory:G,parentIndex:"".concat(Q).concat(Q&&".").concat(J),currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(t){return function(t,n){var r=o([],G.sub_features||[],!0);r[t]=n,q(e(e({},G),{sub_features:r}))}(n,t)},enableDownload:!0,isDiffEditReviewMode:X,showUserStoryDiff:Y,updateUserStoryArtifact:ee,handleDownloadUserStory:Z,handleOpenSendDialog:$,isDisplayHighlightControl:ne,elementDisplayConfig:oe,_resolvedConfig:r,segmentComponentConfig:se},t.artifactId)})]}))}))]}))},W=function(t){var n=t.artifactTitleIDs,s=t.isDiffEditReviewMode,a=t.showUserStoryDiff,u=t.updateUserStoryArtifact,d=t.isUserStoryCurrentlyUpdated,c=t.artifactId,v=t.handleOpenSendDialog,y=t.handleDownloadUserStory,m=t.selectedArtifactId,h=t.isDisplayHighlightControl,f=t.elementDisplayConfig,p=t.showWrapper,C=P(),I=C.userStory,w=C.setUserStory,N=C.customStyles,b=C.searchQueryList,U=C.currentHighlightIndex,D=C.setCurrentHighlightIndex,B=C.segmentComponentConfig,k=null==N?void 0:N.userStoryCardStyles,A=0===U,M=U===b.length-1;return r("div",e({className:x.userStoryCardWrapper,style:h?e(e({},null==k?void 0:k.userStoryCardWrapper),{position:"relative"}):null==k?void 0:k.userStoryCardWrapper},{children:[h&&i(l,{children:b.length>0&&i("div",e({className:x.wrapper},{children:i("div",e({className:x.highlightNavigation},{children:r("div",e({className:x.navigationContainer},{children:[r("span",e({className:x.navCounter},{children:[U+1," of ",b.length]})),r("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){U>0&&D(function(e){return e-1})},className:x.navButton,disabled:A},{children:i(S,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){U<b.length-1&&D(function(e){return e+1})},className:x.navButton,disabled:M},{children:i(g,{size:20,className:x.navIcon})}))]}))]}))}))}))}),I.map(function(e,t){var r=j(f,!0);return i(L,{isUserStoryCurrentlyUpdated:d,artifactId:c,artifactTitleId:n[t]||"",currentUserStory:e,onUserStoryChange:function(e){w(function(n){return n[t]=e,o([],n,!0)})},parentIndex:"",currentIndex:"".concat(t+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:a,updateUserStoryArtifact:u,handleOpenSendDialog:v,handleDownloadUserStory:y,selectedArtifactId:m,isDisplayHighlightControl:h,elementDisplayConfig:f,_resolvedConfig:r,showWrapper:p,segmentComponentConfig:B},e.artifactId)})]}))};export{L as StoryCard,W as UserStoryCardWrapper,L as default,T as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import{ChevronUp as l,ChevronDown as i,ExternalLink as a}from"lucide-react";import{useState as o}from"react";import r from"./AiReasonAccoridon.module.css.js";function c(c){var s=c.icon,d=c.title,u=c.content,m=c.subTitle,p=c.scenario,v=c.className,h=void 0===v?"":v,y=c.customStyles,f=c.alwaysOpen,B=void 0!==f&&f,N=c.defaultOpen,x=void 0===N||N,k=c.isSegmentExplanation,w=void 0!==k&&k,g=c.handleViewExample,S=c.handleViewGlossary,b=o(x),C=b[0],E=b[1];return n("div",e({className:"".concat("riskSideBar"!==p&&r.wrapperBorder," ").concat(r.wrapper," ").concat(h),style:null==y?void 0:y.wrapper},{children:[n("div",e({className:"".concat(r.header," ").concat("riskSideBar"===p?r.headerPaddingRisk:r.headerPadding),style:null==y?void 0:y.header,onClick:function(){B||E(!C)}},{children:[n("div",e({className:r.headerLeft,style:null==y?void 0:y.iconWrapper},{children:[s,n("div",e({className:r.titleBlock},{children:[t("h1",e({className:r.title,style:null==y?void 0:y.title},{children:d})),t("p",e({className:r.subTitle,style:null==y?void 0:y.subTitle},{children:m}))]}))]})),"riskSideBar"!==p&&!B&&t("div",e({className:r.chevronWrapper,style:null==y?void 0:y.chevronWrapper},{children:t(C?l:i,{className:r.chevronIcon})}))]})),C&&n("div",e({className:"".concat("riskSideBar"!==p&&r.content," ").concat(r.contentBase),style:e({},null==y?void 0:y.contentContainerWrapper)},{children:[t("div",e({style:null==y?void 0:y.contentWrapper},{children:u})),w&&n("div",e({className:"".concat(r.segmentExplanationButtonContainer," flex-row"),style:e({},null==y?void 0:y.segmentExplanationButtonContainer)},{children:[t("button",e({className:"".concat(r.segmentButton),onClick:function(){return null==g?void 0:g()},style:e({},null==y?void 0:y.explanationButton)},{children:"Show Example"})),n("button",e({className:"".concat(r.segmentButton),onClick:function(){return null==S?void 0:S()},style:e({},null==y?void 0:y.explanationButton)},{children:["View in Glossary ",t(a,{size:14})]}))]}))]}))]}))}export{c as default};
1
+ import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import{ChevronUp as l,ChevronDown as i,ExternalLink as a}from"lucide-react";import{useState as o}from"react";import r from"./AiReasonAccoridon.module.css.js";function c(c){var s=c.icon,d=c.title,u=c.content,m=c.subTitle,p=c.scenario,v=c.className,h=void 0===v?"":v,y=c.customStyles,f=c.alwaysOpen,B=void 0!==f&&f,N=c.defaultOpen,x=void 0===N||N,k=c.isSegmentExplanation,w=void 0!==k&&k,g=c.handleViewExample,S=c.handleViewGlossary,b=o(x),C=b[0],E=b[1];return n("div",e({className:"".concat("riskSideBar"!==p&&r.wrapperBorder," ").concat(r.wrapper," ").concat(h),style:null==y?void 0:y.wrapper},{children:[n("div",e({className:"".concat(r.header," ").concat("riskSideBar"===p?r.headerPaddingRisk:r.headerPadding),style:null==y?void 0:y.header,onClick:function(){B||E(!C)}},{children:[n("div",e({className:r.headerLeft,style:null==y?void 0:y.iconWrapper},{children:[s,n("div",e({className:r.titleBlock},{children:[t("h1",e({className:r.title,style:null==y?void 0:y.title},{children:d})),t("p",e({className:r.subTitle,style:null==y?void 0:y.subTitle},{children:m}))]}))]})),"riskSideBar"!==p&&!B&&t("div",e({className:r.chevronWrapper,style:null==y?void 0:y.chevronWrapper},{children:t(C?l:i,{className:r.chevronIcon})}))]})),C&&n("div",e({className:"".concat("riskSideBar"!==p&&r.content," ").concat(r.contentBase),style:e({},null==y?void 0:y.contentContainerWrapper)},{children:[t("div",e({style:null==y?void 0:y.contentWrapper},{children:u})),(g||S)&&w&&n("div",e({className:"".concat(r.segmentExplanationButtonContainer," flex-row"),style:e({},null==y?void 0:y.segmentExplanationButtonContainer)},{children:[g&&t("button",e({className:"".concat(r.segmentButton),onClick:function(){return null==g?void 0:g()},style:e({},null==y?void 0:y.explanationButton)},{children:"Show Example"})),S&&n("button",e({className:"".concat(r.segmentButton),onClick:function(){return null==S?void 0:S()},style:e({},null==y?void 0:y.explanationButton)},{children:["View in Glossary ",t(a,{size:14})]}))]}))]}))]}))}export{c as default};
2
2
  //# sourceMappingURL=AIReasonAccordion.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as l,useEffect as o}from"react";import{Pencil as a,Save as r,X as d}from"lucide-react";import{formatMarkdown as s}from"../../utils/user-story.utils.js";import u from"../userstory-with-citation/UserStoryWithCitation.js";import v from"./PartialRequirementContent.module.css.js";import{Tooltip as c}from"@mui/material";import{useRequirementAI as m}from"../RequirementAIWrapper/RequirementAIWrapper.js";import p from"../RichTextEditor/RichTextEditor.js";var y=function(y){var C,h,S,f,g,R,q,P,w,B,b,N,D,A,E,j,x,k,U=y.loadingPartialRequirements,W=y.localUserStory,F=y.setLocalUserStory,L=y.onCraFlowDiffAgentAction,T=y.disableEditing,z=y.isCraflow,I=void 0===z||z,V=y.onCraAccept,G=y.onCraReject,H=l(!1),M=H[0],J=H[1],K=l(""),O=K[0],Q=K[1],X=m(),Y=X.customStyles,Z=X.segmentDataList,$=X.handleViewGlossary,_=X.getSegmentExampleComponent,ee=X.handleFetchSegmentDetails;o(function(){T&&J(!1)},[T]),o(function(){var e;Q(null===(e=null==W?void 0:W[0])||void 0===e?void 0:e.value)},[W]);if(U)return t("div",e({className:v.skeletonWrapper,style:null===(C=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===C?void 0:C.skeletonWrapper},{children:[1,2,3,4,5].map(function(e){var i;return t("div",{className:v.skeletonLine,style:null===(i=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},e)})}));var te=!O||""===O.trim();return i("div",e({className:v.wrapper,style:null===(h=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===h?void 0:h.wrapper},{children:[t("div",e({className:v.actionBar,style:null===(S=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===S?void 0:S.actionBar},{children:M?i(n,{children:[i("span",e({className:v.editingBadge,style:null===(q=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===q?void 0:q.editingBadge},{children:[t("span",{className:v.editingDot,style:null===(P=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===P?void 0:P.editingDot}),"Editing"]})),t("div",{className:v.btnDivider,style:null===(w=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===w?void 0:w.btnDivider}),t(c,e({title:te?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e({},null===(B=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===B?void 0:B.headerTooltip)}}},{children:t("span",{children:t("button",e({className:v.saveBtn,style:e(e(e({},null===(b=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===b?void 0:b.actionBtn),null===(N=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===N?void 0:N.saveBtn),{opacity:te?.5:1,cursor:te?"not-allowed":"pointer"}),onClick:function(){te||(F(function(t){var i=e(e({},t[0]),{value:O});return null==L||L("accept",[i]),[i]}),J(!1))},disabled:te},{children:t(r,{size:16})}))})})),t("button",e({className:v.cancelBtn,style:e(e({},null===(D=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===D?void 0:D.actionBtn),null===(A=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===A?void 0:A.cancelBtn),onClick:function(){var e;Q(null===(e=null==W?void 0:W[0])||void 0===e?void 0:e.value),J(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:t(d,{size:16})}))]}):t(c,e({title:T?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:e({},null===(f=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===f?void 0:f.headerTooltip)}}},{children:t("span",{children:t("button",e({className:v.editBtn,style:e(e(e({},null===(g=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===g?void 0:g.actionBtn),null===(R=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===R?void 0:R.editBtn),{opacity:T?.5:1,cursor:T?"not-allowed":"pointer"}),onClick:function(){T||J(!0)},disabled:T,"aria-label":"Edit requirement"},{children:t(a,{size:16})}))})}))})),t("div",M?e({className:v.editorContainer,style:null===(E=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===E?void 0:E.editorContainer},{children:t(p,{minHeight:"100%",height:"100%",type:"string",value:s((null===(j=null==W?void 0:W[0])||void 0===j?void 0:j.value)||""),handleUpdateState:function(e,t){Q(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):e({className:v.viewContainer,style:null===(x=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===x?void 0:x.viewContainer},{children:t(u,{message:s((null===(k=null==W?void 0:W[0])||void 0===k?void 0:k.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:W,setCraUserStory:F,onCraFlowDiffAgentAction:L,displayActionButtons:!M},isCraflow:I,onCraAccept:V,onCraReject:G,customStyles:null==Y?void 0:Y.UserStoryWithCitationCustomStyles,getSegmentExampleComponent:_,handleViewGlossary:$,segmentDataList:Z,handleFetchSegmentDetails:ee})}))]}))};export{y as PartialRequirementContent,y as default};
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as l,useEffect as o}from"react";import{Pencil as r,Save as a,X as d}from"lucide-react";import{formatMarkdown as s}from"../../utils/user-story.utils.js";import u from"../userstory-with-citation/UserStoryWithCitation.js";import v from"./PartialRequirementContent.module.css.js";import{Tooltip as c}from"@mui/material";import{useRequirementAI as m}from"../RequirementAIWrapper/RequirementAIWrapper.js";import p from"../RichTextEditor/RichTextEditor.js";var y=function(y){var C,f,h,S,R,g,q,P,w,B,b,N,A,j,D,k,E,U,x=y.loadingPartialRequirements,W=y.localUserStory,T=y.setLocalUserStory,z=y.onCraFlowDiffAgentAction,F=y.disableEditing,I=y.isCraflow,L=void 0===I||I,H=y.onCraAccept,M=y.onCraReject,V=l(!1),G=V[0],J=V[1],K=l(""),O=K[0],Q=K[1],X=m(),Y=X.customStyles,Z=X.segmentComponentConfig;o(function(){F&&J(!1)},[F]),o(function(){var e;Q(null===(e=null==W?void 0:W[0])||void 0===e?void 0:e.value)},[W]);if(x)return t("div",e({className:v.skeletonWrapper,style:null===(C=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===C?void 0:C.skeletonWrapper},{children:[1,2,3,4,5].map(function(e){var i;return t("div",{className:v.skeletonLine,style:null===(i=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},e)})}));var $=!O||""===O.trim();return i("div",e({className:v.wrapper,style:null===(f=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===f?void 0:f.wrapper},{children:[t("div",e({className:v.actionBar,style:null===(h=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===h?void 0:h.actionBar},{children:G?i(n,{children:[i("span",e({className:v.editingBadge,style:null===(q=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===q?void 0:q.editingBadge},{children:[t("span",{className:v.editingDot,style:null===(P=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===P?void 0:P.editingDot}),"Editing"]})),t("div",{className:v.btnDivider,style:null===(w=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===w?void 0:w.btnDivider}),t(c,e({title:$?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:e({},null===(B=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===B?void 0:B.headerTooltip)}}},{children:t("span",{children:t("button",e({className:v.saveBtn,style:e(e(e({},null===(b=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===b?void 0:b.actionBtn),null===(N=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===N?void 0:N.saveBtn),{opacity:$?.5:1,cursor:$?"not-allowed":"pointer"}),onClick:function(){$||(T(function(t){var i=e(e({},t[0]),{value:O});return null==z||z("accept",[i]),[i]}),J(!1))},disabled:$},{children:t(a,{size:16})}))})})),t("button",e({className:v.cancelBtn,style:e(e({},null===(A=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===A?void 0:A.actionBtn),null===(j=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===j?void 0:j.cancelBtn),onClick:function(){var e;Q(null===(e=null==W?void 0:W[0])||void 0===e?void 0:e.value),J(!1)},title:"Discard changes","aria-label":"Discard changes"},{children:t(d,{size:16})}))]}):t(c,e({title:F?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:e({},null===(S=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===S?void 0:S.headerTooltip)}}},{children:t("span",{children:t("button",e({className:v.editBtn,style:e(e(e({},null===(R=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===R?void 0:R.actionBtn),null===(g=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===g?void 0:g.editBtn),{opacity:F?.5:1,cursor:F?"not-allowed":"pointer"}),onClick:function(){F||J(!0)},disabled:F,"aria-label":"Edit requirement"},{children:t(r,{size:16})}))})}))})),t("div",G?e({className:v.editorContainer,style:null===(D=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===D?void 0:D.editorContainer},{children:t(p,{minHeight:"100%",height:"100%",type:"string",value:s((null===(k=null==W?void 0:W[0])||void 0===k?void 0:k.value)||""),handleUpdateState:function(e,t){Q(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):e({className:v.viewContainer,style:null===(E=null==Y?void 0:Y.PartialRequirementContentStyles)||void 0===E?void 0:E.viewContainer},{children:t(u,{message:s((null===(U=null==W?void 0:W[0])||void 0===U?void 0:U.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:W,setCraUserStory:T,onCraFlowDiffAgentAction:z,displayActionButtons:!G},isCraflow:L,onCraAccept:H,onCraReject:M,customStyles:null==Y?void 0:Y.UserStoryWithCitationCustomStyles,segmentComponentConfig:Z})}))]}))};export{y as PartialRequirementContent,y as default};
2
2
  //# sourceMappingURL=PartialRequirementContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import o from"react";import{ChevronDown as a}from"lucide-react";import{cn as l}from"../../../UserStoryImport/lib/cn.js";import s from"./segment.module.css.js";import i from"./ExampleComponentWrapper.js";import r from"../ai-reasoning/AiReasoningCitationContent.js";var c=function(c){var m=c.id,u=void 0===m?"Segment":m,p=c.label;c.originalValue,c.decisionStrength;var d=c.aiReason,g=c.customStyles,f=c.customIcons,v=c.aiReasoningCitationCustomStyles,h=c.segmentExampleComponent,y=c.handleViewGlossary,C=o.useState(!1),x=C[0],S=C[1],b=o.useState(!1),E=b[0],I=b[1];return n("div",e({className:"".concat(s.segmentWrapper),style:e({},null==g?void 0:g.segmentWrapper)},{children:[n("div",e({className:"".concat(s.segmentContainer),style:e({},null==g?void 0:g.container)},{children:[n("span",e({className:"".concat(s.segmentLabel),style:e({},null==g?void 0:g.label)},{children:[u," ","{".concat(p,"}")]})),t("button",e({className:"".concat(s.segmentExplanationButtonContainer),style:e({},null==g?void 0:g.buttonContainer),onClick:function(){S(function(e){return!e}),I(!1)}},{children:t(a,{className:l("".concat(s.cheveronIcon),x&&"".concat(s.cheveronIconRotated)),style:e({},null==g?void 0:g.cheveronIcon)})}))]})),E?t(i,{label:null!=p?p:"",segmentExampleComponent:h,customStyles:null==g?void 0:g.segmentExample,handleCancelExample:function(){I(!1)}}):d&&x&&t(r,{aiReason:d,customStyles:v,customIcons:f,isSegmentExplanation:!0,handleViewGlossary:function(){S(!1),null==y||y()},handleViewExample:function(){I(!0)}})]}))};export{c as default};
1
+ import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import o from"react";import{ChevronDown as a}from"lucide-react";import{cn as l}from"../../../UserStoryImport/lib/cn.js";import i from"./segment.module.css.js";import s from"./ExampleComponentWrapper.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";var r=function(r){var m=r.id,u=void 0===m?"Segment":m,p=r.label;r.originalValue,r.decisionStrength;var d=r.aiReason,g=r.customStyles,v=r.customIcons,f=r.aiReasoningCitationCustomStyles,h=r.segmentExampleComponent,y=r.handleViewGlossary,C=o.useState(!1),x=C[0],S=C[1],b=o.useState(!1),E=b[0],I=b[1];return n("div",e({className:"".concat(i.segmentWrapper),style:e({},null==g?void 0:g.segmentWrapper)},{children:[n("div",e({className:"".concat(i.segmentContainer),style:e({},null==g?void 0:g.container)},{children:[n("span",e({className:"segment-".concat(u," ").concat(i.segmentLabel),style:e({},null==g?void 0:g.label)},{children:[u," ","{".concat(p,"}")]})),t("button",e({className:"".concat(i.segmentExplanationButtonContainer),style:e({},null==g?void 0:g.buttonContainer),onClick:function(){S(function(e){return!e}),I(!1)}},{children:t(a,{className:l("".concat(i.cheveronIcon),x&&"".concat(i.cheveronIconRotated)),style:e({},null==g?void 0:g.cheveronIcon)})}))]})),E?t(s,{label:null!=p?p:"",segmentExampleComponent:h,customStyles:null==g?void 0:g.segmentExample,handleCancelExample:function(){I(!1)}}):d&&x&&t(c,{aiReason:d,customStyles:f,customIcons:v,isSegmentExplanation:!0,handleViewGlossary:y?function(){S(!1),null==y||y(u)}:void 0,handleViewExample:h?function(){I(!0)}:void 0})]}))};export{r as default};
2
2
  //# sourceMappingURL=Segment.js.map
@@ -1,2 +1,2 @@
1
- var e={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentContainer:"segment-module_segmentContainer__wBEel",segmentLabel:"segment-module_segmentLabel__-y8Su",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};!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('.segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentContainer__wBEel{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:"fit-content"}.segment-module_segmentLabel__-y8Su{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}'));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
1
+ var e={segmentWrapper:"segment-module_segmentWrapper__PVOuq",segmentContainer:"segment-module_segmentContainer__wBEel",segmentLabel:"segment-module_segmentLabel__-y8Su",segmentButtonContainer:"segment-module_segmentButtonContainer__X76sx",cheveronIcon:"segment-module_cheveronIcon__1njFy",cheveronIconRotated:"segment-module_cheveronIconRotated__qDYj7",exampleWrapper:"segment-module_exampleWrapper__ptZzj",uppercase:"segment-module_uppercase__hjgxG",exampleContainer:"segment-module_exampleContainer__9tMXx",exampleHeader:"segment-module_exampleHeader__9P11O",exampleHeaderText:"segment-module_exampleHeaderText__MWMG0",cancelButton:"segment-module_cancelButton__-F5aZ"};!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(".segment-module_segmentWrapper__PVOuq{display:flex;flex-direction:column;gap:8px}.segment-module_segmentContainer__wBEel{align-items:center;background-color:#eff6ff;border:1px dashed #bfdbfe;border-radius:4px;color:#3b82f6;display:flex;gap:8px;padding:8px;width:fit-content}.segment-module_segmentLabel__-y8Su{color:#3b82f6;font-size:14px;font-weight:600;line-height:21px;text-transform:uppercase}.segment-module_segmentButtonContainer__X76sx{background-color:initial;border:none;cursor:pointer;padding:0}.segment-module_cheveronIcon__1njFy{color:#3b82f6;height:16px;transition:all .2s ease-in-out;width:16px}.segment-module_cheveronIconRotated__qDYj7{transform:rotate(180deg)}.segment-module_exampleWrapper__ptZzj{align-items:flex-start;display:flex;flex-direction:column;gap:12px}.segment-module_uppercase__hjgxG{text-transform:uppercase}.segment-module_exampleContainer__9tMXx{align-items:flex-start;border:2px dashed #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:16px;width:100%}.segment-module_exampleHeader__9P11O{align-items:center;align-self:stretch;display:flex;justify-content:space-between}.segment-module_exampleHeaderText__MWMG0{color:#334155;font-size:14px;font-weight:600;line-height:21px;margin:0}.segment-module_cancelButton__-F5aZ{align-items:center;align-self:stretch;background-color:initial;border:none;color:#334155;cursor:pointer;display:flex;height:fit-content;justify-content:space-between;padding:4px;transition:all .2s ease-in-out}.segment-module_cancelButton__-F5aZ:hover{background-color:#eff6ff}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=segment.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t,__spreadArray as e}from"tslib";import{jsxs as n,jsx as i,Fragment as o}from"react/jsx-runtime";import{useState as r,useEffect as l}from"react";import{PencilIcon as a,ChevronDown as s}from"lucide-react";import{useRequirementAI as c}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{formatMarkdown as u,indentMarkdown as d}from"../../utils/helpers.js";import m from"../RichTextEditor/RichTextEditor.js";import p from"../userstory-with-citation/UserStoryWithCitation.js";import f from"../../shared/AtomicButton.js";import v from"./SubfeatureBlock.module.css.js";var h=function(h){var y,g,S=h.parentArtifactId,I=h.artifactId,N=h.title,b=h.content,B=h.isEditingModeOn,C=h.setIsEditingModeOn,x=h.isCitationLoadingDisplay,j=void 0!==x&&x,W=c(),k=W.userStory,w=W.setUserStory,A=W.customStyles,D=W.customIcons,E=W.segmentDataList,F=W.handleViewGlossary,L=W.getSegmentExampleComponent,R=W.handleFetchSegmentDetails,T=null===(y=null==A?void 0:A.userStoryScreenStyles)||void 0===y?void 0:y.subFeatureBlock,M=null===(g=null==A?void 0:A.userStoryScreenStyles)||void 0===g?void 0:g.userStoryContentStyles,O=r(!0),P=O[0],U=O[1],V=r(!1),q=V[0],G=V[1],_=r(k),z=_[0],H=_[1];l(function(){H(k)},[k]);return n("div",t({className:v.container,style:null==T?void 0:T.container},{children:[n("button",t({onClick:function(){U(function(t){return!t})},className:v.toggleButton,style:null==T?void 0:T.toggleButton},{children:[i("h1",t({className:v.title,style:null==T?void 0:T.title},{children:N})),n("div",t({className:v.subFeatureToolbar,style:null==T?void 0:T.subFeatureToolbar},{children:[P&&i("div",t({className:v.actionBar,style:null==T?void 0:T.actionBar},{children:q?n("div",t({className:v.editingActions},{children:[i(f,{type:"outline",children:"Cancel",onClick:function(t){t.stopPropagation(),G(!1),C(!1)}}),i(f,{type:"fill",children:"Save",onClick:function(t){t.stopPropagation(),w(z),G(!1),C(!1)}})]})):!B&&i("div",t({className:v.viewActions},{children:i("button",t({className:v.editButton,style:null==T?void 0:T.editButton,onClick:function(t){t.stopPropagation(),G(!0),C(!0)}},{children:i(a,{size:16})}))}))})),i(s,{className:"".concat(v.chevron," ").concat(P?v.chevronOpen:""),style:null==T?void 0:T.chevron})]}))]})),P&&i(o,{children:i("div",q?t({className:v.editorWrapper,style:null==T?void 0:T.editorWrapper},{children:i(m,{minHeight:"100%",height:"100%",type:"string",value:u(b)||"",handleUpdateState:function(n,i){var o=d(i);H(function(n){var i=e([],n,!0),r=i.findIndex(function(t){return t.artifactId===S});if(-1===r)return i;var l=i[r].sub_features;if(l){var a=l.findIndex(function(t){return t.artifactId===I});-1!==a&&(i[r]=t(t({},i[r]),{sub_features:l.map(function(e,n){return n===a?t(t({},e),{value:o}):e})}))}return i})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:"edit"})}):t({className:v.contentWrapper,style:null==T?void 0:T.contentWrapper},{children:i(p,{message:b,isCitationLoadingDisplay:j,customStyles:t({},M),customIcons:t({},null==D?void 0:D.userStoryIcons),getSegmentExampleComponent:L,handleViewGlossary:F,segmentDataList:E,handleFetchSegmentDetails:R})}))})]}),I)};export{h as default};
1
+ import{__assign as t,__spreadArray as e}from"tslib";import{jsxs as o,jsx as n,Fragment as i}from"react/jsx-runtime";import{useState as r,useEffect as l}from"react";import{PencilIcon as s,ChevronDown as a}from"lucide-react";import{useRequirementAI as c}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{formatMarkdown as u,indentMarkdown as d}from"../../utils/helpers.js";import m from"../RichTextEditor/RichTextEditor.js";import p from"../userstory-with-citation/UserStoryWithCitation.js";import f from"../../shared/AtomicButton.js";import v from"./SubfeatureBlock.module.css.js";var h=function(h){var y,g,S=h.parentArtifactId,C=h.artifactId,I=h.title,N=h.content,b=h.isEditingModeOn,B=h.setIsEditingModeOn,j=h.isCitationLoadingDisplay,W=void 0!==j&&j,k=c(),x=k.userStory,A=k.setUserStory,w=k.customStyles,E=k.customIcons,R=k.segmentComponentConfig,T=null===(y=null==w?void 0:w.userStoryScreenStyles)||void 0===y?void 0:y.subFeatureBlock,F=null===(g=null==w?void 0:w.userStoryScreenStyles)||void 0===g?void 0:g.userStoryContentStyles,M=r(!0),O=M[0],P=M[1],U=r(!1),q=U[0],D=U[1],L=r(x),_=L[0],z=L[1];l(function(){z(x)},[x]);return o("div",t({className:v.container,style:null==T?void 0:T.container},{children:[o("button",t({onClick:function(){P(function(t){return!t})},className:v.toggleButton,style:null==T?void 0:T.toggleButton},{children:[n("h1",t({className:v.title,style:null==T?void 0:T.title},{children:I})),o("div",t({className:v.subFeatureToolbar,style:null==T?void 0:T.subFeatureToolbar},{children:[O&&n("div",t({className:v.actionBar,style:null==T?void 0:T.actionBar},{children:q?o("div",t({className:v.editingActions},{children:[n(f,{type:"outline",children:"Cancel",onClick:function(t){t.stopPropagation(),D(!1),B(!1)}}),n(f,{type:"fill",children:"Save",onClick:function(t){t.stopPropagation(),A(_),D(!1),B(!1)}})]})):!b&&n("div",t({className:v.viewActions},{children:n("button",t({className:v.editButton,style:null==T?void 0:T.editButton,onClick:function(t){t.stopPropagation(),D(!0),B(!0)}},{children:n(s,{size:16})}))}))})),n(a,{className:"".concat(v.chevron," ").concat(O?v.chevronOpen:""),style:null==T?void 0:T.chevron})]}))]})),O&&n(i,{children:n("div",q?t({className:v.editorWrapper,style:null==T?void 0:T.editorWrapper},{children:n(m,{minHeight:"100%",height:"100%",type:"string",value:u(N)||"",handleUpdateState:function(o,n){var i=d(n);z(function(o){var n=e([],o,!0),r=n.findIndex(function(t){return t.artifactId===S});if(-1===r)return n;var l=n[r].sub_features;if(l){var s=l.findIndex(function(t){return t.artifactId===C});-1!==s&&(n[r]=t(t({},n[r]),{sub_features:l.map(function(e,o){return o===s?t(t({},e),{value:i}):e})}))}return n})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:"edit"})}):t({className:v.contentWrapper,style:null==T?void 0:T.contentWrapper},{children:n(p,{message:N,isCitationLoadingDisplay:W,customStyles:t({},F),customIcons:t({},null==E?void 0:E.userStoryIcons),segmentComponentConfig:R})}))})]}),C)};export{h as default};
2
2
  //# sourceMappingURL=SubfeatureBlock.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as t}from"tslib";import{jsx as n,jsxs as l,Fragment as i}from"react/jsx-runtime";import{createContext as o,useState as r,useRef as s,useEffect as a,useContext as d}from"react";import{PanelGroup as c,Panel as u,PanelResizeHandle as v}from"react-resizable-panels";import{PencilIcon as S,ChevronDown as m}from"lucide-react";import{formatMarkdown as y,indentMarkdown as g}from"../../utils/helpers.js";import p from"./SubfeatureBlock.js";import f from"./UserStoryScreen.module.css.js";import{useRequirementAI as h}from"../RequirementAIWrapper/RequirementAIWrapper.js";var b=o(null),N=function(){var e=d(b);if(!e)throw new Error("UserStoryScreen must be used inside its provider");return e},I=function(t){var i,o,r=t.AtomicButton,s=N(),a=s.selectedStreamingStoryIndex,d=s.isCitationLoadingNotStarted,c=s.classNames,u=s.scenario,v=h(),S=v.userStory,m=v.customStyles,y=null==m?void 0:m.userStoryScreenStyles;return(null==S?void 0:S.length)?l("div",e({className:"".concat(f.header," ").concat(null!==(i=null==c?void 0:c.header)&&void 0!==i?i:""),style:null==y?void 0:y.header},{children:[l("div",e({className:f.headerLeftContainer},{children:[n("span",e({className:f.headerTitle,style:null==y?void 0:y.headerTitle},{children:null===(o=S[a])||void 0===o?void 0:o.title})),"streaming"===u&&l("span",e({className:f.headerSubtitle,style:null==y?void 0:y.headerSubtitle},{children:[n("span",e({className:f.streamingText,style:null==y?void 0:y.streamingText},{children:d?"Generating Requirement Doc":"Hang tight! We're loading the citations."}))," • Review & edit blocks as we build"]}))]})),n(C,{AtomicButton:r})]})):n(x,{classNames:c})},C=function(t){var i=t.AtomicButton,o=N(),r=o.isEditing,s=o.isEditingModeOn,a=o.setIsEditing,d=o.setIsEditingModeOn,c=o.userStoryCopy,u=h(),v=u.userStory,m=u.setUserStory,y=u.customStyles,g=null==y?void 0:y.userStoryScreenStyles;return(null==v?void 0:v.length)?r?l("div",e({className:f.actions,style:null==g?void 0:g.actions},{children:[n(i,e({type:"outline",onClick:function(){a(!1),d(!1)},style:null==g?void 0:g.cancelAtomicButton},{children:"Cancel"})),n(i,e({type:"fill",onClick:function(){m(c),a(!1),d(!1)},style:null==g?void 0:g.saveAtomicButton},{children:"Save"}))]})):s?null:n("div",e({className:f.editToggleWrapper},{children:n("button",e({className:f.editToggleBtn,style:null==g?void 0:g.editToggleBtn,onClick:function(){a(!0),d(!0)}},{children:n(S,{size:16})}))})):null},x=function(t){var i,o=t.classNames;return l("div",e({className:"".concat(f.header," ").concat(null!==(i=null==o?void 0:o.header)&&void 0!==i?i:"")},{children:[n("div",{className:f.skeletonTitle}),n("div",{className:f.skeletonSubtitle})]}))},B=function(){var t,i=h().customStyles,o=null===(t=null==i?void 0:i.userStoryScreenStyles)||void 0===t?void 0:t.accordionSkeleton;return l("div",e({className:f.accordionSkeleton,style:null==o?void 0:o.wrapper},{children:[n("div",{className:f.skeletonLine,style:null==o?void 0:o.line}),n("div",{className:f.skeletonBox,style:null==o?void 0:o.box})]}))},E=function(){var t,i=h().customStyles,o=null===(t=null==i?void 0:i.userStoryScreenStyles)||void 0===t?void 0:t.subFeatureSkeleton;return l("div",e({className:f.subFeatureSkeleton,style:null==o?void 0:o.wrapper},{children:[n("div",{className:f.skeletonLine,style:null==o?void 0:o.line}),n("div",{className:f.skeletonLine,style:null==o?void 0:o.line}),n("div",{className:f.skeletonLine,style:null==o?void 0:o.line})]}))},T=Object.assign(function(t){var l,i,o,d,u,v=t.scenario,S=t.isCitationLoadingNotStarted,m=t.children,y=t.classNames,g=t.artifactTitleIds,p=h(),N=p.userStory,I=p.customStyles,C=r(0),x=C[0],B=C[1],E=r(!0),T=E[0],k=E[1],L=r(!1),R=L[0],w=L[1],A=r(!1),z=A[0],O=A[1],W=r(!1),M=W[0],P=W[1],U=r(!1),D=U[0],F=U[1],H=r(N),j=H[0],G=H[1],q=s(null),V=s(null);return a(function(){G(N)},[N]),a(function(){w(!0);var e=setTimeout(function(){return w(!1)},2e3);return function(){return clearTimeout(e)}},[null===(i=null===(l=null==N?void 0:N[x])||void 0===l?void 0:l.sub_features)||void 0===i?void 0:i.length]),a(function(){var e=V.current;if(e){var t=function(){O(e.scrollHeight-e.scrollTop-e.clientHeight<20)};return e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}},[null==N?void 0:N[x]]),n(b.Provider,e({value:{scenario:v,isCitationLoadingNotStarted:S,selectedStreamingStoryIndex:x,setSelectedStreamingStoryIndex:B,isSidebarExpanded:T,setIsSidebarExpanded:k,sidebarPanelRef:q,isEditing:M,setIsEditing:P,isEditingModeOn:D,setIsEditingModeOn:F,userStoryCopy:j,setUserStoryCopy:G,scrollContainerRef:V,isAtBottom:z,isScrollBtnBouncing:R,scrollToBottom:function(){V.current&&V.current.scrollTo({top:V.current.scrollHeight,behavior:"smooth"})},classNames:y,artifactTitleIds:g}},{children:n("div",e({className:"".concat(f.container," ").concat(null!==(o=null==y?void 0:y.container)&&void 0!==o?o:""),style:e({},null===(d=null==I?void 0:I.userStoryScreenStyles)||void 0===d?void 0:d.wrapperContainer)},{children:n(c,e({direction:"horizontal",className:f.panelGroup,style:null===(u=null==I?void 0:I.userStoryScreenStyles)||void 0===u?void 0:u.panelGroup},{children:m}))}))}))},{Sidebar:function(t){var l,i=t.Component,o=N(),r=o.selectedStreamingStoryIndex,s=o.setSelectedStreamingStoryIndex,a=o.isSidebarExpanded,d=o.setIsSidebarExpanded,c=o.sidebarPanelRef,v=o.scenario,S=o.artifactTitleIds,m=h(),y=m.userStory,g=m.customStyles;return n(u,e({ref:c,defaultSize:25,minSize:15,collapsible:!0,collapsedSize:0,onCollapse:function(){return d(!1)},onExpand:function(){return d(!0)},id:"streaming-sidebar",order:1,className:f.sidebarPanel,style:null===(l=null==g?void 0:g.userStoryScreenStyles)||void 0===l?void 0:l.sidebarPanel},{children:n(i,{streamingUserStories:y,selectedStreamingStoryIndex:r,setSelectedStreamingStoryIndex:s,isSidebarExpanded:a,isStreamingScreen:"streaming"===v,artifactTitleIds:S})}))},SidebarToggle:function(t){var l=t.OpenIcon,i=t.CloseIcon,o=N(),r=o.isSidebarExpanded;o.setIsSidebarExpanded;var s=o.sidebarPanelRef,a=h().customStyles,d=null==a?void 0:a.userStoryScreenStyles;return n(v,e({className:f.resizeHandle,style:null==d?void 0:d.resizeHandle},{children:n("button",e({className:f.sidebarToggleBtn,onClick:function(e){e.stopPropagation(),function(){var e,t;r?null===(e=s.current)||void 0===e||e.collapse():null===(t=s.current)||void 0===t||t.expand()}()},style:null==d?void 0:d.sidebarToggleBtn},{children:n(r?i:l,{})}))}))},Content:function(t){var i,o=t.children,r=t.AtomicButton,s=N(),a=s.scrollContainerRef,d=s.classNames,c=h().customStyles,v=null==c?void 0:c.userStoryScreenStyles;return n(u,e({minSize:0,id:"streaming-content",order:2,className:f.contentPanel,style:null==v?void 0:v.contentPanel},{children:l("div",e({ref:a,className:"".concat(f.scrollContainer," ").concat(null!==(i=null==d?void 0:d.scrollContainer)&&void 0!==i?i:""),style:null==v?void 0:v.scrollContainer},{children:[n(I,{AtomicButton:r}),o]}))}))},Body:function(e){var t=e.children,l=h(),o=l.userStory;return l.setUserStory,(null==o?void 0:o.length)?n(i,{children:t}):null},Story:function(t){var l,i,o,r=t.Component,s=N(),a=s.selectedStreamingStoryIndex,d=s.isEditing,c=s.scenario,u=h(),v=u.userStory,S=u.customStyles,m=u.customIcons,y=u.segmentDataList,g=u.handleViewGlossary,p=u.getSegmentExampleComponent,b=u.handleFetchSegmentDetails,I=null==S?void 0:S.userStoryScreenStyles,C=null==I?void 0:I.userStoryContentStyles;return d?null:n("div",e({className:f.storyWrapper,style:null==I?void 0:I.storyWrapper},{children:n(r,{message:null===(l=v[a])||void 0===l?void 0:l.value,aiReasoningsForBlock:(null===(i=v[a])||void 0===i?void 0:i.aiReasoning)||[],isCitationLoadingDisplay:"streaming"===c,customStyles:e({},C),customIcons:e({},null==m?void 0:m.userStoryIcons),artifactId:null===(o=v[a])||void 0===o?void 0:o.artifactId,getSegmentExampleComponent:p,handleViewGlossary:g,segmentDataList:y,handleFetchSegmentDetails:b})}))},Editor:function(l){var i,o=l.Component,r=l.onBlur,s=N(),a=s.selectedStreamingStoryIndex,d=s.isEditing,c=s.setUserStoryCopy,u=h(),v=u.userStory,S=u.customStyles,m=null==S?void 0:S.textEditorStyles;if(!d)return null;return n("div",e({className:f.editorWrapper,style:null==m?void 0:m.wrapper},{children:n(o,{minHeight:"100%",height:"100%",type:"string",value:y(null===(i=v[a])||void 0===i?void 0:i.value)||"",handleUpdateState:function(n,l){var i,o=g(l),r=null===(i=v[a])||void 0===i?void 0:i.storyNumber;c(function(n){var l=t([],n,!0),i=l.findIndex(function(e){return e.storyNumber===r});return-1===i||(l[i]=e(e({},l[i]),{value:o})),l})},doNotShowBorderInViewMode:!1,onBlur:r,mode:"edit",customStyles:m})}))},SubFeatures:function(){var t,o=N(),r=o.selectedStreamingStoryIndex,s=o.isEditingModeOn,a=o.setIsEditingModeOn,d=o.scenario,c=o.isCitationLoadingNotStarted,u=h().userStory,v=(null===(t=null==u?void 0:u[r])||void 0===t?void 0:t.sub_features)||[];return 0===v.length&&"streaming"===d?n(B,{}):l(i,{children:[v.map(function(e){return n(p,{parentArtifactId:null==u?void 0:u[r].artifactId,artifactId:e.artifactId,title:e.title,content:e.value,aiReasoning:e.aiReasoning||[],isEditingModeOn:s,setIsEditingModeOn:a,isCitationLoadingDisplay:"streaming"===d},e.artifactId)}),"streaming"===d&&c&&n("div",e({className:f.subFeatureSkeletonWrapper},{children:n(E,{})}))]})},ScrollButton:function(){var t=N(),l=t.isAtBottom,i=t.isSidebarExpanded,o=t.scrollToBottom,r=t.isScrollBtnBouncing,s=h(),a=s.userStory,d=s.customStyles,c=null==d?void 0:d.userStoryScreenStyles;return!(null==a?void 0:a.length)||l?null:n("div",e({className:"".concat(f.scrollBtnWrapper," ").concat(i?f.scrollExpanded:f.scrollCollapsed),style:null==c?void 0:c.scrollBtnWrapper},{children:n("button",e({onClick:o,className:"".concat(f.scrollBtn," ").concat(r?f.bounce:""),style:null==c?void 0:c.scrollBtn,"aria-label":"Scroll to bottom"},{children:n(m,{size:20})}))}))}});export{T as default};
1
+ import{__assign as e,__spreadArray as t}from"tslib";import{jsx as n,jsxs as l,Fragment as i}from"react/jsx-runtime";import{createContext as o,useState as r,useRef as s,useEffect as a,useContext as d}from"react";import{PanelGroup as c,Panel as u,PanelResizeHandle as v}from"react-resizable-panels";import{PencilIcon as S,ChevronDown as m}from"lucide-react";import{formatMarkdown as y,indentMarkdown as p}from"../../utils/helpers.js";import g from"./SubfeatureBlock.js";import f from"./UserStoryScreen.module.css.js";import{useRequirementAI as h}from"../RequirementAIWrapper/RequirementAIWrapper.js";var b=o(null),N=function(){var e=d(b);if(!e)throw new Error("UserStoryScreen must be used inside its provider");return e},I=function(t){var i,o,r=t.AtomicButton,s=N(),a=s.selectedStreamingStoryIndex,d=s.isCitationLoadingNotStarted,c=s.classNames,u=s.scenario,v=h(),S=v.userStory,m=v.customStyles,y=null==m?void 0:m.userStoryScreenStyles;return(null==S?void 0:S.length)?l("div",e({className:"".concat(f.header," ").concat(null!==(i=null==c?void 0:c.header)&&void 0!==i?i:""),style:null==y?void 0:y.header},{children:[l("div",e({className:f.headerLeftContainer},{children:[n("span",e({className:f.headerTitle,style:null==y?void 0:y.headerTitle},{children:null===(o=S[a])||void 0===o?void 0:o.title})),"streaming"===u&&l("span",e({className:f.headerSubtitle,style:null==y?void 0:y.headerSubtitle},{children:[n("span",e({className:f.streamingText,style:null==y?void 0:y.streamingText},{children:d?"Generating Requirement Doc":"Hang tight! We're loading the citations."}))," • Review & edit blocks as we build"]}))]})),n(C,{AtomicButton:r})]})):n(B,{classNames:c})},C=function(t){var i=t.AtomicButton,o=N(),r=o.isEditing,s=o.isEditingModeOn,a=o.setIsEditing,d=o.setIsEditingModeOn,c=o.userStoryCopy,u=h(),v=u.userStory,m=u.setUserStory,y=u.customStyles,p=null==y?void 0:y.userStoryScreenStyles;return(null==v?void 0:v.length)?r?l("div",e({className:f.actions,style:null==p?void 0:p.actions},{children:[n(i,e({type:"outline",onClick:function(){a(!1),d(!1)},style:null==p?void 0:p.cancelAtomicButton},{children:"Cancel"})),n(i,e({type:"fill",onClick:function(){m(c),a(!1),d(!1)},style:null==p?void 0:p.saveAtomicButton},{children:"Save"}))]})):s?null:n("div",e({className:f.editToggleWrapper},{children:n("button",e({className:f.editToggleBtn,style:null==p?void 0:p.editToggleBtn,onClick:function(){a(!0),d(!0)}},{children:n(S,{size:16})}))})):null},B=function(t){var i,o=t.classNames;return l("div",e({className:"".concat(f.header," ").concat(null!==(i=null==o?void 0:o.header)&&void 0!==i?i:"")},{children:[n("div",{className:f.skeletonTitle}),n("div",{className:f.skeletonSubtitle})]}))},x=function(){var t,i=h().customStyles,o=null===(t=null==i?void 0:i.userStoryScreenStyles)||void 0===t?void 0:t.accordionSkeleton;return l("div",e({className:f.accordionSkeleton,style:null==o?void 0:o.wrapper},{children:[n("div",{className:f.skeletonLine,style:null==o?void 0:o.line}),n("div",{className:f.skeletonBox,style:null==o?void 0:o.box})]}))},E=function(){var t,i=h().customStyles,o=null===(t=null==i?void 0:i.userStoryScreenStyles)||void 0===t?void 0:t.subFeatureSkeleton;return l("div",e({className:f.subFeatureSkeleton,style:null==o?void 0:o.wrapper},{children:[n("div",{className:f.skeletonLine,style:null==o?void 0:o.line}),n("div",{className:f.skeletonLine,style:null==o?void 0:o.line}),n("div",{className:f.skeletonLine,style:null==o?void 0:o.line})]}))},T=Object.assign(function(t){var l,i,o,d,u,v=t.scenario,S=t.isCitationLoadingNotStarted,m=t.children,y=t.classNames,p=t.artifactTitleIds,g=h(),N=g.userStory,I=g.customStyles,C=r(0),B=C[0],x=C[1],E=r(!0),T=E[0],k=E[1],L=r(!1),R=L[0],A=L[1],w=r(!1),z=w[0],O=w[1],W=r(!1),M=W[0],P=W[1],U=r(!1),H=U[0],j=U[1],F=r(N),q=F[0],D=F[1],G=s(null),_=s(null);return a(function(){D(N)},[N]),a(function(){A(!0);var e=setTimeout(function(){return A(!1)},2e3);return function(){return clearTimeout(e)}},[null===(i=null===(l=null==N?void 0:N[B])||void 0===l?void 0:l.sub_features)||void 0===i?void 0:i.length]),a(function(){var e=_.current;if(e){var t=function(){O(e.scrollHeight-e.scrollTop-e.clientHeight<20)};return e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}},[null==N?void 0:N[B]]),n(b.Provider,e({value:{scenario:v,isCitationLoadingNotStarted:S,selectedStreamingStoryIndex:B,setSelectedStreamingStoryIndex:x,isSidebarExpanded:T,setIsSidebarExpanded:k,sidebarPanelRef:G,isEditing:M,setIsEditing:P,isEditingModeOn:H,setIsEditingModeOn:j,userStoryCopy:q,setUserStoryCopy:D,scrollContainerRef:_,isAtBottom:z,isScrollBtnBouncing:R,scrollToBottom:function(){_.current&&_.current.scrollTo({top:_.current.scrollHeight,behavior:"smooth"})},classNames:y,artifactTitleIds:p}},{children:n("div",e({className:"".concat(f.container," ").concat(null!==(o=null==y?void 0:y.container)&&void 0!==o?o:""),style:e({},null===(d=null==I?void 0:I.userStoryScreenStyles)||void 0===d?void 0:d.wrapperContainer)},{children:n(c,e({direction:"horizontal",className:f.panelGroup,style:null===(u=null==I?void 0:I.userStoryScreenStyles)||void 0===u?void 0:u.panelGroup},{children:m}))}))}))},{Sidebar:function(t){var l,i=t.Component,o=N(),r=o.selectedStreamingStoryIndex,s=o.setSelectedStreamingStoryIndex,a=o.isSidebarExpanded,d=o.setIsSidebarExpanded,c=o.sidebarPanelRef,v=o.scenario,S=o.artifactTitleIds,m=h(),y=m.userStory,p=m.customStyles;return n(u,e({ref:c,defaultSize:25,minSize:15,collapsible:!0,collapsedSize:0,onCollapse:function(){return d(!1)},onExpand:function(){return d(!0)},id:"streaming-sidebar",order:1,className:f.sidebarPanel,style:null===(l=null==p?void 0:p.userStoryScreenStyles)||void 0===l?void 0:l.sidebarPanel},{children:n(i,{streamingUserStories:y,selectedStreamingStoryIndex:r,setSelectedStreamingStoryIndex:s,isSidebarExpanded:a,isStreamingScreen:"streaming"===v,artifactTitleIds:S})}))},SidebarToggle:function(t){var l=t.OpenIcon,i=t.CloseIcon,o=N(),r=o.isSidebarExpanded;o.setIsSidebarExpanded;var s=o.sidebarPanelRef,a=h().customStyles,d=null==a?void 0:a.userStoryScreenStyles;return n(v,e({className:f.resizeHandle,style:null==d?void 0:d.resizeHandle},{children:n("button",e({className:f.sidebarToggleBtn,onClick:function(e){e.stopPropagation(),function(){var e,t;r?null===(e=s.current)||void 0===e||e.collapse():null===(t=s.current)||void 0===t||t.expand()}()},style:null==d?void 0:d.sidebarToggleBtn},{children:n(r?i:l,{})}))}))},Content:function(t){var i,o=t.children,r=t.AtomicButton,s=N(),a=s.scrollContainerRef,d=s.classNames,c=h().customStyles,v=null==c?void 0:c.userStoryScreenStyles;return n(u,e({minSize:0,id:"streaming-content",order:2,className:f.contentPanel,style:null==v?void 0:v.contentPanel},{children:l("div",e({ref:a,className:"".concat(f.scrollContainer," ").concat(null!==(i=null==d?void 0:d.scrollContainer)&&void 0!==i?i:""),style:null==v?void 0:v.scrollContainer},{children:[n(I,{AtomicButton:r}),o]}))}))},Body:function(e){var t=e.children,l=h(),o=l.userStory;return l.setUserStory,(null==o?void 0:o.length)?n(i,{children:t}):null},Story:function(t){var l,i,o,r=t.Component,s=N(),a=s.selectedStreamingStoryIndex,d=s.isEditing,c=s.scenario,u=h(),v=u.userStory,S=u.customStyles,m=u.customIcons,y=u.segmentComponentConfig,p=null==S?void 0:S.userStoryScreenStyles,g=null==p?void 0:p.userStoryContentStyles;return d?null:n("div",e({className:f.storyWrapper,style:null==p?void 0:p.storyWrapper},{children:n(r,{message:null===(l=v[a])||void 0===l?void 0:l.value,aiReasoningsForBlock:(null===(i=v[a])||void 0===i?void 0:i.aiReasoning)||[],isCitationLoadingDisplay:"streaming"===c,customStyles:e({},g),customIcons:e({},null==m?void 0:m.userStoryIcons),artifactId:null===(o=v[a])||void 0===o?void 0:o.artifactId,segmentComponentConfig:y})}))},Editor:function(l){var i,o=l.Component,r=l.onBlur,s=N(),a=s.selectedStreamingStoryIndex,d=s.isEditing,c=s.setUserStoryCopy,u=h(),v=u.userStory,S=u.customStyles,m=null==S?void 0:S.textEditorStyles;if(!d)return null;return n("div",e({className:f.editorWrapper,style:null==m?void 0:m.wrapper},{children:n(o,{minHeight:"100%",height:"100%",type:"string",value:y(null===(i=v[a])||void 0===i?void 0:i.value)||"",handleUpdateState:function(n,l){var i,o=p(l),r=null===(i=v[a])||void 0===i?void 0:i.storyNumber;c(function(n){var l=t([],n,!0),i=l.findIndex(function(e){return e.storyNumber===r});return-1===i||(l[i]=e(e({},l[i]),{value:o})),l})},doNotShowBorderInViewMode:!1,onBlur:r,mode:"edit",customStyles:m})}))},SubFeatures:function(){var t,o=N(),r=o.selectedStreamingStoryIndex,s=o.isEditingModeOn,a=o.setIsEditingModeOn,d=o.scenario,c=o.isCitationLoadingNotStarted,u=h().userStory,v=(null===(t=null==u?void 0:u[r])||void 0===t?void 0:t.sub_features)||[];return 0===v.length&&"streaming"===d?n(x,{}):l(i,{children:[v.map(function(e){return n(g,{parentArtifactId:null==u?void 0:u[r].artifactId,artifactId:e.artifactId,title:e.title,content:e.value,aiReasoning:e.aiReasoning||[],isEditingModeOn:s,setIsEditingModeOn:a,isCitationLoadingDisplay:"streaming"===d},e.artifactId)}),"streaming"===d&&c&&n("div",e({className:f.subFeatureSkeletonWrapper},{children:n(E,{})}))]})},ScrollButton:function(){var t=N(),l=t.isAtBottom,i=t.isSidebarExpanded,o=t.scrollToBottom,r=t.isScrollBtnBouncing,s=h(),a=s.userStory,d=s.customStyles,c=null==d?void 0:d.userStoryScreenStyles;return!(null==a?void 0:a.length)||l?null:n("div",e({className:"".concat(f.scrollBtnWrapper," ").concat(i?f.scrollExpanded:f.scrollCollapsed),style:null==c?void 0:c.scrollBtnWrapper},{children:n("button",e({onClick:o,className:"".concat(f.scrollBtn," ").concat(r?f.bounce:""),style:null==c?void 0:c.scrollBtn,"aria-label":"Scroll to bottom"},{children:n(m,{size:20})}))}))}});export{T as default};
2
2
  //# sourceMappingURL=UserStoryScreen.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as n,__assign as e}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{createContext as t,useRef as l,useState as a,useCallback as r,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import g from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as m}from"../../shared/useMarkdownSearch.js";import{Info as h}from"lucide-react";import{Tooltip as p}from"@mui/material";import f 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 R from"../../icons/CognitiveDecision.js";import w from"../../icons/BrainRed.js";import I,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as b}from"../ai-reasoning/AiReasoningCitation.js";import x from"../../icons/RelevanceScoreIcon.js";import N from"../RecommendationBlock/RecommendationBlock.js";import A from"../UserStoryCard/AttachedContext.js";import k from"../ai-reasoning/AiReasoningCitationContent.js";import j from"./components/InlineUpdatedComponent.js";import U from"../segment/Segment.js";var E=t(!1),L=t({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),T=t({rowId:""}),P=function(n){var t,l=n.aiReason,a=n.isHighConfidence,r=n.customStyle,d=n.customIcons,c=s(L),u=c.expandedInfo,v=c.setExpanded,m=c.reasonToRow,h=s(T).rowId,p=String(l.id);h&&m.current.set(p,h);var f=(null===(t=null==u?void 0:u.aiReason)||void 0===t?void 0:t.id)===l.id,C=a?(null==d?void 0:d.highConfidence)||i(R,{}):(null==d?void 0:d.lowConfidence)||i(w,{});return o("button",e({className:g.aiReasoningButton,style:r,onClick:function(n){n.stopPropagation(),n.preventDefault(),v(f?null:h,f?null:l)}},{children:[C,i("i",f?{className:"pi pi-angle-up ".concat(a?g.aiReasoningIconHighConfidence:g.aiReasoningIconLowConfidence)}:{className:"pi pi-angle-down ".concat(a?g.aiReasoningIconHighConfidence:g.aiReasoningIconLowConfidence)})]}))},M=function(n){var t,a,r=n.children,d=n.node,c=n.customStyles,u=n.customIcons,v=l(Math.random().toString(36).slice(2)).current,m=s(L).expandedInfo,h=(null==m?void 0:m.rowId)===v,p=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(n){return"element"===n.type}).length:1,f=null!==(a=null===(t=null==d?void 0:d.properties)||void 0===t?void 0:t.style)&&void 0!==a?a:void 0;return o(T.Provider,e({value:{rowId:v}},{children:[i("tr",e({style:f?{cssText:f}:void 0},{children:r})),h&&(null==m?void 0:m.aiReason)&&i("tr",e({style:{width:"100%"}},{children:i("td",e({colSpan:p||1,className:g.tableExpandedCell},{children:i("div",e({className:g.tableExpandedCellInner},{children:i("div",e({className:g.tableExpandedCellContent},{children:i(k,{aiReason:m.aiReason,customIcons:u,customStyles:{aiReasoningContent:null==c?void 0:c.aiReasoningContent,aiReasoningAccordion:null==c?void 0:c.aiReasoningAccordion,aiReasoningMarkdown:null==c?void 0:c.aiReasoningMarkdown,aiReasoningPill:null==c?void 0:c.aiReasoningPill,webCitation:null==c?void 0:c.webCitation,stormeeCitation:null==c?void 0:c.stormeeCitation,waveformCitation:null==c?void 0:c.waveformCitation,imageCitation:null==c?void 0:c.imageCitation,fileCitation:null==c?void 0:c.fileCitation,appModCitation:null==c?void 0:c.appModCitation,rcaCitation:null==c?void 0:c.rcaCitation,readFileCitation:null==c?void 0:c.readFileCitation,loadingCitations:null==c?void 0:c.loadingCitations,chatCitation:null==c?void 0:c.chatCitation}})}))}))}))}))]}))};var $=function(t){var R,w=t.message,k=t.isParent,T=t.scenario,$=t.showUserStoryDiff,D=void 0!==$&&$,F=t.aiReasoningsForBlock,H=t.isCitationLoadingDisplay,_=void 0!==H&&H,B=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var W=t.customStyles,q=t.customIcons,z=t.aiReasoningDiffView,G=t.userStoryCitations,V=t.artifactId,O=t.isCraflow,Q=t.onCraAccept,J=t.onCraReject,K=t.craFlowConfig,X=t.isDisplayHighlightControl,Y=void 0!==X&&X;t.segmentExampleComponent;var Z=t.handleFetchSegmentDetails,nn=t.handleViewGlossary,en=t.getSegmentExampleComponent,on=t.segmentDataList,tn=l(null),ln=S(),an=ln.userStory,rn=ln.inlineUpdateComponentConfig,dn=ln.getAvgScoreForStory,cn=ln.setUserStory,sn=ln.aiReasoning,un=ln.setAiReasoning,vn=ln.customIcons,gn=ln.searchQueryList,mn=ln.searchQueryReasoningIdList,hn=ln.currentHighlightIndex,pn=null!=q?q:null==vn?void 0:vn.userStoryIcons;null==W||W.searchHighlight;var fn=m(tn),Cn=fn.search,yn=fn.clear,Sn=a("1"),Rn=Sn[0],wn=Sn[1],In=a(null),bn=In[0],xn=In[1],Nn=l(new Map),An=r(function(n,e){xn(n&&e?{rowId:n,aiReason:e}:null)},[]),kn=V?dn(V):0,jn=a([]),Un=jn[0],En=jn[1],Ln=function(n){var e=n;return e=function(n){for(var e,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(e=t.exec(n));){var l=e[0],a=l.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=l.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(n){return(n.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:e.index,endIndex:e.index+e[0].length,deletedItemCount:d((null==a?void 0:a[1])||""),changedItemCount:d((null==r?void 0:r[1])||"")})}if(0===o.length)return n;for(var c=n,s=function(n){var e=o[n],i=e.changedItemCount-e.deletedItemCount;if(0===i)return"continue";for(var t=!1,l=0,a=c.substring(0,e.index).split("\n").reverse();l<a.length;l++){var r=a[l].trim();if(""!==r){/^\d+\.\s/.test(r)&&(t=!0);break}}if(!t)return"continue";var d=e.endIndex,s=n+1<o.length?o[n+1].index:c.length,u=c.substring(d,s);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(n,e,o){return"".concat(e).concat(parseInt(o,10)+i,". ")}),c=c.substring(0,d)+u+c.substring(s)},u=o.length-1;u>=0;u--)s(u);return c}(e=(e=(e=(e=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/ai_reasoning\$(\d+)/g,function(n,e){return"ai_reasoning$".concat(e,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(n,e,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(e,' data-raw="').concat(o,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(n,i,o,t){var l=e.substring(0,t),a=l.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(l.substring(a+1))||/^\s+\d+\.\s/.test(l.substring(a+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(l.substring(a+1));if(r||d){var c=o;return c=(c=(c=(c=c.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(c,"</updated>")}return n})),e=function(n){var e=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==e}),"<deleted>".concat(i,"</deleted>")});return e.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==e,preview:e.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(e),e},Tn=d(function(){return w?Ln(w):w},[w]);c(function(){En(F||sn)},[F,sn]);var Pn=d(function(){return{upt:function(o){var t;o.node;var l=o.children,a=n(o,["node","children"]),r=null==a?void 0:a.id,d=r?null===(t=r.split("$"))||void 0===t?void 0:t[1]:null,c=sn.find(function(n){return n.id.toString()===d});return c?i(j,e({aiReason:c,customStyles:null==W?void 0:W.inlineUpdatedComponent,handleClickCognitiveDecision:null==rn?void 0:rn.handleClickCognitiveDecision,handleClickUpdatedPill:null==rn?void 0:rn.handleClickUpdatedPill},{children:l})):l},del:function(o){o.node;var t=o.children,l=n(o,["node","children"]);return i("span",e({className:g.deleted,style:null==W?void 0:W.deleted},l,{onClick:l.onclick},{children:t}))},ins:function(o){var t=o.children,l=n(o,["children"]);return i("span",e({className:g.inserted,style:null==W?void 0:W.inserted},l,{onClick:l.onclick},{children:t}))},h1:function(o){o.node;var t=n(o,["node"]);return i("h1",e({className:g.heading1,style:null==W?void 0:W.heading1},{children:t.children}))},h2:function(o){o.node;var t=n(o,["node"]);return i("h2",e({className:g.heading2,style:null==W?void 0:W.heading2},{children:t.children}))},h3:function(o){o.node;var t=n(o,["node"]);return i("h3",e({className:g.heading3,style:null==W?void 0:W.heading3},{children:t.children}))},b:function(o){o.node;var t=n(o,["node"]);return i("b",e({className:g.bold,style:null==W?void 0:W.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=n(o,["node"]);return i("p",e({},t,{className:g.paragraph,style:null==W?void 0:W.paragraph},{children:t.children}))},updated:function(o){var t=o.node,l=n(o,["node"]);return i(f,e({},l,{showUserStoryDiff:D,currentUpdatedTagId:Rn,setCurrentUpdatedTagId:wn,userStory:an,setUserStory:cn,setAiReasoning:un,node:t,isCraflow:O,onCraAccept:Q,onCraReject:J,customStyles:null==W?void 0:W.updatedContent,craFlowConfig:K}))},ol:function(o){var t,l,a,r=o.node,d=n(o,["node"]),c=null!==(a=null!==(l=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==l?l:null==d?void 0:d.start)&&void 0!==a?a:void 0;return i("ol",e({className:g.orderedList,style:null==W?void 0:W.olist},c?{start:Number(c)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=n(o,["node"]);return i("ul",e({className:g.unorderedList,style:null==W?void 0:W.ulist},{children:null==t?void 0:t.children}))},table:function(n){var o=n.children;return i("div",e({className:g.tableWrapper},{children:i("table",e({className:g.table,style:null==W?void 0:W.table},{children:o}))}))},tr:function(n){var e=n.node,o=n.children;return i(M,{node:e,children:o,customStyles:W})},td:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,c=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("td",e({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},th:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,c=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("th",e({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},recommendation:function(o){var t;o.node;var l=n(o,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==l?void 0:l.children)||void 0===t?void 0:t[0])||"");return i(N,e({},l,{customStyles:null==W?void 0:W.recommendationBlock,label:a}))},a:function(e){var o,t,l;e.inline,e.children,e.node;var a=n(e,["inline","children","node"]),r=s(E)||"true"==(null==a?void 0:a.table),d="".concat(null==a?void 0:a.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],u=null===(t=d.split("$"))||void 0===t?void 0:t[1];if("ai_reasoning"===c){var v=(null!==(l=D?z:sn)&&void 0!==l?l:[]).find(function(n){return n.id.toString()===decodeURIComponent(u)}),g=mn.includes(u);if(v)return r?i(P,{aiReason:v,customStyle:null==W?void 0:W.tableAiReasoning,customIcons:pn,isHighConfidence:v.relevance_score>=b}):i(I,{aiReason:v,isSourceHasHighlight:g,customIcons:pn,customStyles:{aiReasoningContent:null==W?void 0:W.aiReasoningContent,aiReasoningAccordion:null==W?void 0:W.aiReasoningAccordion,aiReasoningMarkdown:null==W?void 0:W.aiReasoningMarkdown,aiReasoningPill:null==W?void 0:W.aiReasoningPill,webCitation:null==W?void 0:W.webCitation,stormeeCitation:null==W?void 0:W.stormeeCitation,waveformCitation:null==W?void 0:W.waveformCitation,imageCitation:null==W?void 0:W.imageCitation,fileCitation:null==W?void 0:W.fileCitation,appModCitation:null==W?void 0:W.appModCitation,rcaCitation:null==W?void 0:W.rcaCitation,readFileCitation:null==W?void 0:W.readFileCitation,loadingCitations:null==W?void 0:W.loadingCitations,chatCitation:null==W?void 0:W.chatCitation,bigEnoughCitation:null==W?void 0:W.bigEnoughCitation}})}return null},code:function(o){o.inline;var t=o.children,l=o.className;return o.node,n(o,["inline","children","className","node"]),/language-(\w+)/.exec(l||"")||(null==l?void 0:l.includes("language-"))?i("div",{children:i("code",e({className:g.blockCode,style:null==W?void 0:W.code},{children:t}))}):i("code",e({className:g.inlineCode,style:null==W?void 0:W.code},{children:t}))},learned:function(n){var o=n.children;return i(p,e({title:o,placement:"top"},{children:i(h,{size:16,className:g.learned})}))},generatedcode:function(e){e.node;var o=n(e,["node"]),t=(null==o?void 0:o.language)||"python",l=function(n){var e="";try{if(n["data-raw"])e=decodeURIComponent(atob(n["data-raw"]));else{var i=function(n){var e;return"string"==typeof n?n:Array.isArray(n)?n.map(i).join(""):(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)?i(n.props.children):""};e=i(n.children)}}catch(i){console.error("Error decoding generated code:",i),e=String(n.children)}return e}(o);return i(C,{title:"Generated Code",code:l,language:t,customStyles:{pill:null==W?void 0:W.generatedCodePill,content:null==W?void 0:W.generatedCodeContent}})},segment:function(e){var o,t,l,a,r,d,c,s,u,v,g;e.node;var m=e.children,h=n(e,["node","children"]),p=(null==h?void 0:h.id)||"Segment",f=(null==h?void 0:h.decisionstrength)||"80",C=null==on?void 0:on.find(function(n){return String(n.segment_id)===String(p)}),y={id:p,reason:null!==(o=null==C?void 0:C.reason)&&void 0!==o?o:"",gap:null!==(t=null==C?void 0:C.gap)&&void 0!==t?t:"",explanation:null!==(l=null==C?void 0:C.explanation)&&void 0!==l?l:"",relevance_score:null!==(a=null==C?void 0:C.relevance_score)&&void 0!==a?a:0,isOpen:!1},S=void 0;return Z&&!C&&Z(p),p&&C&&en&&(S=en(p,"".concat(m),C.segment_type)),i(U,{id:p,label:null==C?void 0:C.segment_name,originalValue:m,decisionStrength:f,aiReason:y,customIcons:q,aiReasoningCitationCustomStyles:W,segmentExampleComponent:S,handleViewGlossary:nn,customStyles:{segmentWrapper:null===(r=null==W?void 0:W.segment)||void 0===r?void 0:r.segmentWrapper,container:null===(d=null==W?void 0:W.segment)||void 0===d?void 0:d.container,label:null===(c=null==W?void 0:W.segment)||void 0===c?void 0:c.label,decisionStrength:null===(s=null==W?void 0:W.segment)||void 0===s?void 0:s.decisionStrength,buttonContainer:null===(u=null==W?void 0:W.segment)||void 0===u?void 0:u.buttonContainer,cheveronIcon:null===(v=null==W?void 0:W.segment)||void 0===v?void 0:v.cheveronIcon,segmentExample:null===(g=null==W?void 0:W.segment)||void 0===g?void 0:g.segmentExample}})}}},[Un,K,sn,G,Rn,D,w,q,gn,mn,W]);return c(function(){if(tn.current){if(gn.length){var n;if(0===mn.length||Y)requestAnimationFrame(function(){Cn([gn[hn].replace(/\*/g,"")])});else{var e=tn.current,i=new MutationObserver(function(){clearTimeout(n),n=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){Cn([gn[hn].replace(/\*/g,"")])})},50)});i.observe(e,{childList:!0,subtree:!0})}return function(){clearTimeout(n)}}yn()}},[gn,mn,hn,Y]),i(L.Provider,e({value:{expandedInfo:bn,setExpanded:An,reasonToRow:Nn}},{children:o("div",e({ref:tn,className:"".concat(g.container," ").concat("approving"!==T?g.wrapper:""," ").concat(B||""),style:null==W?void 0:W.container},{children:[i(u,e({components:Pn,rehypePlugins:[v]},{children:Tn})),kn>0&&i("div",e({className:g.confidenceScoreContainer,style:null==W?void 0:W.confidenceScoreContainer},{children:o("span",e({className:g.confidenceScore,style:null==W?void 0:W.confidenceScore},{children:[i(x,{size:14,color:(null==W?void 0:W.confidenceScoreIconColor)||"#166534"}),kn,"%"]}))})),_&&i("div",e({className:g.citationLoader,style:null==W?void 0:W.citationLoaderContainer},{children:i(y,{customStyles:{container:null==W?void 0:W.citationLoadingContainer,icon:null==W?void 0:W.citationLoadingIcon,text:null==W?void 0:W.citationLoadingText}})})),k&&i("div",e({style:e({},null===(R=null==W?void 0:W.attachedContext)||void 0===R?void 0:R.wrapper),className:"flex mt-5"},{children:i(A,{})}))]}))}))};export{$ as default};
1
+ import{__rest as n,__assign as e}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import t,{createContext as l,useRef as a,useState as r,useCallback as d,useMemo as c,useEffect as s,useContext as u}from"react";import v from"react-markdown";import g 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 C from"dompurify";import y from"../../shared/UpdatedAnimationContent.js";import S from"../../shared/GeneratedCodeCitation.js";import R from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as b}from"../RequirementAIWrapper/RequirementAIWrapper.js";import I from"../../icons/CognitiveDecision.js";import w from"../../icons/BrainRed.js";import x,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as N}from"../ai-reasoning/AiReasoningCitation.js";import A from"../../icons/RelevanceScoreIcon.js";import k from"../RecommendationBlock/RecommendationBlock.js";import j from"../UserStoryCard/AttachedContext.js";import U from"../ai-reasoning/AiReasoningCitationContent.js";import L from"./components/InlineUpdatedComponent.js";import T from"../segment/Segment.js";var E=l(!1),M=l({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),P=l({rowId:""}),F=function(n){var t,l=n.aiReason,a=n.isHighConfidence,r=n.customStyle,d=n.customIcons,c=u(M),s=c.expandedInfo,v=c.setExpanded,g=c.reasonToRow,h=u(P).rowId,p=String(l.id);h&&g.current.set(p,h);var f=(null===(t=null==s?void 0:s.aiReason)||void 0===t?void 0:t.id)===l.id,C=a?(null==d?void 0:d.highConfidence)||i(I,{}):(null==d?void 0:d.lowConfidence)||i(w,{});return o("button",e({className:m.aiReasoningButton,style:r,onClick:function(n){n.stopPropagation(),n.preventDefault(),v(f?null:h,f?null:l)}},{children:[C,i("i",f?{className:"pi pi-angle-up ".concat(a?m.aiReasoningIconHighConfidence:m.aiReasoningIconLowConfidence)}:{className:"pi pi-angle-down ".concat(a?m.aiReasoningIconHighConfidence:m.aiReasoningIconLowConfidence)})]}))},$=function(n){var t,l,r=n.children,d=n.node,c=n.customStyles,s=n.customIcons,v=a(Math.random().toString(36).slice(2)).current,g=u(M).expandedInfo,h=(null==g?void 0:g.rowId)===v,p=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(n){return"element"===n.type}).length:1,f=null!==(l=null===(t=null==d?void 0:d.properties)||void 0===t?void 0:t.style)&&void 0!==l?l:void 0;return o(P.Provider,e({value:{rowId:v}},{children:[i("tr",e({style:f?{cssText:f}:void 0},{children:r})),h&&(null==g?void 0:g.aiReason)&&i("tr",e({style:{width:"100%"}},{children:i("td",e({colSpan:p||1,className:m.tableExpandedCell},{children:i("div",e({className:m.tableExpandedCellInner},{children:i("div",e({className:m.tableExpandedCellContent},{children:i(U,{aiReason:g.aiReason,customIcons:s,customStyles:{aiReasoningContent:null==c?void 0:c.aiReasoningContent,aiReasoningAccordion:null==c?void 0:c.aiReasoningAccordion,aiReasoningMarkdown:null==c?void 0:c.aiReasoningMarkdown,aiReasoningPill:null==c?void 0:c.aiReasoningPill,webCitation:null==c?void 0:c.webCitation,stormeeCitation:null==c?void 0:c.stormeeCitation,waveformCitation:null==c?void 0:c.waveformCitation,imageCitation:null==c?void 0:c.imageCitation,fileCitation:null==c?void 0:c.fileCitation,appModCitation:null==c?void 0:c.appModCitation,rcaCitation:null==c?void 0:c.rcaCitation,readFileCitation:null==c?void 0:c.readFileCitation,loadingCitations:null==c?void 0:c.loadingCitations,chatCitation:null==c?void 0:c.chatCitation}})}))}))}))}))]}))};var D=function(l){var I,w=l.message,U=l.isParent,P=l.scenario,D=l.showUserStoryDiff,_=void 0!==D&&D,H=l.aiReasoningsForBlock,B=l.isCitationLoadingDisplay,W=void 0!==B&&B,z=l.className;l.highConfidenceIcon,l.lowConfidenceIcon;var V=l.customStyles,q=l.customIcons,G=l.aiReasoningDiffView,O=l.userStoryCitations,Q=l.artifactId,J=l.isCraflow,K=l.onCraAccept,X=l.onCraReject,Y=l.craFlowConfig,Z=l.isDisplayHighlightControl,nn=void 0!==Z&&Z,en=l.segmentComponentConfig,on=a(null),tn=b(),ln=tn.userStory,an=tn.inlineUpdateComponentConfig,rn=tn.getAvgScoreForStory,dn=tn.setUserStory,cn=tn.aiReasoning,sn=tn.setAiReasoning,un=tn.customIcons,vn=tn.searchQueryList,gn=tn.searchQueryReasoningIdList,mn=tn.currentHighlightIndex,hn=null!=q?q:null==un?void 0:un.userStoryIcons;null==V||V.searchHighlight;var pn=h(on),fn=pn.search,Cn=pn.clear,yn=r("1"),Sn=yn[0],Rn=yn[1],bn=r(null),In=bn[0],wn=bn[1],xn=a(new Map),Nn=d(function(n,e){wn(n&&e?{rowId:n,aiReason:e}:null)},[]),An=Q?rn(Q):0,kn=r([]),jn=kn[0],Un=kn[1],Ln=function(n){return null==n?"":"string"==typeof n?n:"number"==typeof n?String(n):Array.isArray(n)?n.map(Ln).join(""):t.isValidElement(n)?Ln(n.props.children):""},Tn=function(n){var e=n;return e=function(n){for(var e,i=/<updated[^>]*>[\s\S]*?<\/updated>/gi,o=[],t=new RegExp(i.source,i.flags);null!==(e=t.exec(n));){var l=e[0],a=l.match(/<deleted>([\s\S]*?)<\/deleted>/i),r=l.match(/<changed>([\s\S]*?)<\/changed>/i),d=function(n){return(n.match(/^\s*\d+\.\s/gm)||[]).length};o.push({index:e.index,endIndex:e.index+e[0].length,deletedItemCount:d((null==a?void 0:a[1])||""),changedItemCount:d((null==r?void 0:r[1])||"")})}if(0===o.length)return n;for(var c=n,s=function(n){var e=o[n],i=e.changedItemCount-e.deletedItemCount;if(0===i)return"continue";for(var t=!1,l=0,a=c.substring(0,e.index).split("\n").reverse();l<a.length;l++){var r=a[l].trim();if(""!==r){/^\d+\.\s/.test(r)&&(t=!0);break}}if(!t)return"continue";var d=e.endIndex,s=n+1<o.length?o[n+1].index:c.length,u=c.substring(d,s);u=u.replace(/^(\s*)(\d+)\.\s/gm,function(n,e,o){return"".concat(e).concat(parseInt(o,10)+i,". ")}),c=c.substring(0,d)+u+c.substring(s)},u=o.length-1;u>=0;u--)s(u);return c}(e=(e=(e=(e=(e=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/ai_reasoning\$(\d+)/g,function(n,e){return"ai_reasoning$".concat(e,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(n,e,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(e,' data-raw="').concat(o,'"></generatedCode>\n\n')})).replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2")).replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,function(n,e,i,o,t){var l=o.match(/<table[\s\S]*?<\/table>/i);if(l){var a=btoa(encodeURIComponent(l[0]));return"<segment".concat(i,' data-table="').concat(a,'"></segment>')}return n})).replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,function(n,i,o,t){var l=e.substring(0,t),a=l.lastIndexOf("\n"),r=/^\s+[-*]\s/.test(l.substring(a+1))||/^\s+\d+\.\s/.test(l.substring(a+1)),d=/^\s*(\d+\.|\s*[-*])\s+$/.test(l.substring(a+1));if(r||d){var c=o;return c=(c=(c=(c=c.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n")).replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n")).replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),"<updated".concat(i,">").concat(c,"</updated>")}return n})),e=function(n){var e=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==e}),"<deleted>".concat(i,"</deleted>")});return e.replace(/<changed>([\s\S]*?)<\/changed>/gi,function(n,e){var i=e.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==e,preview:e.substring(0,120)}),"<changed>".concat(i,"</changed>")})}(e),e},En=c(function(){return w?Tn(w):w},[w]);s(function(){Un(H||cn)},[H,cn]);var Mn=c(function(){return{upt:function(o){var t;o.node;var l=o.children,a=n(o,["node","children"]),r=null==a?void 0:a.id,d=r?null===(t=r.split("$"))||void 0===t?void 0:t[1]:null,c=cn.find(function(n){return n.id.toString()===d});return c?i(L,e({aiReason:c,customStyles:null==V?void 0:V.inlineUpdatedComponent,handleClickCognitiveDecision:null==an?void 0:an.handleClickCognitiveDecision,handleClickUpdatedPill:null==an?void 0:an.handleClickUpdatedPill},{children:l})):l},del:function(o){o.node;var t=o.children,l=n(o,["node","children"]);return i("span",e({className:m.deleted,style:null==V?void 0:V.deleted},l,{onClick:l.onclick},{children:t}))},ins:function(o){var t=o.children,l=n(o,["children"]);return i("span",e({className:m.inserted,style:null==V?void 0:V.inserted},l,{onClick:l.onclick},{children:t}))},h1:function(o){o.node;var t=n(o,["node"]);return i("h1",e({className:m.heading1,style:null==V?void 0:V.heading1},{children:t.children}))},h2:function(o){o.node;var t=n(o,["node"]);return i("h2",e({className:m.heading2,style:null==V?void 0:V.heading2},{children:t.children}))},h3:function(o){o.node;var t=n(o,["node"]);return i("h3",e({className:m.heading3,style:null==V?void 0:V.heading3},{children:t.children}))},b:function(o){o.node;var t=n(o,["node"]);return i("b",e({className:m.bold,style:null==V?void 0:V.bold},{children:null==t?void 0:t.children}))},p:function(o){o.node;var t=n(o,["node"]);return i("p",e({},t,{className:m.paragraph,style:null==V?void 0:V.paragraph},{children:t.children}))},updated:function(o){var t=o.node,l=n(o,["node"]);return i(y,e({},l,{showUserStoryDiff:_,currentUpdatedTagId:Sn,setCurrentUpdatedTagId:Rn,userStory:ln,setUserStory:dn,setAiReasoning:sn,node:t,isCraflow:J,onCraAccept:K,onCraReject:X,customStyles:null==V?void 0:V.updatedContent,craFlowConfig:Y}))},ol:function(o){var t,l,a,r=o.node,d=n(o,["node"]),c=null!==(a=null!==(l=null===(t=null==r?void 0:r.properties)||void 0===t?void 0:t.start)&&void 0!==l?l:null==d?void 0:d.start)&&void 0!==a?a:void 0;return i("ol",e({className:m.orderedList,style:null==V?void 0:V.olist},c?{start:Number(c)}:{},{children:null==d?void 0:d.children}))},ul:function(o){o.node;var t=n(o,["node"]);return i("ul",e({className:m.unorderedList,style:null==V?void 0:V.ulist},{children:null==t?void 0:t.children}))},table:function(n){var o=n.children;return i("div",e({className:m.tableWrapper},{children:i("table",e({className:m.table,style:null==V?void 0:V.table},{children:o}))}))},tr:function(n){var e=n.node,o=n.children;return i($,{node:e,children:o,customStyles:V})},td:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,c=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("td",e({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},th:function(o){var t,l=o.node,a=o.children,r=null!==(t=null==l?void 0:l.properties)&&void 0!==t?t:{},d=r.style,c=n(r,["style"]);return i(E.Provider,e({value:!0},{children:i("th",e({},c,{style:d?{cssText:d}:void 0},{children:a}))}))},recommendation:function(o){var t;o.node;var l=n(o,["node"]),a="The AI has selected this content based on: ".concat((null===(t=null==l?void 0:l.children)||void 0===t?void 0:t[0])||"");return i(k,e({},l,{customStyles:null==V?void 0:V.recommendationBlock,label:a}))},a:function(e){var o,t,l;e.inline,e.children,e.node;var a=n(e,["inline","children","node"]),r=u(E)||"true"==(null==a?void 0:a.table),d="".concat(null==a?void 0:a.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],s=null===(t=d.split("$"))||void 0===t?void 0:t[1];if("ai_reasoning"===c){var v=(null!==(l=_?G:cn)&&void 0!==l?l:[]).find(function(n){return n.id.toString()===decodeURIComponent(s)}),g=gn.includes(s);if(v)return r?i(F,{aiReason:v,customStyle:null==V?void 0:V.tableAiReasoning,customIcons:hn,isHighConfidence:v.relevance_score>=N}):i(x,{aiReason:v,isSourceHasHighlight:g,customIcons:hn,customStyles:{aiReasoningContent:null==V?void 0:V.aiReasoningContent,aiReasoningAccordion:null==V?void 0:V.aiReasoningAccordion,aiReasoningMarkdown:null==V?void 0:V.aiReasoningMarkdown,aiReasoningPill:null==V?void 0:V.aiReasoningPill,webCitation:null==V?void 0:V.webCitation,stormeeCitation:null==V?void 0:V.stormeeCitation,waveformCitation:null==V?void 0:V.waveformCitation,imageCitation:null==V?void 0:V.imageCitation,fileCitation:null==V?void 0:V.fileCitation,appModCitation:null==V?void 0:V.appModCitation,rcaCitation:null==V?void 0:V.rcaCitation,readFileCitation:null==V?void 0:V.readFileCitation,loadingCitations:null==V?void 0:V.loadingCitations,chatCitation:null==V?void 0:V.chatCitation,bigEnoughCitation:null==V?void 0:V.bigEnoughCitation}})}return null},code:function(o){o.inline;var t=o.children,l=o.className;return o.node,n(o,["inline","children","className","node"]),/language-(\w+)/.exec(l||"")||(null==l?void 0:l.includes("language-"))?i("div",{children:i("code",e({className:m.blockCode,style:null==V?void 0:V.code},{children:t}))}):i("code",e({className:m.inlineCode,style:null==V?void 0:V.code},{children:t}))},learned:function(n){var o=n.children;return i(f,e({title:o,placement:"top"},{children:i(p,{size:16,className:m.learned})}))},generatedcode:function(e){e.node;var o=n(e,["node"]),t=(null==o?void 0:o.language)||"python",l=function(n){var e="";try{if(n["data-raw"])e=decodeURIComponent(atob(n["data-raw"]));else{var i=function(n){var e;return"string"==typeof n?n:Array.isArray(n)?n.map(i).join(""):(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)?i(n.props.children):""};e=i(n.children)}}catch(i){console.error("Error decoding generated code:",i),e=String(n.children)}return e}(o);return i(S,{title:"Generated Code",code:l,language:t,customStyles:{pill:null==V?void 0:V.generatedCodePill,content:null==V?void 0:V.generatedCodeContent}})},segment:function(e){var o,t,l,a,r,d,c,s,u,v,g;e.node;var m=e.children,h=n(e,["node","children"]),p=(null==h?void 0:h.id)||"Segment",f=(null==h?void 0:h.decisionstrength)||"80",y=en||{},S=y.segmentDataList,R=y.handleFetchSegmentDetails,b=y.getSegmentExampleComponent,I=y.handleViewGlossary,w=null==S?void 0:S.find(function(n){return String(n.segment_id)===String(p)}),x={id:p,reason:null!==(o=null==w?void 0:w.reason)&&void 0!==o?o:"",gap:null!==(t=null==w?void 0:w.gap)&&void 0!==t?t:"",explanation:null!==(l=null==w?void 0:w.explanation)&&void 0!==l?l:"",relevance_score:null!==(a=null==w?void 0:w.relevance_score)&&void 0!==a?a:0,isOpen:!1},N=void 0;R&&!w&&R(p);var A=Ln(m),k=h["data-table"],j="";if(k)try{j=decodeURIComponent(atob(k))}catch(n){console.error("Failed to decode data-table for segment",p,n)}var U=C.sanitize(j);return p&&w&&b&&(N=k?i(function(){return i("div",{dangerouslySetInnerHTML:{__html:U}})},{}):b(p,A,w.segment_type)),i(T,{id:p,label:null==w?void 0:w.segment_name,originalValue:m,decisionStrength:f,aiReason:x,customIcons:q,aiReasoningCitationCustomStyles:V,segmentExampleComponent:N,handleViewGlossary:I,customStyles:{segmentWrapper:null===(r=null==V?void 0:V.segment)||void 0===r?void 0:r.segmentWrapper,container:null===(d=null==V?void 0:V.segment)||void 0===d?void 0:d.container,label:null===(c=null==V?void 0:V.segment)||void 0===c?void 0:c.label,decisionStrength:null===(s=null==V?void 0:V.segment)||void 0===s?void 0:s.decisionStrength,buttonContainer:null===(u=null==V?void 0:V.segment)||void 0===u?void 0:u.buttonContainer,cheveronIcon:null===(v=null==V?void 0:V.segment)||void 0===v?void 0:v.cheveronIcon,segmentExample:null===(g=null==V?void 0:V.segment)||void 0===g?void 0:g.segmentExample}})}}},[jn,Y,cn,O,Sn,_,w,q,vn,gn,V]);return s(function(){if(on.current){if(vn.length){var n;if(0===gn.length||nn)requestAnimationFrame(function(){fn([vn[mn].replace(/\*/g,"")])});else{var e=on.current,i=new MutationObserver(function(){clearTimeout(n),n=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){fn([vn[mn].replace(/\*/g,"")])})},50)});i.observe(e,{childList:!0,subtree:!0})}return function(){clearTimeout(n)}}Cn()}},[vn,gn,mn,nn]),i(M.Provider,e({value:{expandedInfo:In,setExpanded:Nn,reasonToRow:xn}},{children:o("div",e({ref:on,className:"".concat(m.container," ").concat("approving"!==P?m.wrapper:""," ").concat(z||""),style:null==V?void 0:V.container},{children:[i(v,e({components:Mn,rehypePlugins:[g]},{children:En})),An>0&&i("div",e({className:m.confidenceScoreContainer,style:null==V?void 0:V.confidenceScoreContainer},{children:o("span",e({className:m.confidenceScore,style:null==V?void 0:V.confidenceScore},{children:[i(A,{size:14,color:(null==V?void 0:V.confidenceScoreIconColor)||"#166534"}),An,"%"]}))})),W&&i("div",e({className:m.citationLoader,style:null==V?void 0:V.citationLoaderContainer},{children:i(R,{customStyles:{container:null==V?void 0:V.citationLoadingContainer,icon:null==V?void 0:V.citationLoadingIcon,text:null==V?void 0:V.citationLoadingText}})})),U&&i("div",e({style:e({},null===(I=null==V?void 0:V.attachedContext)||void 0===I?void 0:I.wrapper),className:"flex mt-5"},{children:i(j,{customStyles:null==V?void 0:V.attachedContext})}))]}))}))};export{D as default};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as n,__spreadArray as e,__assign as r}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Undo as l,ThumbsUp as i}from"lucide-react";import{useState as u,useRef as a,useEffect as c}from"react";import d from"./UpdatedAnimationContent.module.css.js";import{getDirectChild as s}from"../utils/diff-edit.utils.js";var v=function(v){var f,p,m,y,h=v.isCraflow,g=v.onCraAccept,S=v.onCraReject,C=v.craFlowConfig,N=v.showUserStoryDiff,w=void 0!==N&&N,b=v.currentUpdatedTagId,T=v.setCurrentUpdatedTagId;v.node;var M=v.userStory,A=v.setUserStory,I=v.setAiReasoning,U=v.customStyles,x=v.customIcons,k=n(v,["isCraflow","onCraAccept","onCraReject","craFlowConfig","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),j=u(!1),L=j[0],z=j[1],B=u(null),D=B[0],E=B[1],F=a(null),H=a(null),O=null!==(f=null==U?void 0:U.iconSize)&&void 0!==f?f:16,R=null!==(p=null==U?void 0:U.actionIconSize)&&void 0!==p?p:O;c(function(){if(H.current){var n=setTimeout(function(){var n=H.current;n&&(n.style.scrollMarginBottom="20px",n.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(n)}}},[b]);var _,q=(Array.isArray(null==k?void 0:k.children)?k.children:null!=(null==k?void 0:k.children)?[k.children]:[]).filter(function(n){return"string"!=typeof n}),J=q.find(function(n){return"deleted"===(null==n?void 0:n.type)}),P=q.findIndex(function(n){return"deleted"===(null==n?void 0:n.type)}),V=null===(m=null==J?void 0:J.props)||void 0===m?void 0:m.children,W=q.findIndex(function(n){return"changed"===(null==n?void 0:n.type)}),X=-1!==W?q[W]:null,$=null===(y=null==X?void 0:X.props)||void 0===y?void 0:y.children,G=Math.max(W,P),K=-1!==G?q.slice(G+1).filter(function(n){return"deleted"!==(null==n?void 0:n.type)&&"changed"!==(null==n?void 0:n.type)}):[];_=$&&K.length>0?e(e([],Array.isArray($)?$:[$],!0),K,!0):$||(K.length>0?K:void 0);function Q(n,t,o){var l;(null==C?void 0:C.isCraflow)&&C.craUserStory&&(n=C.craUserStory);var i=JSON.parse(JSON.stringify(n)),u=function(n,e){var r=function(n){for(var t=0,o=n;t<o.length;t++){var l=o[t];if((new DOMParser).parseFromString(l.value,"text/html").querySelector('updated[id="'.concat(e,'"]')))return l;if(l.sub_features&&l.sub_features.length>0){var i=r(l.sub_features);if(i)return i}}return null};return r(n)}(i,t);if(!u)return console.warn("No user story found with updated id: ".concat(t)),!1;var a=(new DOMParser).parseFromString(u.value,"text/html"),c=a.querySelector('updated[id="'.concat(t,'"]'));if(!c)return console.warn("No <updated> block found with id: ".concat(t)),!1;var d,v=c.innerHTML,f=s(c,"deleted"),p=s(c,"changed"),m=f?f.innerHTML.trim():null,y=p?p.innerHTML.trim():null,h="";if("reject"===o){var g=(d=(m||y||"").match(/ai_reasoning\$(\d+)/))?parseInt(d[1],10):null;null!==g&&I(function(n){var t=n.map(function(n){return r({},n)}),o="".concat(g,"-legacy"),l=t.find(function(n){var e;return(null===(e=n.id)||void 0===e?void 0:e.toString())===o});if(l){var i=l.id.toString().replace("-legacy","");t=t.filter(function(n){return n.id.toString()!==i}),l.id=i}return e([],t,!0)})}"accept"===o?h=m&&y?y:m&&!y?"":!m&&y?y:v:"reject"===o&&(h=m&&y||m&&!y?m:!m&&y?"":v);var S=a.createElement("div");S.innerHTML=h;var N=Array.from(S.childNodes);c.replaceWith.apply(c,N);var w=new XMLSerializer;return u.value=w.serializeToString(a),(null==C?void 0:C.isCraflow)?C.setCraUserStory(i):A(i),T(function(n){return Number.isNaN(Number(n))?n:String(Number(n)+1)}),null===(l=null==C?void 0:C.onCraFlowDiffAgentAction)||void 0===l||l.call(C,o,i),!0}var Y=function(n){var e=(null==U?void 0:U.actionButton)||{},t=D===n&&(null==U?void 0:U.actionButtonHover)||{};return r(r({},e),t)};return t("span",r({},k,{className:d.container,style:r(r({},null==U?void 0:U.container),{display:"block"}),onMouseEnter:function(){F.current&&(clearTimeout(F.current),F.current=null),z(!0)},onMouseLeave:function(){F.current=setTimeout(function(){z(!1),F.current=null},2e3)},ref:(null==k?void 0:k.id)===b?H:null},{children:[L&&!w&&t("span",r({className:d.hoverActions,style:null==U?void 0:U.hoverActions,onMouseEnter:function(){return z(!0)}},{children:[o("button",r({className:d.actionButton,style:Y("undo"),onMouseEnter:function(){return E("undo")},onMouseLeave:function(){return E(null)},onClick:function(){h&&S?S(null==k?void 0:k.id):Q(M,null==k?void 0:k.id,"reject"),z(!1)}},{children:(null==x?void 0:x.undo)?x.undo:o(l,{size:R,color:null==U?void 0:U.undoIconColor,className:d.hw})})),o("span",{className:d.divider,style:null==U?void 0:U.divider}),o("button",r({className:d.actionButton,style:Y("accept"),onMouseEnter:function(){return E("accept")},onMouseLeave:function(){return E(null)},onClick:function(){h&&g?g(null==k?void 0:k.id):Q(M,null==k?void 0:k.id,"accept"),z(!1)}},{children:(null==x?void 0:x.accept)?x.accept:o(i,{size:R,color:null==U?void 0:U.thumbsUpIconColor,className:d.hw})}))]})),V&&o("span",r({className:d.deletedContainer,style:r(r({},null==U?void 0:U.deletedContainer),{display:"block"})},{children:o("span",r({className:d.deletedText,style:r(r({},null==U?void 0:U.deletedText),{display:"block"})},{children:V}))})),_&&o("span",r({className:d.changedContainer,style:r(r({},null==U?void 0:U.changedContainer),{display:"block"})},{children:o("span",r({className:d.changedText,style:r(r({},null==U?void 0:U.changedText),{display:"block"})},{children:_}))}))]}))};export{v as default};
1
+ import{__rest as n,__spreadArray as e,__assign as r}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Undo as l,ThumbsUp as i}from"lucide-react";import{useState as u,useRef as a,useEffect as c}from"react";import d from"./UpdatedAnimationContent.module.css.js";import{getDirectChild as s}from"../utils/diff-edit.utils.js";var v=function(v){var f,p,m,y,h=v.isCraflow,g=v.onCraAccept,S=v.onCraReject,C=v.craFlowConfig,N=v.showUserStoryDiff,w=void 0!==N&&N,b=v.currentUpdatedTagId,T=v.setCurrentUpdatedTagId;v.node;var M=v.userStory,A=v.setUserStory,x=v.setAiReasoning,I=v.customStyles,U=v.customIcons,k=n(v,["isCraflow","onCraAccept","onCraReject","craFlowConfig","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),j=u(!1),L=j[0],z=j[1],B=u(null),F=B[0],D=B[1],E=a(null),H=a(null),O=null!==(f=null==I?void 0:I.iconSize)&&void 0!==f?f:16,R=null!==(p=null==I?void 0:I.actionIconSize)&&void 0!==p?p:O;c(function(){if(H.current){var n=setTimeout(function(){var n=H.current;n&&(n.style.scrollMarginBottom="20px",n.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(n)}}},[b]);var _,q=(Array.isArray(null==k?void 0:k.children)?k.children:null!=(null==k?void 0:k.children)?[k.children]:[]).filter(function(n){return"string"!=typeof n}),J=q.find(function(n){return"deleted"===(null==n?void 0:n.type)}),P=q.findIndex(function(n){return"deleted"===(null==n?void 0:n.type)}),V=null===(m=null==J?void 0:J.props)||void 0===m?void 0:m.children,W=q.findIndex(function(n){return"changed"===(null==n?void 0:n.type)}),X=-1!==W?q[W]:null,$=null===(y=null==X?void 0:X.props)||void 0===y?void 0:y.children,G=Math.max(W,P),K=-1!==G?q.slice(G+1).filter(function(n){return"deleted"!==(null==n?void 0:n.type)&&"changed"!==(null==n?void 0:n.type)}):[];_=$&&K.length>0?e(e([],Array.isArray($)?$:[$],!0),K,!0):$||(K.length>0?K:void 0);function Q(n,t,o){var l;(null==C?void 0:C.isCraflow)&&C.craUserStory&&(n=C.craUserStory);var i=JSON.parse(JSON.stringify(n)),u=function(n,e){var r=function(n){for(var t=0,o=n;t<o.length;t++){var l=o[t];if((new DOMParser).parseFromString(l.value,"text/html").querySelector('updated[id="'.concat(e,'"]')))return l;if(l.sub_features&&l.sub_features.length>0){var i=r(l.sub_features);if(i)return i}}return null};return r(n)}(i,t);if(!u)return console.warn("No user story found with updated id: ".concat(t)),!1;var a=(new DOMParser).parseFromString(u.value,"text/html"),c=a.querySelector('updated[id="'.concat(t,'"]'));if(!c)return console.warn("No <updated> block found with id: ".concat(t)),!1;var d,v=c.innerHTML,f=s(c,"deleted"),p=s(c,"changed"),m=f?f.innerHTML.trim():null,y=p?p.innerHTML.trim():null,h="";if("reject"===o){var g=(d=(m||y||"").match(/ai_reasoning\$(\d+)/))?parseInt(d[1],10):null;null!==g&&x(function(n){var t=n.map(function(n){return r({},n)}),o="".concat(g,"-legacy"),l=t.find(function(n){var e;return(null===(e=n.id)||void 0===e?void 0:e.toString())===o});if(l){var i=l.id.toString().replace("-legacy","");t=t.filter(function(n){return n.id.toString()!==i}),l.id=i}return e([],t,!0)})}"accept"===o?h=m&&y?y:m&&!y?"":!m&&y?y:v:"reject"===o&&(h=m&&y||m&&!y?m:!m&&y?"":v);var S=a.createElement("div");S.innerHTML=h;var N=Array.from(S.childNodes);c.replaceWith.apply(c,N);var w=new XMLSerializer;return u.value=w.serializeToString(a),(null==C?void 0:C.isCraflow)?C.setCraUserStory(i):A(i),T(function(n){return Number.isNaN(Number(n))?n:String(Number(n)+1)}),null===(l=null==C?void 0:C.onCraFlowDiffAgentAction)||void 0===l||l.call(C,o,i),!0}var Y=function(n){var e=(null==I?void 0:I.actionButton)||{},t=F===n&&(null==I?void 0:I.actionButtonHover)||{};return r(r({},e),t)};return t("span",r({},k,{className:d.container,style:r(r({},null==I?void 0:I.container),{display:"block"}),onMouseEnter:function(){E.current&&(clearTimeout(E.current),E.current=null),z(!0)},onMouseLeave:function(){E.current=setTimeout(function(){z(!1),E.current=null},2e3)},ref:(null==k?void 0:k.id)===b?H:null},{children:[(L||(null==I?void 0:I.showFixedActionButtons))&&!w&&t("span",r({className:d.hoverActions,style:null==I?void 0:I.hoverActions,onMouseEnter:function(){return z(!0)}},{children:[o("button",r({className:d.actionButton,style:Y("undo"),onMouseEnter:function(){return D("undo")},onMouseLeave:function(){return D(null)},onClick:function(){h&&S?S(null==k?void 0:k.id):Q(M,null==k?void 0:k.id,"reject"),z(!1)}},{children:(null==U?void 0:U.undo)?U.undo:o(l,{size:R,color:null==I?void 0:I.undoIconColor,className:d.hw})})),o("span",{className:d.divider,style:null==I?void 0:I.divider}),o("button",r({className:d.actionButton,style:Y("accept"),onMouseEnter:function(){return D("accept")},onMouseLeave:function(){return D(null)},onClick:function(){h&&g?g(null==k?void 0:k.id):Q(M,null==k?void 0:k.id,"accept"),z(!1)}},{children:(null==U?void 0:U.accept)?U.accept:o(i,{size:R,color:null==I?void 0:I.thumbsUpIconColor,className:d.hw})}))]})),V&&o("span",r({className:d.deletedContainer,style:r(r({},null==I?void 0:I.deletedContainer),{display:"block"})},{children:o("span",r({className:d.deletedText,style:r(r({},null==I?void 0:I.deletedText),{display:"block"})},{children:V}))})),_&&o("span",r({className:d.changedContainer,style:r(r({},null==I?void 0:I.changedContainer),{display:"block"})},{children:o("span",r({className:d.changedText,style:r(r({},null==I?void 0:I.changedText),{display:"block"})},{children:_}))}))]}))};export{v as default};
2
2
  //# sourceMappingURL=UpdatedAnimationContent.js.map
@@ -1,2 +1,2 @@
1
- import{v4 as e}from"uuid";var n=function(e){if(!e)return[];return e.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(e){return e.trim()})},t=function(t){var u=function(t,i){var r=n(t.value).map(function(n){return{contentId:e(),content:n,isApproved:!1}}),a={artifactId:t.artifactId,title:t.title,value:r,description:t.description,approval_status:i?void 0:"NOT_APPROVED",big_enough:null==t?void 0:t.big_enough,big_enough_decision_factors:null==t?void 0:t.big_enough_decision_factors,metadata:null==t?void 0:t.metadata,gapValue:null==t?void 0:t.gapValue,confidenceScore:null==t?void 0:t.confidenceScore};return t.sub_features&&t.sub_features.length>0&&(a.sub_features=t.sub_features.map(function(e){return u(e,!0)})),a};return t.map(function(e){return u(e,!1)})},u=function(e){var n=function(e){var t,u=Array.isArray(e.value)?e.value.map(function(e){return e.content}).join("\n\n"):e.value,i={artifactId:e.artifactId,title:e.title,description:e.description,value:u,big_enough:e.big_enough,big_enough_decision_factors:e.big_enough_decision_factors,metadata:null==e?void 0:e.metadata,gapValue:null==e?void 0:e.gapValue,confidenceScore:null==e?void 0:e.confidenceScore};return(null===(t=e.sub_features)||void 0===t?void 0:t.length)&&(i.sub_features=e.sub_features.map(n)),i};return e.map(n)},i=function(e){return structuredClone(e)};export{i as cloneUserStories,t as createUserStoriesForApproval,n as splitByHeaders,u as transformApprovalToUserStory};
1
+ import{v4 as e}from"uuid";var t=function(e){if(!e)return[];return e.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(e){return e.trim()})},n=function(n){var r=function(n,u){var o=t(n.value).map(function(t){return{contentId:e(),content:t,isApproved:!1}}),i={artifactId:n.artifactId,title:n.title,value:o,description:n.description,approval_status:u?void 0:"NOT_APPROVED",big_enough:null==n?void 0:n.big_enough,big_enough_decision_factors:null==n?void 0:n.big_enough_decision_factors,metadata:null==n?void 0:n.metadata,gapValue:null==n?void 0:n.gapValue,confidenceScore:null==n?void 0:n.confidenceScore,storyNumber:n.storyNumber,blockNumber:n.blockNumber};return n.sub_features&&n.sub_features.length>0&&(i.sub_features=n.sub_features.map(function(e){return r(e,!0)})),i};return n.map(function(e){return r(e,!1)})},r=function(e){var t=function(e){var n,r=Array.isArray(e.value)?e.value.map(function(e){return e.content}).join("\n\n"):e.value,u={artifactId:e.artifactId,title:e.title,description:e.description,value:r,big_enough:e.big_enough,big_enough_decision_factors:e.big_enough_decision_factors,metadata:null==e?void 0:e.metadata,gapValue:null==e?void 0:e.gapValue,confidenceScore:null==e?void 0:e.confidenceScore,storyNumber:e.storyNumber,blockNumber:e.blockNumber};return(null===(n=e.sub_features)||void 0===n?void 0:n.length)&&(u.sub_features=e.sub_features.map(t)),u};return e.map(t)},u=function(e){return structuredClone(e)};export{u as cloneUserStories,n as createUserStoriesForApproval,t as splitByHeaders,r as transformApprovalToUserStory};
2
2
  //# sourceMappingURL=userstory-approval-transform.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAKvJ,QAAA,MAAM,iBAAiB,+CAo4GtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAKvJ,QAAA,MAAM,iBAAiB,+CA6kHtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
@@ -5,7 +5,7 @@ import { CitationConfig, IChatHistoryItem, UserStoryCitations } from "../../inte
5
5
  import { UpdatedAnimatedContentStyles, UpdatedAnimatedContentIcons } from "../../shared/UpdatedAnimationContent";
6
6
  import { GapSidebarCustomStyles, GapSidebarCustomIcons } from "../GapRiskSidebar/types/gapRiskSidebar.types";
7
7
  import { UserStoryWithCitationCustomStyles } from "../userstory-with-citation/UserStoryWithCitation";
8
- import { TSegment, TSegmentType } from "../../types/segment.type";
8
+ import { TSegmentComponentConfig } from "../../types/segment.type";
9
9
  export interface RequirementAICustomStyles {
10
10
  userStoryScreenStyles?: {
11
11
  wrapperContainer?: React.CSSProperties;
@@ -320,10 +320,7 @@ interface IRequirementAIContext {
320
320
  handleClickCognitiveDecision?: ((anchorEl: HTMLElement, aiReason: TAIReasoning) => void) | undefined;
321
321
  handleClickUpdatedPill?: ((anchorEl: HTMLElement, aiReason: TAIReasoning) => void) | undefined;
322
322
  };
323
- handleViewGlossary?: () => void;
324
- handleFetchSegmentDetails?: (segmentId: string) => Promise<void>;
325
- segmentDataList?: TSegment[];
326
- getSegmentExampleComponent?: (segmentId: string, originalValue: string, segmentType: TSegmentType) => JSX.Element;
323
+ segmentComponentConfig?: TSegmentComponentConfig;
327
324
  }
328
325
  export interface RequirementAIWrapperProps {
329
326
  children: ReactNode;
@@ -354,12 +351,9 @@ export interface RequirementAIWrapperProps {
354
351
  handleClickCognitiveDecision?: ((anchorEl: HTMLElement, aiReason: TAIReasoning) => void) | undefined;
355
352
  handleClickUpdatedPill?: ((anchorEl: HTMLElement, aiReason: TAIReasoning) => void) | undefined;
356
353
  };
357
- handleFetchSegmentDetails?: (segmentId: string) => Promise<void>;
358
- handleViewGlossary?: () => void;
359
- segmentDataList?: TSegment[];
360
- getSegmentExampleComponent?: (segmentId: string, originalValue: string, segmentType: TSegmentType) => JSX.Element;
354
+ segmentComponentConfig?: TSegmentComponentConfig;
361
355
  }
362
- declare const RequirementAIWrapper: ({ children, userStory, setUserStory, aiReasoning, setAiReasoning, citations, setCitations, apiCachingConfig, customStyles, customIcons, searchQueryList, searchQueryReasoningIdList, citationConfig, chatHistory, chatCitationConfigs, gptCitationConfigs, aiReasoningAccordionOpenStates, persistedDataFiles, inlineUpdateComponentConfig, handleViewGlossary, segmentDataList, getSegmentExampleComponent, handleFetchSegmentDetails }: RequirementAIWrapperProps) => import("react/jsx-runtime").JSX.Element;
356
+ declare const RequirementAIWrapper: ({ children, userStory, setUserStory, aiReasoning, setAiReasoning, citations, setCitations, apiCachingConfig, customStyles, customIcons, searchQueryList, searchQueryReasoningIdList, citationConfig, chatHistory, chatCitationConfigs, gptCitationConfigs, aiReasoningAccordionOpenStates, persistedDataFiles, inlineUpdateComponentConfig, segmentComponentConfig }: RequirementAIWrapperProps) => import("react/jsx-runtime").JSX.Element;
363
357
  export declare const useRequirementAI: () => IRequirementAIContext;
364
358
  export default RequirementAIWrapper;
365
359
  //# sourceMappingURL=RequirementAIWrapper.d.ts.map
@@ -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,EAAkC,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,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;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AAC"}
@@ -1,7 +1,19 @@
1
1
  /// <reference types="react" />
2
+ import { UserStoryWithCitationCustomStyles } from "../userstory-with-citation/UserStoryWithCitation";
3
+ export interface IContextItemStyles {
4
+ contextItem?: React.CSSProperties;
5
+ iconWrapper?: React.CSSProperties;
6
+ itemContent?: React.CSSProperties;
7
+ title?: React.CSSProperties;
8
+ metadata?: React.CSSProperties;
9
+ actionButton?: React.CSSProperties;
10
+ }
11
+ interface IProps {
12
+ customStyles?: UserStoryWithCitationCustomStyles["attachedContext"];
13
+ }
2
14
  /**
3
15
  * MAIN COMPONENT: AttachedContext
4
16
  */
5
- declare const AttachedContext: React.FC;
17
+ declare const AttachedContext: React.FC<IProps>;
6
18
  export default AttachedContext;
7
19
  //# sourceMappingURL=AttachedContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachedContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/AttachedContext.tsx"],"names":[],"mappings":";AAiLA;;GAEG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EA2H5B,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"AttachedContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/AttachedContext.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAYrG,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACpC;AAkJD,UAAU,MAAM;IACd,YAAY,CAAC,EAAE,iCAAiC,CAAC,iBAAiB,CAAC,CAAC;CACrE;AAED;;GAEG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CA0FrC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { IUserStory } from "../../interfaces/userstory.interface";
3
3
  import { UserStoryCitations } from "../../interfaces/citation.interface";
4
- import { TSegment, TSegmentType } from "../../types/segment.type";
4
+ import { TSegmentComponentConfig } from "../../types/segment.type";
5
5
  interface CardDisplayConfig {
6
6
  showShareButton?: boolean;
7
7
  showEditButton?: boolean;
@@ -37,13 +37,10 @@ interface StoryCardProps {
37
37
  elementDisplayConfig?: ElementDisplayConfig;
38
38
  _resolvedConfig?: CardDisplayConfig;
39
39
  showWrapper?: boolean;
40
- handleFetchSegmentDetails?: (segmentId: string) => Promise<void>;
41
- handleViewGlossary?: () => void;
42
- segmentDataList?: TSegment[];
43
- getSegmentExampleComponent?: (segmentId: string, originalValue: string, segmentType: TSegmentType) => JSX.Element;
40
+ segmentComponentConfig?: TSegmentComponentConfig;
44
41
  }
45
42
  export declare function replaceLearnedTagsWithInfo(content: string): React.ReactNode[];
46
- export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, handleViewGlossary, segmentDataList, getSegmentExampleComponent, handleFetchSegmentDetails }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
43
+ export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, segmentComponentConfig, }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
47
44
  interface IProps {
48
45
  isUserStoryCurrentlyUpdated?: boolean;
49
46
  artifactId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAmBA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAGzE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,UAAU,iBAAiB;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAElC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,oBAAoB;IACjC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC3D;AAED,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,OAA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,SAAS,kdAwBnB,cAAc,4CAyYhB,CAAC;AAEF,UAAU,MAAM;IACZ,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,uBAAuB,EAAE,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAG,WAAW,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACpK,oBAAoB,CAAC,EAAE,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;IAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,qQAAsQ,MAAM,4CAkG5S,CAAA;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAmBA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAGzE,OAAO,EAAY,uBAAuB,EAAgB,MAAM,0BAA0B,CAAC;AAG3F,UAA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,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,qQAAsQ,MAAM,4CA+F5S,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AIReasonAccordion.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,UAAU,sBAAsB;IAC9B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SAAc,EACd,YAAY,EACZ,UAAkB,EAClB,WAAkB,EAClB,oBAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EACnB,EAAE,sBAAsB,2CAwExB"}
1
+ {"version":3,"file":"AIReasonAccordion.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,UAAU,sBAAsB;IAC9B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SAAc,EACd,YAAY,EACZ,UAAkB,EAClB,WAAkB,EAClB,oBAA4B,EAC5B,iBAAiB,EACjB,kBAAkB,EACnB,EAAE,sBAAsB,2CAwExB"}
@@ -1 +1 @@
1
- {"version":3,"file":"PartialRequirementContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/cra/PartialRequirementContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAG7E,OAA+B,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAG7H,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAIlE,MAAM,MAAM,8BAA8B,GAAG;IACzC,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE,UAAU,EAAE,CAAC;IAC7B,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC1D,wBAAwB,CAAC,EAAE,CACvB,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAC3B,WAAW,EAAE,UAAU,EAAE,KACxB,IAAI,CAAC;IACV,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,iCAAiC,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC5C,8BAA8B,CA4M7B,CAAC;AAEN,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"PartialRequirementContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/cra/PartialRequirementContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAG7E,OAA+B,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAG7H,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAIlE,MAAM,MAAM,8BAA8B,GAAG;IACzC,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE,UAAU,EAAE,CAAC;IAC7B,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC1D,wBAAwB,CAAC,EAAE,CACvB,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAC3B,WAAW,EAAE,UAAU,EAAE,KACxB,IAAI,CAAC;IACV,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,eAAe,CAAC,EAAE,iCAAiC,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC5C,8BAA8B,CAyM7B,CAAC;AAEN,eAAe,yBAAyB,CAAC"}
@@ -10,7 +10,7 @@ interface SegmentProps {
10
10
  customStyles?: SegmentStyles;
11
11
  aiReasoningCitationCustomStyles?: AiReasoningCustomStyles;
12
12
  segmentExampleComponent?: JSX.Element;
13
- handleViewGlossary?: () => void;
13
+ handleViewGlossary?: (id: string) => void;
14
14
  }
15
15
  declare const Segment: React.FC<SegmentProps>;
16
16
  export default Segment;