@e-llm-studio/requirement-ai 0.0.113 → 0.0.115

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 (20) hide show
  1. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  5. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  6. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  7. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  8. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  9. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  10. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  11. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  12. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  13. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +2 -0
  14. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  15. package/dist/types/src/features/RequirementAI/components/story-screen/BigEnoughPanel.d.ts.map +1 -1
  16. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  17. package/dist/types/src/features/RequirementAI/icons/BigEnoughIcon.d.ts +6 -1
  18. package/dist/types/src/features/RequirementAI/icons/BigEnoughIcon.d.ts.map +1 -1
  19. package/dist/types/src/features/RequirementAI/utils/proccess-stream.utils.d.ts.map +1 -1
  20. 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"),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,b=r.currentIndex,U=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})};var he=null!=(null==I?void 0:I.big_enough)&&!Number.isNaN(I.big_enough)&&!!(null==I?void 0:I.big_enough_decision_factors);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:[he&&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:[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 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(b),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,b=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:b},{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;
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,b=r.currentIndex,U=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})};var he=null!=(null==I?void 0:I.big_enough)&&!Number.isNaN(I.big_enough)&&!!(null==I?void 0:I.big_enough_decision_factors);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:[he&&t.jsx(y.BigEnoughPanel,{customIcons:null==Y?void 0:Y.userStoryIcons,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:[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 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(b),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,b=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:b},{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});var e=require("tslib"),o=require("react/jsx-runtime"),n=require("react"),i=require("../../icons/BigEnoughIcon.js"),s=require("../ai-reasoning/AiReasoningCitationContent.js"),t=require("../RequirementAIWrapper/RequirementAIWrapper.js"),r=require("./BigEnoughPanel.module.css.js");exports.BigEnoughPanel=function(l){var a,u,c,d,g=l.customIcons,_=l.customStyles,v=l.currentUserStory,p=l.panelStyles,f=l.showPanel,h=void 0!==f&&f;t.useRequirementAI().searchQueryList;var b=n.useState(!!h),m=b[0],y=b[1],j=n.useRef(null);return o.jsxs("div",e.__assign({onClick:function(e){return e.stopPropagation()}},{children:[!h&&o.jsx("button",e.__assign({ref:j,className:r.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",{className:null===r.default||void 0===r.default?void 0:r.default.backdrop,style:h?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:"".concat(r.default.dropdown," ").concat(h?r.default.showPanelDropdown:""),style:e.__assign(e.__assign({},null==p?void 0:p.dropdownStyle),h?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===(a=v.big_enough_decision_factors)||void 0===a?void 0:a.big_enough_block,aiReason:{relevance_score:(null===(u=null==v?void 0:v.big_enough_decision_factors)||void 0===u?void 0:u.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:_})}))]})]}))};
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"),l=require("../RequirementAIWrapper/RequirementAIWrapper.js"),r=require("./BigEnoughPanel.module.css.js");exports.BigEnoughPanel=function(t){var u,a,c,d,g=t.customIcons,v=t.customStyles,_=t.currentUserStory,p=t.panelStyles,f=t.showPanel,h=void 0!==f&&f;l.useRequirementAI().searchQueryList;var b=n.useState(!!h),m=b[0],y=b[1],j=n.useRef(null);return o.jsxs("div",e.__assign({onClick:function(e){return e.stopPropagation()}},{children:[!h&&o.jsx("button",e.__assign({ref:j,className:r.default.developerEffortButton,style:null==p?void 0:p.buttonStyle,onClick:function(e){e.stopPropagation(),y(function(e){return!e})}},{children:o.jsx(i.default,{color:null==p?void 0:p.iconColor,size:null==p?void 0:p.iconSize})})),m&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:null===r.default||void 0===r.default?void 0:r.default.backdrop,style:h?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:"".concat(r.default.dropdown," ").concat(h?r.default.showPanelDropdown:""),style:e.__assign(e.__assign({},null==p?void 0:p.dropdownStyle),h?null==p?void 0:p.showPanelDropdownStyle:{})},{children:o.jsx(s.default,{cognitiveDecisionHeaders:{mainHeader:"Feature Implementation Score - ".concat((null==_?void 0:_.big_enough)||0)},big_enough_block:null===(u=_.big_enough_decision_factors)||void 0===u?void 0:u.big_enough_block,aiReason:{relevance_score:(null===(a=null==_?void 0:_.big_enough_decision_factors)||void 0===a?void 0:a.relevance_score)||0,reason:(null===(c=null==_?void 0:_.big_enough_decision_factors)||void 0===c?void 0:c.score_reason)||"",gap:(null===(d=null==_?void 0:_.big_enough_decision_factors)||void 0===d?void 0:d.gap)||"",id:"big-enough-cd"},customIcons:g,customStyles:v})}))]})]}))};
2
2
  //# sourceMappingURL=BigEnoughPanel.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),o=require("../RequirementAIWrapper/RequirementAIWrapper.js"),a=require("../../utils/userstory-approval-transform.utils.js"),r=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),l=require("./components/ContentSegment/ContentSegment.js"),s=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},y={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"},_=Object.assign(function(l){var s,c=l.artifactTitleIds,u=l.config,v=void 0===u?{}:u,p=l.callbacks,S=void 0===p?{}:p,f=l.labels,_=void 0===f?{}:f,m=l.isDisabled,A=void 0!==m&&m,b=l.children,I=l.classNames,C=l.selectedArtifactId,x=o.useRequirementAI(),j=x.userStory,E=x.customStyles,U=e.__assign(e.__assign({},h),v),N=e.__assign(e.__assign({},y),_),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,o){S.onShowNotification?S.onShowNotification(e,t,n,o):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(C||j[0].artifactId);var t=a.createUserStoriesForApproval(a.cloneUserStories(j));q(t)}},[j,C]),n.useEffect(function(){C&&C!==T&&B(C)},[C,T]),n.useEffect(function(){if(K){var e=r.getFirstNonApprovedSegmentId(K,"");P(e)}},[null==K?void 0:K.artifactId]);var Q=n.useCallback(function(t,n){q(function(o){var a=e.__spreadArray([],o,!0);if("APPROVED"===n.approval_status&&"APPROVED"!==o[t].approval_status){var i=r.getFirstUnapprovedStoryId(o,n.artifactId);i&&B(i)}return a[t]=n,a})},[]),X=n.useCallback(function(e){var t=H.current;if(t){var n=r.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===(s=null==E?void 0:E.approvalScreen)||void 0===s?void 0:s.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var n=e.Component,o=e.config,a=e.className,r=g.useUserStoryApprovalScreen(),i=r.isSidebarExpanded,l=r.selectedStoryArtifactId,s=r.setSelectedStoryArtifactId,d=r.userStoryForApproval,c=r.isEditingSegment,u=r.artifactTitleIds;return n?t.jsx(n,{isSidebarExpanded:i,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:o,className:a})},SidebarToggle:function(n){var o=n.OpenIcon,a=n.CloseIcon,r=n.className,i=void 0===r?"":r,l=g.useUserStoryApprovalScreen(),s=l.isSidebarExpanded,c=l.setIsSidebarExpanded,u=o||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":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:s?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(a){var i,l,v,p,h,y,_,m,A,b,I,C,x,j,E,U,N,w,k,q,F,T,B,R,D,P,M,W=a.children,O=a.ButtonComponent,V=a.hideApproveAll,z=void 0!==V&&V,L=a.pageTitle,H=void 0===L?"Review Generated Requirements":L,G=a.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=g.useUserStoryApprovalScreen(),K=J.selectedUserStoryForApproval,Q=J.selectedUserStoryIndex,X=J.artifactTitleIds,Z=J.labels,$=J.config,ee=J.isDisabled,te=J.isEditingSegment,ne=J.handleSaveUserStory,oe=J.setCurrentContentId,ae=J.showNotification,re=o.useRequirementAI(),ie=re.customStyles,le=re.customIcons,se=n.useState(!1),de=se[0],ce=se[1],ue=n.useCallback(function(){if(K)if(te)ae("warn","Warning!",Z.unsavedChangesWarning,3e3);else{var e=r.approveAllSegments(K);ne(Q,e),oe("")}},[K,Q,te,Z,ne,oe,ae]);if(!K)return null;var ve=X[Q]||"",pe="APPROVED"===K.approval_status,ge=null!=(null==K?void 0:K.big_enough)&&!Number.isNaN(K.big_enough)&&!!(null==K?void 0:K.big_enough_decision_factors);return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(l=null===(i=null==ie?void 0:ie.approvalScreen)||void 0===i?void 0:i.content)||void 0===l?void 0:l.content),"data-lsc-ui-page-title":H,"data-lsc-ui-page-description":Y},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(h=null===(p=null===(v=null==ie?void 0:ie.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===(_=null===(y=null==ie?void 0:ie.approvalScreen)||void 0===y?void 0:y.content)||void 0===_?void 0:_.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(b=null===(A=null===(m=null==ie?void 0:ie.approvalScreen)||void 0===m?void 0:m.body)||void 0===A?void 0:A.contentSegment)||void 0===b?void 0:b.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(x=null===(C=null===(I=null==ie?void 0:ie.approvalScreen)||void 0===I?void 0:I.body)||void 0===C?void 0:C.contentSegment)||void 0===x?void 0:x.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(U=null===(E=null===(j=null==ie?void 0:ie.approvalScreen)||void 0===j?void 0:j.body)||void 0===E?void 0:E.contentSegment)||void 0===U?void 0:U.headerArtifactId)},{children:ve}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(N=null==ie?void 0:ie.approvalScreen)||void 0===N?void 0:N.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==K?void 0:K.title}))]})),t.jsxs("div",e.__assign({className:null===d.default||void 0===d.default?void 0:d.default.containerStyle,style:null===(F=null===(q=null==ie?void 0:ie.approvalScreen)||void 0===q?void 0:q.BigEnoughStyles)||void 0===F?void 0:F.containerStyle},{children:[ge&&t.jsx("button",e.__assign({className:d.default.developerEffortButton,style:null===(B=null===(T=null==ie?void 0:ie.approvalScreen)||void 0===T?void 0:T.BigEnoughStyles)||void 0===B?void 0:B.buttonStyle,onClick:function(){return ce(!de)}},{children:t.jsx(f.default,{})})),!z&&$.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:pe?t.jsx(s.ApprovalBadge,{status:"APPROVED",label:Z.approved}):O?t.jsx(O,e.__assign({type:"fill",onClick:ue,isDisable:ee,className:d.default.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:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:Z.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:ue,disabled:ee,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(D=null===(R=null==ie?void 0:ie.approvalScreen)||void 0===R?void 0:R.content)||void 0===D?void 0:D.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:Z.approveAll})]}))}))]}))]})),de&&ge&&t.jsx("div",e.__assign({className:d.default.bigEnoughWrapper},{children:t.jsx(S.BigEnoughPanel,{customIcons:le,customStyles:null===(P=null==ie?void 0:ie.approvalScreen)||void 0===P?void 0:P.aiReasoningCitaionStyles,currentUserStory:K,panelStyles:null===(M=null==ie?void 0:ie.approvalScreen)||void 0===M?void 0:M.BigEnoughStyles,showPanel:de})})),W]}))},Body:function(a){var r,i,s,c=a.children,u=a.EditorComponent,v=a.ViewerComponent,p=g.useUserStoryApprovalScreen(),S=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,y=p.handleSaveUserStory,_=o.useRequirementAI().customStyles,m=n.useCallback(function(e){y(f,e)},[f,y]),A=n.useCallback(function(t,n){var o;if(S){var a=e.__assign(e.__assign({},S),{sub_features:null===(o=S.sub_features)||void 0===o?void 0:o.map(function(e,o){return o===t?n:e})});y(f,a)}},[S,f,y]),b=n.useCallback(function(t){var n;if(S){var o=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})});y(f,o)}},[S,f,y]);if(!S)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(r=null==_?void 0:_.approvalScreen)||void 0===r?void 0:r.body)||void 0===i?void 0:i.container)},{children:[t.jsx(l.ContentSegment,{userStoryForApproval:S,artifactTitleId:I,onSaveMainStoryContent:m,EditorComponent:u,ViewerComponent:v}),null===(s=S.sub_features)||void 0===s?void 0:s.map(function(e,n){return t.jsx(l.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=_;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),o=require("react"),n=require("../RequirementAIWrapper/RequirementAIWrapper.js"),r=require("../../utils/userstory-approval-transform.utils.js"),a=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),l=require("./components/ContentSegment/ContentSegment.js"),s=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},y={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"},_=Object.assign(function(l){var s,c=l.artifactTitleIds,u=l.config,v=void 0===u?{}:u,p=l.callbacks,S=void 0===p?{}:p,f=l.labels,_=void 0===f?{}:f,m=l.isDisabled,A=void 0!==m&&m,b=l.children,I=l.classNames,C=l.selectedArtifactId,x=n.useRequirementAI(),j=x.userStory,E=x.customStyles,U=e.__assign(e.__assign({},h),v),N=e.__assign(e.__assign({},y),_),w=o.useState([]),k=w[0],q=w[1],F=o.useState(""),T=F[0],B=F[1],R=o.useState(""),D=R[0],P=R[1],M=o.useState(!1),W=M[0],O=M[1],V=o.useState(!0),z=V[0],L=V[1],H=o.useRef(void 0),G=o.useCallback(function(e,t,o,n){S.onShowNotification?S.onShowNotification(e,t,o,n):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(o))},[S]),Y=o.useCallback(function(e){S.onScrollToElement?S.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[S]),J=o.useMemo(function(){var e=k.findIndex(function(e){return e.artifactId===T});return e>=0?e:0},[k,T]),K=k[J];o.useEffect(function(){H.current=K},[K]),o.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(C||j[0].artifactId);var t=r.createUserStoriesForApproval(r.cloneUserStories(j));q(t)}},[j,C]),o.useEffect(function(){C&&C!==T&&B(C)},[C,T]),o.useEffect(function(){if(K){var e=a.getFirstNonApprovedSegmentId(K,"");P(e)}},[null==K?void 0:K.artifactId]);var Q=o.useCallback(function(t,o){q(function(n){var r=e.__spreadArray([],n,!0);if("APPROVED"===o.approval_status&&"APPROVED"!==n[t].approval_status){var i=a.getFirstUnapprovedStoryId(n,o.artifactId);i&&B(i)}return r[t]=o,r})},[]),X=o.useCallback(function(e){var t=H.current;if(t){var o=a.getFirstNonApprovedSegmentId(t,e);"NA"!==o&&(P(""),setTimeout(function(){P(o)},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===(s=null==E?void 0:E.approvalScreen)||void 0===s?void 0:s.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var o=e.Component,n=e.config,r=e.className,a=g.useUserStoryApprovalScreen(),i=a.isSidebarExpanded,l=a.selectedStoryArtifactId,s=a.setSelectedStoryArtifactId,d=a.userStoryForApproval,c=a.isEditingSegment,u=a.artifactTitleIds;return o?t.jsx(o,{isSidebarExpanded:i,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:n,className:r})},SidebarToggle:function(o){var n=o.OpenIcon,r=o.CloseIcon,a=o.className,i=void 0===a?"":a,l=g.useUserStoryApprovalScreen(),s=l.isSidebarExpanded,c=l.setIsSidebarExpanded,u=n||p.SidebarOpenIcon,v=r||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":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:s?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(r){var i,l,v,p,h,y,_,m,A,b,I,C,x,j,E,U,N,w,k,q,F,T,B,R,D,P,M,W,O,V,z,L=r.children,H=r.ButtonComponent,G=r.hideApproveAll,Y=void 0!==G&&G,J=r.pageTitle,K=void 0===J?"Review Generated Requirements":J,Q=r.pageDescription,X=void 0===Q?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":Q,Z=g.useUserStoryApprovalScreen(),$=Z.selectedUserStoryForApproval,ee=Z.selectedUserStoryIndex,te=Z.artifactTitleIds,oe=Z.labels,ne=Z.config,re=Z.isDisabled,ae=Z.isEditingSegment,ie=Z.handleSaveUserStory,le=Z.setCurrentContentId,se=Z.showNotification,de=n.useRequirementAI(),ce=de.customStyles,ue=de.customIcons,ve=o.useState(!1),pe=ve[0],ge=ve[1],Se=o.useCallback(function(){if($)if(ae)se("warn","Warning!",oe.unsavedChangesWarning,3e3);else{var e=a.approveAllSegments($);ie(ee,e),le("")}},[$,ee,ae,oe,ie,le,se]);if(!$)return null;var fe=te[ee]||"",he="APPROVED"===$.approval_status,ye=null!=(null==$?void 0:$.big_enough)&&!Number.isNaN($.big_enough)&&!!(null==$?void 0:$.big_enough_decision_factors);return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(l=null===(i=null==ce?void 0:ce.approvalScreen)||void 0===i?void 0:i.content)||void 0===l?void 0:l.content),"data-lsc-ui-page-title":K,"data-lsc-ui-page-description":X},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(h=null===(p=null===(v=null==ce?void 0:ce.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===(_=null===(y=null==ce?void 0:ce.approvalScreen)||void 0===y?void 0:y.content)||void 0===_?void 0:_.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(b=null===(A=null===(m=null==ce?void 0:ce.approvalScreen)||void 0===m?void 0:m.body)||void 0===A?void 0:A.contentSegment)||void 0===b?void 0:b.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(x=null===(C=null===(I=null==ce?void 0:ce.approvalScreen)||void 0===I?void 0:I.body)||void 0===C?void 0:C.contentSegment)||void 0===x?void 0:x.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(U=null===(E=null===(j=null==ce?void 0:ce.approvalScreen)||void 0===j?void 0:j.body)||void 0===E?void 0:E.contentSegment)||void 0===U?void 0:U.headerArtifactId)},{children:fe}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(N=null==ce?void 0:ce.approvalScreen)||void 0===N?void 0:N.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==$?void 0:$.title}))]})),t.jsxs("div",e.__assign({className:null===d.default||void 0===d.default?void 0:d.default.containerStyle,style:null===(F=null===(q=null==ce?void 0:ce.approvalScreen)||void 0===q?void 0:q.BigEnoughStyles)||void 0===F?void 0:F.containerStyle},{children:[ye&&t.jsx("button",e.__assign({className:d.default.developerEffortButton,style:null===(B=null===(T=null==ce?void 0:ce.approvalScreen)||void 0===T?void 0:T.BigEnoughStyles)||void 0===B?void 0:B.buttonStyle,onClick:function(){return ge(!pe)}},{children:t.jsx(f.default,{color:null===(D=null===(R=null==ce?void 0:ce.approvalScreen)||void 0===R?void 0:R.BigEnoughStyles)||void 0===D?void 0:D.iconColor,size:null===(M=null===(P=null==ce?void 0:ce.approvalScreen)||void 0===P?void 0:P.BigEnoughStyles)||void 0===M?void 0:M.iconSize})})),!Y&&ne.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:he?t.jsx(s.ApprovalBadge,{status:"APPROVED",label:oe.approved}):H?t.jsx(H,e.__assign({type:"fill",onClick:Se,isDisable:re,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:oe.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:oe.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:Se,disabled:re,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(O=null===(W=null==ce?void 0:ce.approvalScreen)||void 0===W?void 0:W.content)||void 0===O?void 0:O.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:oe.approveAll})]}))}))]}))]})),pe&&ye&&t.jsx("div",e.__assign({className:d.default.bigEnoughWrapper},{children:t.jsx(S.BigEnoughPanel,{customIcons:null==ue?void 0:ue.userStoryIcons,customStyles:null===(V=null==ce?void 0:ce.approvalScreen)||void 0===V?void 0:V.aiReasoningCitaionStyles,currentUserStory:$,panelStyles:null===(z=null==ce?void 0:ce.approvalScreen)||void 0===z?void 0:z.BigEnoughStyles,showPanel:pe})})),L]}))},Body:function(r){var a,i,s,c=r.children,u=r.EditorComponent,v=r.ViewerComponent,p=g.useUserStoryApprovalScreen(),S=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,y=p.handleSaveUserStory,_=n.useRequirementAI().customStyles,m=o.useCallback(function(e){y(f,e)},[f,y]),A=o.useCallback(function(t,o){var n;if(S){var r=e.__assign(e.__assign({},S),{sub_features:null===(n=S.sub_features)||void 0===n?void 0:n.map(function(e,n){return n===t?o:e})});y(f,r)}},[S,f,y]),b=o.useCallback(function(t){var o;if(S){var n=e.__assign(e.__assign({},S),{sub_features:null===(o=S.sub_features)||void 0===o?void 0:o.filter(function(e,o){return o!==t})});y(f,n)}},[S,f,y]);if(!S)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(a=null==_?void 0:_.approvalScreen)||void 0===a?void 0:a.body)||void 0===i?void 0:i.container)},{children:[t.jsx(l.ContentSegment,{userStoryForApproval:S,artifactTitleId:I,onSaveMainStoryContent:m,EditorComponent:u,ViewerComponent:v}),null===(s=S.sub_features)||void 0===s?void 0:s.map(function(e,o){return t.jsx(l.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+o)),isSubFeature:!0,subFeatureIndex:o,onSaveSubFeature:A,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=_;
2
2
  //# sourceMappingURL=UserStoryApprovalScreen.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"),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;
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:null==ne?void 0:ne.userStoryIcons,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});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})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),L=require("react/jsx-runtime");exports.default=function(t){var e=t.color,s=void 0===e?"#334155":e,r=t.size,i=void 0===r?18:r,o=t.className;return L.jsxs("svg",C.__assign({width:i,height:i,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o},{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:s,stroke:s,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:s,stroke:s,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:s,stroke:s,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:s,stroke:s,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:s,stroke:s,strokeWidth:.2})]}))};
2
2
  //# sourceMappingURL=BigEnoughIcon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib");function t(r,t){return r?r.replace(/<gpt_citation_here\s+id=(?:\\"|")(\d+)(?:\\"|")[^>]*>/g,function(r,e){var n="".concat(t,"<GPT_CITATION_ID>").concat(e);return'<a href="gpt_citation$'.concat(n,'">Source</a>')}):r}function e(r,t){var e=function(t){for(var e,n=new RegExp("<".concat(t,">([\\s\\S]*?)<\\/").concat(t,">"),"gi"),a=[];null!==(e=n.exec(r));)a.push(e[1].trim());return a},n=e("domain"),a=e("paraphrase");return{citation_number:t,customMetadata:{type:"gpt_citation",data_sources:e("data_sources"),training_data_title:n,paraphrase:a}}}exports.extractBlockStreams=function(r){var t=[];try{for(var e="<BLOCK_STREAM_START>",n="<BLOCK_STREAM_END>",a=0;;){var o=r.indexOf(e,a);if(-1===o)break;var c=r.indexOf(n,o+20);if(-1===c)break;var i=r.slice(o+20,c).trim();t.push(JSON.parse(i)),a=c+18}}catch(r){console.error("Error in extracting blocks from stream",r)}finally{return t}},exports.extractDescription=function(r){try{var t=r.match(/<h2>\s*(?:<b>)?Description(?:<\/b>)?\s*<\/h2>\s*([\s\S]*?)(?=\s*<h2>|$)/i);if(t)return t[1].trim()}catch(r){}return null},exports.parseGptCitation=e,exports.processAIReasoningFromBlocks=function(n,a,o,c){var i=[],s="",u=[],l="";try{var p=function(n){return n.replace(/<a\s+(?:(table="true")\s+)?href=(\\"|")ai_reasoning\$(\d+)(\\"|")>([\s\S]*?)<\/a>/g,function(n,c,s,l,p,v){var d,h,_,f,m,g="".concat(l,"<BLOCK_NUMBER>").concat(a,"<STORY_NUMBER>").concat(o),b=r.__spreadArray([],v.matchAll(/<gpt_citation\s+id=(?:\\"|")(\d+)(?:\\"|")[^>]*>([\s\S]*?)<\/gpt_citation>/g),!0),S=new Map;b.forEach(function(r){var t=r[1],e=r[0];S.set(t,e)});var x=v.match(/<reason(?:\s+source="([^"]*)")?>([\s\S]*?)<\/reason>/),T=v.match(/<gap(?:\s+source="([^"]*)")?>([\s\S]*?)<\/gap>/),y=v.match(/<relevance_score>([\s\S]*?)<\/relevance_score>/),R=(null===(d=null==x?void 0:x[2])||void 0===d?void 0:d.trim())||"",E=(null===(h=null==T?void 0:T[2])||void 0===h?void 0:h.trim())||"";return R=t(R,g),E=t(E,g),S.forEach(function(r,t){var n="".concat(g,"<GPT_CITATION_ID>").concat(t);u.push(e(r,n))}),i.push({id:g,reason:R,reasonSource:(null===(_=null==x?void 0:x[1])||void 0===_?void 0:_.trim())||"",gap:E,gapSource:(null===(f=null==T?void 0:T[1])||void 0===f?void 0:f.trim())||"",relevance_score:Number(null===(m=null==y?void 0:y[1])||void 0===m?void 0:m.trim())||0}),"<a ".concat(c?'table="true"':""," href=").concat(s,"ai_reasoning$").concat(g).concat(p,">Source</a>")})};s=p(n),c&&(l=p(c))}catch(r){console.error("Error in extracting AI Reasoning from this block:",n)}finally{return{outputText:s,reasonings:i,gpt_citation:u,processedDescription:l}}},exports.processUserStoryValue=function(r,t,e){var n=r.includes("<h1><b>Title</b></h1>\n\n")?r:e?"<h1><b>Title</b></h1>\n\n".concat(e," \n").concat(r):r;return n=n.includes("<h1><b>Requirement Type</b></h1>\n\n")?n:t?"<h1><b>Requirement Type</b></h1>\n\n".concat(t," \n").concat(n):n},exports.replaceGptCitation=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib");function t(r,t){return r?r.replace(/<gpt_citation_here\s+id=(?:\\"|")(\d+)(?:\\"|")[^>]*>/g,function(r,e){var n="".concat(t,"<GPT_CITATION_ID>").concat(e);return'<a href="gpt_citation$'.concat(n,'">Source</a>')}):r}function e(r,t){var e=function(t){for(var e,n=new RegExp("<".concat(t,">([\\s\\S]*?)<\\/").concat(t,">"),"gi"),a=[];null!==(e=n.exec(r));)a.push(e[1].trim());return a},n=e("domain"),a=e("paraphrase");return{citation_number:t,customMetadata:{type:"gpt_citation",data_sources:e("data_sources"),training_data_title:n,paraphrase:a}}}exports.extractBlockStreams=function(r){var t=[];try{for(var e="<BLOCK_STREAM_START>",n="<BLOCK_STREAM_END>",a=0;;){var o=r.indexOf(e,a);if(-1===o)break;var c=r.indexOf(n,o+20);if(-1===c)break;var i=r.slice(o+20,c).trim();t.push(JSON.parse(i)),a=c+18}}catch(r){console.error("Error in extracting blocks from stream",r)}finally{return t}},exports.extractDescription=function(r){try{var t=r.match(/<h2>\s*(?:<b>)?Description(?:<\/b>)?\s*<\/h2>\s*([\s\S]*?)(?=\s*<h2>|$)/i);if(t)return t[1].trim()}catch(r){}return null},exports.parseGptCitation=e,exports.processAIReasoningFromBlocks=function(n,a,o,c){var i=[],s="",u=[],l="";try{var p=function(n){return n.replace(/<a\s+(?:(table="true")\s+)?href=(\\"|")ai_reasoning\$(\d+)(\\"|")>([\s\S]*?)<\/a>/g,function(n,c,s,l,p,v){var d,h,_,f,g,m="".concat(l,"<BLOCK_NUMBER>").concat(a,"<STORY_NUMBER>").concat(o),b=r.__spreadArray([],v.matchAll(/<gpt_citation\s+id=(?:\\"|")(\d+)(?:\\"|")[^>]*>([\s\S]*?)<\/gpt_citation>/g),!0),S=new Map;b.forEach(function(r){var t=r[1],e=r[0];S.set(t,e)}),console.log("gptCitationMatches",b,S);var x=v.match(/<reason(?:\s+source="([^"]*)")?>([\s\S]*?)<\/reason>/),T=v.match(/<gap(?:\s+source="([^"]*)")?>([\s\S]*?)<\/gap>/),y=v.match(/<relevance_score>([\s\S]*?)<\/relevance_score>/),R=(null===(d=null==x?void 0:x[2])||void 0===d?void 0:d.trim())||"",E=(null===(h=null==T?void 0:T[2])||void 0===h?void 0:h.trim())||"";return R=t(R,m),E=t(E,m),S.forEach(function(r,t){var n="".concat(m,"<GPT_CITATION_ID>").concat(t);u.push(e(r,n))}),i.push({id:m,reason:R,reasonSource:(null===(_=null==x?void 0:x[1])||void 0===_?void 0:_.trim())||"",gap:E,gapSource:(null===(f=null==T?void 0:T[1])||void 0===f?void 0:f.trim())||"",relevance_score:Number(null===(g=null==y?void 0:y[1])||void 0===g?void 0:g.trim())||0}),"<a ".concat(c?'table="true"':""," href=").concat(s,"ai_reasoning$").concat(m).concat(p,">Source</a>")})};s=p(n),c&&(l=p(c))}catch(r){console.error("Error in extracting AI Reasoning from this block:",n)}finally{return{outputText:s,reasonings:i,gpt_citation:u,processedDescription:l}}},exports.processUserStoryValue=function(r,t,e){var n=r.includes("<h1><b>Title</b></h1>\n\n")?r:e?"<h1><b>Title</b></h1>\n\n".concat(e," \n").concat(r):r;return n=n.includes("<h1><b>Requirement Type</b></h1>\n\n")?n:t?"<h1><b>Requirement Type</b></h1>\n\n".concat(t," \n").concat(n):n},exports.replaceGptCitation=t;
2
2
  //# sourceMappingURL=proccess-stream.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 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 N from"showdown";import{Menu as w,MenuItem as b,Tooltip as U}from"@mui/material";import{v4 as D}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as 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,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(U,e({title:s,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(a++))),r}var L=function(t){var n,r=t.displayName,l=T().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(I,{className:x.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),o("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},z=function(c){var d,g,I=c.isUserStoryCurrentlyUpdated,U=c.artifactId,D=c.artifactTitleId,_=c.parentUserStory,P=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=a(e(e({},structuredClone(P)),{value:B(P.value)||""})),le=ie[0],ae=ie[1],se=a({userStory:!1}),ue=se[0],ce=se[1],de=T(),ve=de.userStory,ye=de.customIcons,me=a(""===O||X===P.artifactId),he=me[0],fe=me[1],pe=a(!1);pe[0];var Se=pe[1],Ce=a(null),ge=Ce[0],Ie=Ce[1],Ne=a(!1),we=Ne[0],be=Ne[1],Ue=s(null),De=a(!1);De[0];var xe=De[1],Be=s(null);u(function(){I&&fe(I)},[I]),u(function(){ae(e(e({},structuredClone(P)),{value:B(P.value)||""}))},[P]),u(function(){ee.length>0?fe(!0):X&&fe(X===P.artifactId)},[ee,X,P.artifactId]);var ke=function(){Ie(null)},Me=function(){fe(function(e){return!e})};var Ae=null!=(null==P?void 0:P.big_enough)&&!Number.isNaN(P.big_enough)&&!!(null==P?void 0:P.big_enough_decision_factors);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(P.title)}),P.artifactId)]})),o("div",e({className:x.titleActions,style:null==re?void 0:re.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[Ae&&i(j,{customIcons:ye,customStyles:null==re?void 0:re.aiReasoningCitaionStyles,currentUserStory:P,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(w,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(b,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:Ue,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(b,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({},P),{value:"".concat(M(null==_?void 0:_.value,P.title)," \n").concat(P.value)})),null==J||J(!0,[t],P.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(b,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 N.Converter,t=e.makeHtml(B(P.value)||P.value),n=function(e){var t=(new N.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 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:we?o("span",e({className:x.savingSpinner},{children:[i(f,{className:x.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:we,style:we?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 be(!0),"userStory"==="userStory"&&(W(le),console.log("I am changing RTE editor values",le)),[4,K(te,ve,U,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})}),be(!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(P.value)||"",handleUpdateState:function(t,n){var r=k(n);ae(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(P.value)||"",artifactId:P.artifactId,customStyles:oe,isDisplayHighlightControl:Y})]})),null===(g=le.sub_features)||void 0===g?void 0:g.map(function(n,r){return i(z,{artifactId:U,isUserStoryCurrentlyUpdated:I,artifactTitleId:"".concat(D,"-").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:F,updateUserStoryArtifact:K,handleDownloadUserStory:G,handleOpenSendDialog:J,isDisplayHighlightControl:Y,elementDisplayConfig:Z},n.artifactId)})]}))}))]}))},_=function(n){var r=n.artifactTitleIDs,a=n.isDiffEditReviewMode,s=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,N=C.customStyles,w=C.searchQueryList,b=C.currentHighlightIndex,U=C.setCurrentHighlightIndex,D=null==N?void 0:N.userStoryCardStyles,B=0===b,k=b===w.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:w.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:[b+1," of ",w.length]})),o("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){b>0&&U(function(e){return e-1})},className:x.navButton,disabled:B},{children:i(c,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){b<w.length-1&&U(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:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:m,handleDownloadUserStory:h,selectedArtifactId:f,isDisplayHighlightControl:p,elementDisplayConfig:S},e.artifactId)})]}))};export{z as StoryCard,_ as UserStoryCardWrapper,z as default,H 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 N from"showdown";import{Menu as w,MenuItem as b,Tooltip as U}from"@mui/material";import{v4 as D}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as 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(U,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,U=c.artifactId,D=c.artifactTitleId,_=c.parentUserStory,P=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(P)),{value:B(P.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===P.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],Ne=s(!1),we=Ne[0],be=Ne[1],Ue=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(P)),{value:B(P.value)||""}))},[P]),u(function(){ee.length>0?fe(!0):X&&fe(X===P.artifactId)},[ee,X,P.artifactId]);var ke=function(){Ie(null)},Me=function(){fe(function(e){return!e})};var Ae=null!=(null==P?void 0:P.big_enough)&&!Number.isNaN(P.big_enough)&&!!(null==P?void 0:P.big_enough_decision_factors);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(P.title)}),P.artifactId)]})),o("div",e({className:x.titleActions,style:null==re?void 0:re.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[Ae&&i(j,{customIcons:null==ye?void 0:ye.userStoryIcons,customStyles:null==re?void 0:re.aiReasoningCitaionStyles,currentUserStory:P,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(w,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(b,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:Ue,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(b,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({},P),{value:"".concat(M(null==_?void 0:_.value,P.title)," \n").concat(P.value)})),null==J||J(!0,[t],P.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(b,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 N.Converter,t=e.makeHtml(B(P.value)||P.value),n=function(e){var t=(new N.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 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:we?o("span",e({className:x.savingSpinner},{children:[i(f,{className:x.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:we,style:we?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 be(!0),"userStory"==="userStory"&&(W(le),console.log("I am changing RTE editor values",le)),[4,K(te,ve,U,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})}),be(!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(P.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(P.value)||"",artifactId:P.artifactId,customStyles:oe,isDisplayHighlightControl:Y})]})),null===(g=le.sub_features)||void 0===g?void 0:g.map(function(n,r){return i(z,{artifactId:U,isUserStoryCurrentlyUpdated:I,artifactTitleId:"".concat(D,"-").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:F,updateUserStoryArtifact:K,handleDownloadUserStory:G,handleOpenSendDialog:J,isDisplayHighlightControl:Y,elementDisplayConfig:Z},n.artifactId)})]}))}))]}))},_=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,N=C.customStyles,w=C.searchQueryList,b=C.currentHighlightIndex,U=C.setCurrentHighlightIndex,D=null==N?void 0:N.userStoryCardStyles,B=0===b,k=b===w.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:w.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:[b+1," of ",w.length]})),o("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){b>0&&U(function(e){return e-1})},className:x.navButton,disabled:B},{children:i(c,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){b<w.length-1&&U(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,_ as UserStoryCardWrapper,z as default,H as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +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 c from"../ai-reasoning/AiReasoningCitationContent.js";import{useRequirementAI as s}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,h=u.currentUserStory,_=u.panelStyles,b=u.showPanel,y=void 0!==b&&b;s().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==_?void 0:_.buttonStyle,onClick:function(o){o.stopPropagation(),k(function(o){return!o})}},{children:e(l,{})})),P&&n(i,{children:[e("div",{className:null==a?void 0:a.backdrop,style:y?null==_?void 0:_.showPanelBackdropStyles:null==_?void 0:_.backdropStyle,onClick:function(o){o.stopPropagation(),k(!1)},onWheel:function(o){return o.stopPropagation()}}),e("div",o({className:"".concat(a.dropdown," ").concat(y?a.showPanelDropdown:""),style:o(o({},null==_?void 0:_.dropdownStyle),y?null==_?void 0:_.showPanelDropdownStyle:{})},{children:e(c,{cognitiveDecisionHeaders:{mainHeader:"Feature Implementation Score - ".concat((null==h?void 0:h.big_enough)||0)},big_enough_block:null===(d=h.big_enough_decision_factors)||void 0===d?void 0:d.big_enough_block,aiReason:{relevance_score:(null===(p=null==h?void 0:h.big_enough_decision_factors)||void 0===p?void 0:p.relevance_score)||0,reason:(null===(g=null==h?void 0:h.big_enough_decision_factors)||void 0===g?void 0:g.score_reason)||"",gap:(null===(v=null==h?void 0:h.big_enough_decision_factors)||void 0===v?void 0:v.gap)||"",id:"big-enough-cd"},customIcons:m,customStyles:f})}))]})]}))};export{u as BigEnoughPanel};
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 l}from"react";import t from"../../icons/BigEnoughIcon.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import{useRequirementAI as s}from"../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./BigEnoughPanel.module.css.js";var u=function(u){var d,p,v,g,m=u.customIcons,f=u.customStyles,h=u.currentUserStory,_=u.panelStyles,b=u.showPanel,y=void 0!==b&&b;s().searchQueryList;var S=r(!!y),P=S[0],k=S[1],w=l(null);return n("div",o({onClick:function(o){return o.stopPropagation()}},{children:[!y&&e("button",o({ref:w,className:a.developerEffortButton,style:null==_?void 0:_.buttonStyle,onClick:function(o){o.stopPropagation(),k(function(o){return!o})}},{children:e(t,{color:null==_?void 0:_.iconColor,size:null==_?void 0:_.iconSize})})),P&&n(i,{children:[e("div",{className:null==a?void 0:a.backdrop,style:y?null==_?void 0:_.showPanelBackdropStyles:null==_?void 0:_.backdropStyle,onClick:function(o){o.stopPropagation(),k(!1)},onWheel:function(o){return o.stopPropagation()}}),e("div",o({className:"".concat(a.dropdown," ").concat(y?a.showPanelDropdown:""),style:o(o({},null==_?void 0:_.dropdownStyle),y?null==_?void 0:_.showPanelDropdownStyle:{})},{children:e(c,{cognitiveDecisionHeaders:{mainHeader:"Feature Implementation Score - ".concat((null==h?void 0:h.big_enough)||0)},big_enough_block:null===(d=h.big_enough_decision_factors)||void 0===d?void 0:d.big_enough_block,aiReason:{relevance_score:(null===(p=null==h?void 0:h.big_enough_decision_factors)||void 0===p?void 0:p.relevance_score)||0,reason:(null===(v=null==h?void 0:h.big_enough_decision_factors)||void 0===v?void 0:v.score_reason)||"",gap:(null===(g=null==h?void 0:h.big_enough_decision_factors)||void 0===g?void 0:g.gap)||"",id:"big-enough-cd"},customIcons:m,customStyles:f})}))]})]}))};export{u as BigEnoughPanel};
2
2
  //# sourceMappingURL=BigEnoughPanel.js.map
@@ -1,2 +1,2 @@
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,B=d(),j=B.userStory,D=B.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==j?void 0:j.length){null===(e=A.onInitialize)||void 0===e||e.call(A),1===j.length&&X(!1),j.length>0&&!q&&O(k||j[0].artifactId);var o=c(v(j));M(o)}},[j,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,B,j,D,_,P,R,W,M,V,q,O=o.children,z=o.ButtonComponent,L=o.hideApproveAll,H=void 0!==L&&L,G=o.pageTitle,Y=void 0===G?"Review Generated Requirements":G,J=o.pageDescription,K=void 0===J?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":J,Q=E(),X=Q.selectedUserStoryForApproval,Z=Q.selectedUserStoryIndex,$=Q.artifactTitleIds,ee=Q.labels,oe=Q.config,te=Q.isDisabled,re=Q.isEditingSegment,ne=Q.handleSaveUserStory,ie=Q.setCurrentContentId,le=Q.showNotification,ae=d(),se=ae.customStyles,de=ae.customIcons,ce=n(!1),ve=ce[0],pe=ce[1],ue=l(function(){if(X)if(re)le("warn","Warning!",ee.unsavedChangesWarning,3e3);else{var e=f(X);ne(Z,e),ie("")}},[X,Z,re,ee,ne,ie,le]);if(!X)return null;var fe=$[Z]||"",me="APPROVED"===X.approval_status,Se=null!=(null==X?void 0:X.big_enough)&&!Number.isNaN(X.big_enough)&&!!(null==X?void 0:X.big_enough_decision_factors);return r("div",e({className:g.content,style:e({},null===(a=null===(i=null==se?void 0:se.approvalScreen)||void 0===i?void 0:i.content)||void 0===a?void 0:a.content),"data-lsc-ui-page-title":Y,"data-lsc-ui-page-description":K},{children:[r("div",e({className:g.header,style:e({},null===(v=null===(c=null===(s=null==se?void 0:se.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==se?void 0:se.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==se?void 0:se.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==se?void 0:se.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==se?void 0:se.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerArtifactId)},{children:fe}))]})),t("p",e({className:g.headerTitle,style:e({},null===(j=null===(B=null===(k=null==se?void 0:se.approvalScreen)||void 0===k?void 0:k.body)||void 0===B?void 0:B.contentSegment)||void 0===j?void 0:j.headerTitle)},{children:null==X?void 0:X.title}))]})),r("div",e({className:null==g?void 0:g.containerStyle,style:null===(_=null===(D=null==se?void 0:se.approvalScreen)||void 0===D?void 0:D.BigEnoughStyles)||void 0===_?void 0:_.containerStyle},{children:[Se&&t("button",e({className:g.developerEffortButton,style:null===(R=null===(P=null==se?void 0:se.approvalScreen)||void 0===P?void 0:P.BigEnoughStyles)||void 0===R?void 0:R.buttonStyle,onClick:function(){return pe(!ve)}},{children:t(T,{})})),!H&&oe.showApproveAllButton&&t("div",e({className:g.headerRight},{children:me?t(h,{status:"APPROVED",label:ee.approved}):z?t(z,e({type:"fill",onClick:ue,isDisable:te,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:ee.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:ee.approveAll})]}))})):r("button",e({onClick:ue,disabled:te,className:g.approveAllButtonDefault,style:e({},null===(M=null===(W=null==se?void 0:se.approvalScreen)||void 0===W?void 0:W.content)||void 0===M?void 0:M.approveAllButtonDefault)},{children:[t(y,{size:16,color:"white"}),t("span",{children:ee.approveAll})]}))}))]}))]})),ve&&Se&&t("div",e({className:g.bigEnoughWrapper},{children:t(N,{customIcons:de,customStyles:null===(V=null==se?void 0:se.approvalScreen)||void 0===V?void 0:V.aiReasoningCitaionStyles,currentUserStory:X,panelStyles:null===(q=null==se?void 0:se.approvalScreen)||void 0===q?void 0:q.BigEnoughStyles,showPanel:ve})})),O]}))},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};
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 d}from"react";import{useRequirementAI as s}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as u,getFirstUnapprovedStoryId as p,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as S}from"../../hooks/useApprovalStatus.js";import{ContentSegment as m}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 E,useUserStoryApprovalScreen as w}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,m=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,w=r.isDisabled,N=void 0!==w&&w,T=r.children,F=r.classNames,B=r.selectedArtifactId,k=s(),j=k.userStory,D=k.customStyles,_=e(e({},U),y),P=e(e({},x),C),R=n([]),W=R[0],M=R[1],V=n(""),q=V[0],z=V[1],O=n(""),L=O[0],H=O[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];d(function(){Z.current=te},[te]),d(function(){var e;if(null==j?void 0:j.length){null===(e=A.onInitialize)||void 0===e||e.call(A),1===j.length&&X(!1),j.length>0&&!q&&z(B||j[0].artifactId);var o=c(v(j));M(o)}},[j,B]),d(function(){B&&B!==q&&z(B)},[B,q]),d(function(){if(te){var e=u(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=p(r,t.artifactId);i&&z(i)}return n[e]=t,n})},[]),ne=l(function(e){var o=Z.current;if(o){var t=u(o,e);"NA"!==t&&(H(""),setTimeout(function(){H(t)},0))}},[]);S({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:z,selectedUserStoryIndex:oe,selectedUserStoryForApproval:te,currentContentId:L,setCurrentContentId:H,isEditingSegment:Y,setIsEditingSegment:J,isSidebarExpanded:Q,setIsSidebarExpanded:X,artifactTitleIds:m,config:_,labels:P,callbacks:A,isDisabled:N,handleSaveUserStory:re,handleUpdateContentId:ne,showNotification:$,scrollToElement:ee};return t(E.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=w(),l=i.isSidebarExpanded,a=i.selectedStoryArtifactId,d=i.setSelectedStoryArtifactId,s=i.userStoryForApproval,c=i.isEditingSegment,v=i.artifactTitleIds;return o?t(o,{isSidebarExpanded:l,selectedStoryArtifactId:a,setSelectedStoryArtifactId:d,userStoryForApproval:s,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=w(),d=a.isSidebarExpanded,s=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 s(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":d?"Collapse sidebar":"Expand sidebar",type:"button"},{children:t(d?v:c,{})}))}))},Content:function(o){var i,a,d,c,v,u,p,S,m,A,I,C,E,U,x,F,B,k,j,D,_,P,R,W,M,V,q,z,O,L,H,G=o.children,Y=o.ButtonComponent,J=o.hideApproveAll,K=void 0!==J&&J,Q=o.pageTitle,X=void 0===Q?"Review Generated Requirements":Q,Z=o.pageDescription,$=void 0===Z?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":Z,ee=w(),oe=ee.selectedUserStoryForApproval,te=ee.selectedUserStoryIndex,re=ee.artifactTitleIds,ne=ee.labels,ie=ee.config,le=ee.isDisabled,ae=ee.isEditingSegment,de=ee.handleSaveUserStory,se=ee.setCurrentContentId,ce=ee.showNotification,ve=s(),ue=ve.customStyles,pe=ve.customIcons,fe=n(!1),Se=fe[0],me=fe[1],he=l(function(){if(oe)if(ae)ce("warn","Warning!",ne.unsavedChangesWarning,3e3);else{var e=f(oe);de(te,e),se("")}},[oe,te,ae,ne,de,se,ce]);if(!oe)return null;var ge=re[te]||"",ye="APPROVED"===oe.approval_status,be=null!=(null==oe?void 0:oe.big_enough)&&!Number.isNaN(oe.big_enough)&&!!(null==oe?void 0:oe.big_enough_decision_factors);return r("div",e({className:g.content,style:e({},null===(a=null===(i=null==ue?void 0:ue.approvalScreen)||void 0===i?void 0:i.content)||void 0===a?void 0:a.content),"data-lsc-ui-page-title":X,"data-lsc-ui-page-description":$},{children:[r("div",e({className:g.header,style:e({},null===(v=null===(c=null===(d=null==ue?void 0:ue.approvalScreen)||void 0===d?void 0:d.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===(p=null===(u=null==ue?void 0:ue.approvalScreen)||void 0===u?void 0:u.content)||void 0===p?void 0:p.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(A=null===(m=null===(S=null==ue?void 0:ue.approvalScreen)||void 0===S?void 0:S.body)||void 0===m?void 0:m.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[t(b,{size:16,color:(null===(E=null===(C=null===(I=null==ue?void 0:ue.approvalScreen)||void 0===I?void 0:I.body)||void 0===C?void 0:C.contentSegment)||void 0===E?void 0:E.bookMarkColor)||"#8C8C8C"}),t("h2",e({className:g.headerArtifactId,style:e({},null===(F=null===(x=null===(U=null==ue?void 0:ue.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerArtifactId)},{children:ge}))]})),t("p",e({className:g.headerTitle,style:e({},null===(j=null===(k=null===(B=null==ue?void 0:ue.approvalScreen)||void 0===B?void 0:B.body)||void 0===k?void 0:k.contentSegment)||void 0===j?void 0:j.headerTitle)},{children:null==oe?void 0:oe.title}))]})),r("div",e({className:null==g?void 0:g.containerStyle,style:null===(_=null===(D=null==ue?void 0:ue.approvalScreen)||void 0===D?void 0:D.BigEnoughStyles)||void 0===_?void 0:_.containerStyle},{children:[be&&t("button",e({className:g.developerEffortButton,style:null===(R=null===(P=null==ue?void 0:ue.approvalScreen)||void 0===P?void 0:P.BigEnoughStyles)||void 0===R?void 0:R.buttonStyle,onClick:function(){return me(!Se)}},{children:t(T,{color:null===(M=null===(W=null==ue?void 0:ue.approvalScreen)||void 0===W?void 0:W.BigEnoughStyles)||void 0===M?void 0:M.iconColor,size:null===(q=null===(V=null==ue?void 0:ue.approvalScreen)||void 0===V?void 0:V.BigEnoughStyles)||void 0===q?void 0:q.iconSize})})),!K&&ie.showApproveAllButton&&t("div",e({className:g.headerRight},{children:ye?t(h,{status:"APPROVED",label:ne.approved}):Y?t(Y,e({type:"fill",onClick:he,isDisable:le,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:ne.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:ne.approveAll})]}))})):r("button",e({onClick:he,disabled:le,className:g.approveAllButtonDefault,style:e({},null===(O=null===(z=null==ue?void 0:ue.approvalScreen)||void 0===z?void 0:z.content)||void 0===O?void 0:O.approveAllButtonDefault)},{children:[t(y,{size:16,color:"white"}),t("span",{children:ne.approveAll})]}))}))]}))]})),Se&&be&&t("div",e({className:g.bigEnoughWrapper},{children:t(N,{customIcons:null==pe?void 0:pe.userStoryIcons,customStyles:null===(L=null==ue?void 0:ue.approvalScreen)||void 0===L?void 0:L.aiReasoningCitaionStyles,currentUserStory:oe,panelStyles:null===(H=null==ue?void 0:ue.approvalScreen)||void 0===H?void 0:H.BigEnoughStyles,showPanel:Se})})),G]}))},Body:function(o){var n,i,a,d=o.children,c=o.EditorComponent,v=o.ViewerComponent,u=w(),p=u.selectedUserStoryForApproval,f=u.selectedUserStoryIndex,S=u.artifactTitleIds,h=u.handleSaveUserStory,y=s().customStyles,b=l(function(e){h(f,e)},[f,h]),A=l(function(o,t){var r;if(p){var n=e(e({},p),{sub_features:null===(r=p.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===o?t:e})});h(f,n)}},[p,f,h]),I=l(function(o){var t;if(p){var r=e(e({},p),{sub_features:null===(t=p.sub_features)||void 0===t?void 0:t.filter(function(e,t){return t!==o})});h(f,r)}},[p,f,h]);if(!p)return null;var C=S[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(m,{userStoryForApproval:p,artifactTitleId:C,onSaveMainStoryContent:b,EditorComponent:c,ViewerComponent:v}),null===(a=p.sub_features)||void 0===a?void 0:a.map(function(e,o){return t(m,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+o)),isSubFeature:!0,subFeatureIndex:o,onSaveSubFeature:A,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),d]}))}});export{F as default};
2
2
  //# sourceMappingURL=UserStoryApprovalScreen.js.map
@@ -1,2 +1,2 @@
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};
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 u}from"../../../../icons/ChevronDownIcon.js";import{useRequirementAI as a}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as c}from"../../../story-screen/BigEnoughPanel.js";var s=function(s){var p,m,f,S,h,y,g,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=a(),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]),uo=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]),ao=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===(y=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===y?void 0:y.header)},{children:[e("div",o({className:r.headerContent,style:o({},null===(C=null===(b=null===(g=null==no?void 0:no.approvalScreen)||void 0===g?void 0:g.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:null==lo?void 0:lo.userStoryIcons,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:u,{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:uo,onApproveContent:J?to:ao,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
- 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};
1
+ import{__assign as C}from"tslib";import{jsxs as L,jsx as t}from"react/jsx-runtime";var r=function(r){var i=r.color,o=void 0===i?"#334155":i,e=r.size,s=void 0===e?18:e,l=r.className;return L("svg",C({width:s,height:s,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l},{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:o,stroke:o,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:o,stroke:o,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:o,stroke:o,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:o,stroke:o,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:o,stroke:o,strokeWidth:.2})]}))};export{r as default};
2
2
  //# sourceMappingURL=BigEnoughIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as n}from"tslib";var r=function(n){var r=[];try{for(var t="<BLOCK_STREAM_START>",a="<BLOCK_STREAM_END>",c=0;;){var e=n.indexOf(t,c);if(-1===e)break;var o=n.indexOf(a,e+20);if(-1===o)break;var i=n.slice(e+20,o).trim();r.push(JSON.parse(i)),c=o+18}}catch(n){console.error("Error in extracting blocks from stream",n)}finally{return r}};function t(r,t,e,o){var i=[],u="",s=[],l="";try{var v=function(r){return r.replace(/<a\s+(?:(table="true")\s+)?href=(\\"|")ai_reasoning\$(\d+)(\\"|")>([\s\S]*?)<\/a>/g,function(r,o,u,l,v,h){var p,d,f,_,m,g="".concat(l,"<BLOCK_NUMBER>").concat(t,"<STORY_NUMBER>").concat(e),b=n([],h.matchAll(/<gpt_citation\s+id=(?:\\"|")(\d+)(?:\\"|")[^>]*>([\s\S]*?)<\/gpt_citation>/g),!0),S=new Map;b.forEach(function(n){var r=n[1],t=n[0];S.set(r,t)});var T=h.match(/<reason(?:\s+source="([^"]*)")?>([\s\S]*?)<\/reason>/),E=h.match(/<gap(?:\s+source="([^"]*)")?>([\s\S]*?)<\/gap>/),R=h.match(/<relevance_score>([\s\S]*?)<\/relevance_score>/),O=(null===(p=null==T?void 0:T[2])||void 0===p?void 0:p.trim())||"",x=(null===(d=null==E?void 0:E[2])||void 0===d?void 0:d.trim())||"";return O=a(O,g),x=a(x,g),S.forEach(function(n,r){var t="".concat(g,"<GPT_CITATION_ID>").concat(r);s.push(c(n,t))}),i.push({id:g,reason:O,reasonSource:(null===(f=null==T?void 0:T[1])||void 0===f?void 0:f.trim())||"",gap:x,gapSource:(null===(_=null==E?void 0:E[1])||void 0===_?void 0:_.trim())||"",relevance_score:Number(null===(m=null==R?void 0:R[1])||void 0===m?void 0:m.trim())||0}),"<a ".concat(o?'table="true"':""," href=").concat(u,"ai_reasoning$").concat(g).concat(v,">Source</a>")})};u=v(r),o&&(l=v(o))}catch(n){console.error("Error in extracting AI Reasoning from this block:",r)}finally{return{outputText:u,reasonings:i,gpt_citation:s,processedDescription:l}}}function a(n,r){return n?n.replace(/<gpt_citation_here\s+id=(?:\\"|")(\d+)(?:\\"|")[^>]*>/g,function(n,t){var a="".concat(r,"<GPT_CITATION_ID>").concat(t);return'<a href="gpt_citation$'.concat(a,'">Source</a>')}):n}function c(n,r){var t=function(r){for(var t,a=new RegExp("<".concat(r,">([\\s\\S]*?)<\\/").concat(r,">"),"gi"),c=[];null!==(t=a.exec(n));)c.push(t[1].trim());return c},a=t("domain"),c=t("paraphrase");return{citation_number:r,customMetadata:{type:"gpt_citation",data_sources:t("data_sources"),training_data_title:a,paraphrase:c}}}var e=function(n,r,t){var a=n.includes("<h1><b>Title</b></h1>\n\n")?n:t?"<h1><b>Title</b></h1>\n\n".concat(t," \n").concat(n):n;return a=a.includes("<h1><b>Requirement Type</b></h1>\n\n")?a:r?"<h1><b>Requirement Type</b></h1>\n\n".concat(r," \n").concat(a):a};function o(n){try{var r=n.match(/<h2>\s*(?:<b>)?Description(?:<\/b>)?\s*<\/h2>\s*([\s\S]*?)(?=\s*<h2>|$)/i);if(r)return r[1].trim()}catch(n){}return null}export{r as extractBlockStreams,o as extractDescription,c as parseGptCitation,t as processAIReasoningFromBlocks,e as processUserStoryValue,a as replaceGptCitation};
1
+ import{__spreadArray as n}from"tslib";var r=function(n){var r=[];try{for(var t="<BLOCK_STREAM_START>",a="<BLOCK_STREAM_END>",c=0;;){var o=n.indexOf(t,c);if(-1===o)break;var e=n.indexOf(a,o+20);if(-1===e)break;var i=n.slice(o+20,e).trim();r.push(JSON.parse(i)),c=e+18}}catch(n){console.error("Error in extracting blocks from stream",n)}finally{return r}};function t(r,t,o,e){var i=[],s="",u=[],l="";try{var v=function(r){return r.replace(/<a\s+(?:(table="true")\s+)?href=(\\"|")ai_reasoning\$(\d+)(\\"|")>([\s\S]*?)<\/a>/g,function(r,e,s,l,v,h){var p,d,f,_,g,m="".concat(l,"<BLOCK_NUMBER>").concat(t,"<STORY_NUMBER>").concat(o),b=n([],h.matchAll(/<gpt_citation\s+id=(?:\\"|")(\d+)(?:\\"|")[^>]*>([\s\S]*?)<\/gpt_citation>/g),!0),S=new Map;b.forEach(function(n){var r=n[1],t=n[0];S.set(r,t)}),console.log("gptCitationMatches",b,S);var T=h.match(/<reason(?:\s+source="([^"]*)")?>([\s\S]*?)<\/reason>/),E=h.match(/<gap(?:\s+source="([^"]*)")?>([\s\S]*?)<\/gap>/),R=h.match(/<relevance_score>([\s\S]*?)<\/relevance_score>/),O=(null===(p=null==T?void 0:T[2])||void 0===p?void 0:p.trim())||"",x=(null===(d=null==E?void 0:E[2])||void 0===d?void 0:d.trim())||"";return O=a(O,m),x=a(x,m),S.forEach(function(n,r){var t="".concat(m,"<GPT_CITATION_ID>").concat(r);u.push(c(n,t))}),i.push({id:m,reason:O,reasonSource:(null===(f=null==T?void 0:T[1])||void 0===f?void 0:f.trim())||"",gap:x,gapSource:(null===(_=null==E?void 0:E[1])||void 0===_?void 0:_.trim())||"",relevance_score:Number(null===(g=null==R?void 0:R[1])||void 0===g?void 0:g.trim())||0}),"<a ".concat(e?'table="true"':""," href=").concat(s,"ai_reasoning$").concat(m).concat(v,">Source</a>")})};s=v(r),e&&(l=v(e))}catch(n){console.error("Error in extracting AI Reasoning from this block:",r)}finally{return{outputText:s,reasonings:i,gpt_citation:u,processedDescription:l}}}function a(n,r){return n?n.replace(/<gpt_citation_here\s+id=(?:\\"|")(\d+)(?:\\"|")[^>]*>/g,function(n,t){var a="".concat(r,"<GPT_CITATION_ID>").concat(t);return'<a href="gpt_citation$'.concat(a,'">Source</a>')}):n}function c(n,r){var t=function(r){for(var t,a=new RegExp("<".concat(r,">([\\s\\S]*?)<\\/").concat(r,">"),"gi"),c=[];null!==(t=a.exec(n));)c.push(t[1].trim());return c},a=t("domain"),c=t("paraphrase");return{citation_number:r,customMetadata:{type:"gpt_citation",data_sources:t("data_sources"),training_data_title:a,paraphrase:c}}}var o=function(n,r,t){var a=n.includes("<h1><b>Title</b></h1>\n\n")?n:t?"<h1><b>Title</b></h1>\n\n".concat(t," \n").concat(n):n;return a=a.includes("<h1><b>Requirement Type</b></h1>\n\n")?a:r?"<h1><b>Requirement Type</b></h1>\n\n".concat(r," \n").concat(a):a};function e(n){try{var r=n.match(/<h2>\s*(?:<b>)?Description(?:<\/b>)?\s*<\/h2>\s*([\s\S]*?)(?=\s*<h2>|$)/i);if(r)return r[1].trim()}catch(n){}return null}export{r as extractBlockStreams,e as extractDescription,c as parseGptCitation,t as processAIReasoningFromBlocks,o as processUserStoryValue,a as replaceGptCitation};
2
2
  //# sourceMappingURL=proccess-stream.utils.js.map
@@ -259,6 +259,8 @@ export interface BigEnoughPanelCustomStyles {
259
259
  dropdownStyle?: React.CSSProperties;
260
260
  showPanelDropdownStyle?: React.CSSProperties;
261
261
  showPanelBackdropStyles?: React.CSSProperties;
262
+ iconColor?: string;
263
+ iconSize?: number | string;
262
264
  }
263
265
  interface IRequirementAIContext {
264
266
  userStory: IUserStory[];
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/Requir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AAC,EAAE,gBAAgB,EAAG,CAAC;IAElC,mBAAmB,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,OAA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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 +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;;;6CAwEtD,CAAC"}
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;;;6CA2EtD,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;AA6D9C,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;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
+ {"version":3,"file":"UserStoryApprovalScreen.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScre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7C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAkKD,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,3 +1,8 @@
1
- declare const BigEnoughIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ type BigEnoughIconProps = {
2
+ color?: string;
3
+ size?: number | string;
4
+ className?: string;
5
+ };
6
+ declare const BigEnoughIcon: ({ color, size, className, }: BigEnoughIconProps) => import("react/jsx-runtime").JSX.Element;
2
7
  export default BigEnoughIcon;
3
8
  //# sourceMappingURL=BigEnoughIcon.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"BigEnoughIcon.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/icons/BigEnoughIcon.tsx"],"names":[],"mappings":"AAEA,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,aAAa,gCAIhB,kBAAkB,4CAwCpB,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"proccess-stream.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/proccess-stream.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,eAAO,MAAM,mBAAmB,UAAW,MAAM,sBA4BhD,CAAA;AAGD,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,GACrB;IACC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;CAChC,CA+FA;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAU3E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,WAAW,CAkCvE;AAED,eAAO,MAAM,qBAAqB,UAAW,MAAM,iBAAiB,MAAM,SAAS,MAAM,WAIxF,CAAA;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAc9D"}
1
+ {"version":3,"file":"proccess-stream.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/proccess-stream.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,eAAO,MAAM,mBAAmB,UAAW,MAAM,sBA4BhD,CAAA;AAGD,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,GACrB;IACC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;CAChC,CAiGA;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAU3E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,WAAW,CAkCvE;AAED,eAAO,MAAM,qBAAqB,UAAW,MAAM,iBAAiB,MAAM,SAAS,MAAM,WAIxF,CAAA;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAc9D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.113",
3
+ "version": "0.0.115",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",