@e-llm-studio/requirement-ai 0.0.218 → 0.0.219

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n=require("lucide-react"),s=require("react"),o=require("./ToneToggle.js");require("../CognitiveComponents/CitationComponent.module.css.js");var t=require("../icons/cognitiveBrain.svg.js"),l=require("../icons/aiMagic.svg.js"),a=require("@mui/material"),r=[{color:"#1D9E75",angle:-90,arcD:"M1 13 A10 10 0 0 1 1 13"},{color:"#BA7517",angle:0,arcD:"M1 13 A10 10 0 0 1 11 3"},{color:"#E24B4A",angle:90,arcD:"M1 13 A10 10 0 0 1 21 13"}],d=function(n){var s=n.toneIndex,o=n.configs,t=void 0===o?r:o,l=t[Math.min(s,t.length-1)]||t[1]||t[0],a=l.color,d=l.angle,c=l.arcD,g=(d-90)*Math.PI/180,p=11+9*Math.cos(g),x=13+9*Math.sin(g);return e.jsxs("svg",i.__assign({width:"22",height:"14",viewBox:"0 0 22 14",fill:"none"},{children:[e.jsx("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("path",{d:c,stroke:a,strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("line",{x1:"11",y1:"13",x2:p,y2:x,stroke:a,strokeWidth:"2",strokeLinecap:"round"})]}))},c=function(n){var s=n.type,o=n.customStyles,t=void 0===o?{}:o,l=i.__assign(i.__assign({},{High:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #FECACA",background:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:"500"},Medium:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #F2E5A1",background:"#FFFBEB",color:"#B45309",fontSize:"11px",fontWeight:"500"},Low:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #8098F9",background:"#DBEAFE",color:"#444CE7",fontSize:"11px",fontWeight:"500"}}),t),a=l[s]||l.Medium;return e.jsx("div",i.__assign({style:a},{children:s}))},g=["Lenient","Balanced","Aggressive"],p={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},x={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"450px",overflow:"auto"},v={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12,position:"relative"},_={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},u={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},h={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px",maxHeight:"100px",overflow:"auto"},f={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},m={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},y={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},j={display:"flex",gap:8,marginBottom:18},S={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:12,fontWeight:500,padding:"7px 4px",borderRadius:8,border:"0.5px solid #ccc",background:"#fff",cursor:"pointer"},b={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},C={borderTop:"0.5px solid #eee",padding:"14px 0px"},k={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},I={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},w={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},B={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},T={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},A={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},D={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},z={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"},E={padding:"4px",border:"1px solid #EBEBEB",position:"absolute",width:"100px",textAlign:"center",borderRadius:"9px",background:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",zIndex:1e3,top:"100%",right:0};function R(n){var s=n.onAssignClick,o=n.onOpenCognitive,t=n.cognitiveIconSmall,l=n.cognitiveTootipTitle,a="20px";return e.jsxs("div",i.__assign({style:i.__assign(i.__assign({},E),{minWidth:"200px"})},{children:[e.jsxs("div",i.__assign({style:{padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:s},{children:[e.jsx("span",i.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",width:a,height:a,flexShrink:0}},{children:e.jsxs("svg",i.__assign({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[e.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),e.jsx("path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}),e.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),e.jsx("circle",{cx:"9",cy:"7",r:"4"})]}))})),e.jsx("span",i.__assign({style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left"}},{children:"Assign"}))]})),o&&e.jsxs("div",i.__assign({style:{padding:"8px",borderTop:"1px solid #EBEBEB",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:function(i){return o(i)}},{children:[t&&e.jsx("span",i.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",width:a,height:a,flexShrink:0}},{children:t})),e.jsx("span",i.__assign({style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},{children:l}))]}))]}))}function W(n){var o=n.onAssignClick,t=n.onOpenCognitive,l=n.cognitiveIconSmall,a=n.cognitiveTootipTitle,r=s.useState(!1),d=r[0],c=r[1];return e.jsxs("div",i.__assign({style:{position:"relative",display:"flex"}},{children:[e.jsx("button",i.__assign({onClick:function(){return c(!d)},style:{border:"none",background:"transparent",display:"flex",alignItems:"center",cursor:"pointer",fontSize:"18px",padding:0}},{children:e.jsxs("svg",i.__assign({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#64748B",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[e.jsx("circle",{cx:"12",cy:"12",r:"1"}),e.jsx("circle",{cx:"12",cy:"5",r:"1"}),e.jsx("circle",{cx:"12",cy:"19",r:"1"})]}))})),d&&e.jsx(R,{onAssignClick:o?function(){c(!1),o&&o()}:void 0,onOpenCognitive:t?function(i){c(!1),t&&t(i)}:void 0,cognitiveIconSmall:l,cognitiveTootipTitle:a})]}))}function L(n){var s=n.users,o=n.onClick,t=s.length;return e.jsxs("div",i.__assign({onClick:o,style:{display:"flex",padding:"2px 6px",border:"1px solid #E2E8F0",background:"#fff",cursor:"pointer",fontSize:"11px",gap:6,borderRadius:"16px",alignItems:"center"}},{children:[e.jsx("p",i.__assign({style:{margin:"0px",display:"flex",alignItems:"center",color:"#475569",whiteSpace:"nowrap"}},{children:(null==s?void 0:s[0].length)>9?(null==s?void 0:s[0].slice(0,9))+"...":null==s?void 0:s[0]})),t>1&&e.jsxs("p",i.__assign({style:{margin:"0px",display:"flex",alignItems:"center",borderRadius:"50px",backgroundColor:"#E2E8F0",padding:"2px 6px",color:"#475569",fontWeight:500}},{children:["+",t-1]}))]}))}exports.AssignMenu=R,exports.DisplayUsers=L,exports.KebabMenu=W,exports.default=function(E){var R,M,F,H,q,N,O,P,U,G,K,X,J,Q,V,Y,Z,$=E.onClose,ii=E.aiReason,ei=E.onAccept,ni=E.onReject,si=E.onIterate,oi=E.initialTone,ti=E.onRegenerate,li=E.labels,ai=void 0===li?{}:li,ri=E.toneLevelsConfig,di=void 0===ri?g:ri,ci=E.toneColorsConfig,gi=void 0===ci?p:ci,pi=E.dialConfigs,xi=void 0===pi?r:pi,vi=E.actions,_i=E.disableAllActions,ui=void 0!==_i&&_i,hi=E.customStyles,fi=void 0===hi?{}:hi,mi=E.severityChipStyles,yi=void 0===mi?{}:mi,ji=E.customIcons,Si=void 0===ji?{}:ji,bi=E.onOpenCognitive,Ci=E.showTone,ki=void 0===Ci||Ci,Ii=E.cognitiveSectionStyle,wi=void 0===Ii?{}:Ii,Bi=E.cognitiveScoreBadgeStyle,Ti=void 0===Bi?{}:Bi,Ai=E.cognitiveScoreTextStyle,Di=void 0===Ai?{}:Ai,zi=E.cognitiveStyles,Ei=void 0===zi?{}:zi,Ri=E.cognitiveClassNames,Wi=void 0===Ri?{}:Ri,Li=E.cognitiveTitle,Mi=void 0===Li?"Cognitive Integrity":Li,Fi=E.cognitiveTootipTitle,Hi=void 0===Fi?"Cognitive Decisioning":Fi,qi=E.cognitiveLeftIcon,Ni=E.cognitiveIconSmall,Oi=E.showCognitiveRightArrow,Pi=void 0===Oi||Oi,Ui=E.isStreaming,Gi=E.onAssignClick,Ki=E.assignedUsers,Xi=E.onReviewUsersClick,Ji=di.findIndex(function(i){return i===oi});-1===Ji&&(Ji=1);var Qi=s.useState(!0),Vi=Qi[0],Yi=Qi[1],Zi=s.useState(!1),$i=Zi[0],ie=Zi[1],ee=s.useState(!1),ne=ee[0];ee[1];var se=s.useState(Ji),oe=se[0],te=se[1],le=s.useState(Ji)[0],ae=di[oe],re=gi[ae]||"#BA7517",de=oe!==le,ce=[{id:"iterate",icon:Si.iterateIcon||e.jsx(n.PenLine,{size:16,color:"#64748B"}),label:ai.btnIterate||"Iterate",color:"#64748B",onClick:si},{id:"accept",icon:Si.acceptIcon||e.jsx(n.CheckCircle,{size:16,color:"#10B981"}),label:ai.btnAccept||"Approve",color:"#10B981",onClick:ei},{id:"reject",icon:Si.rejectIcon||e.jsx(n.XCircle,{size:16,color:"#DC2626"}),label:ai.btnReject||"Reject",color:"#DC2626",onClick:ni}],ge=vi||ce;return e.jsxs("div",i.__assign({onClick:function(i){i.stopPropagation()},style:i.__assign(i.__assign({},x),null===(R=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===R?void 0:R.root)},{children:[e.jsxs("div",i.__assign({style:i.__assign(i.__assign(i.__assign({},v),null===(M=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===M?void 0:M.header),{marginBottom:ne?"16px":"12px"})},{children:[e.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[e.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[e.jsx("span",{children:Si.summaryIcon||e.jsx(n.Info,{size:16,color:"#E24B4A"})}),e.jsx("span",i.__assign({style:i.__assign(i.__assign({},_),null===(F=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===F?void 0:F.title)},{children:ai.summaryHeader||"Summary"}))]})),Ki&&Ki.length>0&&e.jsx(L,{users:Ki,onClick:function(i){i.stopPropagation(),null==Xi||Xi()}})]})),e.jsxs("div",i.__assign({style:{display:"flex",gap:12,alignItems:"center"}},{children:[(Gi||bi)&&e.jsx(W,{onAssignClick:Gi,onOpenCognitive:bi,cognitiveIconSmall:Ni,cognitiveTootipTitle:Hi}),e.jsx("button",i.__assign({onClick:$,style:i.__assign(i.__assign(i.__assign({},b),null===(H=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===H?void 0:H.closeBtn),{color:"#64748B"})},{children:"✕"}))]}))]})),e.jsx(a.Tooltip,i.__assign({title:null===(q=null==ii?void 0:ii.deviation_details)||void 0===q?void 0:q.deviation_title},{children:e.jsx("p",i.__assign({style:i.__assign(i.__assign({},u),null===(N=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===N?void 0:N.bodyText)},{children:null===(O=null==ii?void 0:ii.deviation_details)||void 0===O?void 0:O.deviation_title}))})),e.jsx("p",i.__assign({style:i.__assign(i.__assign({},h),null===(P=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===P?void 0:P.summary)},{children:null===(U=null==ii?void 0:ii.deviation_details)||void 0===U?void 0:U.deviation_summary})),e.jsxs("div",i.__assign({style:i.__assign(i.__assign({},f),null===(G=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===G?void 0:G.impactContainer)},{children:[e.jsxs("div",i.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[e.jsxs("button",i.__assign({onClick:function(){return Yi(!Vi)},style:i.__assign(i.__assign({},m),null===(K=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===K?void 0:K.impactToggle)},{children:[e.jsx("span",i.__assign({style:i.__assign(i.__assign({},y),null===(X=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===X?void 0:X.impactToggleLabel)},{children:ai.impactHeader||"Impact"})),e.jsx("span",i.__assign({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Vi?"rotate(180deg)":"rotate(0deg)"}},{children:e.jsx(n.ChevronDown,{size:16,color:"#E24B4A"})}))]})),e.jsx(c,{type:(null==ii?void 0:ii.severity)||"Medium",customStyles:yi})]})),Vi&&e.jsx("p",i.__assign({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0",maxHeight:"100px",overflow:"auto"}},{children:null!==(Q=null===(J=null==ii?void 0:ii.deviation_details)||void 0===J?void 0:J.deviation_impact)&&void 0!==Q?Q:ai.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),e.jsx("div",i.__assign({style:i.__assign(i.__assign({},j),null===(V=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===V?void 0:V.actionContainer)},{children:ge.map(function(n){var s,o,t=ui||n.disabled,l=t?i.__assign(i.__assign({cursor:"not-allowed",opacity:.5},null===(s=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===s?void 0:s.actionBtnDisabled),n.disabledStyle):{};return e.jsxs("button",i.__assign({style:i.__assign(i.__assign(i.__assign(i.__assign(i.__assign({},S),null===(o=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtn),{color:n.color}),n.style),l),onClick:t?void 0:n.onClick,disabled:t},{children:[n.icon,n.label]}),n.id)})})),ki&&e.jsxs("div",i.__assign({style:i.__assign(i.__assign({},C),null===(Y=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===Y?void 0:Y.toneContainer)},{children:[e.jsxs("button",i.__assign({onClick:function(){return ie(!$i)},style:i.__assign(i.__assign({},k),null===(Z=null==fi?void 0:fi.DeviationSummaryStyles)||void 0===Z?void 0:Z.toneToggleBtn)},{children:[e.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[e.jsx(d,{toneIndex:oe,configs:xi}),e.jsx("span",i.__assign({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:ai.toneHeader||"Redline Tone"}))]})),e.jsx("span",i.__assign({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:$i?"rotate(180deg)":"rotate(0deg)"}},{children:e.jsx(n.ChevronDown,{size:16,color:"#111"})}))]})),$i&&e.jsxs(e.Fragment,{children:[e.jsx("p",i.__assign({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:ai.toneDescription||"Controls how assertively AI is redlining"})),e.jsx(o.ToneToggle,{isDirty:de,onToneChange:function(i){te(i)},toneColor:re,toneIndex:oe,onClickRegenerate:function(){return null==ti?void 0:ti(ae)},toneLabels:di,isStreaming:Ui,aiReason:ii})]})]})),bi&&e.jsxs("div",i.__assign({className:null==Wi?void 0:Wi.section,onClick:function(i){i.stopPropagation(),bi&&bi(i)},style:i.__assign(i.__assign(i.__assign({},I),null==Ei?void 0:Ei.section),wi)},{children:[e.jsxs("div",i.__assign({className:null==Wi?void 0:Wi.headerLeft,style:i.__assign(i.__assign({},w),null==Ei?void 0:Ei.headerLeft)},{children:[e.jsx("span",i.__assign({className:null==Wi?void 0:Wi.titleIcon,style:i.__assign(i.__assign({},B),null==Ei?void 0:Ei.titleIcon)},{children:null!=qi?qi:e.jsx(t.ReactComponent,{})})),e.jsx("div",i.__assign({className:null==Wi?void 0:Wi.cognitiveTitle,style:i.__assign(i.__assign({},T),null==Ei?void 0:Ei.cognitiveTitle)},{children:Mi}))]})),e.jsxs("div",i.__assign({className:null==Wi?void 0:Wi.headerRight,style:i.__assign(i.__assign({},A),null==Ei?void 0:Ei.headerRight)},{children:[void 0!==(null==ii?void 0:ii.relevance_score)&&null!==(null==ii?void 0:ii.relevance_score)?e.jsxs("span",i.__assign({className:null==Wi?void 0:Wi.scoreBadge,style:i.__assign(i.__assign(i.__assign({},D),null==Ei?void 0:Ei.scoreBadge),Ti)},{children:[e.jsx(l.ReactComponent,{}),e.jsxs("span",i.__assign({className:null==Wi?void 0:Wi.scoreText,style:i.__assign(i.__assign(i.__assign({},z),null==Ei?void 0:Ei.scoreText),Di)},{children:[Math.round(Number(ii.relevance_score)),"%"]}))]})):null,Pi&&e.jsx("span",i.__assign({style:{display:"flex",alignItems:"center"}},{children:e.jsx(n.ChevronRight,{size:16,color:"#64748B"})}))]}))]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n=require("lucide-react"),s=require("react"),o=require("./ToneToggle.js");require("../CognitiveComponents/CitationComponent.module.css.js");var t=require("../icons/cognitiveBrain.svg.js"),l=require("../icons/aiMagic.svg.js"),a=require("@mui/material"),r=require("../../ai-reasoning/AiReasonMarkdownWrapper.js"),d=[{color:"#1D9E75",angle:-90,arcD:"M1 13 A10 10 0 0 1 1 13"},{color:"#BA7517",angle:0,arcD:"M1 13 A10 10 0 0 1 11 3"},{color:"#E24B4A",angle:90,arcD:"M1 13 A10 10 0 0 1 21 13"}],c=function(n){var s=n.toneIndex,o=n.configs,t=void 0===o?d:o,l=t[Math.min(s,t.length-1)]||t[1]||t[0],a=l.color,r=l.angle,c=l.arcD,g=(r-90)*Math.PI/180,p=11+9*Math.cos(g),v=13+9*Math.sin(g);return e.jsxs("svg",i.__assign({width:"22",height:"14",viewBox:"0 0 22 14",fill:"none"},{children:[e.jsx("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("path",{d:c,stroke:a,strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("line",{x1:"11",y1:"13",x2:p,y2:v,stroke:a,strokeWidth:"2",strokeLinecap:"round"})]}))},g=function(n){var s=n.type,o=n.customStyles,t=void 0===o?{}:o,l=i.__assign(i.__assign({},{High:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #FECACA",background:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:"500"},Medium:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #F2E5A1",background:"#FFFBEB",color:"#B45309",fontSize:"11px",fontWeight:"500"},Low:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #8098F9",background:"#DBEAFE",color:"#444CE7",fontSize:"11px",fontWeight:"500"}}),t),a=l[s]||l.Medium;return e.jsx("div",i.__assign({style:a},{children:s}))},p=["Lenient","Balanced","Aggressive"],v={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},x={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"450px",overflow:"auto"},u={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12,position:"relative"},_={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},m={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},h={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px",maxHeight:"100px",overflow:"auto"},y={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},f={fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0",maxHeight:"100px",overflow:"auto"},j={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},S={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},b={display:"flex",gap:8,marginBottom:18},C={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:12,fontWeight:500,padding:"7px 4px",borderRadius:8,border:"0.5px solid #ccc",background:"#fff",cursor:"pointer"},k={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},w={borderTop:"0.5px solid #eee",padding:"14px 0px"},I={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},B={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},A={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},T={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},D={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},z={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},R={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},E={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"},W={padding:"4px",border:"1px solid #EBEBEB",position:"absolute",width:"100px",textAlign:"center",borderRadius:"9px",background:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",zIndex:1e3,top:"100%",right:0};function M(n){var s=n.onAssignClick,o=n.onOpenCognitive,t=n.cognitiveIconSmall,l=n.cognitiveTootipTitle,a="20px";return e.jsxs("div",i.__assign({style:i.__assign(i.__assign({},W),{minWidth:"200px"})},{children:[e.jsxs("div",i.__assign({style:{padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:s},{children:[e.jsx("span",i.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",width:a,height:a,flexShrink:0}},{children:e.jsxs("svg",i.__assign({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[e.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),e.jsx("path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}),e.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),e.jsx("circle",{cx:"9",cy:"7",r:"4"})]}))})),e.jsx("span",i.__assign({style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left"}},{children:"Assign"}))]})),o&&e.jsxs("div",i.__assign({style:{padding:"8px",borderTop:"1px solid #EBEBEB",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:function(i){return o(i)}},{children:[t&&e.jsx("span",i.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center",width:a,height:a,flexShrink:0}},{children:t})),e.jsx("span",i.__assign({style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},{children:l}))]}))]}))}function L(n){var o=n.onAssignClick,t=n.onOpenCognitive,l=n.cognitiveIconSmall,a=n.cognitiveTootipTitle,r=s.useState(!1),d=r[0],c=r[1];return e.jsxs("div",i.__assign({style:{position:"relative",display:"flex"}},{children:[e.jsx("button",i.__assign({onClick:function(){return c(!d)},style:{border:"none",background:"transparent",display:"flex",alignItems:"center",cursor:"pointer",fontSize:"18px",padding:0}},{children:e.jsxs("svg",i.__assign({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#64748B",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[e.jsx("circle",{cx:"12",cy:"12",r:"1"}),e.jsx("circle",{cx:"12",cy:"5",r:"1"}),e.jsx("circle",{cx:"12",cy:"19",r:"1"})]}))})),d&&e.jsx(M,{onAssignClick:o?function(){c(!1),o&&o()}:void 0,onOpenCognitive:t?function(i){c(!1),t&&t(i)}:void 0,cognitiveIconSmall:l,cognitiveTootipTitle:a})]}))}function F(n){var s=n.users,o=n.onClick,t=s.length;return e.jsxs("div",i.__assign({onClick:o,style:{display:"flex",padding:"2px 6px",border:"1px solid #E2E8F0",background:"#fff",cursor:"pointer",fontSize:"11px",gap:6,borderRadius:"16px",alignItems:"center"}},{children:[e.jsx("p",i.__assign({style:{margin:"0px",display:"flex",alignItems:"center",color:"#475569",whiteSpace:"nowrap"}},{children:(null==s?void 0:s[0].length)>9?(null==s?void 0:s[0].slice(0,9))+"...":null==s?void 0:s[0]})),t>1&&e.jsxs("p",i.__assign({style:{margin:"0px",display:"flex",alignItems:"center",borderRadius:"50px",backgroundColor:"#E2E8F0",padding:"2px 6px",color:"#475569",fontWeight:500}},{children:["+",t-1]}))]}))}exports.AssignMenu=M,exports.DisplayUsers=F,exports.KebabMenu=L,exports.default=function(W){var M,H,q,N,O,P,U,G,K,V,X,$,J,Q,Y,Z,ii,ei,ni,si=W.onClose,oi=W.aiReason,ti=W.onAccept,li=W.onReject,ai=W.onIterate,ri=W.initialTone,di=W.onRegenerate,ci=W.labels,gi=void 0===ci?{}:ci,pi=W.toneLevelsConfig,vi=void 0===pi?p:pi,xi=W.toneColorsConfig,ui=void 0===xi?v:xi,_i=W.dialConfigs,mi=void 0===_i?d:_i,hi=W.actions,yi=W.disableAllActions,fi=void 0!==yi&&yi,ji=W.customStyles,Si=void 0===ji?{}:ji,bi=W.severityChipStyles,Ci=void 0===bi?{}:bi,ki=W.customIcons,wi=void 0===ki?{}:ki,Ii=W.onOpenCognitive,Bi=W.showTone,Ai=void 0===Bi||Bi,Ti=W.cognitiveSectionStyle,Di=void 0===Ti?{}:Ti,zi=W.cognitiveScoreBadgeStyle,Ri=void 0===zi?{}:zi,Ei=W.cognitiveScoreTextStyle,Wi=void 0===Ei?{}:Ei,Mi=W.cognitiveStyles,Li=void 0===Mi?{}:Mi,Fi=W.cognitiveClassNames,Hi=void 0===Fi?{}:Fi,qi=W.cognitiveTitle,Ni=void 0===qi?"Cognitive Integrity":qi,Oi=W.cognitiveTootipTitle,Pi=void 0===Oi?"Cognitive Decisioning":Oi,Ui=W.cognitiveLeftIcon,Gi=W.cognitiveIconSmall,Ki=W.showCognitiveRightArrow,Vi=void 0===Ki||Ki,Xi=W.isStreaming,$i=W.onAssignClick,Ji=W.assignedUsers,Qi=W.onReviewUsersClick,Yi=vi.findIndex(function(i){return i===ri});-1===Yi&&(Yi=1);var Zi=s.useState(!0),ie=Zi[0],ee=Zi[1],ne=s.useState(!1),se=ne[0],oe=ne[1],te=s.useState(!1),le=te[0];te[1];var ae=s.useState(Yi),re=ae[0],de=ae[1],ce=s.useState(Yi)[0],ge=vi[re],pe=ui[ge]||"#BA7517",ve=re!==ce,xe=[{id:"iterate",icon:wi.iterateIcon||e.jsx(n.PenLine,{size:16,color:"#64748B"}),label:gi.btnIterate||"Iterate",color:"#64748B",onClick:ai},{id:"accept",icon:wi.acceptIcon||e.jsx(n.CheckCircle,{size:16,color:"#10B981"}),label:gi.btnAccept||"Approve",color:"#10B981",onClick:ti},{id:"reject",icon:wi.rejectIcon||e.jsx(n.XCircle,{size:16,color:"#DC2626"}),label:gi.btnReject||"Reject",color:"#DC2626",onClick:li}],ue=hi||xe;return e.jsxs("div",i.__assign({onClick:function(i){i.stopPropagation()},style:i.__assign(i.__assign({},x),null===(M=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===M?void 0:M.root)},{children:[e.jsxs("div",i.__assign({style:i.__assign(i.__assign(i.__assign({},u),null===(H=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===H?void 0:H.header),{marginBottom:le?"16px":"12px"})},{children:[e.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[e.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[e.jsx("span",{children:wi.summaryIcon||e.jsx(n.Info,{size:16,color:"#E24B4A"})}),e.jsx("span",i.__assign({style:i.__assign(i.__assign({},_),null===(q=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===q?void 0:q.title)},{children:gi.summaryHeader||"Summary"}))]})),Ji&&Ji.length>0&&e.jsx(F,{users:Ji,onClick:function(i){i.stopPropagation(),null==Qi||Qi()}})]})),e.jsxs("div",i.__assign({style:{display:"flex",gap:12,alignItems:"center"}},{children:[($i||Ii)&&e.jsx(L,{onAssignClick:$i,onOpenCognitive:Ii,cognitiveIconSmall:Gi,cognitiveTootipTitle:Pi}),e.jsx("button",i.__assign({onClick:si,style:i.__assign(i.__assign(i.__assign({},k),null===(N=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===N?void 0:N.closeBtn),{color:"#64748B"})},{children:"✕"}))]}))]})),e.jsx(a.Tooltip,i.__assign({title:null===(O=null==oi?void 0:oi.deviation_details)||void 0===O?void 0:O.deviation_title},{children:e.jsx("p",i.__assign({style:i.__assign(i.__assign({},m),null===(P=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===P?void 0:P.bodyText)},{children:null===(U=null==oi?void 0:oi.deviation_details)||void 0===U?void 0:U.deviation_title}))})),e.jsx("p",i.__assign({style:i.__assign(i.__assign({},h),null===(G=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===G?void 0:G.summary)},{children:null===(K=null==oi?void 0:oi.deviation_details)||void 0===K?void 0:K.deviation_summary})),e.jsxs("div",i.__assign({style:i.__assign(i.__assign({},y),null===(V=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===V?void 0:V.impactContainer)},{children:[e.jsxs("div",i.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[e.jsxs("button",i.__assign({onClick:function(){return ee(!ie)},style:i.__assign(i.__assign({},j),null===(X=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===X?void 0:X.impactToggle)},{children:[e.jsx("span",i.__assign({style:i.__assign(i.__assign({},S),null===($=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===$?void 0:$.impactToggleLabel)},{children:gi.impactHeader||"Impact"})),e.jsx("span",i.__assign({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:ie?"rotate(180deg)":"rotate(0deg)"}},{children:e.jsx(n.ChevronDown,{size:16,color:"#E24B4A"})}))]})),e.jsx(g,{type:(null==oi?void 0:oi.severity)||"Medium",customStyles:Ci})]})),ie&&e.jsx("div",i.__assign({style:i.__assign(i.__assign({},f),null===(J=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===J?void 0:J.impactText)},{children:e.jsx(r.AiReasonMarkdownWrapper,{message:"".concat(null!==(Y=null===(Q=null==oi?void 0:oi.deviation_details)||void 0===Q?void 0:Q.deviation_impact)&&void 0!==Y?Y:gi.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."," [View chat](chat_citation$all)"),customStyles:null===(Z=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===Z?void 0:Z.impactMarkdown})}))]})),e.jsx("div",i.__assign({style:i.__assign(i.__assign({},b),null===(ii=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===ii?void 0:ii.actionContainer)},{children:ue.map(function(n){var s,o,t=fi||n.disabled,l=t?i.__assign(i.__assign({cursor:"not-allowed",opacity:.5},null===(s=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===s?void 0:s.actionBtnDisabled),n.disabledStyle):{};return e.jsxs("button",i.__assign({style:i.__assign(i.__assign(i.__assign(i.__assign(i.__assign({},C),null===(o=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtn),{color:n.color}),n.style),l),onClick:t?void 0:n.onClick,disabled:t},{children:[n.icon,n.label]}),n.id)})})),Ai&&e.jsxs("div",i.__assign({style:i.__assign(i.__assign({},w),null===(ei=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===ei?void 0:ei.toneContainer)},{children:[e.jsxs("button",i.__assign({onClick:function(){return oe(!se)},style:i.__assign(i.__assign({},I),null===(ni=null==Si?void 0:Si.DeviationSummaryStyles)||void 0===ni?void 0:ni.toneToggleBtn)},{children:[e.jsxs("div",i.__assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[e.jsx(c,{toneIndex:re,configs:mi}),e.jsx("span",i.__assign({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:gi.toneHeader||"Redline Tone"}))]})),e.jsx("span",i.__assign({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:se?"rotate(180deg)":"rotate(0deg)"}},{children:e.jsx(n.ChevronDown,{size:16,color:"#111"})}))]})),se&&e.jsxs(e.Fragment,{children:[e.jsx("p",i.__assign({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:gi.toneDescription||"Controls how assertively AI is redlining"})),e.jsx(o.ToneToggle,{isDirty:ve,onToneChange:function(i){de(i)},toneColor:pe,toneIndex:re,onClickRegenerate:function(){return null==di?void 0:di(ge)},toneLabels:vi,isStreaming:Xi,aiReason:oi})]})]})),Ii&&e.jsxs("div",i.__assign({className:null==Hi?void 0:Hi.section,onClick:function(i){i.stopPropagation(),Ii&&Ii(i)},style:i.__assign(i.__assign(i.__assign({},B),null==Li?void 0:Li.section),Di)},{children:[e.jsxs("div",i.__assign({className:null==Hi?void 0:Hi.headerLeft,style:i.__assign(i.__assign({},A),null==Li?void 0:Li.headerLeft)},{children:[e.jsx("span",i.__assign({className:null==Hi?void 0:Hi.titleIcon,style:i.__assign(i.__assign({},T),null==Li?void 0:Li.titleIcon)},{children:null!=Ui?Ui:e.jsx(t.ReactComponent,{})})),e.jsx("div",i.__assign({className:null==Hi?void 0:Hi.cognitiveTitle,style:i.__assign(i.__assign({},D),null==Li?void 0:Li.cognitiveTitle)},{children:Ni}))]})),e.jsxs("div",i.__assign({className:null==Hi?void 0:Hi.headerRight,style:i.__assign(i.__assign({},z),null==Li?void 0:Li.headerRight)},{children:[void 0!==(null==oi?void 0:oi.relevance_score)&&null!==(null==oi?void 0:oi.relevance_score)?e.jsxs("span",i.__assign({className:null==Hi?void 0:Hi.scoreBadge,style:i.__assign(i.__assign(i.__assign({},R),null==Li?void 0:Li.scoreBadge),Ri)},{children:[e.jsx(l.ReactComponent,{}),e.jsxs("span",i.__assign({className:null==Hi?void 0:Hi.scoreText,style:i.__assign(i.__assign(i.__assign({},E),null==Li?void 0:Li.scoreText),Wi)},{children:[Math.round(Number(oi.relevance_score)),"%"]}))]})):null,Vi&&e.jsx("span",i.__assign({style:{display:"flex",alignItems:"center"}},{children:e.jsx(n.ChevronRight,{size:16,color:"#64748B"})}))]}))]}))]}))};
2
2
  //# sourceMappingURL=DeviationSummary.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),s=require("lucide-react"),i=require("react"),n=require("./PopupDefaults.js"),o=require("@mui/material"),r=require("./DeviationSummary.js");function a(e){var t=new Date(e);return isNaN(t.getTime())?e:new Date(e).toLocaleString("en-US",{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).replace(" AM","AM").replace(" PM","PM")}var l=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t.jsx("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},d=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#ef4444",strokeWidth:"2",fill:"#fff1f2"}),t.jsx("path",{d:"M7.5 7.5l7 7M14.5 7.5l-7 7",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}))},c=function(){return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:t.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#94a3b8",strokeWidth:"1.8",strokeLinecap:"round"})}))},g=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},u=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},x=function(s){var i=s.open;return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:i?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t.jsx("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},f=function(s){var i=s.color,n=void 0===i?"#3b82f6":i;return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:n,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M1.5 3.5v4h4",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M8 5v3.5l2 1.5",stroke:n,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},_=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M2 8h12M10 4l4 4-4 4",stroke:"#64748b",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M4 5l-2 3 2 3",stroke:"#64748b",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function p(s){var i=s.title,n=s.open,o=s.onToggle,r=s.children;return t.jsxs("div",{children:[t.jsxs("div",e.__assign({onClick:o,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t.jsx("span",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:i})),t.jsx(x,{open:n})]})),t.jsx("div",e.__assign({style:{maxHeight:n?100:0,opacity:n?1:0,transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:n&&t.jsx(t.Fragment,{children:r})}))]})}function k(s){var i=s.icon,n=s.label,o=s.onClick,r=s.customStyle,a=void 0===r?{}:r,l=s.disabled,d=void 0!==l&&l,c=s.disabledStyle,g=void 0===c?{}:c,u=e.__assign(e.__assign({display:"flex",alignItems:"center",gap:10,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:d?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:d?.5:1},a),d?g:{});return t.jsxs("button",e.__assign({onClick:d?void 0:o,disabled:d,style:u,onMouseEnter:function(e){d||(e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)")},onMouseLeave:function(e){d||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[i,n]}))}exports.ApprovedIcon=l,exports.ChevronIcon=x,exports.CloseIcon=c,exports.HistoryIcon=f,exports.IterateIcon=_,exports.RedlineCard=function(x){var j=x.status,b=x.onClose,v=x.impactText,y=x.secondText,m=x.actionTakenByName,C=x.actionTakenAtTime,B=void 0===C?"NA":C,S=x.onHistory,w=x.onIterate,L=x.onReinstate,R=x.onRevert,I=x.disableAllActions,T=void 0!==I&&I,W=x.impactTitle,M=void 0===W?"Impact":W,D=x.customConfigs,A=void 0===D?{}:D,U=x.customStyles,z=void 0===U?{}:U,q=x.secondaryTitle;x.onAssignClick;var H=x.onReviewUsersClick,N=x.assignedUsers,F=i.useState(!0),O=F[0],P=F[1],E=i.useState(!0),Y=E[0],G=E[1],J=i.useState(!1),K=J[0],Q=J[1],V=i.useState(!1);V[0],V[1];var X,Z={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t.jsx(g,{}),StatusIcon:t.jsx(l,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t.jsx(f,{}),label:"History",onClick:S},{icon:t.jsx(s.Undo2,{size:17}),label:"Revert",onClick:R},{icon:t.jsx(_,{}),label:"Iterate",onClick:w}],fallbackText:"No original text available"},$={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t.jsx(u,{}),StatusIcon:t.jsx(d,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t.jsx(f,{color:"#3b82f6"}),label:"History",onClick:S},{icon:t.jsx(h,{}),label:"Reinstate",onClick:L},{icon:t.jsx(_,{}),label:"Iterate",onClick:w}],fallbackText:"No rejected recommendation available"},ee={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t.jsx(g,{}),StatusIcon:t.jsx(s.Undo2,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t.jsx(f,{}),label:"History",onClick:S},{icon:t.jsx(_,{}),label:"Iterate",onClick:w}],fallbackText:"No reverted redline available"};X="accepted"===j?Z:"rejected"===j?$:ee;var te=e.__assign(e.__assign({},X),A[j]||{});return t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.root),{animation:K?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":n.default.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),z.root)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.header),{background:te.headerBg,borderBottom:"1.5px solid ".concat(te.headerBorder)}),z.header)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[t.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:te.StatusIcon})),t.jsxs("div",{children:[t.jsx("span",e.__assign({style:{fontSize:15,fontWeight:700,color:te.titleColor,letterSpacing:"-0.01em"}},{children:te.label})),t.jsx(o.Tooltip,e.__assign({title:q},{children:t.jsx("span",e.__assign({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",fontSize:12,color:"gray"}},{children:q}))}))]}),N&&N.length>0&&t.jsx(r.DisplayUsers,{users:N,onClick:function(e){e.stopPropagation(),null==H||H()}})]})),t.jsx("button",e.__assign({onClick:function(){Q(!0),b()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t.jsx(c,{})}))]})),t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.body),z.body)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.meta),z.meta)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[te.UserIcon,t.jsx("span",e.__assign({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:te.metaLabel}))]})),t.jsxs("div",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[t.jsx(o.Tooltip,e.__assign({title:m},{children:t.jsx("span",e.__assign({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"}},{children:m}))})),t.jsx("span",{children:a(B)})]}))]})),t.jsx("div",{style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.divider),z.divider)}),t.jsx(p,e.__assign({title:M,open:O,onToggle:function(){return P(function(e){return!e})}},{children:t.jsx("p",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.impactText),z.impactText)},{children:v||""}))})),t.jsx("div",{style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.divider),z.divider)}),t.jsx(p,e.__assign({title:te.secondTitle,open:Y,onToggle:function(){return G(function(e){return!e})}},{children:y?t.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.secondSection),{background:te.secondBg,border:"1.5px solid ".concat(te.secondBorder)}),z.secondSection)},{children:y})):t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.fallbackSectionStyle),z.fallbackSectionStyle)},{children:[te.fallbackText," "]}))})),t.jsx("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.actionsContainer),z.actionsContainer)},{children:te.actions.map(function(s){return t.jsx(k,{icon:s.icon,label:s.label,onClick:s.onClick,customStyle:e.__assign(e.__assign({},s.style),z.actionBtn),disabled:T||s.disabled,disabledStyle:z.actionBtnDisabled},s.label)})}))]}))]}))},exports.ReinstateIcon=h,exports.RejectedIcon=d,exports.UserApprovedIcon=g,exports.UserRejectedIcon=u,exports.formatDate=a;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),s=require("lucide-react"),i=require("react"),n=require("./PopupDefaults.js"),o=require("@mui/material"),r=require("../../ai-reasoning/AiReasonMarkdownWrapper.js"),a=require("./DeviationSummary.js");function l(e){var t=new Date(e);return isNaN(t.getTime())?e:new Date(e).toLocaleString("en-US",{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).replace(" AM","AM").replace(" PM","PM")}var d=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t.jsx("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},c=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#ef4444",strokeWidth:"2",fill:"#fff1f2"}),t.jsx("path",{d:"M7.5 7.5l7 7M14.5 7.5l-7 7",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}))},g=function(){return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:t.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#94a3b8",strokeWidth:"1.8",strokeLinecap:"round"})}))},u=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},x=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},h=function(s){var i=s.open;return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:i?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t.jsx("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},f=function(s){var i=s.color,n=void 0===i?"#3b82f6":i;return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:n,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M1.5 3.5v4h4",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M8 5v3.5l2 1.5",stroke:n,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},_=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},p=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M2 8h12M10 4l4 4-4 4",stroke:"#64748b",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M4 5l-2 3 2 3",stroke:"#64748b",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function k(s){var i=s.title,n=s.open,o=s.onToggle,r=s.children;return t.jsxs("div",{children:[t.jsxs("div",e.__assign({onClick:o,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t.jsx("span",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:i})),t.jsx(h,{open:n})]})),t.jsx("div",e.__assign({style:{maxHeight:n?100:0,opacity:n?1:0,transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:n&&t.jsx(t.Fragment,{children:r})}))]})}function j(s){var i=s.icon,n=s.label,o=s.onClick,r=s.customStyle,a=void 0===r?{}:r,l=s.disabled,d=void 0!==l&&l,c=s.disabledStyle,g=void 0===c?{}:c,u=e.__assign(e.__assign({display:"flex",alignItems:"center",gap:10,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:d?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:d?.5:1},a),d?g:{});return t.jsxs("button",e.__assign({onClick:d?void 0:o,disabled:d,style:u,onMouseEnter:function(e){d||(e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)")},onMouseLeave:function(e){d||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[i,n]}))}exports.ApprovedIcon=d,exports.ChevronIcon=h,exports.CloseIcon=g,exports.HistoryIcon=f,exports.IterateIcon=p,exports.RedlineCard=function(h){var b=h.status,v=h.onClose,y=h.impactText,m=h.secondText,C=h.actionTakenByName,B=h.actionTakenAtTime,w=void 0===B?"NA":B,S=h.onHistory,R=h.onIterate,L=h.onReinstate,I=h.onRevert,W=h.disableAllActions,T=void 0!==W&&W,M=h.impactTitle,D=void 0===M?"Impact":M,A=h.customConfigs,U=void 0===A?{}:A,z=h.customStyles,q=void 0===z?{}:z,H=h.secondaryTitle;h.onAssignClick;var N=h.onReviewUsersClick,F=h.assignedUsers,O=i.useState(!0),P=O[0],E=O[1],V=i.useState(!0),Y=V[0],$=V[1],G=i.useState(!1),J=G[0],K=G[1],Q=i.useState(!1);Q[0],Q[1];var X,Z={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t.jsx(u,{}),StatusIcon:t.jsx(d,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t.jsx(f,{}),label:"History",onClick:S},{icon:t.jsx(s.Undo2,{size:17}),label:"Revert",onClick:I},{icon:t.jsx(p,{}),label:"Iterate",onClick:R}],fallbackText:"No original text available"},ee={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t.jsx(x,{}),StatusIcon:t.jsx(c,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t.jsx(f,{color:"#3b82f6"}),label:"History",onClick:S},{icon:t.jsx(_,{}),label:"Reinstate",onClick:L},{icon:t.jsx(p,{}),label:"Iterate",onClick:R}],fallbackText:"No rejected recommendation available"},te={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t.jsx(u,{}),StatusIcon:t.jsx(s.Undo2,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t.jsx(f,{}),label:"History",onClick:S},{icon:t.jsx(p,{}),label:"Iterate",onClick:R}],fallbackText:"No reverted redline available"};X="accepted"===b?Z:"rejected"===b?ee:te;var se=e.__assign(e.__assign({},X),U[b]||{});return t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.root),{animation:J?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":n.default.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),q.root)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.header),{background:se.headerBg,borderBottom:"1.5px solid ".concat(se.headerBorder)}),q.header)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[t.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:se.StatusIcon})),t.jsxs("div",{children:[t.jsx("span",e.__assign({style:{fontSize:15,fontWeight:700,color:se.titleColor,letterSpacing:"-0.01em"}},{children:se.label})),t.jsx(o.Tooltip,e.__assign({title:H},{children:t.jsx("span",e.__assign({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",fontSize:12,color:"gray"}},{children:H}))}))]}),F&&F.length>0&&t.jsx(a.DisplayUsers,{users:F,onClick:function(e){e.stopPropagation(),null==N||N()}})]})),t.jsx("button",e.__assign({onClick:function(){K(!0),v()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t.jsx(g,{})}))]})),t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.body),q.body)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.meta),q.meta)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[se.UserIcon,t.jsx("span",e.__assign({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:se.metaLabel}))]})),t.jsxs("div",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[t.jsx(o.Tooltip,e.__assign({title:C},{children:t.jsx("span",e.__assign({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"}},{children:C}))})),t.jsx("span",{children:l(w)})]}))]})),t.jsx("div",{style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.divider),q.divider)}),t.jsx(k,e.__assign({title:D,open:P,onToggle:function(){return E(function(e){return!e})}},{children:t.jsx("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.impactText),q.impactText)},{children:t.jsx(r.AiReasonMarkdownWrapper,{message:"".concat(y||""," [View chat](chat_citation$all)"),customStyles:q.impactMarkdown})}))})),t.jsx("div",{style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.divider),q.divider)}),t.jsx(k,e.__assign({title:se.secondTitle,open:Y,onToggle:function(){return $(function(e){return!e})}},{children:m?t.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.secondSection),{background:se.secondBg,border:"1.5px solid ".concat(se.secondBorder)}),q.secondSection)},{children:m})):t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.fallbackSectionStyle),q.fallbackSectionStyle)},{children:[se.fallbackText," "]}))})),t.jsx("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.actionsContainer),q.actionsContainer)},{children:se.actions.map(function(s){return t.jsx(j,{icon:s.icon,label:s.label,onClick:s.onClick,customStyle:e.__assign(e.__assign({},s.style),q.actionBtn),disabled:T||s.disabled,disabledStyle:q.actionBtnDisabled},s.label)})}))]}))]}))},exports.ReinstateIcon=_,exports.RejectedIcon=c,exports.UserApprovedIcon=u,exports.UserRejectedIcon=x,exports.formatDate=l;
2
2
  //# sourceMappingURL=RedlineStatusCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as i,jsxs as n,Fragment as o}from"react/jsx-runtime";import{PenLine as t,CheckCircle as l,XCircle as r,Info as d,ChevronDown as a,ChevronRight as s}from"lucide-react";import{useState as c}from"react";import{ToneToggle as p}from"./ToneToggle.js";import"../CognitiveComponents/CitationComponent.module.css.js";import{ReactComponent as v}from"../icons/cognitiveBrain.svg.js";import{ReactComponent as g}from"../icons/aiMagic.svg.js";import{Tooltip as u}from"@mui/material";var m=[{color:"#1D9E75",angle:-90,arcD:"M1 13 A10 10 0 0 1 1 13"},{color:"#BA7517",angle:0,arcD:"M1 13 A10 10 0 0 1 11 3"},{color:"#E24B4A",angle:90,arcD:"M1 13 A10 10 0 0 1 21 13"}],f=function(o){var t=o.toneIndex,l=o.configs,r=void 0===l?m:l,d=r[Math.min(t,r.length-1)]||r[1]||r[0],a=d.color,s=d.angle,c=d.arcD,p=(s-90)*Math.PI/180,v=11+9*Math.cos(p),g=13+9*Math.sin(p);return n("svg",e({width:"22",height:"14",viewBox:"0 0 22 14",fill:"none"},{children:[i("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),i("path",{d:c,stroke:a,strokeWidth:"2.5",strokeLinecap:"round"}),i("line",{x1:"11",y1:"13",x2:v,y2:g,stroke:a,strokeWidth:"2",strokeLinecap:"round"})]}))},x=function(n){var o=n.type,t=n.customStyles,l=void 0===t?{}:t,r=e(e({},{High:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #FECACA",background:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:"500"},Medium:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #F2E5A1",background:"#FFFBEB",color:"#B45309",fontSize:"11px",fontWeight:"500"},Low:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #8098F9",background:"#DBEAFE",color:"#444CE7",fontSize:"11px",fontWeight:"500"}}),l),d=r[o]||r.Medium;return i("div",e({style:d},{children:o}))},h=["Lenient","Balanced","Aggressive"],y={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},S={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"450px",overflow:"auto"},b={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12,position:"relative"},C={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},k={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},I={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px",maxHeight:"100px",overflow:"auto"},w={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},B={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},A={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},T={display:"flex",gap:8,marginBottom:18},z={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:12,fontWeight:500,padding:"7px 4px",borderRadius:8,border:"0.5px solid #ccc",background:"#fff",cursor:"pointer"},D={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},E={borderTop:"0.5px solid #eee",padding:"14px 0px"},R={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},W={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},j={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},L={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},M={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},F={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},H={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},_={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"},N={padding:"4px",border:"1px solid #EBEBEB",position:"absolute",width:"100px",textAlign:"center",borderRadius:"9px",background:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",zIndex:1e3,top:"100%",right:0};function O(o){var t=o.onAssignClick,l=o.onOpenCognitive,r=o.cognitiveIconSmall,d=o.cognitiveTootipTitle,a="20px";return n("div",e({style:e(e({},N),{minWidth:"200px"})},{children:[n("div",e({style:{padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:t},{children:[i("span",e({style:{display:"flex",alignItems:"center",justifyContent:"center",width:a,height:a,flexShrink:0}},{children:n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[i("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),i("path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}),i("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),i("circle",{cx:"9",cy:"7",r:"4"})]}))})),i("span",e({style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left"}},{children:"Assign"}))]})),l&&n("div",e({style:{padding:"8px",borderTop:"1px solid #EBEBEB",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:function(e){return l(e)}},{children:[r&&i("span",e({style:{display:"flex",alignItems:"center",justifyContent:"center",width:a,height:a,flexShrink:0}},{children:r})),i("span",e({style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},{children:d}))]}))]}))}function P(o){var t=o.onAssignClick,l=o.onOpenCognitive,r=o.cognitiveIconSmall,d=o.cognitiveTootipTitle,a=c(!1),s=a[0],p=a[1];return n("div",e({style:{position:"relative",display:"flex"}},{children:[i("button",e({onClick:function(){return p(!s)},style:{border:"none",background:"transparent",display:"flex",alignItems:"center",cursor:"pointer",fontSize:"18px",padding:0}},{children:n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#64748B",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[i("circle",{cx:"12",cy:"12",r:"1"}),i("circle",{cx:"12",cy:"5",r:"1"}),i("circle",{cx:"12",cy:"19",r:"1"})]}))})),s&&i(O,{onAssignClick:t?function(){p(!1),t&&t()}:void 0,onOpenCognitive:l?function(e){p(!1),l&&l(e)}:void 0,cognitiveIconSmall:r,cognitiveTootipTitle:d})]}))}function U(o){var t=o.users,l=o.onClick,r=t.length;return n("div",e({onClick:l,style:{display:"flex",padding:"2px 6px",border:"1px solid #E2E8F0",background:"#fff",cursor:"pointer",fontSize:"11px",gap:6,borderRadius:"16px",alignItems:"center"}},{children:[i("p",e({style:{margin:"0px",display:"flex",alignItems:"center",color:"#475569",whiteSpace:"nowrap"}},{children:(null==t?void 0:t[0].length)>9?(null==t?void 0:t[0].slice(0,9))+"...":null==t?void 0:t[0]})),r>1&&n("p",e({style:{margin:"0px",display:"flex",alignItems:"center",borderRadius:"50px",backgroundColor:"#E2E8F0",padding:"2px 6px",color:"#475569",fontWeight:500}},{children:["+",r-1]}))]}))}function G(N){var O,G,q,J,K,Q,V,X,Y,Z,$,ee,ie,ne,oe,te,le,re=N.onClose,de=N.aiReason,ae=N.onAccept,se=N.onReject,ce=N.onIterate,pe=N.initialTone,ve=N.onRegenerate,ge=N.labels,ue=void 0===ge?{}:ge,me=N.toneLevelsConfig,fe=void 0===me?h:me,xe=N.toneColorsConfig,he=void 0===xe?y:xe,ye=N.dialConfigs,Se=void 0===ye?m:ye,be=N.actions,Ce=N.disableAllActions,ke=void 0!==Ce&&Ce,Ie=N.customStyles,we=void 0===Ie?{}:Ie,Be=N.severityChipStyles,Ae=void 0===Be?{}:Be,Te=N.customIcons,ze=void 0===Te?{}:Te,De=N.onOpenCognitive,Ee=N.showTone,Re=void 0===Ee||Ee,We=N.cognitiveSectionStyle,je=void 0===We?{}:We,Le=N.cognitiveScoreBadgeStyle,Me=void 0===Le?{}:Le,Fe=N.cognitiveScoreTextStyle,He=void 0===Fe?{}:Fe,_e=N.cognitiveStyles,Ne=void 0===_e?{}:_e,Oe=N.cognitiveClassNames,Pe=void 0===Oe?{}:Oe,Ue=N.cognitiveTitle,Ge=void 0===Ue?"Cognitive Integrity":Ue,qe=N.cognitiveTootipTitle,Je=void 0===qe?"Cognitive Decisioning":qe,Ke=N.cognitiveLeftIcon,Qe=N.cognitiveIconSmall,Ve=N.showCognitiveRightArrow,Xe=void 0===Ve||Ve,Ye=N.isStreaming,Ze=N.onAssignClick,$e=N.assignedUsers,ei=N.onReviewUsersClick,ii=fe.findIndex(function(e){return e===pe});-1===ii&&(ii=1);var ni=c(!0),oi=ni[0],ti=ni[1],li=c(!1),ri=li[0],di=li[1],ai=c(!1),si=ai[0];ai[1];var ci=c(ii),pi=ci[0],vi=ci[1],gi=c(ii)[0],ui=fe[pi],mi=he[ui]||"#BA7517",fi=pi!==gi,xi=[{id:"iterate",icon:ze.iterateIcon||i(t,{size:16,color:"#64748B"}),label:ue.btnIterate||"Iterate",color:"#64748B",onClick:ce},{id:"accept",icon:ze.acceptIcon||i(l,{size:16,color:"#10B981"}),label:ue.btnAccept||"Approve",color:"#10B981",onClick:ae},{id:"reject",icon:ze.rejectIcon||i(r,{size:16,color:"#DC2626"}),label:ue.btnReject||"Reject",color:"#DC2626",onClick:se}],hi=be||xi;return n("div",e({onClick:function(e){e.stopPropagation()},style:e(e({},S),null===(O=null==we?void 0:we.DeviationSummaryStyles)||void 0===O?void 0:O.root)},{children:[n("div",e({style:e(e(e({},b),null===(G=null==we?void 0:we.DeviationSummaryStyles)||void 0===G?void 0:G.header),{marginBottom:si?"16px":"12px"})},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:6}},{children:[i("span",{children:ze.summaryIcon||i(d,{size:16,color:"#E24B4A"})}),i("span",e({style:e(e({},C),null===(q=null==we?void 0:we.DeviationSummaryStyles)||void 0===q?void 0:q.title)},{children:ue.summaryHeader||"Summary"}))]})),$e&&$e.length>0&&i(U,{users:$e,onClick:function(e){e.stopPropagation(),null==ei||ei()}})]})),n("div",e({style:{display:"flex",gap:12,alignItems:"center"}},{children:[(Ze||De)&&i(P,{onAssignClick:Ze,onOpenCognitive:De,cognitiveIconSmall:Qe,cognitiveTootipTitle:Je}),i("button",e({onClick:re,style:e(e(e({},D),null===(J=null==we?void 0:we.DeviationSummaryStyles)||void 0===J?void 0:J.closeBtn),{color:"#64748B"})},{children:"✕"}))]}))]})),i(u,e({title:null===(K=null==de?void 0:de.deviation_details)||void 0===K?void 0:K.deviation_title},{children:i("p",e({style:e(e({},k),null===(Q=null==we?void 0:we.DeviationSummaryStyles)||void 0===Q?void 0:Q.bodyText)},{children:null===(V=null==de?void 0:de.deviation_details)||void 0===V?void 0:V.deviation_title}))})),i("p",e({style:e(e({},I),null===(X=null==we?void 0:we.DeviationSummaryStyles)||void 0===X?void 0:X.summary)},{children:null===(Y=null==de?void 0:de.deviation_details)||void 0===Y?void 0:Y.deviation_summary})),n("div",e({style:e(e({},w),null===(Z=null==we?void 0:we.DeviationSummaryStyles)||void 0===Z?void 0:Z.impactContainer)},{children:[n("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[n("button",e({onClick:function(){return ti(!oi)},style:e(e({},B),null===($=null==we?void 0:we.DeviationSummaryStyles)||void 0===$?void 0:$.impactToggle)},{children:[i("span",e({style:e(e({},A),null===(ee=null==we?void 0:we.DeviationSummaryStyles)||void 0===ee?void 0:ee.impactToggleLabel)},{children:ue.impactHeader||"Impact"})),i("span",e({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:oi?"rotate(180deg)":"rotate(0deg)"}},{children:i(a,{size:16,color:"#E24B4A"})}))]})),i(x,{type:(null==de?void 0:de.severity)||"Medium",customStyles:Ae})]})),oi&&i("p",e({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0",maxHeight:"100px",overflow:"auto"}},{children:null!==(ne=null===(ie=null==de?void 0:de.deviation_details)||void 0===ie?void 0:ie.deviation_impact)&&void 0!==ne?ne:ue.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),i("div",e({style:e(e({},T),null===(oe=null==we?void 0:we.DeviationSummaryStyles)||void 0===oe?void 0:oe.actionContainer)},{children:hi.map(function(i){var o,t,l=ke||i.disabled,r=l?e(e({cursor:"not-allowed",opacity:.5},null===(o=null==we?void 0:we.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtnDisabled),i.disabledStyle):{};return n("button",e({style:e(e(e(e(e({},z),null===(t=null==we?void 0:we.DeviationSummaryStyles)||void 0===t?void 0:t.actionBtn),{color:i.color}),i.style),r),onClick:l?void 0:i.onClick,disabled:l},{children:[i.icon,i.label]}),i.id)})})),Re&&n("div",e({style:e(e({},E),null===(te=null==we?void 0:we.DeviationSummaryStyles)||void 0===te?void 0:te.toneContainer)},{children:[n("button",e({onClick:function(){return di(!ri)},style:e(e({},R),null===(le=null==we?void 0:we.DeviationSummaryStyles)||void 0===le?void 0:le.toneToggleBtn)},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:8}},{children:[i(f,{toneIndex:pi,configs:Se}),i("span",e({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:ue.toneHeader||"Redline Tone"}))]})),i("span",e({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:ri?"rotate(180deg)":"rotate(0deg)"}},{children:i(a,{size:16,color:"#111"})}))]})),ri&&n(o,{children:[i("p",e({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:ue.toneDescription||"Controls how assertively AI is redlining"})),i(p,{isDirty:fi,onToneChange:function(e){vi(e)},toneColor:mi,toneIndex:pi,onClickRegenerate:function(){return null==ve?void 0:ve(ui)},toneLabels:fe,isStreaming:Ye,aiReason:de})]})]})),De&&n("div",e({className:null==Pe?void 0:Pe.section,onClick:function(e){e.stopPropagation(),De&&De(e)},style:e(e(e({},W),null==Ne?void 0:Ne.section),je)},{children:[n("div",e({className:null==Pe?void 0:Pe.headerLeft,style:e(e({},j),null==Ne?void 0:Ne.headerLeft)},{children:[i("span",e({className:null==Pe?void 0:Pe.titleIcon,style:e(e({},L),null==Ne?void 0:Ne.titleIcon)},{children:null!=Ke?Ke:i(v,{})})),i("div",e({className:null==Pe?void 0:Pe.cognitiveTitle,style:e(e({},M),null==Ne?void 0:Ne.cognitiveTitle)},{children:Ge}))]})),n("div",e({className:null==Pe?void 0:Pe.headerRight,style:e(e({},F),null==Ne?void 0:Ne.headerRight)},{children:[void 0!==(null==de?void 0:de.relevance_score)&&null!==(null==de?void 0:de.relevance_score)?n("span",e({className:null==Pe?void 0:Pe.scoreBadge,style:e(e(e({},H),null==Ne?void 0:Ne.scoreBadge),Me)},{children:[i(g,{}),n("span",e({className:null==Pe?void 0:Pe.scoreText,style:e(e(e({},_),null==Ne?void 0:Ne.scoreText),He)},{children:[Math.round(Number(de.relevance_score)),"%"]}))]})):null,Xe&&i("span",e({style:{display:"flex",alignItems:"center"}},{children:i(s,{size:16,color:"#64748B"})}))]}))]}))]}))}export{O as AssignMenu,U as DisplayUsers,P as KebabMenu,G as default};
1
+ import{__assign as e}from"tslib";import{jsx as i,jsxs as n,Fragment as o}from"react/jsx-runtime";import{PenLine as t,CheckCircle as l,XCircle as r,Info as d,ChevronDown as a,ChevronRight as s}from"lucide-react";import{useState as c}from"react";import{ToneToggle as p}from"./ToneToggle.js";import"../CognitiveComponents/CitationComponent.module.css.js";import{ReactComponent as v}from"../icons/cognitiveBrain.svg.js";import{ReactComponent as g}from"../icons/aiMagic.svg.js";import{Tooltip as u}from"@mui/material";import{AiReasonMarkdownWrapper as m}from"../../ai-reasoning/AiReasonMarkdownWrapper.js";var f=[{color:"#1D9E75",angle:-90,arcD:"M1 13 A10 10 0 0 1 1 13"},{color:"#BA7517",angle:0,arcD:"M1 13 A10 10 0 0 1 11 3"},{color:"#E24B4A",angle:90,arcD:"M1 13 A10 10 0 0 1 21 13"}],x=function(o){var t=o.toneIndex,l=o.configs,r=void 0===l?f:l,d=r[Math.min(t,r.length-1)]||r[1]||r[0],a=d.color,s=d.angle,c=d.arcD,p=(s-90)*Math.PI/180,v=11+9*Math.cos(p),g=13+9*Math.sin(p);return n("svg",e({width:"22",height:"14",viewBox:"0 0 22 14",fill:"none"},{children:[i("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),i("path",{d:c,stroke:a,strokeWidth:"2.5",strokeLinecap:"round"}),i("line",{x1:"11",y1:"13",x2:v,y2:g,stroke:a,strokeWidth:"2",strokeLinecap:"round"})]}))},y=function(n){var o=n.type,t=n.customStyles,l=void 0===t?{}:t,r=e(e({},{High:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #FECACA",background:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:"500"},Medium:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #F2E5A1",background:"#FFFBEB",color:"#B45309",fontSize:"11px",fontWeight:"500"},Low:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #8098F9",background:"#DBEAFE",color:"#444CE7",fontSize:"11px",fontWeight:"500"}}),l),d=r[o]||r.Medium;return i("div",e({style:d},{children:o}))},h=["Lenient","Balanced","Aggressive"],S={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},b={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"450px",overflow:"auto"},C={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12,position:"relative"},k={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},I={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},w={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px",maxHeight:"100px",overflow:"auto"},B={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},A={fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0",maxHeight:"100px",overflow:"auto"},T={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},D={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},z={display:"flex",gap:8,marginBottom:18},E={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:12,fontWeight:500,padding:"7px 4px",borderRadius:8,border:"0.5px solid #ccc",background:"#fff",cursor:"pointer"},R={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},W={borderTop:"0.5px solid #eee",padding:"14px 0px"},j={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},L={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},M={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},F={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},H={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},N={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},O={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"},P={padding:"4px",border:"1px solid #EBEBEB",position:"absolute",width:"100px",textAlign:"center",borderRadius:"9px",background:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",zIndex:1e3,top:"100%",right:0};function U(o){var t=o.onAssignClick,l=o.onOpenCognitive,r=o.cognitiveIconSmall,d=o.cognitiveTootipTitle,a="20px";return n("div",e({style:e(e({},P),{minWidth:"200px"})},{children:[n("div",e({style:{padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:t},{children:[i("span",e({style:{display:"flex",alignItems:"center",justifyContent:"center",width:a,height:a,flexShrink:0}},{children:n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[i("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),i("path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}),i("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),i("circle",{cx:"9",cy:"7",r:"4"})]}))})),i("span",e({style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left"}},{children:"Assign"}))]})),l&&n("div",e({style:{padding:"8px",borderTop:"1px solid #EBEBEB",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:function(e){return l(e)}},{children:[r&&i("span",e({style:{display:"flex",alignItems:"center",justifyContent:"center",width:a,height:a,flexShrink:0}},{children:r})),i("span",e({style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},{children:d}))]}))]}))}function G(o){var t=o.onAssignClick,l=o.onOpenCognitive,r=o.cognitiveIconSmall,d=o.cognitiveTootipTitle,a=c(!1),s=a[0],p=a[1];return n("div",e({style:{position:"relative",display:"flex"}},{children:[i("button",e({onClick:function(){return p(!s)},style:{border:"none",background:"transparent",display:"flex",alignItems:"center",cursor:"pointer",fontSize:"18px",padding:0}},{children:n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#64748B",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[i("circle",{cx:"12",cy:"12",r:"1"}),i("circle",{cx:"12",cy:"5",r:"1"}),i("circle",{cx:"12",cy:"19",r:"1"})]}))})),s&&i(U,{onAssignClick:t?function(){p(!1),t&&t()}:void 0,onOpenCognitive:l?function(e){p(!1),l&&l(e)}:void 0,cognitiveIconSmall:r,cognitiveTootipTitle:d})]}))}function V(o){var t=o.users,l=o.onClick,r=t.length;return n("div",e({onClick:l,style:{display:"flex",padding:"2px 6px",border:"1px solid #E2E8F0",background:"#fff",cursor:"pointer",fontSize:"11px",gap:6,borderRadius:"16px",alignItems:"center"}},{children:[i("p",e({style:{margin:"0px",display:"flex",alignItems:"center",color:"#475569",whiteSpace:"nowrap"}},{children:(null==t?void 0:t[0].length)>9?(null==t?void 0:t[0].slice(0,9))+"...":null==t?void 0:t[0]})),r>1&&n("p",e({style:{margin:"0px",display:"flex",alignItems:"center",borderRadius:"50px",backgroundColor:"#E2E8F0",padding:"2px 6px",color:"#475569",fontWeight:500}},{children:["+",r-1]}))]}))}function $(P){var U,$,q,J,K,Q,X,Y,Z,ee,ie,ne,oe,te,le,re,de,ae,se,ce=P.onClose,pe=P.aiReason,ve=P.onAccept,ge=P.onReject,ue=P.onIterate,me=P.initialTone,fe=P.onRegenerate,xe=P.labels,ye=void 0===xe?{}:xe,he=P.toneLevelsConfig,Se=void 0===he?h:he,be=P.toneColorsConfig,Ce=void 0===be?S:be,ke=P.dialConfigs,Ie=void 0===ke?f:ke,we=P.actions,Be=P.disableAllActions,Ae=void 0!==Be&&Be,Te=P.customStyles,De=void 0===Te?{}:Te,ze=P.severityChipStyles,Ee=void 0===ze?{}:ze,Re=P.customIcons,We=void 0===Re?{}:Re,je=P.onOpenCognitive,Le=P.showTone,Me=void 0===Le||Le,Fe=P.cognitiveSectionStyle,He=void 0===Fe?{}:Fe,_e=P.cognitiveScoreBadgeStyle,Ne=void 0===_e?{}:_e,Oe=P.cognitiveScoreTextStyle,Pe=void 0===Oe?{}:Oe,Ue=P.cognitiveStyles,Ge=void 0===Ue?{}:Ue,Ve=P.cognitiveClassNames,$e=void 0===Ve?{}:Ve,qe=P.cognitiveTitle,Je=void 0===qe?"Cognitive Integrity":qe,Ke=P.cognitiveTootipTitle,Qe=void 0===Ke?"Cognitive Decisioning":Ke,Xe=P.cognitiveLeftIcon,Ye=P.cognitiveIconSmall,Ze=P.showCognitiveRightArrow,ei=void 0===Ze||Ze,ii=P.isStreaming,ni=P.onAssignClick,oi=P.assignedUsers,ti=P.onReviewUsersClick,li=Se.findIndex(function(e){return e===me});-1===li&&(li=1);var ri=c(!0),di=ri[0],ai=ri[1],si=c(!1),ci=si[0],pi=si[1],vi=c(!1),gi=vi[0];vi[1];var ui=c(li),mi=ui[0],fi=ui[1],xi=c(li)[0],yi=Se[mi],hi=Ce[yi]||"#BA7517",Si=mi!==xi,bi=[{id:"iterate",icon:We.iterateIcon||i(t,{size:16,color:"#64748B"}),label:ye.btnIterate||"Iterate",color:"#64748B",onClick:ue},{id:"accept",icon:We.acceptIcon||i(l,{size:16,color:"#10B981"}),label:ye.btnAccept||"Approve",color:"#10B981",onClick:ve},{id:"reject",icon:We.rejectIcon||i(r,{size:16,color:"#DC2626"}),label:ye.btnReject||"Reject",color:"#DC2626",onClick:ge}],Ci=we||bi;return n("div",e({onClick:function(e){e.stopPropagation()},style:e(e({},b),null===(U=null==De?void 0:De.DeviationSummaryStyles)||void 0===U?void 0:U.root)},{children:[n("div",e({style:e(e(e({},C),null===($=null==De?void 0:De.DeviationSummaryStyles)||void 0===$?void 0:$.header),{marginBottom:gi?"16px":"12px"})},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:6}},{children:[i("span",{children:We.summaryIcon||i(d,{size:16,color:"#E24B4A"})}),i("span",e({style:e(e({},k),null===(q=null==De?void 0:De.DeviationSummaryStyles)||void 0===q?void 0:q.title)},{children:ye.summaryHeader||"Summary"}))]})),oi&&oi.length>0&&i(V,{users:oi,onClick:function(e){e.stopPropagation(),null==ti||ti()}})]})),n("div",e({style:{display:"flex",gap:12,alignItems:"center"}},{children:[(ni||je)&&i(G,{onAssignClick:ni,onOpenCognitive:je,cognitiveIconSmall:Ye,cognitiveTootipTitle:Qe}),i("button",e({onClick:ce,style:e(e(e({},R),null===(J=null==De?void 0:De.DeviationSummaryStyles)||void 0===J?void 0:J.closeBtn),{color:"#64748B"})},{children:"✕"}))]}))]})),i(u,e({title:null===(K=null==pe?void 0:pe.deviation_details)||void 0===K?void 0:K.deviation_title},{children:i("p",e({style:e(e({},I),null===(Q=null==De?void 0:De.DeviationSummaryStyles)||void 0===Q?void 0:Q.bodyText)},{children:null===(X=null==pe?void 0:pe.deviation_details)||void 0===X?void 0:X.deviation_title}))})),i("p",e({style:e(e({},w),null===(Y=null==De?void 0:De.DeviationSummaryStyles)||void 0===Y?void 0:Y.summary)},{children:null===(Z=null==pe?void 0:pe.deviation_details)||void 0===Z?void 0:Z.deviation_summary})),n("div",e({style:e(e({},B),null===(ee=null==De?void 0:De.DeviationSummaryStyles)||void 0===ee?void 0:ee.impactContainer)},{children:[n("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[n("button",e({onClick:function(){return ai(!di)},style:e(e({},T),null===(ie=null==De?void 0:De.DeviationSummaryStyles)||void 0===ie?void 0:ie.impactToggle)},{children:[i("span",e({style:e(e({},D),null===(ne=null==De?void 0:De.DeviationSummaryStyles)||void 0===ne?void 0:ne.impactToggleLabel)},{children:ye.impactHeader||"Impact"})),i("span",e({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:di?"rotate(180deg)":"rotate(0deg)"}},{children:i(a,{size:16,color:"#E24B4A"})}))]})),i(y,{type:(null==pe?void 0:pe.severity)||"Medium",customStyles:Ee})]})),di&&i("div",e({style:e(e({},A),null===(oe=null==De?void 0:De.DeviationSummaryStyles)||void 0===oe?void 0:oe.impactText)},{children:i(m,{message:"".concat(null!==(le=null===(te=null==pe?void 0:pe.deviation_details)||void 0===te?void 0:te.deviation_impact)&&void 0!==le?le:ye.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."," [View chat](chat_citation$all)"),customStyles:null===(re=null==De?void 0:De.DeviationSummaryStyles)||void 0===re?void 0:re.impactMarkdown})}))]})),i("div",e({style:e(e({},z),null===(de=null==De?void 0:De.DeviationSummaryStyles)||void 0===de?void 0:de.actionContainer)},{children:Ci.map(function(i){var o,t,l=Ae||i.disabled,r=l?e(e({cursor:"not-allowed",opacity:.5},null===(o=null==De?void 0:De.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtnDisabled),i.disabledStyle):{};return n("button",e({style:e(e(e(e(e({},E),null===(t=null==De?void 0:De.DeviationSummaryStyles)||void 0===t?void 0:t.actionBtn),{color:i.color}),i.style),r),onClick:l?void 0:i.onClick,disabled:l},{children:[i.icon,i.label]}),i.id)})})),Me&&n("div",e({style:e(e({},W),null===(ae=null==De?void 0:De.DeviationSummaryStyles)||void 0===ae?void 0:ae.toneContainer)},{children:[n("button",e({onClick:function(){return pi(!ci)},style:e(e({},j),null===(se=null==De?void 0:De.DeviationSummaryStyles)||void 0===se?void 0:se.toneToggleBtn)},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:8}},{children:[i(x,{toneIndex:mi,configs:Ie}),i("span",e({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:ye.toneHeader||"Redline Tone"}))]})),i("span",e({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:ci?"rotate(180deg)":"rotate(0deg)"}},{children:i(a,{size:16,color:"#111"})}))]})),ci&&n(o,{children:[i("p",e({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:ye.toneDescription||"Controls how assertively AI is redlining"})),i(p,{isDirty:Si,onToneChange:function(e){fi(e)},toneColor:hi,toneIndex:mi,onClickRegenerate:function(){return null==fe?void 0:fe(yi)},toneLabels:Se,isStreaming:ii,aiReason:pe})]})]})),je&&n("div",e({className:null==$e?void 0:$e.section,onClick:function(e){e.stopPropagation(),je&&je(e)},style:e(e(e({},L),null==Ge?void 0:Ge.section),He)},{children:[n("div",e({className:null==$e?void 0:$e.headerLeft,style:e(e({},M),null==Ge?void 0:Ge.headerLeft)},{children:[i("span",e({className:null==$e?void 0:$e.titleIcon,style:e(e({},F),null==Ge?void 0:Ge.titleIcon)},{children:null!=Xe?Xe:i(v,{})})),i("div",e({className:null==$e?void 0:$e.cognitiveTitle,style:e(e({},H),null==Ge?void 0:Ge.cognitiveTitle)},{children:Je}))]})),n("div",e({className:null==$e?void 0:$e.headerRight,style:e(e({},_),null==Ge?void 0:Ge.headerRight)},{children:[void 0!==(null==pe?void 0:pe.relevance_score)&&null!==(null==pe?void 0:pe.relevance_score)?n("span",e({className:null==$e?void 0:$e.scoreBadge,style:e(e(e({},N),null==Ge?void 0:Ge.scoreBadge),Ne)},{children:[i(g,{}),n("span",e({className:null==$e?void 0:$e.scoreText,style:e(e(e({},O),null==Ge?void 0:Ge.scoreText),Pe)},{children:[Math.round(Number(pe.relevance_score)),"%"]}))]})):null,ei&&i("span",e({style:{display:"flex",alignItems:"center"}},{children:i(s,{size:16,color:"#64748B"})}))]}))]}))]}))}export{U as AssignMenu,V as DisplayUsers,G as KebabMenu,$ as default};
2
2
  //# sourceMappingURL=DeviationSummary.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as o}from"react/jsx-runtime";import{Undo2 as n}from"lucide-react";import{useState as r}from"react";import l from"./PopupDefaults.js";import{Tooltip as d}from"@mui/material";import{DisplayUsers as a}from"./DeviationSummary.js";function c(e){var t=new Date(e);return isNaN(t.getTime())?e:new Date(e).toLocaleString("en-US",{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).replace(" AM","AM").replace(" PM","PM")}var s=function(){return i("svg",e({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t("circle",{cx:"11",cy:"11",r:"10",stroke:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return i("svg",e({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t("circle",{cx:"11",cy:"11",r:"10",stroke:"#ef4444",strokeWidth:"2",fill:"#fff1f2"}),t("path",{d:"M7.5 7.5l7 7M14.5 7.5l-7 7",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}))},f=function(){return t("svg",e({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:t("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#94a3b8",strokeWidth:"1.8",strokeLinecap:"round"})}))},u=function(){return i("svg",e({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t("path",{d:"M11 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},p=function(){return i("svg",e({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},k=function(i){var o=i.open;return t("svg",e({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:o?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},b=function(o){var n=o.color,r=void 0===n?"#3b82f6":n;return i("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:r,strokeWidth:"1.5",strokeLinecap:"round"}),t("path",{d:"M1.5 3.5v4h4",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M8 5v3.5l2 1.5",stroke:r,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},g=function(){return i("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},v=function(){return i("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M2 8h12M10 4l4 4-4 4",stroke:"#64748b",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M4 5l-2 3 2 3",stroke:"#64748b",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function m(n){var r=n.title,l=n.open,d=n.onToggle,a=n.children;return i("div",{children:[i("div",e({onClick:d,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t("span",e({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:r})),t(k,{open:l})]})),t("div",e({style:{maxHeight:l?100:0,opacity:l?1:0,transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:l&&t(o,{children:a})}))]})}function y(t){var o=t.icon,n=t.label,r=t.onClick,l=t.customStyle,d=void 0===l?{}:l,a=t.disabled,c=void 0!==a&&a,s=t.disabledStyle,h=void 0===s?{}:s,f=e(e({display:"flex",alignItems:"center",gap:10,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:c?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:c?.5:1},d),c?h:{});return i("button",e({onClick:c?void 0:r,disabled:c,style:f,onMouseEnter:function(e){c||(e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)")},onMouseLeave:function(e){c||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[o,n]}))}function x(o){var k=o.status,x=o.onClose,B=o.impactText,C=o.secondText,w=o.actionTakenByName,L=o.actionTakenAtTime,S=void 0===L?"NA":L,R=o.onHistory,W=o.onIterate,T=o.onReinstate,M=o.onRevert,D=o.disableAllActions,I=void 0!==D&&D,j=o.impactTitle,z=void 0===j?"Impact":j,A=o.customConfigs,N=void 0===A?{}:A,U=o.customStyles,H=void 0===U?{}:U,F=o.secondaryTitle;o.onAssignClick;var E=o.onReviewUsersClick,O=o.assignedUsers,P=r(!0),Y=P[0],q=P[1],G=r(!0),J=G[0],K=G[1],Q=r(!1),V=Q[0],X=Q[1],Z=r(!1);Z[0],Z[1];var $={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t(u,{}),StatusIcon:t(s,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t(b,{}),label:"History",onClick:R},{icon:t(n,{size:17}),label:"Revert",onClick:M},{icon:t(v,{}),label:"Iterate",onClick:W}],fallbackText:"No original text available"},_={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t(p,{}),StatusIcon:t(h,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t(b,{color:"#3b82f6"}),label:"History",onClick:R},{icon:t(g,{}),label:"Reinstate",onClick:T},{icon:t(v,{}),label:"Iterate",onClick:W}],fallbackText:"No rejected recommendation available"},ee={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t(u,{}),StatusIcon:t(n,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t(b,{}),label:"History",onClick:R},{icon:t(v,{}),label:"Iterate",onClick:W}],fallbackText:"No reverted redline available"},te=e(e({},"accepted"===k?$:"rejected"===k?_:ee),N[k]||{});return i("div",e({style:e(e(e({},l.RedlineCardDefaults.root),{animation:V?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":l.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),H.root)},{children:[i("div",e({style:e(e(e({},l.RedlineCardDefaults.header),{background:te.headerBg,borderBottom:"1.5px solid ".concat(te.headerBorder)}),H.header)},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[t("div",e({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:te.StatusIcon})),i("div",{children:[t("span",e({style:{fontSize:15,fontWeight:700,color:te.titleColor,letterSpacing:"-0.01em"}},{children:te.label})),t(d,e({title:F},{children:t("span",e({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",fontSize:12,color:"gray"}},{children:F}))}))]}),O&&O.length>0&&t(a,{users:O,onClick:function(e){e.stopPropagation(),null==E||E()}})]})),t("button",e({onClick:function(){X(!0),x()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t(f,{})}))]})),i("div",e({style:e(e({},l.RedlineCardDefaults.body),H.body)},{children:[i("div",e({style:e(e({},l.RedlineCardDefaults.meta),H.meta)},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[te.UserIcon,t("span",e({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:te.metaLabel}))]})),i("div",e({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[t(d,e({title:w},{children:t("span",e({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"}},{children:w}))})),t("span",{children:c(S)})]}))]})),t("div",{style:e(e({},l.RedlineCardDefaults.divider),H.divider)}),t(m,e({title:z,open:Y,onToggle:function(){return q(function(e){return!e})}},{children:t("p",e({style:e(e({},l.RedlineCardDefaults.impactText),H.impactText)},{children:B||""}))})),t("div",{style:e(e({},l.RedlineCardDefaults.divider),H.divider)}),t(m,e({title:te.secondTitle,open:J,onToggle:function(){return K(function(e){return!e})}},{children:C?t("div",e({style:e(e(e({},l.RedlineCardDefaults.secondSection),{background:te.secondBg,border:"1.5px solid ".concat(te.secondBorder)}),H.secondSection)},{children:C})):i("div",e({style:e(e({},l.RedlineCardDefaults.fallbackSectionStyle),H.fallbackSectionStyle)},{children:[te.fallbackText," "]}))})),t("div",e({style:e(e({},l.RedlineCardDefaults.actionsContainer),H.actionsContainer)},{children:te.actions.map(function(i){return t(y,{icon:i.icon,label:i.label,onClick:i.onClick,customStyle:e(e({},i.style),H.actionBtn),disabled:I||i.disabled,disabledStyle:H.actionBtnDisabled},i.label)})}))]}))]}))}export{s as ApprovedIcon,k as ChevronIcon,f as CloseIcon,b as HistoryIcon,v as IterateIcon,x as RedlineCard,g as ReinstateIcon,h as RejectedIcon,u as UserApprovedIcon,p as UserRejectedIcon,c as formatDate};
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as o}from"react/jsx-runtime";import{Undo2 as n}from"lucide-react";import{useState as r}from"react";import l from"./PopupDefaults.js";import{Tooltip as a}from"@mui/material";import{AiReasonMarkdownWrapper as d}from"../../ai-reasoning/AiReasonMarkdownWrapper.js";import{DisplayUsers as c}from"./DeviationSummary.js";function s(e){var t=new Date(e);return isNaN(t.getTime())?e:new Date(e).toLocaleString("en-US",{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).replace(" AM","AM").replace(" PM","PM")}var h=function(){return i("svg",e({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t("circle",{cx:"11",cy:"11",r:"10",stroke:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},f=function(){return i("svg",e({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t("circle",{cx:"11",cy:"11",r:"10",stroke:"#ef4444",strokeWidth:"2",fill:"#fff1f2"}),t("path",{d:"M7.5 7.5l7 7M14.5 7.5l-7 7",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}))},u=function(){return t("svg",e({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:t("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#94a3b8",strokeWidth:"1.8",strokeLinecap:"round"})}))},p=function(){return i("svg",e({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t("path",{d:"M11 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},k=function(){return i("svg",e({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},b=function(i){var o=i.open;return t("svg",e({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:o?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},g=function(o){var n=o.color,r=void 0===n?"#3b82f6":n;return i("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:r,strokeWidth:"1.5",strokeLinecap:"round"}),t("path",{d:"M1.5 3.5v4h4",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M8 5v3.5l2 1.5",stroke:r,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},v=function(){return i("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},m=function(){return i("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M2 8h12M10 4l4 4-4 4",stroke:"#64748b",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M4 5l-2 3 2 3",stroke:"#64748b",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function y(n){var r=n.title,l=n.open,a=n.onToggle,d=n.children;return i("div",{children:[i("div",e({onClick:a,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t("span",e({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:r})),t(b,{open:l})]})),t("div",e({style:{maxHeight:l?100:0,opacity:l?1:0,transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:l&&t(o,{children:d})}))]})}function x(t){var o=t.icon,n=t.label,r=t.onClick,l=t.customStyle,a=void 0===l?{}:l,d=t.disabled,c=void 0!==d&&d,s=t.disabledStyle,h=void 0===s?{}:s,f=e(e({display:"flex",alignItems:"center",gap:10,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:c?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:c?.5:1},a),c?h:{});return i("button",e({onClick:c?void 0:r,disabled:c,style:f,onMouseEnter:function(e){c||(e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)")},onMouseLeave:function(e){c||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[o,n]}))}function B(o){var b=o.status,B=o.onClose,C=o.impactText,w=o.secondText,L=o.actionTakenByName,S=o.actionTakenAtTime,R=void 0===S?"NA":S,W=o.onHistory,T=o.onIterate,M=o.onReinstate,D=o.onRevert,I=o.disableAllActions,j=void 0!==I&&I,A=o.impactTitle,z=void 0===A?"Impact":A,N=o.customConfigs,U=void 0===N?{}:N,H=o.customStyles,F=void 0===H?{}:H,E=o.secondaryTitle;o.onAssignClick;var O=o.onReviewUsersClick,P=o.assignedUsers,V=r(!0),Y=V[0],$=V[1],_=r(!0),q=_[0],G=_[1],J=r(!1),K=J[0],Q=J[1],X=r(!1);X[0],X[1];var Z={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t(p,{}),StatusIcon:t(h,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t(g,{}),label:"History",onClick:W},{icon:t(n,{size:17}),label:"Revert",onClick:D},{icon:t(m,{}),label:"Iterate",onClick:T}],fallbackText:"No original text available"},ee={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t(k,{}),StatusIcon:t(f,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t(g,{color:"#3b82f6"}),label:"History",onClick:W},{icon:t(v,{}),label:"Reinstate",onClick:M},{icon:t(m,{}),label:"Iterate",onClick:T}],fallbackText:"No rejected recommendation available"},te={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t(p,{}),StatusIcon:t(n,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t(g,{}),label:"History",onClick:W},{icon:t(m,{}),label:"Iterate",onClick:T}],fallbackText:"No reverted redline available"},ie=e(e({},"accepted"===b?Z:"rejected"===b?ee:te),U[b]||{});return i("div",e({style:e(e(e({},l.RedlineCardDefaults.root),{animation:K?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":l.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),F.root)},{children:[i("div",e({style:e(e(e({},l.RedlineCardDefaults.header),{background:ie.headerBg,borderBottom:"1.5px solid ".concat(ie.headerBorder)}),F.header)},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[t("div",e({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:ie.StatusIcon})),i("div",{children:[t("span",e({style:{fontSize:15,fontWeight:700,color:ie.titleColor,letterSpacing:"-0.01em"}},{children:ie.label})),t(a,e({title:E},{children:t("span",e({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",fontSize:12,color:"gray"}},{children:E}))}))]}),P&&P.length>0&&t(c,{users:P,onClick:function(e){e.stopPropagation(),null==O||O()}})]})),t("button",e({onClick:function(){Q(!0),B()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t(u,{})}))]})),i("div",e({style:e(e({},l.RedlineCardDefaults.body),F.body)},{children:[i("div",e({style:e(e({},l.RedlineCardDefaults.meta),F.meta)},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[ie.UserIcon,t("span",e({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:ie.metaLabel}))]})),i("div",e({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[t(a,e({title:L},{children:t("span",e({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"}},{children:L}))})),t("span",{children:s(R)})]}))]})),t("div",{style:e(e({},l.RedlineCardDefaults.divider),F.divider)}),t(y,e({title:z,open:Y,onToggle:function(){return $(function(e){return!e})}},{children:t("div",e({style:e(e({},l.RedlineCardDefaults.impactText),F.impactText)},{children:t(d,{message:"".concat(C||""," [View chat](chat_citation$all)"),customStyles:F.impactMarkdown})}))})),t("div",{style:e(e({},l.RedlineCardDefaults.divider),F.divider)}),t(y,e({title:ie.secondTitle,open:q,onToggle:function(){return G(function(e){return!e})}},{children:w?t("div",e({style:e(e(e({},l.RedlineCardDefaults.secondSection),{background:ie.secondBg,border:"1.5px solid ".concat(ie.secondBorder)}),F.secondSection)},{children:w})):i("div",e({style:e(e({},l.RedlineCardDefaults.fallbackSectionStyle),F.fallbackSectionStyle)},{children:[ie.fallbackText," "]}))})),t("div",e({style:e(e({},l.RedlineCardDefaults.actionsContainer),F.actionsContainer)},{children:ie.actions.map(function(i){return t(x,{icon:i.icon,label:i.label,onClick:i.onClick,customStyle:e(e({},i.style),F.actionBtn),disabled:j||i.disabled,disabledStyle:F.actionBtnDisabled},i.label)})}))]}))]}))}export{h as ApprovedIcon,b as ChevronIcon,u as CloseIcon,g as HistoryIcon,m as IterateIcon,B as RedlineCard,v as ReinstateIcon,f as RejectedIcon,p as UserApprovedIcon,k as UserRejectedIcon,s as formatDate};
2
2
  //# sourceMappingURL=RedlineStatusCard.js.map
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { TAIReasoning } from '../../../types/aiReasoning.type';
2
+ import { MarkdownCustomStyles, TAIReasoning } from '../../../types/aiReasoning.type';
3
3
  import '../CognitiveComponents/CitationComponent.module.css';
4
4
  type ToneType = 'Lenient' | 'Balanced' | 'Aggressive' | string;
5
5
  export interface DialIconConfig {
@@ -54,6 +54,8 @@ export interface DeviationSummaryProps {
54
54
  toneContainer?: React.CSSProperties;
55
55
  title?: React.CSSProperties;
56
56
  summary?: React.CSSProperties;
57
+ impactText?: React.CSSProperties;
58
+ impactMarkdown?: MarkdownCustomStyles;
57
59
  impactToggle?: React.CSSProperties;
58
60
  impactToggleLabel?: React.CSSProperties;
59
61
  actionBtn?: React.CSSProperties;
@@ -1 +1 @@
1
- {"version":3,"file":"DeviationSummary.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,qDAAqD,CAAC;AAO7D,KAAK,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACvC;AAED,MAAM,WAAW,qBAAqB;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,IAAI,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AAK,IAAI,CAAA;CAAE,2CAoC5H;AAED,iBAAS,gBAAgB,CAAC,EACtB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,WAAW,EACX,YAAY,EACZ,MAAW,EACX,gBAAsC,EACtC,gBAAsC,EACtC,WAAkC,EAClC,OAAO,EACP,iBAAyB,EACzB,YAAiB,EACjB,kBAAuB,EACvB,WAAgB,EAChB,eAAe,EACf,QAAe,EACf,qBAA0B,EAC1B,wBAA6B,EAC7B,uBAA4B,EAC5B,eAAoB,EACpB,mBAAwB,EACxB,cAAsC,EACtC,oBAA8C,EAC9C,iBAAiB,EACjB,kBAAkB,EAClB,uBAA8B,EAC9B,WAAW,EACX,aAAa,EACb,aAAa,EACb,kBAAkB,GACrB,EAAE,qBAAqB,2CA8PvB;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"DeviationSummary.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,qDAAqD,CAAC;AAQ7D,KAAK,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB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kdownCustomStyles } from "../../../types/aiReasoning.type";
2
3
  export interface AssignMenuProps {
3
4
  onAssignClick: () => void;
4
5
  }
@@ -63,6 +64,7 @@ interface RedlineCardProps {
63
64
  meta?: CSSProperties;
64
65
  divider?: CSSProperties;
65
66
  impactText?: CSSProperties;
67
+ impactMarkdown?: MarkdownCustomStyles;
66
68
  secondSection?: CSSProperties;
67
69
  actionsContainer?: CSSProperties;
68
70
  actionBtn?: CSSProperties;
@@ -1 +1 @@
1
- {"version":3,"file":"RedlineStatusCard.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAqB3D,MAAM,WAAW,eAAe;IAC5B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B;AAKD,KAAK,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAI,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,SAAS,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,YAAY,CA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AAE;QACX,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,OAAO,CAAC,EAAE,aAAa,CAAC;QACxB,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,gBAAgB,CAAC,EAAE,aAAa,CAAC;QACjC,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,iBAAiB,CAAC,EAAE,aAAa,CAAC;QAClC,oBAAoB,CAAC,EAAE,aAAa,CAAA;KACvC,CAAC;IAEF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,wBAAgB,WAAW,CAAC,EACxB,MAAM,EACN,OAAO,EACP,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,iBAAwB,EACxB,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,iBAAyB,EACzB,WAAsB,EACtB,aAAkB,EAClB,YAAiB,EACjB,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,aAAa,GAChB,EAAE,gBAAgB,2CAgOlB"}
1
+ {"version":3,"file":"RedlineStatusCard.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAkBvE,MAAM,WAAW,eAAe;IAC5B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B;AAKD,KAAK,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU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AC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,wBAAgB,WAAW,CAAC,EACxB,MAAM,EACN,OAAO,EACP,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,iBAAwB,EACxB,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,iBAAyB,EACzB,WAAsB,EACtB,aAAkB,EAClB,YAAiB,EACjB,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,aAAa,GAChB,EAAE,gBAAgB,2CAmOlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.218",
3
+ "version": "0.0.219",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",