@viswa-test/test-citation 0.0.230 → 0.0.232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  2. package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +2 -0
  3. package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js.map +1 -0
  4. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  5. package/dist/cjs/features/CognitiveCompare/components/connectedLines.js +1 -1
  6. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  7. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  8. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  9. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +2 -0
  10. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +1 -0
  11. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  12. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
  13. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
  14. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  15. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  16. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  17. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  18. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  19. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  20. package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +2 -0
  21. package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js.map +1 -0
  22. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  23. package/dist/features/CognitiveCompare/components/connectedLines.js +1 -1
  24. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  25. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  26. package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  27. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +2 -0
  28. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +1 -0
  29. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  30. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
  31. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
  32. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  33. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  34. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  35. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  36. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  37. package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
  38. package/dist/types/src/RedlineApprovalCardTest.d.ts +1 -0
  39. package/dist/types/src/RedlineApprovalCardTest.d.ts.map +1 -0
  40. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -1
  41. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +1 -1
  42. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  43. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +5 -0
  44. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  45. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts +1 -0
  46. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts.map +1 -1
  47. package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts +3 -0
  48. package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +1 -0
  49. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts +3379 -0
  50. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +1 -0
  51. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
  52. package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts.map +1 -1
  53. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +2 -1
  54. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
  55. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts +1 -1
  56. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
  57. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts +1 -1
  58. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -1
  59. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  60. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +2 -6
  61. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -1
  62. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +2 -6
  63. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -1
  64. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +6 -12
  65. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  66. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +2 -1
  67. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  68. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +0 -4
  69. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  70. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  71. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +0 -1
  72. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  73. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{jsxs as e,Fragment as t,jsx as o}from"react/jsx-runtime";import{useRef as r,useState as i,useEffect as n}from"react";import{LexicalComposer as l}from"@lexical/react/LexicalComposer";import{HistoryPlugin as a}from"@lexical/react/LexicalHistoryPlugin";import{OnChangePlugin as s}from"@lexical/react/LexicalOnChangePlugin";import{TabIndentationPlugin as u}from"@lexical/react/LexicalTabIndentationPlugin";import{ListNode as m,ListItemNode as c}from"@lexical/list";import{ListPlugin as d}from"@lexical/react/LexicalListPlugin";import{LinkPlugin as p}from"@lexical/react/LexicalLinkPlugin";import{LinkNode as f}from"@lexical/link";import{QuoteNode as g,HeadingNode as x}from"@lexical/rich-text";import{TablePlugin as h}from"@lexical/react/LexicalTablePlugin";import{TableNode as C,TableRowNode as v,TableCellNode as y}from"@lexical/table";import{KEY_DOWN_COMMAND as b,$getSelection as S,$isRangeSelection as j,COMMAND_PRIORITY_CRITICAL as T,TextNode as E,$isTextNode as N}from"lexical";import"./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js";import{useRequirementAI as P}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import B from"./components/EditorContainer/EditorContainer.js";import L from"./components/EditorToolbar/EditorToolbar.js";import{LayoutPlugin as k}from"./plugins/LayoutPlugin.js";import I from"./theme/theme.js";import"./theme/theme.css.js";import"./Editor.css.js";import _ from"./components/Context/ContextMenu.js";import{MarkNode as H}from"@lexical/mark";import w from"./plugins/CommentPlugin/HTMLNode.js";import{DEFAULT_TOOLBAR_CONFIG as D}from"./constants/editorConfig.js";import{InitialHtml as M}from"./plugins/InitialHtml.js";import{InsertNode as R}from"./plugins/InsertNode.js";import{DeleteNode as A}from"./plugins/DeleteNode.js";import{HighlightSpanNode as F,HighlightButtonNode as W}from"./plugins/HighlightNode.js";import{useLexicalComposerContext as q}from"@lexical/react/LexicalComposerContext";import{UpdateNode as O}from"./plugins/UpdateNode.js";import{ManualNode as V}from"./plugins/ManualNode.js";import{PreservedNode as U}from"./plugins/PreservedNode.js";import{InvisibleNode as X}from"./plugins/InvisibleNode.js";function Y(e){console.log(e)}function $({onEditBlocked:e}){const[t]=q();return n(()=>{const o=e=>{let t=e;for(;t;){if(["preserved","insert","delete"].includes(t.getType()))return t;if(["update","manual"].includes(t.getType())&&t.getStatus()&&"pending"===t.getStatus())return t;t=t.getParent()}return!1};function r(e){let t=e.getParent();for(;t;){if(t instanceof O||t instanceof V)return t.getId();t=t.getParent()}return null}return t.registerCommand(b,t=>{const i=S();if(!j(i))return!1;const n=i.getNodes().find(e=>!!o(e));if(n)return t.preventDefault(),null==e||e(r(n)||""),!0;if(i.isCollapsed()){const n=i.anchor.getNode(),l=o(n);if(l){const o=l?r(l):"";return null==e||e(o||""),t.preventDefault(),!0}if("Backspace"===t.key){const o=n.getPreviousSibling(),l=o&&(["delete","insert","preserved"].includes(o.getType())||["update","manual"].includes(o.getType())&&o.getStatus()&&"pending"===o.getStatus())?o:null;if(0===i.anchor.offset&&l)return null==e||e(r(l)||""),t.preventDefault(),!0}else if("Delete"===t.key){const o=n.getNextSibling(),l=o&&(["delete","insert","preserved"].includes(o.getType())||["update","manual"].includes(o.getType())&&o.getStatus()&&"pending"===o.getStatus())?o:null,a=n.getTextContent().length;if(i.anchor.offset===a&&l)return null==e||e(r(l)||""),t.preventDefault(),!0}}return!1},T)},[t]),null}function z({minHeight:n,height:b,placeholder:T,onFocus:q,onBlur:z,onChange:G,onToolbarButtonClick:J,toolbarConfig:K=D,editorRef:Q,editorState:Z,initialString:ee,customToolbar:te,plugins:oe,nodes:re,dynamicHeight:ie,artifactContext:ne,commentsPanelState:le,mode:ae,doNotShowBorderInViewMode:se,onEditBlocked:ue}){var me,ce,de;const pe=r(null),fe={namespace:"MyEditor",theme:I,onError:Y,nodes:[E,m,c,f,g,x,C,v,y,H,w,R,A,O,U,V,X,F,W],editorState:Z},[ge,xe]=i(null),[he,Ce]=i(!1),{customStyles:ve}=P(),ye=e=>{var t;null===(t=Q.current)||void 0===t||t.update(()=>{const t=S();j(t)&&t.getNodes().forEach(t=>{N(t)&&t.setStyle(`color: ${e}`)})})};return document.getElementById("lexical_editor_wrapper"),e(t,{children:[(null===(me=null==ve?void 0:ve.textEditorStyles)||void 0===me?void 0:me.themeStyles)&&o("style",{children:null===(ce=null==ve?void 0:ve.textEditorStyles)||void 0===ce?void 0:ce.themeStyles}),e("div",{ref:pe,className:"w-full lexical_editor_wrapper "+(se&&"readOnly"===ae?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:e=>{var t;e.preventDefault(),null===(t=Q.current)||void 0===t||t.update(()=>{const t=S();j(t)&&!t.isCollapsed()?(Ce(!0),xe({x:e.clientX,y:e.clientY})):(Ce(!1),xe(null))})},style:{minHeight:n,height:b,...null===(de=null==ve?void 0:ve.textEditorStyles)||void 0===de?void 0:de.textArea},children:[e(l,{initialConfig:fe,children:[" ","edit"===ae&&o($,{onEditBlocked:ue}),"edit"===ae&&o(L,{onToolbarButtonClick:J,editorWrapperRef:pe,toolbarConfig:K,customToolbar:te,editorRef:Q}),o(B,{placeholder:T}),o(u,{}),o(a,{}),o(d,{}),o(p,{}),o(h,{}),o(k,{onFocus:q,onBlur:z,editorRef:Q}),o(s,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:(e,t,o)=>{G&&G(e,t,o)}}),ee&&o(M,{initialValue:ee.value,initialFormat:ee.type,mode:ae}),oe&&oe]}),ge&&he&&"edit"===ae&&o(_,{position:ge,options:[{label:"Change Color to Red",action:()=>ye("red")},{label:"Change Color to Blue",action:()=>ye("blue")}],onClose:()=>{xe(null)}})]})]})}export{z as default};
1
+ import{jsxs as e,Fragment as t,jsx as o}from"react/jsx-runtime";import{useRef as r,useState as i,useEffect as l}from"react";import{LexicalComposer as n}from"@lexical/react/LexicalComposer";import{HistoryPlugin as a}from"@lexical/react/LexicalHistoryPlugin";import{OnChangePlugin as s}from"@lexical/react/LexicalOnChangePlugin";import{TabIndentationPlugin as c}from"@lexical/react/LexicalTabIndentationPlugin";import{ListNode as m,ListItemNode as d}from"@lexical/list";import{ListPlugin as u}from"@lexical/react/LexicalListPlugin";import{LinkPlugin as p}from"@lexical/react/LexicalLinkPlugin";import{LinkNode as f}from"@lexical/link";import{QuoteNode as g,HeadingNode as x}from"@lexical/rich-text";import{TablePlugin as h}from"@lexical/react/LexicalTablePlugin";import{TableNode as v,TableRowNode as C,TableCellNode as y}from"@lexical/table";import{KEY_DOWN_COMMAND as b,$getSelection as j,$isRangeSelection as T,COMMAND_PRIORITY_CRITICAL as E,TextNode as N,$isTextNode as S}from"lexical";import"./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js";import{useRequirementAI as k}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import B from"./components/EditorContainer/EditorContainer.js";import P from"./components/EditorToolbar/EditorToolbar.js";import{LayoutPlugin as L}from"./plugins/LayoutPlugin.js";import _ from"./theme/theme.js";import"./theme/theme.css.js";import"./Editor.css.js";import D from"./components/Context/ContextMenu.js";import{MarkNode as H}from"@lexical/mark";import I from"./plugins/CommentPlugin/HTMLNode.js";import{DEFAULT_TOOLBAR_CONFIG as w}from"./constants/editorConfig.js";import{InitialHtml as M}from"./plugins/InitialHtml.js";import{InsertNode as R}from"./plugins/InsertNode.js";import{DeleteNode as F}from"./plugins/DeleteNode.js";import{HighlightSpanNode as A,HighlightButtonNode as W}from"./plugins/HighlightNode.js";import{useLexicalComposerContext as q}from"@lexical/react/LexicalComposerContext";import{UpdateNode as O}from"./plugins/UpdateNode.js";import{ManualNode as V}from"./plugins/ManualNode.js";import{PreservedNode as U}from"./plugins/PreservedNode.js";import{InvisibleNode as X}from"./plugins/InvisibleNode.js";function Y(e){console.log(e)}function $({onEditBlocked:e}){const[t]=q();return l(()=>{const o=e=>{let t=e;for(;t;){if(["preserved","insert","delete"].includes(t.getType()))return t;t=t.getParent()}return!1};function r(e){let t=e.getParent();for(;t;){if(t instanceof O||t instanceof V)return t.__id;t=t.getParent()}return null}return t.registerCommand(b,t=>{var i;if("Backspace"!==t.key&&"Delete"!==t.key)return!1;const l=j();if(!T(l))return!1;const n=l.getNodes().find(e=>!!o(e));if(n)return t.preventDefault(),null==e||e(r(n)||""),!0;if(l.isCollapsed()){const n=l.anchor.getNode(),a=l.focus.getNode(),s=o(n),c=o(a);if(s||c){const o=s?r(s):c?r(c):"";return null==e||e(o||""),t.preventDefault(),!0}if("Backspace"===t.key){const a=n.getPreviousSibling(),s=null===(i=null==a?void 0:a.getLastDescendant)||void 0===i?void 0:i.call(a),c=a&&["delete","insert","preserved"].includes(a.getType())?a:s&&o(s)?s:null;if(0===l.anchor.offset&&c)return null==e||e(r(c)||""),t.preventDefault(),!0}else if("Delete"===t.key){const i=n.getNextSibling(),a=null==i?void 0:i.getFirstDescendant(),s=i&&["delete","insert","preserved"].includes(i.getType())?i:a&&o(a)?a:null,c=n.getTextContent().length;if(l.anchor.offset===c&&s)return null==e||e(r(s)||""),t.preventDefault(),!0}}return!1},E)},[t]),null}function z({minHeight:l,height:b,placeholder:E,onFocus:q,onBlur:z,onChange:G,onToolbarButtonClick:J,toolbarConfig:K=w,editorRef:Q,editorState:Z,initialString:ee,customToolbar:te,plugins:oe,nodes:re,dynamicHeight:ie,artifactContext:le,commentsPanelState:ne,mode:ae,doNotShowBorderInViewMode:se,onEditBlocked:ce}){var me,de,ue;const pe=r(null),fe={namespace:"MyEditor",theme:_,onError:Y,nodes:[N,m,d,f,g,x,v,C,y,H,I,R,F,O,U,V,X,A,W],editorState:Z},[ge,xe]=i(null),[he,ve]=i(!1),{customStyles:Ce}=k(),ye=e=>{var t;null===(t=Q.current)||void 0===t||t.update(()=>{const t=j();T(t)&&t.getNodes().forEach(t=>{S(t)&&t.setStyle(`color: ${e}`)})})};return document.getElementById("lexical_editor_wrapper"),e(t,{children:[(null===(me=null==Ce?void 0:Ce.textEditorStyles)||void 0===me?void 0:me.themeStyles)&&o("style",{children:null===(de=null==Ce?void 0:Ce.textEditorStyles)||void 0===de?void 0:de.themeStyles}),e("div",{ref:pe,className:"w-full lexical_editor_wrapper "+(se&&"readOnly"===ae?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:e=>{var t;e.preventDefault(),null===(t=Q.current)||void 0===t||t.update(()=>{const t=j();T(t)&&!t.isCollapsed()?(ve(!0),xe({x:e.clientX,y:e.clientY})):(ve(!1),xe(null))})},style:{minHeight:l,height:b,...null===(ue=null==Ce?void 0:Ce.textEditorStyles)||void 0===ue?void 0:ue.textArea},children:[e(n,{initialConfig:fe,children:[" ","edit"===ae&&o($,{onEditBlocked:ce}),"edit"===ae&&o(P,{onToolbarButtonClick:J,editorWrapperRef:pe,toolbarConfig:K,customToolbar:te,editorRef:Q}),o(B,{placeholder:E}),o(c,{}),o(a,{}),o(u,{}),o(p,{}),o(h,{}),o(L,{onFocus:q,onBlur:z,editorRef:Q}),o(s,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:(e,t,o)=>{G&&G(e,t,o)}}),ee&&o(M,{initialValue:ee.value,initialFormat:ee.type,mode:ae}),oe&&oe]}),ge&&he&&"edit"===ae&&o(D,{position:ge,options:[{label:"Change Color to Red",action:()=>ye("red")},{label:"Change Color to Blue",action:()=>ye("blue")}],onClose:()=>{xe(null)}})]})]})}export{z as default};
2
2
  //# sourceMappingURL=Editor.js.map
@@ -1,2 +1,2 @@
1
- import{ElementNode as t}from"lexical";class s extends t{static getType(){return"manual"}static clone(t){return new s(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),s="",e){super(e),this.__id=t,this.__status=s}getId(){return this.getLatest().__id}getStatus(){return this.getLatest().__status}setStatus(t){this.getWritable().__status=t}createDOM(){const t=document.createElement("manual");return t.id=this.__id,t.className=`PlaygroundEditorTheme__manual-node-${this.__status}`,this.__status&&(t.dataset.status=this.__status),t.contentEditable="pending"===this.__status?"false":"true",t}exportDOM(){const t=document.createElement("manual");return t.id=this.__id,{element:t}}updateDOM(t,s){return t.__id!==this.__id&&(s.id=this.__id),t.__status!==this.__status&&(this.__status?s.dataset.status=this.__status:delete s.dataset.status,s.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{manual:()=>({conversion:e,priority:1})}}static importJSON(t){var e;return new s(t.id,null!==(e=t.status)&&void 0!==e?e:"")}exportJSON(){return{...super.exportJSON(),type:"manual",version:1,id:this.__id,status:this.__status}}isInline(){return!0}}function e(t){var e;return{node:new s(t.id||crypto.randomUUID(),null!==(e=t.dataset.status)&&void 0!==e?e:"")}}export{s as ManualNode};
1
+ import{ElementNode as t}from"lexical";class e extends t{static getType(){return"manual"}static clone(t){return new e(t.__id,t.__key)}constructor(t=crypto.randomUUID(),e){super(e),this.__id=t}createDOM(){const t=document.createElement("manual");return t.id=this.__id,t.className="PlaygroundEditorTheme__manual-node",t}exportDOM(){const t=document.createElement("manual");return t.id=this.__id,{element:t}}updateDOM(t,e){return t.__id!==this.__id&&(e.id=this.__id),!1}static importDOM(){return{manual:()=>({conversion:r,priority:1})}}static importJSON(t){const r=new e(t.id);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"manual",version:1,id:this.__id}}isInline(){return!0}getId(){return this.__id}}function r(t){const r=t.id||crypto.randomUUID();return{node:new e(r)}}export{e as ManualNode};
2
2
  //# sourceMappingURL=ManualNode.js.map
@@ -1,2 +1,2 @@
1
- import{ElementNode as t}from"lexical";class s extends t{static getType(){return"update"}static clone(t){return new s(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),s="",e){super(e),this.__id=t,this.__status=s}getId(){return this.getLatest().__id}getStatus(){return this.getLatest().__status}setStatus(t){this.getWritable().__status=t}createDOM(){const t=document.createElement("upt");return t.id=this.__id,t.className=`PlaygroundEditorTheme__update-node-${this.__status}`,this.__status&&(t.dataset.status=this.__status),t.contentEditable="pending"===this.__status?"false":"true",t}exportDOM(){const t=document.createElement("upt");return t.id=this.__id,{element:t}}updateDOM(t,s){return t.__id!==this.__id&&(s.id=this.__id),t.__status!==this.__status&&(this.__status?s.dataset.status=this.__status:delete s.dataset.status,s.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{upt:()=>({conversion:e,priority:1})}}static importJSON(t){var e;return new s(t.id,null!==(e=t.status)&&void 0!==e?e:"")}exportJSON(){return{...super.exportJSON(),type:"update",version:1,id:this.__id,status:this.__status}}isInline(){return!0}}function e(t){var e;return{node:new s(t.id||crypto.randomUUID(),null!==(e=t.dataset.status)&&void 0!==e?e:"")}}export{s as UpdateNode};
1
+ import{ElementNode as t}from"lexical";class e extends t{static getType(){return"update"}static clone(t){return new e(t.__id,t.__key)}constructor(t=crypto.randomUUID(),e){super(e),this.__id=t}createDOM(){const t=document.createElement("upt");return t.id=this.__id,t.className="PlaygroundEditorTheme__update-node",t}exportDOM(){const t=document.createElement("upt");return t.id=this.__id,{element:t}}updateDOM(t,e){return t.__id!==this.__id&&(e.id=this.__id),!1}static importDOM(){return{upt:()=>({conversion:r,priority:1})}}static importJSON(t){const r=new e(t.id);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"update",version:1,id:this.__id}}isInline(){return!0}getId(){return this.__id}}function r(t){const r=t.id||crypto.randomUUID();return{node:new e(r)}}export{e as UpdateNode};
2
2
  //# sourceMappingURL=UpdateNode.js.map
@@ -1,2 +1,2 @@
1
- var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__highlight-button{display:none}.PlaygroundEditorTheme__insert-node{background-color:#8cbeff;text-decoration:none}.PlaygroundEditorTheme__delete-node{text-decoration:line-through;text-decoration-color:#dc2626}[class^=PlaygroundEditorTheme__update-node]>.PlaygroundEditorTheme__insert-node{background-color:#f3e8ff}.PlaygroundEditorTheme__manual-node-accepted,[class^=PlaygroundEditorTheme__manual-node]>.PlaygroundEditorTheme__insert-node{background-color:#8cbeff}.PlaygroundEditorTheme__manual-node-rejected{text-decoration:underline;text-decoration-color:red}.PlaygroundEditorTheme__update-node-accepted{background-color:#f3e8ff;-webkit-box-decoration-break:clone;box-decoration-break:clone;display:inline}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}();export{e as default};
1
+ var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__delete-node{text-decoration:var(--delete-node-text-decoration,line-through);text-decoration-color:var(--delete-node-decoration-color,#dc2626);text-decoration-thickness:var(--delete-node-decoration-thickness,2px)}.PlaygroundEditorTheme__insert-node{background-color:var(--insert-node-bg,#dbeafe);border-radius:var(--insert-node-border-radius,2px);color:var(--insert-node-color,#1e3a8a);padding:var(--insert-node-padding,1px 2px);text-decoration:var(--insert-node-text-decoration,none)}.PlaygroundEditorTheme__highlight-button{display:none}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}();export{e as default};
2
2
  //# sourceMappingURL=theme.css.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as i,Fragment as n}from"react/jsx-runtime";import{PenLine as o,CheckCircle as t,XCircle as l,Info as r,ChevronDown as d,ChevronRight as a}from"lucide-react";import{useState as s}from"react";import{ToneToggle as c}from"./ToneToggle.js";import"../CognitiveComponents/CitationComponent.module.css.js";import{ReactComponent as p}from"../icons/cognitiveBrain.svg.js";import{ReactComponent as g}from"../icons/aiMagic.svg.js";import{Tooltip as u}from"@mui/material";import{useRequirementAI as v}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{resolveRedline as m}from"../../../../../service/redlineService.js";import{AiReasonMarkdownWrapper as y}from"../../ai-reasoning/AiReasonMarkdownWrapper.js";const h=[{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=({toneIndex:n,configs:o=h})=>{const t=Math.min(n,o.length-1),{color:l,angle:r,arcD:d}=o[t]||o[1]||o[0],a=(r-90)*Math.PI/180,s=11+9*Math.cos(a),c=13+9*Math.sin(a);return i("svg",{width:"22",height:"14",viewBox:"0 0 22 14",fill:"none",children:[e("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),e("path",{d:d,stroke:l,strokeWidth:"2.5",strokeLinecap:"round"}),e("line",{x1:"11",y1:"13",x2:s,y2:c,stroke:l,strokeWidth:"2",strokeLinecap:"round"})]})},f=({type:i,customStyles:n={}})=>{const o={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"},...n},t=o[i]||o.Medium;return e("div",{style:t,children:i})},S=["Lenient","Balanced","Aggressive"],b={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},C={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"450px",overflow:"auto"},I={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12,position:"relative"},k={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},w={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},B={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px",maxHeight:"100px",overflow:"auto"},T={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"},D={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},E={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},R={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"},W={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},j={borderTop:"0.5px solid #eee",padding:"14px 0px"},L={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},M={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},H={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},_={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},F={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},N={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},O={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},P={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"},U={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 q({onAssignClick:n,onOpenCognitive:o,cognitiveIconSmall:t,cognitiveTootipTitle:l,historyIconSmall:r,onHistoryClick:d,historyTootipTitle:a}){const s="20px";return i("div",{style:{...U,minWidth:"200px"},children:[i("div",{style:{padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:n,children:[e("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:s,height:s,flexShrink:0},children:i("svg",{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("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),e("path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}),e("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),e("circle",{cx:"9",cy:"7",r:"4"})]})}),e("span",{style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left"},children:"Assign"})]}),o&&i("div",{style:{padding:"8px",borderTop:"1px solid #EBEBEB",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:e=>o(e),children:[t&&e("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:s,height:s,flexShrink:0},children:t}),e("span",{style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l})]}),d&&i("div",{style:{padding:"8px",borderTop:"1px solid #EBEBEB",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:e=>d(e),children:[r&&e("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:s,height:s,flexShrink:0},children:r}),e("span",{style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:a})]})]})}function $({onAssignClick:n,onOpenCognitive:o,cognitiveIconSmall:t,cognitiveTootipTitle:l,historyIconSmall:r,onHistoryClick:d,historyTootipTitle:a}){const[c,p]=s(!1);return i("div",{style:{position:"relative",display:"flex"},children:[e("button",{onClick:()=>p(!c),style:{border:"none",background:"transparent",display:"flex",alignItems:"center",cursor:"pointer",fontSize:"18px",padding:0},children:i("svg",{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("circle",{cx:"12",cy:"12",r:"1"}),e("circle",{cx:"12",cy:"5",r:"1"}),e("circle",{cx:"12",cy:"19",r:"1"})]})}),c&&e(q,{onAssignClick:n?()=>{p(!1),n&&n()}:void 0,onOpenCognitive:o?e=>{p(!1),o&&o(e)}:void 0,cognitiveIconSmall:t,cognitiveTootipTitle:l,historyIconSmall:r,onHistoryClick:d,historyTootipTitle:a})]})}function G({users:n,onClick:o}){const t=n.length;return i("div",{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("p",{style:{margin:"0px",display:"flex",alignItems:"center",color:"#475569",whiteSpace:"nowrap"},children:(null==n?void 0:n[0].length)>9?(null==n?void 0:n[0].slice(0,9))+"...":null==n?void 0:n[0]}),t>1&&i("p",{style:{margin:"0px",display:"flex",alignItems:"center",borderRadius:"50px",backgroundColor:"#E2E8F0",padding:"2px 6px",color:"#475569",fontWeight:500},children:["+",t-1]})]})}function V({onClose:U,aiReason:q,onActionTrigger:V,onIterate:J,initialTone:K,onRegenerate:Q,labels:X={},toneLevelsConfig:Y=S,toneColorsConfig:Z=b,dialConfigs:ee=h,actions:ie,disableAllActions:ne=!1,customStyles:oe={},severityChipStyles:te={},customIcons:le={},onOpenCognitive:re,onHistoryClick:de,historyIconSmall:ae,historyTootipTitle:se,showTone:ce=!0,cognitiveSectionStyle:pe={},cognitiveScoreBadgeStyle:ge={},cognitiveScoreTextStyle:ue={},cognitiveStyles:ve={},cognitiveClassNames:me={},cognitiveTitle:ye="Cognitive Integrity",cognitiveTootipTitle:he="Cognitive Decisioning",cognitiveLeftIcon:xe,cognitiveIconSmall:fe,showCognitiveRightArrow:Se=!0,isStreaming:be,onAssignClick:Ce,assignedUsers:Ie,onReviewUsersClick:ke,redlineId:we,aiReasonId:Be}){var Te,Ae,De,Ee,Re,ze,We,je,Le,Me,He,_e,Fe,Ne,Oe,Pe,Ue,qe,$e;let Ge=Y.findIndex(e=>e===K);-1===Ge&&(Ge=1);const[Ve,Je]=s(!0),[Ke,Qe]=s(!1),[Xe,Ye]=s(!1),[Ze,ei]=s(Ge),[ii]=s(Ge),ni=Y[Ze],oi=Z[ni]||"#BA7517",ti=Ze!==ii,li=[{id:"iterate",icon:le.iterateIcon||e(o,{size:16,color:"#64748B"}),label:X.btnIterate||"Iterate",color:"#64748B",onClick:J},{id:"accept",icon:le.acceptIcon||e(t,{size:16,color:"#10B981"}),label:X.btnAccept||"Approve",color:"#10B981",useLabel:!0},{id:"reject",icon:le.rejectIcon||e(l,{size:16,color:"#DC2626"}),label:X.btnReject||"Reject",color:"#DC2626",useLabel:!0}],{redlineDcoumentId:ri,redlineConfig:di,updateRedlineDataParent:ai}=v(),si=ie||li;return i("div",{onClick:e=>{e.stopPropagation()},style:{...C,...null===(Te=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Te?void 0:Te.root},children:[i("div",{style:{...I,...null===(Ae=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Ae?void 0:Ae.header,marginBottom:Xe?"16px":"12px"},children:[i("div",{style:{display:"flex",alignItems:"center",gap:10},children:[i("div",{style:{display:"flex",alignItems:"center",gap:6},children:[e("span",{children:le.summaryIcon||e(r,{size:16,color:"#E24B4A"})}),e("span",{style:{...k,...null===(De=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===De?void 0:De.title},children:X.summaryHeader||"Summary"})]}),Ie&&Ie.length>0&&e(G,{users:Ie,onClick:e=>{e.stopPropagation(),null==ke||ke()}})]}),i("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[(Ce||re)&&e($,{onAssignClick:Ce,onOpenCognitive:re,cognitiveIconSmall:fe,cognitiveTootipTitle:he,historyIconSmall:ae,onHistoryClick:de,historyTootipTitle:se}),e("button",{onClick:U,style:{...W,...null===(Ee=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Ee?void 0:Ee.closeBtn,color:"#64748B"},children:"✕"})]})]}),e(u,{title:null===(Re=null==q?void 0:q.redlining_details)||void 0===Re?void 0:Re.redline_title,children:e("p",{style:{...w,...null===(ze=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===ze?void 0:ze.bodyText},children:null===(We=null==q?void 0:q.redlining_details)||void 0===We?void 0:We.redline_title})}),e("p",{style:{...B,...null===(je=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===je?void 0:je.summary},children:null===(Le=null==q?void 0:q.redlining_details)||void 0===Le?void 0:Le.redline_summary}),i("div",{style:{...T,...null===(Me=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Me?void 0:Me.impactContainer},children:[i("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[i("button",{onClick:()=>Je(!Ve),style:{...D,...null===(He=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===He?void 0:He.impactToggle},children:[e("span",{style:{...E,...null===(_e=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===_e?void 0:_e.impactToggleLabel},children:X.impactHeader||"Impact"}),e("span",{style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Ve?"rotate(180deg)":"rotate(0deg)"},children:e(d,{size:16,color:"#E24B4A"})})]}),e(f,{type:(null==q?void 0:q.severity)||"Medium",customStyles:te})]}),Ve&&e(n,{children:e("div",{style:{...A,...null===(Fe=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Fe?void 0:Fe.impactText},children:e(y,{message:`${null!==(Oe=null===(Ne=null==q?void 0:q.redlining_details)||void 0===Ne?void 0:Ne.redline_impact)&&void 0!==Oe?Oe:X.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."} [View chat](chat_citation$all)`,customStyles:null===(Pe=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Pe?void 0:Pe.impactMarkdown})})})]}),e("div",{style:{...R,...null===(Ue=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Ue?void 0:Ue.actionContainer},children:si.map(e=>{var n,o;const t=ne||e.disabled,l=t?{cursor:"not-allowed",opacity:.5,...null===(n=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===n?void 0:n.actionBtnDisabled,...e.disabledStyle}:{};return i("button",{style:{...z,...null===(o=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtn,color:e.color,...e.style,...l},onClick:t?void 0:()=>{var i;e.useLabel?(async e=>{var i,n,o;null==V||V({status:"loading",action:e,metadata:{redlineId:we,aiReasonId:Be}});try{const{updated_reqai:t}=await m({documentId:ri,userEmail:null==di?void 0:di.userEmail,userName:null==di?void 0:di.userName,redlineId:null!==(i=null==q?void 0:q.redline_id)&&void 0!==i?i:"",action:e,baseApiUrl:null==di?void 0:di.baseApiUrl,redlineConfigId:null!==(n=null==di?void 0:di.redlineConfigId)&&void 0!==n?n:""},null!==(o=null==di?void 0:di.token)&&void 0!==o?o:"");await(null==ai?void 0:ai(t)),null==V||V({status:"success",action:e,metadata:{redlineId:we,aiReasonId:Be}})}catch(e){null==V||V({status:"failed",action:null,metadata:{redlineId:we,aiReasonId:Be}})}})(e.id.toLowerCase()):null===(i=e.onClick)||void 0===i||i.call(e)},disabled:t,children:[e.icon,e.label]},e.id)})}),ce&&i("div",{style:{...j,...null===(qe=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===qe?void 0:qe.toneContainer},children:[i("button",{onClick:()=>Qe(!Ke),style:{...L,...null===($e=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===$e?void 0:$e.toneToggleBtn},children:[i("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e(x,{toneIndex:Ze,configs:ee}),e("span",{style:{fontSize:13,fontWeight:500,color:"#111"},children:X.toneHeader||"Redline Tone"})]}),e("span",{style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Ke?"rotate(180deg)":"rotate(0deg)"},children:e(d,{size:16,color:"#111"})})]}),Ke&&i(n,{children:[e("p",{style:{fontSize:12,color:"#888",margin:"0 0 12px"},children:X.toneDescription||"Controls how assertively AI is redlining"}),e(c,{isDirty:ti,onToneChange:e=>{ei(e)},toneColor:oi,toneIndex:Ze,onClickRegenerate:()=>null==Q?void 0:Q(ni),toneLabels:Y,isStreaming:be,aiReason:q})]})]}),re&&i("div",{className:null==me?void 0:me.section,onClick:e=>{e.stopPropagation(),re&&re(e)},style:{...M,...null==ve?void 0:ve.section,...pe},children:[i("div",{className:null==me?void 0:me.headerLeft,style:{...H,...null==ve?void 0:ve.headerLeft},children:[e("span",{className:null==me?void 0:me.titleIcon,style:{..._,...null==ve?void 0:ve.titleIcon},children:null!=xe?xe:e(p,{})}),e("div",{className:null==me?void 0:me.cognitiveTitle,style:{...F,...null==ve?void 0:ve.cognitiveTitle},children:ye})]}),i("div",{className:null==me?void 0:me.headerRight,style:{...N,...null==ve?void 0:ve.headerRight},children:[void 0!==(null==q?void 0:q.relevance_score)&&null!==(null==q?void 0:q.relevance_score)?i("span",{className:null==me?void 0:me.scoreBadge,style:{...O,...null==ve?void 0:ve.scoreBadge,...ge},children:[e(g,{}),i("span",{className:null==me?void 0:me.scoreText,style:{...P,...null==ve?void 0:ve.scoreText,...ue},children:[Math.round(Number(q.relevance_score)),"%"]})]}):null,Se&&e("span",{style:{display:"flex",alignItems:"center"},children:e(a,{size:16,color:"#64748B"})})]})]})]})}export{q as AssignMenu,G as DisplayUsers,$ as KebabMenu,V as default};
1
+ import{jsx as e,jsxs as i,Fragment as n}from"react/jsx-runtime";import{PenLine as o,CheckCircle as t,XCircle as l,Info as r,ChevronDown as d,ChevronRight as a}from"lucide-react";import{useState as s}from"react";import{ToneToggle as c}from"./ToneToggle.js";import"../CognitiveComponents/CitationComponent.module.css.js";import{ReactComponent as p}from"../icons/cognitiveBrain.svg.js";import{ReactComponent as g}from"../icons/aiMagic.svg.js";import{Tooltip as u}from"@mui/material";import{useRequirementAI as v}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{resolveRedline as m}from"../../../../../service/redlineService.js";import{AiReasonMarkdownWrapper as x}from"../../ai-reasoning/AiReasonMarkdownWrapper.js";const y=[{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"}],h=({toneIndex:n,configs:o=y})=>{const t=Math.min(n,o.length-1),{color:l,angle:r,arcD:d}=o[t]||o[1]||o[0],a=(r-90)*Math.PI/180,s=11+9*Math.cos(a),c=13+9*Math.sin(a);return i("svg",{width:"22",height:"14",viewBox:"0 0 22 14",fill:"none",children:[e("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),e("path",{d:d,stroke:l,strokeWidth:"2.5",strokeLinecap:"round"}),e("line",{x1:"11",y1:"13",x2:s,y2:c,stroke:l,strokeWidth:"2",strokeLinecap:"round"})]})},f=({type:i,customStyles:n={}})=>{const o={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"},...n},t=o[i]||o.Medium;return e("div",{style:t,children:i})},b=["Lenient","Balanced","Aggressive"],S={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},C={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"450px",overflow:"auto"},I={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12,position:"relative"},k={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},w={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},B={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px",maxHeight:"100px",overflow:"auto"},A={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},T={fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0",maxHeight:"100px",overflow:"auto"},D={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},R={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},E={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"},W={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},j={borderTop:"0.5px solid #eee",padding:"14px 0px"},L={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},M={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},_={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"},N={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},O={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},P={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"},U={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 q({onAssignClick:n,disableAssignButton:o=!1,onOpenCognitive:t,cognitiveIconSmall:l,cognitiveTootipTitle:r}){const d="20px";return i("div",{style:{...U,minWidth:"200px"},children:[i("div",{style:{padding:"8px",cursor:o?"not-allowed":"pointer",opacity:o?.5:1,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:o?void 0:n,children:[e("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:d,height:d,flexShrink:0},children:i("svg",{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("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),e("path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}),e("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),e("circle",{cx:"9",cy:"7",r:"4"})]})}),e("span",{style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left"},children:"Assign"})]}),t&&i("div",{style:{padding:"8px",borderTop:"1px solid #EBEBEB",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"10px"},onClick:e=>t(e),children:[l&&e("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:d,height:d,flexShrink:0},children:l}),e("span",{style:{fontSize:"13px",display:"flex",alignItems:"center",flex:1,textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r})]})]})}function $({onAssignClick:n,disableAssignButton:o=!1,onOpenCognitive:t,cognitiveIconSmall:l,cognitiveTootipTitle:r}){const[d,a]=s(!1);return i("div",{style:{position:"relative",display:"flex"},children:[e("button",{onClick:()=>a(!d),style:{border:"none",background:"transparent",display:"flex",alignItems:"center",cursor:"pointer",fontSize:"18px",padding:0},children:i("svg",{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("circle",{cx:"12",cy:"12",r:"1"}),e("circle",{cx:"12",cy:"5",r:"1"}),e("circle",{cx:"12",cy:"19",r:"1"})]})}),d&&e(q,{onAssignClick:n?()=>{a(!1),n&&n()}:void 0,disableAssignButton:o,onOpenCognitive:t?e=>{a(!1),t&&t(e)}:void 0,cognitiveIconSmall:l,cognitiveTootipTitle:r})]})}function G({users:n,onClick:o}){const t=n.length;return i("div",{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("p",{style:{margin:"0px",display:"flex",alignItems:"center",color:"#475569",whiteSpace:"nowrap"},children:(null==n?void 0:n[0].length)>9?(null==n?void 0:n[0].slice(0,9))+"...":null==n?void 0:n[0]}),t>1&&i("p",{style:{margin:"0px",display:"flex",alignItems:"center",borderRadius:"50px",backgroundColor:"#E2E8F0",padding:"2px 6px",color:"#475569",fontWeight:500},children:["+",t-1]})]})}function V({onClose:U,aiReason:q,onActionTrigger:V,onIterate:J,initialTone:K,onRegenerate:Q,labels:X={},toneLevelsConfig:Y=b,toneColorsConfig:Z=S,dialConfigs:ee=y,actions:ie,disableAllActions:ne=!1,customStyles:oe={},severityChipStyles:te={},customIcons:le={},onOpenCognitive:re,showTone:de=!0,cognitiveSectionStyle:ae={},cognitiveScoreBadgeStyle:se={},cognitiveScoreTextStyle:ce={},cognitiveStyles:pe={},cognitiveClassNames:ge={},cognitiveTitle:ue="Cognitive Integrity",cognitiveTootipTitle:ve="Cognitive Decisioning",cognitiveLeftIcon:me,cognitiveIconSmall:xe,showCognitiveRightArrow:ye=!0,isStreaming:he,onAssignClick:fe,disableAssignButton:be=!1,assignedUsers:Se,onReviewUsersClick:Ce,redlineId:Ie,aiReasonId:ke}){var we,Be,Ae,Te,De,Re,Ee,ze,We,je,Le,Me,_e,Fe,He,Ne,Oe,Pe,Ue;let qe=Y.findIndex(e=>e===K);-1===qe&&(qe=1);const[$e,Ge]=s(!0),[Ve,Je]=s(!1),[Ke,Qe]=s(!1),[Xe,Ye]=s(qe),[Ze]=s(qe),ei=Y[Xe],ii=Z[ei]||"#BA7517",ni=Xe!==Ze,oi=[{id:"iterate",icon:le.iterateIcon||e(o,{size:16,color:"#64748B"}),label:X.btnIterate||"Iterate",color:"#64748B",onClick:J},{id:"accept",icon:le.acceptIcon||e(t,{size:16,color:"#10B981"}),label:X.btnAccept||"Approve",color:"#10B981",useLabel:!0},{id:"reject",icon:le.rejectIcon||e(l,{size:16,color:"#DC2626"}),label:X.btnReject||"Reject",color:"#DC2626",useLabel:!0}],{redlineDcoumentId:ti,redlineConfig:li,updateRedlineDataParent:ri}=v(),di=ie||oi;return i("div",{onClick:e=>{e.stopPropagation()},style:{...C,...null===(we=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===we?void 0:we.root},children:[i("div",{style:{...I,...null===(Be=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Be?void 0:Be.header,marginBottom:Ke?"16px":"12px"},children:[i("div",{style:{display:"flex",alignItems:"center",gap:10},children:[i("div",{style:{display:"flex",alignItems:"center",gap:6},children:[e("span",{children:le.summaryIcon||e(r,{size:16,color:"#E24B4A"})}),e("span",{style:{...k,...null===(Ae=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Ae?void 0:Ae.title},children:X.summaryHeader||"Summary"})]}),Se&&Se.length>0&&e(G,{users:Se,onClick:e=>{e.stopPropagation(),null==Ce||Ce()}})]}),i("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[(fe||re)&&e($,{onAssignClick:fe,disableAssignButton:be,onOpenCognitive:re,cognitiveIconSmall:xe,cognitiveTootipTitle:ve}),e("button",{onClick:U,style:{...W,...null===(Te=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Te?void 0:Te.closeBtn,color:"#64748B"},children:"✕"})]})]}),e(u,{title:null===(De=null==q?void 0:q.redlining_details)||void 0===De?void 0:De.redline_title,children:e("p",{style:{...w,...null===(Re=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Re?void 0:Re.bodyText},children:null===(Ee=null==q?void 0:q.redlining_details)||void 0===Ee?void 0:Ee.redline_title})}),e("p",{style:{...B,...null===(ze=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===ze?void 0:ze.summary},children:null===(We=null==q?void 0:q.redlining_details)||void 0===We?void 0:We.redline_summary}),i("div",{style:{...A,...null===(je=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===je?void 0:je.impactContainer},children:[i("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[i("button",{onClick:()=>Ge(!$e),style:{...D,...null===(Le=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Le?void 0:Le.impactToggle},children:[e("span",{style:{...R,...null===(Me=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Me?void 0:Me.impactToggleLabel},children:X.impactHeader||"Impact"}),e("span",{style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:$e?"rotate(180deg)":"rotate(0deg)"},children:e(d,{size:16,color:"#E24B4A"})})]}),e(f,{type:(null==q?void 0:q.severity)||"Medium",customStyles:te})]}),$e&&e(n,{children:e("div",{style:{...T,...null===(_e=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===_e?void 0:_e.impactText},children:e(x,{message:`${null!==(He=null===(Fe=null==q?void 0:q.redlining_details)||void 0===Fe?void 0:Fe.redline_impact)&&void 0!==He?He:X.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."} [View chat](chat_citation$all)`,customStyles:null===(Ne=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Ne?void 0:Ne.impactMarkdown})})})]}),e("div",{style:{...E,...null===(Oe=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Oe?void 0:Oe.actionContainer},children:di.map(e=>{var n,o;const t=ne||e.disabled,l=t?{cursor:"not-allowed",opacity:.5,...null===(n=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===n?void 0:n.actionBtnDisabled,...e.disabledStyle}:{};return i("button",{style:{...z,...null===(o=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtn,color:e.color,...e.style,...l},onClick:t?void 0:()=>{var i;e.useLabel?(async e=>{var i,n,o;null==V||V({status:"loading",action:e,metadata:{redlineId:Ie,aiReasonId:ke}});try{const{updated_reqai:t}=await m({documentId:ti,userEmail:null==li?void 0:li.userEmail,userName:null==li?void 0:li.userName,redlineId:null!==(i=null==q?void 0:q.redline_id)&&void 0!==i?i:"",action:e,baseApiUrl:null==li?void 0:li.baseApiUrl,redlineConfigId:null!==(n=null==li?void 0:li.redlineConfigId)&&void 0!==n?n:""},null!==(o=null==li?void 0:li.token)&&void 0!==o?o:"");await(null==ri?void 0:ri(t)),null==V||V({status:"success",action:e,metadata:{redlineId:Ie,aiReasonId:ke}})}catch(e){null==V||V({status:"failed",action:null,metadata:{redlineId:Ie,aiReasonId:ke}})}})(e.id.toLowerCase()):null===(i=e.onClick)||void 0===i||i.call(e)},disabled:t,children:[e.icon,e.label]},e.id)})}),de&&i("div",{style:{...j,...null===(Pe=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Pe?void 0:Pe.toneContainer},children:[i("button",{onClick:()=>Je(!Ve),style:{...L,...null===(Ue=null==oe?void 0:oe.DeviationSummaryStyles)||void 0===Ue?void 0:Ue.toneToggleBtn},children:[i("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e(h,{toneIndex:Xe,configs:ee}),e("span",{style:{fontSize:13,fontWeight:500,color:"#111"},children:X.toneHeader||"Redline Tone"})]}),e("span",{style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Ve?"rotate(180deg)":"rotate(0deg)"},children:e(d,{size:16,color:"#111"})})]}),Ve&&i(n,{children:[e("p",{style:{fontSize:12,color:"#888",margin:"0 0 12px"},children:X.toneDescription||"Controls how assertively AI is redlining"}),e(c,{isDirty:ni,onToneChange:e=>{Ye(e)},toneColor:ii,toneIndex:Xe,onClickRegenerate:()=>null==Q?void 0:Q(ei),toneLabels:Y,isStreaming:he,aiReason:q})]})]}),re&&i("div",{className:null==ge?void 0:ge.section,onClick:e=>{e.stopPropagation(),re&&re(e)},style:{...M,...null==pe?void 0:pe.section,...ae},children:[i("div",{className:null==ge?void 0:ge.headerLeft,style:{..._,...null==pe?void 0:pe.headerLeft},children:[e("span",{className:null==ge?void 0:ge.titleIcon,style:{...F,...null==pe?void 0:pe.titleIcon},children:null!=me?me:e(p,{})}),e("div",{className:null==ge?void 0:ge.cognitiveTitle,style:{...H,...null==pe?void 0:pe.cognitiveTitle},children:ue})]}),i("div",{className:null==ge?void 0:ge.headerRight,style:{...N,...null==pe?void 0:pe.headerRight},children:[void 0!==(null==q?void 0:q.relevance_score)&&null!==(null==q?void 0:q.relevance_score)?i("span",{className:null==ge?void 0:ge.scoreBadge,style:{...O,...null==pe?void 0:pe.scoreBadge,...se},children:[e(g,{}),i("span",{className:null==ge?void 0:ge.scoreText,style:{...P,...null==pe?void 0:pe.scoreText,...ce},children:[Math.round(Number(q.relevance_score)),"%"]})]}):null,ye&&e("span",{style:{display:"flex",alignItems:"center"},children:e(a,{size:16,color:"#64748B"})})]})]})]})}export{q as AssignMenu,G as DisplayUsers,$ as KebabMenu,V as default};
2
2
  //# sourceMappingURL=DeviationSummary.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as t,Fragment as l}from"react/jsx-runtime";import{useState as n,useRef as o,useEffect as i}from"react";import{ChevronUp as a,ChevronDown as r,ExternalLink as s,Download as d,Share2 as u,Copy as c,LoaderCircle as v,PencilIcon as p,Plus as m,Trash2 as y,X as h,Ellipsis as f,Hourglass as g,Check as S,ChevronUpIcon as C,ChevronDownIcon as I,Info as N,Bookmark as b}from"lucide-react";import w from"showdown";import{Tooltip as D,Menu as E,MenuItem as B}from"@mui/material";import x from"../../icons/Illustration.svg.js";import{v4 as T}from"uuid";import U from"./UserStoryCard.module.css.js";import{formatMarkdown as A,indentMarkdown as P}from"../../utils/helpers.js";import{replaceTitleSection as k}from"../../utils/user-story.utils.js";import R from"../../shared/AtomicButton.js";import _ from"../RichTextEditor/RichTextEditor.js";import M from"../userstory-with-citation/UserStoryWithCitation.js";import{SectionStatus as L,useRequirementAI as $}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as V}from"../story-screen/BigEnoughPanel.js";import{InlineTitleEditor as j}from"./TitleEditor/TitleEditor.js";import{updateRedlineDocument as O,getRedlineDocumentId as z,createRedlineDocument as G}from"../../../../service/redlineService.js";import H from"./ClinicalTrialSection.js";import{CompletionPanel as W}from"../story-screen/CompletionPanel.js";import F from"../../icons/CDIcon.js";const q={[L.WAITING]:"WAITING TO GENERATE",[L.IN_PROGRESS]:"IN PROGRESS",[L.GENERATED]:"GENERATED",[L.FAILED]:"FAILED",[L.GENERATE]:"GENERATE",[L.APPROVED]:"APPROVED"};function Q(e){const l=[],n=/<learned>(.*?)<\/learned>/g;let o,i=0,a=0;for(;null!==(o=n.exec(e));){const[,r]=o,s=o.index;s>i&&l.push(t("span",{children:e.slice(i,s)},"text-pre-"+a++)),l.push(t(D,{title:r,placement:"top",children:t(N,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})},`tooltip-${T()}`)),i=n.lastIndex}return i<(null==e?void 0:e.length)&&l.push(t("span",{children:e.slice(i)},"text-post-"+a++)),l}function Z(e,t,l){var n;if(!e)return{};if(t)return{...e.parentConfig};const o={...e.childConfig};return l&&(null===(n=e.subFeatureOverrides)||void 0===n?void 0:n[l])?{...o,...e.subFeatureOverrides[l]}:o}const J=({displayName:l})=>{var n;const{customStyles:o}=$(),i=null===(n=null==o?void 0:o.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return e("div",{className:U.displayName,style:null==i?void 0:i.wrapper,children:[t(b,{className:U.displayNameIcon,style:null==i?void 0:i.displayNameIcon}),e("span",{style:null==i?void 0:i.label,children:[l,":"]})]})},K=({isUserStoryCurrentlyUpdated:C,artifactId:I,artifactTitleId:N,parentUserStory:b,currentUserStory:z,onUserStoryChange:G,parentIndex:X,currentIndex:Y,enableDownload:ee,isDiffEditReviewMode:te,showUserStoryDiff:le,handleDownloadUserStory:ne,handleOpenSendDialog:oe,updateUserStoryArtifact:ie,selectedArtifactId:ae,isDisplayHighlightControl:re,elementDisplayConfig:se,_resolvedConfig:de,showWrapper:ue=!1,defaultExpanded:ce,actionItemsConfig:ve,onDelete:pe,contextVariant:me,expandedSubFeatures:ye,showDisplayName:he=!0,allowTitleEdit:fe=!0,showConfidenceScore:ge=!0,showBorderTop:Se=!0,sectionStatusConfig:Ce,showCompletionPanel:Ie=!1,showAddSectionButton:Ne=!1,disableEditPlan:be=!1,useMuiTooltip:we=!1,approveButtonConfig:De,CDNeededInChip:Ee})=>{var Be,xe,Te,Ue,Ae,Pe,ke,Re,_e,Me,Le,$e,Ve,je,Oe,ze,Ge,He;const{isLoadingSectionData:We=!1,onLoadSectionData:Fe,status:qe,onStatusClick:Qe,completedCount:Ze,totalCount:Je,isNoDataAvailable:Ke=!1}=null!=Ce?Ce:{},{searchQueryList:Xe,citations:Ye,customStyles:et,onEditBlocked:tt,redlineDcoumentId:lt,redlineConfig:nt,customSectionConfig:ot,updateRedlineDataParent:it,aiReasoning:at}=$(),rt=null==et?void 0:et.userStoryCardStyles,st=null==rt?void 0:rt.customSectionEditButton,dt=null==rt?void 0:rt.statusStyles,ut=null===(Be=null==et?void 0:et.userStoryCardStyles)||void 0===Be?void 0:Be.userStoryEditStyles,ct=null===(xe=null==et?void 0:et.userStoryScreenStyles)||void 0===xe?void 0:xe.userStoryContentStyles,vt=null==rt?void 0:rt.progressHeaderStyles,pt=null==rt?void 0:rt.clinicalTrialSectionStyles,mt=null==rt?void 0:rt.CompletionStyles,yt=null==rt?void 0:rt.noDataStyles,ht=null==rt?void 0:rt.approveButtonStyles,ft=null!==(Ue=null===(Te=null==ot?void 0:ot.shouldRender)||void 0===Te?void 0:Te.call(ot,z))&&void 0!==Ue&&Ue,gt=null===(Ae=null==ot?void 0:ot.getValue)||void 0===Ae?void 0:Ae.call(ot,z),St=null!==(ke=null===(Pe=null==ot?void 0:ot.getFields)||void 0===Pe?void 0:Pe.call(ot,z))&&void 0!==ke?ke:[],Ct=null!==(Re=null==ot?void 0:ot.isEditDisabled)&&void 0!==Re&&Re,It=null!==(Me=null===(_e=null==ot?void 0:ot.isSaving)||void 0===_e?void 0:_e.call(ot,z))&&void 0!==Me&&Me,Nt=((e,t)=>e>=80?null==t?void 0:t.highCompletion:e>=50?null==t?void 0:t.mediumCompletion:null==t?void 0:t.lowCompletion)(null!==(Le=z.completion_percentage)&&void 0!==Le?Le:0,mt),bt={[L.WAITING]:null==dt?void 0:dt.waiting,[L.IN_PROGRESS]:null==dt?void 0:dt.inProgress,[L.GENERATED]:null==dt?void 0:dt.generated,[L.FAILED]:null==dt?void 0:dt.failed,[L.GENERATE]:null==dt?void 0:dt.generate,[L.APPROVED]:null==dt?void 0:dt.approved},[wt,Dt]=n({...structuredClone(z),value:A(z.value)||""}),[Et,Bt]=n({userStory:!!z.isDefaultEdit}),[xt,Tt]=n(!1),[Ut,At]=n(!1),[Pt,kt]=n(null),[Rt,_t]=n(null),{userStory:Mt,customIcons:Lt}=$(),[$t,Vt]=n(null!=ce?ce:""===X||ae===z.artifactId||!!z.isDefaultOpen),[jt,Ot]=n(!1),[zt,Gt]=n(null),[Ht,Wt]=n(null),[Ft,qt]=n(!1),Qt=o(null),Zt=o(null),[Jt,Kt]=n(!1),[Xt,Yt]=n(!1),el=o(null),[tl,ll]=n(z.value);i(()=>{C&&Vt(C)},[C]),i(()=>{Dt({...structuredClone(z),value:A(z.value)||""})},[z]),i(()=>{Xe.length>0?Vt(!0):void 0===ce&&(ae?Vt(ae===z.artifactId):ye&&ye.length>0&&Vt(ye.includes(z.artifactId)))},[Xe,ae,z.artifactId,ye]);const nl=()=>{Gt(null)},ol=()=>{Wt(null)},il=()=>{$t&&Et.userStory&&Zt.current&&!Zt.current.requestClose()||Vt(e=>!e)},al=async()=>{var e;try{"userStory"==="userStory"&&(G(wt),console.log("I am changing RTE editor values",wt)),await ie(Ye,Mt,I,null===(e=el.current)||void 0===e?void 0:e.signal)}finally{}};const rl=null!=(null==z?void 0:z.big_enough)&&!Number.isNaN(z.big_enough)&&!!(null==z?void 0:z.big_enough_decision_factors),sl=null!==($e=null==z?void 0:z.completion_percentage)&&void 0!==$e?$e:0,dl=!!(null==z?void 0:z.completion_decision_factors),ul=""===X,cl=null!=de?de:Z(se,ul),vl=!te&&!le;i(()=>{if(!Rt)return;const e=setTimeout(()=>{const e=document.getElementById(`story-card-${Rt}`);null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>clearTimeout(e)},[Rt]),i(()=>{z.isDefaultEdit&&Bt(e=>({...e,userStory:!0}))},[z.isDefaultEdit]);return i(()=>ll(z.value),[z.value]),e("div",{className:U.card,style:null==rt?void 0:rt.cardStyle,id:`story-card-${z.title}`,"data-expanded":$t,children:[e("div",{className:U.titleSection,style:null==rt?void 0:rt.titleSection,children:[e("div",{className:U.titleRow,style:null==rt?void 0:rt.titleRow,onClick:il,children:[e("div",{className:U.titleLeft,style:null==rt?void 0:rt.titleLeft,onMouseEnter:()=>Kt(!0),onMouseLeave:()=>Kt(!1),children:[he&&t(J,{displayName:N}),xt&&vl?t(j,{title:z.title,onSave:e=>(async(e,t)=>{var l;try{let n={...z};z.artifactId===t?n.title=e:n.sub_features=(null===(l=z.sub_features)||void 0===l?void 0:l.map(l=>l.artifactId===t?{...l,title:e}:l))||[],Dt(n),G(n),Tt(!1)}catch(e){console.error("Failed to save title",e)}})(e,z.artifactId),onCancel:()=>{Tt(!1)},inputStyle:null==ut?void 0:ut.inlineTitleInput,confirmButtonStyle:null==ut?void 0:ut.inlineTitleConfirm,cancelButtonStyle:null==ut?void 0:ut.inlineTitleCancel},"inline-title-editor"):e("div",{className:U.storyTitleWrapper,children:[t(D,{title:Q(z.title),arrow:!0,children:t("h2",{title:we?void 0:z.title,className:U.storyTitle,style:null==rt?void 0:rt.storyTitle,children:Q(z.title)},z.artifactId)}),Ie&&!ft&&(dl?t(W,{customIcons:null==Lt?void 0:Lt.userStoryIcons,customStyles:null==rt?void 0:rt.aiReasoningCitaionStyles,currentUserStory:z,panelStyles:null==rt?void 0:rt.CompletionStyles,onToggleStateChange:Yt,children:e("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==mt?void 0:mt.badge,...Nt},children:[e("span",{children:[sl,"% Completed"]}),t("span",{style:{display:"flex",alignItems:"center"},children:t(F,{color:"currentColor"})}),t(Xt?a:r,{size:14,style:null==mt?void 0:mt.chevronStyle})]})}):t("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==mt?void 0:mt.badge,...Nt},children:e("span",{children:[sl,"% Completed"]})})),fe&&t("button",{type:"button",className:U.titleEditButton,style:null==ut?void 0:ut.titleEditButton,onClick:e=>{e.stopPropagation(),Tt(!0),$t||Vt(!0)},"aria-label":"Edit title",title:"Edit title",children:t("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})})})]})]}),(qe||void 0!==Ze&&void 0!==Je)&&e("div",{className:U.statusContainer,children:[void 0!==Ze&&void 0!==Je&&e("div",{className:U.completedBadge,children:["Completed: ",Ze,"/",Je]}),qe&&t("button",{type:"button",onClick:e=>{e.stopPropagation(),null==Qe||Qe()},className:U.statusButton,style:bt[qe],children:q[qe]})]}),e("div",{className:U.titleActions,style:null==rt?void 0:rt.titleActions,onClick:e=>e.stopPropagation(),children:[(cl.showProgressPercentage||cl.showGapBox)&&ue&&e("div",{className:U.progressHeader,style:null==vt?void 0:vt.wrapper,children:[cl.showProgressPercentage&&e("div",{className:U.progressPercentage,style:null==vt?void 0:vt.percentage,children:[null!==(je=null!==(Ve=null==z?void 0:z.confidenceScore)&&void 0!==Ve?Ve:null==cl?void 0:cl.confidenceValue)&&void 0!==je?je:"0","%"]}),cl.showGapBox&&e("div",{className:U.gapBox,style:null==vt?void 0:vt.gapBox,children:[null!==(ze=null!==(Oe=null==z?void 0:z.gapValue)&&void 0!==Oe?Oe:null==cl?void 0:cl.gapBoxValue)&&void 0!==ze?ze:"2"," ","Gaps"]})]}),rl&&t(V,{customIcons:null==Lt?void 0:Lt.userStoryIcons,customStyles:null==rt?void 0:rt.aiReasoningCitaionStyles,currentUserStory:z,panelStyles:null==rt?void 0:rt.BigEnoughStyles}),!Et.userStory&&e(l,{children:[!1!==(null==cl?void 0:cl.showShareButton)&&t("button",{className:U.iconButton,style:null==rt?void 0:rt.iconButton,onClick:e=>{Gt(e.currentTarget)},children:t(s,{size:16})}),e(E,{id:"user-story-share-menu",anchorEl:zt,open:!!zt,onClose:()=>Gt(null),style:null==rt?void 0:rt.userStoryShareMenu,children:[ee&&t(B,{style:null==rt?void 0:rt.userStoryMenuItem,onClick:async()=>{Ot(!0),ne&&(await Promise.all([ne("pdf"),ne("doc")]),Ot(!1))},children:e("div",{ref:Qt,className:U.menuItemContent,style:null==rt?void 0:rt.menuItemContent,children:[t(d,{size:16,color:null==rt?void 0:rt.menuIconColor}),t("p",{style:null==rt?void 0:rt.menuLabel,children:"Download"})]})}),t(B,{style:null==rt?void 0:rt.userStoryMenuItem,onClick:async()=>{let e=z;b&&(e={...z,value:`${k(null==b?void 0:b.value,z.title)} \n${z.value}`}),null==oe||oe(!0,[e],z.artifactId),nl()},children:e("div",{style:null==rt?void 0:rt.menuItemContent,className:U.menuItemContentPadded,children:[t(u,{size:16,color:null==rt?void 0:rt.menuIconColor}),t("p",{style:null==rt?void 0:rt.menuLabel,children:"Send"})]})}),t(B,{style:null==rt?void 0:rt.userStoryMenuItem,onClick:async()=>{const e=(new w.Converter).makeHtml(A(z.value)||z.value),t=function(e){const t=(new w.Converter).makeHtml(e),l=document.createElement("div");return l.innerHTML=t,l.textContent||l.innerText||""}(A(z.value)||z.value),l=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([e],{type:"text/html"})});try{await navigator.clipboard.write([l]),console.log("Copied User Story")}catch(e){console.error("Failed to copy user story:",e)}finally{nl()}},children:e("div",{style:null==rt?void 0:rt.menuItemContent,className:U.menuItemContentPadded,children:[t(c,{size:16,color:null==rt?void 0:rt.menuIconColor}),t("p",{style:null==rt?void 0:rt.menuLabel,children:"Copy"})]})})]})]}),!Ft&&Et.userStory&&$t?t(R,{type:"outline",children:"Cancel",style:null==rt?void 0:rt.cancelButton,onClick:()=>{var e;null===(e=el.current)||void 0===e||e.abort(),Bt(e=>({...e,userStory:!1}))}}):t(l,{}),Et.userStory&&$t?t(R,{type:"fill",children:Ft?e("span",{className:U.savingSpinner,style:null==rt?void 0:rt.savingSpinner,children:[t(v,{className:U.spinAnimation,style:null==rt?void 0:rt.spinAnimation}),t("span",{children:"Saving..."})]}):"Save",isDisable:Ft,style:Ft?null==rt?void 0:rt.savingButton:null==rt?void 0:rt.saveButton,onClick:async()=>{qt(!0),await al();let e=await(async()=>{var e,t,l,n,o;let i=wt.value;console.log("[V] valueToUpdate before",i),i=i.replace(/<invisible\s+id="([^"]+)"\s*><\/invisible>/gi,"\x3c!-- $1 --\x3e"),console.log("[V] valueToUpdate after",i);try{if(null==nt?void 0:nt.callUpdateDocument){const{updated_reqai:a}=await O({documentId:lt,sectionId:z.artifactId,baseApiUrl:null==nt?void 0:nt.baseApiUrl,updatedContent:i,userEmail:nt.userEmail,userName:nt.userName,redlineConfigId:null!==(e=nt.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==nt?void 0:nt.token)&&void 0!==t?t:"");i=null===(o=null===(n=null===(l=null==a?void 0:a.artifactData)||void 0===l?void 0:l.userStorySnapshot)||void 0===n?void 0:n[0])||void 0===o?void 0:o.value,await(null==it?void 0:it(a))}}catch(e){console.error("failed to update redline document",e),i=tl}return i=i.replace(/<!--\s*([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\s*-->/gi,'<invisible id="$1"></invisible>'),i})();const t={...wt,value:e};G({...t,isDefaultEdit:!1}),ll(t.value),Bt(e=>({...e,userStory:!1})),qt(!1)}}):!te&&!le&&!be&&$t&&!1!==(null==cl?void 0:cl.showEditButton)&&t("button",{className:U.iconButton,style:null==rt?void 0:rt.editButton,onClick:()=>Bt(e=>({...e,userStory:!0})),children:t(p,{color:null==rt?void 0:rt.pencilIconColor,size:16})}),Ne&&ul&&$t&&!te&&!le&&!1!==(null==cl?void 0:cl.showEditButton)&&e("button",{type:"button",className:U.addSectionButton,style:null==ut?void 0:ut.addSectionButton,onClick:e=>{var t,l,n;e.stopPropagation();const o=(null!==(l=null===(t=z.sub_features)||void 0===t?void 0:t.length)&&void 0!==l?l:0)+1,i={artifactId:T(),title:`New Section ${o}`,value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},a={...z,sub_features:[...null!==(n=z.sub_features)&&void 0!==n?n:[],i]};Dt(a),G(a),Vt(!0),_t(i.title)},"aria-label":"Add section",title:"Add section",children:[t(m,{size:14}),t("span",{className:U.addSectionLabel,children:"Add Section"})]}),!ul&&!te&&!be&&!le&&t("button",{type:"button",onClick:e=>{e.stopPropagation(),null==pe||pe()},className:U.iconButton,style:null==ut?void 0:ut.deleteButton,"aria-label":"Delete section",title:"Delete section",children:t(y,{size:16})}),ft&&t("button",{type:"button",className:U.iconButton,style:null==st?void 0:st.button,disabled:Ct,onClick:e=>{if(e.stopPropagation(),Ut)return kt(null),void At(!1);kt(structuredClone(null!=gt?gt:{})),Vt(!0),At(!0)},children:Ut?t(h,{size:16,color:null==rt?void 0:rt.pencilIconColor,style:null==st?void 0:st.cancelIcon}):t(p,{size:16,color:null==rt?void 0:rt.pencilIconColor,style:null==st?void 0:st.editIcon})}),(null==cl?void 0:cl.actionItemsButton)&&e(l,{children:[t("span",{className:U.actionItemBtn,style:null==rt?void 0:rt.actionItemBtn,onClick:e=>{e.stopPropagation(),Wt(e.currentTarget)},children:t(f,{})}),t(E,{id:"user-story-action-menu",anchorEl:Ht,open:!!Ht,onClose:ol,style:null==rt?void 0:rt.userStoryShareMenu,children:null==ve?void 0:ve.items.map((l,n)=>t(B,{style:null==rt?void 0:rt.userStoryMenuItem,onClick:()=>{l.onclick(z),ol()},children:e("div",{className:U.menuItemContent,style:{...null==rt?void 0:rt.menuItemContent,...!l.isActive&&{cursor:"not-allowed",opacity:.5}},children:[t("span",{className:U.menuItemIcon,style:null==rt?void 0:rt.menuItemIcon,children:l.icon}),t("p",{style:null==rt?void 0:rt.menuLabel,children:l.name}),t("span",{className:U.menuItemRight,style:null==rt?void 0:rt.menuItemRight})]})},`action-item-${n}-${l.name}`))})]}),t("button",{type:"button",onClick:e=>{e.stopPropagation(),il()},style:null==rt?void 0:rt.chevronButton,className:U.chevronButton,children:t($t?a:r,{className:U.chevronIcon,color:null==rt?void 0:rt.chevronIconColor})})]})]}),t("div",{className:U.divider,style:null==rt?void 0:rt.dividerStyle})]}),$t&&t("div",{className:U.cardContent,style:{...null==rt?void 0:rt.cardContentStyle,borderTop:Se?"1px solid #E5E5E5":"none"},children:e("div",We?{className:U.loadingContainer,children:[t("div",{className:U.loadingIconWrapper,children:t(g,{size:28,color:"#5B3DF5",className:U.spinAnimation})}),e("div",{children:[t("h3",{className:U.loadingTitle,children:"Section generation in progress.."}),t("p",{className:U.loadingSubtitle,children:"This may take a few minutes"})]}),t("button",{type:"button",onClick:()=>null==Fe?void 0:Fe(),className:U.viewStatusButton,children:"View Status"})]}:Ke?{className:U.noDataContainer,style:null==yt?void 0:yt.container,children:[t("img",{src:x,alt:"No data available",className:U.noDataIllustration,style:null==yt?void 0:yt.illustration}),t("h3",{className:U.noDataTitle,style:null==yt?void 0:yt.title,children:"No Data Available for This Section"}),t("p",{className:U.noDataSubtitle,style:null==yt?void 0:yt.subtitle,children:"We couldn't find data for this section yet. Upload the required document from the Documents tab to generate content."})]}:{className:U.contentInner,style:null==rt?void 0:rt.contentInner,children:[e("div",{className:U.descriptionSection,style:null==rt?void 0:rt.descriptionSection,children:[t("div",{className:U.justifyBetween,style:null==rt?void 0:rt.justifyBetween}),Et.userStory?t(_,{ref:Zt,minHeight:"100%",height:"100%",type:"string",value:A((pl=tl,pl.replace(/<(upt|manual)\s+id="([^"]+)"[^>]*>/gs,(e,t,l)=>{if(/\sdata-status=/.test(e))return e;const n=function(e){var t;const l=e.split("$"),n=l[1]||l[0];for(const e of at)if(e.id===n)return(null===(t=e.redlining_details)||void 0===t?void 0:t.status)||"";return""}(l);return e.replace(/>$/,` data-status="${n}">`)})))||"",handleUpdateState:(e,t)=>{const l=P(t);Dt(e=>({...e,value:l||""}))},doNotShowBorderInViewMode:!1,onBlur:()=>{},mode:Et.userStory?"edit":"readOnly",onEditBlocked:tt,onSaveUnsavedChanges:async()=>{await al(),Vt(!1)},onDiscardUnsavedChanges:()=>{Dt({...structuredClone(z),value:A(z.value)||""}),Bt(e=>({...e,userStory:!1})),Vt(!1)},isSavingUnsavedChanges:Ft}):ft?t(H,{styles:pt,fields:St,readonly:!Ut,isSaving:It,value:null!==(Ge=null!=Pt?Pt:gt)&&void 0!==Ge?Ge:{},onChange:kt,onSave:async()=>{var e;Pt&&(await(null===(e=null==ot?void 0:ot.onSave)||void 0===e?void 0:e.call(ot,z,Pt)),kt(null),At(!1))},onCancel:()=>{kt(null),At(!1)}}):e(l,{children:[t(M,{showUserStoryDiff:le,isParent:""===X,message:A(z.value)||"",artifactId:z.artifactId,customStyles:ct,isDisplayHighlightControl:re,contextVariant:me,showConfidenceScore:ge,CDNeededInChip:Ee}),De&&t("div",{className:U.approveButtonContainer,style:null==ht?void 0:ht.container,children:t("button",{type:"button",className:U.approveButton,style:null==ht?void 0:ht.button,disabled:De.disabled||De.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=null==De?void 0:De.onClick)||void 0===t||t.call(De)},children:De.isLoading?e(l,{children:[t(v,{size:16,className:U.spinner,style:null==ht?void 0:ht.icon}),t("span",{style:null==ht?void 0:ht.text,children:De.label})]}):e(l,{children:[t("span",{style:null==ht?void 0:ht.text,children:De.label}),t(S,{size:16,style:null==ht?void 0:ht.icon})]})})})]})]}),null===(He=wt.sub_features)||void 0===He?void 0:He.map((e,l)=>{const n=Z(se,!1,e.artifactId);return t(K,{artifactId:I,isUserStoryCurrentlyUpdated:C,artifactTitleId:`${N}-${String.fromCharCode(65+l)}`,parentUserStory:z,parentIndex:`${X}${X&&"."}${Y}`,currentIndex:`${l+1}`,doNotShowBorderInViewMode:!1,currentUserStory:e,onUserStoryChange:e=>((e,t)=>{const l=[...z.sub_features||[]];l[e]=t,G({...z,sub_features:l})})(l,e),enableDownload:!0,isDiffEditReviewMode:te,showUserStoryDiff:le,updateUserStoryArtifact:ie,handleDownloadUserStory:ne,handleOpenSendDialog:oe,isDisplayHighlightControl:re,elementDisplayConfig:se,_resolvedConfig:n,actionItemsConfig:ve,onDelete:()=>(e=>{const t=(z.sub_features||[]).filter((t,l)=>l!==e),l={...z,sub_features:t};Dt(l),G(l)})(l),expandedSubFeatures:ye,disableEditPlan:be,useMuiTooltip:we},e.artifactId)})]})})]});var pl},X=({artifactTitleIDs:n,expandedSubFeatures:o,isDiffEditReviewMode:a,showUserStoryDiff:r,updateUserStoryArtifact:s,isUserStoryCurrentlyUpdated:d,artifactId:u,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:p,isDisplayHighlightControl:m,elementDisplayConfig:y,showWrapper:h,actionItemsConfig:f,contextVariant:g,showDisplayName:S,allowTitleEdit:N,showConfidenceScore:b,showBorderTop:w,defaultExpanded:D,showCompletionPanel:E=!1,showAddSectionButton:B=!1,disableEditPlan:x=!1,useMuiTooltip:T=!1,approveButtonConfig:A,CDNeededInChip:P,setRedlineDocumentIdParent:k})=>{const{userStory:R,setUserStory:_,customStyles:M,searchQueryList:L,currentHighlightIndex:V,setCurrentHighlightIndex:j,segmentComponentConfig:O,sectionStatusConfig:H,redlineConfig:W,setRedlineDocumentId:F}=$(),q=null==M?void 0:M.userStoryCardStyles,Q=0===V,J=V===L.length-1;return i(()=>{if(!(null==W?void 0:W.callCreateDocumentOnInit))return;(async()=>{var e;const{redline_document_id:t}=await z({baseApiUrl:W.documentBaseApiUrl||"",comparisonId:W.documentComparisonId||""});if(t)F(t);else{const{document_id:t}=await G({baseApiUrl:W.baseApiUrl,changelogConfigId:W.changelogConfigId,comparisonId:W.documentComparisonId,artifactId:W.artifactId,inputData:W.inputData,redlineConfigId:W.redlineConfigId,userEmail:W.userEmail,userName:W.userName},null!==(e=null==W?void 0:W.token)&&void 0!==e?e:"");t&&(F(t),null==k||k(t))}})()},[]),e("div",{className:U.userStoryCardWrapper,style:m?{...null==q?void 0:q.userStoryCardWrapper,position:"relative"}:null==q?void 0:q.userStoryCardWrapper,children:[m&&t(l,{children:L.length>0&&t("div",{className:U.wrapper,children:t("div",{className:U.highlightNavigation,children:e("div",{className:U.navigationContainer,children:[e("span",{className:U.navCounter,children:[V+1," of ",L.length]}),e("div",{className:U.navButtons,children:[t("button",{onClick:()=>{V>0&&j(e=>e-1)},className:U.navButton,disabled:Q,children:t(C,{size:20,className:U.navIcon})}),t("button",{onClick:()=>{V<L.length-1&&j(e=>e+1)},className:U.navButton,disabled:J,children:t(I,{size:20,className:U.navIcon})})]})]})})})}),R.map((e,l)=>{const i=Z(y,!0);return t(K,{isUserStoryCurrentlyUpdated:d,artifactId:u,artifactTitleId:n[l]||"",expandedSubFeatures:o,currentUserStory:e,onUserStoryChange:e=>{_(t=>(t[l]=e,[...t]))},parentIndex:"",currentIndex:`${l+1}`,doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:r,updateUserStoryArtifact:s,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:p,isDisplayHighlightControl:m,elementDisplayConfig:y,_resolvedConfig:i,showWrapper:h,defaultExpanded:D,actionItemsConfig:f,contextVariant:g,showDisplayName:S,allowTitleEdit:N,showConfidenceScore:b,showBorderTop:w,sectionStatusConfig:H,showCompletionPanel:E,showAddSectionButton:B,disableEditPlan:x,useMuiTooltip:T,approveButtonConfig:A,CDNeededInChip:P},e.artifactId)})]})};export{K as StoryCard,X as UserStoryCardWrapper,K as default,Q as replaceLearnedTagsWithInfo};
1
+ import{jsxs as e,jsx as t,Fragment as l}from"react/jsx-runtime";import{useState as n,useRef as o,useEffect as i}from"react";import{ChevronUp as a,ChevronDown as r,ExternalLink as s,Download as d,Share2 as u,Copy as c,LoaderCircle as v,PencilIcon as p,Plus as m,Trash2 as y,X as h,Ellipsis as f,Hourglass as g,Check as S,ChevronUpIcon as C,ChevronDownIcon as I,Info as b,Bookmark as w}from"lucide-react";import N from"showdown";import{Tooltip as D,Menu as E,MenuItem as x}from"@mui/material";import B from"../../icons/Illustration.svg.js";import{v4 as T}from"uuid";import A from"./UserStoryCard.module.css.js";import{formatMarkdown as U,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as P}from"../../utils/user-story.utils.js";import R from"../../shared/AtomicButton.js";import _ from"../RichTextEditor/RichTextEditor.js";import F from"../userstory-with-citation/UserStoryWithCitation.js";import{SectionStatus as M,useRequirementAI as L}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as j}from"../story-screen/BigEnoughPanel.js";import{InlineTitleEditor as V}from"./TitleEditor/TitleEditor.js";import{updateRedlineDocument as z,getRedlineDocumentId as O,createRedlineDocument as W}from"../../../../service/redlineService.js";import $ from"./ClinicalTrialSection.js";import{CompletionPanel as G}from"../story-screen/CompletionPanel.js";import H from"../../icons/CDIcon.js";const q={[M.WAITING]:"WAITING TO GENERATE",[M.IN_PROGRESS]:"IN PROGRESS",[M.GENERATED]:"GENERATED",[M.FAILED]:"FAILED",[M.GENERATE]:"GENERATE",[M.APPROVED]:"APPROVED"};function Q(e){const l=[],n=/<learned>(.*?)<\/learned>/g;let o,i=0,a=0;for(;null!==(o=n.exec(e));){const[,r]=o,s=o.index;s>i&&l.push(t("span",{children:e.slice(i,s)},"text-pre-"+a++)),l.push(t(D,{title:r,placement:"top",children:t(b,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})},`tooltip-${T()}`)),i=n.lastIndex}return i<(null==e?void 0:e.length)&&l.push(t("span",{children:e.slice(i)},"text-post-"+a++)),l}function Z(e,t,l){var n;if(!e)return{};if(t)return{...e.parentConfig};const o={...e.childConfig};return l&&(null===(n=e.subFeatureOverrides)||void 0===n?void 0:n[l])?{...o,...e.subFeatureOverrides[l]}:o}const J=({displayName:l})=>{var n;const{customStyles:o}=L(),i=null===(n=null==o?void 0:o.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return e("div",{className:A.displayName,style:null==i?void 0:i.wrapper,children:[t(w,{className:A.displayNameIcon,style:null==i?void 0:i.displayNameIcon}),e("span",{style:null==i?void 0:i.label,children:[l,":"]})]})},K=({isUserStoryCurrentlyUpdated:C,artifactId:I,artifactTitleId:b,parentUserStory:w,currentUserStory:O,onUserStoryChange:W,parentIndex:X,currentIndex:Y,enableDownload:ee,isDiffEditReviewMode:te,showUserStoryDiff:le,handleDownloadUserStory:ne,handleOpenSendDialog:oe,updateUserStoryArtifact:ie,selectedArtifactId:ae,isDisplayHighlightControl:re,elementDisplayConfig:se,_resolvedConfig:de,showWrapper:ue=!1,defaultExpanded:ce,actionItemsConfig:ve,onDelete:pe,contextVariant:me,expandedSubFeatures:ye,showDisplayName:he=!0,allowTitleEdit:fe=!0,showConfidenceScore:ge=!0,showBorderTop:Se=!0,sectionStatusConfig:Ce,showCompletionPanel:Ie=!1,showAddSectionButton:be=!1,disableEditPlan:we=!1,useMuiTooltip:Ne=!1,approveButtonConfig:De,CDNeededInChip:Ee,onAssignSectionClick:xe})=>{var Be,Te,Ae,Ue,ke,Pe,Re,_e,Fe,Me,Le,je,Ve,ze,Oe,We,$e,Ge;const{isLoadingSectionData:He=!1,onLoadSectionData:qe,status:Qe,onStatusClick:Ze,completedCount:Je,totalCount:Ke,isNoDataAvailable:Xe=!1}=null!=Ce?Ce:{},{searchQueryList:Ye,citations:et,customStyles:tt,onEditBlocked:lt,redlineDcoumentId:nt,redlineConfig:ot,customSectionConfig:it,updateRedlineDataParent:at}=L(),rt=null==tt?void 0:tt.userStoryCardStyles,st=null==rt?void 0:rt.customSectionEditButton,dt=null==rt?void 0:rt.statusStyles,ut=null===(Be=null==tt?void 0:tt.userStoryCardStyles)||void 0===Be?void 0:Be.userStoryEditStyles,ct=null===(Te=null==tt?void 0:tt.userStoryScreenStyles)||void 0===Te?void 0:Te.userStoryContentStyles,vt=null==rt?void 0:rt.progressHeaderStyles,pt=null==rt?void 0:rt.clinicalTrialSectionStyles,mt=null==rt?void 0:rt.CompletionStyles,yt=null==rt?void 0:rt.noDataStyles,ht=null==rt?void 0:rt.approveButtonStyles,ft=null!==(Ue=null===(Ae=null==it?void 0:it.shouldRender)||void 0===Ae?void 0:Ae.call(it,O))&&void 0!==Ue&&Ue,gt=null===(ke=null==it?void 0:it.getValue)||void 0===ke?void 0:ke.call(it,O),St=null!==(Re=null===(Pe=null==it?void 0:it.getFields)||void 0===Pe?void 0:Pe.call(it,O))&&void 0!==Re?Re:[],Ct=null!==(_e=null==it?void 0:it.isEditDisabled)&&void 0!==_e&&_e,It=null!==(Me=null===(Fe=null==it?void 0:it.isSaving)||void 0===Fe?void 0:Fe.call(it,O))&&void 0!==Me&&Me,bt=((e,t)=>e>=80?null==t?void 0:t.highCompletion:e>=50?null==t?void 0:t.mediumCompletion:null==t?void 0:t.lowCompletion)(null!==(Le=O.completion_percentage)&&void 0!==Le?Le:0,mt),wt={[M.WAITING]:null==dt?void 0:dt.waiting,[M.IN_PROGRESS]:null==dt?void 0:dt.inProgress,[M.GENERATED]:null==dt?void 0:dt.generated,[M.FAILED]:null==dt?void 0:dt.failed,[M.GENERATE]:null==dt?void 0:dt.generate,[M.APPROVED]:null==dt?void 0:dt.approved},[Nt,Dt]=n({...structuredClone(O),value:U(O.value)||""}),[Et,xt]=n({userStory:!!O.isDefaultEdit}),[Bt,Tt]=n(!1),[At,Ut]=n(!1),[kt,Pt]=n(null),[Rt,_t]=n(null),{userStory:Ft,customIcons:Mt}=L(),[Lt,jt]=n(null!=ce?ce:""===X||ae===O.artifactId||!!O.isDefaultOpen),[Vt,zt]=n(!1),[Ot,Wt]=n(null),[$t,Gt]=n(null),[Ht,qt]=n(!1),Qt=o(null),Zt=o(null),[Jt,Kt]=n(!1),[Xt,Yt]=n(!1),el=o(null),[tl,ll]=n(O.value);i(()=>{C&&jt(C)},[C]),i(()=>{Dt({...structuredClone(O),value:U(O.value)||""})},[O]),i(()=>{Ye.length>0?jt(!0):void 0===ce&&(ae?jt(ae===O.artifactId):ye&&ye.length>0&&jt(ye.includes(O.artifactId)))},[Ye,ae,O.artifactId,ye]);const nl=()=>{Wt(null)},ol=()=>{Gt(null)},il=()=>{Lt&&Et.userStory&&Zt.current&&!Zt.current.requestClose()||jt(e=>!e)},al=async()=>{var e;try{"userStory"==="userStory"&&(W(Nt),console.log("I am changing RTE editor values",Nt)),await ie(et,Ft,I,null===(e=el.current)||void 0===e?void 0:e.signal)}finally{}};const rl=null!=(null==O?void 0:O.big_enough)&&!Number.isNaN(O.big_enough)&&!!(null==O?void 0:O.big_enough_decision_factors),sl=null!==(je=null==O?void 0:O.completion_percentage)&&void 0!==je?je:0,dl=!!(null==O?void 0:O.completion_decision_factors),ul=""===X,cl=null!=de?de:Z(se,ul),vl=!te&&!le;i(()=>{if(!Rt)return;const e=setTimeout(()=>{const e=document.getElementById(`story-card-${Rt}`);null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return()=>clearTimeout(e)},[Rt]),i(()=>{O.isDefaultEdit&&xt(e=>({...e,userStory:!0}))},[O.isDefaultEdit]);return i(()=>ll(O.value),[O.value]),e("div",{className:A.card,style:null==rt?void 0:rt.cardStyle,id:`story-card-${O.title}`,"data-expanded":Lt,children:[e("div",{className:A.titleSection,style:null==rt?void 0:rt.titleSection,children:[e("div",{className:A.titleRow,style:null==rt?void 0:rt.titleRow,onClick:il,children:[e("div",{className:A.titleLeft,style:null==rt?void 0:rt.titleLeft,onMouseEnter:()=>Kt(!0),onMouseLeave:()=>Kt(!1),children:[he&&t(J,{displayName:b}),Bt&&vl?t(V,{title:O.title,onSave:e=>(async(e,t)=>{var l;try{let n={...O};O.artifactId===t?n.title=e:n.sub_features=(null===(l=O.sub_features)||void 0===l?void 0:l.map(l=>l.artifactId===t?{...l,title:e}:l))||[],Dt(n),W(n),Tt(!1)}catch(e){console.error("Failed to save title",e)}})(e,O.artifactId),onCancel:()=>{Tt(!1)},inputStyle:null==ut?void 0:ut.inlineTitleInput,confirmButtonStyle:null==ut?void 0:ut.inlineTitleConfirm,cancelButtonStyle:null==ut?void 0:ut.inlineTitleCancel},"inline-title-editor"):e("div",{className:A.storyTitleWrapper,children:[t(D,{title:Q(O.title),arrow:!0,children:t("h2",{title:Ne?void 0:O.title,className:A.storyTitle,style:null==rt?void 0:rt.storyTitle,children:Q(O.title)},O.artifactId)}),Ie&&!ft&&(dl?t(G,{customIcons:null==Mt?void 0:Mt.userStoryIcons,customStyles:null==rt?void 0:rt.aiReasoningCitaionStyles,currentUserStory:O,panelStyles:null==rt?void 0:rt.CompletionStyles,onToggleStateChange:Yt,children:e("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==mt?void 0:mt.badge,...bt},children:[e("span",{children:[sl,"% Completed"]}),t("span",{style:{display:"flex",alignItems:"center"},children:t(H,{color:"currentColor"})}),t(Xt?a:r,{size:14,style:null==mt?void 0:mt.chevronStyle})]})}):t("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",...null==mt?void 0:mt.badge,...bt},children:e("span",{children:[sl,"% Completed"]})})),fe&&t("button",{type:"button",className:A.titleEditButton,style:null==ut?void 0:ut.titleEditButton,onClick:e=>{e.stopPropagation(),Tt(!0),Lt||jt(!0)},"aria-label":"Edit title",title:"Edit title",children:t("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})})})]})]}),(Qe||void 0!==Je&&void 0!==Ke)&&e("div",{className:A.statusContainer,children:[void 0!==Je&&void 0!==Ke&&e("div",{className:A.completedBadge,children:["Completed: ",Je,"/",Ke]}),Qe&&t("button",{type:"button",onClick:e=>{e.stopPropagation(),null==Ze||Ze()},className:A.statusButton,style:wt[Qe],children:q[Qe]})]}),e("div",{className:A.titleActions,style:null==rt?void 0:rt.titleActions,onClick:e=>e.stopPropagation(),children:[(cl.showProgressPercentage||cl.showGapBox)&&ue&&e("div",{className:A.progressHeader,style:null==vt?void 0:vt.wrapper,children:[cl.showProgressPercentage&&e("div",{className:A.progressPercentage,style:null==vt?void 0:vt.percentage,children:[null!==(ze=null!==(Ve=null==O?void 0:O.confidenceScore)&&void 0!==Ve?Ve:null==cl?void 0:cl.confidenceValue)&&void 0!==ze?ze:"0","%"]}),cl.showGapBox&&e("div",{className:A.gapBox,style:null==vt?void 0:vt.gapBox,children:[null!==(We=null!==(Oe=null==O?void 0:O.gapValue)&&void 0!==Oe?Oe:null==cl?void 0:cl.gapBoxValue)&&void 0!==We?We:"2"," ","Gaps"]})]}),rl&&t(j,{customIcons:null==Mt?void 0:Mt.userStoryIcons,customStyles:null==rt?void 0:rt.aiReasoningCitaionStyles,currentUserStory:O,panelStyles:null==rt?void 0:rt.BigEnoughStyles}),t(D,{title:"Assign Section",arrow:!0,placement:"top",slotProps:{tooltip:{sx:{bgcolor:"#1E293B",color:"#FFFFFF",fontSize:"14px",fontWeight:400,px:2,py:2,borderRadius:"18px",boxShadow:"0px 8px 20px rgba(0,0,0,0.18)"}},arrow:{sx:{color:"#1E293B"}}},children:t("div",{style:{border:"1px solid #D1D5DB",padding:"5px 15px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",background:"#FFFFFF"},onClick:xe,children:e("svg",{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",className:"lucide lucide-users-round-icon lucide-users-round",children:[t("path",{d:"M18 21a8 8 0 0 0-16 0"}),t("circle",{cx:"10",cy:"8",r:"5"}),t("path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"})]})})}),!Et.userStory&&e(l,{children:[!1!==(null==cl?void 0:cl.showShareButton)&&t("button",{className:A.iconButton,style:null==rt?void 0:rt.iconButton,onClick:e=>{Wt(e.currentTarget)},children:t(s,{size:16})}),e(E,{id:"user-story-share-menu",anchorEl:Ot,open:!!Ot,onClose:()=>Wt(null),style:null==rt?void 0:rt.userStoryShareMenu,children:[ee&&t(x,{style:null==rt?void 0:rt.userStoryMenuItem,onClick:async()=>{zt(!0),ne&&(await Promise.all([ne("pdf"),ne("doc")]),zt(!1))},children:e("div",{ref:Qt,className:A.menuItemContent,style:null==rt?void 0:rt.menuItemContent,children:[t(d,{size:16,color:null==rt?void 0:rt.menuIconColor}),t("p",{style:null==rt?void 0:rt.menuLabel,children:"Download"})]})}),t(x,{style:null==rt?void 0:rt.userStoryMenuItem,onClick:async()=>{let e=O;w&&(e={...O,value:`${P(null==w?void 0:w.value,O.title)} \n${O.value}`}),null==oe||oe(!0,[e],O.artifactId),nl()},children:e("div",{style:null==rt?void 0:rt.menuItemContent,className:A.menuItemContentPadded,children:[t(u,{size:16,color:null==rt?void 0:rt.menuIconColor}),t("p",{style:null==rt?void 0:rt.menuLabel,children:"Send"})]})}),t(x,{style:null==rt?void 0:rt.userStoryMenuItem,onClick:async()=>{const e=(new N.Converter).makeHtml(U(O.value)||O.value),t=function(e){const t=(new N.Converter).makeHtml(e),l=document.createElement("div");return l.innerHTML=t,l.textContent||l.innerText||""}(U(O.value)||O.value),l=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([e],{type:"text/html"})});try{await navigator.clipboard.write([l]),console.log("Copied User Story")}catch(e){console.error("Failed to copy user story:",e)}finally{nl()}},children:e("div",{style:null==rt?void 0:rt.menuItemContent,className:A.menuItemContentPadded,children:[t(c,{size:16,color:null==rt?void 0:rt.menuIconColor}),t("p",{style:null==rt?void 0:rt.menuLabel,children:"Copy"})]})})]})]}),!Ht&&Et.userStory&&Lt?t(R,{type:"outline",children:"Cancel",style:null==rt?void 0:rt.cancelButton,onClick:()=>{var e;null===(e=el.current)||void 0===e||e.abort(),xt(e=>({...e,userStory:!1}))}}):t(l,{}),Et.userStory&&Lt?t(R,{type:"fill",children:Ht?e("span",{className:A.savingSpinner,style:null==rt?void 0:rt.savingSpinner,children:[t(v,{className:A.spinAnimation,style:null==rt?void 0:rt.spinAnimation}),t("span",{children:"Saving..."})]}):"Save",isDisable:Ht,style:Ht?null==rt?void 0:rt.savingButton:null==rt?void 0:rt.saveButton,onClick:async()=>{qt(!0),await al();let e=await(async()=>{var e,t,l,n,o;let i=Nt.value;console.log("[V] valueToUpdate before",i),i=i.replace(/<invisible\s+id="([^"]+)"\s*><\/invisible>/gi,"\x3c!-- $1 --\x3e"),console.log("[V] valueToUpdate after",i);try{if(null==ot?void 0:ot.callUpdateDocument){const{updated_reqai:a}=await z({documentId:nt,sectionId:O.artifactId,baseApiUrl:null==ot?void 0:ot.baseApiUrl,updatedContent:i,userEmail:ot.userEmail,userName:ot.userName,redlineConfigId:null!==(e=ot.redlineConfigId)&&void 0!==e?e:""},null!==(t=null==ot?void 0:ot.token)&&void 0!==t?t:"");i=null===(o=null===(n=null===(l=null==a?void 0:a.artifactData)||void 0===l?void 0:l.userStorySnapshot)||void 0===n?void 0:n[0])||void 0===o?void 0:o.value,await(null==at?void 0:at(a))}}catch(e){console.error("failed to update redline document",e),i=tl}return i=i.replace(/<!--\s*([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\s*-->/gi,'<invisible id="$1"></invisible>'),i})();const t={...Nt,value:e};W({...t,isDefaultEdit:!1}),ll(t.value),xt(e=>({...e,userStory:!1})),qt(!1)}}):!te&&!le&&!we&&Lt&&!1!==(null==cl?void 0:cl.showEditButton)&&t("button",{className:A.iconButton,style:null==rt?void 0:rt.editButton,onClick:()=>xt(e=>({...e,userStory:!0})),children:t(p,{color:null==rt?void 0:rt.pencilIconColor,size:16})}),be&&ul&&Lt&&!te&&!le&&!1!==(null==cl?void 0:cl.showEditButton)&&e("button",{type:"button",className:A.addSectionButton,style:null==ut?void 0:ut.addSectionButton,onClick:e=>{var t,l,n;e.stopPropagation();const o=(null!==(l=null===(t=O.sub_features)||void 0===t?void 0:t.length)&&void 0!==l?l:0)+1,i={artifactId:T(),title:`New Section ${o}`,value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},a={...O,sub_features:[...null!==(n=O.sub_features)&&void 0!==n?n:[],i]};Dt(a),W(a),jt(!0),_t(i.title)},"aria-label":"Add section",title:"Add section",children:[t(m,{size:14}),t("span",{className:A.addSectionLabel,children:"Add Section"})]}),!ul&&!te&&!we&&!le&&t("button",{type:"button",onClick:e=>{e.stopPropagation(),null==pe||pe()},className:A.iconButton,style:null==ut?void 0:ut.deleteButton,"aria-label":"Delete section",title:"Delete section",children:t(y,{size:16})}),ft&&t("button",{type:"button",className:A.iconButton,style:null==st?void 0:st.button,disabled:Ct,onClick:e=>{if(e.stopPropagation(),At)return Pt(null),void Ut(!1);Pt(structuredClone(null!=gt?gt:{})),jt(!0),Ut(!0)},children:At?t(h,{size:16,color:null==rt?void 0:rt.pencilIconColor,style:null==st?void 0:st.cancelIcon}):t(p,{size:16,color:null==rt?void 0:rt.pencilIconColor,style:null==st?void 0:st.editIcon})}),(null==cl?void 0:cl.actionItemsButton)&&e(l,{children:[t("span",{className:A.actionItemBtn,style:null==rt?void 0:rt.actionItemBtn,onClick:e=>{e.stopPropagation(),Gt(e.currentTarget)},children:t(f,{})}),t(E,{id:"user-story-action-menu",anchorEl:$t,open:!!$t,onClose:ol,style:null==rt?void 0:rt.userStoryShareMenu,children:null==ve?void 0:ve.items.map((l,n)=>t(x,{style:null==rt?void 0:rt.userStoryMenuItem,onClick:()=>{l.onclick(O),ol()},children:e("div",{className:A.menuItemContent,style:{...null==rt?void 0:rt.menuItemContent,...!l.isActive&&{cursor:"not-allowed",opacity:.5}},children:[t("span",{className:A.menuItemIcon,style:null==rt?void 0:rt.menuItemIcon,children:l.icon}),t("p",{style:null==rt?void 0:rt.menuLabel,children:l.name}),t("span",{className:A.menuItemRight,style:null==rt?void 0:rt.menuItemRight})]})},`action-item-${n}-${l.name}`))})]}),t("button",{type:"button",onClick:e=>{e.stopPropagation(),il()},style:null==rt?void 0:rt.chevronButton,className:A.chevronButton,children:t(Lt?a:r,{className:A.chevronIcon,color:null==rt?void 0:rt.chevronIconColor})})]})]}),t("div",{className:A.divider,style:null==rt?void 0:rt.dividerStyle})]}),Lt&&t("div",{className:A.cardContent,style:{...null==rt?void 0:rt.cardContentStyle,borderTop:Se?"1px solid #E5E5E5":"none"},children:e("div",He?{className:A.loadingContainer,children:[t("div",{className:A.loadingIconWrapper,children:t(g,{size:28,color:"#5B3DF5",className:A.spinAnimation})}),e("div",{children:[t("h3",{className:A.loadingTitle,children:"Section generation in progress.."}),t("p",{className:A.loadingSubtitle,children:"This may take a few minutes"})]}),t("button",{type:"button",onClick:()=>null==qe?void 0:qe(),className:A.viewStatusButton,children:"View Status"})]}:Xe?{className:A.noDataContainer,style:null==yt?void 0:yt.container,children:[t("img",{src:B,alt:"No data available",className:A.noDataIllustration,style:null==yt?void 0:yt.illustration}),t("h3",{className:A.noDataTitle,style:null==yt?void 0:yt.title,children:"No Data Available for This Section"}),t("p",{className:A.noDataSubtitle,style:null==yt?void 0:yt.subtitle,children:"We couldn't find data for this section yet. Upload the required document from the Documents tab to generate content."})]}:{className:A.contentInner,style:null==rt?void 0:rt.contentInner,children:[e("div",{className:A.descriptionSection,style:null==rt?void 0:rt.descriptionSection,children:[t("div",{className:A.justifyBetween,style:null==rt?void 0:rt.justifyBetween}),Et.userStory?t(_,{ref:Zt,minHeight:"100%",height:"100%",type:"string",value:U(tl)||"",handleUpdateState:(e,t)=>{const l=k(t);Dt(e=>({...e,value:l||""}))},doNotShowBorderInViewMode:!1,onBlur:()=>{},mode:Et.userStory?"edit":"readOnly",onEditBlocked:lt,onSaveUnsavedChanges:async()=>{await al(),jt(!1)},onDiscardUnsavedChanges:()=>{Dt({...structuredClone(O),value:U(O.value)||""}),xt(e=>({...e,userStory:!1})),jt(!1)},isSavingUnsavedChanges:Ht}):ft?t($,{styles:pt,fields:St,readonly:!At,isSaving:It,value:null!==($e=null!=kt?kt:gt)&&void 0!==$e?$e:{},onChange:Pt,onSave:async()=>{var e;kt&&(await(null===(e=null==it?void 0:it.onSave)||void 0===e?void 0:e.call(it,O,kt)),Pt(null),Ut(!1))},onCancel:()=>{Pt(null),Ut(!1)}}):e(l,{children:[t(F,{showUserStoryDiff:le,isParent:""===X,message:U(O.value)||"",artifactId:O.artifactId,customStyles:ct,isDisplayHighlightControl:re,contextVariant:me,showConfidenceScore:ge,CDNeededInChip:Ee}),De&&t("div",{className:A.approveButtonContainer,style:null==ht?void 0:ht.container,children:t("button",{type:"button",className:A.approveButton,style:null==ht?void 0:ht.button,disabled:De.disabled||De.isLoading,onClick:e=>{var t;e.stopPropagation(),null===(t=null==De?void 0:De.onClick)||void 0===t||t.call(De)},children:De.isLoading?e(l,{children:[t(v,{size:16,className:A.spinner,style:null==ht?void 0:ht.icon}),t("span",{style:null==ht?void 0:ht.text,children:De.label})]}):e(l,{children:[t("span",{style:null==ht?void 0:ht.text,children:De.label}),t(S,{size:16,style:null==ht?void 0:ht.icon})]})})})]})]}),null===(Ge=Nt.sub_features)||void 0===Ge?void 0:Ge.map((e,l)=>{const n=Z(se,!1,e.artifactId);return t(K,{artifactId:I,isUserStoryCurrentlyUpdated:C,artifactTitleId:`${b}-${String.fromCharCode(65+l)}`,parentUserStory:O,parentIndex:`${X}${X&&"."}${Y}`,currentIndex:`${l+1}`,doNotShowBorderInViewMode:!1,currentUserStory:e,onUserStoryChange:e=>((e,t)=>{const l=[...O.sub_features||[]];l[e]=t,W({...O,sub_features:l})})(l,e),enableDownload:!0,isDiffEditReviewMode:te,showUserStoryDiff:le,updateUserStoryArtifact:ie,handleDownloadUserStory:ne,handleOpenSendDialog:oe,isDisplayHighlightControl:re,elementDisplayConfig:se,_resolvedConfig:n,actionItemsConfig:ve,onDelete:()=>(e=>{const t=(O.sub_features||[]).filter((t,l)=>l!==e),l={...O,sub_features:t};Dt(l),W(l)})(l),expandedSubFeatures:ye,disableEditPlan:we,useMuiTooltip:Ne},e.artifactId)})]})})]})},X=({artifactTitleIDs:n,expandedSubFeatures:o,isDiffEditReviewMode:a,showUserStoryDiff:r,updateUserStoryArtifact:s,isUserStoryCurrentlyUpdated:d,artifactId:u,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:p,isDisplayHighlightControl:m,elementDisplayConfig:y,showWrapper:h,actionItemsConfig:f,contextVariant:g,showDisplayName:S,allowTitleEdit:b,showConfidenceScore:w,showBorderTop:N,defaultExpanded:D,showCompletionPanel:E=!1,showAddSectionButton:x=!1,disableEditPlan:B=!1,useMuiTooltip:T=!1,approveButtonConfig:U,CDNeededInChip:k,setRedlineDocumentIdParent:P})=>{const{userStory:R,setUserStory:_,customStyles:F,searchQueryList:M,currentHighlightIndex:j,setCurrentHighlightIndex:V,segmentComponentConfig:z,sectionStatusConfig:$,redlineConfig:G,setRedlineDocumentId:H}=L(),q=null==F?void 0:F.userStoryCardStyles,Q=0===j,J=j===M.length-1;return i(()=>{if(!(null==G?void 0:G.callCreateDocumentOnInit))return;(async()=>{var e;const{redline_document_id:t}=await O({baseApiUrl:G.documentBaseApiUrl||"",comparisonId:G.documentComparisonId||""});if(t)H(t);else{const{document_id:t}=await W({baseApiUrl:G.baseApiUrl,changelogConfigId:G.changelogConfigId,comparisonId:G.documentComparisonId,artifactId:G.artifactId,inputData:G.inputData,redlineConfigId:G.redlineConfigId,userEmail:G.userEmail,userName:G.userName},null!==(e=null==G?void 0:G.token)&&void 0!==e?e:"");t&&(H(t),null==P||P(t))}})()},[]),e("div",{className:A.userStoryCardWrapper,style:m?{...null==q?void 0:q.userStoryCardWrapper,position:"relative"}:null==q?void 0:q.userStoryCardWrapper,children:[m&&t(l,{children:M.length>0&&t("div",{className:A.wrapper,children:t("div",{className:A.highlightNavigation,children:e("div",{className:A.navigationContainer,children:[e("span",{className:A.navCounter,children:[j+1," of ",M.length]}),e("div",{className:A.navButtons,children:[t("button",{onClick:()=>{j>0&&V(e=>e-1)},className:A.navButton,disabled:Q,children:t(C,{size:20,className:A.navIcon})}),t("button",{onClick:()=>{j<M.length-1&&V(e=>e+1)},className:A.navButton,disabled:J,children:t(I,{size:20,className:A.navIcon})})]})]})})})}),R.map((e,l)=>{const i=Z(y,!0);return t(K,{isUserStoryCurrentlyUpdated:d,artifactId:u,artifactTitleId:n[l]||"",expandedSubFeatures:o,currentUserStory:e,onUserStoryChange:e=>{_(t=>(t[l]=e,[...t]))},parentIndex:"",currentIndex:`${l+1}`,doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:r,updateUserStoryArtifact:s,handleOpenSendDialog:c,handleDownloadUserStory:v,selectedArtifactId:p,isDisplayHighlightControl:m,elementDisplayConfig:y,_resolvedConfig:i,showWrapper:h,defaultExpanded:D,actionItemsConfig:f,contextVariant:g,showDisplayName:S,allowTitleEdit:b,showConfidenceScore:w,showBorderTop:N,sectionStatusConfig:$,showCompletionPanel:E,showAddSectionButton:x,disableEditPlan:B,useMuiTooltip:T,approveButtonConfig:U,CDNeededInChip:k},e.artifactId)})]})};export{K as StoryCard,X as UserStoryCardWrapper,K as default,Q as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as l,jsxs as e,Fragment as n}from"react/jsx-runtime";import{Divider as o,CircularProgress as i}from"@mui/material";import{hexToOpacity as t}from"../../../utils/css.utils.js";import r from"./InlineUpdatedComponent.module.css.js";import d from"../../../icons/CognitiveDecision.js";import{Check as a,X as s,Undo2 as u,ChevronDown as c}from"lucide-react";import{useRef as v,useState as p,useCallback as m,useLayoutEffect as g}from"react";const f=({aiReason:f,children:h,customStyles:C,handleClickCognitiveDecision:y,handleClickUpdatedPill:b,handleClickOutputValue:w,customIcons:_,CDNeededInChip:k=!0})=>{var N,D,P,S,$,I,j,x,z,A,L,R,T,W,E,M,O,U,B,F,H,q,V;const G=v(null),J=v(null),[K,Q]=p(null),X=m(()=>{var l;const e=J.current,n=(null===(l=G.current)||void 0===l?void 0:l.offsetParent)||(null==e?void 0:e.offsetParent);if(!(e&&n instanceof HTMLElement))return;const o=e.getBoundingClientRect(),i=n.getBoundingClientRect(),t=o.top-i.top+o.height/2;Q(l=>null!==l&&Math.abs(l-t)<.5?l:t)},[]);g(()=>{X()}),g(()=>{var l,e;if("undefined"==typeof window)return;const n=window.requestAnimationFrame(X);window.addEventListener("resize",X);const o="undefined"!=typeof ResizeObserver?new ResizeObserver(X):null;J.current&&(null==o||o.observe(J.current));const i=(null===(l=G.current)||void 0===l?void 0:l.offsetParent)||(null===(e=J.current)||void 0===e?void 0:e.offsetParent);return i instanceof HTMLElement&&(null==o||o.observe(i)),()=>{window.cancelAnimationFrame(n),window.removeEventListener("resize",X),null==o||o.disconnect()}},[X]);const Y="pending"!==(null===(N=f.redlining_details)||void 0===N?void 0:N.status)?"#303030":null===(S=null===(P=null===(D=f.redlining_details)||void 0===D?void 0:D.evaluation_outputs)||void 0===P?void 0:P.metadata)||void 0===S?void 0:S.label_color,Z={color:Y||"#000000",background:t(Y||"#000000",25),border:`1px solid ${t(Y||"#000000",75)}`},ll=Y||"#000000",el=t(Y||"#000000",25),nl={background:t(Y||"#000000",75),...null==C?void 0:C.dividerStyle};let ol=null;const il=null===($=f.redlining_details)||void 0===$?void 0:$.status;"accepted"===il?ol=null!==(I=null==_?void 0:_.accepted)&&void 0!==I?I:l(a,{color:"#16A34A"}):"rejected"===il?ol=null!==(j=null==_?void 0:_.rejected)&&void 0!==j?j:l(s,{color:"#DC2626"}):"reverted"===il&&(ol=null!==(x=null==_?void 0:_.reverted)&&void 0!==x?x:l(u,{color:"#475569"}));const tl=null===K?{}:{"--inline-update-anchor-top":`${K}px`},rl=null===K?"":` ${r.anchorAligned}`;return e("span",{className:r.inlineUpdatedWrapper,children:[ol&&l("span",{className:`${r.resolvedStatus}${rl}`,style:{...tl,...null==C?void 0:C.resolvedIcon},children:ol}),l("span",{ref:G,id:f.id.toString(),onClick:l=>{l.stopPropagation(),null==b||b(l.currentTarget,f)},className:`${r.pillWrapper}${rl}`,style:{...tl,...null==C?void 0:C.pillStyleWrapper},children:e("span",{className:r.pillComponent,style:{...Z,...null===(z=null==C?void 0:C.pillComponent)||void 0===z?void 0:z.commonStyle},children:[l("span",{children:(null===(R=null===(L=null===(A=f.redlining_details)||void 0===A?void 0:A.evaluation_outputs)||void 0===L?void 0:L.metadata)||void 0===R?void 0:R.label_text)||""}),l(o,{className:r.dividerStyle,style:nl}),l("span",{className:r["output-container"],onClick:l=>{w&&(l.stopPropagation(),null==w||w(l.currentTarget,f))},children:f.resolving?l(i,{size:(null===(T=null==C?void 0:C.loader)||void 0===T?void 0:T.size)||18,"aria-label":"Loading…",sx:{color:(null===(W=null==C?void 0:C.loader)||void 0===W?void 0:W.color)||Y}}):"pending"!==(null===(E=f.redlining_details)||void 0===E?void 0:E.status)?ol:null===(O=null===(M=null==f?void 0:f.redlining_details)||void 0===M?void 0:M.evaluation_outputs)||void 0===O?void 0:O.output_value}),k&&e(n,{children:[l(o,{className:r.dividerStyle,style:nl}),l("span",{onClick:l=>{l.stopPropagation(),null==y||y(l.currentTarget,f)},className:r.cognitiveDecisionWrapper,style:null===(U=null==C?void 0:C.cognitiveDecisionIcon)||void 0===U?void 0:U.wrapper,children:l(d,{color:(null===(B=null==C?void 0:C.cognitiveDecisionIcon)||void 0===B?void 0:B.color)||ll,backgroundColor:(null===(F=null==C?void 0:C.cognitiveDecisionIcon)||void 0===F?void 0:F.backgroundColor)||el})}),l("span",{className:r.chevronWrapper,style:null===(H=null==C?void 0:C.Chevron)||void 0===H?void 0:H.wrapper,children:l(c,{color:(null===(q=null==C?void 0:C.Chevron)||void 0===q?void 0:q.color)||Y})})]})]})}),l("span",{ref:J,className:r[`upt-${null===(V=f.redlining_details)||void 0===V?void 0:V.status}`],onClick:l=>{l.preventDefault(),l.stopPropagation(),G.current&&(null==b||b(G.current,f))},children:h})]})};export{f as default};
1
+ import{jsx as e,jsxs as l,Fragment as n}from"react/jsx-runtime";import{Divider as o,CircularProgress as i}from"@mui/material";import{hexToOpacity as t}from"../../../utils/css.utils.js";import r from"./InlineUpdatedComponent.module.css.js";import d from"../../../icons/CognitiveDecision.js";import{Check as a,X as s,Undo2 as u,ChevronDown as c}from"lucide-react";import{useRef as v,useState as p,useCallback as m,useLayoutEffect as g}from"react";const f=({aiReason:f,children:h,customStyles:C,handleClickCognitiveDecision:y,handleClickUpdatedPill:b,handleClickOutputValue:w,customIcons:_,CDNeededInChip:k=!0})=>{var N,D,P,S,$,I,j,x,z,A,L,R,T,W,E,M,O,U,B,F,H;const q=v(null),V=v(null),[G,J]=p(null),K=m(()=>{var e;const l=V.current,n=(null===(e=q.current)||void 0===e?void 0:e.offsetParent)||(null==l?void 0:l.offsetParent);if(!(l&&n instanceof HTMLElement))return;const o=l.getBoundingClientRect(),i=n.getBoundingClientRect(),t=o.top-i.top+o.height/2;J(e=>null!==e&&Math.abs(e-t)<.5?e:t)},[]);g(()=>{K()}),g(()=>{var e,l;if("undefined"==typeof window)return;const n=window.requestAnimationFrame(K);window.addEventListener("resize",K);const o="undefined"!=typeof ResizeObserver?new ResizeObserver(K):null;V.current&&(null==o||o.observe(V.current));const i=(null===(e=q.current)||void 0===e?void 0:e.offsetParent)||(null===(l=V.current)||void 0===l?void 0:l.offsetParent);return i instanceof HTMLElement&&(null==o||o.observe(i)),()=>{window.cancelAnimationFrame(n),window.removeEventListener("resize",K),null==o||o.disconnect()}},[K]);const Q="pending"!==(null===(N=f.redlining_details)||void 0===N?void 0:N.status)?"#303030":null===(S=null===(P=null===(D=f.redlining_details)||void 0===D?void 0:D.evaluation_outputs)||void 0===P?void 0:P.metadata)||void 0===S?void 0:S.label_color,X={color:Q||"#000000",background:t(Q||"#000000",25),border:`1px solid ${t(Q||"#000000",75)}`},Y=Q||"#000000",Z=t(Q||"#000000",25),ee={background:t(Q||"#000000",75),...null==C?void 0:C.dividerStyle};let le=null;const ne=null===($=f.redlining_details)||void 0===$?void 0:$.status;"accepted"===ne?le=null!==(I=null==_?void 0:_.accepted)&&void 0!==I?I:e(a,{color:"#16A34A"}):"rejected"===ne?le=null!==(j=null==_?void 0:_.rejected)&&void 0!==j?j:e(s,{color:"#DC2626"}):"reverted"===ne&&(le=null!==(x=null==_?void 0:_.reverted)&&void 0!==x?x:e(u,{color:"#475569"}));const oe=null===G?{}:{"--inline-update-anchor-top":`${G}px`},ie=null===G?"":` ${r.anchorAligned}`;return l("span",{className:r.inlineUpdatedWrapper,children:[le&&e("span",{className:`${r.resolvedStatus}${ie}`,style:{...oe,...null==C?void 0:C.resolvedIcon},children:le}),e("span",{ref:q,id:f.id.toString(),onClick:e=>{e.stopPropagation(),null==b||b(e.currentTarget,f)},className:`${r.pillWrapper}${ie}`,style:{...oe,...null==C?void 0:C.pillStyleWrapper},children:l("span",{className:r.pillComponent,style:{...X,...null===(z=null==C?void 0:C.pillComponent)||void 0===z?void 0:z.commonStyle},children:[e("span",{children:(null===(R=null===(L=null===(A=f.redlining_details)||void 0===A?void 0:A.evaluation_outputs)||void 0===L?void 0:L.metadata)||void 0===R?void 0:R.label_text)||""}),e(o,{className:r.dividerStyle,style:ee}),e("span",{className:r["output-container"],onClick:e=>{w&&(e.stopPropagation(),null==w||w(e.currentTarget,f))},children:f.resolving?e(i,{size:20,"aria-label":"Loading…"}):"pending"!==(null===(T=f.redlining_details)||void 0===T?void 0:T.status)?le:null===(E=null===(W=null==f?void 0:f.redlining_details)||void 0===W?void 0:W.evaluation_outputs)||void 0===E?void 0:E.output_value}),k&&l(n,{children:[e(o,{className:r.dividerStyle,style:ee}),e("span",{onClick:e=>{e.stopPropagation(),null==y||y(e.currentTarget,f)},className:r.cognitiveDecisionWrapper,style:null===(M=null==C?void 0:C.cognitiveDecisionIcon)||void 0===M?void 0:M.wrapper,children:e(d,{color:(null===(O=null==C?void 0:C.cognitiveDecisionIcon)||void 0===O?void 0:O.color)||Y,backgroundColor:(null===(U=null==C?void 0:C.cognitiveDecisionIcon)||void 0===U?void 0:U.backgroundColor)||Z})}),e("span",{className:r.chevronWrapper,style:null===(B=null==C?void 0:C.Chevron)||void 0===B?void 0:B.wrapper,children:e(c,{color:(null===(F=null==C?void 0:C.Chevron)||void 0===F?void 0:F.color)||Q})})]})]})}),e("span",{ref:V,className:r[`upt-${null===(H=f.redlining_details)||void 0===H?void 0:H.status}`],onClick:e=>{e.preventDefault(),e.stopPropagation(),q.current&&(null==b||b(q.current,f))},children:h})]})};export{f as default};
2
2
  //# sourceMappingURL=InlineUpdatedComponent.js.map
@@ -1,2 +1,2 @@
1
- function e(e){try{return e}catch(e){console.error("Error in formatMarkdown",e)}}function r(e){return e.includes("Acceptance Criteria")?e=null==(e=null==(e=null==(e=null==e?void 0:e.replace(/\\n/g,"\n"))?void 0:e.replace(/(\*\*.+?\*\*)\s*:/g,"\n$1:\n"))?void 0:e.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,(e,r)=>{const n=r.split(".");return`${" ".repeat(n.length-1)}${r}.`}))?void 0:e.replace(/([^\n])\n(?![\n\*#])/g,"$1<br>\n"):e}const n=e=>{if(!e)return"";e=(e=(e=(e=(e=e.replace(/%&&%[\s\S]*?%&&%/g,"")).replace(/<!--[\s\S]*?-->/g,"")).replace(/<crredirection[^>]*>[\s\S]*?<\/crredirection>/gi,"")).replace(/<answerExample[^>]*>[\s\S]*?<\/answerExample>/gi,"")).replace(/<a\s+data-cognitive-reasoning[^>]*>[\s\S]*?<\/a>/gi,"");return["b","strong","i","em","u","ol","ul","li","p","div","span","h1","h2","h3","h4","h5","h6","highlight","br","hr"].forEach(r=>{const n=new RegExp(`</?${r}[^>]*>`,"gi");e=e.replace(n,"")}),e=(e=(e=(e=(e=e.replace("ð","")).replace(/\*\*/g,"")).replace(/\n/g," ")).replace(/\s+/g," ")).trim()},a=e=>{const r=(new DOMParser).parseFromString(e,"text/html");return Array.from(r.querySelectorAll('a[href^="ai_reasoning$"]')).map(e=>e.getAttribute("href").replace("ai_reasoning$",""))},t=e=>{const r=(new DOMParser).parseFromString(e,"text/html");return r.querySelectorAll('a[href^="ai_reasoning$"]').forEach(e=>{e.remove()}),r.body.innerHTML.trim()};export{a as extractAllAiReasoningIds,e as formatMarkdown,r as indentMarkdown,t as stripAiReasoningAnchors,n as stripHtmlAndMetadata};
1
+ function e(e){try{return e=null==e?void 0:e.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,(e,r)=>{const n=r.split(".");return`${" ".repeat(n.length-1)}${r}.`})}catch(e){console.error("Error in formatMarkdown",e)}}function r(e){return e.includes("Acceptance Criteria")?e=null==(e=null==(e=null==(e=null==e?void 0:e.replace(/\\n/g,"\n"))?void 0:e.replace(/(\*\*.+?\*\*)\s*:/g,"\n$1:\n"))?void 0:e.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,(e,r)=>{const n=r.split(".");return`${" ".repeat(n.length-1)}${r}.`}))?void 0:e.replace(/([^\n])\n(?![\n\*#])/g,"$1<br>\n"):e}const n=e=>{if(!e)return"";e=(e=(e=(e=(e=e.replace(/%&&%[\s\S]*?%&&%/g,"")).replace(/<!--[\s\S]*?-->/g,"")).replace(/<crredirection[^>]*>[\s\S]*?<\/crredirection>/gi,"")).replace(/<answerExample[^>]*>[\s\S]*?<\/answerExample>/gi,"")).replace(/<a\s+data-cognitive-reasoning[^>]*>[\s\S]*?<\/a>/gi,"");return["b","strong","i","em","u","ol","ul","li","p","div","span","h1","h2","h3","h4","h5","h6","highlight","br","hr"].forEach(r=>{const n=new RegExp(`</?${r}[^>]*>`,"gi");e=e.replace(n,"")}),e=(e=(e=(e=(e=e.replace("ð","")).replace(/\*\*/g,"")).replace(/\n/g," ")).replace(/\s+/g," ")).trim()},t=e=>{const r=(new DOMParser).parseFromString(e,"text/html");return Array.from(r.querySelectorAll('a[href^="ai_reasoning$"]')).map(e=>e.getAttribute("href").replace("ai_reasoning$",""))},a=e=>{const r=(new DOMParser).parseFromString(e,"text/html");return r.querySelectorAll('a[href^="ai_reasoning$"]').forEach(e=>{e.remove()}),r.body.innerHTML.trim()};export{t as extractAllAiReasoningIds,e as formatMarkdown,r as indentMarkdown,a as stripAiReasoningAnchors,n as stripHtmlAndMetadata};
2
2
  //# sourceMappingURL=helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveCompareTest.d.ts","sourceRoot":"","sources":["../../../src/CognitiveCompareTest.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,oBAAoB,+CA4MzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"CognitiveCompareTest.d.ts","sourceRoot":"","sources":["../../../src/CognitiveCompareTest.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,oBAAoB,+CA8MzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=RedlineApprovalCardTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedlineApprovalCardTest.d.ts","sourceRoot":"","sources":["../../../src/RedlineApprovalCardTest.tsx"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"RedlineEditorTest.d.ts","sourceRoot":"","sources":["../../../src/RedlineEditorTest.tsx"],"names":[],"mappings":"AAyBA,iBAAS,iBAAiB,4CAo8BzB;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"RedlineEditorTest.d.ts","sourceRoot":"","sources":["../../../src/RedlineEditorTest.tsx"],"names":[],"mappings":"AAwBA,iBAAS,iBAAiB,4CAi8BzB;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { CognitiveCompareProps } from "./CognitiveCompareTypes";
2
2
  import { SHARED_MARKDOWN_STYLES } from "./CognitiveCompareConfig";
3
- declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, badgeStyleOverride, }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, badgeStyleOverride, guidelinesData }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export { SHARED_MARKDOWN_STYLES };
5
5
  export default CognitiveCompare;
6
6
  //# sourceMappingURL=CognitiveCompare.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AA0BlC,QAAA,MAAM,gBAAgB,gUA2BnB,qBAAqB,4CA6iFvB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AA4BlC,QAAA,MAAM,gBAAgB,+UA4BnB,qBAAqB,4CA0lFvB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAe,gBAAgB,CAAC"}
@@ -95,6 +95,8 @@ export type ConflictBadgeStyleFn = (scoreText: string | null | undefined) => {
95
95
  border: string;
96
96
  } | null;
97
97
  export interface CognitiveCompareProps {
98
+ guidelinesData?: Record<string, any> | null;
99
+ isGuidelineMode?: boolean;
98
100
  componentHeaderText?: string;
99
101
  treeData?: Record<string, any> | null;
100
102
  comparisonConfig?: Partial<ComparisonConfig>;
@@ -257,6 +259,9 @@ export interface CachedBadgePosition {
257
259
  rhsArrayIdx: number | string;
258
260
  styleColor: string;
259
261
  styleId: string;
262
+ styleBg?: string;
263
+ styleText?: string;
264
+ centerX?: number;
260
265
  }
261
266
  export type CognitiveSummaryPopupProps = {
262
267
  open: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveCompareTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareTypes.ts"],"names":[],"mappings":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aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAA;AAGD,MAAM,MAAM,cAAc,GAAG;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEJ,MAAM,MAAM,SAAS,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,CAC3E,GAAG,EACH,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAChC,CAAC"}
1
+ {"version":3,"file":"CognitiveCompareTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareTypes.ts"],"names":[],"mappings":";AAEA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B,EAAE;QAC1B,OAAO,EAAE;YACP,aAAa,EAAE,MAAM,CAAC;YACtB,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,MAAM,EAAE;YACN,CAAC,GAAG,EAAE,MAAM,GACV,uBAAuB,GACvB;gBAAE,KAAK,EAAE,MAAM,CAAC;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E,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEJ,MAAM,MAAM,SAAS,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,CAC3E,GAAG,EACH,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAChC,CAAC"}
@@ -5,6 +5,7 @@ export type UnifiedNumbering = {
5
5
  rightNums: Map<string, string>;
6
6
  };
7
7
  export type CompareContextValue = {
8
+ isGuidelineMode: boolean;
8
9
  maintainRelativeOrder: boolean;
9
10
  showDeviationBadges: boolean;
10
11
  isProposingFix?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CompareContext.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CompareContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,OAA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AAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IACjF,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC/D,wBAAwB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC;IACxD,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7C,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5D,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC,CAAC;AAIF,eAAO,MAAM,sBAAsB,4CAA0B,CAAC;AAE9D,eAAO,MAAM,iBAAiB,2BAM7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const GuidelinePanel: ({ guidelinesData, deviationData, connectedSections, proposedSections }: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default GuidelinePanel;
3
+ //# sourceMappingURL=GuidelinePanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GuidelinePanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,cAAc,2EAA4E,GAAG,4CAkFlG,CAAC;AAEF,eAAe,cAAc,CAAC"}