@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.
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.module.css.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +4 -2
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/types/gapFilterStyles.type.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js
CHANGED
|
@@ -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"),
|
|
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
|
|
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"),
|
|
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"),
|
|
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
|
|
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
|
package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.module.css.js
CHANGED
|
@@ -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
|
|
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
|
|
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,+
|
|
1
|
+
{"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA4BA,QAAA,MAAM,iBAAiB,+CAwzDtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts
CHANGED
|
@@ -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,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,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,
|
|
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
|
package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map
CHANGED
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components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edirect?: 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
|
package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.d.ts.map
CHANGED
|
@@ -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,
|
|
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,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;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,sJAevB,kBAAkB,4CAgJpB,CAAC"}
|
|
@@ -76,5 +76,7 @@ export interface GapFilterStyles {
|
|
|
76
76
|
aiReasoningStyles?: AiReasoningCustomStyles;
|
|
77
77
|
loaderIcon?: React.CSSProperties;
|
|
78
78
|
loaderWrapper?: 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,KAAK,CAAC,aAAa,CAAC;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BAAkB,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;
|
|
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,iBAAi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