@e-llm-studio/requirement-ai 0.0.30 → 0.0.32

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 (18) hide show
  1. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.module.css.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  5. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  6. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.module.css.js +1 -1
  7. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  8. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  9. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  10. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +4 -2
  11. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
  12. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +2 -0
  13. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
  14. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts +2 -1
  15. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts.map +1 -1
  16. package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts +2 -0
  17. package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts.map +1 -1
  18. package/package.json +1 -1
@@ -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"),t=require("../../icons/CognitiveDecision.js");exports.CustomChatCrRedirection=function(o){var r=o.mode,d=o.msg,c=o.type,u=o.id,g=o.aiReason,v=o.text,_=o.headerText,f=o.decisionStrength;o.statusUi,o.panelRef;var p=o.onHandleSend,x=o.onRedirectClick,h=o.gapType,m=o.isGenerating,j=void 0!==m&&m,y=o.customStyles,C=o.customIcons,b=n.useState(!1),N=b[0],D=b[1];console.log("testing::reasoning",g);var S=(null==C?void 0:C.highConfidence)||i.jsx(t.default,{}),I=function(){"cra"===r?null==p||p("Discuss ambiguities on ".concat(v)):null==p||p("Deep Dive into ".concat(h," ").concat(_,": ").concat(v))};return console.log("testing::aiReasoning",g),i.jsxs("div",e.__assign({className:[a.default.outerWrapper,j?a.default.outerWrapperDisabled:""].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionOuterWrapper),j?null==y?void 0:y.redirectionOuterWrapperDisabled:{})},{children:[i.jsxs("div",e.__assign({className:[a.default.card,j?a.default.cardDisabled:a.default.cardInteractive].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionCard),j?null==y?void 0:y.redirectionCardDisabled:null==y?void 0:y.redirectionCardInteractive)},{children:[i.jsxs("div",e.__assign({className:a.default.leftSide,style:null==y?void 0:y.redirectionLeftSide},{children:[i.jsxs("span",e.__assign({className:a.default.textBlock,style:null==y?void 0:y.redirectionTextBlock},{children:[_&&i.jsxs("span",e.__assign({className:a.default.headerText,style:null==y?void 0:y.redirectionHeaderText},{children:[_,v?" ":""]})),v]})),i.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),j||D(!N)},className:[a.default.reasoningToggle,j?a.default.reasoningToggleDisabled:a.default.reasoningToggleActive].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.reasoningToggle),j?null==y?void 0:y.reasoningToggleDisabled:null==y?void 0:y.reasoningToggleActive)},{children:[S,N?i.jsx(s.ChevronUp,{className:a.default.chevronIcon,style:null==y?void 0:y.chevronIcon}):i.jsx(s.ChevronDown,{className:a.default.chevronIcon,style:null==y?void 0:y.chevronIcon})]}))]})),"risk-gap"===r&&i.jsxs("div",e.__assign({className:a.default.rightSide,style:null==y?void 0:y.redirectionRightSide},{children:[i.jsx("button",e.__assign({disabled:j,className:[a.default.fixButton,j?a.default.fixButtonDisabled:""].join(" "),style:e.__assign(e.__assign({},null==y?void 0:y.redirectionFixButton),j?null==y?void 0:y.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),j||I()}},{children:"Fix"})),i.jsx(s.SquareArrowOutUpRight,{onClick:j?void 0:function(){j||null==x||x({type:c,id:u,aiReason:g,msg:d,meta:{headerText:_,decisionStrength:f,text:v}})},size:18,className:[j?a.default.redirectIconDisabled:a.default.redirectIcon].join(" "),style:e.__assign({},j?null==y?void 0:y.redirectIconDisabled:null==y?void 0:y.redirectIcon)})]})),"cra"===r&&i.jsx("div",e.__assign({className:a.default.rightSide,style:null==y?void 0:y.redirectionRightSide},{children:j?i.jsx("div",e.__assign({className:a.default.loaderWrapper,style:null==y?void 0:y.loaderWrapper},{children:i.jsx(s.Loader2,{size:16,className:a.default.loaderIcon,style:e.__assign({animation:"spin 1s linear infinite"},null==y?void 0:y.loaderIcon)})})):i.jsx("button",e.__assign({className:[a.default.clarifyButton].join(" "),style:null==y?void 0:y.redirectionClarifyButton,onClick:function(e){e.stopPropagation(),I()}},{children:"Clarify"}))}))]})),N&&i.jsx(l.default,{aiReason:{id:"1",reason:g.Reasoning||"",gap:g.Gap||"",relevance_score:Number(g.Confidence_score),explanation:g.explanation||""},onSelectProceed:I,customStyles:null==y?void 0:y.aiReasoningStyles,customIcons:C})]}))};
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})]}))};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.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 o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".CustomChatCrRedirection-module_outerWrapper__-8Du6{display:flex;flex-direction:column;gap:8px;width:100%}.CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH{cursor:not-allowed}.CustomChatCrRedirection-module_card__S2b3w{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:inline-flex;padding:8px 16px;width:100%}.CustomChatCrRedirection-module_cardInteractive__u-azG{cursor:pointer}.CustomChatCrRedirection-module_cardInteractive__u-azG:hover{background-color:#f9fafb}.CustomChatCrRedirection-module_cardDisabled__mc0Mk{cursor:default;opacity:.75}.CustomChatCrRedirection-module_leftSide__tYQAv{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;min-width:0}.CustomChatCrRedirection-module_textBlock__eUNwE{color:#1f2937;display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CustomChatCrRedirection-module_headerText__kswTw{color:#000;font-weight:700}.CustomChatCrRedirection-module_reasoningToggle__wm3EY{align-items:baseline;display:flex;flex-direction:row}.CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX{cursor:pointer}.CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_chevronIcon__tVy1m{height:16px;width:16px}.CustomChatCrRedirection-module_rightSide__JEdzU{align-items:center;display:flex;flex-shrink:0;gap:12px;margin-left:16px}.CustomChatCrRedirection-module_fixButton__Sr1BF{background-color:#5925dc;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:12px;font-weight:600;padding:4px 12px;transition:transform .1s ease}.CustomChatCrRedirection-module_clarifyButton__WZMnl{background-color:initial;border:none;color:#5925dc;cursor:pointer;font-size:14px;font-weight:400}.CustomChatCrRedirection-module_fixButton__Sr1BF:active:not(:disabled){transform:scale(.95)}.CustomChatCrRedirection-module_fixButtonDisabled__0RGvi{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_redirectIcon__ed7yQ{color:#4f46e5;cursor:pointer}.CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q{color:#d1d5db}.CustomChatCrRedirection-module_loaderWrapper__Go-1p{align-items:center;display:flex;justify-content:center;min-width:60px}.CustomChatCrRedirection-module_loaderIcon__csc6N{animation:CustomChatCrRedirection-module_spin__KWEdL 1s linear infinite!important;color:#5925dc}@keyframes CustomChatCrRedirection-module_spin__KWEdL{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}(),exports.default={outerWrapper:"CustomChatCrRedirection-module_outerWrapper__-8Du6",outerWrapperDisabled:"CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH",card:"CustomChatCrRedirection-module_card__S2b3w",cardInteractive:"CustomChatCrRedirection-module_cardInteractive__u-azG",cardDisabled:"CustomChatCrRedirection-module_cardDisabled__mc0Mk",leftSide:"CustomChatCrRedirection-module_leftSide__tYQAv",textBlock:"CustomChatCrRedirection-module_textBlock__eUNwE",headerText:"CustomChatCrRedirection-module_headerText__kswTw",reasoningToggle:"CustomChatCrRedirection-module_reasoningToggle__wm3EY",reasoningToggleActive:"CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX",reasoningToggleDisabled:"CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5",chevronIcon:"CustomChatCrRedirection-module_chevronIcon__tVy1m",rightSide:"CustomChatCrRedirection-module_rightSide__JEdzU",fixButton:"CustomChatCrRedirection-module_fixButton__Sr1BF",clarifyButton:"CustomChatCrRedirection-module_clarifyButton__WZMnl",fixButtonDisabled:"CustomChatCrRedirection-module_fixButtonDisabled__0RGvi",redirectIcon:"CustomChatCrRedirection-module_redirectIcon__ed7yQ",redirectIconDisabled:"CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q",loaderWrapper:"CustomChatCrRedirection-module_loaderWrapper__Go-1p",loaderIcon:"CustomChatCrRedirection-module_loaderIcon__csc6N",spin:"CustomChatCrRedirection-module_spin__KWEdL"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".CustomChatCrRedirection-module_outerWrapper__-8Du6{display:flex;flex-direction:column;gap:8px;width:100%}.CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH{cursor:not-allowed}.CustomChatCrRedirection-module_card__S2b3w{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:inline-flex;padding:8px 16px;width:100%}.CustomChatCrRedirection-module_cardInteractive__u-azG{cursor:pointer}.CustomChatCrRedirection-module_cardInteractive__u-azG:hover{background-color:#f9fafb}.CustomChatCrRedirection-module_cardDisabled__mc0Mk{cursor:default;opacity:.75}.CustomChatCrRedirection-module_leftSide__tYQAv{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;min-width:0}.CustomChatCrRedirection-module_textBlock__eUNwE{color:#1f2937;display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CustomChatCrRedirection-module_headerText__kswTw{color:#000;font-weight:700}.CustomChatCrRedirection-module_reasoningToggle__wm3EY{align-items:baseline;display:flex;flex-direction:row}.CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX{cursor:pointer}.CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_chevronIcon__tVy1m{height:16px;width:16px}.CustomChatCrRedirection-module_rightSide__JEdzU{align-items:center;display:flex;flex-shrink:0;gap:12px;margin-left:16px}.CustomChatCrRedirection-module_fixButton__Sr1BF{background-color:#5925dc;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:12px;font-weight:600;padding:4px 12px;transition:transform .1s ease}.CustomChatCrRedirection-module_clarifyButton__WZMnl{background-color:initial;border:none;color:#5925dc;cursor:pointer;font-size:14px;font-weight:400}.CustomChatCrRedirection-module_fixButton__Sr1BF:active:not(:disabled){transform:scale(.95)}.CustomChatCrRedirection-module_fixButtonDisabled__0RGvi{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_redirectIcon__ed7yQ{color:#4f46e5;cursor:pointer}.CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q{color:#d1d5db}.CustomChatCrRedirection-module_loaderWrapper__Go-1p{align-items:center;display:flex;justify-content:center;min-width:60px}.CustomChatCrRedirection-module_loaderIcon__csc6N{animation:CustomChatCrRedirection-module_spin__KWEdL 1s linear infinite!important;color:#5925dc}@keyframes CustomChatCrRedirection-module_spin__KWEdL{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.CustomChatCrRedirection-module_completeTickWrapper__yAD-Q{margin-right:5px}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={outerWrapper:"CustomChatCrRedirection-module_outerWrapper__-8Du6",outerWrapperDisabled:"CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH",card:"CustomChatCrRedirection-module_card__S2b3w",cardInteractive:"CustomChatCrRedirection-module_cardInteractive__u-azG",cardDisabled:"CustomChatCrRedirection-module_cardDisabled__mc0Mk",leftSide:"CustomChatCrRedirection-module_leftSide__tYQAv",textBlock:"CustomChatCrRedirection-module_textBlock__eUNwE",headerText:"CustomChatCrRedirection-module_headerText__kswTw",reasoningToggle:"CustomChatCrRedirection-module_reasoningToggle__wm3EY",reasoningToggleActive:"CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX",reasoningToggleDisabled:"CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5",chevronIcon:"CustomChatCrRedirection-module_chevronIcon__tVy1m",rightSide:"CustomChatCrRedirection-module_rightSide__JEdzU",fixButton:"CustomChatCrRedirection-module_fixButton__Sr1BF",clarifyButton:"CustomChatCrRedirection-module_clarifyButton__WZMnl",fixButtonDisabled:"CustomChatCrRedirection-module_fixButtonDisabled__0RGvi",redirectIcon:"CustomChatCrRedirection-module_redirectIcon__ed7yQ",redirectIconDisabled:"CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q",loaderWrapper:"CustomChatCrRedirection-module_loaderWrapper__Go-1p",loaderIcon:"CustomChatCrRedirection-module_loaderIcon__csc6N",spin:"CustomChatCrRedirection-module_spin__KWEdL",completeTickWrapper:"CustomChatCrRedirection-module_completeTickWrapper__yAD-Q"};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.module.css.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"),n=require("lodash"),o=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,n,o=t.props,i=o.children,a=e.__rest(o,["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"];return{text:i,headerText:a.headertext,tags:a.tags,dataAttrs:s,decisionStrength:u,attrs:l,type:"gapfilteritem"===t.type?"gapfilteritem":"crredirection",score:a.score,pendingCount:a.pendingcount,question:a.question,components:a.components,showFix:null!==(r=a.showfix)&&void 0!==r&&r,showRedirect:null!==(n=a.showredirect)&&void 0!==n&&n}})}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.mode;p.node;var f=p.children,v=p.type,b=p.supportedmodes,C=void 0===b?"":b,y=p["decision-strength"],h=void 0===y?"":y,x=p.pendingdata,S=void 0===x?"":x,I=p.isGeneratingGap,j=void 0!==I&&I,k=p.selectedGapItemId,_=void 0===k?"":k,F=p.onItemSelect,R=p.onHandleSend,A=p.onModeAction,B=p.msg,G=p.panelRef,T=p.getAccordionState,q=p.setAccordionState,w=p.registerGapFilterBlockCount,N=p.getShowGapReviewButtonType,E=p.customStyles,W=p.customIcons,D=v,z=s(h),M=r.useState(function(){var e,t=null!==(e=null==T?void 0:T(D))&&void 0!==e?e:"";return"critical"!==D||t?t:D}),U=M[0],H=M[1],O=function(e){H(e),null==q||q(D,e)},L=u(f),J=r.useMemo(function(){return L.reduce(function(e,t){var r,n,o,i=null!==(r=t.tags)&&void 0!==r?r:"Uncategorized",a=null!==(o=null===(n=t.dataAttrs)||void 0===n?void 0:n.categoryid)&&void 0!==o?o:"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},[])},[L]),P={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:t.jsx(l.SirenIcon,{}),label:"risk-gap"===m?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:t.jsx(l.WarningIcon,{}),label:"risk-gap"===m?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:t.jsx(l.SupportIcon,{}),label:"risk-gap"===m?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:t.jsx(l.SupportIcon,{}),label:"",decisionStrength:""}},V=r.useMemo(function(){return e=D,d.includes(e)?{labelColor:P[D].labelColor,badgeBackgroundColor:P[D].badgeBackgroundColor,badgeTextColor:P[D].badgeTextColor,label:P[D].label,decisionStrength:z||P[D].decisionStrength}:{labelColor:P.default.labelColor,badgeBackgroundColor:P.default.badgeBackgroundColor,badgeTextColor:P.default.badgeTextColor,label:n.capitalize(D),decisionStrength:z||""};var e},[D,z]);r.useEffect(function(){null==w||w(D,L.length)},[D,L.length,w]);var $=function(t,r,n){if(void 0===n&&(n={}),!j){var o="".concat(J[t].categoryId,"-").concat(r);null==F||F(o);var i=e.__assign(e.__assign({},J[t].items[r].dataAttrs),n);null==A||A(C,i)}};return N&&N(),t.jsx(o.GapFilterContentWrapper,e.__assign({mode:m,type:D,config:V,count:L.length,handleReviewClick:function(){L.length>0&&O(D)},openAccordion:U,onAccordionChange:function(e){O(U===e?"":e)},shouldShowReviewButton:!1,pendingData:S,customStyles:E},{children:J.map(function(r,n){return t.jsxs("div",e.__assign({className:c.default.categoryGroup,style:null==E?void 0:E.categoryGroup},{children:["gapfilteritem"===r.type&&"Uncategorized"!==r.categoryName&&t.jsx("p",e.__assign({className:c.default.categoryLabel,style:null==E?void 0:E.categoryLabel},{children:r.categoryName})),r.items.map(function(o,l){var d,s,u,p,f=o.attrs||{},v=null===(d=o.dataAttrs)||void 0===d?void 0:d["cognitive-reasoning"],b=f.id||(null===(s=o.dataAttrs)||void 0===s?void 0:s.id)||"",C="I"===b[0]?"UI_REF":"CHAT_REF",y=null===(u=null==B?void 0:B.contextAwareAgentReasoning)||void 0===u?void 0:u[v];return"gapfilteritem"===o.type?t.jsx("div",e.__assign({className:[c.default.gapFilterItemWrapper,"Uncategorized"!==r.categoryName?c.default.gapFilterItemWrapperIndented:""].join(" "),style:null==E?void 0:E.blockContainer},{children:t.jsx(i.GapFilterItem,{mode:m,index:l,isSelected:_==="".concat(r.categoryId,"-").concat(l),onClick:function(){return $(n,l)},onFixClick:function(){return $(n,l,{triggerFrom:"fix"})},onRedirect:function(){return $(n,l,{triggerFrom:"redirect"})},item:o,isGenerating:j,aiReason:y,panelRef:null!=G?G:{current:null},id:v,customStyles:E,customIcons:W})}),l):(console.log("testing::reasoningId",o.type),t.jsx("div",e.__assign({className:c.default.crRedirectionGroup,style:null==E?void 0:E.crRedirectionGroup},{children:t.jsx("div",e.__assign({className:c.default.crRedirectionInner,style:null==E?void 0:E.crRedirectionInner},{children:t.jsx(a.CustomChatCrRedirection,{mode:m,msg:B,type:C,text:o.text,headerText:o.headerText,decisionStrength:o.decisionStrength,id:b,gapType:D,onHandleSend:R,isGenerating:j,aiReason:y,statusUi:null!==(p=g[D])&&void 0!==p?p:g.recommendation,panelRef:null!=G?G:{current:null},customStyles:E,customIcons:W})}))}),l))})]}),"".concat(r.categoryName,"-").concat(n))})}))},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.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;
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"),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){c.mode;var d=c.index,u=c.isSelected,m=c.onClick,g=c.item,f=c.onFixClick,_=c.onRedirect,v=c.aiReason;c.panelRef;var p=c.id,x=c.isGenerating,h=void 0!==x&&x,j=c.customStyles,N=c.customIcons,y=t.useState(!1),C=y[0],R=y[1],S=(null==N?void 0:N.highConfidence)||s.jsx(l.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 ",d+1,"."]}))," ",g.text]})),p&&s.jsxs("span",e.__assign({onClick:function(e){e.stopPropagation(),h||R(!C)},className:[n.default.reasoningToggle,h?n.default.reasoningToggleDisabled:n.default.reasoningToggleActive].join(" "),style:null==j?void 0:j.itemReasoningToggle},{children:[S,C?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})]}))]}))]})),C&&s.jsx(a.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"),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;
2
2
  //# sourceMappingURL=GapFilterItem.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as i,jsxs as n}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronUp as l,ChevronDown as t,SquareArrowOutUpRight as r,Loader2 as a}from"lucide-react";import s from"./CustomChatCrRedirection.module.css.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import d from"../../icons/CognitiveDecision.js";function u(u){var g=u.mode,v=u.msg,m=u.type,p=u.id,f=u.aiReason,h=u.text,y=u.headerText,C=u.decisionStrength;u.statusUi,u.panelRef;var x=u.onHandleSend,b=u.onRedirectClick,N=u.gapType,D=u.isGenerating,S=void 0!==D&&D,I=u.customStyles,R=u.customIcons,T=o(!1),j=T[0],k=T[1];console.log("testing::reasoning",f);var B=(null==R?void 0:R.highConfidence)||i(d,{}),W=function(){"cra"===g?null==x||x("Discuss ambiguities on ".concat(h)):null==x||x("Deep Dive into ".concat(N," ").concat(y,": ").concat(h))};return console.log("testing::aiReasoning",f),n("div",e({className:[s.outerWrapper,S?s.outerWrapperDisabled:""].join(" "),style:e(e({},null==I?void 0:I.redirectionOuterWrapper),S?null==I?void 0:I.redirectionOuterWrapperDisabled:{})},{children:[n("div",e({className:[s.card,S?s.cardDisabled:s.cardInteractive].join(" "),style:e(e({},null==I?void 0:I.redirectionCard),S?null==I?void 0:I.redirectionCardDisabled:null==I?void 0:I.redirectionCardInteractive)},{children:[n("div",e({className:s.leftSide,style:null==I?void 0:I.redirectionLeftSide},{children:[n("span",e({className:s.textBlock,style:null==I?void 0:I.redirectionTextBlock},{children:[y&&n("span",e({className:s.headerText,style:null==I?void 0:I.redirectionHeaderText},{children:[y,h?" ":""]})),h]})),n("span",e({onClick:function(e){e.stopPropagation(),S||k(!j)},className:[s.reasoningToggle,S?s.reasoningToggleDisabled:s.reasoningToggleActive].join(" "),style:e(e({},null==I?void 0:I.reasoningToggle),S?null==I?void 0:I.reasoningToggleDisabled:null==I?void 0:I.reasoningToggleActive)},{children:[B,i(j?l:t,{className:s.chevronIcon,style:null==I?void 0:I.chevronIcon})]}))]})),"risk-gap"===g&&n("div",e({className:s.rightSide,style:null==I?void 0:I.redirectionRightSide},{children:[i("button",e({disabled:S,className:[s.fixButton,S?s.fixButtonDisabled:""].join(" "),style:e(e({},null==I?void 0:I.redirectionFixButton),S?null==I?void 0:I.fixButtonDisabled:{}),onClick:function(e){e.stopPropagation(),S||W()}},{children:"Fix"})),i(r,{onClick:S?void 0:function(){S||null==b||b({type:m,id:p,aiReason:f,msg:v,meta:{headerText:y,decisionStrength:C,text:h}})},size:18,className:[S?s.redirectIconDisabled:s.redirectIcon].join(" "),style:e({},S?null==I?void 0:I.redirectIconDisabled:null==I?void 0:I.redirectIcon)})]})),"cra"===g&&i("div",e({className:s.rightSide,style:null==I?void 0:I.redirectionRightSide},{children:S?i("div",e({className:s.loaderWrapper,style:null==I?void 0:I.loaderWrapper},{children:i(a,{size:16,className:s.loaderIcon,style:e({animation:"spin 1s linear infinite"},null==I?void 0:I.loaderIcon)})})):i("button",e({className:[s.clarifyButton].join(" "),style:null==I?void 0:I.redirectionClarifyButton,onClick:function(e){e.stopPropagation(),W()}},{children:"Clarify"}))}))]})),j&&i(c,{aiReason:{id:"1",reason:f.Reasoning||"",gap:f.Gap||"",relevance_score:Number(f.Confidence_score),explanation:f.explanation||""},onSelectProceed:W,customStyles:null==I?void 0:I.aiReasoningStyles,customIcons:R})]}))}export{u as CustomChatCrRedirection};
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};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.js.map
@@ -1,2 +1,2 @@
1
- var e={outerWrapper:"CustomChatCrRedirection-module_outerWrapper__-8Du6",outerWrapperDisabled:"CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH",card:"CustomChatCrRedirection-module_card__S2b3w",cardInteractive:"CustomChatCrRedirection-module_cardInteractive__u-azG",cardDisabled:"CustomChatCrRedirection-module_cardDisabled__mc0Mk",leftSide:"CustomChatCrRedirection-module_leftSide__tYQAv",textBlock:"CustomChatCrRedirection-module_textBlock__eUNwE",headerText:"CustomChatCrRedirection-module_headerText__kswTw",reasoningToggle:"CustomChatCrRedirection-module_reasoningToggle__wm3EY",reasoningToggleActive:"CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX",reasoningToggleDisabled:"CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5",chevronIcon:"CustomChatCrRedirection-module_chevronIcon__tVy1m",rightSide:"CustomChatCrRedirection-module_rightSide__JEdzU",fixButton:"CustomChatCrRedirection-module_fixButton__Sr1BF",clarifyButton:"CustomChatCrRedirection-module_clarifyButton__WZMnl",fixButtonDisabled:"CustomChatCrRedirection-module_fixButtonDisabled__0RGvi",redirectIcon:"CustomChatCrRedirection-module_redirectIcon__ed7yQ",redirectIconDisabled:"CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q",loaderWrapper:"CustomChatCrRedirection-module_loaderWrapper__Go-1p",loaderIcon:"CustomChatCrRedirection-module_loaderIcon__csc6N",spin:"CustomChatCrRedirection-module_spin__KWEdL"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".CustomChatCrRedirection-module_outerWrapper__-8Du6{display:flex;flex-direction:column;gap:8px;width:100%}.CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH{cursor:not-allowed}.CustomChatCrRedirection-module_card__S2b3w{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:inline-flex;padding:8px 16px;width:100%}.CustomChatCrRedirection-module_cardInteractive__u-azG{cursor:pointer}.CustomChatCrRedirection-module_cardInteractive__u-azG:hover{background-color:#f9fafb}.CustomChatCrRedirection-module_cardDisabled__mc0Mk{cursor:default;opacity:.75}.CustomChatCrRedirection-module_leftSide__tYQAv{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;min-width:0}.CustomChatCrRedirection-module_textBlock__eUNwE{color:#1f2937;display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CustomChatCrRedirection-module_headerText__kswTw{color:#000;font-weight:700}.CustomChatCrRedirection-module_reasoningToggle__wm3EY{align-items:baseline;display:flex;flex-direction:row}.CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX{cursor:pointer}.CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_chevronIcon__tVy1m{height:16px;width:16px}.CustomChatCrRedirection-module_rightSide__JEdzU{align-items:center;display:flex;flex-shrink:0;gap:12px;margin-left:16px}.CustomChatCrRedirection-module_fixButton__Sr1BF{background-color:#5925dc;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:12px;font-weight:600;padding:4px 12px;transition:transform .1s ease}.CustomChatCrRedirection-module_clarifyButton__WZMnl{background-color:initial;border:none;color:#5925dc;cursor:pointer;font-size:14px;font-weight:400}.CustomChatCrRedirection-module_fixButton__Sr1BF:active:not(:disabled){transform:scale(.95)}.CustomChatCrRedirection-module_fixButtonDisabled__0RGvi{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_redirectIcon__ed7yQ{color:#4f46e5;cursor:pointer}.CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q{color:#d1d5db}.CustomChatCrRedirection-module_loaderWrapper__Go-1p{align-items:center;display:flex;justify-content:center;min-width:60px}.CustomChatCrRedirection-module_loaderIcon__csc6N{animation:CustomChatCrRedirection-module_spin__KWEdL 1s linear infinite!important;color:#5925dc}@keyframes CustomChatCrRedirection-module_spin__KWEdL{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
1
+ var e={outerWrapper:"CustomChatCrRedirection-module_outerWrapper__-8Du6",outerWrapperDisabled:"CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH",card:"CustomChatCrRedirection-module_card__S2b3w",cardInteractive:"CustomChatCrRedirection-module_cardInteractive__u-azG",cardDisabled:"CustomChatCrRedirection-module_cardDisabled__mc0Mk",leftSide:"CustomChatCrRedirection-module_leftSide__tYQAv",textBlock:"CustomChatCrRedirection-module_textBlock__eUNwE",headerText:"CustomChatCrRedirection-module_headerText__kswTw",reasoningToggle:"CustomChatCrRedirection-module_reasoningToggle__wm3EY",reasoningToggleActive:"CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX",reasoningToggleDisabled:"CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5",chevronIcon:"CustomChatCrRedirection-module_chevronIcon__tVy1m",rightSide:"CustomChatCrRedirection-module_rightSide__JEdzU",fixButton:"CustomChatCrRedirection-module_fixButton__Sr1BF",clarifyButton:"CustomChatCrRedirection-module_clarifyButton__WZMnl",fixButtonDisabled:"CustomChatCrRedirection-module_fixButtonDisabled__0RGvi",redirectIcon:"CustomChatCrRedirection-module_redirectIcon__ed7yQ",redirectIconDisabled:"CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q",loaderWrapper:"CustomChatCrRedirection-module_loaderWrapper__Go-1p",loaderIcon:"CustomChatCrRedirection-module_loaderIcon__csc6N",spin:"CustomChatCrRedirection-module_spin__KWEdL",completeTickWrapper:"CustomChatCrRedirection-module_completeTickWrapper__yAD-Q"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".CustomChatCrRedirection-module_outerWrapper__-8Du6{display:flex;flex-direction:column;gap:8px;width:100%}.CustomChatCrRedirection-module_outerWrapperDisabled__AnMuH{cursor:not-allowed}.CustomChatCrRedirection-module_card__S2b3w{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:12px;display:inline-flex;padding:8px 16px;width:100%}.CustomChatCrRedirection-module_cardInteractive__u-azG{cursor:pointer}.CustomChatCrRedirection-module_cardInteractive__u-azG:hover{background-color:#f9fafb}.CustomChatCrRedirection-module_cardDisabled__mc0Mk{cursor:default;opacity:.75}.CustomChatCrRedirection-module_leftSide__tYQAv{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:8px;min-width:0}.CustomChatCrRedirection-module_textBlock__eUNwE{color:#1f2937;display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CustomChatCrRedirection-module_headerText__kswTw{color:#000;font-weight:700}.CustomChatCrRedirection-module_reasoningToggle__wm3EY{align-items:baseline;display:flex;flex-direction:row}.CustomChatCrRedirection-module_reasoningToggleActive__Ci4dX{cursor:pointer}.CustomChatCrRedirection-module_reasoningToggleDisabled__c8yt5{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_chevronIcon__tVy1m{height:16px;width:16px}.CustomChatCrRedirection-module_rightSide__JEdzU{align-items:center;display:flex;flex-shrink:0;gap:12px;margin-left:16px}.CustomChatCrRedirection-module_fixButton__Sr1BF{background-color:#5925dc;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:12px;font-weight:600;padding:4px 12px;transition:transform .1s ease}.CustomChatCrRedirection-module_clarifyButton__WZMnl{background-color:initial;border:none;color:#5925dc;cursor:pointer;font-size:14px;font-weight:400}.CustomChatCrRedirection-module_fixButton__Sr1BF:active:not(:disabled){transform:scale(.95)}.CustomChatCrRedirection-module_fixButtonDisabled__0RGvi{cursor:not-allowed;opacity:.4}.CustomChatCrRedirection-module_redirectIcon__ed7yQ{color:#4f46e5;cursor:pointer}.CustomChatCrRedirection-module_redirectIconDisabled__Gre-Q{color:#d1d5db}.CustomChatCrRedirection-module_loaderWrapper__Go-1p{align-items:center;display:flex;justify-content:center;min-width:60px}.CustomChatCrRedirection-module_loaderIcon__csc6N{animation:CustomChatCrRedirection-module_spin__KWEdL 1s linear infinite!important;color:#5925dc}@keyframes CustomChatCrRedirection-module_spin__KWEdL{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.CustomChatCrRedirection-module_completeTickWrapper__yAD-Q{margin-right:5px}"));const t=document.head||document.getElementsByTagName("head")[0]||document.documentElement;t&&t.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=CustomChatCrRedirection.module.css.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 g}from"./GapFilterContentWrapper.js";import{GapFilterItem as s}from"./GapFilterItem.js";import{CustomChatCrRedirection as u}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 y(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function h(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,g=(c=a,d={},Object.keys(c).forEach(function(e){e.startsWith("data-")&&(d[e.replace(/^data-/,"")]=c[e])}),d),s=a["decision-strength"];return{text:i,headerText:a.headertext,tags:a.tags,dataAttrs:g,decisionStrength:s,attrs:l,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:a.score,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 C={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.mode;t.node;var c=t.children,x=t.type,S=t.supportedmodes,k=void 0===S?"":S,I=t["decision-strength"],R=void 0===I?"":I,A=t.pendingdata,F=void 0===A?"":A,B=t.isGeneratingGap,T=void 0!==B&&B,w=t.selectedGapItemId,G=void 0===w?"":w,N=t.onItemSelect,j=t.onHandleSend,E=t.onModeAction,W=t.msg,D=t.panelRef,U=t.getAccordionState,q=t.setAccordionState,z=t.registerGapFilterBlockCount,H=t.getShowGapReviewButtonType,L=t.customStyles,M=t.customIcons,O=x,_=y(R),J=n(function(){var e,t=null!==(e=null==U?void 0:U(O))&&void 0!==e?e:"";return"critical"!==O||t?t:O}),$=J[0],K=J[1],P=function(e){K(e),null==q||q(O,e)},Q=h(c),V=i(function(){return Q.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},[])},[Q]),X={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:o(p,{}),label:"risk-gap"===l?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:o(m,{}),label:"risk-gap"===l?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:o(f,{}),label:"risk-gap"===l?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:o(f,{}),label:"",decisionStrength:""}},Y=i(function(){return e=O,v.includes(e)?{labelColor:X[O].labelColor,badgeBackgroundColor:X[O].badgeBackgroundColor,badgeTextColor:X[O].badgeTextColor,label:X[O].label,decisionStrength:_||X[O].decisionStrength}:{labelColor:X.default.labelColor,badgeBackgroundColor:X.default.badgeBackgroundColor,badgeTextColor:X.default.badgeTextColor,label:d(O),decisionStrength:_||""};var e},[O,_]);a(function(){null==z||z(O,Q.length)},[O,Q.length,z]);var Z=function(t,o,r){if(void 0===r&&(r={}),!T){var n="".concat(V[t].categoryId,"-").concat(o);null==N||N(n);var i=e(e({},V[t].items[o].dataAttrs),r);null==E||E(k,i)}};return H&&H(),o(g,e({mode:l,type:O,config:Y,count:Q.length,handleReviewClick:function(){Q.length>0&&P(O)},openAccordion:$,onAccordionChange:function(e){P($===e?"":e)},shouldShowReviewButton:!1,pendingData:F,customStyles:L},{children:V.map(function(t,n){return r("div",e({className:b.categoryGroup,style:null==L?void 0:L.categoryGroup},{children:["gapfilteritem"===t.type&&"Uncategorized"!==t.categoryName&&o("p",e({className:b.categoryLabel,style:null==L?void 0:L.categoryLabel},{children:t.categoryName})),t.items.map(function(r,i){var a,c,d,g,p=r.attrs||{},m=null===(a=r.dataAttrs)||void 0===a?void 0:a["cognitive-reasoning"],f=p.id||(null===(c=r.dataAttrs)||void 0===c?void 0:c.id)||"",v="I"===f[0]?"UI_REF":"CHAT_REF",y=null===(d=null==W?void 0:W.contextAwareAgentReasoning)||void 0===d?void 0:d[m];return"gapfilteritem"===r.type?o("div",e({className:[b.gapFilterItemWrapper,"Uncategorized"!==t.categoryName?b.gapFilterItemWrapperIndented:""].join(" "),style:null==L?void 0:L.blockContainer},{children:o(s,{mode:l,index:i,isSelected:G==="".concat(t.categoryId,"-").concat(i),onClick:function(){return Z(n,i)},onFixClick:function(){return Z(n,i,{triggerFrom:"fix"})},onRedirect:function(){return Z(n,i,{triggerFrom:"redirect"})},item:r,isGenerating:T,aiReason:y,panelRef:null!=D?D:{current:null},id:m,customStyles:L,customIcons:M})}),i):(console.log("testing::reasoningId",r.type),o("div",e({className:b.crRedirectionGroup,style:null==L?void 0:L.crRedirectionGroup},{children:o("div",e({className:b.crRedirectionInner,style:null==L?void 0:L.crRedirectionInner},{children:o(u,{mode:l,msg:W,type:v,text:r.text,headerText:r.headerText,decisionStrength:r.decisionStrength,id:f,gapType:O,onHandleSend:j,isGenerating:T,aiReason:y,statusUi:null!==(g=C[O])&&void 0!==g?g:C.recommendation,panelRef:null!=D?D:{current:null},customStyles:L,customIcons:M})}))}),i))})]}),"".concat(t.categoryName,"-").concat(n))})}))};export{x as GapFilterBlock,y 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 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};
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 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){p.mode;var v=p.index,g=p.isSelected,f=p.onClick,x=p.item,h=p.onFixClick,N=p.onRedirect,R=p.aiReason;p.panelRef;var y=p.id,C=p.isGenerating,T=void 0!==C&&C,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(n,{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]})),y&&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?t:l,{className:c.chevronIcon,style:null==b?void 0:b.chevronIcon})]}))]}))]})),B&&o(d,{aiReason:{id:"1",reason:R.Reasoning||"",gap:R.Gap||"",relevance_score:Number(R.Confidence_score),explanation:R.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 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};
2
2
  //# sourceMappingURL=GapFilterItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA4BA,QAAA,MAAM,iBAAiB,+CAszDtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA4BA,QAAA,MAAM,iBAAiB,+CAwzDtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -21,11 +21,13 @@ export interface InlineRefIconProps {
21
21
  mode: "cra" | "risk-gap";
22
22
  }
23
23
  interface CustomChatCrRedirectionProps extends InlineRefIconProps {
24
+ processItemId?: string;
25
+ isCompleted: boolean;
24
26
  statusUi: {
25
27
  badgeBg: string;
26
28
  badgeText: string;
27
29
  };
28
- onHandleSend?: (userMessage: string) => void;
30
+ onHandleSend?: (userMessage: string, id?: string) => void;
29
31
  gapType?: string;
30
32
  isGenerating?: boolean;
31
33
  customStyles?: GapFilterStyles;
@@ -47,6 +49,6 @@ interface CustomChatCrRedirectionProps extends InlineRefIconProps {
47
49
  };
48
50
  }) => void;
49
51
  }
50
- export declare function CustomChatCrRedirection({ mode, msg, type, id, aiReason, text, headerText, decisionStrength, statusUi, panelRef, onHandleSend, onRedirectClick, gapType, isGenerating, customStyles, customIcons }: CustomChatCrRedirectionProps): import("react/jsx-runtime").JSX.Element;
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;
51
53
  export {};
52
54
  //# 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,C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,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,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,2CA6K9B"}
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"}
@@ -14,6 +14,7 @@ export interface AIReasoningType {
14
14
  }
15
15
  export declare function normalizeDecisionStrength(raw: string): string;
16
16
  export interface GapFilterBlockProps {
17
+ processItemId?: string;
17
18
  mode: "cra" | "risk-gap";
18
19
  node?: any;
19
20
  children?: React.ReactNode;
@@ -44,6 +45,7 @@ export interface GapFilterMarkdownRendererProps {
44
45
  panelRef?: React.RefObject<any>;
45
46
  customStyles?: GapFilterStyles;
46
47
  customIcons?: UserStoryIcons;
48
+ processItemId?: string;
47
49
  }
48
50
  export declare const GapFilterMarkdownRenderer: React.FC<GapFilterMarkdownRendererProps>;
49
51
  //# sourceMappingURL=GapFilterBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAgB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO5E,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAC;AACtE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAQ5C,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAcD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI7D;AA6FD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;IACxB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,aAAa,CAAC;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,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAA;CAC7B;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAqH9E,CAAC"}
1
+ {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAgB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAO5E,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAC;AACtE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAQ5C,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAcD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI7D;AA+FD,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK,GAAG,UAAU,CAAA;IACxB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,cAAc,CAAC,EA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AAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAuH9E,CAAC"}
@@ -16,6 +16,7 @@ export interface IGapFilterItem {
16
16
  showRedirect?: boolean;
17
17
  }
18
18
  type GapFilterItemProps = {
19
+ isCompleted: true;
19
20
  mode: "cra" | "risk-gap";
20
21
  index: number;
21
22
  isSelected: boolean;
@@ -36,6 +37,6 @@ export declare const getScoreColorStyles: (score: number) => {
36
37
  color: string;
37
38
  className: string;
38
39
  };
39
- export declare const GapFilterItem: ({ mode, index, isSelected, onClick, item, onFixClick, onRedirect, aiReason, panelRef, id, isGenerating, customStyles, customIcons, }: GapFilterItemProps) => import("react/jsx-runtime").JSX.Element;
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;
40
41
  export {};
41
42
  //# 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,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,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,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;CAC9B,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,yIAcvB,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,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAKnE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAA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derWrapper?: React.CSSProperties;
79
+ completeTickWrapper?: React.CSSProperties;
80
+ checkColor?: string;
79
81
  }
80
82
  //# sourceMappingURL=gapFilterStyles.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gapFilterStyles.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/gapFilterStyles.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,WAAW,eAAe;IAG7B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAGpC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3C,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,0BAA0B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjD,6BAA6B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpD,4BAA4B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnD,mCAAmC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1D,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACxC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5C,oBAAoB,CAAC,EAAE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CAAC,aAAa,CAAC;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEnC,iBAAiB,CAAC,EAAG,uBAAuB,CAAA;IAE5C,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACtC"}
1
+ {"version":3,"file":"gapFilterStyles.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/gapFilterStyles.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,WAAW,eAAe;IAG7B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAGpC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3C,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,0BAA0B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjD,6BAA6B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpD,4BAA4B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnD,mCAAmC,CAAC,EAAE,KAAK,CAAC,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aAAa,CAAC;IACtC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEnC,iBAAiB,CAAC,EAAG,uBAAuB,CAAA;IAE5C,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEpC,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",