@e-llm-studio/requirement-ai 0.0.108 → 0.0.109

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 (43) hide show
  1. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +2 -0
  4. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js.map +1 -0
  5. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.module.css.js +2 -0
  6. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.module.css.js.map +1 -0
  7. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  10. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  11. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +2 -0
  12. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js.map +1 -0
  13. package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  14. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  15. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  16. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +2 -0
  17. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js.map +1 -0
  18. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.module.css.js +2 -0
  19. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.module.css.js.map +1 -0
  20. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  21. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  22. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  23. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  24. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +2 -0
  25. package/dist/features/RequirementAI/icons/BigEnoughIcon.js.map +1 -0
  26. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  27. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +14 -1
  28. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  29. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  30. package/dist/types/src/features/RequirementAI/components/story-screen/BigEnoughPanel.d.ts +11 -0
  31. package/dist/types/src/features/RequirementAI/components/story-screen/BigEnoughPanel.d.ts.map +1 -0
  32. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  33. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts.map +1 -1
  34. package/dist/types/src/features/RequirementAI/icons/BigEnoughIcon.d.ts +3 -0
  35. package/dist/types/src/features/RequirementAI/icons/BigEnoughIcon.d.ts.map +1 -0
  36. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts +3 -0
  37. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts.map +1 -0
  38. package/dist/types/src/features/RequirementAI/interfaces/approval-screen.interface.d.ts +12 -0
  39. package/dist/types/src/features/RequirementAI/interfaces/approval-screen.interface.d.ts.map +1 -0
  40. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +5 -3
  41. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  42. package/dist/types/src/features/RequirementAI/utils/userstory-approval-transform.utils.d.ts.map +1 -1
  43. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react"),s=require("showdown"),i=require("@mui/material"),a=require("uuid"),l=require("./UserStoryCard.module.css.js"),o=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=y(s);function _(n){for(var s,l=[],o=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(s=o.exec(n));){var c=s[1],f=s.index;f>u&&l.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),l.push(t.jsx(i.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(r.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(a.v4()))),u=o.lastIndex}return u<(null==n?void 0:n.length)&&l.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),l}var m=function(n){var s,i=n.displayName,a=v.useRequirementAI().customStyles,o=null===(s=null==a?void 0:a.userStoryCardStyles)||void 0===s?void 0:s.showDisplayName;return t.jsxs("div",e.__assign({className:l.default.displayName,style:null==o?void 0:o.wrapper},{children:[t.jsx(r.Bookmark,{className:l.default.displayNameIcon,style:null==o?void 0:o.displayNameIcon}),t.jsxs("span",e.__assign({style:null==o?void 0:o.label},{children:[i,":"]}))]}))},g=function(s){var a,y,p=s.isUserStoryCurrentlyUpdated,S=s.artifactId,x=s.artifactTitleId,C=s.parentUserStory,j=s.currentUserStory,I=s.onUserStoryChange,w=s.parentIndex,N=s.currentIndex,U=s.enableDownload,D=s.isDiffEditReviewMode,b=s.showUserStoryDiff,M=s.handleDownloadUserStory,k=s.handleOpenSendDialog,B=s.updateUserStoryArtifact,q=s.selectedArtifactId,A=s.isDisplayHighlightControl,R=s.elementDisplayConfig,E=v.useRequirementAI(),T=E.searchQueryList,L=E.citations,H=E.customStyles,z=null==H?void 0:H.userStoryCardStyles,P=null===(a=null==H?void 0:H.userStoryScreenStyles)||void 0===a?void 0:a.userStoryContentStyles,W=n.useState(e.__assign(e.__assign({},structuredClone(j)),{value:o.formatMarkdown(j.value)||""})),O=W[0],F=W[1],V=n.useState({userStory:!1}),Q=V[0],G=V[1],J=v.useRequirementAI().userStory,K=n.useState(""===w||q===j.artifactId),X=K[0],Y=K[1],Z=n.useState(!1);Z[0];var $=Z[1],ee=n.useState(null),te=ee[0],ne=ee[1],re=n.useState(!1),se=re[0],ie=re[1],ae=n.useRef(null),le=n.useState(!1);le[0];var oe=le[1],ue=n.useRef(null);n.useEffect(function(){p&&Y(p)},[p]),n.useEffect(function(){F(e.__assign(e.__assign({},structuredClone(j)),{value:o.formatMarkdown(j.value)||""}))},[j]),n.useEffect(function(){T.length>0?Y(!0):q&&Y(q===j.artifactId)},[T,q,j.artifactId]);var de=function(){ne(null)},ce=function(){Y(function(e){return!e})};return t.jsxs("div",e.__assign({className:l.default.card,style:null==z?void 0:z.cardStyle},{children:[t.jsxs("div",e.__assign({className:l.default.titleSection,style:null==z?void 0:z.titleSection},{children:[t.jsxs("div",e.__assign({className:l.default.titleRow,style:null==z?void 0:z.titleRow,onClick:ce},{children:[t.jsxs("div",e.__assign({className:l.default.titleLeft,style:null==z?void 0:z.titleLeft,onMouseEnter:function(){return oe(!0)},onMouseLeave:function(){return oe(!1)}},{children:[t.jsx(m,{displayName:x}),t.jsx("h2",e.__assign({className:l.default.storyTitle,style:null==z?void 0:z.storyTitle},{children:_(j.title)}),j.artifactId)]})),t.jsxs("div",e.__assign({className:l.default.titleActions,style:null==z?void 0:z.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!Q.userStory&&t.jsxs(t.Fragment,{children:[!1!==(null==R?void 0:R.showShareButton)&&t.jsx("button",e.__assign({className:l.default.iconButton,style:null==z?void 0:z.iconButton,onClick:function(e){ne(e.currentTarget)}},{children:t.jsx(r.ExternalLink,{size:16})})),t.jsxs(i.Menu,e.__assign({id:"user-story-share-menu",anchorEl:te,open:!!te,onClose:function(){return ne(null)},style:null==z?void 0:z.userStoryShareMenu},{children:[U&&t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return $(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),$(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:ae,className:l.default.menuItemContent,style:null==z?void 0:z.menuItemContent},{children:[t.jsx(r.Download,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Download"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=j,C&&(t=e.__assign(e.__assign({},j),{value:"".concat(u.replaceTitleSection(null==C?void 0:C.value,j.title)," \n").concat(j.value)})),null==k||k(!0,[t],j.artifactId),de(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:l.default.menuItemContentPadded},{children:[t.jsx(r.Share2,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Send"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,s,i;return e.__generator(this,function(e){switch(e.label){case 0:t=new h.default.Converter,n=t.makeHtml(o.formatMarkdown(j.value)||j.value),r=function(e){var t=(new h.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(o.formatMarkdown(j.value)||j.value),s=new ClipboardItem({"text/plain":new Blob([r],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([s])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return i=e.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return de(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:l.default.menuItemContentPadded},{children:[t.jsx(r.Copy,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Copy"}))]}))}))]}))]}),Q.userStory&&X?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==z?void 0:z.cancelButton,onClick:function(){var t;null===(t=ue.current)||void 0===t||t.abort(),G(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),Q.userStory&&X?t.jsx(d.default,{type:"fill",children:se?t.jsxs("span",e.__assign({className:l.default.savingSpinner},{children:[t.jsx(r.LoaderCircle,{className:l.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:se,style:se?null==z?void 0:z.savingButton:null==z?void 0:z.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return ie(!0),"userStory"==="userStory"&&(I(O),console.log("I am changing RTE editor values",O)),[4,B(L,J,S,null===(t=ue.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),G(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),ie(!1),[2]}})})}}):!D&&!b&&X&&!1!==(null==R?void 0:R.showEditButton)&&t.jsx("button",e.__assign({className:l.default.iconButton,style:null==z?void 0:z.editButton,onClick:function(){return G(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(r.PencilIcon,{color:null==z?void 0:z.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),ce()},style:null==z?void 0:z.chevronButton,className:l.default.chevronButton},{children:X?t.jsx(r.ChevronUp,{className:l.default.chevronIcon,color:null==z?void 0:z.chevronIconColor}):t.jsx(r.ChevronDown,{className:l.default.chevronIcon,color:null==z?void 0:z.chevronIconColor})}))]}))]})),t.jsx("div",{className:l.default.divider,style:null==z?void 0:z.dividerStyle})]})),X&&t.jsx("div",e.__assign({className:l.default.cardContent,style:null==z?void 0:z.cardContentStyle},{children:t.jsxs("div",e.__assign({className:l.default.contentInner,style:null==z?void 0:z.contentInner},{children:[t.jsxs("div",e.__assign({className:l.default.descriptionSection,style:null==z?void 0:z.descriptionSection},{children:[t.jsx("div",{className:l.default.justifyBetween,style:null==z?void 0:z.justifyBetween}),Q.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:o.formatMarkdown(j.value)||"",handleUpdateState:function(t,n){var r=o.indentMarkdown(n);F(function(t){return e.__assign(e.__assign({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:Q.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:b,isParent:""===w,message:o.formatMarkdown(j.value)||"",artifactId:j.artifactId,customStyles:P,isDisplayHighlightControl:A})]})),null===(y=O.sub_features)||void 0===y?void 0:y.map(function(n,r){return t.jsx(g,{artifactId:S,isUserStoryCurrentlyUpdated:p,artifactTitleId:"".concat(x,"-").concat(String.fromCharCode(65+r)),parentUserStory:j,parentIndex:"".concat(w).concat(w&&".").concat(N),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var r=e.__spreadArray([],j.sub_features||[],!0);r[t]=n,I(e.__assign(e.__assign({},j),{sub_features:r}))}(r,t)},enableDownload:!0,isDiffEditReviewMode:D,showUserStoryDiff:b,updateUserStoryArtifact:B,handleDownloadUserStory:M,handleOpenSendDialog:k,isDisplayHighlightControl:A,elementDisplayConfig:R},n.artifactId)})]}))}))]}))};exports.StoryCard=g,exports.UserStoryCardWrapper=function(n){var s=n.artifactTitleIDs,i=n.isDiffEditReviewMode,a=n.showUserStoryDiff,o=n.updateUserStoryArtifact,u=n.isUserStoryCurrentlyUpdated,d=n.artifactId,c=n.handleOpenSendDialog,f=n.handleDownloadUserStory,y=n.selectedArtifactId,h=n.isDisplayHighlightControl,_=n.elementDisplayConfig,m=v.useRequirementAI(),p=m.userStory,S=m.setUserStory,x=m.customStyles,C=m.searchQueryList,j=m.currentHighlightIndex,I=m.setCurrentHighlightIndex,w=null==x?void 0:x.userStoryCardStyles,N=0===j,U=j===C.length-1;return t.jsxs("div",e.__assign({className:l.default.userStoryCardWrapper,style:h?e.__assign(e.__assign({},null==w?void 0:w.userStoryCardWrapper),{position:"relative"}):null==w?void 0:w.userStoryCardWrapper},{children:[h&&t.jsx(t.Fragment,{children:C.length>0&&t.jsx("div",e.__assign({className:l.default.wrapper},{children:t.jsx("div",e.__assign({className:l.default.highlightNavigation},{children:t.jsxs("div",e.__assign({className:l.default.navigationContainer},{children:[t.jsxs("span",e.__assign({className:l.default.navCounter},{children:[j+1," of ",C.length]})),t.jsxs("div",e.__assign({className:l.default.navButtons},{children:[t.jsx("button",e.__assign({onClick:function(){j>0&&I(function(e){return e-1})},className:l.default.navButton,disabled:N},{children:t.jsx(r.ChevronUpIcon,{size:20,className:l.default.navIcon})})),t.jsx("button",e.__assign({onClick:function(){j<C.length-1&&I(function(e){return e+1})},className:l.default.navButton,disabled:U},{children:t.jsx(r.ChevronDownIcon,{size:20,className:l.default.navIcon})}))]}))]}))}))}))}),p.map(function(n,r){return t.jsx(g,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:s[r]||"",currentUserStory:n,onUserStoryChange:function(t){S(function(n){return n[r]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:a,updateUserStoryArtifact:o,handleOpenSendDialog:c,handleDownloadUserStory:f,selectedArtifactId:y,isDisplayHighlightControl:h,elementDisplayConfig:_},n.artifactId)})]}))},exports.default=g,exports.replaceLearnedTagsWithInfo=_;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),r=require("showdown"),i=require("@mui/material"),l=require("uuid"),o=require("./UserStoryCard.module.css.js"),a=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),y=require("../story-screen/BigEnoughPanel.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=h(r);function g(n){for(var r,o=[],a=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(r=a.exec(n));){var c=r[1],f=r.index;f>u&&o.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),o.push(t.jsx(i.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(s.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(l.v4()))),u=a.lastIndex}return u<(null==n?void 0:n.length)&&o.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),o}var m=function(n){var r,i=n.displayName,l=v.useRequirementAI().customStyles,a=null===(r=null==l?void 0:l.userStoryCardStyles)||void 0===r?void 0:r.showDisplayName;return t.jsxs("div",e.__assign({className:o.default.displayName,style:null==a?void 0:a.wrapper},{children:[t.jsx(s.Bookmark,{className:o.default.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),t.jsxs("span",e.__assign({style:null==a?void 0:a.label},{children:[i,":"]}))]}))},p=function(r){var l,h,S=r.isUserStoryCurrentlyUpdated,x=r.artifactId,j=r.artifactTitleId,C=r.parentUserStory,I=r.currentUserStory,w=r.onUserStoryChange,N=r.parentIndex,U=r.currentIndex,b=r.enableDownload,D=r.isDiffEditReviewMode,B=r.showUserStoryDiff,M=r.handleDownloadUserStory,k=r.handleOpenSendDialog,q=r.updateUserStoryArtifact,A=r.selectedArtifactId,E=r.isDisplayHighlightControl,R=r.elementDisplayConfig,T=v.useRequirementAI(),L=T.searchQueryList,H=T.citations,P=T.customStyles,z=null==P?void 0:P.userStoryCardStyles,W=null===(l=null==P?void 0:P.userStoryScreenStyles)||void 0===l?void 0:l.userStoryContentStyles,O=n.useState(e.__assign(e.__assign({},structuredClone(I)),{value:a.formatMarkdown(I.value)||""})),F=O[0],V=O[1],Q=n.useState({userStory:!1}),G=Q[0],J=Q[1],K=v.useRequirementAI(),X=K.userStory,Y=K.customIcons,Z=n.useState(""===N||A===I.artifactId),$=Z[0],ee=Z[1],te=n.useState(!1);te[0];var ne=te[1],se=n.useState(null),re=se[0],ie=se[1],le=n.useState(!1),oe=le[0],ae=le[1],ue=n.useRef(null),de=n.useState(!1);de[0];var ce=de[1],fe=n.useRef(null);n.useEffect(function(){S&&ee(S)},[S]),n.useEffect(function(){V(e.__assign(e.__assign({},structuredClone(I)),{value:a.formatMarkdown(I.value)||""}))},[I]),n.useEffect(function(){L.length>0?ee(!0):A&&ee(A===I.artifactId)},[L,A,I.artifactId]);var ve=function(){ie(null)},ye=function(){ee(function(e){return!e})};return t.jsxs("div",e.__assign({className:o.default.card,style:null==z?void 0:z.cardStyle},{children:[t.jsxs("div",e.__assign({className:o.default.titleSection,style:null==z?void 0:z.titleSection},{children:[t.jsxs("div",e.__assign({className:o.default.titleRow,style:null==z?void 0:z.titleRow,onClick:ye},{children:[t.jsxs("div",e.__assign({className:o.default.titleLeft,style:null==z?void 0:z.titleLeft,onMouseEnter:function(){return ce(!0)},onMouseLeave:function(){return ce(!1)}},{children:[t.jsx(m,{displayName:j}),t.jsx("h2",e.__assign({className:o.default.storyTitle,style:null==z?void 0:z.storyTitle},{children:g(I.title)}),I.artifactId)]})),t.jsxs("div",e.__assign({className:o.default.titleActions,style:null==z?void 0:z.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(null==I?void 0:I.big_enough)&&(null==I?void 0:I.big_enough_decision_factors)&&t.jsx(y.BigEnoughPanel,{customIcons:Y,customStyles:null==z?void 0:z.aiReasoningCitaionStyles,currentUserStory:I,panelStyles:null==z?void 0:z.BigEnoughStyles}),!G.userStory&&t.jsxs(t.Fragment,{children:[!1!==(null==R?void 0:R.showShareButton)&&t.jsx("button",e.__assign({className:o.default.iconButton,style:null==z?void 0:z.iconButton,onClick:function(e){ie(e.currentTarget)}},{children:t.jsx(s.ExternalLink,{size:16})})),t.jsxs(i.Menu,e.__assign({id:"user-story-share-menu",anchorEl:re,open:!!re,onClose:function(){return ie(null)},style:null==z?void 0:z.userStoryShareMenu},{children:[b&&t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return ne(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),ne(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:ue,className:o.default.menuItemContent,style:null==z?void 0:z.menuItemContent},{children:[t.jsx(s.Download,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Download"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=I,C&&(t=e.__assign(e.__assign({},I),{value:"".concat(u.replaceTitleSection(null==C?void 0:C.value,I.title)," \n").concat(I.value)})),null==k||k(!0,[t],I.artifactId),ve(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:o.default.menuItemContentPadded},{children:[t.jsx(s.Share2,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Send"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,s,r,i;return e.__generator(this,function(e){switch(e.label){case 0:t=new _.default.Converter,n=t.makeHtml(a.formatMarkdown(I.value)||I.value),s=function(e){var t=(new _.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(a.formatMarkdown(I.value)||I.value),r=new ClipboardItem({"text/plain":new Blob([s],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([r])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return i=e.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return ve(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:o.default.menuItemContentPadded},{children:[t.jsx(s.Copy,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Copy"}))]}))}))]}))]}),G.userStory&&$?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==z?void 0:z.cancelButton,onClick:function(){var t;null===(t=fe.current)||void 0===t||t.abort(),J(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),G.userStory&&$?t.jsx(d.default,{type:"fill",children:oe?t.jsxs("span",e.__assign({className:o.default.savingSpinner},{children:[t.jsx(s.LoaderCircle,{className:o.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:oe,style:oe?null==z?void 0:z.savingButton:null==z?void 0:z.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return ae(!0),"userStory"==="userStory"&&(w(F),console.log("I am changing RTE editor values",F)),[4,q(H,X,x,null===(t=fe.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),J(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),ae(!1),[2]}})})}}):!D&&!B&&$&&!1!==(null==R?void 0:R.showEditButton)&&t.jsx("button",e.__assign({className:o.default.iconButton,style:null==z?void 0:z.editButton,onClick:function(){return J(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(s.PencilIcon,{color:null==z?void 0:z.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),ye()},style:null==z?void 0:z.chevronButton,className:o.default.chevronButton},{children:$?t.jsx(s.ChevronUp,{className:o.default.chevronIcon,color:null==z?void 0:z.chevronIconColor}):t.jsx(s.ChevronDown,{className:o.default.chevronIcon,color:null==z?void 0:z.chevronIconColor})}))]}))]})),t.jsx("div",{className:o.default.divider,style:null==z?void 0:z.dividerStyle})]})),$&&t.jsx("div",e.__assign({className:o.default.cardContent,style:null==z?void 0:z.cardContentStyle},{children:t.jsxs("div",e.__assign({className:o.default.contentInner,style:null==z?void 0:z.contentInner},{children:[t.jsxs("div",e.__assign({className:o.default.descriptionSection,style:null==z?void 0:z.descriptionSection},{children:[t.jsx("div",{className:o.default.justifyBetween,style:null==z?void 0:z.justifyBetween}),G.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:a.formatMarkdown(I.value)||"",handleUpdateState:function(t,n){var s=a.indentMarkdown(n);V(function(t){return e.__assign(e.__assign({},t),{value:s||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:G.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:B,isParent:""===N,message:a.formatMarkdown(I.value)||"",artifactId:I.artifactId,customStyles:W,isDisplayHighlightControl:E})]})),null===(h=F.sub_features)||void 0===h?void 0:h.map(function(n,s){return t.jsx(p,{artifactId:x,isUserStoryCurrentlyUpdated:S,artifactTitleId:"".concat(j,"-").concat(String.fromCharCode(65+s)),parentUserStory:I,parentIndex:"".concat(N).concat(N&&".").concat(U),currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var s=e.__spreadArray([],I.sub_features||[],!0);s[t]=n,w(e.__assign(e.__assign({},I),{sub_features:s}))}(s,t)},enableDownload:!0,isDiffEditReviewMode:D,showUserStoryDiff:B,updateUserStoryArtifact:q,handleDownloadUserStory:M,handleOpenSendDialog:k,isDisplayHighlightControl:E,elementDisplayConfig:R},n.artifactId)})]}))}))]}))};exports.StoryCard=p,exports.UserStoryCardWrapper=function(n){var r=n.artifactTitleIDs,i=n.isDiffEditReviewMode,l=n.showUserStoryDiff,a=n.updateUserStoryArtifact,u=n.isUserStoryCurrentlyUpdated,d=n.artifactId,c=n.handleOpenSendDialog,f=n.handleDownloadUserStory,y=n.selectedArtifactId,h=n.isDisplayHighlightControl,_=n.elementDisplayConfig,g=v.useRequirementAI(),m=g.userStory,S=g.setUserStory,x=g.customStyles,j=g.searchQueryList,C=g.currentHighlightIndex,I=g.setCurrentHighlightIndex,w=null==x?void 0:x.userStoryCardStyles,N=0===C,U=C===j.length-1;return t.jsxs("div",e.__assign({className:o.default.userStoryCardWrapper,style:h?e.__assign(e.__assign({},null==w?void 0:w.userStoryCardWrapper),{position:"relative"}):null==w?void 0:w.userStoryCardWrapper},{children:[h&&t.jsx(t.Fragment,{children:j.length>0&&t.jsx("div",e.__assign({className:o.default.wrapper},{children:t.jsx("div",e.__assign({className:o.default.highlightNavigation},{children:t.jsxs("div",e.__assign({className:o.default.navigationContainer},{children:[t.jsxs("span",e.__assign({className:o.default.navCounter},{children:[C+1," of ",j.length]})),t.jsxs("div",e.__assign({className:o.default.navButtons},{children:[t.jsx("button",e.__assign({onClick:function(){C>0&&I(function(e){return e-1})},className:o.default.navButton,disabled:N},{children:t.jsx(s.ChevronUpIcon,{size:20,className:o.default.navIcon})})),t.jsx("button",e.__assign({onClick:function(){C<j.length-1&&I(function(e){return e+1})},className:o.default.navButton,disabled:U},{children:t.jsx(s.ChevronDownIcon,{size:20,className:o.default.navIcon})}))]}))]}))}))}))}),m.map(function(n,s){return t.jsx(p,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:r[s]||"",currentUserStory:n,onUserStoryChange:function(t){S(function(n){return n[s]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:l,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:f,selectedArtifactId:y,isDisplayHighlightControl:h,elementDisplayConfig:_},n.artifactId)})]}))},exports.default=p,exports.replaceLearnedTagsWithInfo=g;
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}(),exports.default={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}(),exports.default={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E"};
2
2
  //# sourceMappingURL=UserStoryCard.module.css.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),n=require("react"),i=require("../../icons/BigEnoughIcon.js"),s=require("../ai-reasoning/AiReasoningCitationContent.js"),r=require("../RequirementAIWrapper/RequirementAIWrapper.js"),t=require("./BigEnoughPanel.module.css.js");exports.BigEnoughPanel=function(l){var u,a,c,d,g=l.customIcons,_=l.customStyles,v=l.currentUserStory,p=l.panelStyles,h=l.showPanel,f=void 0!==h&&h;r.useRequirementAI().searchQueryList;var b=n.useState(!!f),m=b[0],y=b[1],j=n.useRef(null);return o.jsxs("div",e.__assign({onClick:function(e){return e.stopPropagation()}},{children:[!f&&o.jsx("button",e.__assign({ref:j,className:t.default.developerEffortButton,style:null==p?void 0:p.buttonStyle,onClick:function(e){e.stopPropagation(),y(function(e){return!e})}},{children:o.jsx(i.default,{})})),m&&o.jsxs(o.Fragment,{children:[o.jsx("div",{style:f?null==p?void 0:p.showPanelBackdropStyles:null==p?void 0:p.backdropStyle,onClick:function(e){e.stopPropagation(),y(!1)},onWheel:function(e){return e.stopPropagation()}}),o.jsx("div",e.__assign({className:t.default.dropdown,style:e.__assign(e.__assign({},null==p?void 0:p.dropdownStyle),f?null==p?void 0:p.showPanelDropdownStyle:{})},{children:o.jsx(s.default,{cognitiveDecisionHeaders:{mainHeader:"Feature Implementation Score - ".concat((null==v?void 0:v.big_enough)||0)},big_enough_block:null===(u=v.big_enough_decision_factors)||void 0===u?void 0:u.big_enough_block,aiReason:{relevance_score:(null===(a=null==v?void 0:v.big_enough_decision_factors)||void 0===a?void 0:a.relevance_score)||0,reason:(null===(c=null==v?void 0:v.big_enough_decision_factors)||void 0===c?void 0:c.score_reason)||"",gap:(null===(d=null==v?void 0:v.big_enough_decision_factors)||void 0===d?void 0:d.gap)||"",id:"big-enough-cd"},customIcons:g,customStyles:_})}))]})]}))};
2
+ //# sourceMappingURL=BigEnoughPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigEnoughPanel.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".BigEnoughPanel-module_developerEffortButton__KLQ-Z{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;padding:.4rem .8rem}.BigEnoughPanel-module_dropdown__mlBHL{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;left:20px;margin-top:1.25rem;position:absolute;top:100%;width:91.666667%;z-index:40}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}(),exports.default={developerEffortButton:"BigEnoughPanel-module_developerEffortButton__KLQ-Z",dropdown:"BigEnoughPanel-module_dropdown__mlBHL"};
2
+ //# sourceMappingURL=BigEnoughPanel.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigEnoughPanel.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),a=require("../RequirementAIWrapper/RequirementAIWrapper.js"),n=require("../../utils/userstory-approval-transform.utils.js"),o=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),s=require("./components/ContentSegment/ContentSegment.js"),l=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),S=require("./UserStoryApprovalContext.js"),g={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},f={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},h=Object.assign(function(s){var l,c=s.artifactTitleIds,u=s.config,v=void 0===u?{}:u,p=s.callbacks,h=void 0===p?{}:p,m=s.labels,_=void 0===m?{}:m,A=s.isDisabled,y=void 0!==A&&A,b=s.children,I=s.classNames,C=s.selectedArtifactId,x=a.useRequirementAI(),j=x.userStory,U=x.customStyles,w=e.__assign(e.__assign({},g),v),k=e.__assign(e.__assign({},f),_),E=r.useState([]),q=E[0],N=E[1],F=r.useState(""),T=F[0],D=F[1],R=r.useState(""),B=R[0],M=R[1],P=r.useState(!1),W=P[0],O=P[1],V=r.useState(!0),z=V[0],L=V[1],H=r.useRef(void 0),G=r.useCallback(function(e,t,r,a){h.onShowNotification?h.onShowNotification(e,t,r,a):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(r))},[h]),Y=r.useCallback(function(e){h.onScrollToElement?h.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[h]),J=r.useMemo(function(){var e=q.findIndex(function(e){return e.artifactId===T});return e>=0?e:0},[q,T]),K=q[J];r.useEffect(function(){H.current=K},[K]),r.useEffect(function(){var e;if(null==j?void 0:j.length){null===(e=h.onInitialize)||void 0===e||e.call(h),1===j.length&&L(!1),j.length>0&&!T&&D(C||j[0].artifactId);var t=n.createUserStoriesForApproval(n.cloneUserStories(j));N(t)}},[j,C]),r.useEffect(function(){C&&C!==T&&D(C)},[C,T]),r.useEffect(function(){if(K){var e=o.getFirstNonApprovedSegmentId(K,"");M(e)}},[null==K?void 0:K.artifactId]);var Q=r.useCallback(function(t,r){N(function(a){var n=e.__spreadArray([],a,!0);if("APPROVED"===r.approval_status&&"APPROVED"!==a[t].approval_status){var i=o.getFirstUnapprovedStoryId(a,r.artifactId);i&&D(i)}return n[t]=r,n})},[]),X=r.useCallback(function(e){var t=H.current;if(t){var r=o.getFirstNonApprovedSegmentId(t,e);"NA"!==r&&(M(""),setTimeout(function(){M(r)},0))}},[]);i.useApprovalStatus({userStoryForApproval:q,selectedUserStoryForApproval:K,userStoryIndex:J,callbacks:h,labels:k,onSaveUserStory:Q});var Z=e.__assign({height:w.containerHeight},w.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),$={userStoryForApproval:q,setUserStoryForApproval:N,selectedStoryArtifactId:T,setSelectedStoryArtifactId:D,selectedUserStoryIndex:J,selectedUserStoryForApproval:K,currentContentId:B,setCurrentContentId:M,isEditingSegment:W,setIsEditingSegment:O,isSidebarExpanded:z,setIsSidebarExpanded:L,artifactTitleIds:c,config:w,labels:k,callbacks:h,isDisabled:y,handleSaveUserStory:Q,handleUpdateContentId:X,showNotification:G,scrollToElement:Y};return t.jsx(S.UserStoryApprovalScreenContext.Provider,e.__assign({value:$},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},Z),null===(l=null==U?void 0:U.approvalScreen)||void 0===l?void 0:l.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var r=e.Component,a=e.config,n=e.className,o=S.useUserStoryApprovalScreen(),i=o.isSidebarExpanded,s=o.selectedStoryArtifactId,l=o.setSelectedStoryArtifactId,d=o.userStoryForApproval,c=o.isEditingSegment,u=o.artifactTitleIds;return r?t.jsx(r,{isSidebarExpanded:i,selectedStoryArtifactId:s,setSelectedStoryArtifactId:l,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:a,className:n})},SidebarToggle:function(r){var a=r.OpenIcon,n=r.CloseIcon,o=r.className,i=void 0===o?"":o,s=S.useUserStoryApprovalScreen(),l=s.isSidebarExpanded,c=s.setIsSidebarExpanded,u=a||p.SidebarOpenIcon,v=n||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":l?"Collapse sidebar":"Expand sidebar",type:"button"},{children:l?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(n){var i,s,v,p,g,f,h,m,_,A,y,b,I,C,x,j,U,w,k,E,q,N=n.children,F=n.ButtonComponent,T=n.hideApproveAll,D=void 0!==T&&T,R=n.pageTitle,B=void 0===R?"Review Generated Requirements":R,M=n.pageDescription,P=void 0===M?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":M,W=S.useUserStoryApprovalScreen(),O=W.selectedUserStoryForApproval,V=W.selectedUserStoryIndex,z=W.artifactTitleIds,L=W.labels,H=W.config,G=W.isDisabled,Y=W.isEditingSegment,J=W.handleSaveUserStory,K=W.setCurrentContentId,Q=W.showNotification,X=a.useRequirementAI().customStyles,Z=r.useCallback(function(){if(O)if(Y)Q("warn","Warning!",L.unsavedChangesWarning,3e3);else{var e=o.approveAllSegments(O);J(V,e),K("")}},[O,V,Y,L,J,K,Q]);if(!O)return null;var $=z[V]||"",ee="APPROVED"===O.approval_status;return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(s=null===(i=null==X?void 0:X.approvalScreen)||void 0===i?void 0:i.content)||void 0===s?void 0:s.content),"data-lsc-ui-page-title":B,"data-lsc-ui-page-description":P},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(g=null===(p=null===(v=null==X?void 0:X.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===g?void 0:g.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(h=null===(f=null==X?void 0:X.approvalScreen)||void 0===f?void 0:f.content)||void 0===h?void 0:h.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(A=null===(_=null===(m=null==X?void 0:X.approvalScreen)||void 0===m?void 0:m.body)||void 0===_?void 0:_.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(I=null===(b=null===(y=null==X?void 0:X.approvalScreen)||void 0===y?void 0:y.body)||void 0===b?void 0:b.contentSegment)||void 0===I?void 0:I.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(j=null===(x=null===(C=null==X?void 0:X.approvalScreen)||void 0===C?void 0:C.body)||void 0===x?void 0:x.contentSegment)||void 0===j?void 0:j.headerArtifactId)},{children:$}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(U=null==X?void 0:X.approvalScreen)||void 0===U?void 0:U.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==O?void 0:O.title}))]})),!D&&H.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:ee?t.jsx(l.ApprovalBadge,{status:"APPROVED",label:L.approved}):F?t.jsx(F,e.__assign({type:"fill",onClick:Z,isDisable:G,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:L.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:Z,disabled:G,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(q=null===(E=null==X?void 0:X.approvalScreen)||void 0===E?void 0:E.content)||void 0===q?void 0:q.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:L.approveAll})]}))}))]})),N]}))},Body:function(n){var o,i,l,c=n.children,u=n.EditorComponent,v=n.ViewerComponent,p=S.useUserStoryApprovalScreen(),g=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,m=p.handleSaveUserStory,_=a.useRequirementAI().customStyles,A=r.useCallback(function(e){m(f,e)},[f,m]),y=r.useCallback(function(t,r){var a;if(g){var n=e.__assign(e.__assign({},g),{sub_features:null===(a=g.sub_features)||void 0===a?void 0:a.map(function(e,a){return a===t?r:e})});m(f,n)}},[g,f,m]),b=r.useCallback(function(t){var r;if(g){var a=e.__assign(e.__assign({},g),{sub_features:null===(r=g.sub_features)||void 0===r?void 0:r.filter(function(e,r){return r!==t})});m(f,a)}},[g,f,m]);if(!g)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(o=null==_?void 0:_.approvalScreen)||void 0===o?void 0:o.body)||void 0===i?void 0:i.container)},{children:[t.jsx(s.ContentSegment,{userStoryForApproval:g,artifactTitleId:I,onSaveMainStoryContent:A,EditorComponent:u,ViewerComponent:v}),null===(l=g.sub_features)||void 0===l?void 0:l.map(function(e,r){return t.jsx(s.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+r)),isSubFeature:!0,subFeatureIndex:r,onSaveSubFeature:y,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=h;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("../RequirementAIWrapper/RequirementAIWrapper.js"),a=require("../../utils/userstory-approval-transform.utils.js"),o=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),s=require("./components/ContentSegment/ContentSegment.js"),l=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),g=require("./UserStoryApprovalContext.js"),S=require("../story-screen/BigEnoughPanel.js"),f=require("../../icons/BigEnoughIcon.js"),h={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},_={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},m=Object.assign(function(s){var l,c=s.artifactTitleIds,u=s.config,v=void 0===u?{}:u,p=s.callbacks,S=void 0===p?{}:p,f=s.labels,m=void 0===f?{}:f,y=s.isDisabled,A=void 0!==y&&y,b=s.children,I=s.classNames,x=s.selectedArtifactId,C=r.useRequirementAI(),j=C.userStory,E=C.customStyles,U=e.__assign(e.__assign({},h),v),N=e.__assign(e.__assign({},_),m),w=n.useState([]),k=w[0],q=w[1],F=n.useState(""),T=F[0],B=F[1],R=n.useState(""),D=R[0],P=R[1],M=n.useState(!1),W=M[0],O=M[1],V=n.useState(!0),z=V[0],L=V[1],H=n.useRef(void 0),G=n.useCallback(function(e,t,n,r){S.onShowNotification?S.onShowNotification(e,t,n,r):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(n))},[S]),Y=n.useCallback(function(e){S.onScrollToElement?S.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[S]),J=n.useMemo(function(){var e=k.findIndex(function(e){return e.artifactId===T});return e>=0?e:0},[k,T]),K=k[J];n.useEffect(function(){H.current=K},[K]),n.useEffect(function(){var e;if(null==j?void 0:j.length){null===(e=S.onInitialize)||void 0===e||e.call(S),1===j.length&&L(!1),j.length>0&&!T&&B(x||j[0].artifactId);var t=a.createUserStoriesForApproval(a.cloneUserStories(j));q(t)}},[j,x]),n.useEffect(function(){x&&x!==T&&B(x)},[x,T]),n.useEffect(function(){if(K){var e=o.getFirstNonApprovedSegmentId(K,"");P(e)}},[null==K?void 0:K.artifactId]);var Q=n.useCallback(function(t,n){q(function(r){var a=e.__spreadArray([],r,!0);if("APPROVED"===n.approval_status&&"APPROVED"!==r[t].approval_status){var i=o.getFirstUnapprovedStoryId(r,n.artifactId);i&&B(i)}return a[t]=n,a})},[]),X=n.useCallback(function(e){var t=H.current;if(t){var n=o.getFirstNonApprovedSegmentId(t,e);"NA"!==n&&(P(""),setTimeout(function(){P(n)},0))}},[]);i.useApprovalStatus({userStoryForApproval:k,selectedUserStoryForApproval:K,userStoryIndex:J,callbacks:S,labels:N,onSaveUserStory:Q});var Z=e.__assign({height:U.containerHeight},U.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),$={userStoryForApproval:k,setUserStoryForApproval:q,selectedStoryArtifactId:T,setSelectedStoryArtifactId:B,selectedUserStoryIndex:J,selectedUserStoryForApproval:K,currentContentId:D,setCurrentContentId:P,isEditingSegment:W,setIsEditingSegment:O,isSidebarExpanded:z,setIsSidebarExpanded:L,artifactTitleIds:c,config:U,labels:N,callbacks:S,isDisabled:A,handleSaveUserStory:Q,handleUpdateContentId:X,showNotification:G,scrollToElement:Y};return t.jsx(g.UserStoryApprovalScreenContext.Provider,e.__assign({value:$},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},Z),null===(l=null==E?void 0:E.approvalScreen)||void 0===l?void 0:l.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var n=e.Component,r=e.config,a=e.className,o=g.useUserStoryApprovalScreen(),i=o.isSidebarExpanded,s=o.selectedStoryArtifactId,l=o.setSelectedStoryArtifactId,d=o.userStoryForApproval,c=o.isEditingSegment,u=o.artifactTitleIds;return n?t.jsx(n,{isSidebarExpanded:i,selectedStoryArtifactId:s,setSelectedStoryArtifactId:l,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:r,className:a})},SidebarToggle:function(n){var r=n.OpenIcon,a=n.CloseIcon,o=n.className,i=void 0===o?"":o,s=g.useUserStoryApprovalScreen(),l=s.isSidebarExpanded,c=s.setIsSidebarExpanded,u=r||p.SidebarOpenIcon,v=a||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":l?"Collapse sidebar":"Expand sidebar",type:"button"},{children:l?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(a){var i,s,v,p,h,_,m,y,A,b,I,x,C,j,E,U,N,w,k,q,F,T,B,R,D,P=a.children,M=a.ButtonComponent,W=a.hideApproveAll,O=void 0!==W&&W,V=a.pageTitle,z=void 0===V?"Review Generated Requirements":V,L=a.pageDescription,H=void 0===L?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":L,G=g.useUserStoryApprovalScreen(),Y=G.selectedUserStoryForApproval,J=G.selectedUserStoryIndex,K=G.artifactTitleIds,Q=G.labels,X=G.config,Z=G.isDisabled,$=G.isEditingSegment,ee=G.handleSaveUserStory,te=G.setCurrentContentId,ne=G.showNotification,re=r.useRequirementAI(),ae=re.customStyles,oe=re.customIcons,ie=n.useState(!1),se=ie[0],le=ie[1],de=n.useCallback(function(){if(Y)if($)ne("warn","Warning!",Q.unsavedChangesWarning,3e3);else{var e=o.approveAllSegments(Y);ee(J,e),te("")}},[Y,J,$,Q,ee,te,ne]);if(!Y)return null;var ce=K[J]||"",ue="APPROVED"===Y.approval_status,ve=null!=(null==Y?void 0:Y.big_enough)&&!Number.isNaN(Y.big_enough)&&!!(null==Y?void 0:Y.big_enough_decision_factors);return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(s=null===(i=null==ae?void 0:ae.approvalScreen)||void 0===i?void 0:i.content)||void 0===s?void 0:s.content),"data-lsc-ui-page-title":z,"data-lsc-ui-page-description":H},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(h=null===(p=null===(v=null==ae?void 0:ae.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===h?void 0:h.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(m=null===(_=null==ae?void 0:ae.approvalScreen)||void 0===_?void 0:_.content)||void 0===m?void 0:m.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(b=null===(A=null===(y=null==ae?void 0:ae.approvalScreen)||void 0===y?void 0:y.body)||void 0===A?void 0:A.contentSegment)||void 0===b?void 0:b.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(C=null===(x=null===(I=null==ae?void 0:ae.approvalScreen)||void 0===I?void 0:I.body)||void 0===x?void 0:x.contentSegment)||void 0===C?void 0:C.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(U=null===(E=null===(j=null==ae?void 0:ae.approvalScreen)||void 0===j?void 0:j.body)||void 0===E?void 0:E.contentSegment)||void 0===U?void 0:U.headerArtifactId)},{children:ce}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(N=null==ae?void 0:ae.approvalScreen)||void 0===N?void 0:N.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==Y?void 0:Y.title}))]})),t.jsxs("div",e.__assign({className:"flex items-center gap-2 "},{children:[ve&&t.jsx("button",e.__assign({className:d.default.developerEffortButton,style:null===(F=null===(q=null==ae?void 0:ae.approvalScreen)||void 0===q?void 0:q.BigEnoughStyles)||void 0===F?void 0:F.buttonStyle,onClick:function(){return le(!se)}},{children:t.jsx(f.default,{})})),!O&&X.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:ue?t.jsx(l.ApprovalBadge,{status:"APPROVED",label:Q.approved}):M?t.jsx(M,e.__assign({type:"fill",onClick:de,isDisable:Z,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:Q.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:Q.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:de,disabled:Z,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(B=null===(T=null==ae?void 0:ae.approvalScreen)||void 0===T?void 0:T.content)||void 0===B?void 0:B.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:Q.approveAll})]}))}))]}))]})),se&&ve&&t.jsx("div",e.__assign({className:d.default.bigEnoughWrapper},{children:t.jsx(S.BigEnoughPanel,{customIcons:oe,customStyles:null===(R=null==ae?void 0:ae.approvalScreen)||void 0===R?void 0:R.aiReasoningCitaionStyles,currentUserStory:Y,panelStyles:null===(D=null==ae?void 0:ae.approvalScreen)||void 0===D?void 0:D.BigEnoughStyles,showPanel:se})})),P]}))},Body:function(a){var o,i,l,c=a.children,u=a.EditorComponent,v=a.ViewerComponent,p=g.useUserStoryApprovalScreen(),S=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,_=p.handleSaveUserStory,m=r.useRequirementAI().customStyles,y=n.useCallback(function(e){_(f,e)},[f,_]),A=n.useCallback(function(t,n){var r;if(S){var a=e.__assign(e.__assign({},S),{sub_features:null===(r=S.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===t?n:e})});_(f,a)}},[S,f,_]),b=n.useCallback(function(t){var n;if(S){var r=e.__assign(e.__assign({},S),{sub_features:null===(n=S.sub_features)||void 0===n?void 0:n.filter(function(e,n){return n!==t})});_(f,r)}},[S,f,_]);if(!S)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(o=null==m?void 0:m.approvalScreen)||void 0===o?void 0:o.body)||void 0===i?void 0:i.container)},{children:[t.jsx(s.ContentSegment,{userStoryForApproval:S,artifactTitleId:I,onSaveMainStoryContent:y,EditorComponent:u,ViewerComponent:v}),null===(l=S.sub_features)||void 0===l?void 0:l.map(function(e,n){return t.jsx(s.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+n)),isSubFeature:!0,subFeatureIndex:n,onSaveSubFeature:A,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=m;
2
2
  //# sourceMappingURL=UserStoryApprovalScreen.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;position:relative;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ"};
2
2
  //# sourceMappingURL=UserStoryApprovalScreen.module.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),o=require("react"),i=require("../ContentBlock/ContentBlock.js"),l=require("./ContentSegment.module.css.js"),a=require("../../../../icons/ChevronUpIcon.js"),t=require("../../../../icons/BookmarkIcon.js"),s=require("../../../../icons/ChevronDownIcon.js"),r=require("../../../RequirementAIWrapper/RequirementAIWrapper.js"),d=function(d){var u,v,c,_,g,p,m,f,S,C,h,b,y,j,I,x,k,q,A,N,F,B,M,T,w,D,W,z=d.userStoryForApproval,R=d.artifactTitleId,E=d.isSubFeature,U=void 0!==E&&E,V=d.subFeatureIndex,O=d.onSaveSubFeature,P=d.onDeleteSubFeature,G=d.onSaveMainStoryContent,H=d.EditorComponent,J=d.ViewerComponent,K=o.useState(!0),L=K[0],Q=K[1],X=r.useRequirementAI().customStyles,Y=o.useCallback(function(){Q(function(e){return!e})},[]),Z=o.useCallback(function(n){if(void 0!==V){var o=e.__assign(e.__assign({},z),{value:z.value.map(function(o,i){return i===n?e.__assign(e.__assign({},o),{isApproved:!0}):o})});null==O||O(V,o)}},[z,V,O]),$=o.useCallback(function(n,o){if(void 0!==V){var i=e.__assign(e.__assign({},z),{value:z.value.map(function(i,l){return l===n?e.__assign(e.__assign({},i),{content:o}):i})});null==O||O(V,i)}},[z,V,O]),ee=o.useCallback(function(n){if(void 0!==V){var o=e.__assign(e.__assign({},z),{value:z.value.filter(function(e,o){return o!==n})});0!==o.value.length?null==O||O(V,o):null==P||P(V)}},[z,V,O,P]),ne=o.useCallback(function(n,o){var i;if(!U){var l=null===(i=z.value[n])||void 0===i?void 0:i.contentId;if(l){var a=e.__assign(e.__assign({},z),{value:z.value.map(function(n){return n.contentId===l?e.__assign(e.__assign({},n),{content:o}):n})});null==G||G(a)}}},[z,U,G]),oe=o.useCallback(function(n){var o;if(!U){var i=null===(o=z.value[n])||void 0===o?void 0:o.contentId;if(i){var l=e.__assign(e.__assign({},z),{value:z.value.map(function(n){return n.contentId===i?e.__assign(e.__assign({},n),{isApproved:!0}):n})});null==G||G(l)}}},[z,U,G]);return n.jsxs("div",e.__assign({className:l.default.container,style:e.__assign({},null===(c=null===(v=null===(u=null==X?void 0:X.approvalScreen)||void 0===u?void 0:u.body)||void 0===v?void 0:v.contentSegment)||void 0===c?void 0:c.container)},{children:[U&&n.jsxs("button",e.__assign({onClick:Y,className:l.default.header,style:e.__assign({},null===(p=null===(g=null===(_=null==X?void 0:X.approvalScreen)||void 0===_?void 0:_.body)||void 0===g?void 0:g.contentSegment)||void 0===p?void 0:p.header)},{children:[n.jsxs("div",e.__assign({className:l.default.headerContent,style:e.__assign({},null===(S=null===(f=null===(m=null==X?void 0:X.approvalScreen)||void 0===m?void 0:m.body)||void 0===f?void 0:f.contentSegment)||void 0===S?void 0:S.headerContent)},{children:[n.jsxs("div",e.__assign({className:l.default.headerMeta,style:e.__assign({},null===(b=null===(h=null===(C=null==X?void 0:X.approvalScreen)||void 0===C?void 0:C.body)||void 0===h?void 0:h.contentSegment)||void 0===b?void 0:b.headerMeta)},{children:[n.jsx(t.BookmarkIcon,{size:16,color:(null===(I=null===(j=null===(y=null==X?void 0:X.approvalScreen)||void 0===y?void 0:y.body)||void 0===j?void 0:j.contentSegment)||void 0===I?void 0:I.bookMarkColor)||"#8C8C8C"}),n.jsx("h2",e.__assign({className:l.default.headerArtifactId,style:e.__assign({},null===(q=null===(k=null===(x=null==X?void 0:X.approvalScreen)||void 0===x?void 0:x.body)||void 0===k?void 0:k.contentSegment)||void 0===q?void 0:q.headerArtifactId)},{children:R}))]})),n.jsx("p",e.__assign({className:l.default.headerTitle,style:e.__assign({},null===(F=null===(N=null===(A=null==X?void 0:X.approvalScreen)||void 0===A?void 0:A.body)||void 0===N?void 0:N.contentSegment)||void 0===F?void 0:F.headerTitle)},{children:null==z?void 0:z.title}))]})),n.jsx("div",e.__assign({className:l.default.headerToggle,style:e.__assign({},null===(T=null===(M=null===(B=null==X?void 0:X.approvalScreen)||void 0===B?void 0:B.body)||void 0===M?void 0:M.contentSegment)||void 0===T?void 0:T.headerToggle)},{children:L?n.jsx(a.ChevronUpIcon,{size:16}):n.jsx(s.ChevronDownIcon,{size:16})}))]})),L&&n.jsx("div",e.__assign({className:l.default.contentWrapper,style:e.__assign({},null===(W=null===(D=null===(w=null==X?void 0:X.approvalScreen)||void 0===w?void 0:w.body)||void 0===D?void 0:D.contentSegment)||void 0===W?void 0:W.contentWrapper)},{children:Array.isArray(null==z?void 0:z.value)&&z.value.map(function(e,o){return n.jsx(i.ContentBlock,{segment:e,segmentIndex:o,isSubFeature:U,onSaveContent:U?$:ne,onApproveContent:U?Z:oe,onDeleteContent:U?ee:void 0,EditorComponent:H,ViewerComponent:J},e.contentId)})}))]}))};exports.ContentSegment=d,exports.default=d;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),o=require("react"),i=require("../ContentBlock/ContentBlock.js"),l=require("./ContentSegment.module.css.js"),a=require("../../../../icons/ChevronUpIcon.js"),t=require("../../../../icons/BookmarkIcon.js"),s=require("../../../../icons/ChevronDownIcon.js"),r=require("../../../RequirementAIWrapper/RequirementAIWrapper.js"),u=require("../../../story-screen/BigEnoughPanel.js"),d=function(d){var v,c,_,g,p,m,S,f,h,C,y,b,j,I,x,k,q,A,N,B,F,E,M,T,w,D,R,W,z,P=d.userStoryForApproval,U=d.artifactTitleId,V=d.isSubFeature,O=void 0!==V&&V,G=d.subFeatureIndex,H=d.onSaveSubFeature,J=d.onDeleteSubFeature,K=d.onSaveMainStoryContent,L=d.EditorComponent,Q=d.ViewerComponent,X=o.useState(!0),Y=X[0],Z=X[1],$=r.useRequirementAI(),ee=$.customStyles,ne=$.customIcons,oe=o.useCallback(function(){Z(function(e){return!e})},[]),ie=o.useCallback(function(n){if(void 0!==G){var o=e.__assign(e.__assign({},P),{value:P.value.map(function(o,i){return i===n?e.__assign(e.__assign({},o),{isApproved:!0}):o})});null==H||H(G,o)}},[P,G,H]),le=o.useCallback(function(n,o){if(void 0!==G){var i=e.__assign(e.__assign({},P),{value:P.value.map(function(i,l){return l===n?e.__assign(e.__assign({},i),{content:o}):i})});null==H||H(G,i)}},[P,G,H]),ae=o.useCallback(function(n){if(void 0!==G){var o=e.__assign(e.__assign({},P),{value:P.value.filter(function(e,o){return o!==n})});0!==o.value.length?null==H||H(G,o):null==J||J(G)}},[P,G,H,J]),te=o.useCallback(function(n,o){var i;if(!O){var l=null===(i=P.value[n])||void 0===i?void 0:i.contentId;if(l){var a=e.__assign(e.__assign({},P),{value:P.value.map(function(n){return n.contentId===l?e.__assign(e.__assign({},n),{content:o}):n})});null==K||K(a)}}},[P,O,K]),se=o.useCallback(function(n){var o;if(!O){var i=null===(o=P.value[n])||void 0===o?void 0:o.contentId;if(i){var l=e.__assign(e.__assign({},P),{value:P.value.map(function(n){return n.contentId===i?e.__assign(e.__assign({},n),{isApproved:!0}):n})});null==K||K(l)}}},[P,O,K]),re=null!=(null==P?void 0:P.big_enough)&&!Number.isNaN(P.big_enough)&&!!(null==P?void 0:P.big_enough_decision_factors);return n.jsxs("div",e.__assign({className:l.default.container,style:e.__assign({},null===(_=null===(c=null===(v=null==ee?void 0:ee.approvalScreen)||void 0===v?void 0:v.body)||void 0===c?void 0:c.contentSegment)||void 0===_?void 0:_.container)},{children:[O&&n.jsxs("button",e.__assign({onClick:oe,className:l.default.header,style:e.__assign({},null===(m=null===(p=null===(g=null==ee?void 0:ee.approvalScreen)||void 0===g?void 0:g.body)||void 0===p?void 0:p.contentSegment)||void 0===m?void 0:m.header)},{children:[n.jsxs("div",e.__assign({className:l.default.headerContent,style:e.__assign({},null===(h=null===(f=null===(S=null==ee?void 0:ee.approvalScreen)||void 0===S?void 0:S.body)||void 0===f?void 0:f.contentSegment)||void 0===h?void 0:h.headerContent)},{children:[n.jsxs("div",e.__assign({className:l.default.headerMeta,style:e.__assign({},null===(b=null===(y=null===(C=null==ee?void 0:ee.approvalScreen)||void 0===C?void 0:C.body)||void 0===y?void 0:y.contentSegment)||void 0===b?void 0:b.headerMeta)},{children:[n.jsx(t.BookmarkIcon,{size:16,color:(null===(x=null===(I=null===(j=null==ee?void 0:ee.approvalScreen)||void 0===j?void 0:j.body)||void 0===I?void 0:I.contentSegment)||void 0===x?void 0:x.bookMarkColor)||"#8C8C8C"}),n.jsx("h2",e.__assign({className:l.default.headerArtifactId,style:e.__assign({},null===(A=null===(q=null===(k=null==ee?void 0:ee.approvalScreen)||void 0===k?void 0:k.body)||void 0===q?void 0:q.contentSegment)||void 0===A?void 0:A.headerArtifactId)},{children:U}))]})),n.jsx("p",e.__assign({className:l.default.headerTitle,style:e.__assign({},null===(F=null===(B=null===(N=null==ee?void 0:ee.approvalScreen)||void 0===N?void 0:N.body)||void 0===B?void 0:B.contentSegment)||void 0===F?void 0:F.headerTitle)},{children:null==P?void 0:P.title}))]})),n.jsxs("div",e.__assign({className:l.default.headerToggle,style:e.__assign({},null===(T=null===(M=null===(E=null==ee?void 0:ee.approvalScreen)||void 0===E?void 0:E.body)||void 0===M?void 0:M.contentSegment)||void 0===T?void 0:T.headerToggle)},{children:[re&&n.jsx(u.BigEnoughPanel,{customIcons:ne,customStyles:null===(w=null==ee?void 0:ee.approvalScreen)||void 0===w?void 0:w.aiReasoningCitaionStyles,currentUserStory:P,panelStyles:null===(D=null==ee?void 0:ee.approvalScreen)||void 0===D?void 0:D.BigEnoughStyles}),Y?n.jsx(a.ChevronUpIcon,{size:16}):n.jsx(s.ChevronDownIcon,{size:16})]}))]})),Y&&n.jsx("div",e.__assign({className:l.default.contentWrapper,style:e.__assign({},null===(z=null===(W=null===(R=null==ee?void 0:ee.approvalScreen)||void 0===R?void 0:R.body)||void 0===W?void 0:W.contentSegment)||void 0===z?void 0:z.contentWrapper)},{children:Array.isArray(null==P?void 0:P.value)&&P.value.map(function(e,o){return n.jsx(i.ContentBlock,{segment:e,segmentIndex:o,isSubFeature:O,onSaveContent:O?le:te,onApproveContent:O?ie:se,onDeleteContent:O?ae:void 0,EditorComponent:L,ViewerComponent:Q},e.contentId)})}))]}))};exports.ContentSegment=d,exports.default=d;
2
2
  //# sourceMappingURL=ContentSegment.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ContentSegment-module_container__pZD9O{display:flex;flex-direction:column;font-family:Inter,sans-serif}.ContentSegment-module_header__zzh-M{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-left:none;border-right:none;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;justify-content:space-between;padding:1rem 2rem}.ContentSegment-module_headerContent__o77O4{display:flex;flex-direction:column;gap:.5rem}.ContentSegment-module_headerMeta__Iv4Wf{align-items:center;color:#8c8c8c;display:flex;flex-direction:row;gap:8px}.ContentSegment-module_headerArtifactId__Gr4B2{color:#6932e2;font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.ContentSegment-module_headerTitle__U7nsT{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.ContentSegment-module_headerToggle__45got{align-items:center;display:flex;justify-content:center}.ContentSegment-module_contentWrapper__eIUig{display:flex;flex-direction:column;gap:16px;padding:16px 32px}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={container:"ContentSegment-module_container__pZD9O",header:"ContentSegment-module_header__zzh-M",headerContent:"ContentSegment-module_headerContent__o77O4",headerMeta:"ContentSegment-module_headerMeta__Iv4Wf",headerArtifactId:"ContentSegment-module_headerArtifactId__Gr4B2",headerTitle:"ContentSegment-module_headerTitle__U7nsT",headerToggle:"ContentSegment-module_headerToggle__45got",contentWrapper:"ContentSegment-module_contentWrapper__eIUig"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ContentSegment-module_container__pZD9O{display:flex;flex-direction:column;font-family:Inter,sans-serif}.ContentSegment-module_header__zzh-M{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-left:none;border-right:none;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;justify-content:space-between;padding:1rem 2rem;position:relative}.ContentSegment-module_headerContent__o77O4{display:flex;flex-direction:column;gap:.5rem}.ContentSegment-module_headerMeta__Iv4Wf{align-items:center;color:#8c8c8c;display:flex;flex-direction:row;gap:8px}.ContentSegment-module_headerArtifactId__Gr4B2{color:#6932e2;font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.ContentSegment-module_headerTitle__U7nsT{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.ContentSegment-module_headerToggle__45got{align-items:center;display:flex;justify-content:center}.ContentSegment-module_contentWrapper__eIUig{display:flex;flex-direction:column;gap:16px;padding:16px 32px}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={container:"ContentSegment-module_container__pZD9O",header:"ContentSegment-module_header__zzh-M",headerContent:"ContentSegment-module_headerContent__o77O4",headerMeta:"ContentSegment-module_headerMeta__Iv4Wf",headerArtifactId:"ContentSegment-module_headerArtifactId__Gr4B2",headerTitle:"ContentSegment-module_headerTitle__U7nsT",headerToggle:"ContentSegment-module_headerToggle__45got",contentWrapper:"ContentSegment-module_contentWrapper__eIUig"};
2
2
  //# sourceMappingURL=ContentSegment.module.css.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),L=require("react/jsx-runtime");exports.default=function(){return L.jsxs("svg",C.__assign({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[L.jsx("path",{d:"M10.8096 12.8555C11.0888 12.836 11.3246 12.9608 11.4512 13.1611C11.5782 13.3624 11.5882 13.6294 11.4375 13.8779C11.4024 13.9357 11.3354 14.0024 11.2764 14.0566L11.1113 14.2021L10.7607 14.5176C10.5299 14.7245 10.2481 14.9858 10.002 15.1963C10.2077 15.3911 10.4291 15.5856 10.6533 15.7812C10.9052 16.001 11.1592 16.2245 11.3857 16.4531C11.5994 16.6688 11.5906 16.9886 11.4551 17.2197C11.3164 17.4559 11.0357 17.6188 10.6914 17.5186L10.6885 17.5176C10.633 17.4999 10.5795 17.4753 10.5303 17.4443V17.4434C10.4833 17.4137 10.404 17.3458 10.334 17.2832C10.2617 17.2186 10.1858 17.1481 10.1484 17.1143L9.48828 16.5195L8.8584 15.9531C8.77883 15.8817 8.66663 15.7933 8.57715 15.7012C8.48479 15.6061 8.39875 15.4904 8.36719 15.3467C8.31458 15.107 8.39 14.922 8.50977 14.7715C8.62264 14.6296 8.78695 14.5054 8.9082 14.3965L9.60449 13.7705L10.2041 13.2295V13.2285C10.365 13.0846 10.5203 12.8942 10.8027 12.8555L10.8096 12.8545V12.8555Z",fill:"#334155",stroke:"#334155",strokeWidth:.2}),L.jsx("path",{d:"M7.28906 0.103516L7.30664 0.110352C7.31137 0.112232 7.32771 0.116572 7.3584 0.12207C7.38663 0.127125 7.42076 0.131768 7.45703 0.136719C7.52617 0.146153 7.60855 0.156246 7.65625 0.166016C8.01783 0.240188 8.34486 0.345441 8.67773 0.513672C9.59238 0.975353 10.2862 1.78099 10.6074 2.75391V2.75488C10.925 3.72371 10.8449 4.77913 10.3838 5.68848C9.91702 6.60625 9.10478 7.30072 8.12598 7.62012V7.62109C7.15595 7.93322 6.10124 7.84643 5.19531 7.37988C4.34361 6.94236 3.68654 6.20519 3.34766 5.31445L3.28418 5.13379C2.97043 4.15791 3.05836 3.097 3.5293 2.18652L3.62305 2.01562C4.11066 1.1754 4.90035 0.548718 5.83496 0.266602L6.12305 0.191406C6.21958 0.170286 6.31704 0.152831 6.41699 0.139648C6.48067 0.13125 6.54743 0.122928 6.58887 0.108398L6.60449 0.103516H7.28906ZM6.89941 1.43066C5.50651 1.45785 4.39904 2.60905 4.42578 4.00195C4.45277 5.39462 5.60337 6.50183 6.99609 6.47559C8.38965 6.44928 9.4975 5.29783 9.4707 3.9043C9.44381 2.51094 8.29279 1.40351 6.89941 1.43066Z",fill:"#334155",stroke:"#334155",strokeWidth:.2}),L.jsx("path",{d:"M9.54297 9.09766C9.90059 9.09757 10.4355 9.08201 10.791 9.12793L10.79 9.12891C11.2851 9.19121 11.7626 9.35305 12.1924 9.60645C12.5582 9.82172 13.0161 10.1981 13.2529 10.5771C13.3111 10.6705 13.3286 10.7903 13.3232 10.8994C13.3178 11.0096 13.2888 11.1242 13.2373 11.2129L13.2363 11.2139C13.1451 11.3672 12.9972 11.4789 12.8242 11.5234H12.8232C12.6379 11.5699 12.4576 11.5293 12.3037 11.4346C12.2322 11.3906 12.1787 11.3347 12.1338 11.2822C12.0857 11.2261 12.0531 11.1813 12.0078 11.1348C11.7204 10.8376 11.3584 10.6231 10.96 10.5127C10.6186 10.4188 10.2964 10.4241 9.92773 10.4258C9.64074 10.4271 9.35277 10.4268 9.06641 10.4268H6.51855L4.53613 10.4258C4.3019 10.4258 4.03085 10.4189 3.75879 10.4238C3.48765 10.4288 3.22738 10.4455 3.02344 10.4932L3.02441 10.4941C2.42506 10.6367 1.90625 11.0111 1.58398 11.5361V11.5371C1.43014 11.7875 1.32539 12.0651 1.27441 12.3545C1.24969 12.4969 1.24029 12.6502 1.2373 12.8066V14.5322C1.23736 14.8389 1.4918 15.0968 1.79688 15.0986C2.92628 15.1051 4.06816 15.0959 5.19434 15.0957H6.29688C6.42694 15.0955 6.62043 15.0818 6.79395 15.0947C6.96965 15.1078 7.16134 15.1488 7.2959 15.2812C7.42526 15.4089 7.49798 15.5839 7.49805 15.7656C7.49793 15.9442 7.424 16.1149 7.29395 16.2373C7.06572 16.4542 6.84257 16.4286 6.60547 16.4287H0.607422C0.423619 16.4282 0.292906 16.3248 0.212891 16.1904C0.134546 16.0589 0.100586 15.8926 0.100586 15.7393V11.916C0.100586 11.6901 0.145836 11.4581 0.239258 11.25C0.298453 11.1183 0.3611 11.0012 0.43457 10.8779V10.877C0.926591 10.0527 1.72395 9.45607 2.65332 9.21582C3.03971 9.11531 3.33639 9.09934 3.6748 9.09766H9.54297Z",fill:"#334155",stroke:"#334155",strokeWidth:.2}),L.jsx("path",{d:"M14.0234 12.1172L14.1475 12.1562L14.1484 12.1572C14.3113 12.2285 14.4393 12.3615 14.5039 12.5273V12.5283C14.5531 12.6574 14.5505 12.7917 14.5322 12.9141C14.5143 13.0335 14.4783 13.1578 14.4551 13.2568L14.3125 13.8682L13.8242 15.9893L13.5342 17.2461C13.4872 17.4509 13.4407 17.7043 13.3643 17.9141C13.335 17.9942 13.2795 18.0637 13.2197 18.1182C13.1596 18.173 13.0893 18.2172 13.0225 18.2461L13.0205 18.2471C13.0068 18.2527 12.9865 18.2607 12.9658 18.2695C12.9556 18.2739 12.9461 18.2786 12.9385 18.2822C12.9324 18.2851 12.9289 18.2865 12.9277 18.2871L12.9023 18.3027H12.6357L12.6182 18.2959C12.4283 18.2175 12.2529 18.1372 12.1523 17.8994C12.0979 17.7706 12.0961 17.6427 12.1123 17.5244C12.1279 17.4107 12.163 17.2912 12.1855 17.1934L12.3311 16.5615L12.7871 14.5879L13.1025 13.2188L13.2285 12.6709C13.2811 12.4404 13.3967 12.2456 13.6436 12.1484L13.7686 12.1133C13.853 12.0983 13.9396 12.0995 14.0234 12.1172Z",fill:"#334155",stroke:"#334155",strokeWidth:.2}),L.jsx("path",{d:"M18.2998 15.332L18.2881 15.3545C18.2626 15.4011 18.2554 15.4311 18.2295 15.4902C18.2057 15.5445 18.173 15.6015 18.1113 15.6611V15.6621C17.9821 15.7867 17.845 15.9054 17.7148 16.0225L16.9805 16.6826L16.4629 17.1494C16.3779 17.2258 16.2755 17.3311 16.168 17.4092C16.0554 17.4908 15.9208 17.5555 15.7549 17.5527C15.2231 17.5436 14.9248 16.9531 15.2139 16.5166L15.2178 16.5117C15.2829 16.4258 15.3614 16.3501 15.4385 16.2812C15.5189 16.2095 15.5914 16.1497 15.6611 16.084H15.6621C15.8364 15.9196 16.0179 15.7601 16.1973 15.6025C16.3496 15.4687 16.4992 15.3344 16.6445 15.1982C16.4048 14.9875 16.1603 14.7595 15.9268 14.5537L15.9258 14.5527C15.7154 14.362 15.4931 14.171 15.2852 13.9697C15.0936 13.7843 15.0586 13.4902 15.1504 13.2607L15.208 13.1484C15.2761 13.0426 15.3744 12.9584 15.4912 12.9072L15.4922 12.9062C15.5638 12.8757 15.66 12.8573 15.751 12.8535C15.8395 12.8498 15.9429 12.8595 16.0205 12.9014C16.1298 12.9605 16.2451 13.0529 16.3496 13.1445C16.4517 13.234 16.5582 13.3364 16.6348 13.4053H16.6357L17.4209 14.1123L17.8691 14.5156C17.9766 14.6121 18.0576 14.6758 18.1191 14.7471C18.1859 14.8243 18.2329 14.9118 18.293 15.0615L18.2998 15.0801V15.332Z",fill:"#334155",stroke:"#334155",strokeWidth:.2})]}))};
2
+ //# sourceMappingURL=BigEnoughIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigEnoughIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("uuid"),r=function(t){if(!t)return[];return t.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(t){return t.trim()})};exports.cloneUserStories=function(t){return structuredClone(t)},exports.createUserStoriesForApproval=function(e){var n=function(e,u){var a=r(e.value).map(function(r){return{contentId:t.v4(),content:r,isApproved:!1}}),o={artifactId:e.artifactId,title:e.title,value:a,description:e.description,approval_status:u?void 0:"NOT_APPROVED"};return e.sub_features&&e.sub_features.length>0&&(o.sub_features=e.sub_features.map(function(t){return n(t,!0)})),o};return e.map(function(t){return n(t,!1)})},exports.splitByHeaders=r,exports.transformApprovalToUserStory=function(t){var r=function(t){var e,n=Array.isArray(t.value)?t.value.map(function(t){return t.content}).join("\n\n"):t.value,u={artifactId:t.artifactId,title:t.title,description:t.description,value:n,storyNumber:t.storyNumber};return(null===(e=t.sub_features)||void 0===e?void 0:e.length)&&(u.sub_features=t.sub_features.map(r)),u};return t.map(r)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("uuid"),e=function(t){if(!t)return[];return t.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(t){return t.trim()})};exports.cloneUserStories=function(t){return structuredClone(t)},exports.createUserStoriesForApproval=function(r){var n=function(r,u){var o=e(r.value).map(function(e){return{contentId:t.v4(),content:e,isApproved:!1}}),i={artifactId:r.artifactId,title:r.title,value:o,description:r.description,approval_status:u?void 0:"NOT_APPROVED",big_enough:null==r?void 0:r.big_enough,big_enough_decision_factors:null==r?void 0:r.big_enough_decision_factors};return r.sub_features&&r.sub_features.length>0&&(i.sub_features=r.sub_features.map(function(t){return n(t,!0)})),i};return r.map(function(t){return n(t,!1)})},exports.splitByHeaders=e,exports.transformApprovalToUserStory=function(t){var e=function(t){var r,n=Array.isArray(t.value)?t.value.map(function(t){return t.content}).join("\n\n"):t.value,u={artifactId:t.artifactId,title:t.title,description:t.description,value:n,storyNumber:t.storyNumber};return(null===(r=t.sub_features)||void 0===r?void 0:r.length)&&(u.sub_features=t.sub_features.map(e)),u};return t.map(e)};
2
2
  //# sourceMappingURL=userstory-approval-transform.utils.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ChevronUpIcon as c,ChevronDownIcon as d,ExternalLink as v,Download as y,Share2 as h,Copy as m,LoaderCircle as f,PencilIcon as p,ChevronUp as S,ChevronDown as C,Info as I,Bookmark as g}from"lucide-react";import w from"showdown";import{Menu as N,MenuItem as U,Tooltip as D}from"@mui/material";import{v4 as b}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as M}from"../../utils/user-story.utils.js";import A from"../../shared/AtomicButton.js";import T from"../RichTextEditor/RichTextEditor.js";import E from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as H}from"../RequirementAIWrapper/RequirementAIWrapper.js";function R(t){for(var n,r=[],o=/<learned>(.*?)<\/learned>/g,l=0,a=0;null!==(n=o.exec(t));){var s=n[1],u=n.index;u>l&&r.push(i("span",{children:t.slice(l,u)},"text-pre-".concat(a++))),r.push(i(D,e({title:s,placement:"top"},{children:i(I,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(b()))),l=o.lastIndex}return l<(null==t?void 0:t.length)&&r.push(i("span",{children:t.slice(l)},"text-post-".concat(a++))),r}var j=function(t){var n,r=t.displayName,l=H().customStyles,a=null===(n=null==l?void 0:l.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return o("div",e({className:x.displayName,style:null==a?void 0:a.wrapper},{children:[i(g,{className:x.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),o("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},L=function(c){var d,I,g=c.isUserStoryCurrentlyUpdated,D=c.artifactId,b=c.artifactTitleId,z=c.parentUserStory,P=c.currentUserStory,W=c.onUserStoryChange,O=c.parentIndex,V=c.currentIndex,_=c.enableDownload,q=c.isDiffEditReviewMode,Q=c.showUserStoryDiff,F=c.handleDownloadUserStory,G=c.handleOpenSendDialog,J=c.updateUserStoryArtifact,K=c.selectedArtifactId,X=c.isDisplayHighlightControl,Y=c.elementDisplayConfig,Z=H(),$=Z.searchQueryList,ee=Z.citations,te=Z.customStyles,ne=null==te?void 0:te.userStoryCardStyles,re=null===(d=null==te?void 0:te.userStoryScreenStyles)||void 0===d?void 0:d.userStoryContentStyles,oe=a(e(e({},structuredClone(P)),{value:B(P.value)||""})),ie=oe[0],le=oe[1],ae=a({userStory:!1}),se=ae[0],ue=ae[1],ce=H().userStory,de=a(""===O||K===P.artifactId),ve=de[0],ye=de[1],he=a(!1);he[0];var me=he[1],fe=a(null),pe=fe[0],Se=fe[1],Ce=a(!1),Ie=Ce[0],ge=Ce[1],we=s(null),Ne=a(!1);Ne[0];var Ue=Ne[1],De=s(null);u(function(){g&&ye(g)},[g]),u(function(){le(e(e({},structuredClone(P)),{value:B(P.value)||""}))},[P]),u(function(){$.length>0?ye(!0):K&&ye(K===P.artifactId)},[$,K,P.artifactId]);var be=function(){Se(null)},xe=function(){ye(function(e){return!e})};return o("div",e({className:x.card,style:null==ne?void 0:ne.cardStyle},{children:[o("div",e({className:x.titleSection,style:null==ne?void 0:ne.titleSection},{children:[o("div",e({className:x.titleRow,style:null==ne?void 0:ne.titleRow,onClick:xe},{children:[o("div",e({className:x.titleLeft,style:null==ne?void 0:ne.titleLeft,onMouseEnter:function(){return Ue(!0)},onMouseLeave:function(){return Ue(!1)}},{children:[i(j,{displayName:b}),i("h2",e({className:x.storyTitle,style:null==ne?void 0:ne.storyTitle},{children:R(P.title)}),P.artifactId)]})),o("div",e({className:x.titleActions,style:null==ne?void 0:ne.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[!se.userStory&&o(l,{children:[!1!==(null==Y?void 0:Y.showShareButton)&&i("button",e({className:x.iconButton,style:null==ne?void 0:ne.iconButton,onClick:function(e){Se(e.currentTarget)}},{children:i(v,{size:16})})),o(N,e({id:"user-story-share-menu",anchorEl:pe,open:!!pe,onClose:function(){return Se(null)},style:null==ne?void 0:ne.userStoryShareMenu},{children:[_&&i(U,e({style:null==ne?void 0:ne.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return me(!0),F?[4,Promise.all([F("pdf"),F("doc")])]:[2];case 1:return e.sent(),me(!1),[2]}})})}},{children:o("div",e({ref:we,className:x.menuItemContent,style:null==ne?void 0:ne.menuItemContent},{children:[i(y,{size:16,color:null==ne?void 0:ne.menuIconColor}),i("p",e({style:null==ne?void 0:ne.menuLabel},{children:"Download"}))]}))})),i(U,e({style:null==ne?void 0:ne.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){return t=P,z&&(t=e(e({},P),{value:"".concat(M(null==z?void 0:z.value,P.title)," \n").concat(P.value)})),null==G||G(!0,[t],P.artifactId),be(),[2]})})}},{children:o("div",e({style:null==ne?void 0:ne.menuItemContent,className:x.menuItemContentPadded},{children:[i(h,{size:16,color:null==ne?void 0:ne.menuIconColor}),i("p",e({style:null==ne?void 0:ne.menuLabel},{children:"Send"}))]}))})),i(U,e({style:null==ne?void 0:ne.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var e,t,n,o,i;return r(this,function(r){switch(r.label){case 0:e=new w.Converter,t=e.makeHtml(B(P.value)||P.value),n=function(e){var t=(new w.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(P.value)||P.value),o=new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return r.sent(),console.log("Copied User Story"),[3,5];case 3:return i=r.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return be(),[7];case 5:return[2]}})})}},{children:o("div",e({style:null==ne?void 0:ne.menuItemContent,className:x.menuItemContentPadded},{children:[i(m,{size:16,color:null==ne?void 0:ne.menuIconColor}),i("p",e({style:null==ne?void 0:ne.menuLabel},{children:"Copy"}))]}))}))]}))]}),se.userStory&&ve?i(A,{type:"outline",children:"Cancel",style:null==ne?void 0:ne.cancelButton,onClick:function(){var t;null===(t=De.current)||void 0===t||t.abort(),ue(function(t){return e(e({},t),{userStory:!1})})}}):i(l,{}),se.userStory&&ve?i(A,{type:"fill",children:Ie?o("span",e({className:x.savingSpinner},{children:[i(f,{className:x.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:Ie,style:Ie?null==ne?void 0:ne.savingButton:null==ne?void 0:ne.saveButton,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return ge(!0),"userStory"==="userStory"&&(W(ie),console.log("I am changing RTE editor values",ie)),[4,J(ee,ce,D,null===(t=De.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ue(function(t){return e(e({},t),{userStory:!1})}),ge(!1),[2]}})})}}):!q&&!Q&&ve&&!1!==(null==Y?void 0:Y.showEditButton)&&i("button",e({className:x.iconButton,style:null==ne?void 0:ne.editButton,onClick:function(){return ue(function(t){return e(e({},t),{userStory:!0})})}},{children:i(p,{color:null==ne?void 0:ne.pencilIconColor,size:16})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),xe()},style:null==ne?void 0:ne.chevronButton,className:x.chevronButton},{children:i(ve?S:C,{className:x.chevronIcon,color:null==ne?void 0:ne.chevronIconColor})}))]}))]})),i("div",{className:x.divider,style:null==ne?void 0:ne.dividerStyle})]})),ve&&i("div",e({className:x.cardContent,style:null==ne?void 0:ne.cardContentStyle},{children:o("div",e({className:x.contentInner,style:null==ne?void 0:ne.contentInner},{children:[o("div",e({className:x.descriptionSection,style:null==ne?void 0:ne.descriptionSection},{children:[i("div",{className:x.justifyBetween,style:null==ne?void 0:ne.justifyBetween}),se.userStory?i(T,{minHeight:"100%",height:"100%",type:"string",value:B(P.value)||"",handleUpdateState:function(t,n){var r=k(n);le(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:se.userStory?"edit":"readOnly"}):i(E,{showUserStoryDiff:Q,isParent:""===O,message:B(P.value)||"",artifactId:P.artifactId,customStyles:re,isDisplayHighlightControl:X})]})),null===(I=ie.sub_features)||void 0===I?void 0:I.map(function(n,r){return i(L,{artifactId:D,isUserStoryCurrentlyUpdated:g,artifactTitleId:"".concat(b,"-").concat(String.fromCharCode(65+r)),parentUserStory:P,parentIndex:"".concat(O).concat(O&&".").concat(V),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,r){var o=t([],P.sub_features||[],!0);o[n]=r,W(e(e({},P),{sub_features:o}))}(r,n)},enableDownload:!0,isDiffEditReviewMode:q,showUserStoryDiff:Q,updateUserStoryArtifact:J,handleDownloadUserStory:F,handleOpenSendDialog:G,isDisplayHighlightControl:X,elementDisplayConfig:Y},n.artifactId)})]}))}))]}))},z=function(n){var r=n.artifactTitleIDs,a=n.isDiffEditReviewMode,s=n.showUserStoryDiff,u=n.updateUserStoryArtifact,v=n.isUserStoryCurrentlyUpdated,y=n.artifactId,h=n.handleOpenSendDialog,m=n.handleDownloadUserStory,f=n.selectedArtifactId,p=n.isDisplayHighlightControl,S=n.elementDisplayConfig,C=H(),I=C.userStory,g=C.setUserStory,w=C.customStyles,N=C.searchQueryList,U=C.currentHighlightIndex,D=C.setCurrentHighlightIndex,b=null==w?void 0:w.userStoryCardStyles,B=0===U,k=U===N.length-1;return o("div",e({className:x.userStoryCardWrapper,style:p?e(e({},null==b?void 0:b.userStoryCardWrapper),{position:"relative"}):null==b?void 0:b.userStoryCardWrapper},{children:[p&&i(l,{children:N.length>0&&i("div",e({className:x.wrapper},{children:i("div",e({className:x.highlightNavigation},{children:o("div",e({className:x.navigationContainer},{children:[o("span",e({className:x.navCounter},{children:[U+1," of ",N.length]})),o("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){U>0&&D(function(e){return e-1})},className:x.navButton,disabled:B},{children:i(c,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){U<N.length-1&&D(function(e){return e+1})},className:x.navButton,disabled:k},{children:i(d,{size:20,className:x.navIcon})}))]}))]}))}))}))}),I.map(function(e,n){return i(L,{isUserStoryCurrentlyUpdated:v,artifactId:y,artifactTitleId:r[n]||"",currentUserStory:e,onUserStoryChange:function(e){g(function(r){return r[n]=e,t([],r,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:h,handleDownloadUserStory:m,selectedArtifactId:f,isDisplayHighlightControl:p,elementDisplayConfig:S},e.artifactId)})]}))};export{L as StoryCard,z as UserStoryCardWrapper,L as default,R as replaceLearnedTagsWithInfo};
1
+ import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as s,useRef as a,useEffect as u}from"react";import{ChevronUpIcon as c,ChevronDownIcon as d,ExternalLink as v,Download as y,Share2 as m,Copy as h,LoaderCircle as f,PencilIcon as p,ChevronUp as S,ChevronDown as C,Info as g,Bookmark as I}from"lucide-react";import w from"showdown";import{Menu as N,MenuItem as U,Tooltip as b}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 M}from"../../utils/user-story.utils.js";import A from"../../shared/AtomicButton.js";import E from"../RichTextEditor/RichTextEditor.js";import R from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as T}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as j}from"../story-screen/BigEnoughPanel.js";function H(t){for(var n,r=[],o=/<learned>(.*?)<\/learned>/g,l=0,s=0;null!==(n=o.exec(t));){var a=n[1],u=n.index;u>l&&r.push(i("span",{children:t.slice(l,u)},"text-pre-".concat(s++))),r.push(i(b,e({title:a,placement:"top"},{children:i(g,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(D()))),l=o.lastIndex}return l<(null==t?void 0:t.length)&&r.push(i("span",{children:t.slice(l)},"text-post-".concat(s++))),r}var L=function(t){var n,r=t.displayName,l=T().customStyles,s=null===(n=null==l?void 0:l.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return o("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}),o("span",e({style:null==s?void 0:s.label},{children:[r,":"]}))]}))},z=function(c){var d,g,I=c.isUserStoryCurrentlyUpdated,b=c.artifactId,D=c.artifactTitleId,P=c.parentUserStory,_=c.currentUserStory,W=c.onUserStoryChange,O=c.parentIndex,V=c.currentIndex,q=c.enableDownload,Q=c.isDiffEditReviewMode,F=c.showUserStoryDiff,G=c.handleDownloadUserStory,J=c.handleOpenSendDialog,K=c.updateUserStoryArtifact,X=c.selectedArtifactId,Y=c.isDisplayHighlightControl,Z=c.elementDisplayConfig,$=T(),ee=$.searchQueryList,te=$.citations,ne=$.customStyles,re=null==ne?void 0:ne.userStoryCardStyles,oe=null===(d=null==ne?void 0:ne.userStoryScreenStyles)||void 0===d?void 0:d.userStoryContentStyles,ie=s(e(e({},structuredClone(_)),{value:B(_.value)||""})),le=ie[0],se=ie[1],ae=s({userStory:!1}),ue=ae[0],ce=ae[1],de=T(),ve=de.userStory,ye=de.customIcons,me=s(""===O||X===_.artifactId),he=me[0],fe=me[1],pe=s(!1);pe[0];var Se=pe[1],Ce=s(null),ge=Ce[0],Ie=Ce[1],we=s(!1),Ne=we[0],Ue=we[1],be=a(null),De=s(!1);De[0];var xe=De[1],Be=a(null);u(function(){I&&fe(I)},[I]),u(function(){se(e(e({},structuredClone(_)),{value:B(_.value)||""}))},[_]),u(function(){ee.length>0?fe(!0):X&&fe(X===_.artifactId)},[ee,X,_.artifactId]);var ke=function(){Ie(null)},Me=function(){fe(function(e){return!e})};return o("div",e({className:x.card,style:null==re?void 0:re.cardStyle},{children:[o("div",e({className:x.titleSection,style:null==re?void 0:re.titleSection},{children:[o("div",e({className:x.titleRow,style:null==re?void 0:re.titleRow,onClick:Me},{children:[o("div",e({className:x.titleLeft,style:null==re?void 0:re.titleLeft,onMouseEnter:function(){return xe(!0)},onMouseLeave:function(){return xe(!1)}},{children:[i(L,{displayName:D}),i("h2",e({className:x.storyTitle,style:null==re?void 0:re.storyTitle},{children:H(_.title)}),_.artifactId)]})),o("div",e({className:x.titleActions,style:null==re?void 0:re.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(null==_?void 0:_.big_enough)&&(null==_?void 0:_.big_enough_decision_factors)&&i(j,{customIcons:ye,customStyles:null==re?void 0:re.aiReasoningCitaionStyles,currentUserStory:_,panelStyles:null==re?void 0:re.BigEnoughStyles}),!ue.userStory&&o(l,{children:[!1!==(null==Z?void 0:Z.showShareButton)&&i("button",e({className:x.iconButton,style:null==re?void 0:re.iconButton,onClick:function(e){Ie(e.currentTarget)}},{children:i(v,{size:16})})),o(N,e({id:"user-story-share-menu",anchorEl:ge,open:!!ge,onClose:function(){return Ie(null)},style:null==re?void 0:re.userStoryShareMenu},{children:[q&&i(U,e({style:null==re?void 0:re.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return Se(!0),G?[4,Promise.all([G("pdf"),G("doc")])]:[2];case 1:return e.sent(),Se(!1),[2]}})})}},{children:o("div",e({ref:be,className:x.menuItemContent,style:null==re?void 0:re.menuItemContent},{children:[i(y,{size:16,color:null==re?void 0:re.menuIconColor}),i("p",e({style:null==re?void 0:re.menuLabel},{children:"Download"}))]}))})),i(U,e({style:null==re?void 0:re.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){return t=_,P&&(t=e(e({},_),{value:"".concat(M(null==P?void 0:P.value,_.title)," \n").concat(_.value)})),null==J||J(!0,[t],_.artifactId),ke(),[2]})})}},{children:o("div",e({style:null==re?void 0:re.menuItemContent,className:x.menuItemContentPadded},{children:[i(m,{size:16,color:null==re?void 0:re.menuIconColor}),i("p",e({style:null==re?void 0:re.menuLabel},{children:"Send"}))]}))})),i(U,e({style:null==re?void 0:re.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var e,t,n,o,i;return r(this,function(r){switch(r.label){case 0:e=new w.Converter,t=e.makeHtml(B(_.value)||_.value),n=function(e){var t=(new w.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(_.value)||_.value),o=new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return r.sent(),console.log("Copied User Story"),[3,5];case 3:return i=r.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return ke(),[7];case 5:return[2]}})})}},{children:o("div",e({style:null==re?void 0:re.menuItemContent,className:x.menuItemContentPadded},{children:[i(h,{size:16,color:null==re?void 0:re.menuIconColor}),i("p",e({style:null==re?void 0:re.menuLabel},{children:"Copy"}))]}))}))]}))]}),ue.userStory&&he?i(A,{type:"outline",children:"Cancel",style:null==re?void 0:re.cancelButton,onClick:function(){var t;null===(t=Be.current)||void 0===t||t.abort(),ce(function(t){return e(e({},t),{userStory:!1})})}}):i(l,{}),ue.userStory&&he?i(A,{type:"fill",children:Ne?o("span",e({className:x.savingSpinner},{children:[i(f,{className:x.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:Ne,style:Ne?null==re?void 0:re.savingButton:null==re?void 0:re.saveButton,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return Ue(!0),"userStory"==="userStory"&&(W(le),console.log("I am changing RTE editor values",le)),[4,K(te,ve,b,null===(t=Be.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ce(function(t){return e(e({},t),{userStory:!1})}),Ue(!1),[2]}})})}}):!Q&&!F&&he&&!1!==(null==Z?void 0:Z.showEditButton)&&i("button",e({className:x.iconButton,style:null==re?void 0:re.editButton,onClick:function(){return ce(function(t){return e(e({},t),{userStory:!0})})}},{children:i(p,{color:null==re?void 0:re.pencilIconColor,size:16})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),Me()},style:null==re?void 0:re.chevronButton,className:x.chevronButton},{children:i(he?S:C,{className:x.chevronIcon,color:null==re?void 0:re.chevronIconColor})}))]}))]})),i("div",{className:x.divider,style:null==re?void 0:re.dividerStyle})]})),he&&i("div",e({className:x.cardContent,style:null==re?void 0:re.cardContentStyle},{children:o("div",e({className:x.contentInner,style:null==re?void 0:re.contentInner},{children:[o("div",e({className:x.descriptionSection,style:null==re?void 0:re.descriptionSection},{children:[i("div",{className:x.justifyBetween,style:null==re?void 0:re.justifyBetween}),ue.userStory?i(E,{minHeight:"100%",height:"100%",type:"string",value:B(_.value)||"",handleUpdateState:function(t,n){var r=k(n);se(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ue.userStory?"edit":"readOnly"}):i(R,{showUserStoryDiff:F,isParent:""===O,message:B(_.value)||"",artifactId:_.artifactId,customStyles:oe,isDisplayHighlightControl:Y})]})),null===(g=le.sub_features)||void 0===g?void 0:g.map(function(n,r){return i(z,{artifactId:b,isUserStoryCurrentlyUpdated:I,artifactTitleId:"".concat(D,"-").concat(String.fromCharCode(65+r)),parentUserStory:_,parentIndex:"".concat(O).concat(O&&".").concat(V),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,r){var o=t([],_.sub_features||[],!0);o[n]=r,W(e(e({},_),{sub_features:o}))}(r,n)},enableDownload:!0,isDiffEditReviewMode:Q,showUserStoryDiff:F,updateUserStoryArtifact:K,handleDownloadUserStory:G,handleOpenSendDialog:J,isDisplayHighlightControl:Y,elementDisplayConfig:Z},n.artifactId)})]}))}))]}))},P=function(n){var r=n.artifactTitleIDs,s=n.isDiffEditReviewMode,a=n.showUserStoryDiff,u=n.updateUserStoryArtifact,v=n.isUserStoryCurrentlyUpdated,y=n.artifactId,m=n.handleOpenSendDialog,h=n.handleDownloadUserStory,f=n.selectedArtifactId,p=n.isDisplayHighlightControl,S=n.elementDisplayConfig,C=T(),g=C.userStory,I=C.setUserStory,w=C.customStyles,N=C.searchQueryList,U=C.currentHighlightIndex,b=C.setCurrentHighlightIndex,D=null==w?void 0:w.userStoryCardStyles,B=0===U,k=U===N.length-1;return o("div",e({className:x.userStoryCardWrapper,style:p?e(e({},null==D?void 0:D.userStoryCardWrapper),{position:"relative"}):null==D?void 0:D.userStoryCardWrapper},{children:[p&&i(l,{children:N.length>0&&i("div",e({className:x.wrapper},{children:i("div",e({className:x.highlightNavigation},{children:o("div",e({className:x.navigationContainer},{children:[o("span",e({className:x.navCounter},{children:[U+1," of ",N.length]})),o("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){U>0&&b(function(e){return e-1})},className:x.navButton,disabled:B},{children:i(c,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){U<N.length-1&&b(function(e){return e+1})},className:x.navButton,disabled:k},{children:i(d,{size:20,className:x.navIcon})}))]}))]}))}))}))}),g.map(function(e,n){return i(z,{isUserStoryCurrentlyUpdated:v,artifactId:y,artifactTitleId:r[n]||"",currentUserStory:e,onUserStoryChange:function(e){I(function(r){return r[n]=e,t([],r,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:a,updateUserStoryArtifact:u,handleOpenSendDialog:m,handleDownloadUserStory:h,selectedArtifactId:f,isDisplayHighlightControl:p,elementDisplayConfig:S},e.artifactId)})]}))};export{z as StoryCard,P as UserStoryCardWrapper,z as default,H as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +1,2 @@
1
- var e={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
1
+ var e={card:"UserStoryCard-module_card__9pErS",titleSection:"UserStoryCard-module_titleSection__pGbpL",titleRow:"UserStoryCard-module_titleRow__TyEN9",titleLeft:"UserStoryCard-module_titleLeft__fzF6u",titleActions:"UserStoryCard-module_titleActions__Dabx1",divider:"UserStoryCard-module_divider__xG-FC",displayName:"UserStoryCard-module_displayName__Jj-HK",displayNameIcon:"UserStoryCard-module_displayNameIcon__-SCM3",storyTitle:"UserStoryCard-module_storyTitle__FDX4p",iconButton:"UserStoryCard-module_iconButton__DkfRA",chevronButton:"UserStoryCard-module_chevronButton__nxxYC",chevronIcon:"UserStoryCard-module_chevronIcon__Azswy",cardContent:"UserStoryCard-module_cardContent__rR2g3",contentInner:"UserStoryCard-module_contentInner__AYQbu",descriptionSection:"UserStoryCard-module_descriptionSection__5j6cg",justifyBetween:"UserStoryCard-module_justifyBetween__cD-EG",savingSpinner:"UserStoryCard-module_savingSpinner__UmbEq",spinAnimation:"UserStoryCard-module_spinAnimation__INSou",spin:"UserStoryCard-module_spin__afcZ6",menuItemContent:"UserStoryCard-module_menuItemContent__U-ZxP",wrapper:"UserStoryCard-module_wrapper__ahzRY",highlightNavigation:"UserStoryCard-module_highlightNavigation__vv8RW",navigationContainer:"UserStoryCard-module_navigationContainer__2UcOj",navButton:"UserStoryCard-module_navButton__EWoVi",navIcon:"UserStoryCard-module_navIcon__3ZSIH",navCounter:"UserStoryCard-module_navCounter__sIIeS",navButtons:"UserStoryCard-module_navButtons__6oLaN",menuItemContentPadded:"UserStoryCard-module_menuItemContentPadded__w6udq",userStoryCardWrapper:"UserStoryCard-module_userStoryCardWrapper__0gC-E"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryCard-module_card__9pErS{border:1px solid #e5e5e5;border-radius:.75rem;display:flex;flex:1;flex-direction:column;margin-bottom:auto;margin-left:auto;margin-right:auto;position:relative;width:100%}.UserStoryCard-module_titleSection__pGbpL{cursor:pointer;padding:.5rem 1rem;width:100%}.UserStoryCard-module_titleRow__TyEN9{align-items:center;display:flex;justify-content:space-between;margin-top:.5rem;position:relative;width:100%}.UserStoryCard-module_titleLeft__fzF6u{align-items:center;display:flex;font-family:Inter,sans-serif;gap:.5rem;max-width:66.666%}.UserStoryCard-module_titleActions__Dabx1{align-items:center;display:flex;gap:.5rem;width:fit-content}.UserStoryCard-module_divider__xG-FC{background-color:#ffffff4d;border-radius:9999px;height:.25rem;width:4rem}.UserStoryCard-module_displayName__Jj-HK{align-items:center;color:#4b5563;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem}.UserStoryCard-module_displayNameIcon__-SCM3{height:1rem;width:1rem}.UserStoryCard-module_storyTitle__FDX4p{color:#374151;flex:1;font-size:1rem;font-weight:600}.UserStoryCard-module_iconButton__DkfRA{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;padding:.4rem .8rem}.UserStoryCard-module_iconButton__DkfRA:hover{background-color:#f9fafb}.UserStoryCard-module_chevronButton__nxxYC{background:none;border:none;cursor:pointer;margin-left:.5rem;padding:.25rem}.UserStoryCard-module_chevronIcon__Azswy{color:#4b5563;height:1.5rem;width:1.5rem}.UserStoryCard-module_cardContent__rR2g3{border-top:1px solid #e5e5e5;max-height:fit-content;opacity:1;padding:1.5rem 2rem 2rem;transition:all .3s ease-in-out;width:100%}.UserStoryCard-module_contentInner__AYQbu{display:flex;flex-direction:column;gap:2.5rem;width:100%}.UserStoryCard-module_descriptionSection__5j6cg{align-items:flex-end;display:flex;flex-direction:column;gap:1rem;width:100%}.UserStoryCard-module_justifyBetween__cD-EG{display:flex;justify-content:space-between}.UserStoryCard-module_savingSpinner__UmbEq{align-items:center;color:#fff;display:flex;flex-direction:row;gap:.5rem}.UserStoryCard-module_spinAnimation__INSou{animation:UserStoryCard-module_spin__afcZ6 1s linear infinite}@keyframes UserStoryCard-module_spin__afcZ6{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.UserStoryCard-module_menuItemContent__U-ZxP{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryCard-module_wrapper__ahzRY{background-color:#fff;border-bottom:1px solid hsla(0,0%,50%,.126);display:flex;justify-content:flex-end;margin-bottom:4px;padding:5px 10px 5px 0;position:sticky;top:0;width:100%;z-index:1000}.UserStoryCard-module_highlightNavigation__vv8RW{width:max-content}.UserStoryCard-module_navigationContainer__2UcOj{align-items:center;border:1px solid hsla(0,0%,50%,.126);border-radius:10px;display:inline-flex;gap:8px;padding:6px 8px}.UserStoryCard-module_navButton__EWoVi{align-items:center;background:none;border:none;color:#374151;cursor:pointer;display:flex;justify-content:center;padding:2px;transition:color .15s ease}.UserStoryCard-module_navIcon__3ZSIH{height:20px;width:20px}.UserStoryCard-module_navCounter__sIIeS{color:#4b5563;font-size:17px;font-weight:500;letter-spacing:.01em;min-width:28px;text-align:center}.UserStoryCard-module_navButtons__6oLaN{display:flex;gap:0}.UserStoryCard-module_navButton__EWoVi:disabled{cursor:not-allowed;opacity:.4}.UserStoryCard-module_menuItemContentPadded__w6udq{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}.UserStoryCard-module_userStoryCardWrapper__0gC-E{width:100%}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=UserStoryCard.module.css.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as o}from"tslib";import{jsxs as n,jsx as e,Fragment as i}from"react/jsx-runtime";import{useState as r,useRef as t}from"react";import l from"../../icons/BigEnoughIcon.js";import s from"../ai-reasoning/AiReasoningCitationContent.js";import{useRequirementAI as c}from"../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./BigEnoughPanel.module.css.js";var u=function(u){var d,p,g,v,m=u.customIcons,f=u.customStyles,_=u.currentUserStory,h=u.panelStyles,b=u.showPanel,y=void 0!==b&&b;c().searchQueryList;var S=r(!!y),P=S[0],k=S[1],w=t(null);return n("div",o({onClick:function(o){return o.stopPropagation()}},{children:[!y&&e("button",o({ref:w,className:a.developerEffortButton,style:null==h?void 0:h.buttonStyle,onClick:function(o){o.stopPropagation(),k(function(o){return!o})}},{children:e(l,{})})),P&&n(i,{children:[e("div",{style:y?null==h?void 0:h.showPanelBackdropStyles:null==h?void 0:h.backdropStyle,onClick:function(o){o.stopPropagation(),k(!1)},onWheel:function(o){return o.stopPropagation()}}),e("div",o({className:a.dropdown,style:o(o({},null==h?void 0:h.dropdownStyle),y?null==h?void 0:h.showPanelDropdownStyle:{})},{children:e(s,{cognitiveDecisionHeaders:{mainHeader:"Feature Implementation Score - ".concat((null==_?void 0:_.big_enough)||0)},big_enough_block:null===(d=_.big_enough_decision_factors)||void 0===d?void 0:d.big_enough_block,aiReason:{relevance_score:(null===(p=null==_?void 0:_.big_enough_decision_factors)||void 0===p?void 0:p.relevance_score)||0,reason:(null===(g=null==_?void 0:_.big_enough_decision_factors)||void 0===g?void 0:g.score_reason)||"",gap:(null===(v=null==_?void 0:_.big_enough_decision_factors)||void 0===v?void 0:v.gap)||"",id:"big-enough-cd"},customIcons:m,customStyles:f})}))]})]}))};export{u as BigEnoughPanel};
2
+ //# sourceMappingURL=BigEnoughPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigEnoughPanel.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e={developerEffortButton:"BigEnoughPanel-module_developerEffortButton__KLQ-Z",dropdown:"BigEnoughPanel-module_dropdown__mlBHL"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".BigEnoughPanel-module_developerEffortButton__KLQ-Z{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;padding:.4rem .8rem}.BigEnoughPanel-module_dropdown__mlBHL{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;left:20px;margin-top:1.25rem;position:absolute;top:100%;width:91.666667%;z-index:40}"));const d=document.head||document.getElementsByTagName("head")[0]||document.documentElement;d&&d.appendChild(e)}();export{e as default};
2
+ //# sourceMappingURL=BigEnoughPanel.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigEnoughPanel.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as a,useMemo as l,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as A}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as b}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as T}from"./UserStoryApprovalContext.js";var E={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},N={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},U=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,A=r.callbacks,b=void 0===A?{}:A,I=r.labels,C=void 0===I?{}:I,T=r.isDisabled,U=void 0!==T&&T,x=r.children,F=r.classNames,k=r.selectedArtifactId,D=d(),j=D.userStory,B=D.customStyles,R=e(e({},E),y),P=e(e({},N),C),W=n([]),M=W[0],V=W[1],_=n(""),q=_[0],O=_[1],z=n(""),L=z[0],H=z[1],G=n(!1),Y=G[0],J=G[1],K=n(!0),Q=K[0],X=K[1],Z=i(void 0),$=a(function(e,t,o,r){b.onShowNotification?b.onShowNotification(e,t,o,r):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(o))},[b]),ee=a(function(e){b.onScrollToElement?b.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[b]),te=l(function(){var e=M.findIndex(function(e){return e.artifactId===q});return e>=0?e:0},[M,q]),oe=M[te];s(function(){Z.current=oe},[oe]),s(function(){var e;if(null==j?void 0:j.length){null===(e=b.onInitialize)||void 0===e||e.call(b),1===j.length&&X(!1),j.length>0&&!q&&O(k||j[0].artifactId);var t=c(v(j));V(t)}},[j,k]),s(function(){k&&k!==q&&O(k)},[k,q]),s(function(){if(oe){var e=p(oe,"");H(e)}},[null==oe?void 0:oe.artifactId]);var re=a(function(e,o){V(function(r){var n=t([],r,!0);if("APPROVED"===o.approval_status&&"APPROVED"!==r[e].approval_status){var i=u(r,o.artifactId);i&&O(i)}return n[e]=o,n})},[]),ne=a(function(e){var t=Z.current;if(t){var o=p(t,e);"NA"!==o&&(H(""),setTimeout(function(){H(o)},0))}},[]);m({userStoryForApproval:M,selectedUserStoryForApproval:oe,userStoryIndex:te,callbacks:b,labels:P,onSaveUserStory:re});var ie=e({height:R.containerHeight},R.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),ae={userStoryForApproval:M,setUserStoryForApproval:V,selectedStoryArtifactId:q,setSelectedStoryArtifactId:O,selectedUserStoryIndex:te,selectedUserStoryForApproval:oe,currentContentId:L,setCurrentContentId:H,isEditingSegment:Y,setIsEditingSegment:J,isSidebarExpanded:Q,setIsSidebarExpanded:X,artifactTitleIds:S,config:R,labels:P,callbacks:b,isDisabled:U,handleSaveUserStory:re,handleUpdateContentId:ne,showNotification:$,scrollToElement:ee};return o(w.Provider,e({value:ae},{children:o("div",e({className:"".concat(g.container," ").concat((null==F?void 0:F.container)||""),style:e(e({},ie),null===(f=null==B?void 0:B.approvalScreen)||void 0===f?void 0:f.wrapperContainer)},{children:x}))}))},{Sidebar:function(e){var t=e.Component,r=e.config,n=e.className,i=T(),a=i.isSidebarExpanded,l=i.selectedStoryArtifactId,s=i.setSelectedStoryArtifactId,d=i.userStoryForApproval,c=i.isEditingSegment,v=i.artifactTitleIds;return t?o(t,{isSidebarExpanded:a,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:v}):o(b,{config:r,className:n})},SidebarToggle:function(t){var r=t.OpenIcon,n=t.CloseIcon,i=t.className,a=void 0===i?"":i,l=T(),s=l.isSidebarExpanded,d=l.setIsSidebarExpanded,c=r||I,v=n||C;return o("div",e({className:"".concat(g.sidebarToggleWrapper," ").concat(a)},{children:o("button",e({onClick:function(){return d(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:o(s?v:c,{})}))}))},Content:function(t){var n,i,l,s,c,v,p,u,m,S,b,I,C,w,E,N,U,x,F,k,D,j=t.children,B=t.ButtonComponent,R=t.hideApproveAll,P=void 0!==R&&R,W=t.pageTitle,M=void 0===W?"Review Generated Requirements":W,V=t.pageDescription,_=void 0===V?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":V,q=T(),O=q.selectedUserStoryForApproval,z=q.selectedUserStoryIndex,L=q.artifactTitleIds,H=q.labels,G=q.config,Y=q.isDisabled,J=q.isEditingSegment,K=q.handleSaveUserStory,Q=q.setCurrentContentId,X=q.showNotification,Z=d().customStyles,$=a(function(){if(O)if(J)X("warn","Warning!",H.unsavedChangesWarning,3e3);else{var e=f(O);K(z,e),Q("")}},[O,z,J,H,K,Q,X]);if(!O)return null;var ee=L[z]||"",te="APPROVED"===O.approval_status;return r("div",e({className:g.content,style:e({},null===(i=null===(n=null==Z?void 0:Z.approvalScreen)||void 0===n?void 0:n.content)||void 0===i?void 0:i.content),"data-lsc-ui-page-title":M,"data-lsc-ui-page-description":_},{children:[r("div",e({className:g.header,style:e({},null===(c=null===(s=null===(l=null==Z?void 0:Z.approvalScreen)||void 0===l?void 0:l.body)||void 0===s?void 0:s.contentSegment)||void 0===c?void 0:c.header)},{children:[r("div",e({className:g.headerLeft,style:e({},null===(p=null===(v=null==Z?void 0:Z.approvalScreen)||void 0===v?void 0:v.content)||void 0===p?void 0:p.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(S=null===(m=null===(u=null==Z?void 0:Z.approvalScreen)||void 0===u?void 0:u.body)||void 0===m?void 0:m.contentSegment)||void 0===S?void 0:S.headerMeta)},{children:[o(A,{size:16,color:(null===(C=null===(I=null===(b=null==Z?void 0:Z.approvalScreen)||void 0===b?void 0:b.body)||void 0===I?void 0:I.contentSegment)||void 0===C?void 0:C.bookMarkColor)||"#8C8C8C"}),o("h2",e({className:g.headerArtifactId,style:e({},null===(N=null===(E=null===(w=null==Z?void 0:Z.approvalScreen)||void 0===w?void 0:w.body)||void 0===E?void 0:E.contentSegment)||void 0===N?void 0:N.headerArtifactId)},{children:ee}))]})),o("p",e({className:g.headerTitle,style:e({},null===(F=null===(x=null===(U=null==Z?void 0:Z.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerTitle)},{children:null==O?void 0:O.title}))]})),!P&&G.showApproveAllButton&&o("div",e({className:g.headerRight},{children:te?o(h,{status:"APPROVED",label:H.approved}):B?o(B,e({type:"fill",onClick:$,isDisable:Y,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:H.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:r("div",e({className:g.approveAllContent},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))})):r("button",e({onClick:$,disabled:Y,className:g.approveAllButtonDefault,style:e({},null===(D=null===(k=null==Z?void 0:Z.approvalScreen)||void 0===k?void 0:k.content)||void 0===D?void 0:D.approveAllButtonDefault)},{children:[o(y,{size:16,color:"white"}),o("span",{children:H.approveAll})]}))}))]})),j]}))},Body:function(t){var n,i,l,s=t.children,c=t.EditorComponent,v=t.ViewerComponent,p=T(),u=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,m=p.artifactTitleIds,h=p.handleSaveUserStory,y=d().customStyles,A=a(function(e){h(f,e)},[f,h]),b=a(function(t,o){var r;if(u){var n=e(e({},u),{sub_features:null===(r=u.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===t?o:e})});h(f,n)}},[u,f,h]),I=a(function(t){var o;if(u){var r=e(e({},u),{sub_features:null===(o=u.sub_features)||void 0===o?void 0:o.filter(function(e,o){return o!==t})});h(f,r)}},[u,f,h]);if(!u)return null;var C=m[f]||"";return r("div",e({className:g.body,style:e({},null===(i=null===(n=null==y?void 0:y.approvalScreen)||void 0===n?void 0:n.body)||void 0===i?void 0:i.container)},{children:[o(S,{userStoryForApproval:u,artifactTitleId:C,onSaveMainStoryContent:A,EditorComponent:c,ViewerComponent:v}),null===(l=u.sub_features)||void 0===l?void 0:l.map(function(e,t){return o(S,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+t)),isSubFeature:!0,subFeatureIndex:t,onSaveSubFeature:b,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),s]}))}});export{U as default};
1
+ import{__assign as e,__spreadArray as o}from"tslib";import{jsx as t,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as l,useMemo as a,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as b}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as A}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as E}from"./UserStoryApprovalContext.js";import{BigEnoughPanel as N}from"../story-screen/BigEnoughPanel.js";import T from"../../icons/BigEnoughIcon.js";var U={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},x={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},F=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,b=r.callbacks,A=void 0===b?{}:b,I=r.labels,C=void 0===I?{}:I,E=r.isDisabled,N=void 0!==E&&E,T=r.children,F=r.classNames,k=r.selectedArtifactId,j=d(),B=j.userStory,D=j.customStyles,_=e(e({},U),y),P=e(e({},x),C),R=n([]),W=R[0],M=R[1],V=n(""),q=V[0],O=V[1],z=n(""),L=z[0],H=z[1],G=n(!1),Y=G[0],J=G[1],K=n(!0),Q=K[0],X=K[1],Z=i(void 0),$=l(function(e,o,t,r){A.onShowNotification?A.onShowNotification(e,o,t,r):console.log("[".concat(e.toUpperCase(),"] ").concat(o,": ").concat(t))},[A]),ee=l(function(e){A.onScrollToElement?A.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[A]),oe=a(function(){var e=W.findIndex(function(e){return e.artifactId===q});return e>=0?e:0},[W,q]),te=W[oe];s(function(){Z.current=te},[te]),s(function(){var e;if(null==B?void 0:B.length){null===(e=A.onInitialize)||void 0===e||e.call(A),1===B.length&&X(!1),B.length>0&&!q&&O(k||B[0].artifactId);var o=c(v(B));M(o)}},[B,k]),s(function(){k&&k!==q&&O(k)},[k,q]),s(function(){if(te){var e=p(te,"");H(e)}},[null==te?void 0:te.artifactId]);var re=l(function(e,t){M(function(r){var n=o([],r,!0);if("APPROVED"===t.approval_status&&"APPROVED"!==r[e].approval_status){var i=u(r,t.artifactId);i&&O(i)}return n[e]=t,n})},[]),ne=l(function(e){var o=Z.current;if(o){var t=p(o,e);"NA"!==t&&(H(""),setTimeout(function(){H(t)},0))}},[]);m({userStoryForApproval:W,selectedUserStoryForApproval:te,userStoryIndex:oe,callbacks:A,labels:P,onSaveUserStory:re});var ie=e({height:_.containerHeight},_.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),le={userStoryForApproval:W,setUserStoryForApproval:M,selectedStoryArtifactId:q,setSelectedStoryArtifactId:O,selectedUserStoryIndex:oe,selectedUserStoryForApproval:te,currentContentId:L,setCurrentContentId:H,isEditingSegment:Y,setIsEditingSegment:J,isSidebarExpanded:Q,setIsSidebarExpanded:X,artifactTitleIds:S,config:_,labels:P,callbacks:A,isDisabled:N,handleSaveUserStory:re,handleUpdateContentId:ne,showNotification:$,scrollToElement:ee};return t(w.Provider,e({value:le},{children:t("div",e({className:"".concat(g.container," ").concat((null==F?void 0:F.container)||""),style:e(e({},ie),null===(f=null==D?void 0:D.approvalScreen)||void 0===f?void 0:f.wrapperContainer)},{children:T}))}))},{Sidebar:function(e){var o=e.Component,r=e.config,n=e.className,i=E(),l=i.isSidebarExpanded,a=i.selectedStoryArtifactId,s=i.setSelectedStoryArtifactId,d=i.userStoryForApproval,c=i.isEditingSegment,v=i.artifactTitleIds;return o?t(o,{isSidebarExpanded:l,selectedStoryArtifactId:a,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:v}):t(A,{config:r,className:n})},SidebarToggle:function(o){var r=o.OpenIcon,n=o.CloseIcon,i=o.className,l=void 0===i?"":i,a=E(),s=a.isSidebarExpanded,d=a.setIsSidebarExpanded,c=r||I,v=n||C;return t("div",e({className:"".concat(g.sidebarToggleWrapper," ").concat(l)},{children:t("button",e({onClick:function(){return d(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:t(s?v:c,{})}))}))},Content:function(o){var i,a,s,c,v,p,u,m,S,A,I,C,w,U,x,F,k,j,B,D,_,P,R,W,M,V=o.children,q=o.ButtonComponent,O=o.hideApproveAll,z=void 0!==O&&O,L=o.pageTitle,H=void 0===L?"Review Generated Requirements":L,G=o.pageDescription,Y=void 0===G?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":G,J=E(),K=J.selectedUserStoryForApproval,Q=J.selectedUserStoryIndex,X=J.artifactTitleIds,Z=J.labels,$=J.config,ee=J.isDisabled,oe=J.isEditingSegment,te=J.handleSaveUserStory,re=J.setCurrentContentId,ne=J.showNotification,ie=d(),le=ie.customStyles,ae=ie.customIcons,se=n(!1),de=se[0],ce=se[1],ve=l(function(){if(K)if(oe)ne("warn","Warning!",Z.unsavedChangesWarning,3e3);else{var e=f(K);te(Q,e),re("")}},[K,Q,oe,Z,te,re,ne]);if(!K)return null;var pe=X[Q]||"",ue="APPROVED"===K.approval_status,fe=null!=(null==K?void 0:K.big_enough)&&!Number.isNaN(K.big_enough)&&!!(null==K?void 0:K.big_enough_decision_factors);return r("div",e({className:g.content,style:e({},null===(a=null===(i=null==le?void 0:le.approvalScreen)||void 0===i?void 0:i.content)||void 0===a?void 0:a.content),"data-lsc-ui-page-title":H,"data-lsc-ui-page-description":Y},{children:[r("div",e({className:g.header,style:e({},null===(v=null===(c=null===(s=null==le?void 0:le.approvalScreen)||void 0===s?void 0:s.body)||void 0===c?void 0:c.contentSegment)||void 0===v?void 0:v.header)},{children:[r("div",e({className:g.headerLeft,style:e({},null===(u=null===(p=null==le?void 0:le.approvalScreen)||void 0===p?void 0:p.content)||void 0===u?void 0:u.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(A=null===(S=null===(m=null==le?void 0:le.approvalScreen)||void 0===m?void 0:m.body)||void 0===S?void 0:S.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[t(b,{size:16,color:(null===(w=null===(C=null===(I=null==le?void 0:le.approvalScreen)||void 0===I?void 0:I.body)||void 0===C?void 0:C.contentSegment)||void 0===w?void 0:w.bookMarkColor)||"#8C8C8C"}),t("h2",e({className:g.headerArtifactId,style:e({},null===(F=null===(x=null===(U=null==le?void 0:le.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerArtifactId)},{children:pe}))]})),t("p",e({className:g.headerTitle,style:e({},null===(B=null===(j=null===(k=null==le?void 0:le.approvalScreen)||void 0===k?void 0:k.body)||void 0===j?void 0:j.contentSegment)||void 0===B?void 0:B.headerTitle)},{children:null==K?void 0:K.title}))]})),r("div",e({className:"flex items-center gap-2 "},{children:[fe&&t("button",e({className:g.developerEffortButton,style:null===(_=null===(D=null==le?void 0:le.approvalScreen)||void 0===D?void 0:D.BigEnoughStyles)||void 0===_?void 0:_.buttonStyle,onClick:function(){return ce(!de)}},{children:t(T,{})})),!z&&$.showApproveAllButton&&t("div",e({className:g.headerRight},{children:ue?t(h,{status:"APPROVED",label:Z.approved}):q?t(q,e({type:"fill",onClick:ve,isDisable:ee,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:Z.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:r("div",e({className:g.approveAllContent},{children:[t(y,{size:16,color:"white"}),t("span",{children:Z.approveAll})]}))})):r("button",e({onClick:ve,disabled:ee,className:g.approveAllButtonDefault,style:e({},null===(R=null===(P=null==le?void 0:le.approvalScreen)||void 0===P?void 0:P.content)||void 0===R?void 0:R.approveAllButtonDefault)},{children:[t(y,{size:16,color:"white"}),t("span",{children:Z.approveAll})]}))}))]}))]})),de&&fe&&t("div",e({className:g.bigEnoughWrapper},{children:t(N,{customIcons:ae,customStyles:null===(W=null==le?void 0:le.approvalScreen)||void 0===W?void 0:W.aiReasoningCitaionStyles,currentUserStory:K,panelStyles:null===(M=null==le?void 0:le.approvalScreen)||void 0===M?void 0:M.BigEnoughStyles,showPanel:de})})),V]}))},Body:function(o){var n,i,a,s=o.children,c=o.EditorComponent,v=o.ViewerComponent,p=E(),u=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,m=p.artifactTitleIds,h=p.handleSaveUserStory,y=d().customStyles,b=l(function(e){h(f,e)},[f,h]),A=l(function(o,t){var r;if(u){var n=e(e({},u),{sub_features:null===(r=u.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===o?t:e})});h(f,n)}},[u,f,h]),I=l(function(o){var t;if(u){var r=e(e({},u),{sub_features:null===(t=u.sub_features)||void 0===t?void 0:t.filter(function(e,t){return t!==o})});h(f,r)}},[u,f,h]);if(!u)return null;var C=m[f]||"";return r("div",e({className:g.body,style:e({},null===(i=null===(n=null==y?void 0:y.approvalScreen)||void 0===n?void 0:n.body)||void 0===i?void 0:i.container)},{children:[t(S,{userStoryForApproval:u,artifactTitleId:C,onSaveMainStoryContent:b,EditorComponent:c,ViewerComponent:v}),null===(a=u.sub_features)||void 0===a?void 0:a.map(function(e,o){return t(S,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+o)),isSubFeature:!0,subFeatureIndex:o,onSaveSubFeature:A,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),s]}))}});export{F as default};
2
2
  //# sourceMappingURL=UserStoryApprovalScreen.js.map
@@ -1,2 +1,2 @@
1
- var e={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
1
+ var e={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;position:relative;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=UserStoryApprovalScreen.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as o,jsx as n}from"react/jsx-runtime";import{useState as l,useCallback as t}from"react";import{ContentBlock as i}from"../ContentBlock/ContentBlock.js";import r from"./ContentSegment.module.css.js";import{ChevronUpIcon as d}from"../../../../icons/ChevronUpIcon.js";import{BookmarkIcon as v}from"../../../../icons/BookmarkIcon.js";import{ChevronDownIcon as a}from"../../../../icons/ChevronDownIcon.js";import{useRequirementAI as u}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";var c=function(c){var p,m,s,f,S,h,y,C,b,g,I,A,N,j,k,F,T,x,M,W,w,B,D,q,z,E,R,V=c.userStoryForApproval,U=c.artifactTitleId,G=c.isSubFeature,H=void 0!==G&&G,J=c.subFeatureIndex,K=c.onSaveSubFeature,L=c.onDeleteSubFeature,O=c.onSaveMainStoryContent,P=c.EditorComponent,Q=c.ViewerComponent,X=l(!0),Y=X[0],Z=X[1],$=u().customStyles,_=t(function(){Z(function(e){return!e})},[]),ee=t(function(o){if(void 0!==J){var n=e(e({},V),{value:V.value.map(function(n,l){return l===o?e(e({},n),{isApproved:!0}):n})});null==K||K(J,n)}},[V,J,K]),oe=t(function(o,n){if(void 0!==J){var l=e(e({},V),{value:V.value.map(function(l,t){return t===o?e(e({},l),{content:n}):l})});null==K||K(J,l)}},[V,J,K]),ne=t(function(o){if(void 0!==J){var n=e(e({},V),{value:V.value.filter(function(e,n){return n!==o})});0!==n.value.length?null==K||K(J,n):null==L||L(J)}},[V,J,K,L]),le=t(function(o,n){var l;if(!H){var t=null===(l=V.value[o])||void 0===l?void 0:l.contentId;if(t){var i=e(e({},V),{value:V.value.map(function(o){return o.contentId===t?e(e({},o),{content:n}):o})});null==O||O(i)}}},[V,H,O]),te=t(function(o){var n;if(!H){var l=null===(n=V.value[o])||void 0===n?void 0:n.contentId;if(l){var t=e(e({},V),{value:V.value.map(function(o){return o.contentId===l?e(e({},o),{isApproved:!0}):o})});null==O||O(t)}}},[V,H,O]);return o("div",e({className:r.container,style:e({},null===(s=null===(m=null===(p=null==$?void 0:$.approvalScreen)||void 0===p?void 0:p.body)||void 0===m?void 0:m.contentSegment)||void 0===s?void 0:s.container)},{children:[H&&o("button",e({onClick:_,className:r.header,style:e({},null===(h=null===(S=null===(f=null==$?void 0:$.approvalScreen)||void 0===f?void 0:f.body)||void 0===S?void 0:S.contentSegment)||void 0===h?void 0:h.header)},{children:[o("div",e({className:r.headerContent,style:e({},null===(b=null===(C=null===(y=null==$?void 0:$.approvalScreen)||void 0===y?void 0:y.body)||void 0===C?void 0:C.contentSegment)||void 0===b?void 0:b.headerContent)},{children:[o("div",e({className:r.headerMeta,style:e({},null===(A=null===(I=null===(g=null==$?void 0:$.approvalScreen)||void 0===g?void 0:g.body)||void 0===I?void 0:I.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[n(v,{size:16,color:(null===(k=null===(j=null===(N=null==$?void 0:$.approvalScreen)||void 0===N?void 0:N.body)||void 0===j?void 0:j.contentSegment)||void 0===k?void 0:k.bookMarkColor)||"#8C8C8C"}),n("h2",e({className:r.headerArtifactId,style:e({},null===(x=null===(T=null===(F=null==$?void 0:$.approvalScreen)||void 0===F?void 0:F.body)||void 0===T?void 0:T.contentSegment)||void 0===x?void 0:x.headerArtifactId)},{children:U}))]})),n("p",e({className:r.headerTitle,style:e({},null===(w=null===(W=null===(M=null==$?void 0:$.approvalScreen)||void 0===M?void 0:M.body)||void 0===W?void 0:W.contentSegment)||void 0===w?void 0:w.headerTitle)},{children:null==V?void 0:V.title}))]})),n("div",e({className:r.headerToggle,style:e({},null===(q=null===(D=null===(B=null==$?void 0:$.approvalScreen)||void 0===B?void 0:B.body)||void 0===D?void 0:D.contentSegment)||void 0===q?void 0:q.headerToggle)},{children:n(Y?d:a,{size:16})}))]})),Y&&n("div",e({className:r.contentWrapper,style:e({},null===(R=null===(E=null===(z=null==$?void 0:$.approvalScreen)||void 0===z?void 0:z.body)||void 0===E?void 0:E.contentSegment)||void 0===R?void 0:R.contentWrapper)},{children:Array.isArray(null==V?void 0:V.value)&&V.value.map(function(e,o){return n(i,{segment:e,segmentIndex:o,isSubFeature:H,onSaveContent:H?oe:le,onApproveContent:H?ee:te,onDeleteContent:H?ne:void 0,EditorComponent:P,ViewerComponent:Q},e.contentId)})}))]}))};export{c as ContentSegment,c as default};
1
+ import{__assign as o}from"tslib";import{jsxs as e,jsx as n}from"react/jsx-runtime";import{useState as l,useCallback as i}from"react";import{ContentBlock as t}from"../ContentBlock/ContentBlock.js";import r from"./ContentSegment.module.css.js";import{ChevronUpIcon as d}from"../../../../icons/ChevronUpIcon.js";import{BookmarkIcon as v}from"../../../../icons/BookmarkIcon.js";import{ChevronDownIcon as a}from"../../../../icons/ChevronDownIcon.js";import{useRequirementAI as u}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as c}from"../../../story-screen/BigEnoughPanel.js";var s=function(s){var p,m,f,S,h,g,y,b,C,I,N,A,j,k,F,B,T,_,x,E,M,W,w,D,R,q,z,U,V,P=s.userStoryForApproval,G=s.artifactTitleId,H=s.isSubFeature,J=void 0!==H&&H,K=s.subFeatureIndex,L=s.onSaveSubFeature,O=s.onDeleteSubFeature,Q=s.onSaveMainStoryContent,X=s.EditorComponent,Y=s.ViewerComponent,Z=l(!0),$=Z[0],oo=Z[1],eo=u(),no=eo.customStyles,lo=eo.customIcons,io=i(function(){oo(function(o){return!o})},[]),to=i(function(e){if(void 0!==K){var n=o(o({},P),{value:P.value.map(function(n,l){return l===e?o(o({},n),{isApproved:!0}):n})});null==L||L(K,n)}},[P,K,L]),ro=i(function(e,n){if(void 0!==K){var l=o(o({},P),{value:P.value.map(function(l,i){return i===e?o(o({},l),{content:n}):l})});null==L||L(K,l)}},[P,K,L]),vo=i(function(e){if(void 0!==K){var n=o(o({},P),{value:P.value.filter(function(o,n){return n!==e})});0!==n.value.length?null==L||L(K,n):null==O||O(K)}},[P,K,L,O]),ao=i(function(e,n){var l;if(!J){var i=null===(l=P.value[e])||void 0===l?void 0:l.contentId;if(i){var t=o(o({},P),{value:P.value.map(function(e){return e.contentId===i?o(o({},e),{content:n}):e})});null==Q||Q(t)}}},[P,J,Q]),uo=i(function(e){var n;if(!J){var l=null===(n=P.value[e])||void 0===n?void 0:n.contentId;if(l){var i=o(o({},P),{value:P.value.map(function(e){return e.contentId===l?o(o({},e),{isApproved:!0}):e})});null==Q||Q(i)}}},[P,J,Q]),co=null!=(null==P?void 0:P.big_enough)&&!Number.isNaN(P.big_enough)&&!!(null==P?void 0:P.big_enough_decision_factors);return e("div",o({className:r.container,style:o({},null===(f=null===(m=null===(p=null==no?void 0:no.approvalScreen)||void 0===p?void 0:p.body)||void 0===m?void 0:m.contentSegment)||void 0===f?void 0:f.container)},{children:[J&&e("button",o({onClick:io,className:r.header,style:o({},null===(g=null===(h=null===(S=null==no?void 0:no.approvalScreen)||void 0===S?void 0:S.body)||void 0===h?void 0:h.contentSegment)||void 0===g?void 0:g.header)},{children:[e("div",o({className:r.headerContent,style:o({},null===(C=null===(b=null===(y=null==no?void 0:no.approvalScreen)||void 0===y?void 0:y.body)||void 0===b?void 0:b.contentSegment)||void 0===C?void 0:C.headerContent)},{children:[e("div",o({className:r.headerMeta,style:o({},null===(A=null===(N=null===(I=null==no?void 0:no.approvalScreen)||void 0===I?void 0:I.body)||void 0===N?void 0:N.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[n(v,{size:16,color:(null===(F=null===(k=null===(j=null==no?void 0:no.approvalScreen)||void 0===j?void 0:j.body)||void 0===k?void 0:k.contentSegment)||void 0===F?void 0:F.bookMarkColor)||"#8C8C8C"}),n("h2",o({className:r.headerArtifactId,style:o({},null===(_=null===(T=null===(B=null==no?void 0:no.approvalScreen)||void 0===B?void 0:B.body)||void 0===T?void 0:T.contentSegment)||void 0===_?void 0:_.headerArtifactId)},{children:G}))]})),n("p",o({className:r.headerTitle,style:o({},null===(M=null===(E=null===(x=null==no?void 0:no.approvalScreen)||void 0===x?void 0:x.body)||void 0===E?void 0:E.contentSegment)||void 0===M?void 0:M.headerTitle)},{children:null==P?void 0:P.title}))]})),e("div",o({className:r.headerToggle,style:o({},null===(D=null===(w=null===(W=null==no?void 0:no.approvalScreen)||void 0===W?void 0:W.body)||void 0===w?void 0:w.contentSegment)||void 0===D?void 0:D.headerToggle)},{children:[co&&n(c,{customIcons:lo,customStyles:null===(R=null==no?void 0:no.approvalScreen)||void 0===R?void 0:R.aiReasoningCitaionStyles,currentUserStory:P,panelStyles:null===(q=null==no?void 0:no.approvalScreen)||void 0===q?void 0:q.BigEnoughStyles}),n($?d:a,{size:16})]}))]})),$&&n("div",o({className:r.contentWrapper,style:o({},null===(V=null===(U=null===(z=null==no?void 0:no.approvalScreen)||void 0===z?void 0:z.body)||void 0===U?void 0:U.contentSegment)||void 0===V?void 0:V.contentWrapper)},{children:Array.isArray(null==P?void 0:P.value)&&P.value.map(function(o,e){return n(t,{segment:o,segmentIndex:e,isSubFeature:J,onSaveContent:J?ro:ao,onApproveContent:J?to:uo,onDeleteContent:J?vo:void 0,EditorComponent:X,ViewerComponent:Y},o.contentId)})}))]}))};export{s as ContentSegment,s as default};
2
2
  //# sourceMappingURL=ContentSegment.js.map
@@ -1,2 +1,2 @@
1
- var e={container:"ContentSegment-module_container__pZD9O",header:"ContentSegment-module_header__zzh-M",headerContent:"ContentSegment-module_headerContent__o77O4",headerMeta:"ContentSegment-module_headerMeta__Iv4Wf",headerArtifactId:"ContentSegment-module_headerArtifactId__Gr4B2",headerTitle:"ContentSegment-module_headerTitle__U7nsT",headerToggle:"ContentSegment-module_headerToggle__45got",contentWrapper:"ContentSegment-module_contentWrapper__eIUig"};!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(".ContentSegment-module_container__pZD9O{display:flex;flex-direction:column;font-family:Inter,sans-serif}.ContentSegment-module_header__zzh-M{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-left:none;border-right:none;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;justify-content:space-between;padding:1rem 2rem}.ContentSegment-module_headerContent__o77O4{display:flex;flex-direction:column;gap:.5rem}.ContentSegment-module_headerMeta__Iv4Wf{align-items:center;color:#8c8c8c;display:flex;flex-direction:row;gap:8px}.ContentSegment-module_headerArtifactId__Gr4B2{color:#6932e2;font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.ContentSegment-module_headerTitle__U7nsT{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.ContentSegment-module_headerToggle__45got{align-items:center;display:flex;justify-content:center}.ContentSegment-module_contentWrapper__eIUig{display:flex;flex-direction:column;gap:16px;padding:16px 32px}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
1
+ var e={container:"ContentSegment-module_container__pZD9O",header:"ContentSegment-module_header__zzh-M",headerContent:"ContentSegment-module_headerContent__o77O4",headerMeta:"ContentSegment-module_headerMeta__Iv4Wf",headerArtifactId:"ContentSegment-module_headerArtifactId__Gr4B2",headerTitle:"ContentSegment-module_headerTitle__U7nsT",headerToggle:"ContentSegment-module_headerToggle__45got",contentWrapper:"ContentSegment-module_contentWrapper__eIUig"};!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(".ContentSegment-module_container__pZD9O{display:flex;flex-direction:column;font-family:Inter,sans-serif}.ContentSegment-module_header__zzh-M{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-left:none;border-right:none;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;justify-content:space-between;padding:1rem 2rem;position:relative}.ContentSegment-module_headerContent__o77O4{display:flex;flex-direction:column;gap:.5rem}.ContentSegment-module_headerMeta__Iv4Wf{align-items:center;color:#8c8c8c;display:flex;flex-direction:row;gap:8px}.ContentSegment-module_headerArtifactId__Gr4B2{color:#6932e2;font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.ContentSegment-module_headerTitle__U7nsT{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.ContentSegment-module_headerToggle__45got{align-items:center;display:flex;justify-content:center}.ContentSegment-module_contentWrapper__eIUig{display:flex;flex-direction:column;gap:16px;padding:16px 32px}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=ContentSegment.module.css.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as C}from"tslib";import{jsxs as L,jsx as t}from"react/jsx-runtime";var r=function(){return L("svg",C({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M10.8096 12.8555C11.0888 12.836 11.3246 12.9608 11.4512 13.1611C11.5782 13.3624 11.5882 13.6294 11.4375 13.8779C11.4024 13.9357 11.3354 14.0024 11.2764 14.0566L11.1113 14.2021L10.7607 14.5176C10.5299 14.7245 10.2481 14.9858 10.002 15.1963C10.2077 15.3911 10.4291 15.5856 10.6533 15.7812C10.9052 16.001 11.1592 16.2245 11.3857 16.4531C11.5994 16.6688 11.5906 16.9886 11.4551 17.2197C11.3164 17.4559 11.0357 17.6188 10.6914 17.5186L10.6885 17.5176C10.633 17.4999 10.5795 17.4753 10.5303 17.4443V17.4434C10.4833 17.4137 10.404 17.3458 10.334 17.2832C10.2617 17.2186 10.1858 17.1481 10.1484 17.1143L9.48828 16.5195L8.8584 15.9531C8.77883 15.8817 8.66663 15.7933 8.57715 15.7012C8.48479 15.6061 8.39875 15.4904 8.36719 15.3467C8.31458 15.107 8.39 14.922 8.50977 14.7715C8.62264 14.6296 8.78695 14.5054 8.9082 14.3965L9.60449 13.7705L10.2041 13.2295V13.2285C10.365 13.0846 10.5203 12.8942 10.8027 12.8555L10.8096 12.8545V12.8555Z",fill:"#334155",stroke:"#334155",strokeWidth:.2}),t("path",{d:"M7.28906 0.103516L7.30664 0.110352C7.31137 0.112232 7.32771 0.116572 7.3584 0.12207C7.38663 0.127125 7.42076 0.131768 7.45703 0.136719C7.52617 0.146153 7.60855 0.156246 7.65625 0.166016C8.01783 0.240188 8.34486 0.345441 8.67773 0.513672C9.59238 0.975353 10.2862 1.78099 10.6074 2.75391V2.75488C10.925 3.72371 10.8449 4.77913 10.3838 5.68848C9.91702 6.60625 9.10478 7.30072 8.12598 7.62012V7.62109C7.15595 7.93322 6.10124 7.84643 5.19531 7.37988C4.34361 6.94236 3.68654 6.20519 3.34766 5.31445L3.28418 5.13379C2.97043 4.15791 3.05836 3.097 3.5293 2.18652L3.62305 2.01562C4.11066 1.1754 4.90035 0.548718 5.83496 0.266602L6.12305 0.191406C6.21958 0.170286 6.31704 0.152831 6.41699 0.139648C6.48067 0.13125 6.54743 0.122928 6.58887 0.108398L6.60449 0.103516H7.28906ZM6.89941 1.43066C5.50651 1.45785 4.39904 2.60905 4.42578 4.00195C4.45277 5.39462 5.60337 6.50183 6.99609 6.47559C8.38965 6.44928 9.4975 5.29783 9.4707 3.9043C9.44381 2.51094 8.29279 1.40351 6.89941 1.43066Z",fill:"#334155",stroke:"#334155",strokeWidth:.2}),t("path",{d:"M9.54297 9.09766C9.90059 9.09757 10.4355 9.08201 10.791 9.12793L10.79 9.12891C11.2851 9.19121 11.7626 9.35305 12.1924 9.60645C12.5582 9.82172 13.0161 10.1981 13.2529 10.5771C13.3111 10.6705 13.3286 10.7903 13.3232 10.8994C13.3178 11.0096 13.2888 11.1242 13.2373 11.2129L13.2363 11.2139C13.1451 11.3672 12.9972 11.4789 12.8242 11.5234H12.8232C12.6379 11.5699 12.4576 11.5293 12.3037 11.4346C12.2322 11.3906 12.1787 11.3347 12.1338 11.2822C12.0857 11.2261 12.0531 11.1813 12.0078 11.1348C11.7204 10.8376 11.3584 10.6231 10.96 10.5127C10.6186 10.4188 10.2964 10.4241 9.92773 10.4258C9.64074 10.4271 9.35277 10.4268 9.06641 10.4268H6.51855L4.53613 10.4258C4.3019 10.4258 4.03085 10.4189 3.75879 10.4238C3.48765 10.4288 3.22738 10.4455 3.02344 10.4932L3.02441 10.4941C2.42506 10.6367 1.90625 11.0111 1.58398 11.5361V11.5371C1.43014 11.7875 1.32539 12.0651 1.27441 12.3545C1.24969 12.4969 1.24029 12.6502 1.2373 12.8066V14.5322C1.23736 14.8389 1.4918 15.0968 1.79688 15.0986C2.92628 15.1051 4.06816 15.0959 5.19434 15.0957H6.29688C6.42694 15.0955 6.62043 15.0818 6.79395 15.0947C6.96965 15.1078 7.16134 15.1488 7.2959 15.2812C7.42526 15.4089 7.49798 15.5839 7.49805 15.7656C7.49793 15.9442 7.424 16.1149 7.29395 16.2373C7.06572 16.4542 6.84257 16.4286 6.60547 16.4287H0.607422C0.423619 16.4282 0.292906 16.3248 0.212891 16.1904C0.134546 16.0589 0.100586 15.8926 0.100586 15.7393V11.916C0.100586 11.6901 0.145836 11.4581 0.239258 11.25C0.298453 11.1183 0.3611 11.0012 0.43457 10.8779V10.877C0.926591 10.0527 1.72395 9.45607 2.65332 9.21582C3.03971 9.11531 3.33639 9.09934 3.6748 9.09766H9.54297Z",fill:"#334155",stroke:"#334155",strokeWidth:.2}),t("path",{d:"M14.0234 12.1172L14.1475 12.1562L14.1484 12.1572C14.3113 12.2285 14.4393 12.3615 14.5039 12.5273V12.5283C14.5531 12.6574 14.5505 12.7917 14.5322 12.9141C14.5143 13.0335 14.4783 13.1578 14.4551 13.2568L14.3125 13.8682L13.8242 15.9893L13.5342 17.2461C13.4872 17.4509 13.4407 17.7043 13.3643 17.9141C13.335 17.9942 13.2795 18.0637 13.2197 18.1182C13.1596 18.173 13.0893 18.2172 13.0225 18.2461L13.0205 18.2471C13.0068 18.2527 12.9865 18.2607 12.9658 18.2695C12.9556 18.2739 12.9461 18.2786 12.9385 18.2822C12.9324 18.2851 12.9289 18.2865 12.9277 18.2871L12.9023 18.3027H12.6357L12.6182 18.2959C12.4283 18.2175 12.2529 18.1372 12.1523 17.8994C12.0979 17.7706 12.0961 17.6427 12.1123 17.5244C12.1279 17.4107 12.163 17.2912 12.1855 17.1934L12.3311 16.5615L12.7871 14.5879L13.1025 13.2188L13.2285 12.6709C13.2811 12.4404 13.3967 12.2456 13.6436 12.1484L13.7686 12.1133C13.853 12.0983 13.9396 12.0995 14.0234 12.1172Z",fill:"#334155",stroke:"#334155",strokeWidth:.2}),t("path",{d:"M18.2998 15.332L18.2881 15.3545C18.2626 15.4011 18.2554 15.4311 18.2295 15.4902C18.2057 15.5445 18.173 15.6015 18.1113 15.6611V15.6621C17.9821 15.7867 17.845 15.9054 17.7148 16.0225L16.9805 16.6826L16.4629 17.1494C16.3779 17.2258 16.2755 17.3311 16.168 17.4092C16.0554 17.4908 15.9208 17.5555 15.7549 17.5527C15.2231 17.5436 14.9248 16.9531 15.2139 16.5166L15.2178 16.5117C15.2829 16.4258 15.3614 16.3501 15.4385 16.2812C15.5189 16.2095 15.5914 16.1497 15.6611 16.084H15.6621C15.8364 15.9196 16.0179 15.7601 16.1973 15.6025C16.3496 15.4687 16.4992 15.3344 16.6445 15.1982C16.4048 14.9875 16.1603 14.7595 15.9268 14.5537L15.9258 14.5527C15.7154 14.362 15.4931 14.171 15.2852 13.9697C15.0936 13.7843 15.0586 13.4902 15.1504 13.2607L15.208 13.1484C15.2761 13.0426 15.3744 12.9584 15.4912 12.9072L15.4922 12.9062C15.5638 12.8757 15.66 12.8573 15.751 12.8535C15.8395 12.8498 15.9429 12.8595 16.0205 12.9014C16.1298 12.9605 16.2451 13.0529 16.3496 13.1445C16.4517 13.234 16.5582 13.3364 16.6348 13.4053H16.6357L17.4209 14.1123L17.8691 14.5156C17.9766 14.6121 18.0576 14.6758 18.1191 14.7471C18.1859 14.8243 18.2329 14.9118 18.293 15.0615L18.2998 15.0801V15.332Z",fill:"#334155",stroke:"#334155",strokeWidth:.2})]}))};export{r as default};
2
+ //# sourceMappingURL=BigEnoughIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigEnoughIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{v4 as t}from"uuid";var r=function(t){if(!t)return[];return t.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(t){return t.trim()})},e=function(e){var n=function(e,u){var a=r(e.value).map(function(r){return{contentId:t(),content:r,isApproved:!1}}),i={artifactId:e.artifactId,title:e.title,value:a,description:e.description,approval_status:u?void 0:"NOT_APPROVED"};return e.sub_features&&e.sub_features.length>0&&(i.sub_features=e.sub_features.map(function(t){return n(t,!0)})),i};return e.map(function(t){return n(t,!1)})},n=function(t){var r=function(t){var e,n=Array.isArray(t.value)?t.value.map(function(t){return t.content}).join("\n\n"):t.value,u={artifactId:t.artifactId,title:t.title,description:t.description,value:n,storyNumber:t.storyNumber};return(null===(e=t.sub_features)||void 0===e?void 0:e.length)&&(u.sub_features=t.sub_features.map(r)),u};return t.map(r)},u=function(t){return structuredClone(t)};export{u as cloneUserStories,e as createUserStoriesForApproval,r as splitByHeaders,n as transformApprovalToUserStory};
1
+ import{v4 as t}from"uuid";var r=function(t){if(!t)return[];return t.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(t){return t.trim()})},n=function(n){var e=function(n,u){var i=r(n.value).map(function(r){return{contentId:t(),content:r,isApproved:!1}}),o={artifactId:n.artifactId,title:n.title,value:i,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};return n.sub_features&&n.sub_features.length>0&&(o.sub_features=n.sub_features.map(function(t){return e(t,!0)})),o};return n.map(function(t){return e(t,!1)})},e=function(t){var r=function(t){var n,e=Array.isArray(t.value)?t.value.map(function(t){return t.content}).join("\n\n"):t.value,u={artifactId:t.artifactId,title:t.title,description:t.description,value:e,storyNumber:t.storyNumber};return(null===(n=t.sub_features)||void 0===n?void 0:n.length)&&(u.sub_features=t.sub_features.map(r)),u};return t.map(r)},u=function(t){return structuredClone(t)};export{u as cloneUserStories,n as createUserStoriesForApproval,r as splitByHeaders,e as transformApprovalToUserStory};
2
2
  //# sourceMappingURL=userstory-approval-transform.utils.js.map
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import { IOrganizedFiles, IUserStory } from "../../interfaces/userstory.interface";
3
- import { AiReasonAccordionStyles, AiReasoningAccordionStates, AiReasoningContentStyles, AppModCitationStyleGroup, CitationStyleGroup, FileCitationStyles, ImageCitationStyles, MarkdownCustomStyles, RCACitationStyleGroup, ReadFileCitationStyleGroup, StormeeCitationStyles, TAIReasoning, UserStoryIcons, WaveformCitationStyles } from "../../types/aiReasoning.type";
3
+ import { AiReasonAccordionStyles, AiReasoningAccordionStates, AiReasoningContentStyles, AiReasoningCustomStyles, AppModCitationStyleGroup, CitationStyleGroup, FileCitationStyles, ImageCitationStyles, MarkdownCustomStyles, RCACitationStyleGroup, ReadFileCitationStyleGroup, StormeeCitationStyles, TAIReasoning, UserStoryIcons, WaveformCitationStyles } from "../../types/aiReasoning.type";
4
4
  import { CitationConfig, IChatHistoryItem, UserStoryCitations } from "../../interfaces/citation.interface";
5
5
  import { UpdatedAnimatedContentStyles, UpdatedAnimatedContentIcons } from "../../shared/UpdatedAnimationContent";
6
6
  import { GapSidebarCustomStyles, GapSidebarCustomIcons } from "../GapRiskSidebar/types/gapRiskSidebar.types";
@@ -121,6 +121,8 @@ export interface RequirementAICustomStyles {
121
121
  };
122
122
  approvalScreen?: {
123
123
  wrapperContainer?: React.CSSProperties;
124
+ aiReasoningCitaionStyles?: AiReasoningCustomStyles;
125
+ BigEnoughStyles: BigEnoughPanelCustomStyles;
124
126
  sidebar?: {
125
127
  container?: React.CSSProperties;
126
128
  innerContainer?: React.CSSProperties;
@@ -228,6 +230,8 @@ export interface RequirementAICustomStyles {
228
230
  contentInner?: React.CSSProperties;
229
231
  descriptionSection?: React.CSSProperties;
230
232
  justifyBetween?: React.CSSProperties;
233
+ aiReasoningCitaionStyles?: AiReasoningContentStyles;
234
+ BigEnoughStyles: BigEnoughPanelCustomStyles;
231
235
  };
232
236
  gapSidebar?: GapSidebarCustomStyles;
233
237
  PartialRequirementContentStyles?: {
@@ -248,6 +252,15 @@ export interface RequirementAICustomStyles {
248
252
  };
249
253
  UserStoryWithCitationCustomStyles?: UserStoryWithCitationCustomStyles;
250
254
  }
255
+ export interface BigEnoughPanelCustomStyles {
256
+ containerStyle?: React.CSSProperties;
257
+ buttonStyle?: React.CSSProperties;
258
+ backdropStyle?: React.CSSProperties;
259
+ dropdownStyle?: React.CSSProperties;
260
+ showPanelDropdownStyle?: React.CSSProperties;
261
+ showPanelBackdropStyles?: React.CSSProperties;
262
+ cardStyle?: React.CSSProperties;
263
+ }
251
264
  interface IRequirementAIContext {
252
265
  userStory: IUserStory[];
253
266
  setUserStory: React.Dispatch<React.SetStateAction<IUserStory[]>>;
@@ -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,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE3G,OAAO,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACjH,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC7G,OAAO,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAErG,MAAM,WAAW,yBAAyB;IACxC,qBAAqB,CAAC,EAAE;QACtB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa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BAAmB,CAAC,EAAE;QACpB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;QACnC,iBAAiB,CAAC,EAAE,GAAG,CAAC;KACzB,CAAC;IAEF,kBAAkB,CAAC,EAAE;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,gBAAgB,CAAC,EAAE,GAAG,CAAC;KACxB,CAAC;IAEF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAErE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEvE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,0BAA0B,EAAE,MAAM,EAAE,CAAC;IAErC,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,8BAA8B,CAAC,EAAE,0BAA0B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAC7C;AAID,QAAA,MAAM,oBAAoB,oTAmBvB,yBAAyB,4CAsE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
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,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,CAAC,EAAE,GAAG,CAAC;KACzB,CAAC;IAEF,kBAAkB,CAAC,EAAE;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,gBAAgB,CAAC,EAAE,GAAG,CAAC;KACxB,CAAC;IAEF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAErE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEvE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,0BAA0B,EAAE,MAAM,EAAE,CAAC;IAErC,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,8BAA8B,CAAC,EAAE,0BAA0B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAC7C;AAID,QAAA,MAAM,oBAAoB,oTAmBvB,yBAAyB,4CAsE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAmBA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAIzE,UAAU,cAAc;IACpB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAA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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;QACnB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACL;AAED,eAAO,MAAM,oBAAoB,wPAAyP,MAAM,4CA0F/R,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;AAMzE,UAAU,cAAc;IACpB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU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AAC;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;QACnB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACL;AAED,eAAO,MAAM,oBAAoB,wPAAyP,MAAM,4CA0F/R,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { IUserStory, IUserStoryForApproval } from "../../interfaces/userstory.interface";
2
+ import { AiReasoningCustomStyles, UserStoryIcons } from "../../types/aiReasoning.type";
3
+ import { BigEnoughPanelCustomStyles } from "../RequirementAIWrapper/RequirementAIWrapper";
4
+ export declare const BigEnoughPanel: ({ customIcons, customStyles, currentUserStory, panelStyles, showPanel }: {
5
+ customIcons: UserStoryIcons;
6
+ customStyles: AiReasoningCustomStyles;
7
+ currentUserStory: IUserStoryForApproval | IUserStory;
8
+ panelStyles?: BigEnoughPanelCustomStyles | undefined;
9
+ showPanel?: boolean | undefined;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=BigEnoughPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigEnoughPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/BigEnoughPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAA4B,uBAAuB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEjH,OAA6B,EAAE,0BAA0B,EAAoB,MAAM,8CAA8C,CAAC;AAIlI,eAAO,MAAM,cAAc;iBAEX,cAAc;kBACZ,uBAAuB;sBACpB,qBAAqB,GAAG,UAAU;;;6CAoEtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryApprovalScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,EAC7B,iCAAiC,EAEjC,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AA0D9C,UAAU,SAAS;IACjB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,mEAAmE;IACnE,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C,8CAA8C;IAC9C,MAAM,CAAC,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAChD,4EAA4E;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,yBAAyB;IACzB,UAAU,CAAC,EAAE,iCAAiC,CAAC;IAC/C,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAyOD,UAAU,YAAY;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACrC;;;OAGG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkCD,UAAU,kBAAkB;IAC1B,mDAAmD;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,mDAAmD;IACnD,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2BD,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wDAAwD;IACxD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,6CAA6C;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAkID,UAAU,SAAS;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC5C;AA0FD,QAAA,MAAM,uBAAuB;;;;;CAK3B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"UserStoryApprovalScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,6BA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AAC;IACnB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA+JD,UAAU,SAAS;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC5C;AA0FD,QAAA,MAAM,uBAAuB;;;;;CAK3B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSegment.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAMnF,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,oBAAoB,EAAE,qBAAqB,CAAC;IAC5C,oCAAoC;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,CACjB,eAAe,EAAE,MAAM,EACvB,iBAAiB,EAAE,qBAAqB,KACrC,IAAI,CAAC;IACV,oCAAoC;IACpC,kBAAkB,CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,yCAAyC;IACzC,sBAAsB,CAAC,EAAE,CAAC,YAAY,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACvE,iCAAiC;IACjC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,+BAA+B;IAC/B,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC5C;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA4KxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ContentSegment.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAQnF,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,oBAAoB,EAAE,qBAAqB,CAAC;IAC5C,oCAAoC;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,CACjB,eAAe,EAAE,MAAM,EACvB,iBAAiB,EAAE,qBAAqB,KACrC,IAAI,CAAC;IACV,oCAAoC;IACpC,kBAAkB,CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,yCAAyC;IACzC,sBAAsB,CAAC,EAAE,CAAC,YAAY,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACvE,iCAAiC;IACjC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC3C,+BAA+B;IAC/B,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC5C;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwLxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const BigEnoughIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BigEnoughIcon;
3
+ //# sourceMappingURL=BigEnoughIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigEnoughIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/icons/BigEnoughIcon.tsx"],"names":[],"mappings":"AACA,QAAA,MAAM,aAAa,+CAuClB,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const CDIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export default CDIcon;
3
+ //# sourceMappingURL=CDIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CDIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/icons/CDIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM,+CAeX,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { GptCitation } from "../types/citation.type";
2
+ export interface BigEnoughDecisionFactors {
3
+ score_reason: string;
4
+ estimated_steps: string;
5
+ file_scope: string;
6
+ repo_scope: string;
7
+ breakdown_needed: boolean;
8
+ relevance_score: number;
9
+ gap: string;
10
+ gpt_citation: GptCitation;
11
+ }
12
+ //# sourceMappingURL=approval-screen.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-screen.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/approval-screen.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,WAAW,CAAC;CAC3B"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { TAIReasoning } from "../types/aiReasoning.type";
3
- import { AudioCitation, FileCitation, GeneratedCodeCitation, GptCitation, ImageCitation, RcaCitation, TextCitation, WebCitation } from "../types/citation.type";
4
- import { ImageCitationsForFile, UserStoryCitations } from "./citation.interface";
3
+ import { AudioCitation, FileCitation, GeneratedCodeCitation, ImageCitation, RcaCitation, TextCitation, WebCitation } from "../types/citation.type";
4
+ import { IBigEnoughBlock, ImageCitationsForFile, UserStoryCitations } from "./citation.interface";
5
5
  export interface IUserStory {
6
6
  artifactId: string;
7
7
  title: string;
@@ -46,6 +46,8 @@ export interface IUserStoryForApproval {
46
46
  value: IUserStoryContent[];
47
47
  /** Optional description */
48
48
  description?: string;
49
+ big_enough: number;
50
+ big_enough_decision_factors: BigEnoughDecisionFactors;
49
51
  /** Current approval status of the entire story */
50
52
  approval_status?: ApprovalStatus;
51
53
  /** Nested sub-features that also require approval */
@@ -299,6 +301,6 @@ export interface BigEnoughDecisionFactors {
299
301
  breakdown_needed: boolean;
300
302
  relevance_score: number;
301
303
  gap: string;
302
- gpt_citation: GptCitation;
304
+ big_enough_block: IBigEnoughBlock[];
303
305
  }
304
306
  //# sourceMappingURL=userstory.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"userstory.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/userstory.interface.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChK,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,MAAM,WAAW,UAAU;IAEzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EA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,QAAQ,CAAC;QACzB,KAAK,EAAE,MAAM,CAAA;KACd,CAAC;IACF,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,kBAAkB,GAClB,UAAU,CAAC;AAEf,MAAM,MAAM,eAAe,GAAG,MAAM,CAClC,kBAAkB,EAClB,qBAAqB,EAAE,CACxB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,WAAW,CAAC;CAC3B"}
1
+ {"version":3,"file":"userstory.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/userstory.interface.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,qBAAqB,EAAe,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChK,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAElG,MAAM,WAAW,UAAU;IAEzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,E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MAAM,CAAA;KACd,CAAC;IACF,GAAG,EAAE;QACH,MAAM,EAAE,KAAK,GAAG,QAAQ,CAAC;QACzB,KAAK,EAAE,MAAM,CAAA;KACd,CAAC;IACF,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,kBAAkB,GAClB,UAAU,CAAC;AAEf,MAAM,MAAM,eAAe,GAAG,MAAM,CAClC,kBAAkB,EAClB,qBAAqB,EAAE,CACxB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,eAAe,EAAE,CAAC;CAEvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"userstory-approval-transform.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/userstory-approval-transform.utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,qBAAqB,EAEtB,MAAM,mCAAmC,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,MAAM,EAWpD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,gBAC1B,UAAU,EAAE,KACxB,qBAAqB,EAgCvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,oBAAqB,qBAAqB,EAAE,KAAG,UAAU,EAuBjG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,sBAE5B,CAAC"}
1
+ {"version":3,"file":"userstory-approval-transform.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/userstory-approval-transform.utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,qBAAqB,EAGtB,MAAM,mCAAmC,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,MAAM,EAWpD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,gBAC1B,UAAU,EAAE,KACxB,qBAAqB,EAkCvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,oBAAqB,qBAAqB,EAAE,KAAG,UAAU,EAuBjG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,sBAE5B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.108",
3
+ "version": "0.0.109",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",