@e-llm-studio/requirement-ai 0.0.348 → 0.0.350

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("lucide-react"),n=require("../../utils/user-story.utils.js"),i=require("../userstory-with-citation/UserStoryWithCitation.js"),o=require("./PartialRequirementContent.module.css.js"),a=require("@mui/material"),d=require("../RequirementAIWrapper/RequirementAIWrapper.js"),s=require("../RichTextEditor/RichTextEditor.js");const r=/<updated\b[^>]*>/gi,u=({loadingPartialRequirements:u,localUserStory:v,setLocalUserStory:c,onCraFlowDiffAgentAction:m,disableEditing:p,isCraflow:C=!0,onCraAccept:y,onCraReject:h,CDNeededInChip:g,title:f,showPendingChangesBanner:S=!1,onApproveAll:q,onCitationLinkClick:j})=>{var x,R,P,B,N,b,A,w,k,E,D,T,U,I,L,W,z,F,M,_,H,O,V,X,G,J,K,Q,Y,Z,$,ee,te,le,ne,ie;const[oe,ae]=t.useState(!1),[de,se]=t.useState(""),{customStyles:re,segmentComponentConfig:ue}=d.useRequirementAI();t.useEffect(()=>{p&&ae(!1)},[p]),t.useEffect(()=>{var e;se(null===(e=null==v?void 0:v[0])||void 0===e?void 0:e.value)},[v]);const ve=t.useMemo(()=>{var e;return(e=>{if(!e)return 0;const t=e.match(r);return t?t.length:0})(null===(e=null==v?void 0:v[0])||void 0===e?void 0:e.value)},[v]),ce=null===(x=null==v?void 0:v[0])||void 0===x?void 0:x.confidenceScore;if(u)return e.jsx("div",{className:o.default.skeletonWrapper,style:null===(R=null==re?void 0:re.PartialRequirementContentStyles)||void 0===R?void 0:R.skeletonWrapper,children:[1,2,3,4,5].map(t=>{var l;return e.jsx("div",{className:o.default.skeletonLine,style:null===(l=null==re?void 0:re.PartialRequirementContentStyles)||void 0===l?void 0:l.skeletonLine},t)})});const me=!de||""===de.trim();return e.jsxs("div",{className:o.default.wrapper,style:null===(P=null==re?void 0:re.PartialRequirementContentStyles)||void 0===P?void 0:P.wrapper,children:[e.jsxs("div",{className:o.default.header,style:null===(B=null==re?void 0:re.PartialRequirementContentStyles)||void 0===B?void 0:B.header,children:[f&&e.jsx("span",{className:o.default.headerTitle,style:null===(N=null==re?void 0:re.PartialRequirementContentStyles)||void 0===N?void 0:N.headerTitle,children:f}),e.jsxs("div",{className:o.default.headerRight,style:null===(b=null==re?void 0:re.PartialRequirementContentStyles)||void 0===b?void 0:b.headerRight,children:[ce&&e.jsx("span",{className:o.default.confidenceBadge,style:null===(A=null==re?void 0:re.PartialRequirementContentStyles)||void 0===A?void 0:A.confidenceBadge,children:ce}),e.jsx("div",{className:o.default.actionBar,style:null===(w=null==re?void 0:re.PartialRequirementContentStyles)||void 0===w?void 0:w.actionBar,children:oe?e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:o.default.editingBadge,style:null===(T=null==re?void 0:re.PartialRequirementContentStyles)||void 0===T?void 0:T.editingBadge,children:[e.jsx("span",{className:o.default.editingDot,style:null===(U=null==re?void 0:re.PartialRequirementContentStyles)||void 0===U?void 0:U.editingDot}),"Editing"]}),e.jsx("div",{className:o.default.btnDivider,style:null===(I=null==re?void 0:re.PartialRequirementContentStyles)||void 0===I?void 0:I.btnDivider}),e.jsx(a.Tooltip,{title:me?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:{...null===(L=null==re?void 0:re.PartialRequirementContentStyles)||void 0===L?void 0:L.headerTooltip}}},children:e.jsx("span",{children:e.jsx("button",{className:o.default.saveBtn,style:{...null===(W=null==re?void 0:re.PartialRequirementContentStyles)||void 0===W?void 0:W.actionBtn,...null===(z=null==re?void 0:re.PartialRequirementContentStyles)||void 0===z?void 0:z.saveBtn,opacity:me?.5:1,cursor:me?"not-allowed":"pointer"},onClick:()=>{me||(c(e=>{const t={...e[0],value:n.postprocessUserStoryAfterEdit(de)};return null==m||m("accept",[t]),[t]}),ae(!1))},disabled:me,children:e.jsx(l.Save,{size:16})})})}),e.jsx("button",{className:o.default.cancelBtn,style:{...null===(F=null==re?void 0:re.PartialRequirementContentStyles)||void 0===F?void 0:F.actionBtn,...null===(M=null==re?void 0:re.PartialRequirementContentStyles)||void 0===M?void 0:M.cancelBtn},onClick:()=>{var e;se(null===(e=null==v?void 0:v[0])||void 0===e?void 0:e.value),ae(!1)},title:"Discard changes","aria-label":"Discard changes",children:e.jsx(l.X,{size:16})})]}):e.jsx(a.Tooltip,{title:p?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:{...null===(k=null==re?void 0:re.PartialRequirementContentStyles)||void 0===k?void 0:k.headerTooltip}}},children:e.jsx("span",{children:e.jsx("button",{className:o.default.editBtn,style:{...null===(E=null==re?void 0:re.PartialRequirementContentStyles)||void 0===E?void 0:E.actionBtn,...null===(D=null==re?void 0:re.PartialRequirementContentStyles)||void 0===D?void 0:D.editBtn,opacity:p?.5:1,cursor:p?"not-allowed":"pointer"},onClick:()=>{p||ae(!0)},disabled:p,"aria-label":"Edit requirement",children:e.jsx(l.Pencil,{size:16})})})})})]})]}),S&&!oe&&ve>0&&e.jsxs("div",{className:o.default.pendingChangesBanner,style:null===(H=null===(_=null==re?void 0:re.PartialRequirementContentStyles)||void 0===_?void 0:_.pendingChangesBanner)||void 0===H?void 0:H.container,children:[e.jsxs("div",{className:o.default.pendingChangesLeft,style:null===(V=null===(O=null==re?void 0:re.PartialRequirementContentStyles)||void 0===O?void 0:O.pendingChangesBanner)||void 0===V?void 0:V.left,children:[e.jsx(l.Clock,{size:16,className:o.default.pendingChangesIcon,style:null===(G=null===(X=null==re?void 0:re.PartialRequirementContentStyles)||void 0===X?void 0:X.pendingChangesBanner)||void 0===G?void 0:G.icon}),e.jsxs("span",{style:null===(K=null===(J=null==re?void 0:re.PartialRequirementContentStyles)||void 0===J?void 0:J.pendingChangesBanner)||void 0===K?void 0:K.text,children:["Pending changes (",ve,")"]})]}),e.jsxs("button",{type:"button",className:o.default.approveAllBtn,style:null===(Y=null===(Q=null==re?void 0:re.PartialRequirementContentStyles)||void 0===Q?void 0:Q.pendingChangesBanner)||void 0===Y?void 0:Y.approveAllButton,onClick:()=>{null==q||q(v)},"aria-label":"Approve all pending changes",children:[e.jsx(l.Check,{size:14,style:null===($=null===(Z=null==re?void 0:re.PartialRequirementContentStyles)||void 0===Z?void 0:Z.pendingChangesBanner)||void 0===$?void 0:$.approveAllIcon}),"Approve All"]})]}),e.jsx("div",{className:o.default.body,style:null===(ee=null==re?void 0:re.PartialRequirementContentStyles)||void 0===ee?void 0:ee.body,children:oe?e.jsx("div",{className:o.default.editorContainer,style:null===(te=null==re?void 0:re.PartialRequirementContentStyles)||void 0===te?void 0:te.editorContainer,children:e.jsx(s.default,{minHeight:"100%",height:"100%",type:"string",value:n.preprocessUserStoryForEdit(n.formatMarkdown((null===(le=null==v?void 0:v[0])||void 0===le?void 0:le.value)||"")||""),handleUpdateState:(e,t)=>{se(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}):e.jsx("div",{className:o.default.viewContainer,style:null===(ne=null==re?void 0:re.PartialRequirementContentStyles)||void 0===ne?void 0:ne.viewContainer,children:e.jsx(i.default,{message:n.formatMarkdown((null===(ie=null==v?void 0:v[0])||void 0===ie?void 0:ie.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:v,setCraUserStory:c,onCraFlowDiffAgentAction:m,displayActionButtons:!oe},isCraflow:C,onCraAccept:y,onCraReject:h,customStyles:null==re?void 0:re.UserStoryWithCitationCustomStyles,CDNeededInChip:g,onCitationLinkClick:j})})})]})};exports.PartialRequirementContent=u,exports.default=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),t=require("lucide-react"),n=require("../../utils/user-story.utils.js"),i=require("../userstory-with-citation/UserStoryWithCitation.js"),o=require("./PartialRequirementContent.module.css.js"),a=require("@mui/material"),d=require("../RequirementAIWrapper/RequirementAIWrapper.js"),s=require("../RichTextEditor/RichTextEditor.js");const r=/<updated\b[^>]*>/gi,u=({loadingPartialRequirements:u,localUserStory:v,setLocalUserStory:c,onCraFlowDiffAgentAction:m,disableEditing:C,isCraflow:p=!0,onCraAccept:y,onCraReject:h,CDNeededInChip:g,title:f,showPendingChangesBanner:S=!1,onApproveAll:q,onCitationLinkClick:j})=>{var x,R,P,B,N,b,A,w,k,E,D,T,U,I,L,W,z,F,M,_,H,O,V,X,G,J,K,Q,Y,Z,$,ee,le,te,ne,ie;const[oe,ae]=l.useState(!1),[de,se]=l.useState(""),{customStyles:re,segmentComponentConfig:ue}=d.useRequirementAI();l.useEffect(()=>{C&&ae(!1)},[C]),l.useEffect(()=>{var e;se(null===(e=null==v?void 0:v[0])||void 0===e?void 0:e.value)},[v]);const ve=l.useMemo(()=>{var e;return(e=>{if(!e)return 0;const l=e.match(r);return l?l.length:0})(null===(e=null==v?void 0:v[0])||void 0===e?void 0:e.value)},[v]),ce=null===(x=null==v?void 0:v[0])||void 0===x?void 0:x.confidenceScore;if(u)return e.jsx("div",{className:o.default.skeletonWrapper,style:null===(R=null==re?void 0:re.PartialRequirementContentStyles)||void 0===R?void 0:R.skeletonWrapper,children:[1,2,3,4,5].map(l=>{var t;return e.jsx("div",{className:o.default.skeletonLine,style:null===(t=null==re?void 0:re.PartialRequirementContentStyles)||void 0===t?void 0:t.skeletonLine},l)})});const me=!de||""===de.trim();return e.jsxs("div",{className:o.default.wrapper,style:null===(P=null==re?void 0:re.PartialRequirementContentStyles)||void 0===P?void 0:P.wrapper,children:[e.jsxs("div",{className:o.default.header,style:null===(B=null==re?void 0:re.PartialRequirementContentStyles)||void 0===B?void 0:B.header,children:[f&&e.jsx("span",{className:o.default.headerTitle,style:null===(N=null==re?void 0:re.PartialRequirementContentStyles)||void 0===N?void 0:N.headerTitle,children:f}),e.jsxs("div",{className:o.default.headerRight,style:null===(b=null==re?void 0:re.PartialRequirementContentStyles)||void 0===b?void 0:b.headerRight,children:[ce&&e.jsx("span",{className:o.default.confidenceBadge,style:null===(A=null==re?void 0:re.PartialRequirementContentStyles)||void 0===A?void 0:A.confidenceBadge,children:ce}),e.jsx("div",{className:o.default.actionBar,style:null===(w=null==re?void 0:re.PartialRequirementContentStyles)||void 0===w?void 0:w.actionBar,children:oe?e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:o.default.editingBadge,style:null===(T=null==re?void 0:re.PartialRequirementContentStyles)||void 0===T?void 0:T.editingBadge,children:[e.jsx("span",{className:o.default.editingDot,style:null===(U=null==re?void 0:re.PartialRequirementContentStyles)||void 0===U?void 0:U.editingDot}),"Editing"]}),e.jsx("div",{className:o.default.btnDivider,style:null===(I=null==re?void 0:re.PartialRequirementContentStyles)||void 0===I?void 0:I.btnDivider}),e.jsx(a.Tooltip,{title:me?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:{...null===(L=null==re?void 0:re.PartialRequirementContentStyles)||void 0===L?void 0:L.headerTooltip}}},children:e.jsx("span",{children:e.jsx("button",{className:o.default.saveBtn,style:{...null===(W=null==re?void 0:re.PartialRequirementContentStyles)||void 0===W?void 0:W.actionBtn,...null===(z=null==re?void 0:re.PartialRequirementContentStyles)||void 0===z?void 0:z.saveBtn,opacity:me?.5:1,cursor:me?"not-allowed":"pointer"},onClick:()=>{me||(c(e=>{const l={...e[0],value:n.postprocessUserStoryAfterEdit(de)};return null==m||m("manual",[l]),[l]}),ae(!1))},disabled:me,children:e.jsx(t.Save,{size:16})})})}),e.jsx("button",{className:o.default.cancelBtn,style:{...null===(F=null==re?void 0:re.PartialRequirementContentStyles)||void 0===F?void 0:F.actionBtn,...null===(M=null==re?void 0:re.PartialRequirementContentStyles)||void 0===M?void 0:M.cancelBtn},onClick:()=>{var e;se(null===(e=null==v?void 0:v[0])||void 0===e?void 0:e.value),ae(!1)},title:"Discard changes","aria-label":"Discard changes",children:e.jsx(t.X,{size:16})})]}):e.jsx(a.Tooltip,{title:C?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:{...null===(k=null==re?void 0:re.PartialRequirementContentStyles)||void 0===k?void 0:k.headerTooltip}}},children:e.jsx("span",{children:e.jsx("button",{className:o.default.editBtn,style:{...null===(E=null==re?void 0:re.PartialRequirementContentStyles)||void 0===E?void 0:E.actionBtn,...null===(D=null==re?void 0:re.PartialRequirementContentStyles)||void 0===D?void 0:D.editBtn,opacity:C?.5:1,cursor:C?"not-allowed":"pointer"},onClick:()=>{C||ae(!0)},disabled:C,"aria-label":"Edit requirement",children:e.jsx(t.Pencil,{size:16})})})})})]})]}),S&&!oe&&ve>0&&e.jsxs("div",{className:o.default.pendingChangesBanner,style:null===(H=null===(_=null==re?void 0:re.PartialRequirementContentStyles)||void 0===_?void 0:_.pendingChangesBanner)||void 0===H?void 0:H.container,children:[e.jsxs("div",{className:o.default.pendingChangesLeft,style:null===(V=null===(O=null==re?void 0:re.PartialRequirementContentStyles)||void 0===O?void 0:O.pendingChangesBanner)||void 0===V?void 0:V.left,children:[e.jsx(t.Clock,{size:16,className:o.default.pendingChangesIcon,style:null===(G=null===(X=null==re?void 0:re.PartialRequirementContentStyles)||void 0===X?void 0:X.pendingChangesBanner)||void 0===G?void 0:G.icon}),e.jsxs("span",{style:null===(K=null===(J=null==re?void 0:re.PartialRequirementContentStyles)||void 0===J?void 0:J.pendingChangesBanner)||void 0===K?void 0:K.text,children:["Pending changes (",ve,")"]})]}),e.jsxs("button",{type:"button",className:o.default.approveAllBtn,style:null===(Y=null===(Q=null==re?void 0:re.PartialRequirementContentStyles)||void 0===Q?void 0:Q.pendingChangesBanner)||void 0===Y?void 0:Y.approveAllButton,onClick:()=>{null==q||q(v)},"aria-label":"Approve all pending changes",children:[e.jsx(t.Check,{size:14,style:null===($=null===(Z=null==re?void 0:re.PartialRequirementContentStyles)||void 0===Z?void 0:Z.pendingChangesBanner)||void 0===$?void 0:$.approveAllIcon}),"Approve All"]})]}),e.jsx("div",{className:o.default.body,style:null===(ee=null==re?void 0:re.PartialRequirementContentStyles)||void 0===ee?void 0:ee.body,children:oe?e.jsx("div",{className:o.default.editorContainer,style:null===(le=null==re?void 0:re.PartialRequirementContentStyles)||void 0===le?void 0:le.editorContainer,children:e.jsx(s.default,{minHeight:"100%",height:"100%",type:"string",value:n.preprocessUserStoryForEdit(n.formatMarkdown((null===(te=null==v?void 0:v[0])||void 0===te?void 0:te.value)||"")||""),handleUpdateState:(e,l)=>{se(l)},doNotShowBorderInViewMode:!1,mode:"edit"})}):e.jsx("div",{className:o.default.viewContainer,style:null===(ne=null==re?void 0:re.PartialRequirementContentStyles)||void 0===ne?void 0:ne.viewContainer,children:e.jsx(i.default,{message:n.formatMarkdown((null===(ie=null==v?void 0:v[0])||void 0===ie?void 0:ie.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:v,setCraUserStory:c,onCraFlowDiffAgentAction:m,displayActionButtons:!oe},isCraflow:p,onCraAccept:y,onCraReject:h,customStyles:null==re?void 0:re.UserStoryWithCitationCustomStyles,CDNeededInChip:g,onCitationLinkClick:j})})})]})};exports.PartialRequirementContent=u,exports.default=u;
2
2
  //# sourceMappingURL=PartialRequirementContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react"),l=require("lucide-react"),o=require("./CustomChatCrRedirection.module.css.js"),t=require("../ai-reasoning/AiReasoningCitationContent.js"),n=require("../../icons/CognitiveDecision.js"),a=require("@mui/material");exports.CustomChatCrRedirection=function({isDefaultOpen:r,processItemId:s,isCompleted:d,mode:c,msg:u,type:v,id:p,aiReason:g,text:f,headerText:m,decisionStrength:x,statusUi:h,panelRef:j,onHandleSend:y,onRedirectClick:C,gapType:D,isGenerating:b=!1,customStyles:N,customIcons:I,cognitiveDecisionHeaders:S,metaData:T}){const[R,k]=i.useState(r),q=(null==I?void 0:I.highConfidence)||e.jsx(n.default,{}),B=()=>{"cra"===c?null==y||y(`Discuss ambiguities on ${f}`,p,T):null==y||y(`Deep Dive into ${D} ${m}: ${f}`,p,T)};return e.jsxs("div",{className:[o.default.outerWrapper,b?o.default.outerWrapperDisabled:""].join(" "),style:{...null==N?void 0:N.redirectionOuterWrapper,...b?null==N?void 0:N.redirectionOuterWrapperDisabled:{}},children:[e.jsxs("div",{className:[o.default.card,b?o.default.cardDisabled:o.default.cardInteractive].join(" "),style:{...null==N?void 0:N.redirectionCard,...b?null==N?void 0:N.redirectionCardDisabled:null==N?void 0:N.redirectionCardInteractive},children:[e.jsxs("div",{className:o.default.leftSide,style:null==N?void 0:N.redirectionLeftSide,children:[e.jsx(a.Tooltip,{title:m+" "+f,placement:"top",slotProps:{tooltip:{sx:{...null==N?void 0:N.headerTooltip}}},children:e.jsxs("span",{className:o.default.textBlock,style:null==N?void 0:N.redirectionTextBlock,children:[m&&e.jsxs("span",{className:o.default.headerText,style:null==N?void 0:N.redirectionHeaderText,children:[m,f?" ":""]}),f]})}),e.jsxs("span",{onClick:e=>{e.stopPropagation(),b||k(!R)},className:[o.default.reasoningToggle,b?o.default.reasoningToggleDisabled:o.default.reasoningToggleActive].join(" "),style:{...null==N?void 0:N.reasoningToggle,...b?null==N?void 0:N.reasoningToggleDisabled:null==N?void 0:N.reasoningToggleActive},children:[q,R?e.jsx(l.ChevronUp,{className:o.default.chevronIcon,style:null==N?void 0:N.chevronIcon}):e.jsx(l.ChevronDown,{className:o.default.chevronIcon,style:null==N?void 0:N.chevronIcon})]})]}),d?e.jsx("div",{className:o.default.completeTickWrapper,style:null==N?void 0:N.completeTickWrapper,children:e.jsx(l.Check,{color:(null==N?void 0:N.checkColor)||"green"})}):e.jsxs(e.Fragment,{children:["risk-gap"===c&&e.jsxs("div",{className:o.default.rightSide,style:null==N?void 0:N.redirectionRightSide,children:[e.jsx("button",{disabled:b,className:[o.default.fixButton,b?o.default.fixButtonDisabled:""].join(" "),style:{...null==N?void 0:N.redirectionFixButton,...b?null==N?void 0:N.fixButtonDisabled:{}},onClick:e=>{e.stopPropagation(),b||B()},children:"Fix"}),e.jsx(l.SquareArrowOutUpRight,{onClick:b?void 0:()=>{b||null==C||C({type:v,id:p,aiReason:g,msg:u,meta:{headerText:m,decisionStrength:x,text:f}})},size:18,className:[b?o.default.redirectIconDisabled:o.default.redirectIcon].join(" "),style:{...b?null==N?void 0:N.redirectIconDisabled:null==N?void 0:N.redirectIcon}})]}),"cra"===c&&!r&&e.jsx("div",{className:o.default.rightSide,style:null==N?void 0:N.redirectionRightSide,children:s===p?e.jsx("div",{className:o.default.loaderWrapper,style:null==N?void 0:N.loaderWrapper,children:e.jsx(l.Loader2,{size:16,className:o.default.loaderIcon,color:"grey",style:{animation:"spin 1s linear infinite",...null==N?void 0:N.loaderIcon}})}):e.jsx("button",{className:[o.default.clarifyButton].join(" "),style:{color:b?"grey":"",...null==N?void 0:N.redirectionClarifyButton},disabled:b,onClick:e=>{e.stopPropagation(),B()},children:"Clarify"})})]})]}),R&&e.jsx(t.default,{label:"cra"===c?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==g?void 0:g.Reasoning)||"",gap:(null==g?void 0:g.Gap)||"",relevance_score:Number(null==g?void 0:g.Confidence_score),explanation:(null==g?void 0:g.explanation)||""},onSelectProceed:B,customStyles:null==N?void 0:N.aiReasoningStyles,customIcons:I,cognitiveDecisionHeaders:S})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react"),l=require("lucide-react"),o=require("./CustomChatCrRedirection.module.css.js"),t=require("../ai-reasoning/AiReasoningCitationContent.js"),n=require("../../icons/CognitiveDecision.js"),r=require("@mui/material");exports.CustomChatCrRedirection=function({isDefaultOpen:a,processItemId:s,isCompleted:d,mode:c,msg:u,type:v,id:p,aiReason:g,text:f,headerText:h,decisionStrength:m,statusUi:x,panelRef:j,onHandleSend:y,onRedirectClick:C,gapType:D,isGenerating:b=!1,customStyles:I,customIcons:N,cognitiveDecisionHeaders:S,metaData:T}){const[R,k]=i.useState(a),q=(null==N?void 0:N.highConfidence)||e.jsx(n.default,{}),B=()=>{b||null==C||C({type:v,id:p,aiReason:g,msg:u,meta:{headerText:h,decisionStrength:m,text:f}})},W=()=>{"cra"===c?null==y||y(`Discuss ambiguities on ${f}`,p,T):null==y||y(`Deep Dive into ${D} ${h}: ${f}`,p,T)};return e.jsxs("div",{className:[o.default.outerWrapper,b?o.default.outerWrapperDisabled:""].join(" "),style:{...null==I?void 0:I.redirectionOuterWrapper,...b?null==I?void 0:I.redirectionOuterWrapperDisabled:{}},children:[e.jsxs("div",{className:[o.default.card,b?o.default.cardDisabled:o.default.cardInteractive].join(" "),style:{...null==I?void 0:I.redirectionCard,...b?null==I?void 0:I.redirectionCardDisabled:null==I?void 0:I.redirectionCardInteractive},children:[e.jsxs("div",{className:o.default.leftSide,style:null==I?void 0:I.redirectionLeftSide,children:[e.jsx(r.Tooltip,{title:h+" "+f,placement:"top",slotProps:{tooltip:{sx:{...null==I?void 0:I.headerTooltip}}},children:e.jsxs("span",{className:o.default.textBlock,style:null==I?void 0:I.redirectionTextBlock,children:[h&&e.jsxs("span",{className:o.default.headerText,style:null==I?void 0:I.redirectionHeaderText,children:[h,f?" ":""]}),f]})}),e.jsxs("span",{onClick:e=>{e.stopPropagation(),b||k(!R)},className:[o.default.reasoningToggle,b?o.default.reasoningToggleDisabled:o.default.reasoningToggleActive].join(" "),style:{...null==I?void 0:I.reasoningToggle,...b?null==I?void 0:I.reasoningToggleDisabled:null==I?void 0:I.reasoningToggleActive},children:[q,R?e.jsx(l.ChevronUp,{className:o.default.chevronIcon,style:null==I?void 0:I.chevronIcon}):e.jsx(l.ChevronDown,{className:o.default.chevronIcon,style:null==I?void 0:I.chevronIcon})]})]}),d?e.jsx("div",{className:o.default.completeTickWrapper,style:null==I?void 0:I.completeTickWrapper,children:e.jsx(l.Check,{color:(null==I?void 0:I.checkColor)||"green"})}):e.jsxs(e.Fragment,{children:["risk-gap"===c&&e.jsxs("div",{className:o.default.rightSide,style:null==I?void 0:I.redirectionRightSide,children:[e.jsx("button",{disabled:b,className:[o.default.fixButton,b?o.default.fixButtonDisabled:""].join(" "),style:{...null==I?void 0:I.redirectionFixButton,...b?null==I?void 0:I.fixButtonDisabled:{}},onClick:e=>{e.stopPropagation(),b||W()},children:"Fix"}),e.jsx(l.SquareArrowOutUpRight,{onClick:b?void 0:B,size:18,className:[b?o.default.redirectIconDisabled:o.default.redirectIcon].join(" "),style:{...b?null==I?void 0:I.redirectIconDisabled:null==I?void 0:I.redirectIcon}})]}),"cra"===c&&!a&&e.jsx("div",{className:o.default.rightSide,style:null==I?void 0:I.redirectionRightSide,children:s===p?e.jsx("div",{className:o.default.loaderWrapper,style:null==I?void 0:I.loaderWrapper,children:e.jsx(l.Loader2,{size:16,className:o.default.loaderIcon,color:"grey",style:{animation:"spin 1s linear infinite",...null==I?void 0:I.loaderIcon}})}):e.jsx("button",{className:[o.default.clarifyButton].join(" "),style:{color:b?"grey":"",...null==I?void 0:I.redirectionClarifyButton},disabled:b,onClick:e=>{e.stopPropagation(),W()},children:"Clarify"})}),"cra"===c&&g.highlight&&g.path&&e.jsx(l.SquareArrowOutUpRight,{onClick:b?void 0:B,size:18,className:[b?o.default.redirectIconDisabled:o.default.redirectIcon].join(" "),style:{...b?null==I?void 0:I.redirectIconDisabled:null==I?void 0:I.redirectIcon}})]})]}),R&&e.jsx(t.default,{label:"cra"===c?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==g?void 0:g.Reasoning)||"",gap:(null==g?void 0:g.Gap)||"",relevance_score:Number(null==g?void 0:g.Confidence_score),explanation:(null==g?void 0:g.explanation)||""},onSelectProceed:W,customStyles:null==I?void 0:I.aiReasoningStyles,customIcons:N,cognitiveDecisionHeaders:S})]})};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as n,Fragment as i}from"react/jsx-runtime";import{useState as l,useEffect as t,useMemo as o}from"react";import{Pencil as a,Save as d,X as r,Clock as s,Check as v}from"lucide-react";import{preprocessUserStoryForEdit as u,formatMarkdown as c,postprocessUserStoryAfterEdit as m}from"../../utils/user-story.utils.js";import p from"../userstory-with-citation/UserStoryWithCitation.js";import C from"./PartialRequirementContent.module.css.js";import{Tooltip as y}from"@mui/material";import{useRequirementAI as h}from"../RequirementAIWrapper/RequirementAIWrapper.js";import g from"../RichTextEditor/RichTextEditor.js";const S=/<updated\b[^>]*>/gi,R=({loadingPartialRequirements:R,localUserStory:P,setLocalUserStory:q,onCraFlowDiffAgentAction:f,disableEditing:B,isCraflow:N=!0,onCraAccept:b,onCraReject:A,CDNeededInChip:w,title:k,showPendingChangesBanner:D=!1,onApproveAll:j,onCitationLinkClick:x})=>{var E,I,T,U,L,W,z,F,H,M,V,G,J,K,O,Q,X,Y,Z,$,_,ee,ne,ie,le,te,oe,ae,de,re,se,ve,ue,ce,me,pe;const[Ce,ye]=l(!1),[he,ge]=l(""),{customStyles:Se,segmentComponentConfig:Re}=h();t(()=>{B&&ye(!1)},[B]),t(()=>{var e;ge(null===(e=null==P?void 0:P[0])||void 0===e?void 0:e.value)},[P]);const Pe=o(()=>{var e;return(e=>{if(!e)return 0;const n=e.match(S);return n?n.length:0})(null===(e=null==P?void 0:P[0])||void 0===e?void 0:e.value)},[P]),qe=null===(E=null==P?void 0:P[0])||void 0===E?void 0:E.confidenceScore;if(R)return e("div",{className:C.skeletonWrapper,style:null===(I=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===I?void 0:I.skeletonWrapper,children:[1,2,3,4,5].map(n=>{var i;return e("div",{className:C.skeletonLine,style:null===(i=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},n)})});const fe=!he||""===he.trim();return n("div",{className:C.wrapper,style:null===(T=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===T?void 0:T.wrapper,children:[n("div",{className:C.header,style:null===(U=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===U?void 0:U.header,children:[k&&e("span",{className:C.headerTitle,style:null===(L=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===L?void 0:L.headerTitle,children:k}),n("div",{className:C.headerRight,style:null===(W=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===W?void 0:W.headerRight,children:[qe&&e("span",{className:C.confidenceBadge,style:null===(z=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===z?void 0:z.confidenceBadge,children:qe}),e("div",{className:C.actionBar,style:null===(F=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===F?void 0:F.actionBar,children:Ce?n(i,{children:[n("span",{className:C.editingBadge,style:null===(G=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===G?void 0:G.editingBadge,children:[e("span",{className:C.editingDot,style:null===(J=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===J?void 0:J.editingDot}),"Editing"]}),e("div",{className:C.btnDivider,style:null===(K=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===K?void 0:K.btnDivider}),e(y,{title:fe?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:{...null===(O=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===O?void 0:O.headerTooltip}}},children:e("span",{children:e("button",{className:C.saveBtn,style:{...null===(Q=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===Q?void 0:Q.actionBtn,...null===(X=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===X?void 0:X.saveBtn,opacity:fe?.5:1,cursor:fe?"not-allowed":"pointer"},onClick:()=>{fe||(q(e=>{const n={...e[0],value:m(he)};return null==f||f("accept",[n]),[n]}),ye(!1))},disabled:fe,children:e(d,{size:16})})})}),e("button",{className:C.cancelBtn,style:{...null===(Y=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===Y?void 0:Y.actionBtn,...null===(Z=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===Z?void 0:Z.cancelBtn},onClick:()=>{var e;ge(null===(e=null==P?void 0:P[0])||void 0===e?void 0:e.value),ye(!1)},title:"Discard changes","aria-label":"Discard changes",children:e(r,{size:16})})]}):e(y,{title:B?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:{...null===(H=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===H?void 0:H.headerTooltip}}},children:e("span",{children:e("button",{className:C.editBtn,style:{...null===(M=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===M?void 0:M.actionBtn,...null===(V=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===V?void 0:V.editBtn,opacity:B?.5:1,cursor:B?"not-allowed":"pointer"},onClick:()=>{B||ye(!0)},disabled:B,"aria-label":"Edit requirement",children:e(a,{size:16})})})})})]})]}),D&&!Ce&&Pe>0&&n("div",{className:C.pendingChangesBanner,style:null===(_=null===($=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===$?void 0:$.pendingChangesBanner)||void 0===_?void 0:_.container,children:[n("div",{className:C.pendingChangesLeft,style:null===(ne=null===(ee=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ee?void 0:ee.pendingChangesBanner)||void 0===ne?void 0:ne.left,children:[e(s,{size:16,className:C.pendingChangesIcon,style:null===(le=null===(ie=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ie?void 0:ie.pendingChangesBanner)||void 0===le?void 0:le.icon}),n("span",{style:null===(oe=null===(te=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===te?void 0:te.pendingChangesBanner)||void 0===oe?void 0:oe.text,children:["Pending changes (",Pe,")"]})]}),n("button",{type:"button",className:C.approveAllBtn,style:null===(de=null===(ae=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ae?void 0:ae.pendingChangesBanner)||void 0===de?void 0:de.approveAllButton,onClick:()=>{null==j||j(P)},"aria-label":"Approve all pending changes",children:[e(v,{size:14,style:null===(se=null===(re=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===re?void 0:re.pendingChangesBanner)||void 0===se?void 0:se.approveAllIcon}),"Approve All"]})]}),e("div",{className:C.body,style:null===(ve=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ve?void 0:ve.body,children:e("div",Ce?{className:C.editorContainer,style:null===(ue=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ue?void 0:ue.editorContainer,children:e(g,{minHeight:"100%",height:"100%",type:"string",value:u(c((null===(ce=null==P?void 0:P[0])||void 0===ce?void 0:ce.value)||"")||""),handleUpdateState:(e,n)=>{ge(n)},doNotShowBorderInViewMode:!1,mode:"edit"})}:{className:C.viewContainer,style:null===(me=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===me?void 0:me.viewContainer,children:e(p,{message:c((null===(pe=null==P?void 0:P[0])||void 0===pe?void 0:pe.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:P,setCraUserStory:q,onCraFlowDiffAgentAction:f,displayActionButtons:!Ce},isCraflow:N,onCraAccept:b,onCraReject:A,customStyles:null==Se?void 0:Se.UserStoryWithCitationCustomStyles,CDNeededInChip:w,onCitationLinkClick:x})})})]})};export{R as PartialRequirementContent,R as default};
1
+ import{jsx as e,jsxs as n,Fragment as i}from"react/jsx-runtime";import{useState as l,useEffect as t,useMemo as o}from"react";import{Pencil as a,Save as d,X as r,Clock as s,Check as v}from"lucide-react";import{preprocessUserStoryForEdit as u,formatMarkdown as c,postprocessUserStoryAfterEdit as m}from"../../utils/user-story.utils.js";import p from"../userstory-with-citation/UserStoryWithCitation.js";import C from"./PartialRequirementContent.module.css.js";import{Tooltip as y}from"@mui/material";import{useRequirementAI as h}from"../RequirementAIWrapper/RequirementAIWrapper.js";import g from"../RichTextEditor/RichTextEditor.js";const S=/<updated\b[^>]*>/gi,R=({loadingPartialRequirements:R,localUserStory:P,setLocalUserStory:q,onCraFlowDiffAgentAction:f,disableEditing:B,isCraflow:N=!0,onCraAccept:b,onCraReject:A,CDNeededInChip:w,title:k,showPendingChangesBanner:D=!1,onApproveAll:j,onCitationLinkClick:x})=>{var E,I,T,U,L,W,z,F,H,M,V,G,J,K,O,Q,X,Y,Z,$,_,ee,ne,ie,le,te,oe,ae,de,re,se,ve,ue,ce,me,pe;const[Ce,ye]=l(!1),[he,ge]=l(""),{customStyles:Se,segmentComponentConfig:Re}=h();t(()=>{B&&ye(!1)},[B]),t(()=>{var e;ge(null===(e=null==P?void 0:P[0])||void 0===e?void 0:e.value)},[P]);const Pe=o(()=>{var e;return(e=>{if(!e)return 0;const n=e.match(S);return n?n.length:0})(null===(e=null==P?void 0:P[0])||void 0===e?void 0:e.value)},[P]),qe=null===(E=null==P?void 0:P[0])||void 0===E?void 0:E.confidenceScore;if(R)return e("div",{className:C.skeletonWrapper,style:null===(I=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===I?void 0:I.skeletonWrapper,children:[1,2,3,4,5].map(n=>{var i;return e("div",{className:C.skeletonLine,style:null===(i=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},n)})});const fe=!he||""===he.trim();return n("div",{className:C.wrapper,style:null===(T=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===T?void 0:T.wrapper,children:[n("div",{className:C.header,style:null===(U=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===U?void 0:U.header,children:[k&&e("span",{className:C.headerTitle,style:null===(L=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===L?void 0:L.headerTitle,children:k}),n("div",{className:C.headerRight,style:null===(W=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===W?void 0:W.headerRight,children:[qe&&e("span",{className:C.confidenceBadge,style:null===(z=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===z?void 0:z.confidenceBadge,children:qe}),e("div",{className:C.actionBar,style:null===(F=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===F?void 0:F.actionBar,children:Ce?n(i,{children:[n("span",{className:C.editingBadge,style:null===(G=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===G?void 0:G.editingBadge,children:[e("span",{className:C.editingDot,style:null===(J=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===J?void 0:J.editingDot}),"Editing"]}),e("div",{className:C.btnDivider,style:null===(K=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===K?void 0:K.btnDivider}),e(y,{title:fe?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:{...null===(O=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===O?void 0:O.headerTooltip}}},children:e("span",{children:e("button",{className:C.saveBtn,style:{...null===(Q=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===Q?void 0:Q.actionBtn,...null===(X=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===X?void 0:X.saveBtn,opacity:fe?.5:1,cursor:fe?"not-allowed":"pointer"},onClick:()=>{fe||(q(e=>{const n={...e[0],value:m(he)};return null==f||f("manual",[n]),[n]}),ye(!1))},disabled:fe,children:e(d,{size:16})})})}),e("button",{className:C.cancelBtn,style:{...null===(Y=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===Y?void 0:Y.actionBtn,...null===(Z=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===Z?void 0:Z.cancelBtn},onClick:()=>{var e;ge(null===(e=null==P?void 0:P[0])||void 0===e?void 0:e.value),ye(!1)},title:"Discard changes","aria-label":"Discard changes",children:e(r,{size:16})})]}):e(y,{title:B?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:{...null===(H=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===H?void 0:H.headerTooltip}}},children:e("span",{children:e("button",{className:C.editBtn,style:{...null===(M=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===M?void 0:M.actionBtn,...null===(V=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===V?void 0:V.editBtn,opacity:B?.5:1,cursor:B?"not-allowed":"pointer"},onClick:()=>{B||ye(!0)},disabled:B,"aria-label":"Edit requirement",children:e(a,{size:16})})})})})]})]}),D&&!Ce&&Pe>0&&n("div",{className:C.pendingChangesBanner,style:null===(_=null===($=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===$?void 0:$.pendingChangesBanner)||void 0===_?void 0:_.container,children:[n("div",{className:C.pendingChangesLeft,style:null===(ne=null===(ee=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ee?void 0:ee.pendingChangesBanner)||void 0===ne?void 0:ne.left,children:[e(s,{size:16,className:C.pendingChangesIcon,style:null===(le=null===(ie=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ie?void 0:ie.pendingChangesBanner)||void 0===le?void 0:le.icon}),n("span",{style:null===(oe=null===(te=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===te?void 0:te.pendingChangesBanner)||void 0===oe?void 0:oe.text,children:["Pending changes (",Pe,")"]})]}),n("button",{type:"button",className:C.approveAllBtn,style:null===(de=null===(ae=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ae?void 0:ae.pendingChangesBanner)||void 0===de?void 0:de.approveAllButton,onClick:()=>{null==j||j(P)},"aria-label":"Approve all pending changes",children:[e(v,{size:14,style:null===(se=null===(re=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===re?void 0:re.pendingChangesBanner)||void 0===se?void 0:se.approveAllIcon}),"Approve All"]})]}),e("div",{className:C.body,style:null===(ve=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ve?void 0:ve.body,children:e("div",Ce?{className:C.editorContainer,style:null===(ue=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===ue?void 0:ue.editorContainer,children:e(g,{minHeight:"100%",height:"100%",type:"string",value:u(c((null===(ce=null==P?void 0:P[0])||void 0===ce?void 0:ce.value)||"")||""),handleUpdateState:(e,n)=>{ge(n)},doNotShowBorderInViewMode:!1,mode:"edit"})}:{className:C.viewContainer,style:null===(me=null==Se?void 0:Se.PartialRequirementContentStyles)||void 0===me?void 0:me.viewContainer,children:e(p,{message:c((null===(pe=null==P?void 0:P[0])||void 0===pe?void 0:pe.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:P,setCraUserStory:q,onCraFlowDiffAgentAction:f,displayActionButtons:!Ce},isCraflow:N,onCraAccept:b,onCraReject:A,customStyles:null==Se?void 0:Se.UserStoryWithCitationCustomStyles,CDNeededInChip:w,onCitationLinkClick:x})})})]})};export{R as PartialRequirementContent,R as default};
2
2
  //# sourceMappingURL=PartialRequirementContent.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as i,Fragment as o}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as n,ChevronDown as r,Check as t,SquareArrowOutUpRight as a,Loader2 as s}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import u from"../../icons/CognitiveDecision.js";import{Tooltip as p}from"@mui/material";function m({isDefaultOpen:m,processItemId:v,isCompleted:g,mode:h,msg:y,type:f,id:C,aiReason:x,text:D,headerText:b,decisionStrength:N,statusUi:T,panelRef:I,onHandleSend:S,onRedirectClick:k,gapType:R,isGenerating:j=!1,customStyles:B,customIcons:W,cognitiveDecisionHeaders:P,metaData:H}){const[$,A]=l(m),O=(null==W?void 0:W.highConfidence)||e(u,{}),z=()=>{"cra"===h?null==S||S(`Discuss ambiguities on ${D}`,C,H):null==S||S(`Deep Dive into ${R} ${b}: ${D}`,C,H)};return i("div",{className:[d.outerWrapper,j?d.outerWrapperDisabled:""].join(" "),style:{...null==B?void 0:B.redirectionOuterWrapper,...j?null==B?void 0:B.redirectionOuterWrapperDisabled:{}},children:[i("div",{className:[d.card,j?d.cardDisabled:d.cardInteractive].join(" "),style:{...null==B?void 0:B.redirectionCard,...j?null==B?void 0:B.redirectionCardDisabled:null==B?void 0:B.redirectionCardInteractive},children:[i("div",{className:d.leftSide,style:null==B?void 0:B.redirectionLeftSide,children:[e(p,{title:b+" "+D,placement:"top",slotProps:{tooltip:{sx:{...null==B?void 0:B.headerTooltip}}},children:i("span",{className:d.textBlock,style:null==B?void 0:B.redirectionTextBlock,children:[b&&i("span",{className:d.headerText,style:null==B?void 0:B.redirectionHeaderText,children:[b,D?" ":""]}),D]})}),i("span",{onClick:e=>{e.stopPropagation(),j||A(!$)},className:[d.reasoningToggle,j?d.reasoningToggleDisabled:d.reasoningToggleActive].join(" "),style:{...null==B?void 0:B.reasoningToggle,...j?null==B?void 0:B.reasoningToggleDisabled:null==B?void 0:B.reasoningToggleActive},children:[O,e($?n:r,{className:d.chevronIcon,style:null==B?void 0:B.chevronIcon})]})]}),g?e("div",{className:d.completeTickWrapper,style:null==B?void 0:B.completeTickWrapper,children:e(t,{color:(null==B?void 0:B.checkColor)||"green"})}):i(o,{children:["risk-gap"===h&&i("div",{className:d.rightSide,style:null==B?void 0:B.redirectionRightSide,children:[e("button",{disabled:j,className:[d.fixButton,j?d.fixButtonDisabled:""].join(" "),style:{...null==B?void 0:B.redirectionFixButton,...j?null==B?void 0:B.fixButtonDisabled:{}},onClick:e=>{e.stopPropagation(),j||z()},children:"Fix"}),e(a,{onClick:j?void 0:()=>{j||null==k||k({type:f,id:C,aiReason:x,msg:y,meta:{headerText:b,decisionStrength:N,text:D}})},size:18,className:[j?d.redirectIconDisabled:d.redirectIcon].join(" "),style:{...j?null==B?void 0:B.redirectIconDisabled:null==B?void 0:B.redirectIcon}})]}),"cra"===h&&!m&&e("div",{className:d.rightSide,style:null==B?void 0:B.redirectionRightSide,children:v===C?e("div",{className:d.loaderWrapper,style:null==B?void 0:B.loaderWrapper,children:e(s,{size:16,className:d.loaderIcon,color:"grey",style:{animation:"spin 1s linear infinite",...null==B?void 0:B.loaderIcon}})}):e("button",{className:[d.clarifyButton].join(" "),style:{color:j?"grey":"",...null==B?void 0:B.redirectionClarifyButton},disabled:j,onClick:e=>{e.stopPropagation(),z()},children:"Clarify"})})]})]}),$&&e(c,{label:"cra"===h?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==x?void 0:x.Reasoning)||"",gap:(null==x?void 0:x.Gap)||"",relevance_score:Number(null==x?void 0:x.Confidence_score),explanation:(null==x?void 0:x.explanation)||""},onSelectProceed:z,customStyles:null==B?void 0:B.aiReasoningStyles,customIcons:W,cognitiveDecisionHeaders:P})]})}export{m as CustomChatCrRedirection};
1
+ import{jsx as e,jsxs as i,Fragment as o}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as n,ChevronDown as r,Check as t,SquareArrowOutUpRight as a,Loader2 as s}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import u from"../../icons/CognitiveDecision.js";import{Tooltip as p}from"@mui/material";function m({isDefaultOpen:m,processItemId:v,isCompleted:g,mode:h,msg:y,type:f,id:C,aiReason:D,text:b,headerText:x,decisionStrength:I,statusUi:N,panelRef:T,onHandleSend:S,onRedirectClick:k,gapType:j,isGenerating:R=!1,customStyles:B,customIcons:W,cognitiveDecisionHeaders:P,metaData:H}){const[$,z]=l(m),A=(null==W?void 0:W.highConfidence)||e(u,{}),O=()=>{R||null==k||k({type:f,id:C,aiReason:D,msg:y,meta:{headerText:x,decisionStrength:I,text:b}})},F=()=>{"cra"===h?null==S||S(`Discuss ambiguities on ${b}`,C,H):null==S||S(`Deep Dive into ${j} ${x}: ${b}`,C,H)};return i("div",{className:[d.outerWrapper,R?d.outerWrapperDisabled:""].join(" "),style:{...null==B?void 0:B.redirectionOuterWrapper,...R?null==B?void 0:B.redirectionOuterWrapperDisabled:{}},children:[i("div",{className:[d.card,R?d.cardDisabled:d.cardInteractive].join(" "),style:{...null==B?void 0:B.redirectionCard,...R?null==B?void 0:B.redirectionCardDisabled:null==B?void 0:B.redirectionCardInteractive},children:[i("div",{className:d.leftSide,style:null==B?void 0:B.redirectionLeftSide,children:[e(p,{title:x+" "+b,placement:"top",slotProps:{tooltip:{sx:{...null==B?void 0:B.headerTooltip}}},children:i("span",{className:d.textBlock,style:null==B?void 0:B.redirectionTextBlock,children:[x&&i("span",{className:d.headerText,style:null==B?void 0:B.redirectionHeaderText,children:[x,b?" ":""]}),b]})}),i("span",{onClick:e=>{e.stopPropagation(),R||z(!$)},className:[d.reasoningToggle,R?d.reasoningToggleDisabled:d.reasoningToggleActive].join(" "),style:{...null==B?void 0:B.reasoningToggle,...R?null==B?void 0:B.reasoningToggleDisabled:null==B?void 0:B.reasoningToggleActive},children:[A,e($?n:r,{className:d.chevronIcon,style:null==B?void 0:B.chevronIcon})]})]}),g?e("div",{className:d.completeTickWrapper,style:null==B?void 0:B.completeTickWrapper,children:e(t,{color:(null==B?void 0:B.checkColor)||"green"})}):i(o,{children:["risk-gap"===h&&i("div",{className:d.rightSide,style:null==B?void 0:B.redirectionRightSide,children:[e("button",{disabled:R,className:[d.fixButton,R?d.fixButtonDisabled:""].join(" "),style:{...null==B?void 0:B.redirectionFixButton,...R?null==B?void 0:B.fixButtonDisabled:{}},onClick:e=>{e.stopPropagation(),R||F()},children:"Fix"}),e(a,{onClick:R?void 0:O,size:18,className:[R?d.redirectIconDisabled:d.redirectIcon].join(" "),style:{...R?null==B?void 0:B.redirectIconDisabled:null==B?void 0:B.redirectIcon}})]}),"cra"===h&&!m&&e("div",{className:d.rightSide,style:null==B?void 0:B.redirectionRightSide,children:v===C?e("div",{className:d.loaderWrapper,style:null==B?void 0:B.loaderWrapper,children:e(s,{size:16,className:d.loaderIcon,color:"grey",style:{animation:"spin 1s linear infinite",...null==B?void 0:B.loaderIcon}})}):e("button",{className:[d.clarifyButton].join(" "),style:{color:R?"grey":"",...null==B?void 0:B.redirectionClarifyButton},disabled:R,onClick:e=>{e.stopPropagation(),F()},children:"Clarify"})}),"cra"===h&&D.highlight&&D.path&&e(a,{onClick:R?void 0:O,size:18,className:[R?d.redirectIconDisabled:d.redirectIcon].join(" "),style:{...R?null==B?void 0:B.redirectIconDisabled:null==B?void 0:B.redirectIcon}})]})]}),$&&e(c,{label:"cra"===h?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==D?void 0:D.Reasoning)||"",gap:(null==D?void 0:D.Gap)||"",relevance_score:Number(null==D?void 0:D.Confidence_score),explanation:(null==D?void 0:D.explanation)||""},onSelectProceed:F,customStyles:null==B?void 0:B.aiReasoningStyles,customIcons:W,cognitiveDecisionHeaders:P})]})}export{m as CustomChatCrRedirection};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.js.map
@@ -5,7 +5,12 @@ export type PartialRequirementContentProps = {
5
5
  loadingPartialRequirements: boolean;
6
6
  localUserStory: IUserStory[];
7
7
  setLocalUserStory: Dispatch<SetStateAction<IUserStory[]>>;
8
- onCraFlowDiffAgentAction?: (action: "accept" | "reject", updatedData: IUserStory[]) => void;
8
+ /**
9
+ * Fired for redline accept/reject and for a manual RTE save (the pencil-edit "Save"
10
+ * button) — the latter fires with action "manual" so consumers can tell it apart from
11
+ * an actual accept/reject without having to diff pending-change counts themselves.
12
+ */
13
+ onCraFlowDiffAgentAction?: (action: "accept" | "reject" | "manual", updatedData: IUserStory[]) => void;
9
14
  disableEditing: boolean;
10
15
  isCraflow?: boolean;
11
16
  onCraAccept?: (updatedId: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"PartialRequirementContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/cra/PartialRequirementContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAgC,MAAM,OAAO,CAAC;AAGtF,OAA+B,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAG7H,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAYlE,MAAM,MAAM,8BAA8B,GAAG;IACzC,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE,UAAU,EAAE,CAAC;IAC7B,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC1D,wBAAwB,CAAC,EAAE,CACvB,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAC3B,WAAW,EAAE,UAAU,EAAE,KACxB,IAAI,CAAC;IACV,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,iCAAiC,CAAC;IACpD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yGAAyG;IACzG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,yEAAyE;IACzE,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC5C,8BAA8B,CAyR7B,CAAC;AAEN,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"PartialRequirementContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/cra/PartialRequirementContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAgC,MAAM,OAAO,CAAC;AAGtF,OAA+B,EAAE,iCAAiC,EAAE,MAAM,kDAAkD,CAAC;AAG7H,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAYlE,MAAM,MAAM,8BAA8B,GAAG;IACzC,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE,UAAU,EAAE,CAAC;IAC7B,iBAAiB,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC1D;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CACvB,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,EACtC,WAAW,EAAE,UAAU,EAAE,KACxB,IAAI,CAAC;IACV,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,iCAAiC,CAAC;IACpD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yGAAyG;IACzG,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,yEAAyE;IACzE,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC5C,8BAA8B,CAyR7B,CAAC;AAEN,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomChatCrRedirection.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAKnE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MA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ACV,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,YAAoB,EACpB,YAAY,EACZ,WAAW,EACX,wBAAwB,EACxB,QAAQ,EACT,EAAE,4BAA4B,2CAyM9B"}
1
+ {"version":3,"file":"CustomChatCrRedirection.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAKnE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;CACzB;AAED,UAAU,4BAA6B,SAAQ,kBAAkB;IAC/D,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAM,IAAI,CAAC;IAC9F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,eAAe,CAAA;IAC9B,WAAW,CAAC,EAAE,cAAc,CAAA;IAC5B,wBAAwB,CAAC,EAAE,SAAS,CAAA;IACpC;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE;QAC1B,IAAI,EAAE,OAAO,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,eAAe,CAAC;QAC1B,GAAG,EAAE,GAAG,CAAC;QACT,IAAI,EAAE;YAAE,UAAU,CAAC,EAAE,MAAM,CAAC;YAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KACxE,KAAK,IAAI,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC;AAID,wBAAgB,uBAAuB,CAAC,EACtC,aAAa,EACb,aAAa,EACb,WAAW,EACX,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,YAAoB,EACpB,YAAY,EACZ,WAAW,EACX,wBAAwB,EACxB,QAAQ,EACT,EAAE,4BAA4B,2CAyN9B"}
@@ -10,6 +10,8 @@ export interface AIReasoningType {
10
10
  explanation?: string;
11
11
  Gap?: string;
12
12
  Confidence_score?: string;
13
+ highlight?: string;
14
+ path?: string;
13
15
  [key: string]: any;
14
16
  }
15
17
  export declare function normalizeDecisionStrength(raw: string): string;
@@ -1 +1 @@
1
- {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAYjF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAgB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOvF,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAC;AACtE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAQ5C,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAwBD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI7D;AAsGD,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;IACxB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAA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E,KAAK,IAAI,CAAC;CACZ;AAID,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuQxD,CAAC;AAIF,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,GAAG,UAAU,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IAGjB,GAAG,EAAE,GAAG,CAAC;IACT,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,SAAS,CAAA;CACrC;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA8I9E,CAAC"}
1
+ {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAYjF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAgB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOvF,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAC;AACtE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAQ5C,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,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@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.348",
3
+ "version": "0.0.350",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",