@e-llm-studio/requirement-ai 0.0.35 → 0.0.37

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 (38) hide show
  1. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.module.css.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  8. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  9. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.module.css.js +1 -1
  10. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  11. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  12. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  13. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.module.css.js +1 -1
  14. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  15. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  16. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  17. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  18. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  19. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.module.css.js +1 -1
  20. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  21. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  22. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.d.ts +3 -1
  23. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.d.ts.map +1 -1
  24. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts +3 -2
  25. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts.map +1 -1
  26. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +4 -2
  27. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
  28. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +4 -1
  29. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
  30. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts +4 -2
  31. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts.map +1 -1
  32. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +2 -1
  33. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  34. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +2 -1
  35. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  36. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +7 -0
  37. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  38. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),l=require("react"),r=require("./AiReasonAccoridon.module.css.js");exports.default=function(t){var i=t.icon,n=t.title,c=t.content,d=t.subTitle,o=t.scenario,u=t.className,v=void 0===u?"":u,h=t.customStyles,f=l.useState(!0),p=f[0],_=f[1];return s.jsxs("div",e.__assign({className:"".concat("riskSideBar"!==o&&r.default.wrapperBorder," ").concat(r.default.wrapper," ").concat(v),style:null==h?void 0:h.wrapper},{children:[s.jsxs("div",e.__assign({className:"".concat(r.default.header," ").concat("riskSideBar"===o?r.default.headerPaddingRisk:r.default.headerPadding),style:null==h?void 0:h.header,onClick:function(){return _(!p)}},{children:[s.jsxs("div",e.__assign({className:r.default.headerLeft,style:null==h?void 0:h.iconWrapper},{children:[i,s.jsxs("div",e.__assign({className:r.default.titleBlock},{children:[s.jsx("h1",e.__assign({className:r.default.title,style:null==h?void 0:h.title},{children:n})),s.jsx("p",e.__assign({className:r.default.subTitle,style:null==h?void 0:h.subTitle},{children:d}))]}))]})),"riskSideBar"!==o&&s.jsx("div",e.__assign({className:r.default.chevronWrapper,style:null==h?void 0:h.chevronWrapper},{children:p?s.jsx(a.ChevronUp,{className:r.default.chevronIcon}):s.jsx(a.ChevronDown,{className:r.default.chevronIcon})}))]})),p&&s.jsx("div",e.__assign({className:"".concat("riskSideBar"!==o&&r.default.content," ").concat(r.default.contentBase),style:null==h?void 0:h.contentWrapper},{children:c}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),l=require("react"),i=require("./AiReasonAccoridon.module.css.js");exports.default=function(r){var t=r.icon,n=r.title,c=r.content,d=r.subTitle,o=r.scenario,u=r.className,v=void 0===u?"":u,p=r.customStyles,f=r.alwaysOpen,h=void 0!==f&&f,_=r.defaultOpen,m=void 0===_||_,j=l.useState(m),x=j[0],N=j[1];return s.jsxs("div",e.__assign({className:"".concat("riskSideBar"!==o&&i.default.wrapperBorder," ").concat(i.default.wrapper," ").concat(v),style:null==p?void 0:p.wrapper},{children:[s.jsxs("div",e.__assign({className:"".concat(i.default.header," ").concat("riskSideBar"===o?i.default.headerPaddingRisk:i.default.headerPadding),style:null==p?void 0:p.header,onClick:function(){h||N(!x)}},{children:[s.jsxs("div",e.__assign({className:i.default.headerLeft,style:null==p?void 0:p.iconWrapper},{children:[t,s.jsxs("div",e.__assign({className:i.default.titleBlock},{children:[s.jsx("h1",e.__assign({className:i.default.title,style:null==p?void 0:p.title},{children:n})),s.jsx("p",e.__assign({className:i.default.subTitle,style:null==p?void 0:p.subTitle},{children:d}))]}))]})),"riskSideBar"!==o&&!h&&s.jsx("div",e.__assign({className:i.default.chevronWrapper,style:null==p?void 0:p.chevronWrapper},{children:x?s.jsx(a.ChevronUp,{className:i.default.chevronIcon}):s.jsx(a.ChevronDown,{className:i.default.chevronIcon})}))]})),x&&s.jsx("div",e.__assign({className:"".concat("riskSideBar"!==o&&i.default.content," ").concat(i.default.contentBase),style:null==p?void 0:p.contentWrapper},{children:c}))]}))};
2
2
  //# sourceMappingURL=AIReasonAccordion.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=require("react/jsx-runtime"),e=require("../../icons/AiReasoningIcon.js"),o=require("./AIReasonAccordion.js"),a=require("../../icons/ReasoningBulbIcon.js"),t=require("./AiReasonMarkdownWrapper.js"),l=require("../../icons/AiGapIcon.js"),s=require("react"),d=require("./AiReasoningCitationContent.module.css.js"),r=require("../../shared/CitationAIConfidenceDisplay.js");exports.default=function(c){var u,v,C,g,p,m,f,x,j,y,R=c.aiReason,_=c.scenario,w=c.customStyles,h=c.customIcons,b=c.AiReasoningIcon;void 0===b&&n.jsx(e.default,{});var S=c.reasoningIcon;void 0===S&&n.jsx(a.default,{});var A=c.gapIcon;void 0===A&&n.jsx(l.default,{}),c.className;var I=c.onSelectProceed,N=c.isDisableProceedButton,M=s.useState("noCitation"),B=M[0];M[1];var k=s.useState(null),q=k[0];k[1];var D,F,W=(null==h?void 0:h.aireasonIcon)||n.jsx(e.default,{}),P=(null==h?void 0:h.reasoningIcon)||n.jsx(a.default,{}),T=(null==h?void 0:h.gapIcon)||n.jsx(l.default,{});return n.jsxs("div",i.__assign({className:"".concat(d.default.container," ").concat("riskSideBar"===_?"":d.default.containerBordered),style:null===(u=null==w?void 0:w.aiReasoningContent)||void 0===u?void 0:u.container},{children:[n.jsx("div",i.__assign({className:"".concat((null==R?void 0:R.explanation)&&"riskSideBar"!==_?"":d.default.explanationDivider),style:null===(v=null==w?void 0:w.aiReasoningContent)||void 0===v?void 0:v.explanationDivider},{children:(null==R?void 0:R.explanation)&&n.jsx(o.default,{icon:n.jsx(n.Fragment,{}),title:"Explanation",subTitle:"",customStyles:null==w?void 0:w.aiReasoningAccordion,content:n.jsx(t.AiReasonMarkdownWrapper,{message:R.explanation,isExpandableOrderedListEnabled:!0,customStyles:null==w?void 0:w.aiReasoningMarkdown,citationStyles:{webCitation:null==w?void 0:w.webCitation,stormeeCitation:null==w?void 0:w.stormeeCitation,waveformCitation:null==w?void 0:w.waveformCitation,imageCitation:null==w?void 0:w.imageCitation,fileCitation:null==w?void 0:w.fileCitation,appModCitation:null==w?void 0:w.appModCitation,rcaCitation:null==w?void 0:w.rcaCitation,readFileCitation:null==w?void 0:w.readFileCitation,loadingCitations:null==w?void 0:w.loadingCitations},customIcons:h,onSelectProceed:I,isDisableProceedButton:N}),scenario:_})})),"riskSideBar"!==_&&n.jsxs("div",i.__assign({className:"".concat(d.default.headerBar," ").concat("riskSideBar"===_?"":d.default.headerBarRounded),style:null===(C=null==w?void 0:w.aiReasoningContent)||void 0===C?void 0:C.headerBar},{children:[n.jsxs("div",i.__assign({className:d.default.headerBrand,style:null===(g=null==w?void 0:w.aiReasoningContent)||void 0===g?void 0:g.headerBrand},{children:[W,n.jsx("p",{children:"Cognitive Decisioning AI"})]})),n.jsx("div",i.__assign({className:d.default.headerScore,style:null===(p=null==w?void 0:w.aiReasoningContent)||void 0===p?void 0:p.headerScore},{children:!isNaN(null==R?void 0:R.relevance_score)&&r.renderAIConfidenceDisplay(R.relevance_score,R.relevance_score_diff,null===(m=null==w?void 0:w.aiReasoningContent)||void 0===m?void 0:m.confidenceDisplay,h)}))]})),"riskSideBar"!==_&&n.jsx("div",i.__assign({className:d.default.bodyRow,style:i.__assign({width:"100%"},null===(f=null==w?void 0:w.aiReasoningContent)||void 0===f?void 0:f.bodyRow)},{children:n.jsxs("div",i.__assign({className:"flex flex-col ".concat("noCitation"!==B&&null!==q?"styles.bodyNarrow":"styles.bodyFull"),style:{width:"100%"}},{children:[n.jsx(o.default,{icon:n.jsx("div",i.__assign({className:d.default.iconWrapper,style:null===(x=null==w?void 0:w.aiReasoningContent)||void 0===x?void 0:x.iconWrapper},{children:P})),title:"Decision Making Factors",subTitle:"",customStyles:null==w?void 0:w.aiReasoningAccordion,content:n.jsx(t.AiReasonMarkdownWrapper,{message:R.reason,customStyles:null==w?void 0:w.aiReasoningMarkdown,citationStyles:{webCitation:null==w?void 0:w.webCitation,stormeeCitation:null==w?void 0:w.stormeeCitation,waveformCitation:null==w?void 0:w.waveformCitation,imageCitation:null==w?void 0:w.imageCitation,fileCitation:null==w?void 0:w.fileCitation,appModCitation:null==w?void 0:w.appModCitation,rcaCitation:null==w?void 0:w.rcaCitation,readFileCitation:null==w?void 0:w.readFileCitation,loadingCitations:null==w?void 0:w.loadingCitations},customIcons:h})}),n.jsx("div",{className:d.default.divider,style:null===(j=null==w?void 0:w.aiReasoningContent)||void 0===j?void 0:j.divider}),n.jsx(o.default,{icon:n.jsx("div",i.__assign({className:d.default.iconWrapper,style:null===(y=null==w?void 0:w.aiReasoningContent)||void 0===y?void 0:y.iconWrapper},{children:T})),title:"Gap in Decision",subTitle:"",customStyles:null==w?void 0:w.aiReasoningAccordion,content:n.jsx(t.AiReasonMarkdownWrapper,{message:(D=R.relevance_score,F=R.gap,100===R.relevance_score?"No Gaps is identified.":R.relevance_score<100?"The decision strength is ".concat(D,"% because: \n").concat(F):R.gap),customStyles:null==w?void 0:w.aiReasoningMarkdown,citationStyles:{webCitation:null==w?void 0:w.webCitation,stormeeCitation:null==w?void 0:w.stormeeCitation,waveformCitation:null==w?void 0:w.waveformCitation,imageCitation:null==w?void 0:w.imageCitation,fileCitation:null==w?void 0:w.fileCitation,appModCitation:null==w?void 0:w.appModCitation,rcaCitation:null==w?void 0:w.rcaCitation,readFileCitation:null==w?void 0:w.readFileCitation,loadingCitations:null==w?void 0:w.loadingCitations},customIcons:h}),className:d.default.gapAccordion})]}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=require("react/jsx-runtime"),e=require("../../icons/AiReasoningIcon.js"),o=require("./AIReasonAccordion.js"),a=require("../../icons/ReasoningBulbIcon.js"),t=require("./AiReasonMarkdownWrapper.js"),l=require("../../icons/AiGapIcon.js"),s=require("react"),d=require("lucide-react"),r=require("./AiReasoningCitationContent.module.css.js"),c=require("../../shared/CitationAIConfidenceDisplay.js");exports.default=function(u){var v,C,g,p,f,m,x,j,y,h,R,_,w,b,S,I,N=u.aiReason,A=u.scenario,M=u.customStyles,k=u.customIcons,B=u.cognitiveDecisionHeaders,D=u.AiReasoningIcon;void 0===D&&n.jsx(e.default,{});var q=u.reasoningIcon;void 0===q&&n.jsx(a.default,{});var F=u.gapIcon;void 0===F&&n.jsx(l.default,{}),u.className;var W=u.onSelectProceed,O=u.isDisableProceedButton,P=s.useState("noCitation"),H=P[0];P[1];var T=s.useState(null),E=T[0];T[1];var G,L,U=(null==k?void 0:k.aireasonIcon)||n.jsx(e.default,{}),z=(null==k?void 0:k.reasoningIcon)||n.jsx(a.default,{}),J=(null==k?void 0:k.gapIcon)||n.jsx(l.default,{}),K=s.useState(!1),Q=K[0],V=K[1];return n.jsxs("div",i.__assign({className:"".concat(r.default.container," ").concat("riskSideBar"===A?"":r.default.containerBordered),style:null===(v=null==M?void 0:M.aiReasoningContent)||void 0===v?void 0:v.container},{children:[n.jsx("div",i.__assign({className:"".concat((null==N?void 0:N.explanation)&&"riskSideBar"!==A?"":r.default.explanationDivider),style:null===(C=null==M?void 0:M.aiReasoningContent)||void 0===C?void 0:C.explanationDivider},{children:(null==N?void 0:N.explanation)&&n.jsx(o.default,{icon:n.jsx(n.Fragment,{}),title:"Explanation",subTitle:"",customStyles:null==M?void 0:M.aiReasoningAccordion,content:n.jsx(t.AiReasonMarkdownWrapper,{message:N.explanation,isExpandableOrderedListEnabled:!0,customStyles:null==M?void 0:M.aiReasoningMarkdown,citationStyles:{webCitation:null==M?void 0:M.webCitation,stormeeCitation:null==M?void 0:M.stormeeCitation,waveformCitation:null==M?void 0:M.waveformCitation,imageCitation:null==M?void 0:M.imageCitation,fileCitation:null==M?void 0:M.fileCitation,appModCitation:null==M?void 0:M.appModCitation,rcaCitation:null==M?void 0:M.rcaCitation,readFileCitation:null==M?void 0:M.readFileCitation,loadingCitations:null==M?void 0:M.loadingCitations},customIcons:k,onSelectProceed:W,isDisableProceedButton:O}),scenario:A})})),"riskSideBar"!==A&&n.jsxs("div",i.__assign({className:"".concat(r.default.headerBar," ").concat("riskSideBar"===A?"":r.default.headerBarRounded),style:null===(g=null==M?void 0:M.aiReasoningContent)||void 0===g?void 0:g.headerBar},{children:[n.jsxs("div",i.__assign({className:r.default.headerBrand,style:null===(p=null==M?void 0:M.aiReasoningContent)||void 0===p?void 0:p.headerBrand},{children:[U,n.jsx("p",{children:null!==(f=null==B?void 0:B.mainHeader)&&void 0!==f?f:"Cognitive Decisioning AI"})]})),n.jsxs("div",i.__assign({className:r.default.headerScore,style:null===(m=null==M?void 0:M.aiReasoningContent)||void 0===m?void 0:m.headerScore},{children:[!isNaN(null==N?void 0:N.relevance_score)&&c.renderAIConfidenceDisplay(N.relevance_score,N.relevance_score_diff,null===(x=null==M?void 0:M.aiReasoningContent)||void 0===x?void 0:x.confidenceDisplay,k),n.jsx("button",i.__assign({onClick:function(){return V(function(i){return!i})},className:r.default.chevronWrapper,style:null===(j=null==M?void 0:M.aiReasoningContent)||void 0===j?void 0:j.chevronWrapper},{children:Q?n.jsx(d.ChevronUp,{className:null===r.default||void 0===r.default?void 0:r.default.chevronIcon,style:null===(y=null==M?void 0:M.aiReasoningContent)||void 0===y?void 0:y.chevronIcon}):n.jsx(d.ChevronDown,{className:null===r.default||void 0===r.default?void 0:r.default.chevronIcon,style:null===(h=null==M?void 0:M.aiReasoningContent)||void 0===h?void 0:h.chevronIcon})}))]}))]})),"riskSideBar"!==A&&Q&&n.jsx("div",i.__assign({className:r.default.bodyRow,style:i.__assign({width:"100%"},null===(R=null==M?void 0:M.aiReasoningContent)||void 0===R?void 0:R.bodyRow)},{children:n.jsxs("div",i.__assign({className:"flex flex-col ".concat("noCitation"!==H&&null!==E?"styles.bodyNarrow":"styles.bodyFull"),style:{width:"100%"}},{children:[n.jsx(o.default,{icon:n.jsx("div",i.__assign({className:r.default.iconWrapper,style:null===(_=null==M?void 0:M.aiReasoningContent)||void 0===_?void 0:_.iconWrapper},{children:z})),title:null!==(w=null==B?void 0:B.decisionHeader)&&void 0!==w?w:"Decision Making Factors",subTitle:"",customStyles:null==M?void 0:M.aiReasoningAccordion,alwaysOpen:!0,defaultOpen:!0,content:n.jsx(t.AiReasonMarkdownWrapper,{message:N.reason,customStyles:null==M?void 0:M.aiReasoningMarkdown,citationStyles:{webCitation:null==M?void 0:M.webCitation,stormeeCitation:null==M?void 0:M.stormeeCitation,waveformCitation:null==M?void 0:M.waveformCitation,imageCitation:null==M?void 0:M.imageCitation,fileCitation:null==M?void 0:M.fileCitation,appModCitation:null==M?void 0:M.appModCitation,rcaCitation:null==M?void 0:M.rcaCitation,readFileCitation:null==M?void 0:M.readFileCitation,loadingCitations:null==M?void 0:M.loadingCitations},customIcons:k})}),(null==N?void 0:N.gap)&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:r.default.divider,style:null===(b=null==M?void 0:M.aiReasoningContent)||void 0===b?void 0:b.divider}),n.jsx(o.default,{icon:n.jsx("div",i.__assign({className:r.default.iconWrapper,style:null===(S=null==M?void 0:M.aiReasoningContent)||void 0===S?void 0:S.iconWrapper},{children:J})),title:null!==(I=null==B?void 0:B.gapHeader)&&void 0!==I?I:"Gap in Decision",subTitle:"",customStyles:null==M?void 0:M.aiReasoningAccordion,alwaysOpen:!1,defaultOpen:!1,content:n.jsx(t.AiReasonMarkdownWrapper,{message:(G=N.relevance_score,L=N.gap,100===N.relevance_score?"No Gaps is identified.":N.relevance_score<100?"The decision strength is ".concat(G,"% because: \n").concat(L):N.gap),customStyles:null==M?void 0:M.aiReasoningMarkdown,citationStyles:{webCitation:null==M?void 0:M.webCitation,stormeeCitation:null==M?void 0:M.stormeeCitation,waveformCitation:null==M?void 0:M.waveformCitation,imageCitation:null==M?void 0:M.imageCitation,fileCitation:null==M?void 0:M.fileCitation,appModCitation:null==M?void 0:M.appModCitation,rcaCitation:null==M?void 0:M.rcaCitation,readFileCitation:null==M?void 0:M.readFileCitation,loadingCitations:null==M?void 0:M.loadingCitations},customIcons:k}),className:r.default.gapAccordion})]})]}))}))]}))};
2
2
  //# sourceMappingURL=AiReasoningCitationContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".AiReasoningCitationContent-module_container__M0-d3{border-radius:.75rem;overflow:hidden;width:100%}.AiReasoningCitationContent-module_containerBordered__Ei9yG{border:1px solid #d0d5dd}.AiReasoningCitationContent-module_explanationDivider__94z5a{border-bottom:1px solid #d0d5dd}.AiReasoningCitationContent-module_headerBar__y8nNG{align-items:center;background-color:#fff;border-bottom:1px solid #d0d5dd;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:.75rem;width:100%}.AiReasoningCitationContent-module_headerBarRounded__fZNwd{border-radius:.75rem .75rem 0 0}.AiReasoningCitationContent-module_headerBrand__SMB94{align-items:center;color:#1d2939;display:flex;flex-direction:row;font-size:.875rem;font-weight:500;gap:.5rem;justify-content:center}.AiReasoningCitationContent-module_headerScore__hVXhZ{display:flex;flex-direction:row;gap:.5rem}.AiReasoningCitationContent-module_bodyRow__MZoKr{display:flex;flex-direction:row;width:100%}.AiReasoningCitationContent-module_bodyFull__iF7Pt{display:flex;flex-direction:column;width:100%}.AiReasoningCitationContent-module_bodyNarrow__5XxCt{display:flex;flex-direction:column;width:30%}.AiReasoningCitationContent-module_divider__PiXVL{border-bottom:1px solid #d0d5dd;height:0;margin:0}.AiReasoningCitationContent-module_gapAccordion__qZv-U{border-radius:0 0 .75rem .75rem}.AiReasoningCitationContent-module_iconWrapper__QgyvJ{align-items:center;background-color:#f6f4fe;border-radius:9999px;display:flex;height:fit-content;justify-content:center;padding:10px;width:fit-content}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"AiReasoningCitationContent-module_container__M0-d3",containerBordered:"AiReasoningCitationContent-module_containerBordered__Ei9yG",explanationDivider:"AiReasoningCitationContent-module_explanationDivider__94z5a",headerBar:"AiReasoningCitationContent-module_headerBar__y8nNG",headerBarRounded:"AiReasoningCitationContent-module_headerBarRounded__fZNwd",headerBrand:"AiReasoningCitationContent-module_headerBrand__SMB94",headerScore:"AiReasoningCitationContent-module_headerScore__hVXhZ",bodyRow:"AiReasoningCitationContent-module_bodyRow__MZoKr",bodyFull:"AiReasoningCitationContent-module_bodyFull__iF7Pt",bodyNarrow:"AiReasoningCitationContent-module_bodyNarrow__5XxCt",divider:"AiReasoningCitationContent-module_divider__PiXVL",gapAccordion:"AiReasoningCitationContent-module_gapAccordion__qZv-U",iconWrapper:"AiReasoningCitationContent-module_iconWrapper__QgyvJ"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".AiReasoningCitationContent-module_container__M0-d3{border-radius:.75rem;overflow:hidden;width:100%}.AiReasoningCitationContent-module_containerBordered__Ei9yG{border:1px solid #d0d5dd}.AiReasoningCitationContent-module_explanationDivider__94z5a{border-bottom:1px solid #d0d5dd}.AiReasoningCitationContent-module_headerBar__y8nNG{align-items:center;background-color:#fff;border-bottom:1px solid #d0d5dd;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:.75rem;width:100%}.AiReasoningCitationContent-module_headerBarRounded__fZNwd{border-radius:.75rem .75rem 0 0}.AiReasoningCitationContent-module_headerBrand__SMB94{align-items:center;color:#1d2939;display:flex;flex-direction:row;font-size:.875rem;font-weight:500;gap:.5rem;justify-content:center}.AiReasoningCitationContent-module_headerScore__hVXhZ{align-items:center;display:flex;flex-direction:row;flex-shrink:0;gap:.5rem}.AiReasoningCitationContent-module_bodyRow__MZoKr{display:flex;flex-direction:row;width:100%}.AiReasoningCitationContent-module_bodyFull__iF7Pt{display:flex;flex-direction:column;width:100%}.AiReasoningCitationContent-module_bodyNarrow__5XxCt{display:flex;flex-direction:column;width:30%}.AiReasoningCitationContent-module_divider__PiXVL{border-bottom:1px solid #d0d5dd;height:0;margin:0}.AiReasoningCitationContent-module_gapAccordion__qZv-U{border-radius:0 0 .75rem .75rem}.AiReasoningCitationContent-module_iconWrapper__QgyvJ{align-items:center;background-color:#f6f4fe;border-radius:9999px;display:flex;height:fit-content;justify-content:center;padding:10px;width:fit-content}.AiReasoningCitationContent-module_chevronWrapper__9sSMR{align-items:center;background:none;border:1px solid #eaecf0;border-radius:9999px;cursor:pointer;display:flex;justify-content:center;padding:.25rem}.AiReasoningCitationContent-module_chevronIcon__Lm-mV{color:#6b7280;height:1.25rem;width:1.25rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"AiReasoningCitationContent-module_container__M0-d3",containerBordered:"AiReasoningCitationContent-module_containerBordered__Ei9yG",explanationDivider:"AiReasoningCitationContent-module_explanationDivider__94z5a",headerBar:"AiReasoningCitationContent-module_headerBar__y8nNG",headerBarRounded:"AiReasoningCitationContent-module_headerBarRounded__fZNwd",headerBrand:"AiReasoningCitationContent-module_headerBrand__SMB94",headerScore:"AiReasoningCitationContent-module_headerScore__hVXhZ",bodyRow:"AiReasoningCitationContent-module_bodyRow__MZoKr",bodyFull:"AiReasoningCitationContent-module_bodyFull__iF7Pt",bodyNarrow:"AiReasoningCitationContent-module_bodyNarrow__5XxCt",divider:"AiReasoningCitationContent-module_divider__PiXVL",gapAccordion:"AiReasoningCitationContent-module_gapAccordion__qZv-U",iconWrapper:"AiReasoningCitationContent-module_iconWrapper__QgyvJ",chevronWrapper:"AiReasoningCitationContent-module_chevronWrapper__9sSMR",chevronIcon:"AiReasoningCitationContent-module_chevronIcon__Lm-mV"};
2
2
  //# sourceMappingURL=AiReasoningCitationContent.module.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),a=require("./CustomChatCrRedirection.module.css.js"),l=require("../ai-reasoning/AiReasoningCitationContent.js"),o=require("../../icons/CognitiveDecision.js");exports.CustomChatCrRedirection=function(t){var r=t.processItemId,d=t.isCompleted,c=t.mode,u=t.msg,g=t.type,v=t.id,_=t.aiReason,p=t.text,f=t.headerText,x=t.decisionStrength;t.statusUi,t.panelRef;var m=t.onHandleSend,h=t.onRedirectClick,j=t.gapType,y=t.isGenerating,C=void 0!==y&&y,b=t.customStyles,N=t.customIcons,I=n.useState(!1),D=I[0],S=I[1];console.log("testing::reasoning",_);var R=(null==N?void 0:N.highConfidence)||i.jsx(o.default,{}),T=function(){"cra"===c?null==m||m("Discuss ambiguities on ".concat(p),v):null==m||m("Deep Dive into ".concat(j," ").concat(f,": ").concat(p),v)};return console.log("testing::aiReasoning",_),i.jsxs("div",e.__assign({className:[a.default.outerWrapper,C?a.default.outerWrapperDisabled:""].join(" "),style:e.__assign(e.__assign({},null==b?void 0:b.redirectionOuterWrapper),C?null==b?void 0:b.redirectionOuterWrapperDisabled:{})},{children:[i.jsxs("div",e.__assign({className:[a.default.card,C?a.default.cardDisabled:a.default.cardInteractive].join(" "),style:e.__assign(e.__assign({},null==b?void 0:b.redirectionCard),C?null==b?void 0:b.redirectionCardDisabled:null==b?void 0:b.redirectionCardInteractive)},{children:[i.jsxs("div",e.__assign({className:a.default.leftSide,style:null==b?void 0:b.redirectionLeftSide},{children:[i.jsxs("span",e.__assign({className:a.default.textBlock,style:null==b?void 0:b.redirectionTextBlock},{children:[f&&i.jsxs("span",e.__assign({className:a.default.headerText,style:null==b?void 0:b.redirectionHeaderText},{children:[f,p?" ":""]})),p]})),i.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),C||S(!D)},className:[a.default.reasoningToggle,C?a.default.reasoningToggleDisabled:a.default.reasoningToggleActive].join(" "),style:e.__assign(e.__assign({},null==b?void 0:b.reasoningToggle),C?null==b?void 0:b.reasoningToggleDisabled:null==b?void 0:b.reasoningToggleActive)},{children:[R,D?i.jsx(s.ChevronUp,{className:a.default.chevronIcon,style:null==b?void 0:b.chevronIcon}):i.jsx(s.ChevronDown,{className:a.default.chevronIcon,style:null==b?void 0:b.chevronIcon})]}))]})),d?i.jsx("div",e.__assign({className:a.default.completeTickWrapper,style:null==b?void 0:b.completeTickWrapper},{children:i.jsx(s.Check,{color:(null==b?void 0:b.checkColor)||"green"})})):i.jsxs(i.Fragment,{children:["risk-gap"===c&&i.jsxs("div",e.__assign({className:a.default.rightSide,style:null==b?void 0:b.redirectionRightSide},{children:[i.jsx("button",e.__assign({disabled:C,className:[a.default.fixButton,C?a.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==b?void 0:b.redirectionFixButton),C?null==b?void 0:b.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),C||T()}},{children:"Fix"})),i.jsx(s.SquareArrowOutUpRight,{onClick:C?void 0:function(){C||null==h||h({type:g,id:v,aiReason:_,msg:u,meta:{headerText:f,decisionStrength:x,text:p}})},size:18,className:[C?a.default.redirectIconDisabled:a.default.redirectIcon].join(" "),style:e.__assign({},C?null==b?void 0:b.redirectIconDisabled:null==b?void 0:b.redirectIcon)})]})),"cra"===c&&i.jsx("div",e.__assign({className:a.default.rightSide,style:null==b?void 0:b.redirectionRightSide},{children:r===v?i.jsx("div",e.__assign({className:a.default.loaderWrapper,style:null==b?void 0:b.loaderWrapper},{children:i.jsx(s.Loader2,{size:16,className:a.default.loaderIcon,color:"grey",style:e.__assign({animation:"spin 1s linear infinite"},null==b?void 0:b.loaderIcon)})})):i.jsx("button",e.__assign({className:[a.default.clarifyButton].join(" "),style:e.__assign({color:C?"grey":""},null==b?void 0:b.redirectionClarifyButton),disabled:C,onClick:function(e){e.stopPropagation(),T()}},{children:"Clarify"}))}))]})]})),D&&i.jsx(l.default,{aiReason:{id:"1",reason:_.Reasoning||"",gap:_.Gap||"",relevance_score:Number(_.Confidence_score),explanation:_.explanation||""},onSelectProceed:T,customStyles:null==b?void 0:b.aiReasoningStyles,customIcons:N})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),a=require("./CustomChatCrRedirection.module.css.js"),l=require("../ai-reasoning/AiReasoningCitationContent.js"),o=require("../../icons/CognitiveDecision.js");exports.CustomChatCrRedirection=function(t){var r=t.isDefaultOpen,d=t.processItemId,c=t.isCompleted,u=t.mode,g=t.msg,v=t.type,_=t.id,p=t.aiReason,f=t.text,x=t.headerText,m=t.decisionStrength;t.statusUi,t.panelRef;var h=t.onHandleSend,j=t.onRedirectClick,y=t.gapType,C=t.isGenerating,b=void 0!==C&&C,D=t.customStyles,N=t.customIcons,I=t.cognitiveDecisionHeaders,S=n.useState(r),R=S[0],T=S[1];console.log("testing::reasoning",p);var k=(null==N?void 0:N.highConfidence)||i.jsx(o.default,{}),q=function(){"cra"===u?null==h||h("Discuss ambiguities on ".concat(f),_):null==h||h("Deep Dive into ".concat(y," ").concat(x,": ").concat(f),_)};return console.log("testing::aiReasoning",p),i.jsxs("div",e.__assign({className:[a.default.outerWrapper,b?a.default.outerWrapperDisabled:""].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.redirectionOuterWrapper),b?null==D?void 0:D.redirectionOuterWrapperDisabled:{})},{children:[i.jsxs("div",e.__assign({className:[a.default.card,b?a.default.cardDisabled:a.default.cardInteractive].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.redirectionCard),b?null==D?void 0:D.redirectionCardDisabled:null==D?void 0:D.redirectionCardInteractive)},{children:[i.jsxs("div",e.__assign({className:a.default.leftSide,style:null==D?void 0:D.redirectionLeftSide},{children:[i.jsxs("span",e.__assign({className:a.default.textBlock,style:null==D?void 0:D.redirectionTextBlock},{children:[x&&i.jsxs("span",e.__assign({className:a.default.headerText,style:null==D?void 0:D.redirectionHeaderText},{children:[x,f?" ":""]})),f]})),i.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),b||T(!R)},className:[a.default.reasoningToggle,b?a.default.reasoningToggleDisabled:a.default.reasoningToggleActive].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.reasoningToggle),b?null==D?void 0:D.reasoningToggleDisabled:null==D?void 0:D.reasoningToggleActive)},{children:[k,R?i.jsx(s.ChevronUp,{className:a.default.chevronIcon,style:null==D?void 0:D.chevronIcon}):i.jsx(s.ChevronDown,{className:a.default.chevronIcon,style:null==D?void 0:D.chevronIcon})]}))]})),c?i.jsx("div",e.__assign({className:a.default.completeTickWrapper,style:null==D?void 0:D.completeTickWrapper},{children:i.jsx(s.Check,{color:(null==D?void 0:D.checkColor)||"green"})})):i.jsxs(i.Fragment,{children:["risk-gap"===u&&i.jsxs("div",e.__assign({className:a.default.rightSide,style:null==D?void 0:D.redirectionRightSide},{children:[i.jsx("button",e.__assign({disabled:b,className:[a.default.fixButton,b?a.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==D?void 0:D.redirectionFixButton),b?null==D?void 0:D.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),b||q()}},{children:"Fix"})),i.jsx(s.SquareArrowOutUpRight,{onClick:b?void 0:function(){b||null==j||j({type:v,id:_,aiReason:p,msg:g,meta:{headerText:x,decisionStrength:m,text:f}})},size:18,className:[b?a.default.redirectIconDisabled:a.default.redirectIcon].join(" "),style:e.__assign({},b?null==D?void 0:D.redirectIconDisabled:null==D?void 0:D.redirectIcon)})]})),"cra"===u&&i.jsx("div",e.__assign({className:a.default.rightSide,style:null==D?void 0:D.redirectionRightSide},{children:d===_?i.jsx("div",e.__assign({className:a.default.loaderWrapper,style:null==D?void 0:D.loaderWrapper},{children:i.jsx(s.Loader2,{size:16,className:a.default.loaderIcon,color:"grey",style:e.__assign({animation:"spin 1s linear infinite"},null==D?void 0:D.loaderIcon)})})):i.jsx("button",e.__assign({className:[a.default.clarifyButton].join(" "),style:e.__assign({color:b?"grey":""},null==D?void 0:D.redirectionClarifyButton),disabled:b,onClick:function(e){e.stopPropagation(),q()}},{children:"Clarify"}))}))]})]})),R&&i.jsx(l.default,{aiReason:{id:"1",reason:p.Reasoning||"",gap:p.Gap||"",relevance_score:Number(p.Confidence_score),explanation:p.explanation||""},onSelectProceed:q,customStyles:null==D?void 0:D.aiReasoningStyles,customIcons:N,cognitiveDecisionHeaders:I})]}))};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),o=require("lodash"),n=require("./GapFilterContentWrapper.js"),i=require("./GapFilterItem.js"),a=require("./CustomChatCrRedirection.js"),l=require("./gapFilterSvgs.js"),c=require("./GapFilterBlock.module.css.js");require("react-markdown"),require("rehype-raw"),require("../RequirementAIWrapper/RequirementAIWrapper.js");var d=["critical","recommendation","warning"];function s(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function u(t){return r.Children.toArray(t).filter(function(e){return r.isValidElement(e)}).filter(function(e){var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(function(t){var r,o,n=t.props,i=n.children,a=e.__rest(n,["children"]),l={};Object.keys(a).forEach(function(e){e.startsWith("data-")||(l[e]=a[e])});var c,d,s=(c=a,d={},Object.keys(c).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=c[e])}),d),u=a["decision-strength"],g=a["data-is-completed"];return{text:i,headerText:a.headertext,tags:a.tags,dataAttrs:s,decisionStrength:u,attrs:l,type:"gapfilteritem"===t.type?"gapfilteritem":"crredirection",score:a.score,isCompleted:g,pendingCount:a.pendingcount,question:a.question,components:a.components,showFix:null!==(r=a.showfix)&&void 0!==r&&r,showRedirect:null!==(o=a.showredirect)&&void 0!==o&&o}})}var g={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}};exports.GapFilterBlock=function(p){var m=p.processItemId,f=p.mode;p.node;var C=p.children,v=p.type,b=p.supportedmodes,h=void 0===b?"":b,y=p["decision-strength"],x=void 0===y?"":y,S=p.pendingdata,I=void 0===S?"":S,j=p.isGeneratingGap,k=void 0!==j&&j,_=p.selectedGapItemId,F=void 0===_?"":_,R=p.onItemSelect,A=p.onHandleSend,B=p.onModeAction,G=p.msg,T=p.panelRef,q=p.getAccordionState,w=p.setAccordionState,N=p.registerGapFilterBlockCount,E=p.getShowGapReviewButtonType,W=p.customStyles,D=p.customIcons,z=v,M=s(x),U=r.useState(function(){var e,t=null!==(e=null==q?void 0:q(z))&&void 0!==e?e:"";return"critical"!==z||t?t:z}),H=U[0],O=U[1],L=function(e){O(e),null==w||w(z,e)},J=u(C),P=r.useMemo(function(){return J.reduce(function(e,t){var r,o,n,i=null!==(r=t.tags)&&void 0!==r?r:"Uncategorized",a=null!==(n=null===(o=t.dataAttrs)||void 0===o?void 0:o.categoryid)&&void 0!==n?n:"1",l=e.find(function(e){return e.categoryName===i});return l||(l={categoryName:i,categoryId:a,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[])},[J]),V={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:t.jsx(l.SirenIcon,{}),label:"risk-gap"===f?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:t.jsx(l.WarningIcon,{}),label:"risk-gap"===f?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:t.jsx(l.SupportIcon,{}),label:"risk-gap"===f?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:t.jsx(l.SupportIcon,{}),label:"",decisionStrength:""}},$=r.useMemo(function(){return e=z,d.includes(e)?{labelColor:V[z].labelColor,badgeBackgroundColor:V[z].badgeBackgroundColor,badgeTextColor:V[z].badgeTextColor,label:V[z].label,decisionStrength:M||V[z].decisionStrength}:{labelColor:V.default.labelColor,badgeBackgroundColor:V.default.badgeBackgroundColor,badgeTextColor:V.default.badgeTextColor,label:o.capitalize(z),decisionStrength:M||""};var e},[z,M]);r.useEffect(function(){null==N||N(z,J.length)},[z,J.length,N]);var K=function(t,r,o){if(void 0===o&&(o={}),!k){var n="".concat(P[t].categoryId,"-").concat(r);null==R||R(n);var i=e.__assign(e.__assign({},P[t].items[r].dataAttrs),o);null==B||B(h,i)}};return E&&E(),t.jsx(n.GapFilterContentWrapper,e.__assign({mode:f,type:z,config:$,count:J.length,handleReviewClick:function(){J.length>0&&L(z)},openAccordion:H,onAccordionChange:function(e){L(H===e?"":e)},shouldShowReviewButton:!1,pendingData:I,customStyles:W},{children:P.map(function(r,o){return t.jsxs("div",e.__assign({className:c.default.categoryGroup,style:null==W?void 0:W.categoryGroup},{children:["gapfilteritem"===r.type&&"Uncategorized"!==r.categoryName&&t.jsx("p",e.__assign({className:c.default.categoryLabel,style:null==W?void 0:W.categoryLabel},{children:r.categoryName})),r.items.map(function(n,l){var d,s,u,p,C=n.attrs||{},v=null===(d=n.dataAttrs)||void 0===d?void 0:d["cognitive-reasoning"],b=C.id||(null===(s=n.dataAttrs)||void 0===s?void 0:s.id)||"",h="I"===b[0]?"UI_REF":"CHAT_REF",y=null===(u=null==G?void 0:G.contextAwareAgentReasoning)||void 0===u?void 0:u[v],x=n.isCompleted;return"gapfilteritem"===n.type?t.jsx("div",e.__assign({className:[c.default.gapFilterItemWrapper,"Uncategorized"!==r.categoryName?c.default.gapFilterItemWrapperIndented:""].join(" "),style:null==W?void 0:W.blockContainer},{children:t.jsx(i.GapFilterItem,{isCompleted:x,mode:f,index:l,isSelected:F==="".concat(r.categoryId,"-").concat(l),onClick:function(){return K(o,l)},onFixClick:function(){return K(o,l,{triggerFrom:"fix"})},onRedirect:function(){return K(o,l,{triggerFrom:"redirect"})},item:n,isGenerating:k,aiReason:y,panelRef:null!=T?T:{current:null},id:v,customStyles:W,customIcons:D})}),l):t.jsx("div",e.__assign({className:c.default.crRedirectionGroup,style:null==W?void 0:W.crRedirectionGroup},{children:t.jsx("div",e.__assign({className:c.default.crRedirectionInner,style:null==W?void 0:W.crRedirectionInner},{children:t.jsx(a.CustomChatCrRedirection,{processItemId:m,isCompleted:x,mode:f,msg:G,type:h,text:n.text,headerText:n.headerText,decisionStrength:n.decisionStrength,id:b,gapType:z,onHandleSend:A,isGenerating:k,aiReason:y,statusUi:null!==(p=g[z])&&void 0!==p?p:g.recommendation,panelRef:null!=T?T:{current:null},customStyles:W,customIcons:D})}))}),l)})]}),"".concat(r.categoryName,"-").concat(o))})}))},exports.normalizeDecisionStrength=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),o=require("lodash"),n=require("./GapFilterContentWrapper.js"),i=require("./GapFilterItem.js"),a=require("./CustomChatCrRedirection.js"),l=require("./gapFilterSvgs.js"),c=require("./GapFilterBlock.module.css.js");require("react-markdown"),require("rehype-raw"),require("../RequirementAIWrapper/RequirementAIWrapper.js");var d=["critical","recommendation","warning"];function s(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function u(t){return r.Children.toArray(t).filter(function(e){return r.isValidElement(e)}).filter(function(e){var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(function(t){var r,o,n=t.props,i=n.children,a=e.__rest(n,["children"]),l={};Object.keys(a).forEach(function(e){e.startsWith("data-")||(l[e]=a[e])});var c,d,s=(c=a,d={},Object.keys(c).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=c[e])}),d),u=a["decision-strength"],g=a["data-is-completed"];return{text:i,headerText:a.headertext,tags:a.tags,dataAttrs:s,decisionStrength:u,attrs:l,type:"gapfilteritem"===t.type?"gapfilteritem":"crredirection",score:a.score,isCompleted:g,pendingCount:a.pendingcount,question:a.question,components:a.components,showFix:null!==(r=a.showfix)&&void 0!==r&&r,showRedirect:null!==(o=a.showredirect)&&void 0!==o&&o}})}var g={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}};exports.GapFilterBlock=function(p){var m=p.isDefaultOpen,f=p.processItemId,v=p.mode;p.node;var C=p.children,b=p.type,h=p.supportedmodes,y=void 0===h?"":h,x=p["decision-strength"],S=void 0===x?"":x,I=p.pendingdata,j=void 0===I?"":I,k=p.isGeneratingGap,_=void 0!==k&&k,F=p.selectedGapItemId,R=void 0===F?"":F,A=p.onItemSelect,B=p.onHandleSend,G=p.onModeAction,T=p.msg,q=p.panelRef,w=p.getAccordionState,D=p.setAccordionState,N=p.registerGapFilterBlockCount,E=p.getShowGapReviewButtonType,W=p.customStyles,O=p.customIcons,H=p.cognitiveDecisionHeaders,z=b,M=s(S);console.log("testing::isDefaultOpen",m);var U=r.useState(function(){var e,t=null!==(e=null==w?void 0:w(z))&&void 0!==e?e:"";return"true"!==m||t?t:z}),L=U[0],J=U[1],P=function(e){J(e),null==D||D(z,e)},V=u(C),$=r.useMemo(function(){return V.reduce(function(e,t){var r,o,n,i=null!==(r=t.tags)&&void 0!==r?r:"Uncategorized",a=null!==(n=null===(o=t.dataAttrs)||void 0===o?void 0:o.categoryid)&&void 0!==n?n:"1",l=e.find(function(e){return e.categoryName===i});return l||(l={categoryName:i,categoryId:a,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[])},[V]),K={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:t.jsx(l.SirenIcon,{}),label:"risk-gap"===v?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:t.jsx(l.WarningIcon,{}),label:"risk-gap"===v?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:t.jsx(l.SupportIcon,{}),label:"risk-gap"===v?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:t.jsx(l.SupportIcon,{}),label:"",decisionStrength:""}},Q=r.useMemo(function(){return e=z,d.includes(e)?{labelColor:K[z].labelColor,badgeBackgroundColor:K[z].badgeBackgroundColor,badgeTextColor:K[z].badgeTextColor,label:K[z].label,decisionStrength:M||K[z].decisionStrength}:{labelColor:K.default.labelColor,badgeBackgroundColor:K.default.badgeBackgroundColor,badgeTextColor:K.default.badgeTextColor,label:o.capitalize(z),decisionStrength:M||""};var e},[z,M]);r.useEffect(function(){null==N||N(z,V.length)},[z,V.length,N]);var X=function(t,r,o){if(void 0===o&&(o={}),!_){var n="".concat($[t].categoryId,"-").concat(r);null==A||A(n);var i=e.__assign(e.__assign({},$[t].items[r].dataAttrs),o);null==G||G(y,i)}};return E&&E(),t.jsx(n.GapFilterContentWrapper,e.__assign({mode:v,type:z,config:Q,count:V.length,handleReviewClick:function(){V.length>0&&P(z)},openAccordion:L,onAccordionChange:function(e){P(L===e?"":e)},shouldShowReviewButton:!1,pendingData:j,customStyles:W},{children:$.map(function(r,o){return t.jsxs("div",e.__assign({className:c.default.categoryGroup,style:null==W?void 0:W.categoryGroup},{children:["gapfilteritem"===r.type&&"Uncategorized"!==r.categoryName&&t.jsx("p",e.__assign({className:c.default.categoryLabel,style:null==W?void 0:W.categoryLabel},{children:r.categoryName})),r.items.map(function(n,l){var d,s,u,p,C=n.attrs||{},b=null===(d=n.dataAttrs)||void 0===d?void 0:d["cognitive-reasoning"],h=C.id||(null===(s=n.dataAttrs)||void 0===s?void 0:s.id)||"",y="I"===h[0]?"UI_REF":"CHAT_REF",x=null===(u=null==T?void 0:T.contextAwareAgentReasoning)||void 0===u?void 0:u[b],S=n.isCompleted;return"gapfilteritem"===n.type?t.jsx("div",e.__assign({className:[c.default.gapFilterItemWrapper,"Uncategorized"!==r.categoryName?c.default.gapFilterItemWrapperIndented:""].join(" "),style:null==W?void 0:W.blockContainer},{children:t.jsx(i.GapFilterItem,{isDefaultOpen:"true"===m&&0===l,isCompleted:S,mode:v,index:l,isSelected:R==="".concat(r.categoryId,"-").concat(l),onClick:function(){return X(o,l)},onFixClick:function(){return X(o,l,{triggerFrom:"fix"})},onRedirect:function(){return X(o,l,{triggerFrom:"redirect"})},item:n,isGenerating:_,aiReason:x,panelRef:null!=q?q:{current:null},id:b,customStyles:W,customIcons:O,cognitiveDecisionHeaders:H})}),l):t.jsx("div",e.__assign({className:c.default.crRedirectionGroup,style:null==W?void 0:W.crRedirectionGroup},{children:t.jsx("div",e.__assign({className:c.default.crRedirectionInner,style:null==W?void 0:W.crRedirectionInner},{children:t.jsx(a.CustomChatCrRedirection,{isDefaultOpen:"true"===m&&0===l,processItemId:f,isCompleted:S,mode:v,msg:T,type:y,text:n.text,headerText:n.headerText,decisionStrength:n.decisionStrength,id:h,gapType:z,onHandleSend:B,isGenerating:_,aiReason:x,statusUi:null!==(p=g[z])&&void 0!==p?p:g.recommendation,panelRef:null!=q?q:{current:null},customStyles:W,customIcons:O,cognitiveDecisionHeaders:H})}))}),l)})]}),"".concat(r.categoryName,"-").concat(o))})}))},exports.normalizeDecisionStrength=s;
2
2
  //# sourceMappingURL=GapFilterBlock.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("lucide-react"),t=require("react"),i=require("@mui/material"),n=require("./GapFilterItem.module.css.js"),l=require("../ai-reasoning/AiReasoningCitationContent.js"),a=require("../../icons/CognitiveDecision.js"),r=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:n.default.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:n.default.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:n.default.scoreBadgeLow}};exports.GapFilterItem=function(d){d.isCompleted,d.mode;var c=d.index,u=d.isSelected,m=d.onClick,g=d.item,f=d.onFixClick,_=d.onRedirect,v=d.aiReason;d.panelRef;var p=d.id,x=d.isGenerating,h=void 0!==x&&x,j=d.customStyles,N=d.customIcons,C=t.useState(!1),y=C[0],R=C[1],S=(null==N?void 0:N.highConfidence)||s.jsx(a.default,{});t.useMemo(function(){return g.components?g.components.split("||"):[]},[g.components]);var T=t.useMemo(function(){return g.score&&isNaN(parseInt(g.score))?0:g.score?parseInt(g.score):0},[g.score]),b=r(T);return s.jsx("div",e.__assign({className:n.default.outerWrapper,onClick:m,style:null==j?void 0:j.itemOuterWrapper},{children:s.jsxs("div",e.__assign({className:n.default.innerCard,style:null==j?void 0:j.itemInnerCard},{children:[s.jsxs("div",e.__assign({className:n.default.contentBlock,style:null==j?void 0:j.contentBlock},{children:[s.jsxs("div",e.__assign({className:n.default.topRow,style:null==j?void 0:j.itemTopRow},{children:[s.jsx("div",e.__assign({className:[n.default.questionText,u?n.default.questionTextSelected:n.default.questionTextDefault].join(" "),style:e.__assign(e.__assign({},null==j?void 0:j.itemQuestionText),u?null==j?void 0:j.itemQuestionTextSelected:null==j?void 0:j.itemQuestionTextDefault)},{children:s.jsx(i.Tooltip,e.__assign({title:g.question||"",placement:"top"},{children:s.jsx("span",{className:n.default.questionSpan,style:null==j?void 0:j.itemQuestionSpan})}))})),s.jsxs("div",e.__assign({className:n.default.actionsRow,style:null==j?void 0:j.itemActionsRow},{children:[T>0&&s.jsx("div",e.__assign({className:[n.default.scoreBadge,b.className].join(" "),style:e.__assign(e.__assign(e.__assign(e.__assign({},null==j?void 0:j.itemScoreBadge),T>90?null==j?void 0:j.itemScoreBadgeHigh:{}),T>=70&&T<=90?null==j?void 0:j.itemScoreBadgeMedium:{}),T<70?null==j?void 0:j.itemScoreBadgeLow:{})},{children:"".concat(T,"%")})),g.showFix&&s.jsx("button",e.__assign({className:n.default.fixButton,onClick:function(e){e.stopPropagation(),f()},style:null==j?void 0:j.itemFixButton},{children:"Fix"})),g.showRedirect&&s.jsx(o.SquareArrowOutUpRight,{color:"#3b82f6",size:14,className:n.default.redirectIcon,onClick:function(e){e.stopPropagation(),_()},style:null==j?void 0:j.itemRedirectIcon})]}))]})),s.jsxs("div",e.__assign({className:[n.default.bottomRow,u?n.default.bottomRowSelected:n.default.bottomRowDefault].join(" "),style:u?e.__assign(e.__assign({},null==j?void 0:j.itemBottomRow),null==j?void 0:j.bottomRowSelected):e.__assign(e.__assign({},null==j?void 0:j.itemBottomRow),null==j?void 0:j.bottomRowDefault)},{children:[s.jsxs("span",e.__assign({className:n.default.gapTextSpan,style:null==j?void 0:j.itemGapText},{children:[(null==g?void 0:g.headerText)?s.jsx("span",e.__assign({className:n.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:g.headerText})):s.jsxs("span",e.__assign({className:n.default.gapHeaderText,style:null==j?void 0:j.itemGapHeaderText},{children:["Gap ",c+1,"."]}))," ",g.text]})),p&&s.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),h||R(!y)},className:[n.default.reasoningToggle,h?n.default.reasoningToggleDisabled:n.default.reasoningToggleActive].join(" "),style:null==j?void 0:j.itemReasoningToggle},{children:[S,y?s.jsx(o.ChevronUp,{className:n.default.chevronIcon,style:null==j?void 0:j.chevronIcon}):s.jsx(o.ChevronDown,{className:n.default.chevronIcon,style:null==j?void 0:j.chevronIcon})]}))]}))]})),y&&s.jsx(l.default,{aiReason:{id:"1",reason:v.Reasoning||"",gap:v.Gap||"",relevance_score:Number(v.Confidence_score),explanation:v.explanation||""},onSelectProceed:f,customStyles:null==j?void 0:j.aiReasoningStyles,customIcons:N})]}))}))},exports.getScoreColorStyles=r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),o=require("lucide-react"),i=require("react"),t=require("@mui/material"),n=require("./GapFilterItem.module.css.js"),a=require("../ai-reasoning/AiReasoningCitationContent.js"),l=require("../../icons/CognitiveDecision.js"),r=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:n.default.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:n.default.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:n.default.scoreBadgeLow}};exports.GapFilterItem=function(c){var d=c.isDefaultOpen;c.isCompleted,c.mode;var u=c.index,m=c.isSelected,g=c.onClick,f=c.item,v=c.onFixClick,_=c.onRedirect,p=c.aiReason;c.panelRef;var x=c.id,h=c.isGenerating,j=void 0!==h&&h,N=c.customStyles,C=c.customIcons,y=c.cognitiveDecisionHeaders,R=i.useState(d),S=R[0],T=R[1],b=(null==C?void 0:C.highConfidence)||s.jsx(l.default,{});i.useMemo(function(){return f.components?f.components.split("||"):[]},[f.components]);var w=i.useMemo(function(){return f.score&&isNaN(parseInt(f.score))?0:f.score?parseInt(f.score):0},[f.score]),q=r(w);return s.jsx("div",e.__assign({className:n.default.outerWrapper,onClick:g,style:null==N?void 0:N.itemOuterWrapper},{children:s.jsxs("div",e.__assign({className:n.default.innerCard,style:null==N?void 0:N.itemInnerCard},{children:[s.jsxs("div",e.__assign({className:n.default.contentBlock,style:null==N?void 0:N.contentBlock},{children:[s.jsxs("div",e.__assign({className:n.default.topRow,style:null==N?void 0:N.itemTopRow},{children:[s.jsx("div",e.__assign({className:[n.default.questionText,m?n.default.questionTextSelected:n.default.questionTextDefault].join(" "),style:e.__assign(e.__assign({},null==N?void 0:N.itemQuestionText),m?null==N?void 0:N.itemQuestionTextSelected:null==N?void 0:N.itemQuestionTextDefault)},{children:s.jsx(t.Tooltip,e.__assign({title:f.question||"",placement:"top"},{children:s.jsx("span",{className:n.default.questionSpan,style:null==N?void 0:N.itemQuestionSpan})}))})),s.jsxs("div",e.__assign({className:n.default.actionsRow,style:null==N?void 0:N.itemActionsRow},{children:[w>0&&s.jsx("div",e.__assign({className:[n.default.scoreBadge,q.className].join(" "),style:e.__assign(e.__assign(e.__assign(e.__assign({},null==N?void 0:N.itemScoreBadge),w>90?null==N?void 0:N.itemScoreBadgeHigh:{}),w>=70&&w<=90?null==N?void 0:N.itemScoreBadgeMedium:{}),w<70?null==N?void 0:N.itemScoreBadgeLow:{})},{children:"".concat(w,"%")})),f.showFix&&s.jsx("button",e.__assign({className:n.default.fixButton,onClick:function(e){e.stopPropagation(),v()},style:null==N?void 0:N.itemFixButton},{children:"Fix"})),f.showRedirect&&s.jsx(o.SquareArrowOutUpRight,{color:"#3b82f6",size:14,className:n.default.redirectIcon,onClick:function(e){e.stopPropagation(),_()},style:null==N?void 0:N.itemRedirectIcon})]}))]})),s.jsxs("div",e.__assign({className:[n.default.bottomRow,m?n.default.bottomRowSelected:n.default.bottomRowDefault].join(" "),style:m?e.__assign(e.__assign({},null==N?void 0:N.itemBottomRow),null==N?void 0:N.bottomRowSelected):e.__assign(e.__assign({},null==N?void 0:N.itemBottomRow),null==N?void 0:N.bottomRowDefault)},{children:[s.jsxs("span",e.__assign({className:n.default.gapTextSpan,style:null==N?void 0:N.itemGapText},{children:[(null==f?void 0:f.headerText)?s.jsx("span",e.__assign({className:n.default.gapHeaderText,style:null==N?void 0:N.itemGapHeaderText},{children:f.headerText})):s.jsxs("span",e.__assign({className:n.default.gapHeaderText,style:null==N?void 0:N.itemGapHeaderText},{children:["Gap ",u+1,"."]}))," ",f.text]})),x&&s.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),j||T(!S)},className:[n.default.reasoningToggle,j?n.default.reasoningToggleDisabled:n.default.reasoningToggleActive].join(" "),style:null==N?void 0:N.itemReasoningToggle},{children:[b,S?s.jsx(o.ChevronUp,{className:n.default.chevronIcon,style:null==N?void 0:N.chevronIcon}):s.jsx(o.ChevronDown,{className:n.default.chevronIcon,style:null==N?void 0:N.chevronIcon})]}))]}))]})),S&&s.jsx(a.default,{aiReason:{id:"1",reason:p.Reasoning||"",gap:p.Gap||"",relevance_score:Number(p.Confidence_score),explanation:p.explanation||""},onSelectProceed:v,customStyles:null==N?void 0:N.aiReasoningStyles,customIcons:C,cognitiveDecisionHeaders:y})]}))}))},exports.getScoreColorStyles=r;
2
2
  //# sourceMappingURL=GapFilterItem.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),r=require("rehype-raw"),o=require("./UserStoryWithCitation.module.css.js"),a=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),d=require("@mui/material"),s=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),g=require("../ai-reasoning/AiReasoningCitation.js"),f=require("../../icons/RelevanceScoreIcon.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=h(t),p=h(r),m=i.createContext(!1),C=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),x=i.createContext({rowId:""}),y=function(t){var r,a,l=t.children,d=t.node,s=i.useRef(Math.random().toString(36).slice(2)).current,c=i.useContext(C).expandedInfo,u=(null==c?void 0:c.rowId)===s,v=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,g=null!==(a=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==a?a:void 0;return n.jsxs(x.Provider,e.__assign({value:{rowId:s}},{children:[n.jsx("tr",e.__assign({style:g?{cssText:g}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:v||1,className:o.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:o.default.tableExpandedCellInner},{children:n.jsx("div",{className:o.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var r=t.message,h=t.scenario,x=t.showUserStoryDiff,j=void 0!==x&&x,S=t.aiReasoningsForBlock,R=t.isCitationLoadingDisplay,w=void 0!==R&&R,I=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var b=t.customStyles,N=t.customIcons,q=t.aiReasoningDiffView,A=t.userStoryCitations,M=t.artifactId,T=i.useRef(null),L=v.useRequirementAI(),U=L.userStory,E=L.getAvgScoreForStory,P=L.setUserStory,k=L.aiReasoning,F=L.setAiReasoning,$=L.customIcons,D=L.searchQueryList,W=L.searchQueryReasoningIdList,H=null!=N?N:null==$?void 0:$.userStoryIcons,z=null==b?void 0:b.searchHighlight,G=a.useMarkdownSearch(T,z),O=G.search,Q=G.clear,B=i.useState("1"),V=B[0],J=B[1],K=i.useState(null),X=K[0],Y=K[1],Z=i.useRef(new Map),ee=i.useCallback(function(e,n){Y(e&&n?{rowId:e,aiReason:n}:null)},[]),ne=M?E(M):0,ie=i.useState([]),te=ie[0],re=ie[1],oe=function(e){var n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),i=e.replace(n,"\n\n<$1>\n\n");return i=(i=i.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})};i.useMemo(function(){return r?oe(r):r},[r]),i.useEffect(function(){re(S||k)},[S,k]);var ae=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:o.default.heading1,style:null==b?void 0:b.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:o.default.heading2,style:null==b?void 0:b.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:o.default.heading3,style:null==b?void 0:b.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:o.default.bold,style:null==b?void 0:b.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:o.default.paragraph,style:null==b?void 0:b.paragraph},{children:t.children}))},updated:function(i){var t=i.node,r=e.__rest(i,["node"]);return n.jsx(s.default,e.__assign({},r,{showUserStoryDiff:j,currentUpdatedTagId:V,setCurrentUpdatedTagId:J,userStory:U,setUserStory:P,setAiReasoning:F,node:t,customStyles:null==b?void 0:b.updatedContent}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:o.default.orderedList,style:null==b?void 0:b.olist},{children:null==t?void 0:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:o.default.unorderedList,style:null==b?void 0:b.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:o.default.tableWrapper},{children:n.jsx("table",e.__assign({className:o.default.table,style:null==b?void 0:b.table},{children:t}))}))},tr:y,td:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,d=e.__rest(a,["style"]);return n.jsx(m.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},d,{style:l?{cssText:l}:void 0},{children:o}))}))},th:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,d=e.__rest(a,["style"]);return n.jsx(m.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},d,{style:l?{cssText:l}:void 0},{children:o}))}))},a:function(t){var r,o,a;t.inline,t.children,t.node;var l=e.__rest(t,["inline","children","node"]),d=i.useContext(m)||"true"==(null==l?void 0:l.table),s="".concat(null==l?void 0:l.href),c=null===(r=s.split("$"))||void 0===r?void 0:r[0],u=null===(o=s.split("$"))||void 0===o?void 0:o[1];if("ai_reasoning"===c){var v=(null!==(a=j?q:k)&&void 0!==a?a:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)});if(v&&v.reason.length>0&&v.gap.length>0)return n.jsx(g.default,{title:"Source",aiReason:v,isSourceHasHighlight:!1,isTable:d,customIcons:H,customStyles:{aiReasoningContent:null==b?void 0:b.aiReasoningContent,aiReasoningAccordion:null==b?void 0:b.aiReasoningAccordion,aiReasoningMarkdown:null==b?void 0:b.aiReasoningMarkdown,aiReasoningPill:null==b?void 0:b.aiReasoningPill,webCitation:null==b?void 0:b.webCitation,stormeeCitation:null==b?void 0:b.stormeeCitation,waveformCitation:null==b?void 0:b.waveformCitation,imageCitation:null==b?void 0:b.imageCitation,fileCitation:null==b?void 0:b.fileCitation,appModCitation:null==b?void 0:b.appModCitation,rcaCitation:null==b?void 0:b.rcaCitation,readFileCitation:null==b?void 0:b.readFileCitation,loadingCitations:null==b?void 0:b.loadingCitations}})}return null},code:function(i){i.inline;var t=i.children,r=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode,style:null==b?void 0:b.code},{children:t}))}):n.jsx("code",e.__assign({className:o.default.inlineCode,style:null==b?void 0:b.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(d.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(l.Info,{size:16,className:o.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),r=(null==t?void 0:t.language)||"python",o=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(c.default,{title:"Generated Code",code:o,language:r,customStyles:{pill:null==b?void 0:b.generatedCodePill,content:null==b?void 0:b.generatedCodeContent}})}}},[te,k,A,V,j,r,N]);return i.useEffect(function(){if(T.current){if(null==D?void 0:D.length){var e;if(0===(null==W?void 0:W.length))requestAnimationFrame(function(){O(D.map(function(e){return e.replace(/\*/g,"")}))});else{var n=T.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){O(D.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}Q()}},[D,W]),n.jsx(C.Provider,e.__assign({value:{expandedInfo:X,setExpanded:ee,reasonToRow:Z}},{children:n.jsxs("div",e.__assign({ref:T,className:"".concat(o.default.container," ").concat("approving"!==h?o.default.wrapper:""," ").concat(I||""),style:null==b?void 0:b.container},{children:[n.jsx(_.default,e.__assign({components:ae,rehypePlugins:[p.default]},{children:oe(r)})),ne>0&&n.jsx("div",e.__assign({className:o.default.confidenceScoreContainer,style:null==b?void 0:b.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:o.default.confidenceScore,style:null==b?void 0:b.confidenceScore},{children:[n.jsx(f.default,{size:14,color:(null==b?void 0:b.confidenceScoreIconColor)||"#166534"}),ne,"%"]}))})),w&&n.jsx("div",e.__assign({className:o.default.citationLoader,style:null==b?void 0:b.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==b?void 0:b.citationLoadingContainer,icon:null==b?void 0:b.citationLoadingIcon,text:null==b?void 0:b.citationLoadingText}})}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),r=require("rehype-raw"),o=require("./UserStoryWithCitation.module.css.js"),a=require("../../shared/useMarkdownSearch.js"),l=require("lucide-react"),s=require("@mui/material"),d=require("../../shared/UpdatedAnimationContent.js"),c=require("../../shared/GeneratedCodeCitation.js"),u=require("../../shared/CitationLoadingIndicator.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("../ai-reasoning/AiReasoningCitation.js"),g=require("../../icons/RelevanceScoreIcon.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=h(t),p=h(r),m=i.createContext(!1),C=i.createContext({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),x=i.createContext({rowId:""}),y=function(t){var r,a,l=t.children,s=t.node,d=i.useRef(Math.random().toString(36).slice(2)).current,c=i.useContext(C).expandedInfo,u=(null==c?void 0:c.rowId)===d,v=Array.isArray(null==s?void 0:s.children)?s.children.filter(function(e){return"element"===e.type}).length:1,f=null!==(a=null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r.style)&&void 0!==a?a:void 0;return n.jsxs(x.Provider,e.__assign({value:{rowId:d}},{children:[n.jsx("tr",e.__assign({style:f?{cssText:f}:void 0},{children:l})),u&&(null==c?void 0:c.aiReason)&&n.jsx("tr",e.__assign({style:{width:"100%"}},{children:n.jsx("td",e.__assign({colSpan:v||1,className:o.default.tableExpandedCell},{children:n.jsx("div",e.__assign({className:o.default.tableExpandedCellInner},{children:n.jsx("div",{className:o.default.tableExpandedCellContent})}))}))}))]}))};exports.default=function(t){var r=t.message,h=t.scenario,x=t.showUserStoryDiff,j=void 0!==x&&x,S=t.aiReasoningsForBlock,w=t.isCitationLoadingDisplay,R=void 0!==w&&w,I=t.className;t.highConfidenceIcon,t.lowConfidenceIcon;var b=t.customStyles,N=t.customIcons,q=t.aiReasoningDiffView,A=t.userStoryCitations,M=t.artifactId,T=t.isCraflow,L=i.useRef(null),U=v.useRequirementAI(),E=U.userStory,P=U.getAvgScoreForStory,k=U.setUserStory,F=U.aiReasoning,$=U.setAiReasoning,D=U.customIcons,W=U.searchQueryList,H=U.searchQueryReasoningIdList,z=null!=N?N:null==D?void 0:D.userStoryIcons,G=null==b?void 0:b.searchHighlight,O=a.useMarkdownSearch(L,G),Q=O.search,B=O.clear,V=i.useState("1"),J=V[0],K=V[1],X=i.useState(null),Y=X[0],Z=X[1],ee=i.useRef(new Map),ne=i.useCallback(function(e,n){Z(e&&n?{rowId:e,aiReason:n}:null)},[]),ie=M?P(M):0,te=i.useState([]),re=te[0],oe=te[1],ae=function(e){var n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),i=e.replace(n,"\n\n<$1>\n\n");return i=(i=i.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var t=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(t,'"></generatedCode>\n\n')})};i.useMemo(function(){return r?ae(r):r},[r]),i.useEffect(function(){oe(S||F)},[S,F]);var le=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:o.default.heading1,style:null==b?void 0:b.heading1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:o.default.heading2,style:null==b?void 0:b.heading2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:o.default.heading3,style:null==b?void 0:b.heading3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:o.default.bold,style:null==b?void 0:b.bold},{children:null==t?void 0:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:o.default.paragraph,style:null==b?void 0:b.paragraph},{children:t.children}))},updated:function(i){var t=i.node,r=e.__rest(i,["node"]);return n.jsx(d.default,e.__assign({},r,{showUserStoryDiff:j,currentUpdatedTagId:J,setCurrentUpdatedTagId:K,userStory:E,setUserStory:k,setAiReasoning:$,node:t,isCraflow:T,customStyles:null==b?void 0:b.updatedContent}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:o.default.orderedList,style:null==b?void 0:b.olist},{children:null==t?void 0:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:o.default.unorderedList,style:null==b?void 0:b.ulist},{children:null==t?void 0:t.children}))},table:function(i){var t=i.children;return n.jsx("div",e.__assign({className:o.default.tableWrapper},{children:n.jsx("table",e.__assign({className:o.default.table,style:null==b?void 0:b.table},{children:t}))}))},tr:y,td:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(m.Provider,e.__assign({value:!0},{children:n.jsx("td",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},th:function(i){var t,r=i.node,o=i.children,a=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},l=a.style,s=e.__rest(a,["style"]);return n.jsx(m.Provider,e.__assign({value:!0},{children:n.jsx("th",e.__assign({},s,{style:l?{cssText:l}:void 0},{children:o}))}))},a:function(t){var r,o,a;t.inline,t.children,t.node;var l=e.__rest(t,["inline","children","node"]),s=i.useContext(m)||"true"==(null==l?void 0:l.table),d="".concat(null==l?void 0:l.href),c=null===(r=d.split("$"))||void 0===r?void 0:r[0],u=null===(o=d.split("$"))||void 0===o?void 0:o[1];if("ai_reasoning"===c){var v=(null!==(a=j?q:F)&&void 0!==a?a:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)});if(v&&v.reason.length>0&&v.gap.length>0)return n.jsx(f.default,{title:"Source",aiReason:v,isSourceHasHighlight:!1,isTable:s,customIcons:z,customStyles:{aiReasoningContent:null==b?void 0:b.aiReasoningContent,aiReasoningAccordion:null==b?void 0:b.aiReasoningAccordion,aiReasoningMarkdown:null==b?void 0:b.aiReasoningMarkdown,aiReasoningPill:null==b?void 0:b.aiReasoningPill,webCitation:null==b?void 0:b.webCitation,stormeeCitation:null==b?void 0:b.stormeeCitation,waveformCitation:null==b?void 0:b.waveformCitation,imageCitation:null==b?void 0:b.imageCitation,fileCitation:null==b?void 0:b.fileCitation,appModCitation:null==b?void 0:b.appModCitation,rcaCitation:null==b?void 0:b.rcaCitation,readFileCitation:null==b?void 0:b.readFileCitation,loadingCitations:null==b?void 0:b.loadingCitations}})}return null},code:function(i){i.inline;var t=i.children,r=i.className;return i.node,e.__rest(i,["inline","children","className","node"]),/language-(\w+)/.exec(r||"")||(null==r?void 0:r.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode,style:null==b?void 0:b.code},{children:t}))}):n.jsx("code",e.__assign({className:o.default.inlineCode,style:null==b?void 0:b.code},{children:t}))},learned:function(i){var t=i.children;return n.jsx(s.Tooltip,e.__assign({title:t,placement:"top"},{children:n.jsx(l.Info,{size:16,className:o.default.learned})}))},generatedcode:function(i){i.node;var t=e.__rest(i,["node"]),r=(null==t?void 0:t.language)||"python",o=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(t);return n.jsx(c.default,{title:"Generated Code",code:o,language:r,customStyles:{pill:null==b?void 0:b.generatedCodePill,content:null==b?void 0:b.generatedCodeContent}})}}},[re,F,A,J,j,r,N]);return i.useEffect(function(){if(L.current){if(null==W?void 0:W.length){var e;if(0===(null==H?void 0:H.length))requestAnimationFrame(function(){Q(W.map(function(e){return e.replace(/\*/g,"")}))});else{var n=L.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){Q(W.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}B()}},[W,H]),n.jsx(C.Provider,e.__assign({value:{expandedInfo:Y,setExpanded:ne,reasonToRow:ee}},{children:n.jsxs("div",e.__assign({ref:L,className:"".concat(o.default.container," ").concat("approving"!==h?o.default.wrapper:""," ").concat(I||""),style:null==b?void 0:b.container},{children:[n.jsx(_.default,e.__assign({components:le,rehypePlugins:[p.default]},{children:ae(r)})),ie>0&&n.jsx("div",e.__assign({className:o.default.confidenceScoreContainer,style:null==b?void 0:b.confidenceScoreContainer},{children:n.jsxs("span",e.__assign({className:o.default.confidenceScore,style:null==b?void 0:b.confidenceScore},{children:[n.jsx(g.default,{size:14,color:(null==b?void 0:b.confidenceScoreIconColor)||"#166534"}),ie,"%"]}))})),R&&n.jsx("div",e.__assign({className:o.default.citationLoader,style:null==b?void 0:b.citationLoaderContainer},{children:n.jsx(u.default,{customStyles:{container:null==b?void 0:b.citationLoadingContainer,icon:null==b?void 0:b.citationLoadingIcon,text:null==b?void 0:b.citationLoadingText}})}))]}))}))};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("@mui/material"),r=require("./CitationAIConfidenceDisplay.module.css.js"),l=require("../icons/RelevanceScoreIcon.js"),s=require("lucide-react");exports.renderAIConfidenceDisplay=function(i,o,a,c){if("number"==typeof i&&!isNaN(i)){var t=(null==c?void 0:c.confidenceScoreIcon)||n.jsx(l.default,{size:20});return n.jsxs("div",e.__assign({className:r.default.decisioncontainer,style:null==a?void 0:a.container},{children:[t,n.jsxs("span",e.__assign({style:null==a?void 0:a.text},{children:["Decision strength: ",i,"%"]})),Number(o||0)>0&&n.jsxs("span",e.__assign({className:r.default.scoreIncrease,style:null==a?void 0:a.scoreIncrease},{children:[n.jsx(s.ArrowUp,{className:r.default.arrowIcon,style:null==a?void 0:a.arrowIcon}),null==o?void 0:o.toFixed(2),"%"]}))]}))}return null},exports.renderCitationAIConfidenceDisplay=function(s,o,a,c){var t;if("number"!=typeof s||isNaN(s))return null;var u=(null==c?void 0:c.confidenceScoreIcon)||n.jsx(l.default,{size:20,color:null===(t=null==a?void 0:a.icon)||void 0===t?void 0:t.color}),d=n.jsxs("div",e.__assign({className:"".concat(r.default.container," ").concat(o?r.default.legacy:r.default.modern),style:null==a?void 0:a.container},{children:[u,n.jsx("span",e.__assign({style:null==a?void 0:a.label},{children:o?"Citation Relevance: ".concat(s,"%"):"".concat(s,"%")}))]}));return o?d:n.jsx(i.Tooltip,e.__assign({title:"Citation Relevance",arrow:!0},{children:d}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("@mui/material"),l=require("./CitationAIConfidenceDisplay.module.css.js"),r=require("../icons/RelevanceScoreIcon.js"),s=require("lucide-react");exports.renderAIConfidenceDisplay=function(i,o,a,c){if("number"==typeof i&&!isNaN(i)){var t=(null==c?void 0:c.confidenceScoreIcon)||n.jsx(r.default,{size:20});return n.jsxs("div",e.__assign({className:l.default.decisioncontainer,style:null==a?void 0:a.container},{children:[t,n.jsxs("span",e.__assign({style:null==a?void 0:a.text},{children:[i,"%"]})),Number(o||0)>0&&n.jsxs("span",e.__assign({className:l.default.scoreIncrease,style:null==a?void 0:a.scoreIncrease},{children:[n.jsx(s.ArrowUp,{className:l.default.arrowIcon,style:null==a?void 0:a.arrowIcon}),null==o?void 0:o.toFixed(2),"%"]}))]}))}return null},exports.renderCitationAIConfidenceDisplay=function(s,o,a,c){var t;if("number"!=typeof s||isNaN(s))return null;var u=(null==c?void 0:c.confidenceScoreIcon)||n.jsx(r.default,{size:20,color:null===(t=null==a?void 0:a.icon)||void 0===t?void 0:t.color}),d=n.jsxs("div",e.__assign({className:"".concat(l.default.container," ").concat(o?l.default.legacy:l.default.modern),style:null==a?void 0:a.container},{children:[u,n.jsx("span",e.__assign({style:null==a?void 0:a.label},{children:o?"Citation Relevance: ".concat(s,"%"):"".concat(s,"%")}))]}));return o?d:n.jsx(i.Tooltip,e.__assign({title:"Citation Relevance",arrow:!0},{children:d}))};
2
2
  //# sourceMappingURL=CitationAIConfidenceDisplay.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".CitationAIConfidenceDisplay-module_container__ufVDg{align-items:center;border-radius:9999px;display:flex;flex-direction:row;font-weight:500;gap:.5rem;margin-left:1.5rem;padding:.25rem .75rem}.CitationAIConfidenceDisplay-module_legacy__h3fOA{background-color:#fff;border:2px solid #ac93f6;color:#1f2937;min-width:13.83rem}.CitationAIConfidenceDisplay-module_modern__A89gC{background-color:#bbf7d0;border:2px solid #10b981;color:#1f2937;min-width:6.4rem}.CitationAIConfidenceDisplay-module_decisioncontainer__GR1QW{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:9999px;color:#5928ed;display:flex;flex-direction:row;font-weight:500;gap:.5rem;margin-left:1.5rem;min-width:13.83rem;padding:.5rem .75rem}.CitationAIConfidenceDisplay-module_scoreIncrease__IQwm2{align-items:center;background-color:#cdf4de;border-radius:9999px;color:#027a48;display:flex;flex-direction:row;font-size:.875rem;margin-left:.25rem;padding:.25rem .5rem}.CitationAIConfidenceDisplay-module_arrowIcon__jKsG0{height:1rem;margin-right:.125rem;width:1rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"CitationAIConfidenceDisplay-module_container__ufVDg",legacy:"CitationAIConfidenceDisplay-module_legacy__h3fOA",modern:"CitationAIConfidenceDisplay-module_modern__A89gC",decisioncontainer:"CitationAIConfidenceDisplay-module_decisioncontainer__GR1QW",scoreIncrease:"CitationAIConfidenceDisplay-module_scoreIncrease__IQwm2",arrowIcon:"CitationAIConfidenceDisplay-module_arrowIcon__jKsG0"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".CitationAIConfidenceDisplay-module_container__ufVDg{align-items:center;border-radius:9999px;display:flex;flex-direction:row;font-weight:500;gap:.5rem;margin-left:1.5rem;padding:.25rem .75rem}.CitationAIConfidenceDisplay-module_legacy__h3fOA{background-color:#fff;border:2px solid #ac93f6;color:#1f2937;min-width:13.83rem}.CitationAIConfidenceDisplay-module_modern__A89gC{background-color:#bbf7d0;border:2px solid #10b981;color:#1f2937;min-width:6.4rem}.CitationAIConfidenceDisplay-module_decisioncontainer__GR1QW{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:9999px;color:#5928ed;display:flex;flex-direction:row;font-weight:500;gap:.5rem;margin-left:1.5rem;min-width:5rem;padding:.25rem .75rem}.CitationAIConfidenceDisplay-module_scoreIncrease__IQwm2{align-items:center;background-color:#cdf4de;border-radius:9999px;color:#027a48;display:flex;flex-direction:row;font-size:.875rem;margin-left:.25rem;padding:.25rem .5rem}.CitationAIConfidenceDisplay-module_arrowIcon__jKsG0{height:1rem;margin-right:.125rem;width:1rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"CitationAIConfidenceDisplay-module_container__ufVDg",legacy:"CitationAIConfidenceDisplay-module_legacy__h3fOA",modern:"CitationAIConfidenceDisplay-module_modern__A89gC",decisioncontainer:"CitationAIConfidenceDisplay-module_decisioncontainer__GR1QW",scoreIncrease:"CitationAIConfidenceDisplay-module_scoreIncrease__IQwm2",arrowIcon:"CitationAIConfidenceDisplay-module_arrowIcon__jKsG0"};
2
2
  //# sourceMappingURL=CitationAIConfidenceDisplay.module.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("lucide-react"),r=require("react"),l=require("./UpdatedAnimationContent.module.css.js");exports.default=function(o){var i,u,s,a,d,c,v,f,p=o.showUserStoryDiff,g=void 0!==p&&p,h=o.currentUpdatedTagId,m=o.setCurrentUpdatedTagId;o.node;var y=o.userStory,_=o.setUserStory,S=o.setAiReasoning,x=o.customStyles,N=o.customIcons,j=e.__rest(o,["showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),T=r.useState(!1),I=T[0],M=T[1],b=r.useState(null),C=b[0],w=b[1],U=r.useRef(null),q=r.useRef(null),z=null!==(i=null==x?void 0:x.iconSize)&&void 0!==i?i:16,L=null!==(u=null==x?void 0:x.actionIconSize)&&void 0!==u?u:z;r.useEffect(function(){if(q.current){var e=setTimeout(function(){var e=q.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[h]);var A=null===(d=null===(a=null===(s=null==j?void 0:j.children)||void 0===s?void 0:s.filter(function(e){return"string"!=typeof e}).find(function(e){return"deleted"===(null==e?void 0:e.type)}))||void 0===a?void 0:a.props)||void 0===d?void 0:d.children,E=null===(f=null===(v=null===(c=null==j?void 0:j.children)||void 0===c?void 0:c.filter(function(e){return"string"!=typeof e}).find(function(e){return"changed"===(null==e?void 0:e.type)}))||void 0===v?void 0:v.props)||void 0===f?void 0:f.children;function B(n,t,r){var l=JSON.parse(JSON.stringify(n)),o=function(e,n){var t=function(e){for(var r=0,l=e;r<l.length;r++){var o=l[r];if((new DOMParser).parseFromString(o.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return o;if(o.sub_features&&o.sub_features.length>0){var i=t(o.sub_features);if(i)return i}}return null};return t(e)}(l,t);if(!o)return console.warn("No user story found with updated id: ".concat(t)),!1;var i=(new DOMParser).parseFromString(o.value,"text/html"),u=i.querySelector('updated[id="'.concat(t,'"]'));if(!u)return console.warn("No <updated> block found with id: ".concat(t)),!1;var s,a=u.innerHTML,d=u.querySelector("deleted"),c=u.querySelector("changed"),v=d?d.innerHTML.trim():null,f=c?c.innerHTML.trim():null,p="";if("reject"===r){var g=(s=(v||f||"").match(/ai_reasoning\$(\d+)/))?parseInt(s[1],10):null;null!==g&&S(function(n){var t=n.map(function(n){return e.__assign({},n)}),r="".concat(g,"-legacy"),l=t.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===r});if(l){var o=l.id.toString().replace("-legacy","");t=t.filter(function(e){return e.id.toString()!==o}),l.id=o}return e.__spreadArray([],t,!0)})}"accept"===r?p=v&&f?f:v&&!f?"":!v&&f?f:a:"reject"===r&&(p=v&&f||v&&!f?v:!v&&f?"":a);var h=i.createElement("div");h.innerHTML=p;var y=Array.from(h.childNodes);u.replaceWith.apply(u,y);var x=new XMLSerializer;return o.value=x.serializeToString(i),_(l),m(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),!0}var H=function(n){var t=(null==x?void 0:x.actionButton)||{},r=C===n&&(null==x?void 0:x.actionButtonHover)||{};return e.__assign(e.__assign({},t),r)};return n.jsxs("div",e.__assign({},j,{className:l.default.container,style:null==x?void 0:x.container,onMouseEnter:function(){U.current&&(clearTimeout(U.current),U.current=null),M(!0)},onMouseLeave:function(){U.current=setTimeout(function(){M(!1),U.current=null},2e3)},ref:(null==j?void 0:j.id)===h?q:null},{children:[I&&!g&&n.jsxs("span",e.__assign({className:l.default.hoverActions,style:null==x?void 0:x.hoverActions,onMouseEnter:function(){return M(!0)}},{children:[n.jsx("button",e.__assign({className:l.default.actionButton,style:H("undo"),onMouseEnter:function(){return w("undo")},onMouseLeave:function(){return w(null)},onClick:function(){B(y,null==j?void 0:j.id,"reject"),M(!1)}},{children:(null==N?void 0:N.undo)?N.undo:n.jsx(t.Undo,{size:L,color:null==x?void 0:x.undoIconColor,className:l.default.hw})})),n.jsx("span",{className:l.default.divider,style:null==x?void 0:x.divider}),n.jsx("button",e.__assign({className:l.default.actionButton,style:H("accept"),onMouseEnter:function(){return w("accept")},onMouseLeave:function(){return w(null)},onClick:function(){B(y,null==j?void 0:j.id,"accept"),M(!1)}},{children:(null==N?void 0:N.accept)?N.accept:n.jsx(t.ThumbsUp,{size:L,color:null==x?void 0:x.thumbsUpIconColor,className:l.default.hw})}))]})),A&&n.jsxs("div",e.__assign({className:l.default.deletedContainer,style:null==x?void 0:x.deletedContainer},{children:[n.jsx("span",e.__assign({style:null==x?void 0:x.deletedIconWrapper},{children:(null==N?void 0:N.deleted)?N.deleted:n.jsx(t.Minus,{size:z,color:null==x?void 0:x.deletedIconColor,className:l.default.deletedIcon})})),n.jsx("div",e.__assign({className:l.default.deletedText,style:null==x?void 0:x.deletedText},{children:A}))]})),E&&n.jsxs("div",e.__assign({className:l.default.changedContainer,style:null==x?void 0:x.changedContainer},{children:[n.jsx("span",e.__assign({style:null==x?void 0:x.changedIconWrapper},{children:(null==N?void 0:N.changed)?N.changed:n.jsx(t.Plus,{size:z,color:null==x?void 0:x.changedIconColor,className:l.default.changedIcon})})),n.jsx("div",e.__assign({className:l.default.changedText,style:null==x?void 0:x.changedText},{children:E}))]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("lucide-react"),r=require("react"),l=require("./UpdatedAnimationContent.module.css.js");exports.default=function(o){var i,u,s,a,d,c,v,f,p=o.isCraflow,g=o.showUserStoryDiff,h=void 0!==g&&g,m=o.currentUpdatedTagId,y=o.setCurrentUpdatedTagId;o.node;var _=o.userStory,S=o.setUserStory,x=o.setAiReasoning,N=o.customStyles,j=o.customIcons,T=e.__rest(o,["isCraflow","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),I=r.useState(!1),M=I[0],b=I[1],C=r.useState(null),w=C[0],U=C[1],q=r.useRef(null),z=r.useRef(null),L=null!==(i=null==N?void 0:N.iconSize)&&void 0!==i?i:16,A=null!==(u=null==N?void 0:N.actionIconSize)&&void 0!==u?u:L;r.useEffect(function(){if(z.current){var e=setTimeout(function(){var e=z.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[m]);var E=null===(d=null===(a=null===(s=null==T?void 0:T.children)||void 0===s?void 0:s.filter(function(e){return"string"!=typeof e}).find(function(e){return"deleted"===(null==e?void 0:e.type)}))||void 0===a?void 0:a.props)||void 0===d?void 0:d.children,B=null===(f=null===(v=null===(c=null==T?void 0:T.children)||void 0===c?void 0:c.filter(function(e){return"string"!=typeof e}).find(function(e){return"changed"===(null==e?void 0:e.type)}))||void 0===v?void 0:v.props)||void 0===f?void 0:f.children;function H(n,t,r){var l=JSON.parse(JSON.stringify(n)),o=function(e,n){var t=function(e){for(var r=0,l=e;r<l.length;r++){var o=l[r];if((new DOMParser).parseFromString(o.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return o;if(o.sub_features&&o.sub_features.length>0){var i=t(o.sub_features);if(i)return i}}return null};return t(e)}(l,t);if(!o)return console.warn("No user story found with updated id: ".concat(t)),!1;var i=(new DOMParser).parseFromString(o.value,"text/html"),u=i.querySelector('updated[id="'.concat(t,'"]'));if(!u)return console.warn("No <updated> block found with id: ".concat(t)),!1;var s,a=u.innerHTML,d=u.querySelector("deleted"),c=u.querySelector("changed"),v=d?d.innerHTML.trim():null,f=c?c.innerHTML.trim():null,p="";if("reject"===r){var g=(s=(v||f||"").match(/ai_reasoning\$(\d+)/))?parseInt(s[1],10):null;null!==g&&x(function(n){var t=n.map(function(n){return e.__assign({},n)}),r="".concat(g,"-legacy"),l=t.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===r});if(l){var o=l.id.toString().replace("-legacy","");t=t.filter(function(e){return e.id.toString()!==o}),l.id=o}return e.__spreadArray([],t,!0)})}"accept"===r?p=v&&f?f:v&&!f?"":!v&&f?f:a:"reject"===r&&(p=v&&f||v&&!f?v:!v&&f?"":a);var h=i.createElement("div");h.innerHTML=p;var m=Array.from(h.childNodes);u.replaceWith.apply(u,m);var _=new XMLSerializer;return o.value=_.serializeToString(i),S(l),y(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),!0}var O=function(n){var t=(null==N?void 0:N.actionButton)||{},r=w===n&&(null==N?void 0:N.actionButtonHover)||{};return e.__assign(e.__assign({},t),r)};return n.jsxs("div",e.__assign({},T,{className:l.default.container,style:null==N?void 0:N.container,onMouseEnter:function(){q.current&&(clearTimeout(q.current),q.current=null),b(!0)},onMouseLeave:function(){q.current=setTimeout(function(){b(!1),q.current=null},2e3)},ref:(null==T?void 0:T.id)===m?z:null},{children:[M&&!h&&!p&&n.jsxs("span",e.__assign({className:l.default.hoverActions,style:null==N?void 0:N.hoverActions,onMouseEnter:function(){return b(!0)}},{children:[n.jsx("button",e.__assign({className:l.default.actionButton,style:O("undo"),onMouseEnter:function(){return U("undo")},onMouseLeave:function(){return U(null)},onClick:function(){H(_,null==T?void 0:T.id,"reject"),b(!1)}},{children:(null==j?void 0:j.undo)?j.undo:n.jsx(t.Undo,{size:A,color:null==N?void 0:N.undoIconColor,className:l.default.hw})})),n.jsx("span",{className:l.default.divider,style:null==N?void 0:N.divider}),n.jsx("button",e.__assign({className:l.default.actionButton,style:O("accept"),onMouseEnter:function(){return U("accept")},onMouseLeave:function(){return U(null)},onClick:function(){H(_,null==T?void 0:T.id,"accept"),b(!1)}},{children:(null==j?void 0:j.accept)?j.accept:n.jsx(t.ThumbsUp,{size:A,color:null==N?void 0:N.thumbsUpIconColor,className:l.default.hw})}))]})),E&&n.jsxs("div",e.__assign({className:l.default.deletedContainer,style:null==N?void 0:N.deletedContainer},{children:[n.jsx("span",e.__assign({style:null==N?void 0:N.deletedIconWrapper},{children:(null==j?void 0:j.deleted)?j.deleted:n.jsx(t.Minus,{size:L,color:null==N?void 0:N.deletedIconColor,className:l.default.deletedIcon})})),n.jsx("div",e.__assign({className:l.default.deletedText,style:null==N?void 0:N.deletedText},{children:E}))]})),B&&n.jsxs("div",e.__assign({className:l.default.changedContainer,style:null==N?void 0:N.changedContainer},{children:[n.jsx("span",e.__assign({style:null==N?void 0:N.changedIconWrapper},{children:(null==j?void 0:j.changed)?j.changed:n.jsx(t.Plus,{size:L,color:null==N?void 0:N.changedIconColor,className:l.default.changedIcon})})),n.jsx("div",e.__assign({className:l.default.changedText,style:null==N?void 0:N.changedText},{children:B}))]}))]}))};
2
2
  //# sourceMappingURL=UpdatedAnimationContent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{ChevronUp as c,ChevronDown as a}from"lucide-react";import{useState as l}from"react";import t from"./AiReasonAccoridon.module.css.js";function n(n){var o=n.icon,s=n.title,d=n.content,m=n.subTitle,p=n.scenario,u=n.className,v=void 0===u?"":u,h=n.customStyles,N=l(!0),f=N[0],y=N[1];return r("div",e({className:"".concat("riskSideBar"!==p&&t.wrapperBorder," ").concat(t.wrapper," ").concat(v),style:null==h?void 0:h.wrapper},{children:[r("div",e({className:"".concat(t.header," ").concat("riskSideBar"===p?t.headerPaddingRisk:t.headerPadding),style:null==h?void 0:h.header,onClick:function(){return y(!f)}},{children:[r("div",e({className:t.headerLeft,style:null==h?void 0:h.iconWrapper},{children:[o,r("div",e({className:t.titleBlock},{children:[i("h1",e({className:t.title,style:null==h?void 0:h.title},{children:s})),i("p",e({className:t.subTitle,style:null==h?void 0:h.subTitle},{children:m}))]}))]})),"riskSideBar"!==p&&i("div",e({className:t.chevronWrapper,style:null==h?void 0:h.chevronWrapper},{children:i(f?c:a,{className:t.chevronIcon})}))]})),f&&i("div",e({className:"".concat("riskSideBar"!==p&&t.content," ").concat(t.contentBase),style:null==h?void 0:h.contentWrapper},{children:d}))]}))}export{n as default};
1
+ import{__assign as e}from"tslib";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{ChevronUp as a,ChevronDown as c}from"lucide-react";import{useState as l}from"react";import t from"./AiReasonAccoridon.module.css.js";function n(n){var o=n.icon,s=n.title,d=n.content,m=n.subTitle,p=n.scenario,v=n.className,u=void 0===v?"":v,h=n.customStyles,f=n.alwaysOpen,N=void 0!==f&&f,y=n.defaultOpen,k=l(void 0===y||y),B=k[0],S=k[1];return r("div",e({className:"".concat("riskSideBar"!==p&&t.wrapperBorder," ").concat(t.wrapper," ").concat(u),style:null==h?void 0:h.wrapper},{children:[r("div",e({className:"".concat(t.header," ").concat("riskSideBar"===p?t.headerPaddingRisk:t.headerPadding),style:null==h?void 0:h.header,onClick:function(){N||S(!B)}},{children:[r("div",e({className:t.headerLeft,style:null==h?void 0:h.iconWrapper},{children:[o,r("div",e({className:t.titleBlock},{children:[i("h1",e({className:t.title,style:null==h?void 0:h.title},{children:s})),i("p",e({className:t.subTitle,style:null==h?void 0:h.subTitle},{children:m}))]}))]})),"riskSideBar"!==p&&!N&&i("div",e({className:t.chevronWrapper,style:null==h?void 0:h.chevronWrapper},{children:i(B?a:c,{className:t.chevronIcon})}))]})),B&&i("div",e({className:"".concat("riskSideBar"!==p&&t.content," ").concat(t.contentBase),style:null==h?void 0:h.contentWrapper},{children:d}))]}))}export{n as default};
2
2
  //# sourceMappingURL=AIReasonAccordion.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as i}from"tslib";import{jsx as o,jsxs as n,Fragment as a}from"react/jsx-runtime";import e from"../../icons/AiReasoningIcon.js";import t from"./AIReasonAccordion.js";import l from"../../icons/ReasoningBulbIcon.js";import{AiReasonMarkdownWrapper as d}from"./AiReasonMarkdownWrapper.js";import s from"../../icons/AiGapIcon.js";import{useState as r}from"react";import c from"./AiReasoningCitationContent.module.css.js";import{renderAIConfidenceDisplay as v}from"../../shared/CitationAIConfidenceDisplay.js";var u=function(u){var C,m,p,g,f,y,R,h,w,b,S=u.aiReason,I=u.scenario,N=u.customStyles,B=u.customIcons,A=u.AiReasoningIcon;void 0===A&&o(e,{});var x=u.reasoningIcon;void 0===x&&o(l,{});var M=u.gapIcon;void 0===M&&o(s,{}),u.className;var k=u.onSelectProceed,D=u.isDisableProceedButton,j=r("noCitation"),F=j[0];j[1];var _=r(null),W=_[0];_[1];var P,T,E=(null==B?void 0:B.aireasonIcon)||o(e,{}),G=(null==B?void 0:B.reasoningIcon)||o(l,{}),L=(null==B?void 0:B.gapIcon)||o(s,{});return n("div",i({className:"".concat(c.container," ").concat("riskSideBar"===I?"":c.containerBordered),style:null===(C=null==N?void 0:N.aiReasoningContent)||void 0===C?void 0:C.container},{children:[o("div",i({className:"".concat((null==S?void 0:S.explanation)&&"riskSideBar"!==I?"":c.explanationDivider),style:null===(m=null==N?void 0:N.aiReasoningContent)||void 0===m?void 0:m.explanationDivider},{children:(null==S?void 0:S.explanation)&&o(t,{icon:o(a,{}),title:"Explanation",subTitle:"",customStyles:null==N?void 0:N.aiReasoningAccordion,content:o(d,{message:S.explanation,isExpandableOrderedListEnabled:!0,customStyles:null==N?void 0:N.aiReasoningMarkdown,citationStyles:{webCitation:null==N?void 0:N.webCitation,stormeeCitation:null==N?void 0:N.stormeeCitation,waveformCitation:null==N?void 0:N.waveformCitation,imageCitation:null==N?void 0:N.imageCitation,fileCitation:null==N?void 0:N.fileCitation,appModCitation:null==N?void 0:N.appModCitation,rcaCitation:null==N?void 0:N.rcaCitation,readFileCitation:null==N?void 0:N.readFileCitation,loadingCitations:null==N?void 0:N.loadingCitations},customIcons:B,onSelectProceed:k,isDisableProceedButton:D}),scenario:I})})),"riskSideBar"!==I&&n("div",i({className:"".concat(c.headerBar," ").concat("riskSideBar"===I?"":c.headerBarRounded),style:null===(p=null==N?void 0:N.aiReasoningContent)||void 0===p?void 0:p.headerBar},{children:[n("div",i({className:c.headerBrand,style:null===(g=null==N?void 0:N.aiReasoningContent)||void 0===g?void 0:g.headerBrand},{children:[E,o("p",{children:"Cognitive Decisioning AI"})]})),o("div",i({className:c.headerScore,style:null===(f=null==N?void 0:N.aiReasoningContent)||void 0===f?void 0:f.headerScore},{children:!isNaN(null==S?void 0:S.relevance_score)&&v(S.relevance_score,S.relevance_score_diff,null===(y=null==N?void 0:N.aiReasoningContent)||void 0===y?void 0:y.confidenceDisplay,B)}))]})),"riskSideBar"!==I&&o("div",i({className:c.bodyRow,style:i({width:"100%"},null===(R=null==N?void 0:N.aiReasoningContent)||void 0===R?void 0:R.bodyRow)},{children:n("div",i({className:"flex flex-col ".concat("noCitation"!==F&&null!==W?"styles.bodyNarrow":"styles.bodyFull"),style:{width:"100%"}},{children:[o(t,{icon:o("div",i({className:c.iconWrapper,style:null===(h=null==N?void 0:N.aiReasoningContent)||void 0===h?void 0:h.iconWrapper},{children:G})),title:"Decision Making Factors",subTitle:"",customStyles:null==N?void 0:N.aiReasoningAccordion,content:o(d,{message:S.reason,customStyles:null==N?void 0:N.aiReasoningMarkdown,citationStyles:{webCitation:null==N?void 0:N.webCitation,stormeeCitation:null==N?void 0:N.stormeeCitation,waveformCitation:null==N?void 0:N.waveformCitation,imageCitation:null==N?void 0:N.imageCitation,fileCitation:null==N?void 0:N.fileCitation,appModCitation:null==N?void 0:N.appModCitation,rcaCitation:null==N?void 0:N.rcaCitation,readFileCitation:null==N?void 0:N.readFileCitation,loadingCitations:null==N?void 0:N.loadingCitations},customIcons:B})}),o("div",{className:c.divider,style:null===(w=null==N?void 0:N.aiReasoningContent)||void 0===w?void 0:w.divider}),o(t,{icon:o("div",i({className:c.iconWrapper,style:null===(b=null==N?void 0:N.aiReasoningContent)||void 0===b?void 0:b.iconWrapper},{children:L})),title:"Gap in Decision",subTitle:"",customStyles:null==N?void 0:N.aiReasoningAccordion,content:o(d,{message:(P=S.relevance_score,T=S.gap,100===S.relevance_score?"No Gaps is identified.":S.relevance_score<100?"The decision strength is ".concat(P,"% because: \n").concat(T):S.gap),customStyles:null==N?void 0:N.aiReasoningMarkdown,citationStyles:{webCitation:null==N?void 0:N.webCitation,stormeeCitation:null==N?void 0:N.stormeeCitation,waveformCitation:null==N?void 0:N.waveformCitation,imageCitation:null==N?void 0:N.imageCitation,fileCitation:null==N?void 0:N.fileCitation,appModCitation:null==N?void 0:N.appModCitation,rcaCitation:null==N?void 0:N.rcaCitation,readFileCitation:null==N?void 0:N.readFileCitation,loadingCitations:null==N?void 0:N.loadingCitations},customIcons:B}),className:c.gapAccordion})]}))}))]}))};export{u as default};
1
+ import{__assign as i}from"tslib";import{jsx as o,jsxs as n,Fragment as e}from"react/jsx-runtime";import a from"../../icons/AiReasoningIcon.js";import t from"./AIReasonAccordion.js";import l from"../../icons/ReasoningBulbIcon.js";import{AiReasonMarkdownWrapper as d}from"./AiReasonMarkdownWrapper.js";import s from"../../icons/AiGapIcon.js";import{useState as r}from"react";import{ChevronUp as c,ChevronDown as v}from"lucide-react";import u from"./AiReasoningCitationContent.module.css.js";import{renderAIConfidenceDisplay as C}from"../../shared/CitationAIConfidenceDisplay.js";var m=function(m){var p,g,f,y,h,R,w,b,I,N,S,B,A,k,x,M,D=m.aiReason,j=m.scenario,F=m.customStyles,W=m.customIcons,_=m.cognitiveDecisionHeaders,O=m.AiReasoningIcon;void 0===O&&o(a,{});var H=m.reasoningIcon;void 0===H&&o(l,{});var P=m.gapIcon;void 0===P&&o(s,{}),m.className;var T=m.onSelectProceed,E=m.isDisableProceedButton,G=r("noCitation"),L=G[0];G[1];var q=r(null),z=q[0];q[1];var J,K,Q=(null==W?void 0:W.aireasonIcon)||o(a,{}),U=(null==W?void 0:W.reasoningIcon)||o(l,{}),V=(null==W?void 0:W.gapIcon)||o(s,{}),X=r(!1),Y=X[0],Z=X[1];return n("div",i({className:"".concat(u.container," ").concat("riskSideBar"===j?"":u.containerBordered),style:null===(p=null==F?void 0:F.aiReasoningContent)||void 0===p?void 0:p.container},{children:[o("div",i({className:"".concat((null==D?void 0:D.explanation)&&"riskSideBar"!==j?"":u.explanationDivider),style:null===(g=null==F?void 0:F.aiReasoningContent)||void 0===g?void 0:g.explanationDivider},{children:(null==D?void 0:D.explanation)&&o(t,{icon:o(e,{}),title:"Explanation",subTitle:"",customStyles:null==F?void 0:F.aiReasoningAccordion,content:o(d,{message:D.explanation,isExpandableOrderedListEnabled:!0,customStyles:null==F?void 0:F.aiReasoningMarkdown,citationStyles:{webCitation:null==F?void 0:F.webCitation,stormeeCitation:null==F?void 0:F.stormeeCitation,waveformCitation:null==F?void 0:F.waveformCitation,imageCitation:null==F?void 0:F.imageCitation,fileCitation:null==F?void 0:F.fileCitation,appModCitation:null==F?void 0:F.appModCitation,rcaCitation:null==F?void 0:F.rcaCitation,readFileCitation:null==F?void 0:F.readFileCitation,loadingCitations:null==F?void 0:F.loadingCitations},customIcons:W,onSelectProceed:T,isDisableProceedButton:E}),scenario:j})})),"riskSideBar"!==j&&n("div",i({className:"".concat(u.headerBar," ").concat("riskSideBar"===j?"":u.headerBarRounded),style:null===(f=null==F?void 0:F.aiReasoningContent)||void 0===f?void 0:f.headerBar},{children:[n("div",i({className:u.headerBrand,style:null===(y=null==F?void 0:F.aiReasoningContent)||void 0===y?void 0:y.headerBrand},{children:[Q,o("p",{children:null!==(h=null==_?void 0:_.mainHeader)&&void 0!==h?h:"Cognitive Decisioning AI"})]})),n("div",i({className:u.headerScore,style:null===(R=null==F?void 0:F.aiReasoningContent)||void 0===R?void 0:R.headerScore},{children:[!isNaN(null==D?void 0:D.relevance_score)&&C(D.relevance_score,D.relevance_score_diff,null===(w=null==F?void 0:F.aiReasoningContent)||void 0===w?void 0:w.confidenceDisplay,W),o("button",i({onClick:function(){return Z(function(i){return!i})},className:u.chevronWrapper,style:null===(b=null==F?void 0:F.aiReasoningContent)||void 0===b?void 0:b.chevronWrapper},{children:Y?o(c,{className:null==u?void 0:u.chevronIcon,style:null===(I=null==F?void 0:F.aiReasoningContent)||void 0===I?void 0:I.chevronIcon}):o(v,{className:null==u?void 0:u.chevronIcon,style:null===(N=null==F?void 0:F.aiReasoningContent)||void 0===N?void 0:N.chevronIcon})}))]}))]})),"riskSideBar"!==j&&Y&&o("div",i({className:u.bodyRow,style:i({width:"100%"},null===(S=null==F?void 0:F.aiReasoningContent)||void 0===S?void 0:S.bodyRow)},{children:n("div",i({className:"flex flex-col ".concat("noCitation"!==L&&null!==z?"styles.bodyNarrow":"styles.bodyFull"),style:{width:"100%"}},{children:[o(t,{icon:o("div",i({className:u.iconWrapper,style:null===(B=null==F?void 0:F.aiReasoningContent)||void 0===B?void 0:B.iconWrapper},{children:U})),title:null!==(A=null==_?void 0:_.decisionHeader)&&void 0!==A?A:"Decision Making Factors",subTitle:"",customStyles:null==F?void 0:F.aiReasoningAccordion,alwaysOpen:!0,defaultOpen:!0,content:o(d,{message:D.reason,customStyles:null==F?void 0:F.aiReasoningMarkdown,citationStyles:{webCitation:null==F?void 0:F.webCitation,stormeeCitation:null==F?void 0:F.stormeeCitation,waveformCitation:null==F?void 0:F.waveformCitation,imageCitation:null==F?void 0:F.imageCitation,fileCitation:null==F?void 0:F.fileCitation,appModCitation:null==F?void 0:F.appModCitation,rcaCitation:null==F?void 0:F.rcaCitation,readFileCitation:null==F?void 0:F.readFileCitation,loadingCitations:null==F?void 0:F.loadingCitations},customIcons:W})}),(null==D?void 0:D.gap)&&n(e,{children:[o("div",{className:u.divider,style:null===(k=null==F?void 0:F.aiReasoningContent)||void 0===k?void 0:k.divider}),o(t,{icon:o("div",i({className:u.iconWrapper,style:null===(x=null==F?void 0:F.aiReasoningContent)||void 0===x?void 0:x.iconWrapper},{children:V})),title:null!==(M=null==_?void 0:_.gapHeader)&&void 0!==M?M:"Gap in Decision",subTitle:"",customStyles:null==F?void 0:F.aiReasoningAccordion,alwaysOpen:!1,defaultOpen:!1,content:o(d,{message:(J=D.relevance_score,K=D.gap,100===D.relevance_score?"No Gaps is identified.":D.relevance_score<100?"The decision strength is ".concat(J,"% because: \n").concat(K):D.gap),customStyles:null==F?void 0:F.aiReasoningMarkdown,citationStyles:{webCitation:null==F?void 0:F.webCitation,stormeeCitation:null==F?void 0:F.stormeeCitation,waveformCitation:null==F?void 0:F.waveformCitation,imageCitation:null==F?void 0:F.imageCitation,fileCitation:null==F?void 0:F.fileCitation,appModCitation:null==F?void 0:F.appModCitation,rcaCitation:null==F?void 0:F.rcaCitation,readFileCitation:null==F?void 0:F.readFileCitation,loadingCitations:null==F?void 0:F.loadingCitations},customIcons:W}),className:u.gapAccordion})]})]}))}))]}))};export{m as default};
2
2
  //# sourceMappingURL=AiReasoningCitationContent.js.map
@@ -1,2 +1,2 @@
1
- var e={container:"AiReasoningCitationContent-module_container__M0-d3",containerBordered:"AiReasoningCitationContent-module_containerBordered__Ei9yG",explanationDivider:"AiReasoningCitationContent-module_explanationDivider__94z5a",headerBar:"AiReasoningCitationContent-module_headerBar__y8nNG",headerBarRounded:"AiReasoningCitationContent-module_headerBarRounded__fZNwd",headerBrand:"AiReasoningCitationContent-module_headerBrand__SMB94",headerScore:"AiReasoningCitationContent-module_headerScore__hVXhZ",bodyRow:"AiReasoningCitationContent-module_bodyRow__MZoKr",bodyFull:"AiReasoningCitationContent-module_bodyFull__iF7Pt",bodyNarrow:"AiReasoningCitationContent-module_bodyNarrow__5XxCt",divider:"AiReasoningCitationContent-module_divider__PiXVL",gapAccordion:"AiReasoningCitationContent-module_gapAccordion__qZv-U",iconWrapper:"AiReasoningCitationContent-module_iconWrapper__QgyvJ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".AiReasoningCitationContent-module_container__M0-d3{border-radius:.75rem;overflow:hidden;width:100%}.AiReasoningCitationContent-module_containerBordered__Ei9yG{border:1px solid #d0d5dd}.AiReasoningCitationContent-module_explanationDivider__94z5a{border-bottom:1px solid #d0d5dd}.AiReasoningCitationContent-module_headerBar__y8nNG{align-items:center;background-color:#fff;border-bottom:1px solid #d0d5dd;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:.75rem;width:100%}.AiReasoningCitationContent-module_headerBarRounded__fZNwd{border-radius:.75rem .75rem 0 0}.AiReasoningCitationContent-module_headerBrand__SMB94{align-items:center;color:#1d2939;display:flex;flex-direction:row;font-size:.875rem;font-weight:500;gap:.5rem;justify-content:center}.AiReasoningCitationContent-module_headerScore__hVXhZ{display:flex;flex-direction:row;gap:.5rem}.AiReasoningCitationContent-module_bodyRow__MZoKr{display:flex;flex-direction:row;width:100%}.AiReasoningCitationContent-module_bodyFull__iF7Pt{display:flex;flex-direction:column;width:100%}.AiReasoningCitationContent-module_bodyNarrow__5XxCt{display:flex;flex-direction:column;width:30%}.AiReasoningCitationContent-module_divider__PiXVL{border-bottom:1px solid #d0d5dd;height:0;margin:0}.AiReasoningCitationContent-module_gapAccordion__qZv-U{border-radius:0 0 .75rem .75rem}.AiReasoningCitationContent-module_iconWrapper__QgyvJ{align-items:center;background-color:#f6f4fe;border-radius:9999px;display:flex;height:fit-content;justify-content:center;padding:10px;width:fit-content}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
1
+ var e={container:"AiReasoningCitationContent-module_container__M0-d3",containerBordered:"AiReasoningCitationContent-module_containerBordered__Ei9yG",explanationDivider:"AiReasoningCitationContent-module_explanationDivider__94z5a",headerBar:"AiReasoningCitationContent-module_headerBar__y8nNG",headerBarRounded:"AiReasoningCitationContent-module_headerBarRounded__fZNwd",headerBrand:"AiReasoningCitationContent-module_headerBrand__SMB94",headerScore:"AiReasoningCitationContent-module_headerScore__hVXhZ",bodyRow:"AiReasoningCitationContent-module_bodyRow__MZoKr",bodyFull:"AiReasoningCitationContent-module_bodyFull__iF7Pt",bodyNarrow:"AiReasoningCitationContent-module_bodyNarrow__5XxCt",divider:"AiReasoningCitationContent-module_divider__PiXVL",gapAccordion:"AiReasoningCitationContent-module_gapAccordion__qZv-U",iconWrapper:"AiReasoningCitationContent-module_iconWrapper__QgyvJ",chevronWrapper:"AiReasoningCitationContent-module_chevronWrapper__9sSMR",chevronIcon:"AiReasoningCitationContent-module_chevronIcon__Lm-mV"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".AiReasoningCitationContent-module_container__M0-d3{border-radius:.75rem;overflow:hidden;width:100%}.AiReasoningCitationContent-module_containerBordered__Ei9yG{border:1px solid #d0d5dd}.AiReasoningCitationContent-module_explanationDivider__94z5a{border-bottom:1px solid #d0d5dd}.AiReasoningCitationContent-module_headerBar__y8nNG{align-items:center;background-color:#fff;border-bottom:1px solid #d0d5dd;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:.75rem;width:100%}.AiReasoningCitationContent-module_headerBarRounded__fZNwd{border-radius:.75rem .75rem 0 0}.AiReasoningCitationContent-module_headerBrand__SMB94{align-items:center;color:#1d2939;display:flex;flex-direction:row;font-size:.875rem;font-weight:500;gap:.5rem;justify-content:center}.AiReasoningCitationContent-module_headerScore__hVXhZ{align-items:center;display:flex;flex-direction:row;flex-shrink:0;gap:.5rem}.AiReasoningCitationContent-module_bodyRow__MZoKr{display:flex;flex-direction:row;width:100%}.AiReasoningCitationContent-module_bodyFull__iF7Pt{display:flex;flex-direction:column;width:100%}.AiReasoningCitationContent-module_bodyNarrow__5XxCt{display:flex;flex-direction:column;width:30%}.AiReasoningCitationContent-module_divider__PiXVL{border-bottom:1px solid #d0d5dd;height:0;margin:0}.AiReasoningCitationContent-module_gapAccordion__qZv-U{border-radius:0 0 .75rem .75rem}.AiReasoningCitationContent-module_iconWrapper__QgyvJ{align-items:center;background-color:#f6f4fe;border-radius:9999px;display:flex;height:fit-content;justify-content:center;padding:10px;width:fit-content}.AiReasoningCitationContent-module_chevronWrapper__9sSMR{align-items:center;background:none;border:1px solid #eaecf0;border-radius:9999px;cursor:pointer;display:flex;justify-content:center;padding:.25rem}.AiReasoningCitationContent-module_chevronIcon__Lm-mV{color:#6b7280;height:1.25rem;width:1.25rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=AiReasoningCitationContent.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as i,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as r,ChevronDown as t,Check as a,SquareArrowOutUpRight as s,Loader2 as c}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import u from"../ai-reasoning/AiReasoningCitationContent.js";import g from"../../icons/CognitiveDecision.js";function p(p){var m=p.processItemId,v=p.isCompleted,h=p.mode,y=p.msg,f=p.type,C=p.id,b=p.aiReason,x=p.text,N=p.headerText,D=p.decisionStrength;p.statusUi,p.panelRef;var I=p.onHandleSend,T=p.onRedirectClick,S=p.gapType,R=p.isGenerating,k=void 0!==R&&R,j=p.customStyles,B=p.customIcons,W=l(!1),P=W[0],A=W[1];console.log("testing::reasoning",b);var z=(null==B?void 0:B.highConfidence)||i(g,{}),F=function(){"cra"===h?null==I||I("Discuss ambiguities on ".concat(x),C):null==I||I("Deep Dive into ".concat(S," ").concat(N,": ").concat(x),C)};return console.log("testing::aiReasoning",b),o("div",e({className:[d.outerWrapper,k?d.outerWrapperDisabled:""].join(" "),style:e(e({},null==j?void 0:j.redirectionOuterWrapper),k?null==j?void 0:j.redirectionOuterWrapperDisabled:{})},{children:[o("div",e({className:[d.card,k?d.cardDisabled:d.cardInteractive].join(" "),style:e(e({},null==j?void 0:j.redirectionCard),k?null==j?void 0:j.redirectionCardDisabled:null==j?void 0:j.redirectionCardInteractive)},{children:[o("div",e({className:d.leftSide,style:null==j?void 0:j.redirectionLeftSide},{children:[o("span",e({className:d.textBlock,style:null==j?void 0:j.redirectionTextBlock},{children:[N&&o("span",e({className:d.headerText,style:null==j?void 0:j.redirectionHeaderText},{children:[N,x?" ":""]})),x]})),o("span",e({onClick:function(e){e.stopPropagation(),k||A(!P)},className:[d.reasoningToggle,k?d.reasoningToggleDisabled:d.reasoningToggleActive].join(" "),style:e(e({},null==j?void 0:j.reasoningToggle),k?null==j?void 0:j.reasoningToggleDisabled:null==j?void 0:j.reasoningToggleActive)},{children:[z,i(P?r:t,{className:d.chevronIcon,style:null==j?void 0:j.chevronIcon})]}))]})),v?i("div",e({className:d.completeTickWrapper,style:null==j?void 0:j.completeTickWrapper},{children:i(a,{color:(null==j?void 0:j.checkColor)||"green"})})):o(n,{children:["risk-gap"===h&&o("div",e({className:d.rightSide,style:null==j?void 0:j.redirectionRightSide},{children:[i("button",e({disabled:k,className:[d.fixButton,k?d.fixButtonDisabled:""].join(" "),style:e(e({},null==j?void 0:j.redirectionFixButton),k?null==j?void 0:j.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),k||F()}},{children:"Fix"})),i(s,{onClick:k?void 0:function(){k||null==T||T({type:f,id:C,aiReason:b,msg:y,meta:{headerText:N,decisionStrength:D,text:x}})},size:18,className:[k?d.redirectIconDisabled:d.redirectIcon].join(" "),style:e({},k?null==j?void 0:j.redirectIconDisabled:null==j?void 0:j.redirectIcon)})]})),"cra"===h&&i("div",e({className:d.rightSide,style:null==j?void 0:j.redirectionRightSide},{children:m===C?i("div",e({className:d.loaderWrapper,style:null==j?void 0:j.loaderWrapper},{children:i(c,{size:16,className:d.loaderIcon,color:"grey",style:e({animation:"spin 1s linear infinite"},null==j?void 0:j.loaderIcon)})})):i("button",e({className:[d.clarifyButton].join(" "),style:e({color:k?"grey":""},null==j?void 0:j.redirectionClarifyButton),disabled:k,onClick:function(e){e.stopPropagation(),F()}},{children:"Clarify"}))}))]})]})),P&&i(u,{aiReason:{id:"1",reason:b.Reasoning||"",gap:b.Gap||"",relevance_score:Number(b.Confidence_score),explanation:b.explanation||""},onSelectProceed:F,customStyles:null==j?void 0:j.aiReasoningStyles,customIcons:B})]}))}export{p as CustomChatCrRedirection};
1
+ import{__assign as e}from"tslib";import{jsx as i,jsxs as n,Fragment as o}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as r,ChevronDown as t,Check as a,SquareArrowOutUpRight as s,Loader2 as c}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import u from"../ai-reasoning/AiReasoningCitationContent.js";import g from"../../icons/CognitiveDecision.js";function p(p){var v=p.isDefaultOpen,m=p.processItemId,h=p.isCompleted,f=p.mode,y=p.msg,C=p.type,b=p.id,x=p.aiReason,D=p.text,N=p.headerText,I=p.decisionStrength;p.statusUi,p.panelRef;var T=p.onHandleSend,S=p.onRedirectClick,R=p.gapType,k=p.isGenerating,j=void 0!==k&&k,B=p.customStyles,W=p.customIcons,H=p.cognitiveDecisionHeaders,P=l(v),A=P[0],O=P[1];console.log("testing::reasoning",x);var z=(null==W?void 0:W.highConfidence)||i(g,{}),F=function(){"cra"===f?null==T||T("Discuss ambiguities on ".concat(D),b):null==T||T("Deep Dive into ".concat(R," ").concat(N,": ").concat(D),b)};return console.log("testing::aiReasoning",x),n("div",e({className:[d.outerWrapper,j?d.outerWrapperDisabled:""].join(" "),style:e(e({},null==B?void 0:B.redirectionOuterWrapper),j?null==B?void 0:B.redirectionOuterWrapperDisabled:{})},{children:[n("div",e({className:[d.card,j?d.cardDisabled:d.cardInteractive].join(" "),style:e(e({},null==B?void 0:B.redirectionCard),j?null==B?void 0:B.redirectionCardDisabled:null==B?void 0:B.redirectionCardInteractive)},{children:[n("div",e({className:d.leftSide,style:null==B?void 0:B.redirectionLeftSide},{children:[n("span",e({className:d.textBlock,style:null==B?void 0:B.redirectionTextBlock},{children:[N&&n("span",e({className:d.headerText,style:null==B?void 0:B.redirectionHeaderText},{children:[N,D?" ":""]})),D]})),n("span",e({onClick:function(e){e.stopPropagation(),j||O(!A)},className:[d.reasoningToggle,j?d.reasoningToggleDisabled:d.reasoningToggleActive].join(" "),style:e(e({},null==B?void 0:B.reasoningToggle),j?null==B?void 0:B.reasoningToggleDisabled:null==B?void 0:B.reasoningToggleActive)},{children:[z,i(A?r:t,{className:d.chevronIcon,style:null==B?void 0:B.chevronIcon})]}))]})),h?i("div",e({className:d.completeTickWrapper,style:null==B?void 0:B.completeTickWrapper},{children:i(a,{color:(null==B?void 0:B.checkColor)||"green"})})):n(o,{children:["risk-gap"===f&&n("div",e({className:d.rightSide,style:null==B?void 0:B.redirectionRightSide},{children:[i("button",e({disabled:j,className:[d.fixButton,j?d.fixButtonDisabled:""].join(" "),style:e(e({},null==B?void 0:B.redirectionFixButton),j?null==B?void 0:B.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),j||F()}},{children:"Fix"})),i(s,{onClick:j?void 0:function(){j||null==S||S({type:C,id:b,aiReason:x,msg:y,meta:{headerText:N,decisionStrength:I,text:D}})},size:18,className:[j?d.redirectIconDisabled:d.redirectIcon].join(" "),style:e({},j?null==B?void 0:B.redirectIconDisabled:null==B?void 0:B.redirectIcon)})]})),"cra"===f&&i("div",e({className:d.rightSide,style:null==B?void 0:B.redirectionRightSide},{children:m===b?i("div",e({className:d.loaderWrapper,style:null==B?void 0:B.loaderWrapper},{children:i(c,{size:16,className:d.loaderIcon,color:"grey",style:e({animation:"spin 1s linear infinite"},null==B?void 0:B.loaderIcon)})})):i("button",e({className:[d.clarifyButton].join(" "),style:e({color:j?"grey":""},null==B?void 0:B.redirectionClarifyButton),disabled:j,onClick:function(e){e.stopPropagation(),F()}},{children:"Clarify"}))}))]})]})),A&&i(u,{aiReason:{id:"1",reason:x.Reasoning||"",gap:x.Gap||"",relevance_score:Number(x.Confidence_score),explanation:x.explanation||""},onSelectProceed:F,customStyles:null==B?void 0:B.aiReasoningStyles,customIcons:W,cognitiveDecisionHeaders:H})]}))}export{p as CustomChatCrRedirection};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__rest as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useMemo as i,useEffect as a,Children as l,isValidElement as c}from"react";import{capitalize as d}from"lodash";import{GapFilterContentWrapper as s}from"./GapFilterContentWrapper.js";import{GapFilterItem as u}from"./GapFilterItem.js";import{CustomChatCrRedirection as g}from"./CustomChatCrRedirection.js";import{SirenIcon as p,WarningIcon as m,SupportIcon as f}from"./gapFilterSvgs.js";import b from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";var v=["critical","recommendation","warning"];function C(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function y(e){return l.toArray(e).filter(function(e){return c(e)}).filter(function(e){var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(function(e){var o,r,n=e.props,i=n.children,a=t(n,["children"]),l={};Object.keys(a).forEach(function(e){e.startsWith("data-")||(l[e]=a[e])});var c,d,s=(c=a,d={},Object.keys(c).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=c[e])}),d),u=a["decision-strength"],g=a["data-is-completed"];return{text:i,headerText:a.headertext,tags:a.tags,dataAttrs:s,decisionStrength:u,attrs:l,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:a.score,isCompleted:g,pendingCount:a.pendingcount,question:a.question,components:a.components,showFix:null!==(o=a.showfix)&&void 0!==o&&o,showRedirect:null!==(r=a.showredirect)&&void 0!==r&&r}})}var h={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}},x=function(t){var l=t.processItemId,c=t.mode;t.node;var x=t.children,S=t.type,I=t.supportedmodes,k=void 0===I?"":I,R=t["decision-strength"],A=void 0===R?"":R,F=t.pendingdata,B=void 0===F?"":F,T=t.isGeneratingGap,w=void 0!==T&&T,G=t.selectedGapItemId,N=void 0===G?"":G,j=t.onItemSelect,E=t.onHandleSend,W=t.onModeAction,D=t.msg,U=t.panelRef,q=t.getAccordionState,z=t.setAccordionState,H=t.registerGapFilterBlockCount,L=t.getShowGapReviewButtonType,M=t.customStyles,O=t.customIcons,_=S,J=C(A),$=n(function(){var e,t=null!==(e=null==q?void 0:q(_))&&void 0!==e?e:"";return"critical"!==_||t?t:_}),K=$[0],P=$[1],Q=function(e){P(e),null==z||z(_,e)},V=y(x),X=i(function(){return V.reduce(function(e,t){var o,r,n,i=null!==(o=t.tags)&&void 0!==o?o:"Uncategorized",a=null!==(n=null===(r=t.dataAttrs)||void 0===r?void 0:r.categoryid)&&void 0!==n?n:"1",l=e.find(function(e){return e.categoryName===i});return l||(l={categoryName:i,categoryId:a,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[])},[V]),Y={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:o(p,{}),label:"risk-gap"===c?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:o(m,{}),label:"risk-gap"===c?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:o(f,{}),label:"risk-gap"===c?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:o(f,{}),label:"",decisionStrength:""}},Z=i(function(){return e=_,v.includes(e)?{labelColor:Y[_].labelColor,badgeBackgroundColor:Y[_].badgeBackgroundColor,badgeTextColor:Y[_].badgeTextColor,label:Y[_].label,decisionStrength:J||Y[_].decisionStrength}:{labelColor:Y.default.labelColor,badgeBackgroundColor:Y.default.badgeBackgroundColor,badgeTextColor:Y.default.badgeTextColor,label:d(_),decisionStrength:J||""};var e},[_,J]);a(function(){null==H||H(_,V.length)},[_,V.length,H]);var ee=function(t,o,r){if(void 0===r&&(r={}),!w){var n="".concat(X[t].categoryId,"-").concat(o);null==j||j(n);var i=e(e({},X[t].items[o].dataAttrs),r);null==W||W(k,i)}};return L&&L(),o(s,e({mode:c,type:_,config:Z,count:V.length,handleReviewClick:function(){V.length>0&&Q(_)},openAccordion:K,onAccordionChange:function(e){Q(K===e?"":e)},shouldShowReviewButton:!1,pendingData:B,customStyles:M},{children:X.map(function(t,n){return r("div",e({className:b.categoryGroup,style:null==M?void 0:M.categoryGroup},{children:["gapfilteritem"===t.type&&"Uncategorized"!==t.categoryName&&o("p",e({className:b.categoryLabel,style:null==M?void 0:M.categoryLabel},{children:t.categoryName})),t.items.map(function(r,i){var a,d,s,p,m=r.attrs||{},f=null===(a=r.dataAttrs)||void 0===a?void 0:a["cognitive-reasoning"],v=m.id||(null===(d=r.dataAttrs)||void 0===d?void 0:d.id)||"",C="I"===v[0]?"UI_REF":"CHAT_REF",y=null===(s=null==D?void 0:D.contextAwareAgentReasoning)||void 0===s?void 0:s[f],x=r.isCompleted;return"gapfilteritem"===r.type?o("div",e({className:[b.gapFilterItemWrapper,"Uncategorized"!==t.categoryName?b.gapFilterItemWrapperIndented:""].join(" "),style:null==M?void 0:M.blockContainer},{children:o(u,{isCompleted:x,mode:c,index:i,isSelected:N==="".concat(t.categoryId,"-").concat(i),onClick:function(){return ee(n,i)},onFixClick:function(){return ee(n,i,{triggerFrom:"fix"})},onRedirect:function(){return ee(n,i,{triggerFrom:"redirect"})},item:r,isGenerating:w,aiReason:y,panelRef:null!=U?U:{current:null},id:f,customStyles:M,customIcons:O})}),i):o("div",e({className:b.crRedirectionGroup,style:null==M?void 0:M.crRedirectionGroup},{children:o("div",e({className:b.crRedirectionInner,style:null==M?void 0:M.crRedirectionInner},{children:o(g,{processItemId:l,isCompleted:x,mode:c,msg:D,type:C,text:r.text,headerText:r.headerText,decisionStrength:r.decisionStrength,id:v,gapType:_,onHandleSend:E,isGenerating:w,aiReason:y,statusUi:null!==(p=h[_])&&void 0!==p?p:h.recommendation,panelRef:null!=U?U:{current:null},customStyles:M,customIcons:O})}))}),i)})]}),"".concat(t.categoryName,"-").concat(n))})}))};export{x as GapFilterBlock,C as normalizeDecisionStrength};
1
+ import{__assign as e,__rest as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as n,useMemo as i,useEffect as a,Children as l,isValidElement as c}from"react";import{capitalize as d}from"lodash";import{GapFilterContentWrapper as s}from"./GapFilterContentWrapper.js";import{GapFilterItem as u}from"./GapFilterItem.js";import{CustomChatCrRedirection as g}from"./CustomChatCrRedirection.js";import{SirenIcon as p,WarningIcon as m,SupportIcon as f}from"./gapFilterSvgs.js";import v from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";var b=["critical","recommendation","warning"];function C(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function y(e){return l.toArray(e).filter(function(e){return c(e)}).filter(function(e){var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(function(e){var o,r,n=e.props,i=n.children,a=t(n,["children"]),l={};Object.keys(a).forEach(function(e){e.startsWith("data-")||(l[e]=a[e])});var c,d,s=(c=a,d={},Object.keys(c).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=c[e])}),d),u=a["decision-strength"],g=a["data-is-completed"];return{text:i,headerText:a.headertext,tags:a.tags,dataAttrs:s,decisionStrength:u,attrs:l,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:a.score,isCompleted:g,pendingCount:a.pendingcount,question:a.question,components:a.components,showFix:null!==(o=a.showfix)&&void 0!==o&&o,showRedirect:null!==(r=a.showredirect)&&void 0!==r&&r}})}var h={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}},x=function(t){var l=t.isDefaultOpen,c=t.processItemId,x=t.mode;t.node;var S=t.children,I=t.type,k=t.supportedmodes,R=void 0===k?"":k,A=t["decision-strength"],F=void 0===A?"":A,B=t.pendingdata,T=void 0===B?"":B,w=t.isGeneratingGap,G=void 0!==w&&w,D=t.selectedGapItemId,N=void 0===D?"":D,j=t.onItemSelect,E=t.onHandleSend,W=t.onModeAction,H=t.msg,O=t.panelRef,U=t.getAccordionState,q=t.setAccordionState,z=t.registerGapFilterBlockCount,L=t.getShowGapReviewButtonType,M=t.customStyles,_=t.customIcons,J=t.cognitiveDecisionHeaders,$=I,K=C(F);console.log("testing::isDefaultOpen",l);var P=n(function(){var e,t=null!==(e=null==U?void 0:U($))&&void 0!==e?e:"";return"true"!==l||t?t:$}),Q=P[0],V=P[1],X=function(e){V(e),null==q||q($,e)},Y=y(S),Z=i(function(){return Y.reduce(function(e,t){var o,r,n,i=null!==(o=t.tags)&&void 0!==o?o:"Uncategorized",a=null!==(n=null===(r=t.dataAttrs)||void 0===r?void 0:r.categoryid)&&void 0!==n?n:"1",l=e.find(function(e){return e.categoryName===i});return l||(l={categoryName:i,categoryId:a,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[])},[Y]),ee={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:o(p,{}),label:"risk-gap"===x?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:o(m,{}),label:"risk-gap"===x?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:o(f,{}),label:"risk-gap"===x?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:o(f,{}),label:"",decisionStrength:""}},te=i(function(){return e=$,b.includes(e)?{labelColor:ee[$].labelColor,badgeBackgroundColor:ee[$].badgeBackgroundColor,badgeTextColor:ee[$].badgeTextColor,label:ee[$].label,decisionStrength:K||ee[$].decisionStrength}:{labelColor:ee.default.labelColor,badgeBackgroundColor:ee.default.badgeBackgroundColor,badgeTextColor:ee.default.badgeTextColor,label:d($),decisionStrength:K||""};var e},[$,K]);a(function(){null==z||z($,Y.length)},[$,Y.length,z]);var oe=function(t,o,r){if(void 0===r&&(r={}),!G){var n="".concat(Z[t].categoryId,"-").concat(o);null==j||j(n);var i=e(e({},Z[t].items[o].dataAttrs),r);null==W||W(R,i)}};return L&&L(),o(s,e({mode:x,type:$,config:te,count:Y.length,handleReviewClick:function(){Y.length>0&&X($)},openAccordion:Q,onAccordionChange:function(e){X(Q===e?"":e)},shouldShowReviewButton:!1,pendingData:T,customStyles:M},{children:Z.map(function(t,n){return r("div",e({className:v.categoryGroup,style:null==M?void 0:M.categoryGroup},{children:["gapfilteritem"===t.type&&"Uncategorized"!==t.categoryName&&o("p",e({className:v.categoryLabel,style:null==M?void 0:M.categoryLabel},{children:t.categoryName})),t.items.map(function(r,i){var a,d,s,p,m=r.attrs||{},f=null===(a=r.dataAttrs)||void 0===a?void 0:a["cognitive-reasoning"],b=m.id||(null===(d=r.dataAttrs)||void 0===d?void 0:d.id)||"",C="I"===b[0]?"UI_REF":"CHAT_REF",y=null===(s=null==H?void 0:H.contextAwareAgentReasoning)||void 0===s?void 0:s[f],S=r.isCompleted;return"gapfilteritem"===r.type?o("div",e({className:[v.gapFilterItemWrapper,"Uncategorized"!==t.categoryName?v.gapFilterItemWrapperIndented:""].join(" "),style:null==M?void 0:M.blockContainer},{children:o(u,{isDefaultOpen:"true"===l&&0===i,isCompleted:S,mode:x,index:i,isSelected:N==="".concat(t.categoryId,"-").concat(i),onClick:function(){return oe(n,i)},onFixClick:function(){return oe(n,i,{triggerFrom:"fix"})},onRedirect:function(){return oe(n,i,{triggerFrom:"redirect"})},item:r,isGenerating:G,aiReason:y,panelRef:null!=O?O:{current:null},id:f,customStyles:M,customIcons:_,cognitiveDecisionHeaders:J})}),i):o("div",e({className:v.crRedirectionGroup,style:null==M?void 0:M.crRedirectionGroup},{children:o("div",e({className:v.crRedirectionInner,style:null==M?void 0:M.crRedirectionInner},{children:o(g,{isDefaultOpen:"true"===l&&0===i,processItemId:c,isCompleted:S,mode:x,msg:H,type:C,text:r.text,headerText:r.headerText,decisionStrength:r.decisionStrength,id:b,gapType:$,onHandleSend:E,isGenerating:G,aiReason:y,statusUi:null!==(p=h[$])&&void 0!==p?p:h.recommendation,panelRef:null!=O?O:{current:null},customStyles:M,customIcons:_,cognitiveDecisionHeaders:J})}))}),i)})]}),"".concat(t.categoryName,"-").concat(n))})}))};export{x as GapFilterBlock,C as normalizeDecisionStrength};
2
2
  //# sourceMappingURL=GapFilterBlock.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{SquareArrowOutUpRight as t,ChevronUp as n,ChevronDown as l}from"lucide-react";import{useState as a,useMemo as s}from"react";import{Tooltip as r}from"@mui/material";import c from"./GapFilterItem.module.css.js";import d from"../ai-reasoning/AiReasoningCitationContent.js";import m from"../../icons/CognitiveDecision.js";var u=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:c.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:c.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:c.scoreBadgeLow}},p=function(p){p.isCompleted,p.mode;var v=p.index,g=p.isSelected,f=p.onClick,x=p.item,h=p.onFixClick,N=p.onRedirect,C=p.aiReason;p.panelRef;var R=p.id,y=p.isGenerating,T=void 0!==y&&y,b=p.customStyles,S=p.customIcons,w=a(!1),B=w[0],k=w[1],I=(null==S?void 0:S.highConfidence)||o(m,{});s(function(){return x.components?x.components.split("||"):[]},[x.components]);var j=s(function(){return x.score&&isNaN(parseInt(x.score))?0:x.score?parseInt(x.score):0},[x.score]),G=u(j);return o("div",e({className:c.outerWrapper,onClick:f,style:null==b?void 0:b.itemOuterWrapper},{children:i("div",e({className:c.innerCard,style:null==b?void 0:b.itemInnerCard},{children:[i("div",e({className:c.contentBlock,style:null==b?void 0:b.contentBlock},{children:[i("div",e({className:c.topRow,style:null==b?void 0:b.itemTopRow},{children:[o("div",e({className:[c.questionText,g?c.questionTextSelected:c.questionTextDefault].join(" "),style:e(e({},null==b?void 0:b.itemQuestionText),g?null==b?void 0:b.itemQuestionTextSelected:null==b?void 0:b.itemQuestionTextDefault)},{children:o(r,e({title:x.question||"",placement:"top"},{children:o("span",{className:c.questionSpan,style:null==b?void 0:b.itemQuestionSpan})}))})),i("div",e({className:c.actionsRow,style:null==b?void 0:b.itemActionsRow},{children:[j>0&&o("div",e({className:[c.scoreBadge,G.className].join(" "),style:e(e(e(e({},null==b?void 0:b.itemScoreBadge),j>90?null==b?void 0:b.itemScoreBadgeHigh:{}),j>=70&&j<=90?null==b?void 0:b.itemScoreBadgeMedium:{}),j<70?null==b?void 0:b.itemScoreBadgeLow:{})},{children:"".concat(j,"%")})),x.showFix&&o("button",e({className:c.fixButton,onClick:function(e){e.stopPropagation(),h()},style:null==b?void 0:b.itemFixButton},{children:"Fix"})),x.showRedirect&&o(t,{color:"#3b82f6",size:14,className:c.redirectIcon,onClick:function(e){e.stopPropagation(),N()},style:null==b?void 0:b.itemRedirectIcon})]}))]})),i("div",e({className:[c.bottomRow,g?c.bottomRowSelected:c.bottomRowDefault].join(" "),style:e(e({},null==b?void 0:b.itemBottomRow),g?null==b?void 0:b.bottomRowSelected:null==b?void 0:b.bottomRowDefault)},{children:[i("span",e({className:c.gapTextSpan,style:null==b?void 0:b.itemGapText},{children:[(null==x?void 0:x.headerText)?o("span",e({className:c.gapHeaderText,style:null==b?void 0:b.itemGapHeaderText},{children:x.headerText})):i("span",e({className:c.gapHeaderText,style:null==b?void 0:b.itemGapHeaderText},{children:["Gap ",v+1,"."]}))," ",x.text]})),R&&i("span",e({onClick:function(e){e.stopPropagation(),T||k(!B)},className:[c.reasoningToggle,T?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:null==b?void 0:b.itemReasoningToggle},{children:[I,o(B?n:l,{className:c.chevronIcon,style:null==b?void 0:b.chevronIcon})]}))]}))]})),B&&o(d,{aiReason:{id:"1",reason:C.Reasoning||"",gap:C.Gap||"",relevance_score:Number(C.Confidence_score),explanation:C.explanation||""},onSelectProceed:h,customStyles:null==b?void 0:b.aiReasoningStyles,customIcons:S})]}))}))};export{p as GapFilterItem,u as getScoreColorStyles};
1
+ import{__assign as e}from"tslib";import{jsx as o,jsxs as i}from"react/jsx-runtime";import{SquareArrowOutUpRight as n,ChevronUp as t,ChevronDown as l}from"lucide-react";import{useState as a,useMemo as s}from"react";import{Tooltip as r}from"@mui/material";import c from"./GapFilterItem.module.css.js";import d from"../ai-reasoning/AiReasoningCitationContent.js";import m from"../../icons/CognitiveDecision.js";var u=function(e){return e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:c.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:c.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:c.scoreBadgeLow}},p=function(p){var v=p.isDefaultOpen;p.isCompleted,p.mode;var g=p.index,f=p.isSelected,x=p.onClick,h=p.item,N=p.onFixClick,C=p.onRedirect,R=p.aiReason;p.panelRef;var y=p.id,T=p.isGenerating,b=void 0!==T&&T,S=p.customStyles,w=p.customIcons,B=p.cognitiveDecisionHeaders,k=a(v),I=k[0],D=k[1],j=(null==w?void 0:w.highConfidence)||o(m,{});s(function(){return h.components?h.components.split("||"):[]},[h.components]);var H=s(function(){return h.score&&isNaN(parseInt(h.score))?0:h.score?parseInt(h.score):0},[h.score]),G=u(H);return o("div",e({className:c.outerWrapper,onClick:x,style:null==S?void 0:S.itemOuterWrapper},{children:i("div",e({className:c.innerCard,style:null==S?void 0:S.itemInnerCard},{children:[i("div",e({className:c.contentBlock,style:null==S?void 0:S.contentBlock},{children:[i("div",e({className:c.topRow,style:null==S?void 0:S.itemTopRow},{children:[o("div",e({className:[c.questionText,f?c.questionTextSelected:c.questionTextDefault].join(" "),style:e(e({},null==S?void 0:S.itemQuestionText),f?null==S?void 0:S.itemQuestionTextSelected:null==S?void 0:S.itemQuestionTextDefault)},{children:o(r,e({title:h.question||"",placement:"top"},{children:o("span",{className:c.questionSpan,style:null==S?void 0:S.itemQuestionSpan})}))})),i("div",e({className:c.actionsRow,style:null==S?void 0:S.itemActionsRow},{children:[H>0&&o("div",e({className:[c.scoreBadge,G.className].join(" "),style:e(e(e(e({},null==S?void 0:S.itemScoreBadge),H>90?null==S?void 0:S.itemScoreBadgeHigh:{}),H>=70&&H<=90?null==S?void 0:S.itemScoreBadgeMedium:{}),H<70?null==S?void 0:S.itemScoreBadgeLow:{})},{children:"".concat(H,"%")})),h.showFix&&o("button",e({className:c.fixButton,onClick:function(e){e.stopPropagation(),N()},style:null==S?void 0:S.itemFixButton},{children:"Fix"})),h.showRedirect&&o(n,{color:"#3b82f6",size:14,className:c.redirectIcon,onClick:function(e){e.stopPropagation(),C()},style:null==S?void 0:S.itemRedirectIcon})]}))]})),i("div",e({className:[c.bottomRow,f?c.bottomRowSelected:c.bottomRowDefault].join(" "),style:e(e({},null==S?void 0:S.itemBottomRow),f?null==S?void 0:S.bottomRowSelected:null==S?void 0:S.bottomRowDefault)},{children:[i("span",e({className:c.gapTextSpan,style:null==S?void 0:S.itemGapText},{children:[(null==h?void 0:h.headerText)?o("span",e({className:c.gapHeaderText,style:null==S?void 0:S.itemGapHeaderText},{children:h.headerText})):i("span",e({className:c.gapHeaderText,style:null==S?void 0:S.itemGapHeaderText},{children:["Gap ",g+1,"."]}))," ",h.text]})),y&&i("span",e({onClick:function(e){e.stopPropagation(),b||D(!I)},className:[c.reasoningToggle,b?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:null==S?void 0:S.itemReasoningToggle},{children:[j,o(I?t:l,{className:c.chevronIcon,style:null==S?void 0:S.chevronIcon})]}))]}))]})),I&&o(d,{aiReason:{id:"1",reason:R.Reasoning||"",gap:R.Gap||"",relevance_score:Number(R.Confidence_score),explanation:R.explanation||""},onSelectProceed:N,customStyles:null==S?void 0:S.aiReasoningStyles,customIcons:w,cognitiveDecisionHeaders:B})]}))}))};export{p as GapFilterItem,u as getScoreColorStyles};
2
2
  //# sourceMappingURL=GapFilterItem.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as n}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{createContext as r,useRef as t,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as m}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as f}from"@mui/material";import g from"../../shared/UpdatedAnimationContent.js";import C from"../../shared/GeneratedCodeCitation.js";import y from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as S}from"../RequirementAIWrapper/RequirementAIWrapper.js";import w from"../ai-reasoning/AiReasoningCitation.js";import I from"../../icons/RelevanceScoreIcon.js";var R=r(!1),b=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),N=r({rowId:""}),x=function(e){var r,l,a=e.children,d=e.node,c=t(Math.random().toString(36).slice(2)).current,u=s(b).expandedInfo,v=(null==u?void 0:u.rowId)===c,m=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,p=null!==(l=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==l?l:void 0;return o(N.Provider,n({value:{rowId:c}},{children:[i("tr",n({style:p?{cssText:p}:void 0},{children:a})),v&&(null==u?void 0:u.aiReason)&&i("tr",n({style:{width:"100%"}},{children:i("td",n({colSpan:m||1,className:h.tableExpandedCell},{children:i("div",n({className:h.tableExpandedCellInner},{children:i("div",{className:h.tableExpandedCellContent})}))}))}))]}))},A=function(r){var N=r.message,A=r.scenario,L=r.showUserStoryDiff,T=void 0!==L&&L,j=r.aiReasoningsForBlock,U=r.isCitationLoadingDisplay,M=void 0!==U&&U,P=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var E=r.customStyles,k=r.customIcons,F=r.aiReasoningDiffView,$=r.userStoryCitations,q=r.artifactId,D=t(null),W=S(),H=W.userStory,_=W.getAvgScoreForStory,z=W.setUserStory,G=W.aiReasoning,Q=W.setAiReasoning,B=W.customIcons,O=W.searchQueryList,V=W.searchQueryReasoningIdList,J=null!=k?k:null==B?void 0:B.userStoryIcons,K=null==E?void 0:E.searchHighlight,X=m(D,K),Y=X.search,Z=X.clear,ee=l("1"),ne=ee[0],ie=ee[1],oe=l(null),re=oe[0],te=oe[1],le=t(new Map),ae=a(function(e,n){te(e&&n?{rowId:e,aiReason:n}:null)},[]),de=q?_(q):0,ce=l([]),se=ce[0],ue=ce[1],ve=function(e){var n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),i=e.replace(n,"\n\n<$1>\n\n");return i=(i=i.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(o,'"></generatedCode>\n\n')})};d(function(){return N?ve(N):N},[N]),c(function(){ue(j||G)},[j,G]);var he=d(function(){return{h1:function(o){o.node;var r=e(o,["node"]);return i("h1",n({className:h.heading1,style:null==E?void 0:E.heading1},{children:r.children}))},h2:function(o){o.node;var r=e(o,["node"]);return i("h2",n({className:h.heading2,style:null==E?void 0:E.heading2},{children:r.children}))},h3:function(o){o.node;var r=e(o,["node"]);return i("h3",n({className:h.heading3,style:null==E?void 0:E.heading3},{children:r.children}))},b:function(o){o.node;var r=e(o,["node"]);return i("b",n({className:h.bold,style:null==E?void 0:E.bold},{children:null==r?void 0:r.children}))},p:function(o){o.node;var r=e(o,["node"]);return i("p",n({},r,{className:h.paragraph,style:null==E?void 0:E.paragraph},{children:r.children}))},updated:function(o){var r=o.node,t=e(o,["node"]);return i(g,n({},t,{showUserStoryDiff:T,currentUpdatedTagId:ne,setCurrentUpdatedTagId:ie,userStory:H,setUserStory:z,setAiReasoning:Q,node:r,customStyles:null==E?void 0:E.updatedContent}))},ol:function(o){o.node;var r=e(o,["node"]);return i("ol",n({className:h.orderedList,style:null==E?void 0:E.olist},{children:null==r?void 0:r.children}))},ul:function(o){o.node;var r=e(o,["node"]);return i("ul",n({className:h.unorderedList,style:null==E?void 0:E.ulist},{children:null==r?void 0:r.children}))},table:function(e){var o=e.children;return i("div",n({className:h.tableWrapper},{children:i("table",n({className:h.table,style:null==E?void 0:E.table},{children:o}))}))},tr:x,td:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(R.Provider,n({value:!0},{children:i("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(R.Provider,n({value:!0},{children:i("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},a:function(n){var o,r,t;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]),a=s(R)||"true"==(null==l?void 0:l.table),d="".concat(null==l?void 0:l.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],u=null===(r=d.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===c){var v=(null!==(t=T?F:G)&&void 0!==t?t:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)});if(v&&v.reason.length>0&&v.gap.length>0)return i(w,{title:"Source",aiReason:v,isSourceHasHighlight:!1,isTable:a,customIcons:J,customStyles:{aiReasoningContent:null==E?void 0:E.aiReasoningContent,aiReasoningAccordion:null==E?void 0:E.aiReasoningAccordion,aiReasoningMarkdown:null==E?void 0:E.aiReasoningMarkdown,aiReasoningPill:null==E?void 0:E.aiReasoningPill,webCitation:null==E?void 0:E.webCitation,stormeeCitation:null==E?void 0:E.stormeeCitation,waveformCitation:null==E?void 0:E.waveformCitation,imageCitation:null==E?void 0:E.imageCitation,fileCitation:null==E?void 0:E.fileCitation,appModCitation:null==E?void 0:E.appModCitation,rcaCitation:null==E?void 0:E.rcaCitation,readFileCitation:null==E?void 0:E.readFileCitation,loadingCitations:null==E?void 0:E.loadingCitations}})}return null},code:function(o){o.inline;var r=o.children,t=o.className;return o.node,e(o,["inline","children","className","node"]),/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?i("div",{children:i("code",n({className:h.blockCode,style:null==E?void 0:E.code},{children:r}))}):i("code",n({className:h.inlineCode,style:null==E?void 0:E.code},{children:r}))},learned:function(e){var o=e.children;return i(f,n({title:o,placement:"top"},{children:i(p,{size:16,className:h.learned})}))},generatedcode:function(n){n.node;var o=e(n,["node"]),r=(null==o?void 0:o.language)||"python",t=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(o);return i(C,{title:"Generated Code",code:t,language:r,customStyles:{pill:null==E?void 0:E.generatedCodePill,content:null==E?void 0:E.generatedCodeContent}})}}},[se,G,$,ne,T,N,k]);return c(function(){if(D.current){if(null==O?void 0:O.length){var e;if(0===(null==V?void 0:V.length))requestAnimationFrame(function(){Y(O.map(function(e){return e.replace(/\*/g,"")}))});else{var n=D.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){Y(O.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}Z()}},[O,V]),i(b.Provider,n({value:{expandedInfo:re,setExpanded:ae,reasonToRow:le}},{children:o("div",n({ref:D,className:"".concat(h.container," ").concat("approving"!==A?h.wrapper:""," ").concat(P||""),style:null==E?void 0:E.container},{children:[i(u,n({components:he,rehypePlugins:[v]},{children:ve(N)})),de>0&&i("div",n({className:h.confidenceScoreContainer,style:null==E?void 0:E.confidenceScoreContainer},{children:o("span",n({className:h.confidenceScore,style:null==E?void 0:E.confidenceScore},{children:[i(I,{size:14,color:(null==E?void 0:E.confidenceScoreIconColor)||"#166534"}),de,"%"]}))})),M&&i("div",n({className:h.citationLoader,style:null==E?void 0:E.citationLoaderContainer},{children:i(y,{customStyles:{container:null==E?void 0:E.citationLoadingContainer,icon:null==E?void 0:E.citationLoadingIcon,text:null==E?void 0:E.citationLoadingText}})}))]}))}))};export{A as default};
1
+ import{__rest as e,__assign as n}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{createContext as r,useRef as t,useState as l,useCallback as a,useMemo as d,useEffect as c,useContext as s}from"react";import u from"react-markdown";import v from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as m}from"../../shared/useMarkdownSearch.js";import{Info as p}from"lucide-react";import{Tooltip as f}from"@mui/material";import g from"../../shared/UpdatedAnimationContent.js";import C from"../../shared/GeneratedCodeCitation.js";import y from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as w}from"../RequirementAIWrapper/RequirementAIWrapper.js";import S from"../ai-reasoning/AiReasoningCitation.js";import I from"../../icons/RelevanceScoreIcon.js";var R=r(!1),b=r({expandedInfo:null,setExpanded:function(){},reasonToRow:{current:new Map}}),N=r({rowId:""}),x=function(e){var r,l,a=e.children,d=e.node,c=t(Math.random().toString(36).slice(2)).current,u=s(b).expandedInfo,v=(null==u?void 0:u.rowId)===c,m=Array.isArray(null==d?void 0:d.children)?d.children.filter(function(e){return"element"===e.type}).length:1,p=null!==(l=null===(r=null==d?void 0:d.properties)||void 0===r?void 0:r.style)&&void 0!==l?l:void 0;return o(N.Provider,n({value:{rowId:c}},{children:[i("tr",n({style:p?{cssText:p}:void 0},{children:a})),v&&(null==u?void 0:u.aiReason)&&i("tr",n({style:{width:"100%"}},{children:i("td",n({colSpan:m||1,className:h.tableExpandedCell},{children:i("div",n({className:h.tableExpandedCellInner},{children:i("div",{className:h.tableExpandedCellContent})}))}))}))]}))},A=function(r){var N=r.message,A=r.scenario,L=r.showUserStoryDiff,T=void 0!==L&&L,j=r.aiReasoningsForBlock,U=r.isCitationLoadingDisplay,M=void 0!==U&&U,P=r.className;r.highConfidenceIcon,r.lowConfidenceIcon;var E=r.customStyles,k=r.customIcons,F=r.aiReasoningDiffView,$=r.userStoryCitations,q=r.artifactId,D=r.isCraflow,W=t(null),H=w(),_=H.userStory,z=H.getAvgScoreForStory,G=H.setUserStory,Q=H.aiReasoning,B=H.setAiReasoning,O=H.customIcons,V=H.searchQueryList,J=H.searchQueryReasoningIdList,K=null!=k?k:null==O?void 0:O.userStoryIcons,X=null==E?void 0:E.searchHighlight,Y=m(W,X),Z=Y.search,ee=Y.clear,ne=l("1"),ie=ne[0],oe=ne[1],re=l(null),te=re[0],le=re[1],ae=t(new Map),de=a(function(e,n){le(e&&n?{rowId:e,aiReason:n}:null)},[]),ce=q?z(q):0,se=l([]),ue=se[0],ve=se[1],he=function(e){var n=new RegExp("<(/?(".concat(["updated","deleted","changed"].join("|"),"))>"),"g"),i=e.replace(n,"\n\n<$1>\n\n");return i=(i=i.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,function(e,n){var i=n.replace(/ai_reasoning\$(\d+)/g,function(e,n){return"ai_reasoning$".concat(n,"-legacy")});return"<deleted>".concat(i,"</deleted>")})).replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,function(e,n,i){var o=btoa(encodeURIComponent(i.trim()));return"\n\n<generatedCode".concat(n,' data-raw="').concat(o,'"></generatedCode>\n\n')})};d(function(){return N?he(N):N},[N]),c(function(){ve(j||Q)},[j,Q]);var me=d(function(){return{h1:function(o){o.node;var r=e(o,["node"]);return i("h1",n({className:h.heading1,style:null==E?void 0:E.heading1},{children:r.children}))},h2:function(o){o.node;var r=e(o,["node"]);return i("h2",n({className:h.heading2,style:null==E?void 0:E.heading2},{children:r.children}))},h3:function(o){o.node;var r=e(o,["node"]);return i("h3",n({className:h.heading3,style:null==E?void 0:E.heading3},{children:r.children}))},b:function(o){o.node;var r=e(o,["node"]);return i("b",n({className:h.bold,style:null==E?void 0:E.bold},{children:null==r?void 0:r.children}))},p:function(o){o.node;var r=e(o,["node"]);return i("p",n({},r,{className:h.paragraph,style:null==E?void 0:E.paragraph},{children:r.children}))},updated:function(o){var r=o.node,t=e(o,["node"]);return i(g,n({},t,{showUserStoryDiff:T,currentUpdatedTagId:ie,setCurrentUpdatedTagId:oe,userStory:_,setUserStory:G,setAiReasoning:B,node:r,isCraflow:D,customStyles:null==E?void 0:E.updatedContent}))},ol:function(o){o.node;var r=e(o,["node"]);return i("ol",n({className:h.orderedList,style:null==E?void 0:E.olist},{children:null==r?void 0:r.children}))},ul:function(o){o.node;var r=e(o,["node"]);return i("ul",n({className:h.unorderedList,style:null==E?void 0:E.ulist},{children:null==r?void 0:r.children}))},table:function(e){var o=e.children;return i("div",n({className:h.tableWrapper},{children:i("table",n({className:h.table,style:null==E?void 0:E.table},{children:o}))}))},tr:x,td:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(R.Provider,n({value:!0},{children:i("td",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},th:function(o){var r,t=o.node,l=o.children,a=null!==(r=null==t?void 0:t.properties)&&void 0!==r?r:{},d=a.style,c=e(a,["style"]);return i(R.Provider,n({value:!0},{children:i("th",n({},c,{style:d?{cssText:d}:void 0},{children:l}))}))},a:function(n){var o,r,t;n.inline,n.children,n.node;var l=e(n,["inline","children","node"]),a=s(R)||"true"==(null==l?void 0:l.table),d="".concat(null==l?void 0:l.href),c=null===(o=d.split("$"))||void 0===o?void 0:o[0],u=null===(r=d.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===c){var v=(null!==(t=T?F:Q)&&void 0!==t?t:[]).find(function(e){return e.id.toString()===decodeURIComponent(u)});if(v&&v.reason.length>0&&v.gap.length>0)return i(S,{title:"Source",aiReason:v,isSourceHasHighlight:!1,isTable:a,customIcons:K,customStyles:{aiReasoningContent:null==E?void 0:E.aiReasoningContent,aiReasoningAccordion:null==E?void 0:E.aiReasoningAccordion,aiReasoningMarkdown:null==E?void 0:E.aiReasoningMarkdown,aiReasoningPill:null==E?void 0:E.aiReasoningPill,webCitation:null==E?void 0:E.webCitation,stormeeCitation:null==E?void 0:E.stormeeCitation,waveformCitation:null==E?void 0:E.waveformCitation,imageCitation:null==E?void 0:E.imageCitation,fileCitation:null==E?void 0:E.fileCitation,appModCitation:null==E?void 0:E.appModCitation,rcaCitation:null==E?void 0:E.rcaCitation,readFileCitation:null==E?void 0:E.readFileCitation,loadingCitations:null==E?void 0:E.loadingCitations}})}return null},code:function(o){o.inline;var r=o.children,t=o.className;return o.node,e(o,["inline","children","className","node"]),/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?i("div",{children:i("code",n({className:h.blockCode,style:null==E?void 0:E.code},{children:r}))}):i("code",n({className:h.inlineCode,style:null==E?void 0:E.code},{children:r}))},learned:function(e){var o=e.children;return i(f,n({title:o,placement:"top"},{children:i(p,{size:16,className:h.learned})}))},generatedcode:function(n){n.node;var o=e(n,["node"]),r=(null==o?void 0:o.language)||"python",t=function(e){var n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{var i=function(e){var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n}(o);return i(C,{title:"Generated Code",code:t,language:r,customStyles:{pill:null==E?void 0:E.generatedCodePill,content:null==E?void 0:E.generatedCodeContent}})}}},[ue,Q,$,ie,T,N,k]);return c(function(){if(W.current){if(null==V?void 0:V.length){var e;if(0===(null==J?void 0:J.length))requestAnimationFrame(function(){Z(V.map(function(e){return e.replace(/\*/g,"")}))});else{var n=W.current,i=new MutationObserver(function(){clearTimeout(e),e=setTimeout(function(){i.disconnect(),requestAnimationFrame(function(){Z(V.map(function(e){return e.replace(/\*/g,"")}))})},50)});i.observe(n,{childList:!0,subtree:!0})}return function(){clearTimeout(e)}}ee()}},[V,J]),i(b.Provider,n({value:{expandedInfo:te,setExpanded:de,reasonToRow:ae}},{children:o("div",n({ref:W,className:"".concat(h.container," ").concat("approving"!==A?h.wrapper:""," ").concat(P||""),style:null==E?void 0:E.container},{children:[i(u,n({components:me,rehypePlugins:[v]},{children:he(N)})),ce>0&&i("div",n({className:h.confidenceScoreContainer,style:null==E?void 0:E.confidenceScoreContainer},{children:o("span",n({className:h.confidenceScore,style:null==E?void 0:E.confidenceScore},{children:[i(I,{size:14,color:(null==E?void 0:E.confidenceScoreIconColor)||"#166534"}),ce,"%"]}))})),M&&i("div",n({className:h.citationLoader,style:null==E?void 0:E.citationLoaderContainer},{children:i(y,{customStyles:{container:null==E?void 0:E.citationLoadingContainer,icon:null==E?void 0:E.citationLoadingIcon,text:null==E?void 0:E.citationLoadingText}})}))]}))}))};export{A as default};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as o}from"react/jsx-runtime";import{Tooltip as i}from"@mui/material";import r from"./CitationAIConfidenceDisplay.module.css.js";import l from"../icons/RelevanceScoreIcon.js";import{ArrowUp as c}from"lucide-react";var t=function(c,t,a,s){var d;if("number"!=typeof c||isNaN(c))return null;var u=(null==s?void 0:s.confidenceScoreIcon)||n(l,{size:20,color:null===(d=null==a?void 0:a.icon)||void 0===d?void 0:d.color}),m=o("div",e({className:"".concat(r.container," ").concat(t?r.legacy:r.modern),style:null==a?void 0:a.container},{children:[u,n("span",e({style:null==a?void 0:a.label},{children:t?"Citation Relevance: ".concat(c,"%"):"".concat(c,"%")}))]}));return t?m:n(i,e({title:"Citation Relevance",arrow:!0},{children:m}))},a=function(i,t,a,s){if("number"==typeof i&&!isNaN(i)){var d=(null==s?void 0:s.confidenceScoreIcon)||n(l,{size:20});return o("div",e({className:r.decisioncontainer,style:null==a?void 0:a.container},{children:[d,o("span",e({style:null==a?void 0:a.text},{children:["Decision strength: ",i,"%"]})),Number(t||0)>0&&o("span",e({className:r.scoreIncrease,style:null==a?void 0:a.scoreIncrease},{children:[n(c,{className:r.arrowIcon,style:null==a?void 0:a.arrowIcon}),null==t?void 0:t.toFixed(2),"%"]}))]}))}return null};export{a as renderAIConfidenceDisplay,t as renderCitationAIConfidenceDisplay};
1
+ import{__assign as e}from"tslib";import{jsx as n,jsxs as o}from"react/jsx-runtime";import{Tooltip as i}from"@mui/material";import r from"./CitationAIConfidenceDisplay.module.css.js";import l from"../icons/RelevanceScoreIcon.js";import{ArrowUp as c}from"lucide-react";var t=function(c,t,a,s){var d;if("number"!=typeof c||isNaN(c))return null;var u=(null==s?void 0:s.confidenceScoreIcon)||n(l,{size:20,color:null===(d=null==a?void 0:a.icon)||void 0===d?void 0:d.color}),m=o("div",e({className:"".concat(r.container," ").concat(t?r.legacy:r.modern),style:null==a?void 0:a.container},{children:[u,n("span",e({style:null==a?void 0:a.label},{children:t?"Citation Relevance: ".concat(c,"%"):"".concat(c,"%")}))]}));return t?m:n(i,e({title:"Citation Relevance",arrow:!0},{children:m}))},a=function(i,t,a,s){if("number"==typeof i&&!isNaN(i)){var d=(null==s?void 0:s.confidenceScoreIcon)||n(l,{size:20});return o("div",e({className:r.decisioncontainer,style:null==a?void 0:a.container},{children:[d,o("span",e({style:null==a?void 0:a.text},{children:[i,"%"]})),Number(t||0)>0&&o("span",e({className:r.scoreIncrease,style:null==a?void 0:a.scoreIncrease},{children:[n(c,{className:r.arrowIcon,style:null==a?void 0:a.arrowIcon}),null==t?void 0:t.toFixed(2),"%"]}))]}))}return null};export{a as renderAIConfidenceDisplay,t as renderCitationAIConfidenceDisplay};
2
2
  //# sourceMappingURL=CitationAIConfidenceDisplay.js.map
@@ -1,2 +1,2 @@
1
- var e={container:"CitationAIConfidenceDisplay-module_container__ufVDg",legacy:"CitationAIConfidenceDisplay-module_legacy__h3fOA",modern:"CitationAIConfidenceDisplay-module_modern__A89gC",decisioncontainer:"CitationAIConfidenceDisplay-module_decisioncontainer__GR1QW",scoreIncrease:"CitationAIConfidenceDisplay-module_scoreIncrease__IQwm2",arrowIcon:"CitationAIConfidenceDisplay-module_arrowIcon__jKsG0"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".CitationAIConfidenceDisplay-module_container__ufVDg{align-items:center;border-radius:9999px;display:flex;flex-direction:row;font-weight:500;gap:.5rem;margin-left:1.5rem;padding:.25rem .75rem}.CitationAIConfidenceDisplay-module_legacy__h3fOA{background-color:#fff;border:2px solid #ac93f6;color:#1f2937;min-width:13.83rem}.CitationAIConfidenceDisplay-module_modern__A89gC{background-color:#bbf7d0;border:2px solid #10b981;color:#1f2937;min-width:6.4rem}.CitationAIConfidenceDisplay-module_decisioncontainer__GR1QW{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:9999px;color:#5928ed;display:flex;flex-direction:row;font-weight:500;gap:.5rem;margin-left:1.5rem;min-width:13.83rem;padding:.5rem .75rem}.CitationAIConfidenceDisplay-module_scoreIncrease__IQwm2{align-items:center;background-color:#cdf4de;border-radius:9999px;color:#027a48;display:flex;flex-direction:row;font-size:.875rem;margin-left:.25rem;padding:.25rem .5rem}.CitationAIConfidenceDisplay-module_arrowIcon__jKsG0{height:1rem;margin-right:.125rem;width:1rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
1
+ var e={container:"CitationAIConfidenceDisplay-module_container__ufVDg",legacy:"CitationAIConfidenceDisplay-module_legacy__h3fOA",modern:"CitationAIConfidenceDisplay-module_modern__A89gC",decisioncontainer:"CitationAIConfidenceDisplay-module_decisioncontainer__GR1QW",scoreIncrease:"CitationAIConfidenceDisplay-module_scoreIncrease__IQwm2",arrowIcon:"CitationAIConfidenceDisplay-module_arrowIcon__jKsG0"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&e.setAttribute("nonce",n),e.appendChild(document.createTextNode(".CitationAIConfidenceDisplay-module_container__ufVDg{align-items:center;border-radius:9999px;display:flex;flex-direction:row;font-weight:500;gap:.5rem;margin-left:1.5rem;padding:.25rem .75rem}.CitationAIConfidenceDisplay-module_legacy__h3fOA{background-color:#fff;border:2px solid #ac93f6;color:#1f2937;min-width:13.83rem}.CitationAIConfidenceDisplay-module_modern__A89gC{background-color:#bbf7d0;border:2px solid #10b981;color:#1f2937;min-width:6.4rem}.CitationAIConfidenceDisplay-module_decisioncontainer__GR1QW{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:9999px;color:#5928ed;display:flex;flex-direction:row;font-weight:500;gap:.5rem;margin-left:1.5rem;min-width:5rem;padding:.25rem .75rem}.CitationAIConfidenceDisplay-module_scoreIncrease__IQwm2{align-items:center;background-color:#cdf4de;border-radius:9999px;color:#027a48;display:flex;flex-direction:row;font-size:.875rem;margin-left:.25rem;padding:.25rem .5rem}.CitationAIConfidenceDisplay-module_arrowIcon__jKsG0{height:1rem;margin-right:.125rem;width:1rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=CitationAIConfidenceDisplay.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as e,__assign as n,__spreadArray as r}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Undo as l,ThumbsUp as i,Minus as u,Plus as c}from"lucide-react";import{useState as d,useRef as a,useEffect as s}from"react";import v from"./UpdatedAnimationContent.module.css.js";var f=function(f){var m,p,h,y,g,S,N,I,T=f.showUserStoryDiff,M=void 0!==T&&T,b=f.currentUpdatedTagId,C=f.setCurrentUpdatedTagId;f.node;var w=f.userStory,U=f.setUserStory,x=f.setAiReasoning,z=f.customStyles,L=f.customIcons,A=e(f,["showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),j=d(!1),B=j[0],E=j[1],H=d(null),k=H[0],q=H[1],D=a(null),O=a(null),_=null!==(m=null==z?void 0:z.iconSize)&&void 0!==m?m:16,W=null!==(p=null==z?void 0:z.actionIconSize)&&void 0!==p?p:_;s(function(){if(O.current){var e=setTimeout(function(){var e=O.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[b]);var F=null===(g=null===(y=null===(h=null==A?void 0:A.children)||void 0===h?void 0:h.filter(function(e){return"string"!=typeof e}).find(function(e){return"deleted"===(null==e?void 0:e.type)}))||void 0===y?void 0:y.props)||void 0===g?void 0:g.children,J=null===(I=null===(N=null===(S=null==A?void 0:A.children)||void 0===S?void 0:S.filter(function(e){return"string"!=typeof e}).find(function(e){return"changed"===(null==e?void 0:e.type)}))||void 0===N?void 0:N.props)||void 0===I?void 0:I.children;function P(e,t,o){var l=JSON.parse(JSON.stringify(e)),i=function(e,n){var r=function(e){for(var t=0,o=e;t<o.length;t++){var l=o[t];if((new DOMParser).parseFromString(l.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return l;if(l.sub_features&&l.sub_features.length>0){var i=r(l.sub_features);if(i)return i}}return null};return r(e)}(l,t);if(!i)return console.warn("No user story found with updated id: ".concat(t)),!1;var u=(new DOMParser).parseFromString(i.value,"text/html"),c=u.querySelector('updated[id="'.concat(t,'"]'));if(!c)return console.warn("No <updated> block found with id: ".concat(t)),!1;var d,a=c.innerHTML,s=c.querySelector("deleted"),v=c.querySelector("changed"),f=s?s.innerHTML.trim():null,m=v?v.innerHTML.trim():null,p="";if("reject"===o){var h=(d=(f||m||"").match(/ai_reasoning\$(\d+)/))?parseInt(d[1],10):null;null!==h&&x(function(e){var t=e.map(function(e){return n({},e)}),o="".concat(h,"-legacy"),l=t.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===o});if(l){var i=l.id.toString().replace("-legacy","");t=t.filter(function(e){return e.id.toString()!==i}),l.id=i}return r([],t,!0)})}"accept"===o?p=f&&m?m:f&&!m?"":!f&&m?m:a:"reject"===o&&(p=f&&m||f&&!m?f:!f&&m?"":a);var y=u.createElement("div");y.innerHTML=p;var g=Array.from(y.childNodes);c.replaceWith.apply(c,g);var S=new XMLSerializer;return i.value=S.serializeToString(u),U(l),C(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),!0}var R=function(e){var r=(null==z?void 0:z.actionButton)||{},t=k===e&&(null==z?void 0:z.actionButtonHover)||{};return n(n({},r),t)};return t("div",n({},A,{className:v.container,style:null==z?void 0:z.container,onMouseEnter:function(){D.current&&(clearTimeout(D.current),D.current=null),E(!0)},onMouseLeave:function(){D.current=setTimeout(function(){E(!1),D.current=null},2e3)},ref:(null==A?void 0:A.id)===b?O:null},{children:[B&&!M&&t("span",n({className:v.hoverActions,style:null==z?void 0:z.hoverActions,onMouseEnter:function(){return E(!0)}},{children:[o("button",n({className:v.actionButton,style:R("undo"),onMouseEnter:function(){return q("undo")},onMouseLeave:function(){return q(null)},onClick:function(){P(w,null==A?void 0:A.id,"reject"),E(!1)}},{children:(null==L?void 0:L.undo)?L.undo:o(l,{size:W,color:null==z?void 0:z.undoIconColor,className:v.hw})})),o("span",{className:v.divider,style:null==z?void 0:z.divider}),o("button",n({className:v.actionButton,style:R("accept"),onMouseEnter:function(){return q("accept")},onMouseLeave:function(){return q(null)},onClick:function(){P(w,null==A?void 0:A.id,"accept"),E(!1)}},{children:(null==L?void 0:L.accept)?L.accept:o(i,{size:W,color:null==z?void 0:z.thumbsUpIconColor,className:v.hw})}))]})),F&&t("div",n({className:v.deletedContainer,style:null==z?void 0:z.deletedContainer},{children:[o("span",n({style:null==z?void 0:z.deletedIconWrapper},{children:(null==L?void 0:L.deleted)?L.deleted:o(u,{size:_,color:null==z?void 0:z.deletedIconColor,className:v.deletedIcon})})),o("div",n({className:v.deletedText,style:null==z?void 0:z.deletedText},{children:F}))]})),J&&t("div",n({className:v.changedContainer,style:null==z?void 0:z.changedContainer},{children:[o("span",n({style:null==z?void 0:z.changedIconWrapper},{children:(null==L?void 0:L.changed)?L.changed:o(c,{size:_,color:null==z?void 0:z.changedIconColor,className:v.changedIcon})})),o("div",n({className:v.changedText,style:null==z?void 0:z.changedText},{children:J}))]}))]}))};export{f as default};
1
+ import{__rest as e,__assign as n,__spreadArray as r}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Undo as l,ThumbsUp as i,Minus as u,Plus as c}from"lucide-react";import{useState as d,useRef as a,useEffect as s}from"react";import v from"./UpdatedAnimationContent.module.css.js";var f=function(f){var m,p,h,y,g,S,N,I,T=f.isCraflow,C=f.showUserStoryDiff,M=void 0!==C&&C,w=f.currentUpdatedTagId,b=f.setCurrentUpdatedTagId;f.node;var U=f.userStory,x=f.setUserStory,z=f.setAiReasoning,L=f.customStyles,A=f.customIcons,j=e(f,["isCraflow","showUserStoryDiff","currentUpdatedTagId","setCurrentUpdatedTagId","node","userStory","setUserStory","setAiReasoning","customStyles","customIcons"]),B=d(!1),E=B[0],H=B[1],k=d(null),q=k[0],D=k[1],O=a(null),_=a(null),W=null!==(m=null==L?void 0:L.iconSize)&&void 0!==m?m:16,F=null!==(p=null==L?void 0:L.actionIconSize)&&void 0!==p?p:W;s(function(){if(_.current){var e=setTimeout(function(){var e=_.current;e&&(e.style.scrollMarginBottom="20px",e.scrollIntoView({behavior:"smooth",block:"end"}))},200);return function(){return clearTimeout(e)}}},[w]);var J=null===(g=null===(y=null===(h=null==j?void 0:j.children)||void 0===h?void 0:h.filter(function(e){return"string"!=typeof e}).find(function(e){return"deleted"===(null==e?void 0:e.type)}))||void 0===y?void 0:y.props)||void 0===g?void 0:g.children,P=null===(I=null===(N=null===(S=null==j?void 0:j.children)||void 0===S?void 0:S.filter(function(e){return"string"!=typeof e}).find(function(e){return"changed"===(null==e?void 0:e.type)}))||void 0===N?void 0:N.props)||void 0===I?void 0:I.children;function R(e,t,o){var l=JSON.parse(JSON.stringify(e)),i=function(e,n){var r=function(e){for(var t=0,o=e;t<o.length;t++){var l=o[t];if((new DOMParser).parseFromString(l.value,"text/html").querySelector('updated[id="'.concat(n,'"]')))return l;if(l.sub_features&&l.sub_features.length>0){var i=r(l.sub_features);if(i)return i}}return null};return r(e)}(l,t);if(!i)return console.warn("No user story found with updated id: ".concat(t)),!1;var u=(new DOMParser).parseFromString(i.value,"text/html"),c=u.querySelector('updated[id="'.concat(t,'"]'));if(!c)return console.warn("No <updated> block found with id: ".concat(t)),!1;var d,a=c.innerHTML,s=c.querySelector("deleted"),v=c.querySelector("changed"),f=s?s.innerHTML.trim():null,m=v?v.innerHTML.trim():null,p="";if("reject"===o){var h=(d=(f||m||"").match(/ai_reasoning\$(\d+)/))?parseInt(d[1],10):null;null!==h&&z(function(e){var t=e.map(function(e){return n({},e)}),o="".concat(h,"-legacy"),l=t.find(function(e){var n;return(null===(n=e.id)||void 0===n?void 0:n.toString())===o});if(l){var i=l.id.toString().replace("-legacy","");t=t.filter(function(e){return e.id.toString()!==i}),l.id=i}return r([],t,!0)})}"accept"===o?p=f&&m?m:f&&!m?"":!f&&m?m:a:"reject"===o&&(p=f&&m||f&&!m?f:!f&&m?"":a);var y=u.createElement("div");y.innerHTML=p;var g=Array.from(y.childNodes);c.replaceWith.apply(c,g);var S=new XMLSerializer;return i.value=S.serializeToString(u),x(l),b(function(e){return Number.isNaN(Number(e))?e:String(Number(e)+1)}),!0}var V=function(e){var r=(null==L?void 0:L.actionButton)||{},t=q===e&&(null==L?void 0:L.actionButtonHover)||{};return n(n({},r),t)};return t("div",n({},j,{className:v.container,style:null==L?void 0:L.container,onMouseEnter:function(){O.current&&(clearTimeout(O.current),O.current=null),H(!0)},onMouseLeave:function(){O.current=setTimeout(function(){H(!1),O.current=null},2e3)},ref:(null==j?void 0:j.id)===w?_:null},{children:[E&&!M&&!T&&t("span",n({className:v.hoverActions,style:null==L?void 0:L.hoverActions,onMouseEnter:function(){return H(!0)}},{children:[o("button",n({className:v.actionButton,style:V("undo"),onMouseEnter:function(){return D("undo")},onMouseLeave:function(){return D(null)},onClick:function(){R(U,null==j?void 0:j.id,"reject"),H(!1)}},{children:(null==A?void 0:A.undo)?A.undo:o(l,{size:F,color:null==L?void 0:L.undoIconColor,className:v.hw})})),o("span",{className:v.divider,style:null==L?void 0:L.divider}),o("button",n({className:v.actionButton,style:V("accept"),onMouseEnter:function(){return D("accept")},onMouseLeave:function(){return D(null)},onClick:function(){R(U,null==j?void 0:j.id,"accept"),H(!1)}},{children:(null==A?void 0:A.accept)?A.accept:o(i,{size:F,color:null==L?void 0:L.thumbsUpIconColor,className:v.hw})}))]})),J&&t("div",n({className:v.deletedContainer,style:null==L?void 0:L.deletedContainer},{children:[o("span",n({style:null==L?void 0:L.deletedIconWrapper},{children:(null==A?void 0:A.deleted)?A.deleted:o(u,{size:W,color:null==L?void 0:L.deletedIconColor,className:v.deletedIcon})})),o("div",n({className:v.deletedText,style:null==L?void 0:L.deletedText},{children:J}))]})),P&&t("div",n({className:v.changedContainer,style:null==L?void 0:L.changedContainer},{children:[o("span",n({style:null==L?void 0:L.changedIconWrapper},{children:(null==A?void 0:A.changed)?A.changed:o(c,{size:W,color:null==L?void 0:L.changedIconColor,className:v.changedIcon})})),o("div",n({className:v.changedText,style:null==L?void 0:L.changedText},{children:P}))]}))]}))};export{f as default};
2
2
  //# sourceMappingURL=UpdatedAnimationContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA4BA,QAAA,MAAM,iBAAiB,+CAwzDtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA4BA,QAAA,MAAM,iBAAiB,+CAo3DtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -8,7 +8,9 @@ interface AiReasonAccordionProps {
8
8
  scenario?: "riskSideBar";
9
9
  className?: string;
10
10
  customStyles?: AiReasonAccordionStyles;
11
+ alwaysOpen?: boolean;
12
+ defaultOpen?: boolean;
11
13
  }
12
- export default function AiReasonAccordion({ icon, title, content, subTitle, scenario, className, customStyles }: AiReasonAccordionProps): import("react/jsx-runtime").JSX.Element;
14
+ export default function AiReasonAccordion({ icon, title, content, subTitle, scenario, className, customStyles, alwaysOpen, defaultOpen, }: AiReasonAccordionProps): import("react/jsx-runtime").JSX.Element;
13
15
  export {};
14
16
  //# sourceMappingURL=AIReasonAccordion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIReasonAccordion.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,UAAU,sBAAsB;IAC9B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,uBAAuB,CAAA;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SAAc,EACd,YAAY,EACb,EAAE,sBAAsB,2CAsCxB"}
1
+ {"version":3,"file":"AIReasonAccordion.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,UAAU,sBAAsB;IAC9B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SAAc,EACd,YAAY,EACZ,UAAkB,EAClB,WAAkB,GACnB,EAAE,sBAAsB,2CAsCxB"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AiReasoningCustomStyles, UserStoryIcons, TAIReasoning } from "../../types/aiReasoning.type";
2
+ import { AiReasoningCustomStyles, UserStoryIcons, TAIReasoning, CDHeaders } from "../../types/aiReasoning.type";
3
3
  export interface AiReasoningCitationContentProps {
4
4
  aiReason: TAIReasoning;
5
5
  scenario?: "riskSideBar";
@@ -14,7 +14,8 @@ export interface AiReasoningCitationContentProps {
14
14
  customIcons?: UserStoryIcons;
15
15
  onSelectProceed?: () => void;
16
16
  isDisableProceedButton?: boolean;
17
+ cognitiveDecisionHeaders?: CDHeaders;
17
18
  }
18
- declare const AiReasoningCitationContent: ({ aiReason, scenario, customStyles, customIcons, AiReasoningIcon, reasoningIcon, gapIcon, className, onSelectProceed, isDisableProceedButton }: AiReasoningCitationContentProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const AiReasoningCitationContent: ({ aiReason, scenario, customStyles, customIcons, cognitiveDecisionHeaders, AiReasoningIcon, reasoningIcon, gapIcon, className, onSelectProceed, isDisableProceedButton }: AiReasoningCitationContentProps) => import("react/jsx-runtime").JSX.Element;
19
20
  export default AiReasoningCitationContent;
20
21
  //# sourceMappingURL=AiReasoningCitationContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AiReasoningCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,cAAc,EACd,YAAY,EACb,MAAM,8BAA8B,CAAC;AActC,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAC;IAEzB,yEAAyE;IACzE,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,6DAA6D;IAC7D,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,sDAAsD;IACtD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAGD,QAAA,MAAM,0BAA0B,mJAO7B,+BAA+B,4CAkJjC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"AiReasoningCitationContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,uBAAuB,EAEvB,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,8BAA8B,CAAC;AActC,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAC;IAEzB,yEAAyE;IACzE,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,6DAA6D;IAC7D,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,sDAAsD;IACtD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,uBAAuB,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,wBAAwB,CAAC,EAAE,SAAS,CAAA;CACrC;AAGD,QAAA,MAAM,0BAA0B,6KAO7B,+BAA+B,4CAkKjC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { UserStoryIcons } from '../../types/aiReasoning.type';
2
+ import { CDHeaders, UserStoryIcons } from '../../types/aiReasoning.type';
3
3
  import { AIReasoningType } from './GapFilterBlock';
4
4
  import { GapFilterStyles } from '../../types/gapFilterStyles.type';
5
5
  export type RefType = 'CHAT_REF' | 'UI_REF';
@@ -21,6 +21,7 @@ export interface InlineRefIconProps {
21
21
  mode: "cra" | "risk-gap";
22
22
  }
23
23
  interface CustomChatCrRedirectionProps extends InlineRefIconProps {
24
+ isDefaultOpen: boolean;
24
25
  processItemId?: string;
25
26
  isCompleted: boolean;
26
27
  statusUi: {
@@ -32,6 +33,7 @@ interface CustomChatCrRedirectionProps extends InlineRefIconProps {
32
33
  isGenerating?: boolean;
33
34
  customStyles?: GapFilterStyles;
34
35
  customIcons?: UserStoryIcons;
36
+ cognitiveDecisionHeaders?: CDHeaders;
35
37
  /**
36
38
  * Library consumers provide this instead of the internal microFrontendApi.
37
39
  * Called when the redirect icon (SquareArrowOutUpRight) is clicked.
@@ -49,6 +51,6 @@ interface CustomChatCrRedirectionProps extends InlineRefIconProps {
49
51
  };
50
52
  }) => void;
51
53
  }
52
- export declare function CustomChatCrRedirection({ processItemId, isCompleted, mode, msg, type, id, aiReason, text, headerText, decisionStrength, statusUi, panelRef, onHandleSend, onRedirectClick, gapType, isGenerating, customStyles, customIcons }: CustomChatCrRedirectionProps): import("react/jsx-runtime").JSX.Element;
54
+ export declare function CustomChatCrRedirection({ isDefaultOpen, processItemId, isCompleted, mode, msg, type, id, aiReason, text, headerText, decisionStrength, statusUi, panelRef, onHandleSend, onRedirectClick, gapType, isGenerating, customStyles, customIcons, cognitiveDecisionHeaders, }: CustomChatCrRedirectionProps): import("react/jsx-runtime").JSX.Element;
53
55
  export {};
54
56
  //# sourceMappingURL=CustomChatCrRedirection.d.ts.map
@@ -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,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,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,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,KAAM,IAAI,CAAC;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,eAAe,CAAA;IAC9B,WAAW,CAAC,EAAE,cAAc,CAAA;IAC5B;;;;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;CACZ;AAID,wBAAgB,uBAAuB,CAAC,EACtC,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,EACZ,EAAE,4BAA4B,2CA4L9B"}
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;AAInE,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,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AW,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,GACzB,EAAE,4BAA4B,2CA6L9B"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { GapFilterStyles } from '../../types/gapFilterStyles.type';
3
- import { UserStoryIcons } from '../../types/aiReasoning.type';
3
+ import { CDHeaders, UserStoryIcons } from '../../types/aiReasoning.type';
4
4
  export type GapFilterType = 'critical' | 'warning' | 'recommendation';
5
5
  export type RefType = 'CHAT_REF' | 'UI_REF';
6
6
  export interface AIReasoningType {
@@ -14,6 +14,7 @@ export interface AIReasoningType {
14
14
  }
15
15
  export declare function normalizeDecisionStrength(raw: string): string;
16
16
  export interface GapFilterBlockProps {
17
+ isDefaultOpen?: "true";
17
18
  processItemId?: string;
18
19
  mode: "cra" | "risk-gap";
19
20
  node?: any;
@@ -35,6 +36,7 @@ export interface GapFilterBlockProps {
35
36
  getShowGapReviewButtonType?: () => GapFilterType | null;
36
37
  customStyles?: GapFilterStyles;
37
38
  customIcons?: UserStoryIcons;
39
+ cognitiveDecisionHeaders?: CDHeaders;
38
40
  }
39
41
  export declare const GapFilterBlock: React.FC<GapFilterBlockProps>;
40
42
  export interface GapFilterMarkdownRendererProps {
@@ -46,6 +48,7 @@ export interface GapFilterMarkdownRendererProps {
46
48
  customStyles?: GapFilterStyles;
47
49
  customIcons?: UserStoryIcons;
48
50
  processItemId?: string;
51
+ cognitiveDecisionHeaders?: CDHeaders;
49
52
  }
50
53
  export declare const GapFilterMarkdownRenderer: React.FC<GapFilterMarkdownRendererProps>;
51
54
  //# sourceMappingURL=GapFilterBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/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AS,CAAA;CACrC;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA0H9E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { UserStoryIcons } from '../../types/aiReasoning.type';
2
+ import { CDHeaders, UserStoryIcons } from '../../types/aiReasoning.type';
3
3
  import { AIReasoningType } from './GapFilterBlock';
4
4
  import { GapFilterStyles } from '../../types/gapFilterStyles.type';
5
5
  export interface IGapFilterItem {
@@ -16,6 +16,7 @@ export interface IGapFilterItem {
16
16
  showRedirect?: boolean;
17
17
  }
18
18
  type GapFilterItemProps = {
19
+ isDefaultOpen: boolean;
19
20
  isCompleted: true;
20
21
  mode: "cra" | "risk-gap";
21
22
  index: number;
@@ -30,6 +31,7 @@ type GapFilterItemProps = {
30
31
  isGenerating?: boolean;
31
32
  customStyles?: GapFilterStyles;
32
33
  customIcons?: UserStoryIcons;
34
+ cognitiveDecisionHeaders?: CDHeaders;
33
35
  };
34
36
  export declare const getScoreColorStyles: (score: number) => {
35
37
  borderColor: string;
@@ -37,6 +39,6 @@ export declare const getScoreColorStyles: (score: number) => {
37
39
  color: string;
38
40
  className: string;
39
41
  };
40
- export declare const GapFilterItem: ({ isCompleted, mode, index, isSelected, onClick, item, onFixClick, onRedirect, aiReason, panelRef, id, isGenerating, customStyles, customIcons, }: GapFilterItemProps) => import("react/jsx-runtime").JSX.Element;
42
+ export declare const GapFilterItem: ({ isDefaultOpen, isCompleted, mode, index, isSelected, onClick, item, onFixClick, onRedirect, aiReason, panelRef, id, isGenerating, customStyles, customIcons, cognitiveDecisionHeaders, }: GapFilterItemProps) => import("react/jsx-runtime").JSX.Element;
41
43
  export {};
42
44
  //# sourceMappingURL=GapFilterItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GapFilterItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.tsx"],"names":[],"mappings":";AAUA,OAAO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AAA;CAsBlF,CAAC;AAIF,eAAO,MAAM,aAAa,sJAevB,kBAAkB,4CAgJpB,CAAC"}
1
+ {"version":3,"file":"GapFilterItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.tsx"],"names":[],"mappings":";AAUA,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,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE;QACT,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAID,KAAK,kBAAkB,GAAG;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,IAAI,CAAC;IAClB,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,wBAAwB,CAAC,EAAE,SAAS,CAAA;CACrC,CAAC;AAIF,eAAO,MAAM,mBAAmB,UACvB,MAAM,KACZ;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAsBlF,CAAC;AAIF,eAAO,MAAM,aAAa,+LAiBvB,kBAAkB,4CAiJpB,CAAC"}
@@ -55,7 +55,8 @@ interface UserStoryWithCitationsProps {
55
55
  customIcons?: UserStoryIcons;
56
56
  aiReasoningDiffView?: TAIReasoning[];
57
57
  userStoryCitations?: any;
58
+ isCraflow?: boolean;
58
59
  }
59
- declare const UserStoryWithCitations: ({ message, scenario, showUserStoryDiff, aiReasoningsForBlock, isCitationLoadingDisplay, className, highConfidenceIcon, lowConfidenceIcon, customStyles, customIcons, aiReasoningDiffView, userStoryCitations, artifactId }: UserStoryWithCitationsProps) => import("react/jsx-runtime").JSX.Element;
60
+ declare const UserStoryWithCitations: ({ message, scenario, showUserStoryDiff, aiReasoningsForBlock, isCitationLoadingDisplay, className, highConfidenceIcon, lowConfidenceIcon, customStyles, customIcons, aiReasoningDiffView, userStoryCitations, artifactId, isCraflow }: UserStoryWithCitationsProps) => import("react/jsx-runtime").JSX.Element;
60
61
  export default UserStoryWithCitations;
61
62
  //# sourceMappingURL=UserStoryWithCitation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0B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AG,CAAC;CAK1B;AAmHD,QAAA,MAAM,sBAAsB,+NAWzB,2BAA2B,4CAsX7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"UserStoryWithCitation.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACrW,OAA+B,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAyBzI,MAAM,WAAW,iCAAiC;IAChD,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,cAAc,CAAC,EAAE,4BAA4B,CAAC;IAC9C,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;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E,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,iCAAiC,CAAC;IAEjD,WAAW,CAAC,EAAE,cAAc,CAAC;IAI7B,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,GAAG,CAAC;IAKzB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAmHD,QAAA,MAAM,sBAAsB,0OAYzB,2BAA2B,4CAuX7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -35,8 +35,9 @@ interface UpdatedAnimatedContentProps {
35
35
  setAiReasoning: React.Dispatch<React.SetStateAction<any[]>>;
36
36
  customStyles?: UpdatedAnimatedContentStyles;
37
37
  customIcons?: UpdatedAnimatedContentIcons;
38
+ isCraflow?: boolean;
38
39
  [key: string]: any;
39
40
  }
40
- declare const UpdatedAnimatedContent: ({ showUserStoryDiff, currentUpdatedTagId, setCurrentUpdatedTagId, node, userStory, setUserStory, setAiReasoning, customStyles, customIcons, ...props }: UpdatedAnimatedContentProps) => import("react/jsx-runtime").JSX.Element;
41
+ declare const UpdatedAnimatedContent: ({ isCraflow, showUserStoryDiff, currentUpdatedTagId, setCurrentUpdatedTagId, node, userStory, setUserStory, setAiReasoning, customStyles, customIcons, ...props }: UpdatedAnimatedContentProps) => import("react/jsx-runtime").JSX.Element;
41
42
  export default UpdatedAnimatedContent;
42
43
  //# sourceMappingURL=UpdatedAnimationContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpdatedAnimationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/UpdatedAnimationContent.tsx"],"names":[],"mappings":";AAIA,OAA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AC,MAAM,CAAC,CAAC,CAAC;IACrE,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACjE,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,QAAA,MAAM,sBAAsB,2JAWzB,2BAA2B,4CA6U7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"UpdatedAnimationContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/UpdatedAnimationContent.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,WAAW,4BAA4B;IACzC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxC,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,WAAW,CAAC,EAAE,KAAK,CAAC,aAA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SSProperties;
234
234
  };
235
235
  explanationDivider?: React.CSSProperties;
236
+ chevronWrapper?: React.CSSProperties;
237
+ chevronIcon?: React.CSSProperties;
236
238
  }
237
239
  export interface AiReasoningCustomStyles {
238
240
  aiReasoningPill?: React.CSSProperties;
@@ -355,4 +357,9 @@ export interface UserStoryIcons {
355
357
  readFileCitationIcon?: React.ReactNode;
356
358
  citationLoadingIcon?: React.ReactNode;
357
359
  }
360
+ export interface CDHeaders {
361
+ mainHeader?: string;
362
+ decisionHeader?: string;
363
+ gapHeader?: string;
364
+ }
358
365
  //# sourceMappingURL=aiReasoning.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aiReasoning.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/aiReasoning.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,cAAc,EACf,MAAM,+CAA+C,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,UAAU,GACV,SAAS,GACT,KAAK,GACL,OAAO,GACP,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,KAAK,GACL,MAAM,CAAC;AAEX,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,C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KAAK,CAAC,SAAS,CAAC;IACrC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvC"}
1
+ {"version":3,"file":"aiReasoning.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/aiReasoning.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,cAAc,EACf,MAAM,+CAA+C,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,UAAU,GACV,SAAS,GACT,KAAK,GACL,OAAO,GACP,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,KAAK,GACL,MAAM,CAAC;AAEX,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,EAAE,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzB,CAAC,CAAC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ACjC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvC;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",