@e-llm-studio/requirement-ai 0.0.167 → 0.0.169

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 (83) hide show
  1. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +2 -0
  2. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js.map +1 -0
  3. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationComponent.css.js +2 -0
  4. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationComponent.css.js.map +1 -0
  5. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +2 -0
  6. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js.map +1 -0
  7. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +2 -0
  8. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js.map +1 -0
  9. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +2 -0
  10. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js.map +1 -0
  11. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +2 -0
  12. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js.map +1 -0
  13. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +2 -0
  14. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js.map +1 -0
  15. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +2 -0
  16. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js.map +1 -0
  17. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +2 -0
  18. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js.map +1 -0
  19. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/History.svg.js +2 -0
  20. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/History.svg.js.map +1 -0
  21. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +2 -0
  22. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js.map +1 -0
  23. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/aiMagic.svg.js +2 -0
  24. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/aiMagic.svg.js.map +1 -0
  25. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/cognitiveBrain.svg.js +2 -0
  26. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/cognitiveBrain.svg.js.map +1 -0
  27. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/message-chat-square.svg.js +2 -0
  28. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/message-chat-square.svg.js.map +1 -0
  29. package/dist/cjs/index.js +1 -1
  30. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +2 -0
  31. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js.map +1 -0
  32. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationComponent.css.js +2 -0
  33. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationComponent.css.js.map +1 -0
  34. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +2 -0
  35. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js.map +1 -0
  36. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +2 -0
  37. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js.map +1 -0
  38. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +2 -0
  39. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js.map +1 -0
  40. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +2 -0
  41. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js.map +1 -0
  42. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +2 -0
  43. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js.map +1 -0
  44. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +2 -0
  45. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js.map +1 -0
  46. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +2 -0
  47. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js.map +1 -0
  48. package/dist/features/RequirementAI/components/UserStoryCard/icons/History.svg.js +2 -0
  49. package/dist/features/RequirementAI/components/UserStoryCard/icons/History.svg.js.map +1 -0
  50. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +2 -0
  51. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js.map +1 -0
  52. package/dist/features/RequirementAI/components/UserStoryCard/icons/aiMagic.svg.js +2 -0
  53. package/dist/features/RequirementAI/components/UserStoryCard/icons/aiMagic.svg.js.map +1 -0
  54. package/dist/features/RequirementAI/components/UserStoryCard/icons/cognitiveBrain.svg.js +2 -0
  55. package/dist/features/RequirementAI/components/UserStoryCard/icons/cognitiveBrain.svg.js.map +1 -0
  56. package/dist/features/RequirementAI/components/UserStoryCard/icons/message-chat-square.svg.js +2 -0
  57. package/dist/features/RequirementAI/components/UserStoryCard/icons/message-chat-square.svg.js.map +1 -0
  58. package/dist/index.js +1 -1
  59. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts +27 -0
  60. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -0
  61. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationRenderer.d.ts +11 -0
  62. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationRenderer.d.ts.map +1 -0
  63. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +34 -0
  64. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -0
  65. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.d.ts +9 -0
  66. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.d.ts.map +1 -0
  67. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +58 -0
  68. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -0
  69. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts +59 -0
  70. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts.map +1 -0
  71. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.d.ts +29 -0
  72. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.d.ts.map +1 -0
  73. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +50 -0
  74. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -0
  75. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.d.ts +20 -0
  76. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.d.ts.map +1 -0
  77. package/dist/types/src/features/RequirementAI/components/UserStoryCard/icons/AiGapIcon.d.ts +7 -0
  78. package/dist/types/src/features/RequirementAI/components/UserStoryCard/icons/AiGapIcon.d.ts.map +1 -0
  79. package/dist/types/src/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.d.ts +6 -0
  80. package/dist/types/src/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.d.ts.map +1 -0
  81. package/dist/types/src/index.d.ts +4 -0
  82. package/dist/types/src/index.d.ts.map +1 -1
  83. package/package.json +33 -1
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),n=require("lucide-react"),l=require("react"),t=require("./ResizableSplitPane.js"),o=require("../icons/PdfViewerIcons.js"),r=require("@e-llm-studio/citation"),d=function(n){var o,d,a,s,u,c,g=n.href,p=n.metaData,v=n.citationTitle,h=n.isFullscreen,f=l.useMemo(function(){var i;return null===(i=p.citations.find(function(i){return"pdf_citation$".concat(i.id)===g}))||void 0===i?void 0:i.data},[g]);if(!f)return null;var x=(null===(o=null==p?void 0:p.docData)||void 0===o?void 0:o.documents)||{},_=(null===(d=null==p?void 0:p.docData)||void 0===d?void 0:d.input_index_map)||{},m=null==_?void 0:_[0],j=null==_?void 0:_[1],b=m?x[m]:null,y=j?x[j]:null,C=m?f[m]:null,F=j?f[j]:null;if(["Contract","clause"].includes(v)){var D=C?e.jsx(r.PdfViewer,{pdfName:b.title,pdfUrl:b.signed_url,highlightText:[null!==(a=null==C?void 0:C.highlighted_text)&&void 0!==a?a:""],highlightPages:{1:null===(s=null==C?void 0:C.custom_metadata)||void 0===s?void 0:s.pdf_start_page_number},jumpToPageValue:1,highlightCordinatePages:[],useCoordinates:!1}):null,P=F?e.jsx(r.PdfViewer,{pdfName:y.title,pdfUrl:y.signed_url,jumpToPageValue:1,highlightText:[null!==(u=null==F?void 0:F.highlighted_text)&&void 0!==u?u:""],highlightPages:{1:null===(c=null==F?void 0:F.custom_metadata)||void 0===c?void 0:c.pdf_start_page_number},highlightCordinatePages:[],useCoordinates:!1}):null;return C||F?e.jsx("div",i.__assign({style:{height:"100%",display:"flex",flexDirection:"column"}},{children:e.jsx(t.default,{leftComponent:D,rightComponent:P,isFullscreen:h})})):e.jsx("div",{children:"Missing PDF Citation. Please try again later"})}return e.jsx("div",{children:"No Citation Found. Please try again later"})};exports.default=function(t){var r,a,s,u=t.href,c=t.children,g=t.metaData,p=t.chevronUpComponent,v=void 0===p?null:p,h=t.chevronDownComponent,f=void 0===h?null:h,x=t.customStyle,_=void 0===x?{}:x,m=t.defaultState,j=void 0!==m&&m,b=l.useState(j),y=b[0],C=b[1],F=l.useState(!1),D=F[0],P=F[1],w="string"==typeof c&&(null===(r=null==c?void 0:c.split("\n"))||void 0===r?void 0:r.length)>1?c.split("\n").join(" "):c,S="string"==typeof c?c:c[0],k=null!=v?v:function(i){var l,t;return e.jsx(n.ChevronUp,{size:null!==(l=null==i?void 0:i.fontSize)&&void 0!==l?l:16,color:null!==(t=null==i?void 0:i.color)&&void 0!==t?t:"rgb(214, 51, 132)"})}(null!==(a=null==_?void 0:_.arrow)&&void 0!==a?a:{}),z=null!=f?f:function(i){var l,t;return e.jsx(n.ChevronDown,{size:null!==(l=null==i?void 0:i.fontSize)&&void 0!==l?l:16,color:null!==(t=null==i?void 0:i.color)&&void 0!==t?t:"rgb(214, 51, 132)"})}(null!==(s=null==_?void 0:_.arrow)&&void 0!==s?s:{});return e.jsxs("span",i.__assign({style:i.__assign({display:"inline"},_.relativeWrapper||{})},{children:[e.jsx("div",i.__assign({style:i.__assign({display:"inline",marginTop:0},_.citationButtonWrapper||{})},{children:e.jsxs("button",i.__assign({type:"button",onClick:function(){return C(function(i){return!i})},style:i.__assign({display:"inline-flex",alignItems:"center",gap:"3px",fontFamily:'"Inter", sans-serif',backgroundColor:"transparent",padding:0,margin:0,fontSize:"13px",borderRadius:9999,cursor:"pointer",fontWeight:700,color:"rgb(214, 51, 132)",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},_.citationButton||{})},{children:[e.jsx("span",{children:w}),e.jsx("span",i.__assign({style:{display:"flex",alignItems:"center"}},{children:y?k:z}))]}))})),y&&e.jsxs("div",i.__assign({style:D?{position:"fixed",inset:0,zIndex:999999,backgroundColor:"#FAFAFA",display:"flex",flexDirection:"column"}:{boxSizing:"border-box",border:"1px solid #E4E7EC",borderRadius:"8px",overflow:"hidden",marginTop:"8px",display:"flex",flexDirection:"column",width:"100%"}},{children:[e.jsx("div",i.__assign({style:{display:"flex",justifyContent:"flex-end",padding:"6px 10px",borderBottom:"1px solid #E4E7EC",backgroundColor:"#FFFFFF",flexShrink:0}},{children:e.jsx("button",i.__assign({onClick:function(){P(function(i){return!i})},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"6px",color:"#475467",marginRight:"9px"}},{children:D?e.jsx(o.DefaultFullScreenCloseIcon,{}):e.jsx(o.DefaultFullScreenIcon,{})}))})),e.jsx("div",i.__assign({style:{flex:1,minHeight:0,height:"100%",overflow:"hidden"}},{children:e.jsx(d,{href:u,children:c,metaData:g,citationTitle:S,isFullscreen:D})}))]}))]}))};
2
+ //# sourceMappingURL=CitationAnchor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CitationAnchor.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='.cite-acc{background:#fff;border:1px solid #eaecf0;border-radius:12px;box-sizing:border-box;container-type:inline-size;max-height:500px;overflow:auto;width:400px}.cite-acc__header{border-bottom:1px solid #eaecf0;border-top:1px solid #eaecf0;flex-wrap:nowrap;gap:12px;justify-content:space-between;padding:12px}.cite-acc__header,.cite-acc__headerLeft{align-items:center;display:flex;min-width:0}.cite-acc__headerLeft{flex:1 1 auto;gap:4px;overflow:hidden}.cite-acc__titleIcon{align-items:center;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.cite-acc__title{color:#101828;font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cite-acc__headerRight{align-items:center;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:10px;min-width:0}.cite-acc__gapBadge{background:#fef3f2;border-radius:999px;color:#b42318;font-size:12px;font-weight:500;padding:4px 10px;white-space:nowrap}.cite-acc__scoreBadge{align-items:center;border:1px solid var(--Primitive-Gray-300,#d0d5dd);border-radius:var(--chip-border-radius,16px);display:flex;gap:4px;padding:4px 8px}.cite-acc__scoreIcon{display:none}.cite-acc__scoreText{color:var(--Primitive-Purple-600,#6938ef);font-family:Inter;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.cite-acc__gapBadge,.cite-acc__scoreBadge{flex:0 1 auto;min-width:0}.cite-acc__toggleBtn{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;padding:4px}.cite-acc__toggleBtn i{color:#667085;font-size:18px}.cite-acc__body{gap:12px;padding:20px}.cite-acc__body,.cite-acc__explain-body{display:flex;flex-direction:column;min-width:0}.cite-acc__explain-body{gap:"14px";padding:15px}.cite-acc__explain-body_border{border-top:1px solid #eaecf0}.cite-acc__innerHeader{align-items:center;background:#0000;display:flex;gap:12px;justify-content:space-between;min-width:0}.cite-acc__innerHeaderLeft{align-items:flex-start;display:flex;flex:1 1 auto;gap:10px;min-width:0}.cite-acc__innerIcon{align-items:center;background:#f4f3ff;border-radius:999px;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.cite-acc__innerTitle{color:#101828;font-size:14px;font-weight:500;line-height:22px}.cite-acc__innerSub{color:#101828;font-size:12px;line-height:18px;margin-top:2px}.cite-acc__innerToggle{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:999px;cursor:pointer;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.cite-acc__innerToggle i{color:#667085;font-size:18px}.cite-acc__innerBody{border-top:none;min-width:0;overflow-wrap:anywhere;word-break:break-word}.cite-text__mark{background-color:#fef3c7;border-radius:4px;padding-left:4px;padding-right:4px}.cite-text__a{display:inline}.cite-text__a-btn{color:#7a5af8;cursor:pointer;display:inline;font-weight:500}.cite-text__a-btn_chevron,.cite-text__a-btn_circle{display:inline-block;margin-left:4px;vertical-align:middle}.cite-text__a-btn_open{border:1px solid #7a5af8;border-radius:4px;padding-left:4px;padding-right:4px}.cite-text__a-btn_circle{animation:spin 1.5s linear infinite;color:#7a5af8;height:16px;margin-left:auto;margin-right:auto;width:16px}.cite-text__a-btn_chevron{height:16px;width:16px}.cite-text__a-container{margin-bottom:8px;margin-top:8px;max-height:250px;overflow:scroll}.cite-text__a-container-docs{margin-bottom:8px;margin-top:8px;max-height:620px;overflow:scroll}.cite-text__a-container-loader{animation:spin 1.5s linear infinite;color:#000;height:32px;margin-left:auto;margin-right:auto;width:32px}.md-ol{list-style:decimal;list-style-position:outside}.md-ol,.md-ul{padding-left:20px}.md-ul{list-style:disc;list-style-position:outside;margin:10px 0 12px}.md-li{margin:6px 0}.cite-acc__btn-container{align-items:center;display:flex;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;gap:5px;line-height:normal;padding:0 30px 15px;.btn-accept{border:1px solid #8098f9;border-radius:6px;color:#444ce7;padding:7px 10.5px}.btn-reject{border:1px solid #fecaca;border-radius:6px;color:#ef4444;padding:7px 10.5px}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@container (max-width: 420px){.cite-acc__scoreIcon{align-items:center;display:inline-flex}.cite-acc__scoreBadge{gap:6px;padding:6px 8px}.cite-acc__gapBadge{padding:4px 8px}}';!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const i=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;i&&t.setAttribute("nonce",i),t.appendChild(document.createTextNode(e));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(t)}(),exports.default=e;
2
+ //# sourceMappingURL=CitationComponent.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CitationComponent.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("react"),n=require("../Popups/PopupDefaults.js"),a=require("react-markdown"),c=require("rehype-raw");require("./CitationComponent.css.js");var t=require("lucide-react"),r=require("../icons/cognitiveBrain.svg.js"),d=require("../icons/aiMagic.svg.js"),l=require("./CitationAnchor.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=_(s),x=_(a),u=_(c),m=function(s){var n=s.text,a=s.item;return i.jsx(x.default,e.__assign({rehypePlugins:[u.default],components:{ol:function(s){var n=s.children;return i.jsx("ol",e.__assign({className:"md-ol"},{children:n}))},ul:function(s){var n=s.children;return i.jsx("ul",e.__assign({className:"md-ul"},{children:n}))},li:function(s){var n=s.children;return i.jsx("li",e.__assign({className:"md-li"},{children:n}))},a:function(e){e.node;var s=e.href,n=e.children;return i.jsx(l.default,{href:s,children:n,metaData:{citations:a.citations,docData:a.docData}})}}},{children:n.replace(/<br\s*\/?>/gi,"\n")}))};exports.default=function(a){var c=a.item,l=a.title,_=void 0===l?"Cognitive Decisioning AI":l,x=a.relevanceScore,u=void 0===x?0:x,g=a.showRelevanceScore,v=void 0===g||g,h=a.reason,j=void 0===h?"No reasoning provided.":h,p=a.impact,N=void 0===p?"No Impact provided.":p,f=a.explaination,y=void 0===f?"No explaination provided.":f,b=a.gap,C=void 0===b?"None":b,H=a.onClose,q=void 0===H?function(){}:H,B=a.onAccept,D=a.onReject,M=a.showResolveBtns,A=void 0!==M&&M,L=a.sections,R=a.leftIcon,k=a.scoreIcon,w=a.className,I=a.customStyles,P=void 0===I?{}:I,T=s.useMemo(function(){var e=Number(u);return Number.isNaN(e)?0:Math.max(0,Math.min(100,Math.round(e)))},[u]),E=s.useMemo(function(){return function(e){if(!e)return!0;var i=e.trim().toLowerCase();return"none"===i||"no gap"===i||"no gaps"===i||"n/a"===i}(C)?"1. No gaps identified.":C},[C]);return i.jsx("div",e.__assign({className:"cite-acc ".concat(w||""),style:e.__assign(e.__assign({},n.default.CitationAccordionDefaults.container),null==P?void 0:P.container)},{children:L&&L.length>0?L.map(function(s){return!1===s.show?null:i.jsxs("div",e.__assign({className:"cite-acc__explain-body ".concat(s.bodyClassName||"")},{children:[i.jsxs("div",e.__assign({className:"cite-acc__innerHeader",style:e.__assign(e.__assign({},n.default.CitationAccordionDefaults.innerHeader),null==P?void 0:P.innerHeader)},{children:[i.jsx("div",e.__assign({className:"cite-acc__innerHeaderLeft"},{children:i.jsx("div",{children:i.jsx("div",e.__assign({className:"cite-acc__innerTitle"},{children:s.title}))})})),i.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),q&&q()}},{children:i.jsx(t.ChevronUp,{})}))]})),i.jsx("div",e.__assign({className:"cite-acc__innerBody text-sm text-gray-600",style:e.__assign(e.__assign({},n.default.CitationAccordionDefaults.innerBody),null==P?void 0:P.innerBody)},{children:"string"==typeof s.content?i.jsx(m,{text:s.content,item:s.item||c||{}}):s.content}))]}),s.id||s.title)}):i.jsxs(i.Fragment,{children:[i.jsxs("div",e.__assign({className:"cite-acc__explain-body"},{children:[i.jsxs("div",e.__assign({className:"cite-acc__innerHeader"},{children:[i.jsx("div",e.__assign({className:"cite-acc__innerHeaderLeft"},{children:i.jsx("div",{children:i.jsx("div",e.__assign({className:"cite-acc__innerTitle"},{children:"Impact"}))})})),i.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),q&&q()}},{children:i.jsx(t.ChevronUp,{})}))]})),i.jsx("div",e.__assign({className:"cite-acc__innerBody text-sm text-gray-600"},{children:i.jsx(m,{text:N||"",item:c||{}})}))]})),i.jsxs("div",e.__assign({className:"cite-acc__explain-body"},{children:[i.jsx("div",e.__assign({className:"cite-acc__innerHeader"},{children:i.jsx("div",e.__assign({className:"cite-acc__innerHeaderLeft"},{children:i.jsx("div",{children:i.jsx("div",e.__assign({className:"cite-acc__innerTitle"},{children:"Explaination"}))})}))})),i.jsx("div",e.__assign({className:"cite-acc__innerBody text-sm text-gray-600"},{children:i.jsx(m,{text:y||"",item:{}})}))]})),A&&i.jsxs("div",e.__assign({className:"cite-acc__btn-container"},{children:[i.jsx("button",e.__assign({className:"btn-reject",onClick:D},{children:"Reject"})),i.jsx("button",e.__assign({className:"btn-accept",onClick:B},{children:"Accept"}))]})),i.jsxs("div",e.__assign({className:"cite-acc__header"},{children:[i.jsxs("div",e.__assign({className:"cite-acc__headerLeft"},{children:[i.jsx("span",e.__assign({className:"cite-acc__titleIcon"},{children:R?"function"==typeof R?o.default.createElement(R):R:i.jsx(r.ReactComponent,{})})),i.jsx("div",e.__assign({className:"cite-acc__title"},{children:_}))]})),i.jsx("div",e.__assign({className:"cite-acc__headerRight"},{children:v&&i.jsxs("span",e.__assign({className:"cite-acc__scoreBadge"},{children:[k?"function"==typeof k?o.default.createElement(k):k:i.jsx(d.ReactComponent,{}),i.jsxs("span",e.__assign({className:"cite-acc__scoreText"},{children:[T,"%"]}))]}))}))]})),i.jsxs("div",e.__assign({className:"cite-acc__explain-body"},{children:[i.jsx("div",e.__assign({className:"cite-acc__innerHeader"},{children:i.jsx("div",e.__assign({className:"cite-acc__innerHeaderLeft"},{children:i.jsx("div",{children:i.jsx("div",e.__assign({className:"cite-acc__innerTitle"},{children:"Decision Making Factors"}))})}))})),i.jsx("div",e.__assign({className:"cite-acc__innerBody text-sm text-gray-600"},{children:i.jsx(m,{text:j||"",item:c||{}})}))]})),i.jsxs("div",e.__assign({className:"cite-acc__explain-body cite-acc__explain-body_border"},{children:[i.jsx("div",e.__assign({className:"cite-acc__innerHeader"},{children:i.jsx("div",e.__assign({className:"cite-acc__innerHeaderLeft"},{children:i.jsx("div",{children:i.jsx("div",e.__assign({className:"cite-acc__innerTitle"},{children:"Gaps in Decision"}))})}))})),i.jsx("div",e.__assign({className:"cite-acc__innerBody text-sm text-gray-600"},{children:i.jsx(m,{text:E||"",item:c||{}})}))]}))]})}))};
2
+ //# sourceMappingURL=CognitiveComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CognitiveComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("react");exports.default=function(n){var t=n.leftComponent,l=n.rightComponent,r=n.isFullscreen,a=void 0!==r&&r,o=s.useRef(null),d=s.useState(50),u=d[0],c=d[1],_=s.useState(!1),h=_[0],g=_[1],x=null!=t,f=null!=l,v=s.useCallback(function(){x&&f&&g(!0)},[x,f]),p=s.useCallback(function(e){if(h&&o.current){var i=o.current.getBoundingClientRect(),s=(e.clientX-i.left)/i.width*100;s=Math.max(25,Math.min(75,s)),c(s)}},[h]),j=s.useCallback(function(){g(!1)},[]),m={minWidth:0,minHeight:0,height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"};return i.jsxs("div",e.__assign({ref:o,onMouseMove:p,onMouseUp:j,onMouseLeave:j,style:{display:"flex",width:"calc(100% - 1px)",height:a?"100%":"400px",border:"1px solid #ddd",overflow:"hidden",userSelect:h?"none":"auto"}},{children:[x&&!f&&i.jsx("div",e.__assign({style:e.__assign(e.__assign({},m),{width:"100%"})},{children:t})),!x&&f&&i.jsx("div",e.__assign({style:e.__assign(e.__assign({},m),{width:"100%"})},{children:l})),x&&f&&i.jsxs(i.Fragment,{children:[i.jsx("div",e.__assign({style:e.__assign(e.__assign({},m),{width:"".concat(u,"%"),flexShrink:0})},{children:t})),i.jsx("div",{onMouseDown:v,style:{width:"6px",background:"#D0D5DD",cursor:"col-resize",flexShrink:0}}),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},m),{flex:1})},{children:l}))]})]}))};
2
+ //# sourceMappingURL=ResizableSplitPane.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResizableSplitPane.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("lucide-react"),o=require("react"),s=require("./ToneToggle.js"),t=[{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"}],l=function(n){var o=n.toneIndex,s=n.configs,l=void 0===s?t:s,a=l[Math.min(o,l.length-1)]||l[1]||l[0],r=a.color,d=a.angle,c=a.arcD,g=(d-90)*Math.PI/180,u=11+9*Math.cos(g),_=13+9*Math.sin(g);return i.jsxs("svg",e.__assign({width:"22",height:"14",viewBox:"0 0 22 14",fill:"none"},{children:[i.jsx("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),i.jsx("path",{d:c,stroke:r,strokeWidth:"2.5",strokeLinecap:"round"}),i.jsx("line",{x1:"11",y1:"13",x2:u,y2:_,stroke:r,strokeWidth:"2",strokeLinecap:"round"})]}))},a=function(n){var o=n.type,s=n.customStyles,t=void 0===s?{}:s,l=e.__assign(e.__assign({},{High:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #FECACA",background:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:"500"},Medium:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #F2E5A1",background:"#FFFBEB",color:"#B45309",fontSize:"11px",fontWeight:"500"},Low:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #8098F9",background:"#DBEAFE",color:"#444CE7",fontSize:"11px",fontWeight:"500"}}),t),a=l[o]||l.Medium;return i.jsx("div",e.__assign({style:a},{children:o}))},r=["Lenient","Balanced","Aggressive"],d={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},c={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"400px",overflow:"auto"},g={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},u={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},_={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111"},v={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px"},p={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},x={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},m={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},y={display:"flex",gap:8,marginBottom:18},f={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"},h={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},S={borderTop:"0.5px solid #eee",paddingTop:14},j={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4};exports.default=function(b){var C,B,k,D,I,A,z,T,E,w,M,R,F,W,L,H,q,P,O,X=b.onClose,G=b.aiReason,J=b.onAccept,K=b.onReject,N=b.onIterate,Q=b.initialTone,U=b.onRegenerate,V=b.labels,Y=void 0===V?{}:V,Z=b.toneLevelsConfig,$=void 0===Z?r:Z,ee=b.toneColorsConfig,ie=void 0===ee?d:ee,ne=b.dialConfigs,oe=void 0===ne?t:ne,se=b.customStyles,te=void 0===se?{}:se,le=b.severityChipStyles,ae=void 0===le?{}:le,re=b.customIcons,de=void 0===re?{}:re,ce=$.findIndex(function(e){return e===Q});-1===ce&&(ce=1);var ge=o.useState(!0),ue=ge[0],_e=ge[1],ve=o.useState(!1),pe=ve[0],xe=ve[1],me=o.useState(ce),ye=me[0],fe=me[1],he=o.useState(ce)[0],Se=$[ye],je=ie[Se]||"#BA7517",be=ye!==he;return i.jsxs("div",e.__assign({onClick:function(e){return e.stopPropagation()},style:e.__assign(e.__assign({},c),null===(C=null==te?void 0:te.DeviationSummaryStyles)||void 0===C?void 0:C.root)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},g),null===(B=null==te?void 0:te.DeviationSummaryStyles)||void 0===B?void 0:B.header)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[i.jsx("span",{children:de.summaryIcon||i.jsx(n.Info,{size:16,color:"#E24B4A"})}),i.jsx("span",e.__assign({style:e.__assign(e.__assign({},u),null===(k=null==te?void 0:te.DeviationSummaryStyles)||void 0===k?void 0:k.title)},{children:Y.summaryHeader||"Summary"}))]})),i.jsx("button",e.__assign({onClick:X,style:e.__assign(e.__assign({},h),null===(D=null==te?void 0:te.DeviationSummaryStyles)||void 0===D?void 0:D.closeBtn)},{children:"✕"}))]})),i.jsx("p",e.__assign({style:e.__assign(e.__assign({},_),null===(I=null==te?void 0:te.DeviationSummaryStyles)||void 0===I?void 0:I.bodyText)},{children:null===(A=null==G?void 0:G.deviation_details)||void 0===A?void 0:A.deviation_title})),i.jsx("p",e.__assign({style:e.__assign(e.__assign({},v),null===(z=null==te?void 0:te.DeviationSummaryStyles)||void 0===z?void 0:z.summary)},{children:null===(T=null==G?void 0:G.deviation_details)||void 0===T?void 0:T.deviation_summary})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},p),null===(E=null==te?void 0:te.DeviationSummaryStyles)||void 0===E?void 0:E.impactContainer)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[i.jsxs("button",e.__assign({onClick:function(){return _e(!ue)},style:e.__assign(e.__assign({},x),null===(w=null==te?void 0:te.DeviationSummaryStyles)||void 0===w?void 0:w.impactToggle)},{children:[i.jsx("span",e.__assign({style:e.__assign(e.__assign({},m),null===(M=null==te?void 0:te.DeviationSummaryStyles)||void 0===M?void 0:M.impactToggleLabel)},{children:Y.impactHeader||"Impact"})),i.jsx("span",e.__assign({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:ue?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#E24B4A"})}))]})),i.jsx(a,{type:(null==G?void 0:G.severity)||"Medium",customStyles:ae})]})),ue&&i.jsx("p",e.__assign({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0"}},{children:null!==(F=null===(R=null==G?void 0:G.deviation_details)||void 0===R?void 0:R.deviation_impact)&&void 0!==F?F:Y.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},y),null===(W=null==te?void 0:te.DeviationSummaryStyles)||void 0===W?void 0:W.actionContainer)},{children:[i.jsxs("button",e.__assign({style:e.__assign(e.__assign(e.__assign({},f),null===(L=null==te?void 0:te.DeviationSummaryStyles)||void 0===L?void 0:L.actionBtn),{color:"#64748B"}),onClick:N},{children:[de.iterateIcon||i.jsx(n.PenLine,{size:16,color:"#64748B"}),Y.btnIterate||"Iterate"]}),"Iterate"),i.jsxs("button",e.__assign({style:e.__assign(e.__assign(e.__assign({},f),null===(H=null==te?void 0:te.DeviationSummaryStyles)||void 0===H?void 0:H.actionBtn),{color:"#10B981"}),onClick:J},{children:[de.acceptIcon||i.jsx(n.CheckCircle,{size:16,color:"#10B981"}),Y.btnAccept||"Approve"]}),"Accept"),i.jsxs("button",e.__assign({style:e.__assign(e.__assign(e.__assign({},f),null===(q=null==te?void 0:te.DeviationSummaryStyles)||void 0===q?void 0:q.actionBtn),{color:"#DC2626"}),onClick:K},{children:[de.rejectIcon||i.jsx(n.XCircle,{size:16,color:"#DC2626"}),Y.btnReject||"Reject"]}),"reject")]})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},S),null===(P=null==te?void 0:te.DeviationSummaryStyles)||void 0===P?void 0:P.toneContainer)},{children:[i.jsxs("button",e.__assign({onClick:function(){return xe(!pe)},style:e.__assign(e.__assign({},j),null===(O=null==te?void 0:te.DeviationSummaryStyles)||void 0===O?void 0:O.toneToggleBtn)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[i.jsx(l,{toneIndex:ye,configs:oe}),i.jsx("span",e.__assign({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:Y.toneHeader||"Redline Tone"}))]})),i.jsx("span",e.__assign({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:pe?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#111"})}))]})),pe&&i.jsxs(i.Fragment,{children:[i.jsx("p",e.__assign({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:Y.toneDescription||"Controls how assertively AI is redlining"})),i.jsx(s.ToneToggle,{isDirty:be,onToneChange:function(e){fe(e)},toneColor:je,toneIndex:ye,onClickRegenerate:function(){return null==U?void 0:U(Se)},toneLabels:$})]})]}))]}))};
2
+ //# sourceMappingURL=DeviationSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviationSummary.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("./PopupDefaults.js"),o=require("../icons/History.svg.js"),s=require("../icons/message-chat-square.svg.js"),a=require("./ToneToggle.js"),r=[{id:"chat",icon:n.jsx(s.ReactComponent,{}),label:"Chat",description:"Type on what basis you want to iterate"},{id:"risk",icon:n.jsx(s.ReactComponent,{}),label:"Shift the risk",description:"Adjust how aggressive or lenient the language is"},{id:"history",icon:n.jsx(o.ReactComponent,{}),label:"Historical Recommendations",description:"Pull from past recommended clauses"}],l=[{id:"1",filename:"Mutual_DA2.pdf",excerpt:'"...shall protect Confidential Information using at least the same degree of care as it uses to protect its own confidential information, but no less than reasonable c..."',tab:"Balanced"},{id:"2",filename:"Tech NDA.pdf",excerpt:'"...protect confidential information using reasonable care and appropriate safeguards..."',tab:"Balanced"},{id:"3",filename:"Corp NDA.pdf",excerpt:'"...shall use best efforts to protect any disclosed confidential materials from unauthorised access or disclosure..."',tab:"Aggressive"},{id:"4",filename:"Vendor Agreement.pdf",excerpt:'"...may use disclosed information solely for the stated purpose with no special handling required..."',tab:"Lenient"}],d=["Lenient","Balanced","Aggressive"],c={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},g=["Grounded","Innovative"];function f(i){var t=i.chatTitle,o=i.chatBody,s=i.mergedStyles,a=void 0===s?x:s;return n.jsx("div",e.__assign({style:a.body},{children:n.jsxs("div",e.__assign({style:a.chatBanner},{children:[n.jsx("p",e.__assign({style:a.chatBannerTitle},{children:t})),n.jsx("p",e.__assign({style:a.chatBannerBody},{children:o}))]}))}))}function p(t){var o=t.initialTone,s=t.onRiskRegenerate,r=t.riskMode,l=t.toneLevelsConfig,f=void 0===l?d:l,p=t.toneColorsConfig,u=void 0===p?c:p,h=t.riskModesConfig,y=void 0===h?g:h,m=t.mergedStyles,b=void 0===m?x:m,_=f.findIndex(function(e){return e===o});-1===_&&(_=1);var v=i.useState(r||y[0]||"Grounded"),C=v[0],j=v[1],k=i.useState(_),B=k[0],S=k[1],T=i.useState(_)[0],A=f[B],R=u[A]||"#BA7517",w=B!==T||r!==C;return n.jsxs("div",e.__assign({style:b.body},{children:[n.jsx("div",e.__assign({style:{display:"flex",gap:8,marginBottom:16}},{children:y.map(function(i){return n.jsxs("button",e.__assign({onClick:function(){return j(i)},style:{flex:1,display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderRadius:10,border:"1px solid ".concat(C===i?"#7c5cbf":"#e0ddd8"),background:"#fff",cursor:"pointer",fontSize:13,fontWeight:500,color:"#1a1a1a"}},{children:[n.jsx("span",e.__assign({style:{width:16,height:16,borderRadius:"50%",border:"2px solid ".concat(C===i?"#7c5cbf":"#ccc"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:C===i&&n.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:"#7c5cbf"}})})),i.charAt(0).toUpperCase()+i.slice(1)]}),i)})})),n.jsx(a.ToneToggle,{onToneChange:function(e){return S(e)},toneColor:R,isDirty:w,toneIndex:B,onClickRegenerate:function(){return null==s?void 0:s({tone:A,mode:C})}})]}))}function u(t){var o=t.onApply,s=t.historicalClausesData,a=void 0===s?l:s,r=t.toneLevelsConfig,c=void 0===r?d:r,g=t.mergedStyles,f=void 0===g?x:g,p=c.length>1?c[1]:c[0]||"Balanced",u=i.useState(p),h=u[0],y=u[1],m=a.filter(function(e){return e.tab===h});return n.jsxs("div",e.__assign({style:f.body},{children:[n.jsx("div",e.__assign({style:f.segmentedControl},{children:c.map(function(i){return n.jsx("button",e.__assign({onClick:function(){return y(i)},style:e.__assign(e.__assign({},f.segmentedBtn),h===i?f.segmentedBtnActive:{})},{children:i.charAt(0).toUpperCase()+i.slice(1)}),i)})})),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:10,marginTop:12}},{children:[m.map(function(i){return n.jsxs("button",e.__assign({onClick:function(){return null==o?void 0:o({type:"history",value:i.excerpt})},style:f.clauseCard},{children:[n.jsx("p",e.__assign({style:f.clauseFilename},{children:i.filename})),n.jsx("p",e.__assign({style:f.clauseExcerpt},{children:i.excerpt}))]}),i.id)}),0===m.length&&n.jsx("p",e.__assign({style:{fontSize:12,color:"#aaa",textAlign:"center",padding:"12px 0"}},{children:"No clauses for this tone"}))]}))]}))}function h(e){var i=e.type,t=e.onRiskRegenerate,o=e.initialTone,s=e.riskMode,a=e.onApply,r=e.chatTitle,l=e.chatBody,d=e.historicalClausesData,c=e.toneLevelsConfig,g=e.toneColorsConfig,h=e.riskModesConfig,y=e.mergedStyles,m=void 0===y?x:y;return"chat"===i?n.jsx(f,{chatTitle:r,chatBody:l,mergedStyles:m}):"risk"===i?n.jsx(p,{onRiskRegenerate:t,initialTone:o,riskMode:s,toneLevelsConfig:c,toneColorsConfig:g,riskModesConfig:h,mergedStyles:m}):"history"===i?n.jsx(u,{onApply:a,historicalClausesData:d,toneLevelsConfig:c,mergedStyles:m}):null}var x={card:{background:"#fff",border:"0.5px solid #e8e7e3",borderRadius:14,width:300,maxHeight:"350px",overflow:"auto",fontFamily:"system-ui, sans-serif"},header:{display:"flex",alignItems:"center",gap:8,padding:"14px 16px",borderBottom:"0.5px solid #e8e7e3"},backBtn:{background:"none",border:"none",cursor:"pointer",fontSize:20,color:"#888",padding:0,lineHeight:1},headerTitle:{fontSize:14,fontWeight:500,color:"#1a1a1a"},row:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",cursor:"pointer",border:"none",textAlign:"left",gap:10,boxSizing:"border-box",backgroundColor:"transparent"},rowLeft:{display:"flex",alignItems:"flex-start",gap:10,flex:1},icon:{fontSize:16,color:"#666",marginTop:1,flexShrink:0},label:{margin:0,fontSize:14,fontWeight:500,color:"#1a1a1a"},desc:{margin:"2px 0 0",fontSize:12,color:"#888",lineHeight:1.4},chevron:{fontSize:18,color:"#aaa",flexShrink:0,display:"inline-block",transition:"transform 0.2s"},body:{padding:"0 16px 14px 16px"},chatBanner:{background:"#eef4fd",border:"1px solid #c5d8f7",borderRadius:10,padding:"12px 14px",marginBottom:10},chatBannerTitle:{margin:"0 0 6px",fontSize:14,fontWeight:600,color:"#3a5a8a"},chatBannerBody:{margin:0,fontSize:13,color:"#4a6080",lineHeight:1.5},applyBtn:{display:"flex",padding:"7px 10.5px",justifyContent:"center",alignItems:"center",gap:"7px",marginTop:8,fontSize:13,borderRadius:6,border:"1px solid #2563EB",background:"#2563EB",color:"#fff"},rangeLabel:{fontSize:12,color:"#888"},segmentedControl:{border:"1px solid #F2F4F7",display:"flex",background:"#F9FAFB",borderRadius:4,padding:6,gap:8},segmentedBtn:{flex:1,padding:"7px 0",fontSize:13,fontWeight:500,color:"#888",background:"transparent",border:"none",borderRadius:8,cursor:"pointer",transition:"background 0.15s, color 0.15s"},segmentedBtnActive:{background:"#dce8fa",color:"#2a4a7a",fontWeight:700},clauseCard:{background:"#fff",border:"1px solid #dde5f0",borderRadius:12,padding:"12px 14px",textAlign:"left",cursor:"pointer",width:"100%"},clauseFilename:{margin:"0 0 6px",fontSize:13,fontWeight:600,color:"#2a4a7a"},clauseExcerpt:{margin:0,fontSize:13,color:"#4a5a70",fontStyle:"italic",lineHeight:1.5}};exports.default=function(o){var s=o.onBack,a=o.onChatClick,f=o.onRiskRegenerate,p=o.initialTone,u=o.riskMode,y=o.onApply,m=o.onTabToggle,b=o.menuItemsConfig,_=void 0===b?r:b,v=o.historicalClausesConfig,C=void 0===v?l:v,j=o.chatTitle,k=void 0===j?"Chat mode active":j,B=o.chatBody,S=void 0===B?"You are now chatting about this redline, continue the conversation in the left panel to refine or update it":B,T=o.headerTitle,A=void 0===T?"How would you like to iterate?":T,R=o.customStyles,w=void 0===R?{}:R,z=o.toneLevelsConfig,L=void 0===z?d:z,M=o.toneColorsConfig,D=void 0===M?c:M,I=o.riskModesConfig,q=void 0===I?g:I,F=i.useState(null),H=F[0],W=F[1],E=e.__assign(e.__assign(e.__assign({},t.default.IterateMenuDefaults.styles),x),w);return n.jsxs("div",e.__assign({style:E.card},{children:[n.jsxs("div",e.__assign({style:E.header},{children:[n.jsx("button",e.__assign({onClick:s,style:E.backBtn,"aria-label":"Go back"},{children:"‹"})),n.jsx("span",e.__assign({style:E.headerTitle},{children:A}))]})),_.map(function(i,t){var o=H===i.id;return n.jsxs("div",e.__assign({style:{borderBottom:t<_.length-1?"0.5px solid #e8e7e3":"none"}},{children:[n.jsxs("button",e.__assign({onClick:function(){return e=i.id,W(function(n){return n===e?null:("chat"===e&&(null==a||a()),m&&m(e),e)});var e},style:E.row},{children:[n.jsx("div",e.__assign({style:E.rowLeft},{children:n.jsxs("div",{children:[n.jsx("p",e.__assign({style:E.label},{children:i.label})),n.jsx("p",e.__assign({style:E.desc},{children:i.description}))]})})),n.jsx("span",e.__assign({style:e.__assign(e.__assign({},E.chevron),{transform:o?"rotate(90deg)":"rotate(0deg)"})},{children:"›"}))]})),n.jsx("div",e.__assign({style:{maxHeight:o?400:0,overflow:"hidden",transition:"max-height 0.25s ease"}},{children:n.jsx(h,{type:i.id,onRiskRegenerate:f,initialTone:p,riskMode:u,onApply:y,chatTitle:k,chatBody:S,historicalClausesData:C,toneLevelsConfig:L,toneColorsConfig:D,riskModesConfig:q,mergedStyles:E})}))]}),i.id)})]}))};
2
+ //# sourceMappingURL=IterateComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IterateComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={root:{width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"400px",overflow:"auto"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},title:{fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},bodyText:{fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111"},summary:{fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px"},impactContainer:{marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},actionContainer:{display:"flex",gap:8,marginBottom:18},toneContainer:{borderTop:"0.5px solid #eee",paddingTop:14}},o={styles:{card:{background:"#fff",border:"0.5px solid #e8e7e3",borderRadius:14,width:300,maxHeight:"350px",overflow:"auto",fontFamily:"system-ui, sans-serif"},header:{display:"flex",alignItems:"center",gap:8,padding:"14px 16px",borderBottom:"0.5px solid #e8e7e3"},backBtn:{background:"none",border:"none",cursor:"pointer",fontSize:20,color:"#888",padding:0,lineHeight:1},headerTitle:{fontSize:14,fontWeight:500,color:"#1a1a1a"},row:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",cursor:"pointer",border:"none",textAlign:"left",gap:10,boxSizing:"border-box",backgroundColor:"transparent"},rowLeft:{display:"flex",alignItems:"flex-start",gap:10,flex:1},label:{margin:0,fontSize:14,fontWeight:500,color:"#1a1a1a"},desc:{margin:"2px 0 0",fontSize:12,color:"#888",lineHeight:1.4},chevron:{fontSize:18,color:"#aaa",flexShrink:0,display:"inline-block",transition:"transform 0.2s"},body:{padding:"0 16px 14px 16px"},chatBanner:{background:"#eef4fd",border:"1px solid #c5d8f7",borderRadius:10,padding:"12px 14px",marginBottom:10},chatBannerTitle:{margin:"0 0 6px",fontSize:14,fontWeight:600,color:"#3a5a8a"},chatBannerBody:{margin:0,fontSize:13,color:"#4a6080",lineHeight:1.5},segmentedControl:{border:"1px solid #F2F4F7",display:"flex",background:"#F9FAFB",borderRadius:4,padding:6,gap:8},segmentedBtn:{flex:1,padding:"7px 0",fontSize:13,fontWeight:500,color:"#888",background:"transparent",border:"none",borderRadius:8,cursor:"pointer",transition:"background 0.15s, color 0.15s"},segmentedBtnActive:{background:"#dce8fa",color:"#2a4a7a",fontWeight:700},clauseCard:{background:"#fff",border:"1px solid #dde5f0",borderRadius:12,padding:"12px 14px",textAlign:"left",cursor:"pointer",width:"100%"},clauseFilename:{margin:"0 0 6px",fontSize:13,fontWeight:600,color:"#2a4a7a"},clauseExcerpt:{margin:0,fontSize:13,color:"#4a5a70",fontStyle:"italic",lineHeight:1.5}}},n={root:{animation:"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both",width:350,background:"#fff",borderRadius:18,boxShadow:"0 8px 48px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.07)",overflow:"hidden",fontFamily:"'DM Sans', 'Segoe UI', sans-serif"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderBottom:"1.5px solid #e2e8f0"},closeBtn:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"},body:{padding:"14px 16px",display:"flex",flexDirection:"column",gap:13,overflow:"auto"},meta:{},divider:{height:1,background:"#f1f5f9"},impactText:{margin:"10px 0 0",fontSize:13,lineHeight:1.65,color:"#334155"},secondSection:{marginTop:12,background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:12,padding:"14px 16px",fontSize:13,lineHeight:1.7,color:"#64748b",fontStyle:"italic"},actionsContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:2}},t={container:{background:"#fff"},header:{display:"flex",alignItems:"center",justifyContent:"space-between"},innerHeader:{padding:"8px 12px"},innerBody:{padding:"8px 12px",color:"#4b5563"}},a={DeviationSummaryDefaults:e,IterateMenuDefaults:o,RedlineCardDefaults:n,CitationAccordionDefaults:t};exports.CitationAccordionDefaults=t,exports.DeviationSummaryDefaults=e,exports.IterateMenuDefaults=o,exports.RedlineCardDefaults=n,exports.default=a;
2
+ //# sourceMappingURL=PopupDefaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopupDefaults.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("lucide-react"),s=require("react"),i=require("./PopupDefaults.js");function o(e){var t=new Date(e);return isNaN(t.getTime())?e:new Date(e).toLocaleString("en-US",{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).replace(" AM","AM").replace(" PM","PM")}var r=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t.jsx("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},a=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#ef4444",strokeWidth:"2",fill:"#fff1f2"}),t.jsx("path",{d:"M7.5 7.5l7 7M14.5 7.5l-7 7",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}))},d=function(){return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:t.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#94a3b8",strokeWidth:"1.8",strokeLinecap:"round"})}))},l=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},c=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},u=function(n){var s=n.open;return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:s?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t.jsx("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},g=function(n){var s=n.color,i=void 0===s?"#3b82f6":s;return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M1.5 3.5v4h4",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M8 5v3.5l2 1.5",stroke:i,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},f=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M2 8h12M10 4l4 4-4 4",stroke:"#64748b",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M4 5l-2 3 2 3",stroke:"#64748b",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function x(n){var s=n.title,i=n.open,o=n.onToggle,r=n.children;return t.jsxs("div",e.__assign({style:{maxHeight:"170px",overflow:"auto"}},{children:[t.jsxs("div",e.__assign({onClick:o,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t.jsx("span",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:s})),t.jsx(u,{open:i})]})),t.jsx("div",e.__assign({style:{maxHeight:i?300:0,opacity:i?1:0,overflow:"hidden",transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:r}))]}))}function _(n){var s=n.icon,i=n.label,o=n.onClick,r=n.customStyle,a=void 0===r?{}:r,d=e.__assign({display:"flex",alignItems:"center",gap:7,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap"},a);return t.jsxs("button",e.__assign({onClick:o,style:d,onMouseEnter:function(e){e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)"},onMouseLeave:function(e){e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow=""}},{children:[s,i]}))}exports.RedlineCard=function(u){var p,k=u.status,j=u.onClose,b=u.impactText,v=u.secondText,y=u.actionTakenByName,m=u.actionTakenAtTime,B=void 0===m?"NA":m,C=u.onHistory,L=u.onIterate,w=u.onReinstate,R=u.onRevert,S=u.impactTitle,M=void 0===S?"Impact":S,W=u.customConfigs,T=void 0===W?{}:W,I=u.customStyles,D=void 0===I?{}:I,z=s.useState(!0),A=z[0],H=z[1],U=s.useState(!0),q=U[0],F=U[1],E=s.useState(!1),N=E[0],P=E[1],O={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t.jsx(l,{}),StatusIcon:t.jsx(r,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t.jsx(g,{}),label:"History",onClick:C},{icon:t.jsx(n.Undo2,{size:17}),label:"Revert",onClick:R},{icon:t.jsx(h,{}),label:"Iterate",onClick:L}]},Y={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t.jsx(c,{}),StatusIcon:t.jsx(a,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t.jsx(g,{color:"#3b82f6"}),label:"History",onClick:C},{icon:t.jsx(f,{}),label:"Reinstate",onClick:w},{icon:t.jsx(h,{}),label:"Iterate",onClick:L}]},G={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t.jsx(l,{}),StatusIcon:t.jsx(n.Undo2,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t.jsx(g,{}),label:"History",onClick:C},{icon:t.jsx(h,{}),label:"Iterate",onClick:L}]};p="accepted"===k?O:"rejected"===k?Y:G;var J=e.__assign(e.__assign({},p),T[k]||{});return t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.RedlineCardDefaults.root),{animation:N?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":i.default.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),D.root)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.RedlineCardDefaults.header),{background:J.headerBg,borderBottom:"1.5px solid ".concat(J.headerBorder)}),D.header)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[J.StatusIcon,t.jsx("span",e.__assign({style:{fontSize:15,fontWeight:700,color:J.titleColor,letterSpacing:"-0.01em"}},{children:J.label}))]})),t.jsx("button",e.__assign({onClick:function(){P(!0),j()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t.jsx(d,{})}))]})),t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.body),D.body)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.meta),D.meta)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[J.UserIcon,t.jsx("span",e.__assign({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:J.metaLabel}))]})),t.jsxs("div",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[y,", ",o(B)]}))]})),t.jsx("div",{style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.divider),D.divider)}),t.jsx(x,e.__assign({title:M,open:A,onToggle:function(){return H(function(e){return!e})}},{children:t.jsx("p",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.impactText),D.impactText)},{children:b||""}))})),t.jsx("div",{style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.divider),D.divider)}),t.jsx(x,e.__assign({title:J.secondTitle,open:q,onToggle:function(){return F(function(e){return!e})}},{children:t.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.RedlineCardDefaults.secondSection),{background:J.secondBg,border:"1.5px solid ".concat(J.secondBorder)}),D.secondSection)},{children:v||""}))})),t.jsx("div",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.actionsContainer),D.actionsContainer)},{children:J.actions.map(function(e){return t.jsx(_,{icon:e.icon,label:e.label,onClick:e.onClick,customStyle:e.style},e.label)})}))]}))]}))},exports.formatDate=o;
2
+ //# sourceMappingURL=RedlineStatusCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedlineStatusCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("lucide-react");exports.ToneToggle=function(i){var o=i.toneColor,r=i.toneIndex,s=i.isDirty,a=i.onToneChange,l=i.onClickRegenerate,d=i.toneLabels,g=void 0===d?["Lenient","Balanced","Aggressive"]:d,c=i.gradientColors,u=void 0===c?["#1D9E75","#BA7517","#E24B4A"]:c,h=i.buttonText,f=void 0===h?"Regenerate":h,p=i.customStyles,x=void 0===p?{}:p,b="linear-gradient(to right, ".concat(u.join(", "),")"),_=Math.max(g.length-1,1),m=r/_*100;return t.jsxs(t.Fragment,{children:[t.jsx("div",e.__assign({style:e.__assign({width:"100%",height:8,borderRadius:"999px",background:b,marginBottom:8,position:"relative"},x.track)},{children:t.jsx("div",{style:e.__assign({position:"absolute",top:"50%",transform:"translate(-50%, -50%)",left:"".concat(m,"%"),width:12,height:12,borderRadius:"50%",background:o,border:"2px solid #fff",boxShadow:"0 0 0 1.5px "+o,transition:"left 0.2s, background 0.2s"},x.thumb)})})),t.jsx("input",{type:"range",min:0,max:_,step:1,value:r,onChange:function(e){return a(Number(e.target.value))},style:{width:"100%",cursor:"pointer",marginBottom:4,accentColor:o,opacity:0,marginTop:-20,display:"block",position:"relative",zIndex:1}}),t.jsx("div",e.__assign({style:e.__assign({display:"flex",justifyContent:"space-between",marginBottom:10,marginTop:-4},x.labelsContainer)},{children:g.map(function(n){return t.jsx("span",e.__assign({style:{fontSize:11,color:"#aaa"}},{children:n}),n)})})),t.jsx("div",e.__assign({style:e.__assign({maxHeight:s?60:0,overflow:"hidden",transition:"max-height 0.25s ease"},x.buttonContainer)},{children:t.jsxs("button",e.__assign({style:e.__assign({display:"flex",float:"right",alignItems:"center",justifyContent:"center",gap:6,fontSize:13,fontWeight:500,padding:9,borderRadius:8,border:"none",background:"#2563EB",color:"#fff",cursor:"pointer"},x.button),onClick:l},{children:[t.jsx(n.RefreshCw,{size:16,color:"#fff"}),f]}))}))]})};
2
+ //# sourceMappingURL=ToneToggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToneToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t,r=e(require("react"));function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},a.apply(null,arguments)}exports.ReactComponent=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"},e),t||(t=r.createElement("path",{fill:"#475569",d:"M5.898 10.323a4.3 4.3 0 0 1-2.74-.94A4.27 4.27 0 0 1 1.61 6.98a.36.36 0 0 1 .073-.338.48.48 0 0 1 .332-.178.53.53 0 0 1 .357.074.5.5 0 0 1 .22.294A3.27 3.27 0 0 0 3.81 8.64q.92.7 2.089.7 1.437 0 2.439-1 1-1.002 1-2.44 0-1.436-1-2.438-1.002-1.002-2.44-1.002-.847 0-1.584.394a3.65 3.65 0 0 0-1.241 1.08h.86q.21 0 .35.142.141.141.141.35 0 .21-.141.35a.48.48 0 0 1-.35.142H1.966a.48.48 0 0 1-.35-.142.48.48 0 0 1-.141-.35V2.46q0-.209.14-.35a.48.48 0 0 1 .351-.141q.21 0 .35.141.141.142.142.35v.664q.625-.787 1.53-1.216a4.4 4.4 0 0 1 1.91-.43q.921 0 1.726.35a4.5 4.5 0 0 1 1.4.946q.596.596.947 1.4a4.3 4.3 0 0 1 .35 1.727 4.3 4.3 0 0 1-.35 1.726 4.5 4.5 0 0 1-.946 1.4 4.5 4.5 0 0 1-1.401.947 4.3 4.3 0 0 1-1.726.35m.491-4.62 1.229 1.229q.135.134.135.344t-.135.344a.47.47 0 0 1-.344.135.47.47 0 0 1-.344-.135L5.554 6.244a.5.5 0 0 1-.148-.357V3.934q0-.21.142-.35a.48.48 0 0 1 .35-.142q.209 0 .35.142.141.14.141.35z"})));
2
+ //# sourceMappingURL=History.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"History.svg.js","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/icons/History.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2012%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5.89769%2010.3227C4.86564%2010.3227%203.95235%2010.0094%203.15784%209.38281C2.36332%208.75621%201.84729%207.95555%201.60976%206.98084C1.577%206.85797%201.60157%206.74535%201.68348%206.64296C1.76539%206.54058%201.87596%206.48119%202.01521%206.46481C2.14626%206.44843%202.26503%206.473%202.37151%206.53853C2.47799%206.60406%202.55171%206.70235%202.59266%206.8334C2.78925%207.57058%203.19469%208.17261%203.80901%208.63949C4.42333%209.10637%205.11955%209.33981%205.89769%209.33981C6.85602%209.33981%207.66896%209.00603%208.33652%208.33848C9.00408%207.67092%209.33786%206.85797%209.33786%205.89964C9.33786%204.94131%209.00408%204.12836%208.33652%203.4608C7.66896%202.79325%206.85602%202.45947%205.89769%202.45947C5.33252%202.45947%204.8042%202.59052%204.31275%202.85263C3.8213%203.11474%203.40766%203.47514%203.07183%203.93383H3.93187C4.07112%203.93383%204.18784%203.98093%204.28203%204.07512C4.37623%204.16932%204.42333%204.28604%204.42333%204.42528C4.42333%204.56453%204.37623%204.68125%204.28203%204.77544C4.18784%204.86964%204.07112%204.91673%203.93187%204.91673H1.96606C1.82682%204.91673%201.7101%204.86964%201.6159%204.77544C1.52171%204.68125%201.47461%204.56453%201.47461%204.42528V2.45947C1.47461%202.32022%201.52171%202.2035%201.6159%202.10931C1.7101%202.01511%201.82682%201.96802%201.96606%201.96802C2.10531%201.96802%202.22203%202.01511%202.31622%202.10931C2.41042%202.2035%202.45752%202.32022%202.45752%202.45947V3.12293C2.87525%202.59871%203.38513%202.19326%203.98716%201.90658C4.58919%201.6199%205.22603%201.47656%205.89769%201.47656C6.512%201.47656%207.08741%201.59328%207.62392%201.82672C8.16042%202.06016%208.6273%202.37551%209.02456%202.77277C9.42181%203.17003%209.73716%203.63691%209.9706%204.17341C10.204%204.70991%2010.3208%205.28532%2010.3208%205.89964C10.3208%206.51396%2010.204%207.08937%209.9706%207.62587C9.73716%208.16237%209.42181%208.62925%209.02456%209.02651C8.6273%209.42377%208.16042%209.73912%207.62392%209.97256C7.08741%2010.206%206.512%2010.3227%205.89769%2010.3227ZM6.38914%205.70306L7.61777%206.93169C7.70787%207.02179%207.75292%207.13646%207.75292%207.27571C7.75292%207.41495%207.70787%207.52963%207.61777%207.61973C7.52767%207.70982%207.413%207.75487%207.27375%207.75487C7.13451%207.75487%207.01984%207.70982%206.92974%207.61973L5.55367%206.24366C5.50452%206.19451%205.46766%206.13922%205.44309%206.07779C5.41852%206.01636%205.40623%205.95288%205.40623%205.88735V3.93383C5.40623%203.79458%205.45333%203.67786%205.54753%203.58367C5.64172%203.48947%205.75844%203.44237%205.89769%203.44237C6.03693%203.44237%206.15365%203.48947%206.24785%203.58367C6.34204%203.67786%206.38914%203.79458%206.38914%203.93383V5.70306Z%22%20fill%3D%22%23475569%22%2F%3E%3C%2Fsvg%3E\""],"names":["_path","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","props","React","createElement","xmlns","fill","viewBox","d"],"mappings":"qWAAIA,wBACJ,SAASC,IAAa,OAAOA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAK,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAAIF,UAAUD,GAAI,IAAK,IAAII,KAAKD,GAAG,CAAG,GAAEE,eAAeC,KAAKH,EAAGC,KAAOL,EAAEK,GAAKD,EAAEC,IAAO,OAAOL,CAAE,EAAIJ,EAASY,MAAM,KAAMN,UAAa,wBAEjQO,GAAsBC,EAAMC,cAAc,MAAOf,EAAS,CAC3EgB,MAAO,6BACPC,KAAM,OACNC,QAAS,aACRL,GAAQd,IAAUA,EAAqBe,EAAMC,cAAc,OAAQ,CACpEE,KAAM,UACNE,EAAG"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");exports.DefaultFullScreenCloseIcon=function(){return r.jsx("svg",e.__assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#475467",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"})}))},exports.DefaultFullScreenIcon=function(){return r.jsx("svg",e.__assign({width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#475467",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"})}))};
2
+ //# sourceMappingURL=PdfViewerIcons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdfViewerIcons.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t,r=e(require("react"));function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}exports.ReactComponent=e=>r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),t||(t=r.createElement("path",{fill:"#6938EF",d:"M8.749 4.32c-.065-.316-.516-.316-.58 0A4.94 4.94 0 0 1 4.32 8.168c-.315.065-.315.516 0 .58a4.94 4.94 0 0 1 3.848 3.848c.065.316.516.316.58 0a4.94 4.94 0 0 1 3.849-3.848c.316-.064.316-.515 0-.58A4.94 4.94 0 0 1 8.749 4.32M3.374 1.182c-.005-.02-.035-.02-.039 0a2.76 2.76 0 0 1-2.153 2.153c-.02.004-.02.034 0 .038a2.76 2.76 0 0 1 2.153 2.153c.004.02.034.02.039 0a2.76 2.76 0 0 1 2.152-2.153c.021-.004.021-.034 0-.038a2.76 2.76 0 0 1-2.152-2.153"})));
2
+ //# sourceMappingURL=aiMagic.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aiMagic.svg.js","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/icons/aiMagic.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.74868%204.32005C8.68413%204.00421%208.23286%204.00421%208.16831%204.32005C7.77227%206.25769%206.25802%207.77194%204.32037%208.16798C4.00454%208.23254%204.00454%208.6838%204.32037%208.74836C6.25802%209.1444%207.77227%2010.6587%208.16831%2012.5963C8.23286%2012.9121%208.68413%2012.9121%208.74868%2012.5963C9.14472%2010.6587%2010.659%209.1444%2012.5966%208.74836C12.9125%208.6838%2012.9125%208.23254%2012.5966%208.16798C10.659%207.77194%209.14472%206.25769%208.74868%204.32005Z%22%20fill%3D%22%236938EF%22%2F%3E%3Cpath%20d%3D%22M3.37352%201.18217C3.36925%201.16128%203.33941%201.16128%203.33514%201.18217C3.11358%202.26614%202.26647%203.11326%201.18249%203.33482C1.16161%203.33908%201.16161%203.36892%201.18249%203.37319C2.26647%203.59475%203.11358%204.44187%203.33514%205.52584C3.33941%205.54673%203.36925%205.54673%203.37352%205.52584C3.59507%204.44187%204.44219%203.59475%205.52617%203.37319C5.54705%203.36892%205.54705%203.33908%205.52617%203.33482C4.44219%203.11326%203.59507%202.26614%203.37352%201.18217Z%22%20fill%3D%22%236938EF%22%2F%3E%3C%2Fsvg%3E\""],"names":["_path","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","props","React","createElement","xmlns","fill","viewBox","d"],"mappings":"qWAAIA,wBACJ,SAASC,IAAa,OAAOA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAK,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAAIF,UAAUD,GAAI,IAAK,IAAII,KAAKD,GAAG,CAAG,GAAEE,eAAeC,KAAKH,EAAGC,KAAOL,EAAEK,GAAKD,EAAEC,IAAO,OAAOL,CAAE,EAAIJ,EAASY,MAAM,KAAMN,UAAa,wBAEjQO,GAAsBC,EAAMC,cAAc,MAAOf,EAAS,CAC3EgB,MAAO,6BACPC,KAAM,OACNC,QAAS,aACRL,GAAQd,IAAUA,EAAqBe,EAAMC,cAAc,OAAQ,CACpEE,KAAM,UACNE,EAAG"}
@@ -0,0 +1,2 @@
1
+ "use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t,a,r=e(require("react"));function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},l.apply(null,arguments)}exports.ReactComponent=e=>r.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 24"},e),t||(t=r.createElement("g",{fill:"#344054",clipPath:"url(#cognitiveBrain_svg__a)"},r.createElement("path",{fillRule:"evenodd",d:"M1.1 8.972q.358-.62.812-1.163l-.418 1.755c-.256 1.003-.36 1.977-.006 2.766q.079.176.184.33a6.5 6.5 0 0 0 1.013 3.89 6.5 6.5 0 0 0 2.522 2.288.86.86 0 0 1 .464.76v3.474a.852.852 0 1 1-1.704 0V20.1A8.204 8.204 0 0 1 1.1 8.972M3.663 6.24l-.052.213-.639 2.677a6.5 6.5 0 0 1 2.13-1.82l.423-1.626q.056-.207.096-.397a8.2 8.2 0 0 0-1.958.953m3.367-1.286c-.04.358-.117.72-.21 1.064l-.184.71a6.5 6.5 0 0 1 8.024 6.319v5.347a.485.485 0 0 1-.486.485h-2.673a.85.85 0 0 0-.852.852v3.341a.852.852 0 0 0 1.703 0v-2.49h1.822a2.19 2.19 0 0 0 2.189-2.188v-5.346a8.2 8.2 0 0 0-4.195-7.156 8.2 8.2 0 0 0-5.138-.938m-2.357 5.18a4.8 4.8 0 0 0-1.013 2.107c.525-.01 1.034-.114 2.119-.974l.547-.455a.77.77 0 0 0 .241-.718l-.027-.113c-.134-.324-.551-.421-.855-.246a3.7 3.7 0 0 1-1.012.4m3.104-.664a1.8 1.8 0 0 0-.726-.87 4.77 4.77 0 0 1 4.849 1.436c.49.555.354 1.352-.15 1.806-1.483 1.34-3.94 3.076-6.382 3.723-.621.164-1.302-.136-1.53-.777a4.8 4.8 0 0 1-.259-1.207 3.6 3.6 0 0 0 1.547-.316c.6-.267 1.254-.727 2.078-1.444.684-.594.852-1.502.61-2.25l-.016-.052z",clipRule:"evenodd"}),r.createElement("path",{d:"M3.52 12.242c-.72 0-1.249-.444-.745-2.399l.827-3.467c.144-.555.167-.777 0-.777-.615.155-.307.059-.827.28l-.36-.6C4.168 3.793 4.199 3.4 5.062 3.4c.72 0 .84.865.48 2.198l-.946 3.645c-.168.644-.095.866.072.866.365-.083.714-.22 1.036-.406.308-.177.73-.08.865.25.097.3.022.633-.216.84-1.6 1.39-2.165 1.45-2.833 1.45M5.175.003a1.156 1.156 0 0 1 1.243 1.215v-.003A1.63 1.63 0 0 1 4.792 2.77H4.76a1.1 1.1 0 0 1-.908-.324 1.11 1.11 0 0 1-.313-.91A1.593 1.593 0 0 1 5.178.001z"}))),a||(a=r.createElement("defs",null,r.createElement("clipPath",{id:"cognitiveBrain_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h16.421v24H0z"})))));
2
+ //# sourceMappingURL=cognitiveBrain.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cognitiveBrain.svg.js","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/icons/cognitiveBrain.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2217%22%20height%3D%2224%22%20viewBox%3D%220%200%2017%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_3229_15667%29%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M1.09913%208.97185C1.33766%208.55871%201.61007%208.17001%201.91221%207.80897L1.49423%209.56386C1.23782%2010.5667%201.13475%2011.5413%201.48768%2012.3298C1.54032%2012.4474%201.60187%2012.5579%201.67158%2012.6608C1.65889%2012.8734%201.65664%2013.0873%201.66501%2013.3013C1.71011%2014.4558%202.06208%2015.5773%202.68468%2016.5505C3.30728%2017.5237%204.17801%2018.3133%205.20722%2018.8383C5.34638%2018.9104%205.46315%2019.0193%205.54482%2019.1531C5.6265%2019.2869%205.66998%2019.4405%205.67054%2019.5973V23.0722C5.67054%2023.1841%205.64851%2023.2949%205.60571%2023.3982C5.56291%2023.5015%205.50017%2023.5954%205.42108%2023.6744C5.342%2023.7535%205.24811%2023.8163%205.14477%2023.8591C5.04144%2023.9019%204.93069%2023.9239%204.81885%2023.9239C4.70699%2023.9239%204.59624%2023.9019%204.49291%2023.8591C4.38958%2023.8163%204.29568%2023.7535%204.2166%2023.6744C4.13751%2023.5954%204.07478%2023.5015%204.03197%2023.3982C3.98918%2023.2949%203.96715%2023.1841%203.96715%2023.0722V20.0988C2.12717%2018.9891%200.795965%2017.202%200.259666%2015.1213C-0.276633%2013.0407%200.0247835%2010.8326%201.09913%208.97185ZM3.66437%206.2404C3.64925%206.30482%203.63159%206.37546%203.61155%206.4526L2.97312%209.13013C3.46151%208.48344%204.06839%207.93134%204.76448%207.50487C4.87584%207.43666%204.98902%207.37193%205.10387%207.31074L5.52616%205.68361C5.56333%205.54621%205.59531%205.41383%205.62197%205.28692C4.92522%205.5179%204.26758%205.83968%203.66437%206.2404ZM7.03055%204.95441C6.99087%205.31226%206.91371%205.67321%206.82089%206.01841L6.63664%206.72845C7.09225%206.61859%207.56033%206.55787%208.0329%206.54861C9.188%206.52599%2010.3282%206.81163%2011.3363%207.37612C12.3443%207.94061%2013.1836%208.76357%2013.7679%209.76025C14.3521%2010.7569%2014.6602%2011.8914%2014.6605%2013.0467V18.3941C14.6605%2018.5226%2014.6093%2018.6461%2014.5184%2018.737C14.4273%2018.8281%2014.304%2018.8791%2014.1753%2018.8791H11.5016C11.2757%2018.8791%2011.0591%2018.9689%2010.8994%2019.1286C10.7397%2019.2884%2010.6499%2019.505%2010.6499%2019.7309V23.0722C10.6499%2023.2981%2010.7397%2023.5148%2010.8994%2023.6744C11.0591%2023.8342%2011.2757%2023.9239%2011.5016%2023.9239C11.7275%2023.9239%2011.9441%2023.8342%2012.1039%2023.6744C12.2636%2023.5148%2012.3533%2023.2981%2012.3533%2023.0722V20.5825H14.1753C14.4627%2020.5825%2014.7472%2020.5259%2015.0128%2020.416C15.2783%2020.306%2015.5195%2020.1448%2015.7228%2019.9415C15.926%2019.7383%2016.0872%2019.497%2016.1972%2019.2315C16.3072%2018.966%2016.3638%2018.6814%2016.3638%2018.3941V13.048C16.3636%2011.5902%2015.9748%2010.1588%2015.2376%208.90105C14.5003%207.64337%2013.4413%206.60484%2012.1694%205.89238C10.5962%205.02363%208.79048%204.70011%207.03055%204.95441ZM4.6743%2010.1341C4.32587%2010.5513%204.04861%2011.0282%203.85809%2011.5458C3.7743%2011.7734%203.70844%2012.0059%203.66052%2012.2411C4.18646%2012.2303%204.69539%2012.1266%205.77988%2011.2666L6.32654%2010.8115C6.53221%2010.6327%206.61528%2010.3578%206.56848%2010.0935L6.54102%209.98104C6.4068%209.65656%205.98993%209.55969%205.68571%209.73517C5.37123%209.91657%205.03067%2010.0522%204.6743%2010.1341ZM7.7782%209.46969C7.61375%209.07185%207.35543%208.78681%207.05248%208.59973C7.71332%208.41638%208.41064%208.3764%209.09677%208.48851C10.182%208.66582%2011.1726%209.21264%2011.9009%2010.0364C12.3915%2010.591%2012.2552%2011.3882%2011.751%2011.842C10.2684%2013.1816%207.81138%2014.9177%205.36938%2015.565C4.74798%2015.7285%204.06662%2015.4287%203.83905%2014.7882C3.69989%2014.396%203.61365%2013.9903%203.58029%2013.5813C3.98406%2013.5793%204.48811%2013.549%205.12728%2013.2649C5.7279%2012.998%206.38097%2012.5377%207.20538%2011.8211C7.88886%2011.2268%208.05659%2010.3194%207.81482%209.57039L7.79912%209.51938L7.7782%209.46969Z%22%20fill%3D%22%23344054%22%2F%3E%3Cpath%20d%3D%22M3.5192%2012.242C2.79949%2012.242%202.27105%2011.7976%202.77508%209.84336L3.60151%206.37644C3.74567%205.82133%203.76895%205.5994%203.60151%205.5994C2.98678%205.75436%203.2954%205.65803%202.77501%205.87979L2.41577%205.27983C4.16739%203.79159%204.19839%203.39824%205.06114%203.39824C5.78086%203.39824%205.90119%204.2644%205.54077%205.59714L4.59515%209.2417C4.42714%209.88592%204.49979%2010.1078%204.66666%2010.1078C5.03183%2010.0251%205.38102%209.88806%205.703%209.70234C6.01124%209.52453%206.43256%209.62247%206.56842%209.95137C6.66536%2010.2515%206.59007%2010.5846%206.35206%2010.7915C4.75255%2012.1819%204.18663%2012.242%203.5192%2012.242ZM5.17589%200.00338336C5.33991%20-0.00919309%205.50472%200.0133821%205.65933%200.0696008C5.81393%200.12582%205.95476%200.214387%206.0724%200.329385C6.19004%200.444383%206.28177%200.583162%206.34148%200.736452C6.40119%200.88974%206.4275%201.05401%206.41864%201.21828V1.21518C6.39927%201.63352%206.21951%202.02834%205.91666%202.31761C5.61384%202.6069%205.21122%202.76842%204.79242%202.76864L4.75888%202.76812C4.59263%202.78623%204.426%202.76653%204.26843%202.71049C4.11088%202.65446%203.96802%202.56354%203.85054%202.44452C3.73307%202.32551%203.64402%202.18148%203.59004%202.02321C3.53648%201.86617%203.51882%201.69915%203.53835%201.5344C3.55428%201.11464%203.73535%200.718127%204.0422%200.431183C4.34935%200.143948%204.7576%20-0.010199%205.17794%200.00235129L5.17589%200.00338336Z%22%20fill%3D%22%23344054%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3229_15667%22%3E%3Crect%20width%3D%2216.4211%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\""],"names":["_g","_defs","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","props","React","createElement","xmlns","fill","viewBox","clipPath","fillRule","d","clipRule","id"],"mappings":"qWAAIA,EAAIC,wBACR,SAASC,IAAa,OAAOA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAK,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAAIF,UAAUD,GAAI,IAAK,IAAII,KAAKD,GAAG,CAAG,GAAEE,eAAeC,KAAKH,EAAGC,KAAOL,EAAEK,GAAKD,EAAEC,IAAO,OAAOL,CAAE,EAAIJ,EAASY,MAAM,KAAMN,UAAa,wBAE1PO,GAAsBC,EAAMC,cAAc,MAAOf,EAAS,CAClFgB,MAAO,6BACPC,KAAM,OACNC,QAAS,aACRL,GAAQf,IAAOA,EAAkBgB,EAAMC,cAAc,IAAK,CAC3DE,KAAM,UACNE,SAAU,+BACIL,EAAMC,cAAc,OAAQ,CAC1CK,SAAU,UACVC,EAAG,4gCACHC,SAAU,YACKR,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,ydACCtB,IAAUA,EAAqBe,EAAMC,cAAc,OAAQ,KAAmBD,EAAMC,cAAc,WAAY,CAClHQ,GAAI,yBACUT,EAAMC,cAAc,OAAQ,CAC1CE,KAAM,OACNI,EAAG"}
@@ -0,0 +1,2 @@
1
+ "use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t,r=e(require("react"));function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var c in r)({}).hasOwnProperty.call(r,c)&&(e[c]=r[c])}return e},c.apply(null,arguments)}exports.ReactComponent=e=>r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"},e),t||(t=r.createElement("path",{stroke:"#475569",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.983,d:"m4.914 7.373-1.511 1.53c-.211.214-.317.32-.407.328a.25.25 0 0 1-.207-.085c-.06-.069-.06-.219-.06-.519v-.766c0-.27-.22-.464-.486-.503A1.47 1.47 0 0 1 .998 6.113c-.016-.107-.016-.234-.016-.487V3.343c0-.825 0-1.238.161-1.554.141-.277.367-.503.644-.644.316-.16.729-.16 1.554-.16h3.637c.826 0 1.239 0 1.554.16.278.141.503.367.644.644.161.316.161.729.161 1.554v2.064m0 5.406-1.07-.743c-.15-.105-.225-.157-.307-.194a1 1 0 0 0-.227-.071c-.089-.017-.18-.017-.363-.017h-.883c-.55 0-.826 0-1.036-.107a1 1 0 0 1-.43-.43c-.107-.21-.107-.485-.107-1.035V6.98c0-.55 0-.826.107-1.036a1 1 0 0 1 .43-.43c.21-.107.485-.107 1.036-.107h2.752c.55 0 .826 0 1.036.108a1 1 0 0 1 .43.43c.107.21.107.485.107 1.035v1.334c0 .458 0 .687-.075.868a.98.98 0 0 1-.532.532c-.18.074-.41.074-.868.074z"})));
2
+ //# sourceMappingURL=message-chat-square.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-chat-square.svg.js","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/icons/message-chat-square.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2012%2012%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.91405%207.37326L3.4027%208.9035C3.19189%209.11695%203.08648%209.22367%202.99588%209.2312C2.91728%209.23773%202.84032%209.20613%202.78898%209.14625C2.72981%209.07723%202.72981%208.92723%202.72981%208.62722V7.8606C2.72981%207.59145%202.5094%207.39671%202.2431%207.3577C1.59858%207.26329%201.0924%206.75711%200.997989%206.11259C0.982422%206.00631%200.982422%205.8795%200.982422%205.62587V3.34335C0.982422%202.51763%200.982422%202.10477%201.14312%201.78939C1.28447%201.51197%201.51002%201.28642%201.78744%201.14507C2.10282%200.984375%202.51568%200.984375%203.3414%200.984375H6.97815C7.80387%200.984375%208.21673%200.984375%208.53211%201.14507C8.80953%201.28642%209.03508%201.51197%209.17643%201.78939C9.33712%202.10477%209.33712%202.51763%209.33712%203.34335V5.40745M9.33712%2010.8134L8.26752%2010.0698C8.11717%209.96528%208.04199%209.91301%207.96017%209.87595C7.88755%209.84307%207.81121%209.81913%207.73281%209.80468C7.64448%209.7884%207.55292%209.7884%207.3698%209.7884H6.4867C5.93622%209.7884%205.66098%209.7884%205.45072%209.68127C5.26578%209.58704%205.11541%209.43667%205.02118%209.25173C4.91405%209.04147%204.91405%208.76623%204.91405%208.21576V6.9801C4.91405%206.42962%204.91405%206.15438%205.02118%205.94413C5.11541%205.75918%205.26578%205.60882%205.45072%205.51458C5.66098%205.40745%205.93622%205.40745%206.4867%205.40745H9.23883C9.78931%205.40745%2010.0646%205.40745%2010.2748%205.51458C10.4598%205.60882%2010.6101%205.75918%2010.7044%205.94413C10.8115%206.15438%2010.8115%206.42962%2010.8115%206.9801V8.31405C10.8115%208.77202%2010.8115%209.00101%2010.7367%209.18164C10.6369%209.42248%2010.4456%209.61383%2010.2047%209.71359C10.0241%209.7884%209.7951%209.7884%209.33712%209.7884V10.8134Z%22%20stroke%3D%22%23475569%22%20stroke-width%3D%220.982906%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E\""],"names":["_path","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","props","React","createElement","xmlns","fill","viewBox","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d"],"mappings":"qWAAIA,wBACJ,SAASC,IAAa,OAAOA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAK,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAAIF,UAAUD,GAAI,IAAK,IAAII,KAAKD,GAAG,CAAG,GAAEE,eAAeC,KAAKH,EAAGC,KAAOL,EAAEK,GAAKD,EAAEC,IAAO,OAAOL,CAAE,EAAIJ,EAASY,MAAM,KAAMN,UAAa,wBAEvPO,GAAsBC,EAAMC,cAAc,MAAOf,EAAS,CACrFgB,MAAO,6BACPC,KAAM,OACNC,QAAS,aACRL,GAAQd,IAAUA,EAAqBe,EAAMC,cAAc,OAAQ,CACpEI,OAAQ,UACRC,cAAe,QACfC,eAAgB,QAChBC,YAAa,KACbC,EAAG"}
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/UserStoryImport/UserStoryPicker.js"),r=require("./features/UserStoryImport/components/Header.js"),t=require("./features/UserStoryImport/components/Toolbar.js"),o=require("./features/UserStoryImport/components/SearchInput.js"),s=require("./features/UserStoryImport/components/BrowseProjectsButton.js"),i=require("./features/UserStoryImport/components/SectionHeading.js"),a=require("./features/UserStoryImport/components/CardGrid.js"),n=require("./features/UserStoryImport/components/UserStoryCard.js"),p=require("./features/UserStoryImport/components/ProjectCard.js"),u=require("./features/UserStoryImport/components/Badge.js"),d=require("./features/UserStoryImport/components/BackNav.js"),c=require("./features/UserStoryImport/components/SortDropdown.js"),m=require("./features/UserStoryImport/components/ShowMore.js"),S=require("./features/UserStoryImport/components/ProceedButton.js"),l=require("./features/UserStoryImport/components/Footer.js"),f=require("./features/UserStoryImport/components/SplitLayout.js"),R=require("./features/UserStoryImport/components/Sidebar.js"),q=require("./features/UserStoryImport/components/SidebarSection.js"),I=require("./features/UserStoryImport/components/SidebarProjectList.js"),y=require("./features/UserStoryImport/components/SidebarFavoritesList.js"),C=require("./features/UserStoryImport/components/ContentArea.js"),x=require("./features/UserStoryImport/components/NavRow.js"),j=require("./features/UserStoryImport/components/UserStoryImportDialog.js"),A=require("./features/UserStoryImport/components/ResizeHandle.js"),U=require("./features/UserStoryImport/components/ScopeDropdown.js"),h=require("./features/UserStoryImport/components/TypeDropdown.js"),b=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js"),k=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js"),g=require("./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js"),P=require("./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js"),w=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js"),B=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js"),D=require("./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js"),v=require("./features/RequirementAI/components/story-screen/UserStoryScreen.js"),T=require("./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js"),F=require("./features/RequirementAI/components/RichTextEditor/RichTextEditor.js"),G=require("./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js"),W=require("./features/RequirementAI/components/story-screen/SubfeatureBlock.js"),H=require("./features/RequirementAI/shared/AtomicButton.js"),L=require("./features/RequirementAI/icons/SidebarOpenIcon.js"),M=require("./features/RequirementAI/icons/SidebarCloseIcon.js"),z=require("./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js"),E=require("./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js"),N=require("./features/RequirementAI/hooks/useStreamContentHandler.js"),O=require("./features/RequirementAI/utils/proccess-stream.utils.js"),V=require("./features/RequirementAI/components/cra/PartialRequirementContent.js"),_=require("./features/RequirementAI/utils/diff-edit.utils.js"),J=require("./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js"),K=require("./features/RequirementAI/hooks/useDiffEditReviewMode.js"),Q=require("./features/RequirementAI/components/UserStoryCard/UserStoryCard.js"),X=require("./features/RequirementAI/components/citations/file-citation/FileCitationRender.js"),Y=require("./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js"),Z=require("./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js"),$=require("./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js"),ee=require("./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js"),re=require("./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js"),te=require("./features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js"),oe=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js"),se=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js"),ie=require("./features/RequirementAI/utils/userstory-approval-transform.utils.js"),ae=require("./features/UserStoryImport/UserStoryPicker.context.js"),ne=require("./features/UserStoryImport/hooks/useUSPData.js"),pe=require("./features/UserStoryImport/components/usePanelResize.js"),ue=require("./features/UserStoryImport/UserStoryPicker.theme.js"),de=require("./features/CitationRenderer/CitationRenderer.js"),ce=require("./features/RequirementAI/components/CustomPopover/CustomPopover.js"),me=Object.assign(e.UserStoryPickerRoot,{Header:r.Header,Toolbar:t.Toolbar,SearchInput:o.SearchInput,BrowseProjectsButton:s.BrowseProjectsButton,SectionHeading:i.SectionHeading,CardGrid:a.CardGrid,UserStoryCard:n.UserStoryCard,ProjectCard:p.ProjectCard,Badge:u.Badge,BackNav:d.BackNav,SortDropdown:c.SortDropdown,ScopeDropdown:U.ScopeDropdown,TypeDropdown:h.TypeDropdown,ShowMore:m.ShowMore,ProceedButton:S.ProceedButton,Footer:l.Footer,SplitLayout:f.SplitLayout,Sidebar:R.Sidebar,SidebarSection:q.SidebarSection,SidebarProjectList:I.SidebarProjectList,SidebarFavoritesList:y.SidebarFavoritesList,ContentArea:C.ContentArea,NavRow:x.NavRow,UserStoryImportDialog:j.UserStoryImportDialog,ResizeHandle:A.ResizeHandle});exports.UserStoryImportDialog=j.UserStoryImportDialog,exports.ResizeHandle=A.ResizeHandle,exports.ReadFileCitationRenderer=b.default,exports.ReadFileCitationContent=k.default,exports.RCACitationRenderer=g.default,exports.RCACitationContent=P.default,exports.AppModCitationRenderer=w.default,exports.AppModCitationContent=B.default,exports.RequirementAIWrapper=D.default,exports.useRequirementAI=D.useRequirementAI,exports.UserStoryScreen=v.default,exports.UserStoryApprovalScreen=T.default,exports.RichTextEditor=F.default,exports.UserStoryWithCitation=G.default,exports.SubFeatureBlock=W.default,exports.AtomicButton=H.default,exports.SidebarOpenIcon=L.SidebarOpenIcon,exports.SidebarCloseIcon=M.SidebarCloseIcon,exports.StreamingScreenSidebar=z.default,exports.AiReasoningCitationContent=E.default,exports.useStreamContentHandler=N.useStreamContentHandler,exports.extractBlockStreams=O.extractBlockStreams,exports.extractDescription=O.extractDescription,exports.processAIReasoningFromBlocks=O.processAIReasoningFromBlocks,exports.processUserStoryValue=O.processUserStoryValue,exports.PartialRequirementContent=V.PartialRequirementContent,exports.handleAcceptAllChanges=_.handleAcceptAllChanges,exports.handleDiffEditApplied=_.handleDiffEditApplied,exports.handleDiscardAll=_.handleDiscardAll,exports.GapFilterBlock=J.GapFilterBlock,exports.hasAnyUpdatedTags=K.hasAnyUpdatedTags,exports.hasUpdatedTagsInMarkdown=K.hasUpdatedTagsInMarkdown,exports.useDiffEditReviewMode=K.useDiffEditReviewMode,exports.StoryCard=Q.StoryCard,exports.UserStoryCardWrapper=Q.UserStoryCardWrapper,exports.FileCitationRender=X.default,exports.WebCitationWithImageRenderer=Y.default,exports.WebCitationRenderer=Z.default,exports.StormeeCitationRenderer=$.default,exports.WaveformCitationRenderer=ee.default,exports.ImageCitationRenderer=re.default,exports.GapRiskSidebar=te.default,exports.NoGapsFound=te.NoGapsFound,exports.useGapRiskSidebar=te.useGapRiskSidebar,exports.buildStoryWithGap=oe.buildStoryWithGap,exports.updateGapInRawData=oe.updateGapInRawData,exports.updateGapStory=oe.updateGapStory,exports.buildStoryWithRisk=se.buildStoryWithRisk,exports.updateRiskInRawData=se.updateRiskInRawData,exports.updateStory=se.updateStory,exports.cloneUserStories=ie.cloneUserStories,exports.createUserStoriesForApproval=ie.createUserStoriesForApproval,exports.splitByHeaders=ie.splitByHeaders,exports.transformApprovalToUserStory=ie.transformApprovalToUserStory,exports.useUSPContext=ae.useUSPContext,exports.useUSPData=ne.useUSPData,exports.usePanelResize=pe.usePanelResize,exports.darkTheme=ue.darkTheme,exports.lightTheme=ue.lightTheme,exports.themeToStyle=ue.themeToStyle,exports.uspColorPalette=ue.uspColorPalette,exports.uspVSCodeLightTheme=ue.uspVSCodeLightTheme,exports.vscodeTheme=ue.vscodeTheme,exports.CitationRenderer=de.default,exports.collapseAllCitations=de.collapseAllCitations,exports.collapseCitationsByIds=de.collapseCitationsByIds,exports.CustomPopover=ce.default,exports.UserStoryPicker=me;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/UserStoryImport/UserStoryPicker.js"),r=require("./features/UserStoryImport/components/Header.js"),t=require("./features/UserStoryImport/components/Toolbar.js"),o=require("./features/UserStoryImport/components/SearchInput.js"),s=require("./features/UserStoryImport/components/BrowseProjectsButton.js"),i=require("./features/UserStoryImport/components/SectionHeading.js"),a=require("./features/UserStoryImport/components/CardGrid.js"),n=require("./features/UserStoryImport/components/UserStoryCard.js"),u=require("./features/UserStoryImport/components/ProjectCard.js"),p=require("./features/UserStoryImport/components/Badge.js"),d=require("./features/UserStoryImport/components/BackNav.js"),m=require("./features/UserStoryImport/components/SortDropdown.js"),c=require("./features/UserStoryImport/components/ShowMore.js"),S=require("./features/UserStoryImport/components/ProceedButton.js"),l=require("./features/UserStoryImport/components/Footer.js"),f=require("./features/UserStoryImport/components/SplitLayout.js"),q=require("./features/UserStoryImport/components/Sidebar.js"),R=require("./features/UserStoryImport/components/SidebarSection.js"),I=require("./features/UserStoryImport/components/SidebarProjectList.js"),C=require("./features/UserStoryImport/components/SidebarFavoritesList.js"),y=require("./features/UserStoryImport/components/ContentArea.js"),x=require("./features/UserStoryImport/components/NavRow.js"),j=require("./features/UserStoryImport/components/UserStoryImportDialog.js"),A=require("./features/UserStoryImport/components/ResizeHandle.js"),U=require("./features/UserStoryImport/components/ScopeDropdown.js"),h=require("./features/UserStoryImport/components/TypeDropdown.js"),b=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js"),g=require("./features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js"),P=require("./features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js"),k=require("./features/RequirementAI/components/citations/rca-citation/RCACitationContent.js"),v=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js"),D=require("./features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js"),w=require("./features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js"),B=require("./features/RequirementAI/components/story-screen/UserStoryScreen.js"),T=require("./features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js"),F=require("./features/RequirementAI/components/RichTextEditor/RichTextEditor.js"),G=require("./features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js"),W=require("./features/RequirementAI/components/story-screen/SubfeatureBlock.js"),H=require("./features/RequirementAI/shared/AtomicButton.js"),M=require("./features/RequirementAI/icons/SidebarOpenIcon.js"),L=require("./features/RequirementAI/icons/SidebarCloseIcon.js"),z=require("./features/RequirementAI/components/story-screen/StreamingScreenSidebar.js"),E=require("./features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js"),N=require("./features/RequirementAI/hooks/useStreamContentHandler.js"),O=require("./features/RequirementAI/utils/proccess-stream.utils.js"),V=require("./features/RequirementAI/components/cra/PartialRequirementContent.js"),_=require("./features/RequirementAI/utils/diff-edit.utils.js"),J=require("./features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js"),K=require("./features/RequirementAI/hooks/useDiffEditReviewMode.js"),Q=require("./features/RequirementAI/components/UserStoryCard/UserStoryCard.js"),X=require("./features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js"),Y=require("./features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js"),Z=require("./features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js"),$=require("./features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js"),ee=require("./features/RequirementAI/components/citations/file-citation/FileCitationRender.js"),re=require("./features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js"),te=require("./features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js"),oe=require("./features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js"),se=require("./features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js"),ie=require("./features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js"),ae=require("./features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js"),ne=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js"),ue=require("./features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js"),pe=require("./features/RequirementAI/utils/userstory-approval-transform.utils.js"),de=require("./features/UserStoryImport/UserStoryPicker.context.js"),me=require("./features/UserStoryImport/hooks/useUSPData.js"),ce=require("./features/UserStoryImport/components/usePanelResize.js"),Se=require("./features/UserStoryImport/UserStoryPicker.theme.js"),le=require("./features/CitationRenderer/CitationRenderer.js"),fe=require("./features/RequirementAI/components/CustomPopover/CustomPopover.js"),qe=Object.assign(e.UserStoryPickerRoot,{Header:r.Header,Toolbar:t.Toolbar,SearchInput:o.SearchInput,BrowseProjectsButton:s.BrowseProjectsButton,SectionHeading:i.SectionHeading,CardGrid:a.CardGrid,UserStoryCard:n.UserStoryCard,ProjectCard:u.ProjectCard,Badge:p.Badge,BackNav:d.BackNav,SortDropdown:m.SortDropdown,ScopeDropdown:U.ScopeDropdown,TypeDropdown:h.TypeDropdown,ShowMore:c.ShowMore,ProceedButton:S.ProceedButton,Footer:l.Footer,SplitLayout:f.SplitLayout,Sidebar:q.Sidebar,SidebarSection:R.SidebarSection,SidebarProjectList:I.SidebarProjectList,SidebarFavoritesList:C.SidebarFavoritesList,ContentArea:y.ContentArea,NavRow:x.NavRow,UserStoryImportDialog:j.UserStoryImportDialog,ResizeHandle:A.ResizeHandle});exports.UserStoryImportDialog=j.UserStoryImportDialog,exports.ResizeHandle=A.ResizeHandle,exports.ReadFileCitationRenderer=b.default,exports.ReadFileCitationContent=g.default,exports.RCACitationRenderer=P.default,exports.RCACitationContent=k.default,exports.AppModCitationRenderer=v.default,exports.AppModCitationContent=D.default,exports.RequirementAIWrapper=w.default,exports.useRequirementAI=w.useRequirementAI,exports.UserStoryScreen=B.default,exports.UserStoryApprovalScreen=T.default,exports.RichTextEditor=F.default,exports.UserStoryWithCitation=G.default,exports.SubFeatureBlock=W.default,exports.AtomicButton=H.default,exports.SidebarOpenIcon=M.SidebarOpenIcon,exports.SidebarCloseIcon=L.SidebarCloseIcon,exports.StreamingScreenSidebar=z.default,exports.AiReasoningCitationContent=E.default,exports.useStreamContentHandler=N.useStreamContentHandler,exports.extractBlockStreams=O.extractBlockStreams,exports.extractDescription=O.extractDescription,exports.processAIReasoningFromBlocks=O.processAIReasoningFromBlocks,exports.processUserStoryValue=O.processUserStoryValue,exports.PartialRequirementContent=V.PartialRequirementContent,exports.handleAcceptAllChanges=_.handleAcceptAllChanges,exports.handleDiffEditApplied=_.handleDiffEditApplied,exports.handleDiscardAll=_.handleDiscardAll,exports.GapFilterBlock=J.GapFilterBlock,exports.hasAnyUpdatedTags=K.hasAnyUpdatedTags,exports.hasUpdatedTagsInMarkdown=K.hasUpdatedTagsInMarkdown,exports.useDiffEditReviewMode=K.useDiffEditReviewMode,exports.StoryCard=Q.StoryCard,exports.UserStoryCardWrapper=Q.UserStoryCardWrapper,exports.IterateMenu=X.default,exports.RedlineCard=Y.RedlineCard,exports.DeviationSummary=Z.default,exports.CitationAccordion=$.default,exports.FileCitationRender=ee.default,exports.WebCitationWithImageRenderer=re.default,exports.WebCitationRenderer=te.default,exports.StormeeCitationRenderer=oe.default,exports.WaveformCitationRenderer=se.default,exports.ImageCitationRenderer=ie.default,exports.GapRiskSidebar=ae.default,exports.NoGapsFound=ae.NoGapsFound,exports.useGapRiskSidebar=ae.useGapRiskSidebar,exports.buildStoryWithGap=ne.buildStoryWithGap,exports.updateGapInRawData=ne.updateGapInRawData,exports.updateGapStory=ne.updateGapStory,exports.buildStoryWithRisk=ue.buildStoryWithRisk,exports.updateRiskInRawData=ue.updateRiskInRawData,exports.updateStory=ue.updateStory,exports.cloneUserStories=pe.cloneUserStories,exports.createUserStoriesForApproval=pe.createUserStoriesForApproval,exports.splitByHeaders=pe.splitByHeaders,exports.transformApprovalToUserStory=pe.transformApprovalToUserStory,exports.useUSPContext=de.useUSPContext,exports.useUSPData=me.useUSPData,exports.usePanelResize=ce.usePanelResize,exports.darkTheme=Se.darkTheme,exports.lightTheme=Se.lightTheme,exports.themeToStyle=Se.themeToStyle,exports.uspColorPalette=Se.uspColorPalette,exports.uspVSCodeLightTheme=Se.uspVSCodeLightTheme,exports.vscodeTheme=Se.vscodeTheme,exports.CitationRenderer=le.default,exports.collapseAllCitations=le.collapseAllCitations,exports.collapseCitationsByIds=le.collapseCitationsByIds,exports.CustomPopover=fe.default,exports.UserStoryPicker=qe;
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as i}from"tslib";import{jsxs as n,jsx as l}from"react/jsx-runtime";import{ChevronUp as e,ChevronDown as o}from"lucide-react";import{useState as t,useMemo as r}from"react";import d from"./ResizableSplitPane.js";import{DefaultFullScreenCloseIcon as a,DefaultFullScreenIcon as u}from"../icons/PdfViewerIcons.js";import{PdfViewer as s}from"@e-llm-studio/citation";var c=function(n){var e,o,t,a,u,c,p=n.href,f=n.metaData,v=n.citationTitle,h=n.isFullscreen,g=r(function(){var i;return null===(i=f.citations.find(function(i){return"pdf_citation$".concat(i.id)===p}))||void 0===i?void 0:i.data},[p]);if(!g)return null;var m=(null===(e=null==f?void 0:f.docData)||void 0===e?void 0:e.documents)||{},x=(null===(o=null==f?void 0:f.docData)||void 0===o?void 0:o.input_index_map)||{},b=null==x?void 0:x[0],y=null==x?void 0:x[1],C=b?m[b]:null,F=y?m[y]:null,_=b?g[b]:null,D=y?g[y]:null;if(["Contract","clause"].includes(v)){var P=_?l(s,{pdfName:C.title,pdfUrl:C.signed_url,highlightText:[null!==(t=null==_?void 0:_.highlighted_text)&&void 0!==t?t:""],highlightPages:{1:null===(a=null==_?void 0:_.custom_metadata)||void 0===a?void 0:a.pdf_start_page_number},jumpToPageValue:1,highlightCordinatePages:[],useCoordinates:!1}):null,w=D?l(s,{pdfName:F.title,pdfUrl:F.signed_url,jumpToPageValue:1,highlightText:[null!==(u=null==D?void 0:D.highlighted_text)&&void 0!==u?u:""],highlightPages:{1:null===(c=null==D?void 0:D.custom_metadata)||void 0===c?void 0:c.pdf_start_page_number},highlightCordinatePages:[],useCoordinates:!1}):null;return l("div",_||D?i({style:{height:"100%",display:"flex",flexDirection:"column"}},{children:l(d,{leftComponent:P,rightComponent:w,isFullscreen:h})}):{children:"Missing PDF Citation. Please try again later"})}return l("div",{children:"No Citation Found. Please try again later"})},p=function(r){var d,s,p,f=r.href,v=r.children,h=r.metaData,g=r.chevronUpComponent,m=void 0===g?null:g,x=r.chevronDownComponent,b=void 0===x?null:x,y=r.customStyle,C=void 0===y?{}:y,F=r.defaultState,_=t(void 0!==F&&F),D=_[0],P=_[1],w=t(!1),k=w[0],S=w[1],z="string"==typeof v&&(null===(d=null==v?void 0:v.split("\n"))||void 0===d?void 0:d.length)>1?v.split("\n").join(" "):v,T="string"==typeof v?v:v[0],j=null!=m?m:function(i){var n,o;return l(e,{size:null!==(n=null==i?void 0:i.fontSize)&&void 0!==n?n:16,color:null!==(o=null==i?void 0:i.color)&&void 0!==o?o:"rgb(214, 51, 132)"})}(null!==(s=null==C?void 0:C.arrow)&&void 0!==s?s:{}),E=null!=b?b:function(i){var n,e;return l(o,{size:null!==(n=null==i?void 0:i.fontSize)&&void 0!==n?n:16,color:null!==(e=null==i?void 0:i.color)&&void 0!==e?e:"rgb(214, 51, 132)"})}(null!==(p=null==C?void 0:C.arrow)&&void 0!==p?p:{});return n("span",i({style:i({display:"inline"},C.relativeWrapper||{})},{children:[l("div",i({style:i({display:"inline",marginTop:0},C.citationButtonWrapper||{})},{children:n("button",i({type:"button",onClick:function(){return P(function(i){return!i})},style:i({display:"inline-flex",alignItems:"center",gap:"3px",fontFamily:'"Inter", sans-serif',backgroundColor:"transparent",padding:0,margin:0,fontSize:"13px",borderRadius:9999,cursor:"pointer",fontWeight:700,color:"rgb(214, 51, 132)",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},C.citationButton||{})},{children:[l("span",{children:z}),l("span",i({style:{display:"flex",alignItems:"center"}},{children:D?j:E}))]}))})),D&&n("div",i({style:k?{position:"fixed",inset:0,zIndex:999999,backgroundColor:"#FAFAFA",display:"flex",flexDirection:"column"}:{boxSizing:"border-box",border:"1px solid #E4E7EC",borderRadius:"8px",overflow:"hidden",marginTop:"8px",display:"flex",flexDirection:"column",width:"100%"}},{children:[l("div",i({style:{display:"flex",justifyContent:"flex-end",padding:"6px 10px",borderBottom:"1px solid #E4E7EC",backgroundColor:"#FFFFFF",flexShrink:0}},{children:l("button",i({onClick:function(){S(function(i){return!i})},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"6px",color:"#475467",marginRight:"9px"}},{children:l(k?a:u,{})}))})),l("div",i({style:{flex:1,minHeight:0,height:"100%",overflow:"hidden"}},{children:l(c,{href:f,children:v,metaData:h,citationTitle:T,isFullscreen:k})}))]}))]}))};export{p as default};
2
+ //# sourceMappingURL=CitationAnchor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CitationAnchor.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e='.cite-acc{background:#fff;border:1px solid #eaecf0;border-radius:12px;box-sizing:border-box;container-type:inline-size;max-height:500px;overflow:auto;width:400px}.cite-acc__header{border-bottom:1px solid #eaecf0;border-top:1px solid #eaecf0;flex-wrap:nowrap;gap:12px;justify-content:space-between;padding:12px}.cite-acc__header,.cite-acc__headerLeft{align-items:center;display:flex;min-width:0}.cite-acc__headerLeft{flex:1 1 auto;gap:4px;overflow:hidden}.cite-acc__titleIcon{align-items:center;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.cite-acc__title{color:#101828;font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cite-acc__headerRight{align-items:center;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:10px;min-width:0}.cite-acc__gapBadge{background:#fef3f2;border-radius:999px;color:#b42318;font-size:12px;font-weight:500;padding:4px 10px;white-space:nowrap}.cite-acc__scoreBadge{align-items:center;border:1px solid var(--Primitive-Gray-300,#d0d5dd);border-radius:var(--chip-border-radius,16px);display:flex;gap:4px;padding:4px 8px}.cite-acc__scoreIcon{display:none}.cite-acc__scoreText{color:var(--Primitive-Purple-600,#6938ef);font-family:Inter;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.cite-acc__gapBadge,.cite-acc__scoreBadge{flex:0 1 auto;min-width:0}.cite-acc__toggleBtn{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;padding:4px}.cite-acc__toggleBtn i{color:#667085;font-size:18px}.cite-acc__body{gap:12px;padding:20px}.cite-acc__body,.cite-acc__explain-body{display:flex;flex-direction:column;min-width:0}.cite-acc__explain-body{gap:"14px";padding:15px}.cite-acc__explain-body_border{border-top:1px solid #eaecf0}.cite-acc__innerHeader{align-items:center;background:#0000;display:flex;gap:12px;justify-content:space-between;min-width:0}.cite-acc__innerHeaderLeft{align-items:flex-start;display:flex;flex:1 1 auto;gap:10px;min-width:0}.cite-acc__innerIcon{align-items:center;background:#f4f3ff;border-radius:999px;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.cite-acc__innerTitle{color:#101828;font-size:14px;font-weight:500;line-height:22px}.cite-acc__innerSub{color:#101828;font-size:12px;line-height:18px;margin-top:2px}.cite-acc__innerToggle{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:999px;cursor:pointer;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.cite-acc__innerToggle i{color:#667085;font-size:18px}.cite-acc__innerBody{border-top:none;min-width:0;overflow-wrap:anywhere;word-break:break-word}.cite-text__mark{background-color:#fef3c7;border-radius:4px;padding-left:4px;padding-right:4px}.cite-text__a{display:inline}.cite-text__a-btn{color:#7a5af8;cursor:pointer;display:inline;font-weight:500}.cite-text__a-btn_chevron,.cite-text__a-btn_circle{display:inline-block;margin-left:4px;vertical-align:middle}.cite-text__a-btn_open{border:1px solid #7a5af8;border-radius:4px;padding-left:4px;padding-right:4px}.cite-text__a-btn_circle{animation:spin 1.5s linear infinite;color:#7a5af8;height:16px;margin-left:auto;margin-right:auto;width:16px}.cite-text__a-btn_chevron{height:16px;width:16px}.cite-text__a-container{margin-bottom:8px;margin-top:8px;max-height:250px;overflow:scroll}.cite-text__a-container-docs{margin-bottom:8px;margin-top:8px;max-height:620px;overflow:scroll}.cite-text__a-container-loader{animation:spin 1.5s linear infinite;color:#000;height:32px;margin-left:auto;margin-right:auto;width:32px}.md-ol{list-style:decimal;list-style-position:outside}.md-ol,.md-ul{padding-left:20px}.md-ul{list-style:disc;list-style-position:outside;margin:10px 0 12px}.md-li{margin:6px 0}.cite-acc__btn-container{align-items:center;display:flex;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;gap:5px;line-height:normal;padding:0 30px 15px;.btn-accept{border:1px solid #8098f9;border-radius:6px;color:#444ce7;padding:7px 10.5px}.btn-reject{border:1px solid #fecaca;border-radius:6px;color:#ef4444;padding:7px 10.5px}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@container (max-width: 420px){.cite-acc__scoreIcon{align-items:center;display:inline-flex}.cite-acc__scoreBadge{gap:6px;padding:6px 8px}.cite-acc__gapBadge{padding:4px 8px}}';!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const i=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;i&&t.setAttribute("nonce",i),t.appendChild(document.createTextNode(e));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(t)}();export{e as default};
2
+ //# sourceMappingURL=CitationComponent.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CitationComponent.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"tslib";import{jsx as i,jsxs as c,Fragment as n}from"react/jsx-runtime";import t,{useMemo as a}from"react";import r from"../Popups/PopupDefaults.js";import o from"react-markdown";import d from"rehype-raw";import"./CitationComponent.css.js";import{ChevronUp as l}from"lucide-react";import{ReactComponent as s}from"../icons/cognitiveBrain.svg.js";import{ReactComponent as m}from"../icons/aiMagic.svg.js";import h from"./CitationAnchor.js";var _=function(c){var n=c.text,t=c.item;return i(o,e({rehypePlugins:[d],components:{ol:function(c){var n=c.children;return i("ol",e({className:"md-ol"},{children:n}))},ul:function(c){var n=c.children;return i("ul",e({className:"md-ul"},{children:n}))},li:function(c){var n=c.children;return i("li",e({className:"md-li"},{children:n}))},a:function(e){e.node;var c=e.href,n=e.children;return i(h,{href:c,children:n,metaData:{citations:t.citations,docData:t.docData}})}}},{children:n.replace(/<br\s*\/?>/gi,"\n")}))};function v(o){var d=o.item,h=o.title,v=void 0===h?"Cognitive Decisioning AI":h,p=o.relevanceScore,u=void 0===p?0:p,N=o.showRelevanceScore,f=void 0===N||N,y=o.reason,x=void 0===y?"No reasoning provided.":y,g=o.impact,b=void 0===g?"No Impact provided.":g,C=o.explaination,H=void 0===C?"No explaination provided.":C,B=o.gap,D=void 0===B?"None":B,j=o.onClose,A=void 0===j?function(){}:j,L=o.onAccept,R=o.onReject,k=o.showResolveBtns,w=void 0!==k&&k,I=o.sections,T=o.leftIcon,M=o.scoreIcon,P=o.className,E=o.customStyles,S=void 0===E?{}:E,F=a(function(){var e=Number(u);return Number.isNaN(e)?0:Math.max(0,Math.min(100,Math.round(e)))},[u]),G=a(function(){return function(e){if(!e)return!0;var i=e.trim().toLowerCase();return"none"===i||"no gap"===i||"no gaps"===i||"n/a"===i}(D)?"1. No gaps identified.":D},[D]);return i("div",e({className:"cite-acc ".concat(P||""),style:e(e({},r.CitationAccordionDefaults.container),null==S?void 0:S.container)},{children:I&&I.length>0?I.map(function(n){return!1===n.show?null:c("div",e({className:"cite-acc__explain-body ".concat(n.bodyClassName||"")},{children:[c("div",e({className:"cite-acc__innerHeader",style:e(e({},r.CitationAccordionDefaults.innerHeader),null==S?void 0:S.innerHeader)},{children:[i("div",e({className:"cite-acc__innerHeaderLeft"},{children:i("div",{children:i("div",e({className:"cite-acc__innerTitle"},{children:n.title}))})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),A&&A()}},{children:i(l,{})}))]})),i("div",e({className:"cite-acc__innerBody text-sm text-gray-600",style:e(e({},r.CitationAccordionDefaults.innerBody),null==S?void 0:S.innerBody)},{children:"string"==typeof n.content?i(_,{text:n.content,item:n.item||d||{}}):n.content}))]}),n.id||n.title)}):c(n,{children:[c("div",e({className:"cite-acc__explain-body"},{children:[c("div",e({className:"cite-acc__innerHeader"},{children:[i("div",e({className:"cite-acc__innerHeaderLeft"},{children:i("div",{children:i("div",e({className:"cite-acc__innerTitle"},{children:"Impact"}))})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),A&&A()}},{children:i(l,{})}))]})),i("div",e({className:"cite-acc__innerBody text-sm text-gray-600"},{children:i(_,{text:b||"",item:d||{}})}))]})),c("div",e({className:"cite-acc__explain-body"},{children:[i("div",e({className:"cite-acc__innerHeader"},{children:i("div",e({className:"cite-acc__innerHeaderLeft"},{children:i("div",{children:i("div",e({className:"cite-acc__innerTitle"},{children:"Explaination"}))})}))})),i("div",e({className:"cite-acc__innerBody text-sm text-gray-600"},{children:i(_,{text:H||"",item:{}})}))]})),w&&c("div",e({className:"cite-acc__btn-container"},{children:[i("button",e({className:"btn-reject",onClick:R},{children:"Reject"})),i("button",e({className:"btn-accept",onClick:L},{children:"Accept"}))]})),c("div",e({className:"cite-acc__header"},{children:[c("div",e({className:"cite-acc__headerLeft"},{children:[i("span",e({className:"cite-acc__titleIcon"},{children:T?"function"==typeof T?t.createElement(T):T:i(s,{})})),i("div",e({className:"cite-acc__title"},{children:v}))]})),i("div",e({className:"cite-acc__headerRight"},{children:f&&c("span",e({className:"cite-acc__scoreBadge"},{children:[M?"function"==typeof M?t.createElement(M):M:i(m,{}),c("span",e({className:"cite-acc__scoreText"},{children:[F,"%"]}))]}))}))]})),c("div",e({className:"cite-acc__explain-body"},{children:[i("div",e({className:"cite-acc__innerHeader"},{children:i("div",e({className:"cite-acc__innerHeaderLeft"},{children:i("div",{children:i("div",e({className:"cite-acc__innerTitle"},{children:"Decision Making Factors"}))})}))})),i("div",e({className:"cite-acc__innerBody text-sm text-gray-600"},{children:i(_,{text:x||"",item:d||{}})}))]})),c("div",e({className:"cite-acc__explain-body cite-acc__explain-body_border"},{children:[i("div",e({className:"cite-acc__innerHeader"},{children:i("div",e({className:"cite-acc__innerHeaderLeft"},{children:i("div",{children:i("div",e({className:"cite-acc__innerTitle"},{children:"Gaps in Decision"}))})}))})),i("div",e({className:"cite-acc__innerBody text-sm text-gray-600"},{children:i(_,{text:G||"",item:d||{}})}))]}))]})}))}export{v as default};
2
+ //# sourceMappingURL=CognitiveComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CognitiveComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"tslib";import{jsxs as i,jsx as n,Fragment as t}from"react/jsx-runtime";import{useRef as l,useState as o,useCallback as r}from"react";var d=function(d){var c=d.leftComponent,h=d.rightComponent,u=d.isFullscreen,s=void 0!==u&&u,f=l(null),a=o(50),m=a[0],v=a[1],p=o(!1),x=p[0],w=p[1],y=null!=c,g=null!=h,M=r(function(){y&&g&&w(!0)},[y,g]),D=r(function(e){if(x&&f.current){var i=f.current.getBoundingClientRect(),n=(e.clientX-i.left)/i.width*100;n=Math.max(25,Math.min(75,n)),v(n)}},[x]),b=r(function(){w(!1)},[]),k={minWidth:0,minHeight:0,height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"};return i("div",e({ref:f,onMouseMove:D,onMouseUp:b,onMouseLeave:b,style:{display:"flex",width:"calc(100% - 1px)",height:s?"100%":"400px",border:"1px solid #ddd",overflow:"hidden",userSelect:x?"none":"auto"}},{children:[y&&!g&&n("div",e({style:e(e({},k),{width:"100%"})},{children:c})),!y&&g&&n("div",e({style:e(e({},k),{width:"100%"})},{children:h})),y&&g&&i(t,{children:[n("div",e({style:e(e({},k),{width:"".concat(m,"%"),flexShrink:0})},{children:c})),n("div",{onMouseDown:M,style:{width:"6px",background:"#D0D5DD",cursor:"col-resize",flexShrink:0}}),n("div",e({style:e(e({},k),{flex:1})},{children:h}))]})]}))};export{d as default};
2
+ //# sourceMappingURL=ResizableSplitPane.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResizableSplitPane.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"tslib";import{jsxs as o,jsx as i,Fragment as n}from"react/jsx-runtime";import{Info as t,ChevronDown as l,PenLine as r,CheckCircle as d,XCircle as a}from"lucide-react";import{useState as s}from"react";import{ToneToggle as c}from"./ToneToggle.js";var u=[{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"}],p=function(n){var t=n.toneIndex,l=n.configs,r=void 0===l?u:l,d=r[Math.min(t,r.length-1)]||r[1]||r[0],a=d.color,s=d.angle,c=d.arcD,p=(s-90)*Math.PI/180,v=11+9*Math.cos(p),m=13+9*Math.sin(p);return o("svg",e({width:"22",height:"14",viewBox:"0 0 22 14",fill:"none"},{children:[i("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),i("path",{d:c,stroke:a,strokeWidth:"2.5",strokeLinecap:"round"}),i("line",{x1:"11",y1:"13",x2:v,y2:m,stroke:a,strokeWidth:"2",strokeLinecap:"round"})]}))},v=function(o){var n=o.type,t=o.customStyles,l=void 0===t?{}:t,r=e(e({},{High:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #FECACA",background:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:"500"},Medium:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #F2E5A1",background:"#FFFBEB",color:"#B45309",fontSize:"11px",fontWeight:"500"},Low:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #8098F9",background:"#DBEAFE",color:"#444CE7",fontSize:"11px",fontWeight:"500"}}),l),d=r[n]||r.Medium;return i("div",e({style:d},{children:n}))},m=["Lenient","Balanced","Aggressive"],g={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},y={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"400px",overflow:"auto"},f={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},h={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},x={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111"},S={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px"},b={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},B={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},C={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},k={display:"flex",gap:8,marginBottom:18},D={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"},I={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},A={borderTop:"0.5px solid #eee",paddingTop:14},z={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4};function E(E){var T,R,w,M,W,j,F,L,H,_,P,q,G,J,K,N,O,Q,U,V=E.onClose,X=E.aiReason,Y=E.onAccept,Z=E.onReject,$=E.onIterate,ee=E.initialTone,oe=E.onRegenerate,ie=E.labels,ne=void 0===ie?{}:ie,te=E.toneLevelsConfig,le=void 0===te?m:te,re=E.toneColorsConfig,de=void 0===re?g:re,ae=E.dialConfigs,se=void 0===ae?u:ae,ce=E.customStyles,ue=void 0===ce?{}:ce,pe=E.severityChipStyles,ve=void 0===pe?{}:pe,me=E.customIcons,ge=void 0===me?{}:me,ye=le.findIndex(function(e){return e===ee});-1===ye&&(ye=1);var fe=s(!0),he=fe[0],xe=fe[1],Se=s(!1),be=Se[0],Be=Se[1],Ce=s(ye),ke=Ce[0],De=Ce[1],Ie=s(ye)[0],Ae=le[ke],ze=de[Ae]||"#BA7517",Ee=ke!==Ie;return o("div",e({onClick:function(e){return e.stopPropagation()},style:e(e({},y),null===(T=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===T?void 0:T.root)},{children:[o("div",e({style:e(e({},f),null===(R=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===R?void 0:R.header)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:6}},{children:[i("span",{children:ge.summaryIcon||i(t,{size:16,color:"#E24B4A"})}),i("span",e({style:e(e({},h),null===(w=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===w?void 0:w.title)},{children:ne.summaryHeader||"Summary"}))]})),i("button",e({onClick:V,style:e(e({},I),null===(M=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===M?void 0:M.closeBtn)},{children:"✕"}))]})),i("p",e({style:e(e({},x),null===(W=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===W?void 0:W.bodyText)},{children:null===(j=null==X?void 0:X.deviation_details)||void 0===j?void 0:j.deviation_title})),i("p",e({style:e(e({},S),null===(F=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===F?void 0:F.summary)},{children:null===(L=null==X?void 0:X.deviation_details)||void 0===L?void 0:L.deviation_summary})),o("div",e({style:e(e({},b),null===(H=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===H?void 0:H.impactContainer)},{children:[o("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[o("button",e({onClick:function(){return xe(!he)},style:e(e({},B),null===(_=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===_?void 0:_.impactToggle)},{children:[i("span",e({style:e(e({},C),null===(P=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===P?void 0:P.impactToggleLabel)},{children:ne.impactHeader||"Impact"})),i("span",e({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:he?"rotate(180deg)":"rotate(0deg)"}},{children:i(l,{size:16,color:"#E24B4A"})}))]})),i(v,{type:(null==X?void 0:X.severity)||"Medium",customStyles:ve})]})),he&&i("p",e({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0"}},{children:null!==(G=null===(q=null==X?void 0:X.deviation_details)||void 0===q?void 0:q.deviation_impact)&&void 0!==G?G:ne.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),o("div",e({style:e(e({},k),null===(J=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===J?void 0:J.actionContainer)},{children:[o("button",e({style:e(e(e({},D),null===(K=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===K?void 0:K.actionBtn),{color:"#64748B"}),onClick:$},{children:[ge.iterateIcon||i(r,{size:16,color:"#64748B"}),ne.btnIterate||"Iterate"]}),"Iterate"),o("button",e({style:e(e(e({},D),null===(N=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===N?void 0:N.actionBtn),{color:"#10B981"}),onClick:Y},{children:[ge.acceptIcon||i(d,{size:16,color:"#10B981"}),ne.btnAccept||"Approve"]}),"Accept"),o("button",e({style:e(e(e({},D),null===(O=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===O?void 0:O.actionBtn),{color:"#DC2626"}),onClick:Z},{children:[ge.rejectIcon||i(a,{size:16,color:"#DC2626"}),ne.btnReject||"Reject"]}),"reject")]})),o("div",e({style:e(e({},A),null===(Q=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===Q?void 0:Q.toneContainer)},{children:[o("button",e({onClick:function(){return Be(!be)},style:e(e({},z),null===(U=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===U?void 0:U.toneToggleBtn)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:8}},{children:[i(p,{toneIndex:ke,configs:se}),i("span",e({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:ne.toneHeader||"Redline Tone"}))]})),i("span",e({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:be?"rotate(180deg)":"rotate(0deg)"}},{children:i(l,{size:16,color:"#111"})}))]})),be&&o(n,{children:[i("p",e({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:ne.toneDescription||"Controls how assertively AI is redlining"})),i(c,{isDirty:Ee,onToneChange:function(e){De(e)},toneColor:ze,toneIndex:ke,onClickRegenerate:function(){return null==oe?void 0:oe(Ae)},toneLabels:le})]})]}))]}))}export{E as default};
2
+ //# sourceMappingURL=DeviationSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviationSummary.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"tslib";import{jsx as n,jsxs as t}from"react/jsx-runtime";import{useState as o}from"react";import i from"./PopupDefaults.js";import{ReactComponent as r}from"../icons/History.svg.js";import{ReactComponent as a}from"../icons/message-chat-square.svg.js";import{ToneToggle as l}from"./ToneToggle.js";var d=[{id:"chat",icon:n(a,{}),label:"Chat",description:"Type on what basis you want to iterate"},{id:"risk",icon:n(a,{}),label:"Shift the risk",description:"Adjust how aggressive or lenient the language is"},{id:"history",icon:n(r,{}),label:"Historical Recommendations",description:"Pull from past recommended clauses"}],s=[{id:"1",filename:"Mutual_DA2.pdf",excerpt:'"...shall protect Confidential Information using at least the same degree of care as it uses to protect its own confidential information, but no less than reasonable c..."',tab:"Balanced"},{id:"2",filename:"Tech NDA.pdf",excerpt:'"...protect confidential information using reasonable care and appropriate safeguards..."',tab:"Balanced"},{id:"3",filename:"Corp NDA.pdf",excerpt:'"...shall use best efforts to protect any disclosed confidential materials from unauthorised access or disclosure..."',tab:"Aggressive"},{id:"4",filename:"Vendor Agreement.pdf",excerpt:'"...may use disclosed information solely for the stated purpose with no special handling required..."',tab:"Lenient"}],c=["Lenient","Balanced","Aggressive"],f={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},p=["Grounded","Innovative"];function g(o){var i=o.chatTitle,r=o.chatBody,a=o.mergedStyles,l=void 0===a?b:a;return n("div",e({style:l.body},{children:t("div",e({style:l.chatBanner},{children:[n("p",e({style:l.chatBannerTitle},{children:i})),n("p",e({style:l.chatBannerBody},{children:r}))]}))}))}function u(i){var r=i.initialTone,a=i.onRiskRegenerate,d=i.riskMode,s=i.toneLevelsConfig,g=void 0===s?c:s,u=i.toneColorsConfig,h=void 0===u?f:u,m=i.riskModesConfig,y=void 0===m?p:m,x=i.mergedStyles,v=void 0===x?b:x,C=g.findIndex(function(e){return e===r});-1===C&&(C=1);var k=o(d||y[0]||"Grounded"),B=k[0],S=k[1],T=o(C),A=T[0],R=T[1],w=o(C)[0],z=g[A],L=h[z]||"#BA7517",D=A!==w||d!==B;return t("div",e({style:v.body},{children:[n("div",e({style:{display:"flex",gap:8,marginBottom:16}},{children:y.map(function(o){return t("button",e({onClick:function(){return S(o)},style:{flex:1,display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderRadius:10,border:"1px solid ".concat(B===o?"#7c5cbf":"#e0ddd8"),background:"#fff",cursor:"pointer",fontSize:13,fontWeight:500,color:"#1a1a1a"}},{children:[n("span",e({style:{width:16,height:16,borderRadius:"50%",border:"2px solid ".concat(B===o?"#7c5cbf":"#ccc"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:B===o&&n("span",{style:{width:8,height:8,borderRadius:"50%",background:"#7c5cbf"}})})),o.charAt(0).toUpperCase()+o.slice(1)]}),o)})})),n(l,{onToneChange:function(e){return R(e)},toneColor:L,isDirty:D,toneIndex:A,onClickRegenerate:function(){return null==a?void 0:a({tone:z,mode:B})}})]}))}function h(i){var r=i.onApply,a=i.historicalClausesData,l=void 0===a?s:a,d=i.toneLevelsConfig,f=void 0===d?c:d,p=i.mergedStyles,g=void 0===p?b:p,u=f.length>1?f[1]:f[0]||"Balanced",h=o(u),m=h[0],y=h[1],x=l.filter(function(e){return e.tab===m});return t("div",e({style:g.body},{children:[n("div",e({style:g.segmentedControl},{children:f.map(function(t){return n("button",e({onClick:function(){return y(t)},style:e(e({},g.segmentedBtn),m===t?g.segmentedBtnActive:{})},{children:t.charAt(0).toUpperCase()+t.slice(1)}),t)})})),t("div",e({style:{display:"flex",flexDirection:"column",gap:10,marginTop:12}},{children:[x.map(function(o){return t("button",e({onClick:function(){return null==r?void 0:r({type:"history",value:o.excerpt})},style:g.clauseCard},{children:[n("p",e({style:g.clauseFilename},{children:o.filename})),n("p",e({style:g.clauseExcerpt},{children:o.excerpt}))]}),o.id)}),0===x.length&&n("p",e({style:{fontSize:12,color:"#aaa",textAlign:"center",padding:"12px 0"}},{children:"No clauses for this tone"}))]}))]}))}function m(e){var t=e.type,o=e.onRiskRegenerate,i=e.initialTone,r=e.riskMode,a=e.onApply,l=e.chatTitle,d=e.chatBody,s=e.historicalClausesData,c=e.toneLevelsConfig,f=e.toneColorsConfig,p=e.riskModesConfig,m=e.mergedStyles,y=void 0===m?b:m;return"chat"===t?n(g,{chatTitle:l,chatBody:d,mergedStyles:y}):"risk"===t?n(u,{onRiskRegenerate:o,initialTone:i,riskMode:r,toneLevelsConfig:c,toneColorsConfig:f,riskModesConfig:p,mergedStyles:y}):"history"===t?n(h,{onApply:a,historicalClausesData:s,toneLevelsConfig:c,mergedStyles:y}):null}function y(r){var a=r.onBack,l=r.onChatClick,g=r.onRiskRegenerate,u=r.initialTone,h=r.riskMode,y=r.onApply,x=r.onTabToggle,v=r.menuItemsConfig,C=void 0===v?d:v,k=r.historicalClausesConfig,B=void 0===k?s:k,S=r.chatTitle,T=void 0===S?"Chat mode active":S,A=r.chatBody,R=void 0===A?"You are now chatting about this redline, continue the conversation in the left panel to refine or update it":A,w=r.headerTitle,z=void 0===w?"How would you like to iterate?":w,L=r.customStyles,D=void 0===L?{}:L,I=r.toneLevelsConfig,M=void 0===I?c:I,j=r.toneColorsConfig,F=void 0===j?f:j,H=r.riskModesConfig,W=void 0===H?p:H,E=o(null),G=E[0],N=E[1],q=e(e(e({},i.IterateMenuDefaults.styles),b),D);return t("div",e({style:q.card},{children:[t("div",e({style:q.header},{children:[n("button",e({onClick:a,style:q.backBtn,"aria-label":"Go back"},{children:"‹"})),n("span",e({style:q.headerTitle},{children:z}))]})),C.map(function(o,i){var r=G===o.id;return t("div",e({style:{borderBottom:i<C.length-1?"0.5px solid #e8e7e3":"none"}},{children:[t("button",e({onClick:function(){return e=o.id,N(function(n){return n===e?null:("chat"===e&&(null==l||l()),x&&x(e),e)});var e},style:q.row},{children:[n("div",e({style:q.rowLeft},{children:t("div",{children:[n("p",e({style:q.label},{children:o.label})),n("p",e({style:q.desc},{children:o.description}))]})})),n("span",e({style:e(e({},q.chevron),{transform:r?"rotate(90deg)":"rotate(0deg)"})},{children:"›"}))]})),n("div",e({style:{maxHeight:r?400:0,overflow:"hidden",transition:"max-height 0.25s ease"}},{children:n(m,{type:o.id,onRiskRegenerate:g,initialTone:u,riskMode:h,onApply:y,chatTitle:T,chatBody:R,historicalClausesData:B,toneLevelsConfig:M,toneColorsConfig:F,riskModesConfig:W,mergedStyles:q})}))]}),o.id)})]}))}var b={card:{background:"#fff",border:"0.5px solid #e8e7e3",borderRadius:14,width:300,maxHeight:"350px",overflow:"auto",fontFamily:"system-ui, sans-serif"},header:{display:"flex",alignItems:"center",gap:8,padding:"14px 16px",borderBottom:"0.5px solid #e8e7e3"},backBtn:{background:"none",border:"none",cursor:"pointer",fontSize:20,color:"#888",padding:0,lineHeight:1},headerTitle:{fontSize:14,fontWeight:500,color:"#1a1a1a"},row:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",cursor:"pointer",border:"none",textAlign:"left",gap:10,boxSizing:"border-box",backgroundColor:"transparent"},rowLeft:{display:"flex",alignItems:"flex-start",gap:10,flex:1},icon:{fontSize:16,color:"#666",marginTop:1,flexShrink:0},label:{margin:0,fontSize:14,fontWeight:500,color:"#1a1a1a"},desc:{margin:"2px 0 0",fontSize:12,color:"#888",lineHeight:1.4},chevron:{fontSize:18,color:"#aaa",flexShrink:0,display:"inline-block",transition:"transform 0.2s"},body:{padding:"0 16px 14px 16px"},chatBanner:{background:"#eef4fd",border:"1px solid #c5d8f7",borderRadius:10,padding:"12px 14px",marginBottom:10},chatBannerTitle:{margin:"0 0 6px",fontSize:14,fontWeight:600,color:"#3a5a8a"},chatBannerBody:{margin:0,fontSize:13,color:"#4a6080",lineHeight:1.5},applyBtn:{display:"flex",padding:"7px 10.5px",justifyContent:"center",alignItems:"center",gap:"7px",marginTop:8,fontSize:13,borderRadius:6,border:"1px solid #2563EB",background:"#2563EB",color:"#fff"},rangeLabel:{fontSize:12,color:"#888"},segmentedControl:{border:"1px solid #F2F4F7",display:"flex",background:"#F9FAFB",borderRadius:4,padding:6,gap:8},segmentedBtn:{flex:1,padding:"7px 0",fontSize:13,fontWeight:500,color:"#888",background:"transparent",border:"none",borderRadius:8,cursor:"pointer",transition:"background 0.15s, color 0.15s"},segmentedBtnActive:{background:"#dce8fa",color:"#2a4a7a",fontWeight:700},clauseCard:{background:"#fff",border:"1px solid #dde5f0",borderRadius:12,padding:"12px 14px",textAlign:"left",cursor:"pointer",width:"100%"},clauseFilename:{margin:"0 0 6px",fontSize:13,fontWeight:600,color:"#2a4a7a"},clauseExcerpt:{margin:0,fontSize:13,color:"#4a5a70",fontStyle:"italic",lineHeight:1.5}};export{y as default};
2
+ //# sourceMappingURL=IterateComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IterateComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e={root:{width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"400px",overflow:"auto"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},title:{fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},bodyText:{fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111"},summary:{fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px"},impactContainer:{marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},actionContainer:{display:"flex",gap:8,marginBottom:18},toneContainer:{borderTop:"0.5px solid #eee",paddingTop:14}},o={styles:{card:{background:"#fff",border:"0.5px solid #e8e7e3",borderRadius:14,width:300,maxHeight:"350px",overflow:"auto",fontFamily:"system-ui, sans-serif"},header:{display:"flex",alignItems:"center",gap:8,padding:"14px 16px",borderBottom:"0.5px solid #e8e7e3"},backBtn:{background:"none",border:"none",cursor:"pointer",fontSize:20,color:"#888",padding:0,lineHeight:1},headerTitle:{fontSize:14,fontWeight:500,color:"#1a1a1a"},row:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",cursor:"pointer",border:"none",textAlign:"left",gap:10,boxSizing:"border-box",backgroundColor:"transparent"},rowLeft:{display:"flex",alignItems:"flex-start",gap:10,flex:1},label:{margin:0,fontSize:14,fontWeight:500,color:"#1a1a1a"},desc:{margin:"2px 0 0",fontSize:12,color:"#888",lineHeight:1.4},chevron:{fontSize:18,color:"#aaa",flexShrink:0,display:"inline-block",transition:"transform 0.2s"},body:{padding:"0 16px 14px 16px"},chatBanner:{background:"#eef4fd",border:"1px solid #c5d8f7",borderRadius:10,padding:"12px 14px",marginBottom:10},chatBannerTitle:{margin:"0 0 6px",fontSize:14,fontWeight:600,color:"#3a5a8a"},chatBannerBody:{margin:0,fontSize:13,color:"#4a6080",lineHeight:1.5},segmentedControl:{border:"1px solid #F2F4F7",display:"flex",background:"#F9FAFB",borderRadius:4,padding:6,gap:8},segmentedBtn:{flex:1,padding:"7px 0",fontSize:13,fontWeight:500,color:"#888",background:"transparent",border:"none",borderRadius:8,cursor:"pointer",transition:"background 0.15s, color 0.15s"},segmentedBtnActive:{background:"#dce8fa",color:"#2a4a7a",fontWeight:700},clauseCard:{background:"#fff",border:"1px solid #dde5f0",borderRadius:12,padding:"12px 14px",textAlign:"left",cursor:"pointer",width:"100%"},clauseFilename:{margin:"0 0 6px",fontSize:13,fontWeight:600,color:"#2a4a7a"},clauseExcerpt:{margin:0,fontSize:13,color:"#4a5a70",fontStyle:"italic",lineHeight:1.5}}},n={root:{animation:"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both",width:350,background:"#fff",borderRadius:18,boxShadow:"0 8px 48px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.07)",overflow:"hidden",fontFamily:"'DM Sans', 'Segoe UI', sans-serif"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderBottom:"1.5px solid #e2e8f0"},closeBtn:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"},body:{padding:"14px 16px",display:"flex",flexDirection:"column",gap:13,overflow:"auto"},meta:{},divider:{height:1,background:"#f1f5f9"},impactText:{margin:"10px 0 0",fontSize:13,lineHeight:1.65,color:"#334155"},secondSection:{marginTop:12,background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:12,padding:"14px 16px",fontSize:13,lineHeight:1.7,color:"#64748b",fontStyle:"italic"},actionsContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:2}},a={container:{background:"#fff"},header:{display:"flex",alignItems:"center",justifyContent:"space-between"},innerHeader:{padding:"8px 12px"},innerBody:{padding:"8px 12px",color:"#4b5563"}},i={DeviationSummaryDefaults:e,IterateMenuDefaults:o,RedlineCardDefaults:n,CitationAccordionDefaults:a};export{a as CitationAccordionDefaults,e as DeviationSummaryDefaults,o as IterateMenuDefaults,n as RedlineCardDefaults,i as default};
2
+ //# sourceMappingURL=PopupDefaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopupDefaults.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{Undo2 as n}from"lucide-react";import{useState as r}from"react";import i from"./PopupDefaults.js";function d(e){var t=new Date(e);return isNaN(t.getTime())?e:new Date(e).toLocaleString("en-US",{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).replace(" AM","AM").replace(" PM","PM")}var l=function(){return o("svg",e({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t("circle",{cx:"11",cy:"11",r:"10",stroke:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},c=function(){return o("svg",e({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t("circle",{cx:"11",cy:"11",r:"10",stroke:"#ef4444",strokeWidth:"2",fill:"#fff1f2"}),t("path",{d:"M7.5 7.5l7 7M14.5 7.5l-7 7",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}))},a=function(){return t("svg",e({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:t("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#94a3b8",strokeWidth:"1.8",strokeLinecap:"round"})}))},s=function(){return o("svg",e({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t("path",{d:"M11 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return o("svg",e({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},u=function(o){var n=o.open;return t("svg",e({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:n?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},f=function(n){var r=n.color,i=void 0===r?"#3b82f6":r;return o("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t("path",{d:"M1.5 3.5v4h4",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M8 5v3.5l2 1.5",stroke:i,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},p=function(){return o("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},k=function(){return o("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M2 8h12M10 4l4 4-4 4",stroke:"#64748b",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M4 5l-2 3 2 3",stroke:"#64748b",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function g(n){var r=n.title,i=n.open,d=n.onToggle,l=n.children;return o("div",e({style:{maxHeight:"170px",overflow:"auto"}},{children:[o("div",e({onClick:d,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t("span",e({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:r})),t(u,{open:i})]})),t("div",e({style:{maxHeight:i?300:0,opacity:i?1:0,overflow:"hidden",transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:l}))]}))}function b(t){var n=t.icon,r=t.label,i=t.onClick,d=t.customStyle,l=e({display:"flex",alignItems:"center",gap:7,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap"},void 0===d?{}:d);return o("button",e({onClick:i,style:l,onMouseEnter:function(e){e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)"},onMouseLeave:function(e){e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow=""}},{children:[n,r]}))}function v(u){var v=u.status,m=u.onClose,y=u.impactText,x=u.secondText,B=u.actionTakenByName,C=u.actionTakenAtTime,L=void 0===C?"NA":C,w=u.onHistory,R=u.onIterate,M=u.onReinstate,W=u.onRevert,S=u.impactTitle,T=void 0===S?"Impact":S,I=u.customConfigs,D=void 0===I?{}:I,j=u.customStyles,z=void 0===j?{}:j,A=r(!0),H=A[0],F=A[1],U=r(!0),E=U[0],N=U[1],P=r(!1),O=P[0],Y=P[1],q={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t(s,{}),StatusIcon:t(l,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t(f,{}),label:"History",onClick:w},{icon:t(n,{size:17}),label:"Revert",onClick:W},{icon:t(k,{}),label:"Iterate",onClick:R}]},G={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t(h,{}),StatusIcon:t(c,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t(f,{color:"#3b82f6"}),label:"History",onClick:w},{icon:t(p,{}),label:"Reinstate",onClick:M},{icon:t(k,{}),label:"Iterate",onClick:R}]},J={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t(s,{}),StatusIcon:t(n,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t(f,{}),label:"History",onClick:w},{icon:t(k,{}),label:"Iterate",onClick:R}]},K=e(e({},"accepted"===v?q:"rejected"===v?G:J),D[v]||{});return o("div",e({style:e(e(e({},i.RedlineCardDefaults.root),{animation:O?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":i.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),z.root)},{children:[o("div",e({style:e(e(e({},i.RedlineCardDefaults.header),{background:K.headerBg,borderBottom:"1.5px solid ".concat(K.headerBorder)}),z.header)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[K.StatusIcon,t("span",e({style:{fontSize:15,fontWeight:700,color:K.titleColor,letterSpacing:"-0.01em"}},{children:K.label}))]})),t("button",e({onClick:function(){Y(!0),m()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t(a,{})}))]})),o("div",e({style:e(e({},i.RedlineCardDefaults.body),z.body)},{children:[o("div",e({style:e(e({},i.RedlineCardDefaults.meta),z.meta)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[K.UserIcon,t("span",e({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:K.metaLabel}))]})),o("div",e({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[B,", ",d(L)]}))]})),t("div",{style:e(e({},i.RedlineCardDefaults.divider),z.divider)}),t(g,e({title:T,open:H,onToggle:function(){return F(function(e){return!e})}},{children:t("p",e({style:e(e({},i.RedlineCardDefaults.impactText),z.impactText)},{children:y||""}))})),t("div",{style:e(e({},i.RedlineCardDefaults.divider),z.divider)}),t(g,e({title:K.secondTitle,open:E,onToggle:function(){return N(function(e){return!e})}},{children:t("div",e({style:e(e(e({},i.RedlineCardDefaults.secondSection),{background:K.secondBg,border:"1.5px solid ".concat(K.secondBorder)}),z.secondSection)},{children:x||""}))})),t("div",e({style:e(e({},i.RedlineCardDefaults.actionsContainer),z.actionsContainer)},{children:K.actions.map(function(e){return t(b,{icon:e.icon,label:e.label,onClick:e.onClick,customStyle:e.style},e.label)})}))]}))]}))}export{v as RedlineCard,d as formatDate};
2
+ //# sourceMappingURL=RedlineStatusCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedlineStatusCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as t}from"tslib";import{jsxs as e,Fragment as o,jsx as n}from"react/jsx-runtime";import{RefreshCw as i}from"lucide-react";function r(r){var a=r.toneColor,l=r.toneIndex,s=r.isDirty,d=r.onToneChange,c=r.onClickRegenerate,g=r.toneLabels,u=void 0===g?["Lenient","Balanced","Aggressive"]:g,f=r.gradientColors,p=void 0===f?["#1D9E75","#BA7517","#E24B4A"]:f,h=r.buttonText,m=void 0===h?"Regenerate":h,b=r.customStyles,y=void 0===b?{}:b,v="linear-gradient(to right, ".concat(p.join(", "),")"),x=Math.max(u.length-1,1),C=l/x*100;return e(o,{children:[n("div",t({style:t({width:"100%",height:8,borderRadius:"999px",background:v,marginBottom:8,position:"relative"},y.track)},{children:n("div",{style:t({position:"absolute",top:"50%",transform:"translate(-50%, -50%)",left:"".concat(C,"%"),width:12,height:12,borderRadius:"50%",background:a,border:"2px solid #fff",boxShadow:"0 0 0 1.5px "+a,transition:"left 0.2s, background 0.2s"},y.thumb)})})),n("input",{type:"range",min:0,max:x,step:1,value:l,onChange:function(t){return d(Number(t.target.value))},style:{width:"100%",cursor:"pointer",marginBottom:4,accentColor:a,opacity:0,marginTop:-20,display:"block",position:"relative",zIndex:1}}),n("div",t({style:t({display:"flex",justifyContent:"space-between",marginBottom:10,marginTop:-4},y.labelsContainer)},{children:u.map(function(e){return n("span",t({style:{fontSize:11,color:"#aaa"}},{children:e}),e)})})),n("div",t({style:t({maxHeight:s?60:0,overflow:"hidden",transition:"max-height 0.25s ease"},y.buttonContainer)},{children:e("button",t({style:t({display:"flex",float:"right",alignItems:"center",justifyContent:"center",gap:6,fontSize:13,fontWeight:500,padding:9,borderRadius:8,border:"none",background:"#2563EB",color:"#fff",cursor:"pointer"},y.button),onClick:c},{children:[n(i,{size:16,color:"#fff"}),m]}))}))]})}export{r as ToneToggle};
2
+ //# sourceMappingURL=ToneToggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToneToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import*as a from"react";var t;function n(){return n=Object.assign?Object.assign.bind():function(a){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var e in n)({}).hasOwnProperty.call(n,e)&&(a[e]=n[e])}return a},n.apply(null,arguments)}const e=e=>a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"},e),t||(t=a.createElement("path",{fill:"#475569",d:"M5.898 10.323a4.3 4.3 0 0 1-2.74-.94A4.27 4.27 0 0 1 1.61 6.98a.36.36 0 0 1 .073-.338.48.48 0 0 1 .332-.178.53.53 0 0 1 .357.074.5.5 0 0 1 .22.294A3.27 3.27 0 0 0 3.81 8.64q.92.7 2.089.7 1.437 0 2.439-1 1-1.002 1-2.44 0-1.436-1-2.438-1.002-1.002-2.44-1.002-.847 0-1.584.394a3.65 3.65 0 0 0-1.241 1.08h.86q.21 0 .35.142.141.141.141.35 0 .21-.141.35a.48.48 0 0 1-.35.142H1.966a.48.48 0 0 1-.35-.142.48.48 0 0 1-.141-.35V2.46q0-.209.14-.35a.48.48 0 0 1 .351-.141q.21 0 .35.141.141.142.142.35v.664q.625-.787 1.53-1.216a4.4 4.4 0 0 1 1.91-.43q.921 0 1.726.35a4.5 4.5 0 0 1 1.4.946q.596.596.947 1.4a4.3 4.3 0 0 1 .35 1.727 4.3 4.3 0 0 1-.35 1.726 4.5 4.5 0 0 1-.946 1.4 4.5 4.5 0 0 1-1.401.947 4.3 4.3 0 0 1-1.726.35m.491-4.62 1.229 1.229q.135.134.135.344t-.135.344a.47.47 0 0 1-.344.135.47.47 0 0 1-.344-.135L5.554 6.244a.5.5 0 0 1-.148-.357V3.934q0-.21.142-.35a.48.48 0 0 1 .35-.142q.209 0 .35.142.141.14.141.35z"})));export{e as ReactComponent};
2
+ //# sourceMappingURL=History.svg.js.map