@e-llm-studio/requirement-ai 0.0.192 → 0.0.194

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 (22) hide show
  1. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationComponent.module.css.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  8. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationComponent.module.css.js +1 -1
  9. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  10. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  11. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  12. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  13. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  14. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  15. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  16. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts.map +1 -1
  17. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.d.ts.map +1 -1
  18. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +4 -1
  19. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  20. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +4 -2
  21. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  22. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.CitationComponent-module_cite-acc__2XusN{background:#fff;border:1px solid #eaecf0;border-radius:12px;box-sizing:border-box;container-type:inline-size;max-height:500px;overflow:auto;width:400px}.CitationComponent-module_cite-acc__header__Ek-ou{align-items:center;border-bottom:1px solid #eaecf0;border-top:1px solid #eaecf0;display:flex;flex-wrap:nowrap;gap:12px;justify-content:space-between;min-width:0;padding:12px}.CitationComponent-module_cite-acc__headerLeft__K6ItR{align-items:center;display:flex;flex:1 1 auto;gap:4px;min-width:0;overflow:hidden}.CitationComponent-module_cite-acc__titleIcon__ssoL-{align-items:center;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__title__3ibjn{color:#101828;font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__headerRight__OhMqH{align-items:center;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:10px;min-width:0}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{background:#fef3f2;border-radius:999px;color:#b42318;font-size:12px;font-weight:500;padding:4px 10px;white-space:nowrap}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{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}.CitationComponent-module_cite-acc__scoreIcon__-MUli{display:none}.CitationComponent-module_cite-acc__scoreText__42VsL{color:var(--Primitive-Purple-600,#6938ef);font-family:Inter;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.CitationComponent-module_cite-acc__gapBadge__VkuKQ,.CitationComponent-module_cite-acc__scoreBadge__uVDRv{flex:0 1 auto;min-width:0}.CitationComponent-module_cite-acc__toggleBtn__RcZmg{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;padding:4px}.CitationComponent-module_cite-acc__toggleBtn__RcZmg i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__body__YQDAm{display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px}.CitationComponent-module_cite-acc__explain-body__1v7hb{display:flex;flex-direction:column;gap:"14px";min-width:0;padding:15px}.CitationComponent-module_cite-acc__explain-body_border__QQnDb{border-top:1px solid #eaecf0}.CitationComponent-module_cite-acc__innerHeader__BFwFr{align-items:center;background:#0000;display:flex;gap:12px;justify-content:space-between;min-width:0}.CitationComponent-module_cite-acc__backHeader__aFHVT{align-items:center;border-bottom:.5px solid #e8e7e3;display:flex;gap:8px;padding:14px 16px}.CitationComponent-module_cite-acc__backBtn__d91ol{background:none;border:none;color:#888;cursor:pointer;font-size:20px;line-height:1;padding:0}.CitationComponent-module_cite-acc__backTitle__Jwdr9{color:#1a1a1a;font-size:14px;font-weight:500}.CitationComponent-module_cite-acc__cognitiveSection__eVNry{align-items:center;border-bottom:none;border-top:1px solid #eee;cursor:pointer;display:flex;justify-content:space-between;padding-left:12px;padding-right:12px;padding-top:12px}.CitationComponent-module_cite-acc__cognitiveTitle__LXmhU{color:#101828;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et{align-items:flex-start;display:flex;flex:1 1 auto;gap:10px;min-width:0}.CitationComponent-module_cite-acc__innerIcon__UvlXX{align-items:center;background:#f4f3ff;border-radius:999px;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__innerTitle__Lv8vo{color:#101828;font-size:14px;font-weight:500;line-height:22px}.CitationComponent-module_cite-acc__innerSub__XG7ad{color:#101828;font-size:12px;line-height:18px;margin-top:2px}.CitationComponent-module_cite-acc__innerToggle__3YHI5{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}.CitationComponent-module_cite-acc__innerToggle__3YHI5 i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__innerBody__Bzkt4{border-top:none;min-width:0;overflow-wrap:anywhere;word-break:break-word}.CitationComponent-module_cite-text__mark__Xh6wV{background-color:#fef3c7;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a__9HVV6{display:inline}.CitationComponent-module_cite-text__a-btn__9XyA1{color:#7a5af8;cursor:pointer;display:inline;font-weight:500}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI,.CitationComponent-module_cite-text__a-btn_circle__SI-j3{display:inline-block;margin-left:4px;vertical-align:middle}.CitationComponent-module_cite-text__a-btn_open__2NfoX{border:1px solid #7a5af8;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a-btn_circle__SI-j3{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#7a5af8;height:16px;margin-left:auto;margin-right:auto;width:16px}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI{height:16px;width:16px}.CitationComponent-module_cite-text__a-container__G-ier{margin-bottom:8px;margin-top:8px;max-height:250px;overflow:scroll}.CitationComponent-module_cite-text__a-container-docs__n8qlA{margin-bottom:8px;margin-top:8px;max-height:620px;overflow:scroll}.CitationComponent-module_cite-text__a-container-loader__f0Exm{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#000;height:32px;margin-left:auto;margin-right:auto;width:32px}.CitationComponent-module_md-ol__TO-dB{list-style:decimal;list-style-position:outside;padding-left:20px}.CitationComponent-module_md-ul__LfZPA{list-style:disc;list-style-position:outside;margin:10px 0 12px;padding-left:20px}.CitationComponent-module_md-li__ZEscN{margin:6px 0}.CitationComponent-module_cite-acc__btn-container__RUjvL{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;.CitationComponent-module_btn-accept__F5s10{border:1px solid #8098f9;border-radius:6px;color:#444ce7;padding:7px 10.5px}.CitationComponent-module_btn-reject__ziZa-{border:1px solid #fecaca;border-radius:6px;color:#ef4444;padding:7px 10.5px}}@keyframes CitationComponent-module_spin__W-F7a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@container (max-width: 420px){.CitationComponent-module_cite-acc__scoreIcon__-MUli{align-items:center;display:inline-flex}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{gap:6px;padding:6px 8px}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{padding:4px 8px}}'));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={"cite-acc":"CitationComponent-module_cite-acc__2XusN","cite-acc__header":"CitationComponent-module_cite-acc__header__Ek-ou","cite-acc__headerLeft":"CitationComponent-module_cite-acc__headerLeft__K6ItR","cite-acc__titleIcon":"CitationComponent-module_cite-acc__titleIcon__ssoL-","cite-acc__title":"CitationComponent-module_cite-acc__title__3ibjn","cite-acc__headerRight":"CitationComponent-module_cite-acc__headerRight__OhMqH","cite-acc__gapBadge":"CitationComponent-module_cite-acc__gapBadge__VkuKQ","cite-acc__scoreBadge":"CitationComponent-module_cite-acc__scoreBadge__uVDRv","cite-acc__scoreIcon":"CitationComponent-module_cite-acc__scoreIcon__-MUli","cite-acc__scoreText":"CitationComponent-module_cite-acc__scoreText__42VsL","cite-acc__toggleBtn":"CitationComponent-module_cite-acc__toggleBtn__RcZmg","cite-acc__body":"CitationComponent-module_cite-acc__body__YQDAm","cite-acc__explain-body":"CitationComponent-module_cite-acc__explain-body__1v7hb","cite-acc__explain-body_border":"CitationComponent-module_cite-acc__explain-body_border__QQnDb","cite-acc__innerHeader":"CitationComponent-module_cite-acc__innerHeader__BFwFr","cite-acc__backHeader":"CitationComponent-module_cite-acc__backHeader__aFHVT","cite-acc__backBtn":"CitationComponent-module_cite-acc__backBtn__d91ol","cite-acc__backTitle":"CitationComponent-module_cite-acc__backTitle__Jwdr9","cite-acc__cognitiveSection":"CitationComponent-module_cite-acc__cognitiveSection__eVNry","cite-acc__cognitiveTitle":"CitationComponent-module_cite-acc__cognitiveTitle__LXmhU","cite-acc__innerHeaderLeft":"CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et","cite-acc__innerIcon":"CitationComponent-module_cite-acc__innerIcon__UvlXX","cite-acc__innerTitle":"CitationComponent-module_cite-acc__innerTitle__Lv8vo","cite-acc__innerSub":"CitationComponent-module_cite-acc__innerSub__XG7ad","cite-acc__innerToggle":"CitationComponent-module_cite-acc__innerToggle__3YHI5","cite-acc__innerBody":"CitationComponent-module_cite-acc__innerBody__Bzkt4","cite-text__mark":"CitationComponent-module_cite-text__mark__Xh6wV","cite-text__a":"CitationComponent-module_cite-text__a__9HVV6","cite-text__a-btn":"CitationComponent-module_cite-text__a-btn__9XyA1","cite-text__a-btn_circle":"CitationComponent-module_cite-text__a-btn_circle__SI-j3","cite-text__a-btn_chevron":"CitationComponent-module_cite-text__a-btn_chevron__DXtkI","cite-text__a-btn_open":"CitationComponent-module_cite-text__a-btn_open__2NfoX",spin:"CitationComponent-module_spin__W-F7a","cite-text__a-container":"CitationComponent-module_cite-text__a-container__G-ier","cite-text__a-container-docs":"CitationComponent-module_cite-text__a-container-docs__n8qlA","cite-text__a-container-loader":"CitationComponent-module_cite-text__a-container-loader__f0Exm","md-ol":"CitationComponent-module_md-ol__TO-dB","md-ul":"CitationComponent-module_md-ul__LfZPA","md-li":"CitationComponent-module_md-li__ZEscN","cite-acc__btn-container":"CitationComponent-module_cite-acc__btn-container__RUjvL","btn-accept":"CitationComponent-module_btn-accept__F5s10","btn-reject":"CitationComponent-module_btn-reject__ziZa-"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.CitationComponent-module_cite-acc__2XusN{background:#fff;border:1px solid #eaecf0;border-radius:12px;box-sizing:border-box;container-type:inline-size;width:400px}.CitationComponent-module_cite-body__MwotJ{max-height:500px;overflow:auto;width:100%}.CitationComponent-module_cite-acc__header__Ek-ou{align-items:center;border-bottom:1px solid #eaecf0;border-top:1px solid #eaecf0;display:flex;flex-wrap:nowrap;gap:12px;justify-content:space-between;min-width:0;padding:12px}.CitationComponent-module_cite-acc__headerLeft__K6ItR{align-items:center;display:flex;flex:1 1 auto;gap:4px;min-width:0;overflow:hidden}.CitationComponent-module_cite-acc__titleIcon__ssoL-{align-items:center;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__title__3ibjn{color:#101828;font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__headerRight__OhMqH{align-items:center;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:10px;min-width:0}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{background:#fef3f2;border-radius:999px;color:#b42318;font-size:12px;font-weight:500;padding:4px 10px;white-space:nowrap}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{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}.CitationComponent-module_cite-acc__scoreIcon__-MUli{display:none}.CitationComponent-module_cite-acc__scoreText__42VsL{color:var(--Primitive-Purple-600,#6938ef);font-family:Inter;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.CitationComponent-module_cite-acc__gapBadge__VkuKQ,.CitationComponent-module_cite-acc__scoreBadge__uVDRv{flex:0 1 auto;min-width:0}.CitationComponent-module_cite-acc__toggleBtn__RcZmg{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;padding:4px}.CitationComponent-module_cite-acc__toggleBtn__RcZmg i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__body__YQDAm{display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px}.CitationComponent-module_cite-acc__explain-body__1v7hb{display:flex;flex-direction:column;gap:"14px";min-width:0;padding:15px}.CitationComponent-module_cite-acc__explain-body_border__QQnDb{border-top:1px solid #eaecf0}.CitationComponent-module_cite-acc__innerHeader__BFwFr{align-items:center;background:#0000;display:flex;gap:12px;justify-content:space-between;min-width:0}.CitationComponent-module_cite-acc__backHeader__aFHVT{align-items:center;border-bottom:.5px solid #e8e7e3;display:flex;gap:8px;padding:14px 16px}.CitationComponent-module_cite-acc__backBtn__d91ol{background:none;border:none;color:#888;cursor:pointer;font-size:20px;line-height:1;padding:0}.CitationComponent-module_cite-acc__backTitle__Jwdr9{color:#1a1a1a;font-size:14px;font-weight:500}.CitationComponent-module_cite-acc__cognitiveSection__eVNry{align-items:center;border-bottom:none;border-top:1px solid #eee;cursor:pointer;display:flex;justify-content:space-between;padding-left:12px;padding-right:12px;padding-top:12px}.CitationComponent-module_cite-acc__cognitiveTitle__LXmhU{color:#101828;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et{align-items:flex-start;display:flex;flex:1 1 auto;gap:10px;min-width:0}.CitationComponent-module_cite-acc__innerIcon__UvlXX{align-items:center;background:#f4f3ff;border-radius:999px;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__innerTitle__Lv8vo{color:#101828;font-size:14px;font-weight:500;line-height:22px}.CitationComponent-module_cite-acc__innerSub__XG7ad{color:#101828;font-size:12px;line-height:18px;margin-top:2px}.CitationComponent-module_cite-acc__innerToggle__3YHI5{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}.CitationComponent-module_cite-acc__innerToggle__3YHI5 i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__innerBody__Bzkt4{border-top:none;min-width:0;overflow-wrap:anywhere;word-break:break-word}.CitationComponent-module_cite-text__mark__Xh6wV{background-color:#fef3c7;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a__9HVV6{display:inline}.CitationComponent-module_cite-text__a-btn__9XyA1{color:#7a5af8;cursor:pointer;display:inline;font-weight:500}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI,.CitationComponent-module_cite-text__a-btn_circle__SI-j3{display:inline-block;margin-left:4px;vertical-align:middle}.CitationComponent-module_cite-text__a-btn_open__2NfoX{border:1px solid #7a5af8;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a-btn_circle__SI-j3{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#7a5af8;height:16px;margin-left:auto;margin-right:auto;width:16px}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI{height:16px;width:16px}.CitationComponent-module_cite-text__a-container__G-ier{margin-bottom:8px;margin-top:8px;max-height:250px;overflow:scroll}.CitationComponent-module_cite-text__a-container-docs__n8qlA{margin-bottom:8px;margin-top:8px;max-height:620px;overflow:scroll}.CitationComponent-module_cite-text__a-container-loader__f0Exm{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#000;height:32px;margin-left:auto;margin-right:auto;width:32px}.CitationComponent-module_md-ol__TO-dB{list-style:decimal;list-style-position:outside;padding-left:20px}.CitationComponent-module_md-ul__LfZPA{list-style:disc;list-style-position:outside;margin:10px 0 12px;padding-left:20px}.CitationComponent-module_md-li__ZEscN{margin:6px 0}.CitationComponent-module_cite-acc__btn-container__RUjvL{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;.CitationComponent-module_btn-accept__F5s10{border:1px solid #8098f9;border-radius:6px;color:#444ce7;padding:7px 10.5px}.CitationComponent-module_btn-reject__ziZa-{border:1px solid #fecaca;border-radius:6px;color:#ef4444;padding:7px 10.5px}}@keyframes CitationComponent-module_spin__W-F7a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@container (max-width: 420px){.CitationComponent-module_cite-acc__scoreIcon__-MUli{align-items:center;display:inline-flex}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{gap:6px;padding:6px 8px}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{padding:4px 8px}}'));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={"cite-acc":"CitationComponent-module_cite-acc__2XusN","cite-body":"CitationComponent-module_cite-body__MwotJ","cite-acc__header":"CitationComponent-module_cite-acc__header__Ek-ou","cite-acc__headerLeft":"CitationComponent-module_cite-acc__headerLeft__K6ItR","cite-acc__titleIcon":"CitationComponent-module_cite-acc__titleIcon__ssoL-","cite-acc__title":"CitationComponent-module_cite-acc__title__3ibjn","cite-acc__headerRight":"CitationComponent-module_cite-acc__headerRight__OhMqH","cite-acc__gapBadge":"CitationComponent-module_cite-acc__gapBadge__VkuKQ","cite-acc__scoreBadge":"CitationComponent-module_cite-acc__scoreBadge__uVDRv","cite-acc__scoreIcon":"CitationComponent-module_cite-acc__scoreIcon__-MUli","cite-acc__scoreText":"CitationComponent-module_cite-acc__scoreText__42VsL","cite-acc__toggleBtn":"CitationComponent-module_cite-acc__toggleBtn__RcZmg","cite-acc__body":"CitationComponent-module_cite-acc__body__YQDAm","cite-acc__explain-body":"CitationComponent-module_cite-acc__explain-body__1v7hb","cite-acc__explain-body_border":"CitationComponent-module_cite-acc__explain-body_border__QQnDb","cite-acc__innerHeader":"CitationComponent-module_cite-acc__innerHeader__BFwFr","cite-acc__backHeader":"CitationComponent-module_cite-acc__backHeader__aFHVT","cite-acc__backBtn":"CitationComponent-module_cite-acc__backBtn__d91ol","cite-acc__backTitle":"CitationComponent-module_cite-acc__backTitle__Jwdr9","cite-acc__cognitiveSection":"CitationComponent-module_cite-acc__cognitiveSection__eVNry","cite-acc__cognitiveTitle":"CitationComponent-module_cite-acc__cognitiveTitle__LXmhU","cite-acc__innerHeaderLeft":"CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et","cite-acc__innerIcon":"CitationComponent-module_cite-acc__innerIcon__UvlXX","cite-acc__innerTitle":"CitationComponent-module_cite-acc__innerTitle__Lv8vo","cite-acc__innerSub":"CitationComponent-module_cite-acc__innerSub__XG7ad","cite-acc__innerToggle":"CitationComponent-module_cite-acc__innerToggle__3YHI5","cite-acc__innerBody":"CitationComponent-module_cite-acc__innerBody__Bzkt4","cite-text__mark":"CitationComponent-module_cite-text__mark__Xh6wV","cite-text__a":"CitationComponent-module_cite-text__a__9HVV6","cite-text__a-btn":"CitationComponent-module_cite-text__a-btn__9XyA1","cite-text__a-btn_circle":"CitationComponent-module_cite-text__a-btn_circle__SI-j3","cite-text__a-btn_chevron":"CitationComponent-module_cite-text__a-btn_chevron__DXtkI","cite-text__a-btn_open":"CitationComponent-module_cite-text__a-btn_open__2NfoX",spin:"CitationComponent-module_spin__W-F7a","cite-text__a-container":"CitationComponent-module_cite-text__a-container__G-ier","cite-text__a-container-docs":"CitationComponent-module_cite-text__a-container-docs__n8qlA","cite-text__a-container-loader":"CitationComponent-module_cite-text__a-container-loader__f0Exm","md-ol":"CitationComponent-module_md-ol__TO-dB","md-ul":"CitationComponent-module_md-ul__LfZPA","md-li":"CitationComponent-module_md-li__ZEscN","cite-acc__btn-container":"CitationComponent-module_cite-acc__btn-container__RUjvL","btn-accept":"CitationComponent-module_btn-accept__F5s10","btn-reject":"CitationComponent-module_btn-reject__ziZa-"};
2
2
  //# sourceMappingURL=CitationComponent.module.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),i=require("react"),s=require("../Popups/PopupDefaults.js"),n=require("react-markdown"),c=require("rehype-raw"),t=require("./CitationComponent.module.css.js"),l=require("lucide-react"),d=require("../icons/cognitiveBrain.svg.js"),r=require("../icons/aiMagic.svg.js"),o=require("./CitationAnchor.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=_(i),f=_(n),x=_(c),m=function(i){var s=i.text,n=i.item;return a.jsx(f.default,e.__assign({rehypePlugins:[x.default],components:{ol:function(i){var s=i.children;return a.jsx("ol",e.__assign({className:t.default["md-ol"]},{children:s}))},ul:function(i){var s=i.children;return a.jsx("ul",e.__assign({className:t.default["md-ul"]},{children:s}))},li:function(i){var s=i.children;return a.jsx("li",e.__assign({className:t.default["md-li"]},{children:s}))},a:function(e){e.node;var i=e.href,s=e.children;return a.jsx(o.default,{href:i,children:s,metaData:{citations:n.citations,docData:n.docData}})}}},{children:s.replace(/<br\s*\/?>/gi,"\n")}))};exports.default=function(n){var c=n.item,o=n.title,_=void 0===o?"Cognitive Decisioning AI":o,f=n.relevanceScore,x=void 0===f?0:f,g=n.showRelevanceScore,v=void 0===g||g,h=n.reason,j=void 0===h?"No reasoning provided.":h,p=n.impact,N=void 0===p?"No Impact provided.":p,b=n.explaination,y=void 0===b?"No explaination provided.":b,C=n.gap,k=void 0===C?"None":C,B=n.onClose,H=void 0===B?function(){}:B,q=n.onAccept,D=n.onReject,A=n.showResolveBtns,T=void 0!==A&&A,I=n.sections,L=n.leftIcon,M=n.scoreIcon,w=n.className,P=n.customStyles,R=void 0===P?{}:P,S=n.actions,E=n.disableAllActions,F=void 0!==E&&E,G=n.actionBtnDisabledStyle,U=void 0===G?{}:G,O=n.onBackClick,z=n.isImpactNeeded,J=void 0===z||z,K=n.cognitiveTitle,Q=void 0===K?"Cognitive Integrity":K,V=n.labels,W=void 0===V?{}:V,X=i.useMemo(function(){var e=Number(x);return Number.isNaN(e)?0:Math.max(0,Math.min(100,Math.round(e)))},[x]),Y=i.useMemo(function(){var e=W&&W.noGapsText||"1. No gaps identified.";return function(e){if(!e)return!0;var a=e.trim().toLowerCase();return"none"===a||"no gap"===a||"no gaps"===a||"n/a"===a}(k)?e:k},[k]),Z=W&&W.impact||"Impact",$=W&&W.explanation||"Explaination",ee=W&&W.decisionFactors||"Decision Making Factors",ae=W&&W.gaps||"Gaps in Decision",ie=W&&W.accept||"Accept",se=W&&W.reject||"Reject",ne=W&&W.backAriaLabel||"Go back",ce=S||[{id:"reject",label:se,onClick:D,className:t.default["btn-reject"]},{id:"accept",label:ie,onClick:q,className:t.default["btn-accept"]}];return a.jsxs("div",e.__assign({className:"".concat(t.default["cite-acc"]," ").concat(w||""),style:e.__assign(e.__assign({},s.default.CitationAccordionDefaults.container),null==R?void 0:R.container)},{children:[O&&a.jsxs("div",e.__assign({className:t.default["cite-acc__backHeader"]},{children:[a.jsx("button",e.__assign({type:"button",className:t.default["cite-acc__backBtn"],onClick:function(e){e.stopPropagation(),O&&O()},"aria-label":ne},{children:"‹"})),a.jsx("span",e.__assign({className:t.default["cite-acc__backTitle"]},{children:Q}))]})),I&&I.length>0?I.map(function(i){return!1===i.show?null:a.jsxs("div",e.__assign({className:"".concat(t.default["cite-acc__explain-body"]," ").concat(i.bodyClassName||"")},{children:[a.jsxs("div",e.__assign({className:t.default["cite-acc__innerHeader"],style:e.__assign(e.__assign({},s.default.CitationAccordionDefaults.innerHeader),null==R?void 0:R.innerHeader)},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:i.title}))})})),a.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),H&&H()}},{children:a.jsx(l.ChevronUp,{})}))]})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600"),style:e.__assign(e.__assign({},s.default.CitationAccordionDefaults.innerBody),null==R?void 0:R.innerBody)},{children:"string"==typeof i.content?a.jsx(m,{text:i.content,item:i.item||c||{}}):i.content}))]}),i.id||i.title)}):a.jsxs(a.Fragment,{children:[J&&a.jsxs("div",e.__assign({className:t.default["cite-acc__explain-body"]},{children:[a.jsxs("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:Z}))})})),a.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),H&&H()}},{children:a.jsx(l.ChevronUp,{})}))]})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:N||"",item:c||{}})}))]})),a.jsxs("div",e.__assign({className:t.default["cite-acc__explain-body"]},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:$}))})}))})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:y||"",item:{}})}))]})),T&&a.jsx("div",e.__assign({className:t.default["cite-acc__btn-container"]},{children:ce.map(function(i){var s=F||i.disabled;return a.jsx("button",e.__assign({className:i.className,onClick:s?void 0:i.onClick,disabled:s,style:e.__assign(e.__assign({},i.style),s?e.__assign(e.__assign({opacity:.5,cursor:"not-allowed"},U),i.disabledStyle):{})},{children:i.label}),i.id)})})),a.jsxs("div",e.__assign({className:t.default["cite-acc__header"]},{children:[a.jsxs("div",e.__assign({className:t.default["cite-acc__headerLeft"]},{children:[a.jsx("span",e.__assign({className:t.default["cite-acc__titleIcon"]},{children:L?"function"==typeof L?u.default.createElement(L):L:a.jsx(d.ReactComponent,{})})),a.jsx("div",e.__assign({className:t.default["cite-acc__title"]},{children:_}))]})),a.jsx("div",e.__assign({className:t.default["cite-acc__headerRight"]},{children:v&&a.jsxs("span",e.__assign({className:t.default["cite-acc__scoreBadge"]},{children:[M?"function"==typeof M?u.default.createElement(M):M:a.jsx(r.ReactComponent,{}),a.jsxs("span",e.__assign({className:t.default["cite-acc__scoreText"]},{children:[X,"%"]}))]}))}))]})),a.jsxs("div",e.__assign({className:t.default["cite-acc__explain-body"]},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:ee}))})}))})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:j||"",item:c||{}})}))]})),a.jsxs("div",e.__assign({className:"".concat(t.default["cite-acc__explain-body"]," ").concat(t.default["cite-acc__explain-body_border"])},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:ae}))})}))})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:Y||"",item:c||{}})}))]}))]})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),i=require("react"),s=require("../Popups/PopupDefaults.js"),c=require("react-markdown"),n=require("rehype-raw"),t=require("./CitationComponent.module.css.js"),l=require("lucide-react"),d=require("../icons/cognitiveBrain.svg.js"),r=require("../icons/aiMagic.svg.js"),o=require("./CitationAnchor.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=_(i),f=_(c),x=_(n),m=function(i){var s=i.text,c=i.item;return a.jsx(f.default,e.__assign({rehypePlugins:[x.default],components:{ol:function(i){var s=i.children;return a.jsx("ol",e.__assign({className:t.default["md-ol"]},{children:s}))},ul:function(i){var s=i.children;return a.jsx("ul",e.__assign({className:t.default["md-ul"]},{children:s}))},li:function(i){var s=i.children;return a.jsx("li",e.__assign({className:t.default["md-li"]},{children:s}))},a:function(e){e.node;var i=e.href,s=e.children;return a.jsx(o.default,{href:i,children:s,metaData:{citations:c.citations,docData:c.docData}})}}},{children:s.replace(/<br\s*\/?>/gi,"\n")}))};exports.default=function(c){var n=c.item,o=c.title,_=void 0===o?"Cognitive Decisioning AI":o,f=c.relevanceScore,x=void 0===f?0:f,g=c.showRelevanceScore,v=void 0===g||g,h=c.reason,j=void 0===h?"No reasoning provided.":h,p=c.impact,N=void 0===p?"No Impact provided.":p,b=c.explaination,y=void 0===b?"No explaination provided.":b,C=c.gap,k=void 0===C?"None":C,B=c.onClose,H=void 0===B?function(){}:B,q=c.onAccept,D=c.onReject,A=c.showResolveBtns,T=void 0!==A&&A,I=c.sections,L=c.leftIcon,M=c.scoreIcon,w=c.className,P=c.customStyles,R=void 0===P?{}:P,S=c.actions,E=c.disableAllActions,F=void 0!==E&&E,G=c.actionBtnDisabledStyle,U=void 0===G?{}:G,O=c.onBackClick,z=c.isImpactNeeded,J=void 0===z||z,K=c.cognitiveTitle,Q=void 0===K?"Cognitive Integrity":K,V=c.labels,W=void 0===V?{}:V,X=i.useMemo(function(){var e=Number(x);return Number.isNaN(e)?0:Math.max(0,Math.min(100,Math.round(e)))},[x]),Y=i.useMemo(function(){var e=W&&W.noGapsText||"1. No gaps identified.";return function(e){if(!e)return!0;var a=e.trim().toLowerCase();return"none"===a||"no gap"===a||"no gaps"===a||"n/a"===a}(k)?e:k},[k]),Z=W&&W.impact||"Impact",$=W&&W.explanation||"Explaination",ee=W&&W.decisionFactors||"Decision Making Factors",ae=W&&W.gaps||"Gaps in Decision",ie=W&&W.accept||"Accept",se=W&&W.reject||"Reject",ce=W&&W.backAriaLabel||"Go back",ne=S||[{id:"reject",label:se,onClick:D,className:t.default["btn-reject"]},{id:"accept",label:ie,onClick:q,className:t.default["btn-accept"]}];return a.jsxs("div",e.__assign({className:"".concat(t.default["cite-acc"]," ").concat(w||""),style:e.__assign(e.__assign({},s.default.CitationAccordionDefaults.container),null==R?void 0:R.container)},{children:[O&&a.jsxs("div",e.__assign({className:t.default["cite-acc__backHeader"]},{children:[a.jsx("button",e.__assign({type:"button",className:t.default["cite-acc__backBtn"],onClick:function(e){e.stopPropagation(),O&&O()},"aria-label":ce},{children:"‹"})),a.jsx("span",e.__assign({className:t.default["cite-acc__backTitle"]},{children:Q}))]})),a.jsx("div",e.__assign({className:t.default["cite-body"]},{children:I&&I.length>0?I.map(function(i){return!1===i.show?null:a.jsxs("div",e.__assign({className:"".concat(t.default["cite-acc__explain-body"]," ").concat(i.bodyClassName||"")},{children:[a.jsxs("div",e.__assign({className:t.default["cite-acc__innerHeader"],style:e.__assign(e.__assign({},s.default.CitationAccordionDefaults.innerHeader),null==R?void 0:R.innerHeader)},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:i.title}))})})),a.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),H&&H()}},{children:a.jsx(l.ChevronUp,{})}))]})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600"),style:e.__assign(e.__assign({},s.default.CitationAccordionDefaults.innerBody),null==R?void 0:R.innerBody)},{children:"string"==typeof i.content?a.jsx(m,{text:i.content,item:i.item||n||{}}):i.content}))]}),i.id||i.title)}):a.jsxs(a.Fragment,{children:[J&&a.jsxs("div",e.__assign({className:t.default["cite-acc__explain-body"]},{children:[a.jsxs("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:Z}))})})),a.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),H&&H()}},{children:a.jsx(l.ChevronUp,{})}))]})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:N||"",item:n||{}})}))]})),a.jsxs("div",e.__assign({className:t.default["cite-acc__explain-body"]},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:$}))})}))})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:y||"",item:{}})}))]})),T&&a.jsx("div",e.__assign({className:t.default["cite-acc__btn-container"]},{children:ne.map(function(i){var s=F||i.disabled;return a.jsx("button",e.__assign({className:i.className,onClick:s?void 0:i.onClick,disabled:s,style:e.__assign(e.__assign({},i.style),s?e.__assign(e.__assign({opacity:.5,cursor:"not-allowed"},U),i.disabledStyle):{})},{children:i.label}),i.id)})})),a.jsxs("div",e.__assign({className:t.default["cite-acc__header"]},{children:[a.jsxs("div",e.__assign({className:t.default["cite-acc__headerLeft"]},{children:[a.jsx("span",e.__assign({className:t.default["cite-acc__titleIcon"]},{children:L?"function"==typeof L?u.default.createElement(L):L:a.jsx(d.ReactComponent,{})})),a.jsx("div",e.__assign({className:t.default["cite-acc__title"]},{children:_}))]})),a.jsx("div",e.__assign({className:t.default["cite-acc__headerRight"]},{children:v&&a.jsxs("span",e.__assign({className:t.default["cite-acc__scoreBadge"]},{children:[M?"function"==typeof M?u.default.createElement(M):M:a.jsx(r.ReactComponent,{}),a.jsxs("span",e.__assign({className:t.default["cite-acc__scoreText"]},{children:[X,"%"]}))]}))}))]})),a.jsxs("div",e.__assign({className:t.default["cite-acc__explain-body"]},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:ee}))})}))})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:j||"",item:n||{}})}))]})),a.jsxs("div",e.__assign({className:"".concat(t.default["cite-acc__explain-body"]," ").concat(t.default["cite-acc__explain-body_border"])},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:ae}))})}))})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:Y||"",item:n||{}})}))]}))]})}))]}))};
2
2
  //# sourceMappingURL=CognitiveComponent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("lucide-react"),s=require("react"),o=require("./ToneToggle.js");require("../CognitiveComponents/CitationComponent.module.css.js");var t=require("../icons/cognitiveBrain.svg.js"),l=require("../icons/aiMagic.svg.js"),a=[{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"}],r=function(n){var s=n.toneIndex,o=n.configs,t=void 0===o?a:o,l=t[Math.min(s,t.length-1)]||t[1]||t[0],r=l.color,d=l.angle,c=l.arcD,g=(d-90)*Math.PI/180,_=11+9*Math.cos(g),v=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:_,y2:v,stroke:r,strokeWidth:"2",strokeLinecap:"round"})]}))},d=function(n){var s=n.type,o=n.customStyles,t=void 0===o?{}:o,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[s]||l.Medium;return i.jsx("div",e.__assign({style:a},{children:s}))},c=["Lenient","Balanced","Aggressive"],g={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},_={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"400px",overflow:"auto"},v={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},u={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},p={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111"},x={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px"},m={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},y={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},h={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},f={display:"flex",gap:8,marginBottom:18},S={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:12,fontWeight:500,padding:"7px 4px",borderRadius:8,border:"0.5px solid #ccc",background:"#fff",cursor:"pointer"},j={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},b={borderTop:"0.5px solid #eee",paddingTop:14},C={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},I={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},B={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},k={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},D={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},A={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},T={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},w={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"};exports.default=function(z){var R,W,E,L,M,F,H,N,q,P,O,G,X,J,K,Q,U=z.onClose,V=z.aiReason,Y=z.onAccept,Z=z.onReject,$=z.onIterate,ee=z.initialTone,ie=z.onRegenerate,ne=z.labels,se=void 0===ne?{}:ne,oe=z.toneLevelsConfig,te=void 0===oe?c:oe,le=z.toneColorsConfig,ae=void 0===le?g:le,re=z.dialConfigs,de=void 0===re?a:re,ce=z.actions,ge=z.disableAllActions,_e=void 0!==ge&&ge,ve=z.customStyles,ue=void 0===ve?{}:ve,pe=z.severityChipStyles,xe=void 0===pe?{}:pe,me=z.customIcons,ye=void 0===me?{}:me,he=z.onOpenCognitive,fe=z.showTone,Se=void 0===fe||fe,je=z.cognitiveSectionStyle,be=void 0===je?{}:je,Ce=z.cognitiveScoreBadgeStyle,Ie=void 0===Ce?{}:Ce,Be=z.cognitiveScoreTextStyle,ke=void 0===Be?{}:Be,De=z.cognitiveStyles,Ae=void 0===De?{}:De,Te=z.cognitiveClassNames,we=void 0===Te?{}:Te,ze=z.cognitiveTitle,Re=void 0===ze?"Cognitive Integrity":ze,We=z.cognitiveLeftIcon,Ee=z.showCognitiveRightArrow,Le=void 0===Ee||Ee,Me=z.isStreaming,Fe=te.findIndex(function(e){return e===ee});-1===Fe&&(Fe=1);var He=s.useState(!0),Ne=He[0],qe=He[1],Pe=s.useState(!1),Oe=Pe[0],Ge=Pe[1],Xe=s.useState(Fe),Je=Xe[0],Ke=Xe[1],Qe=s.useState(Fe)[0],Ue=te[Je],Ve=ae[Ue]||"#BA7517",Ye=Je!==Qe,Ze=[{id:"iterate",icon:ye.iterateIcon||i.jsx(n.PenLine,{size:16,color:"#64748B"}),label:se.btnIterate||"Iterate",color:"#64748B",onClick:$},{id:"accept",icon:ye.acceptIcon||i.jsx(n.CheckCircle,{size:16,color:"#10B981"}),label:se.btnAccept||"Approve",color:"#10B981",onClick:Y},{id:"reject",icon:ye.rejectIcon||i.jsx(n.XCircle,{size:16,color:"#DC2626"}),label:se.btnReject||"Reject",color:"#DC2626",onClick:Z}],$e=ce||Ze;return i.jsxs("div",e.__assign({onClick:function(e){return e.stopPropagation()},style:e.__assign(e.__assign({},_),null===(R=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===R?void 0:R.root)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},v),null===(W=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===W?void 0:W.header)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[i.jsx("span",{children:ye.summaryIcon||i.jsx(n.Info,{size:16,color:"#E24B4A"})}),i.jsx("span",e.__assign({style:e.__assign(e.__assign({},u),null===(E=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===E?void 0:E.title)},{children:se.summaryHeader||"Summary"}))]})),i.jsx("button",e.__assign({onClick:U,style:e.__assign(e.__assign({},j),null===(L=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===L?void 0:L.closeBtn)},{children:"✕"}))]})),i.jsx("p",e.__assign({style:e.__assign(e.__assign({},p),null===(M=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===M?void 0:M.bodyText)},{children:null===(F=null==V?void 0:V.deviation_details)||void 0===F?void 0:F.deviation_title})),i.jsx("p",e.__assign({style:e.__assign(e.__assign({},x),null===(H=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===H?void 0:H.summary)},{children:null===(N=null==V?void 0:V.deviation_details)||void 0===N?void 0:N.deviation_summary})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},m),null===(q=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===q?void 0:q.impactContainer)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[i.jsxs("button",e.__assign({onClick:function(){return qe(!Ne)},style:e.__assign(e.__assign({},y),null===(P=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===P?void 0:P.impactToggle)},{children:[i.jsx("span",e.__assign({style:e.__assign(e.__assign({},h),null===(O=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===O?void 0:O.impactToggleLabel)},{children:se.impactHeader||"Impact"})),i.jsx("span",e.__assign({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Ne?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#E24B4A"})}))]})),i.jsx(d,{type:(null==V?void 0:V.severity)||"Medium",customStyles:xe})]})),Ne&&i.jsx("p",e.__assign({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0"}},{children:null!==(X=null===(G=null==V?void 0:V.deviation_details)||void 0===G?void 0:G.deviation_impact)&&void 0!==X?X:se.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},f),null===(J=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===J?void 0:J.actionContainer)},{children:$e.map(function(n){var s,o,t=_e||n.disabled,l=t?e.__assign(e.__assign({cursor:"not-allowed",opacity:.5},null===(s=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===s?void 0:s.actionBtnDisabled),n.disabledStyle):{};return i.jsxs("button",e.__assign({style:e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},S),null===(o=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtn),{color:n.color}),n.style),l),onClick:t?void 0:n.onClick,disabled:t},{children:[n.icon,n.label]}),n.id)})})),Se&&i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},b),null===(K=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===K?void 0:K.toneContainer)},{children:[i.jsxs("button",e.__assign({onClick:function(){return Ge(!Oe)},style:e.__assign(e.__assign({},C),null===(Q=null==ue?void 0:ue.DeviationSummaryStyles)||void 0===Q?void 0:Q.toneToggleBtn)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[i.jsx(r,{toneIndex:Je,configs:de}),i.jsx("span",e.__assign({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:se.toneHeader||"Redline Tone"}))]})),i.jsx("span",e.__assign({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Oe?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#111"})}))]})),Oe&&i.jsxs(i.Fragment,{children:[i.jsx("p",e.__assign({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:se.toneDescription||"Controls how assertively AI is redlining"})),i.jsx(o.ToneToggle,{isDirty:Ye,onToneChange:function(e){Ke(e)},toneColor:Ve,toneIndex:Je,onClickRegenerate:function(){return null==ie?void 0:ie(Ue)},toneLabels:te,isStreaming:Me,aiReason:V})]})]})),he&&i.jsxs("div",e.__assign({className:null==we?void 0:we.section,onClick:function(e){e.stopPropagation(),he&&he(e)},style:e.__assign(e.__assign(e.__assign({},I),null==Ae?void 0:Ae.section),be)},{children:[i.jsxs("div",e.__assign({className:null==we?void 0:we.headerLeft,style:e.__assign(e.__assign({},B),null==Ae?void 0:Ae.headerLeft)},{children:[i.jsx("span",e.__assign({className:null==we?void 0:we.titleIcon,style:e.__assign(e.__assign({},k),null==Ae?void 0:Ae.titleIcon)},{children:null!=We?We:i.jsx(t.ReactComponent,{})})),i.jsx("div",e.__assign({className:null==we?void 0:we.cognitiveTitle,style:e.__assign(e.__assign({},D),null==Ae?void 0:Ae.cognitiveTitle)},{children:Re}))]})),i.jsxs("div",e.__assign({className:null==we?void 0:we.headerRight,style:e.__assign(e.__assign({},A),null==Ae?void 0:Ae.headerRight)},{children:[void 0!==(null==V?void 0:V.relevance_score)&&null!==(null==V?void 0:V.relevance_score)?i.jsxs("span",e.__assign({className:null==we?void 0:we.scoreBadge,style:e.__assign(e.__assign(e.__assign({},T),null==Ae?void 0:Ae.scoreBadge),Ie)},{children:[i.jsx(l.ReactComponent,{}),i.jsxs("span",e.__assign({className:null==we?void 0:we.scoreText,style:e.__assign(e.__assign(e.__assign({},w),null==Ae?void 0:Ae.scoreText),ke)},{children:[Math.round(Number(V.relevance_score)),"%"]}))]})):null,Le&&i.jsx("span",e.__assign({style:{display:"flex",alignItems:"center"}},{children:i.jsx(n.ChevronRight,{size:16,color:"#64748B"})}))]}))]}))]}))};
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");require("../CognitiveComponents/CitationComponent.module.css.js");var t=require("../icons/cognitiveBrain.svg.js"),l=require("../icons/aiMagic.svg.js"),a=require("@mui/material"),r=[{color:"#1D9E75",angle:-90,arcD:"M1 13 A10 10 0 0 1 1 13"},{color:"#BA7517",angle:0,arcD:"M1 13 A10 10 0 0 1 11 3"},{color:"#E24B4A",angle:90,arcD:"M1 13 A10 10 0 0 1 21 13"}],d=function(n){var o=n.toneIndex,s=n.configs,t=void 0===s?r:s,l=t[Math.min(o,t.length-1)]||t[1]||t[0],a=l.color,d=l.angle,c=l.arcD,g=(d-90)*Math.PI/180,v=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:a,strokeWidth:"2.5",strokeLinecap:"round"}),i.jsx("line",{x1:"11",y1:"13",x2:v,y2:_,stroke:a,strokeWidth:"2",strokeLinecap:"round"})]}))},c=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}))},g=["Lenient","Balanced","Aggressive"],v={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},_={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px"},u={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},p={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},x={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},m={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px",maxHeight:"100px",overflow:"auto"},y={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},h={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},f={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},S={display:"flex",gap:8,marginBottom:18},j={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:12,fontWeight:500,padding:"7px 4px",borderRadius:8,border:"0.5px solid #ccc",background:"#fff",cursor:"pointer"},b={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},C={borderTop:"0.5px solid #eee",padding:"14px 0px"},B={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},I={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},k={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},w={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},D={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},A={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},T={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},z={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"};exports.default=function(R){var W,E,L,M,F,H,q,N,P,O,G,X,J,K,Q,U,V,Y=R.onClose,Z=R.aiReason,$=R.onAccept,ee=R.onReject,ie=R.onIterate,ne=R.initialTone,oe=R.onRegenerate,se=R.labels,te=void 0===se?{}:se,le=R.toneLevelsConfig,ae=void 0===le?g:le,re=R.toneColorsConfig,de=void 0===re?v:re,ce=R.dialConfigs,ge=void 0===ce?r:ce,ve=R.actions,_e=R.disableAllActions,ue=void 0!==_e&&_e,pe=R.customStyles,xe=void 0===pe?{}:pe,me=R.severityChipStyles,ye=void 0===me?{}:me,he=R.customIcons,fe=void 0===he?{}:he,Se=R.onOpenCognitive,je=R.showTone,be=void 0===je||je,Ce=R.cognitiveSectionStyle,Be=void 0===Ce?{}:Ce,Ie=R.cognitiveScoreBadgeStyle,ke=void 0===Ie?{}:Ie,we=R.cognitiveScoreTextStyle,De=void 0===we?{}:we,Ae=R.cognitiveStyles,Te=void 0===Ae?{}:Ae,ze=R.cognitiveClassNames,Re=void 0===ze?{}:ze,We=R.cognitiveTitle,Ee=void 0===We?"Cognitive Integrity":We,Le=R.cognitiveLeftIcon,Me=R.showCognitiveRightArrow,Fe=void 0===Me||Me,He=R.isStreaming,qe=ae.findIndex(function(e){return e===ne});-1===qe&&(qe=1);var Ne=o.useState(!0),Pe=Ne[0],Oe=Ne[1],Ge=o.useState(!1),Xe=Ge[0],Je=Ge[1],Ke=o.useState(qe),Qe=Ke[0],Ue=Ke[1],Ve=o.useState(qe)[0],Ye=ae[Qe],Ze=de[Ye]||"#BA7517",$e=Qe!==Ve,ei=[{id:"iterate",icon:fe.iterateIcon||i.jsx(n.PenLine,{size:16,color:"#64748B"}),label:te.btnIterate||"Iterate",color:"#64748B",onClick:ie},{id:"accept",icon:fe.acceptIcon||i.jsx(n.CheckCircle,{size:16,color:"#10B981"}),label:te.btnAccept||"Approve",color:"#10B981",onClick:$},{id:"reject",icon:fe.rejectIcon||i.jsx(n.XCircle,{size:16,color:"#DC2626"}),label:te.btnReject||"Reject",color:"#DC2626",onClick:ee}],ii=ve||ei;return i.jsxs("div",e.__assign({onClick:function(e){return e.stopPropagation()},style:e.__assign(e.__assign({},_),null===(W=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===W?void 0:W.root)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},u),null===(E=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===E?void 0:E.header)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[i.jsx("span",{children:fe.summaryIcon||i.jsx(n.Info,{size:16,color:"#E24B4A"})}),i.jsx("span",e.__assign({style:e.__assign(e.__assign({},p),null===(L=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===L?void 0:L.title)},{children:te.summaryHeader||"Summary"}))]})),i.jsx("button",e.__assign({onClick:Y,style:e.__assign(e.__assign({},b),null===(M=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===M?void 0:M.closeBtn)},{children:"✕"}))]})),i.jsx(a.Tooltip,e.__assign({title:null===(F=null==Z?void 0:Z.deviation_details)||void 0===F?void 0:F.deviation_title},{children:i.jsx("p",e.__assign({style:e.__assign(e.__assign({},x),null===(H=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===H?void 0:H.bodyText)},{children:null===(q=null==Z?void 0:Z.deviation_details)||void 0===q?void 0:q.deviation_title}))})),i.jsx("p",e.__assign({style:e.__assign(e.__assign({},m),null===(N=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===N?void 0:N.summary)},{children:null===(P=null==Z?void 0:Z.deviation_details)||void 0===P?void 0:P.deviation_summary})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},y),null===(O=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===O?void 0:O.impactContainer)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[i.jsxs("button",e.__assign({onClick:function(){return Oe(!Pe)},style:e.__assign(e.__assign({},h),null===(G=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===G?void 0:G.impactToggle)},{children:[i.jsx("span",e.__assign({style:e.__assign(e.__assign({},f),null===(X=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===X?void 0:X.impactToggleLabel)},{children:te.impactHeader||"Impact"})),i.jsx("span",e.__assign({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Pe?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#E24B4A"})}))]})),i.jsx(c,{type:(null==Z?void 0:Z.severity)||"Medium",customStyles:ye})]})),Pe&&i.jsx("p",e.__assign({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0",maxHeight:"100px",overflow:"auto"}},{children:null!==(K=null===(J=null==Z?void 0:Z.deviation_details)||void 0===J?void 0:J.deviation_impact)&&void 0!==K?K:te.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},S),null===(Q=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===Q?void 0:Q.actionContainer)},{children:ii.map(function(n){var o,s,t=ue||n.disabled,l=t?e.__assign(e.__assign({cursor:"not-allowed",opacity:.5},null===(o=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtnDisabled),n.disabledStyle):{};return i.jsxs("button",e.__assign({style:e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},j),null===(s=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===s?void 0:s.actionBtn),{color:n.color}),n.style),l),onClick:t?void 0:n.onClick,disabled:t},{children:[n.icon,n.label]}),n.id)})})),be&&i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},C),null===(U=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===U?void 0:U.toneContainer)},{children:[i.jsxs("button",e.__assign({onClick:function(){return Je(!Xe)},style:e.__assign(e.__assign({},B),null===(V=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===V?void 0:V.toneToggleBtn)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[i.jsx(d,{toneIndex:Qe,configs:ge}),i.jsx("span",e.__assign({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:te.toneHeader||"Redline Tone"}))]})),i.jsx("span",e.__assign({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Xe?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#111"})}))]})),Xe&&i.jsxs(i.Fragment,{children:[i.jsx("p",e.__assign({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:te.toneDescription||"Controls how assertively AI is redlining"})),i.jsx(s.ToneToggle,{isDirty:$e,onToneChange:function(e){Ue(e)},toneColor:Ze,toneIndex:Qe,onClickRegenerate:function(){return null==oe?void 0:oe(Ye)},toneLabels:ae,isStreaming:He,aiReason:Z})]})]})),Se&&i.jsxs("div",e.__assign({className:null==Re?void 0:Re.section,onClick:function(e){e.stopPropagation(),Se&&Se(e)},style:e.__assign(e.__assign(e.__assign({},I),null==Te?void 0:Te.section),Be)},{children:[i.jsxs("div",e.__assign({className:null==Re?void 0:Re.headerLeft,style:e.__assign(e.__assign({},k),null==Te?void 0:Te.headerLeft)},{children:[i.jsx("span",e.__assign({className:null==Re?void 0:Re.titleIcon,style:e.__assign(e.__assign({},w),null==Te?void 0:Te.titleIcon)},{children:null!=Le?Le:i.jsx(t.ReactComponent,{})})),i.jsx("div",e.__assign({className:null==Re?void 0:Re.cognitiveTitle,style:e.__assign(e.__assign({},D),null==Te?void 0:Te.cognitiveTitle)},{children:Ee}))]})),i.jsxs("div",e.__assign({className:null==Re?void 0:Re.headerRight,style:e.__assign(e.__assign({},A),null==Te?void 0:Te.headerRight)},{children:[void 0!==(null==Z?void 0:Z.relevance_score)&&null!==(null==Z?void 0:Z.relevance_score)?i.jsxs("span",e.__assign({className:null==Re?void 0:Re.scoreBadge,style:e.__assign(e.__assign(e.__assign({},T),null==Te?void 0:Te.scoreBadge),ke)},{children:[i.jsx(l.ReactComponent,{}),i.jsxs("span",e.__assign({className:null==Re?void 0:Re.scoreText,style:e.__assign(e.__assign(e.__assign({},z),null==Te?void 0:Te.scoreText),De)},{children:[Math.round(Number(Z.relevance_score)),"%"]}))]})):null,Fe&&i.jsx("span",e.__assign({style:{display:"flex",alignItems:"center"}},{children:i.jsx(n.ChevronRight,{size:16,color:"#64748B"})}))]}))]}))]}))};
2
2
  //# sourceMappingURL=DeviationSummary.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),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,_=t.isStreaming,v=t.aiReason,C=f.findIndex(function(e){return e===o});-1===C&&(C=1);var j=i.useState(r||y[0]||"Grounded"),k=j[0],S=j[1],B=i.useState(C),R=B[0],T=B[1],A=i.useState(C)[0],w=f[R],z=u[w]||"#BA7517",L=R!==A||r!==k;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 S(i)},style:{flex:1,display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderRadius:10,border:"1px solid ".concat(k===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(k===i?"#7c5cbf":"#ccc"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:k===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 T(e)},toneColor:z,isDirty:L,toneIndex:R,onClickRegenerate:function(){return null==s?void 0:s({tone:w,mode:k})},isStreaming:_,aiReason:v})]}))}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,b=e.isStreaming,_=e.aiReason;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,isStreaming:b,aiReason:_}):"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,S=o.chatBody,B=void 0===S?"You are now chatting about this redline, continue the conversation in the left panel to refine or update it":S,R=o.headerTitle,T=void 0===R?"How would you like to iterate?":R,A=o.customStyles,w=void 0===A?{}:A,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=o.isStreaming,H=o.aiReason,W=i.useState(null),E=W[0],G=W[1],N=e.__assign(e.__assign(e.__assign({},t.default.IterateMenuDefaults.styles),x),w);return n.jsxs("div",e.__assign({style:N.card},{children:[n.jsxs("div",e.__assign({style:N.header},{children:[n.jsx("button",e.__assign({onClick:s,style:N.backBtn,"aria-label":"Go back"},{children:"‹"})),n.jsx("span",e.__assign({style:N.headerTitle},{children:T}))]})),_.map(function(i,t){var o=E===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,G(function(n){return n===e?null:("chat"===e&&(null==a||a()),m&&m(e),e)});var e},style:N.row},{children:[n.jsx("div",e.__assign({style:N.rowLeft},{children:n.jsxs("div",{children:[n.jsx("p",e.__assign({style:N.label},{children:i.label})),n.jsx("p",e.__assign({style:N.desc},{children:i.description}))]})})),n.jsx("span",e.__assign({style:e.__assign(e.__assign({},N.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:B,historicalClausesData:C,toneLevelsConfig:L,toneColorsConfig:D,riskModesConfig:q,mergedStyles:N,aiReason:H,isStreaming:F})}))]}),i.id)})]}))};
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,_=t.isStreaming,v=t.aiReason,C=f.findIndex(function(e){return e===o});-1===C&&(C=1);var j=i.useState(r||y[0]||"Grounded"),k=j[0],S=j[1],B=i.useState(C),R=B[0],T=B[1],A=i.useState(C)[0],w=f[R],z=u[w]||"#BA7517",L=R!==A||r!==k;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 S(i)},style:{flex:1,display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderRadius:10,border:"1px solid ".concat(k===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(k===i?"#7c5cbf":"#ccc"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:k===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 T(e)},toneColor:z,isDirty:L,toneIndex:R,onClickRegenerate:function(){return null==s?void 0:s({tone:w,mode:k})},isStreaming:_,aiReason:v})]}))}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,b=e.isStreaming,_=e.aiReason;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,isStreaming:b,aiReason:_}):"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,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,S=o.chatBody,B=void 0===S?"You are now chatting about this redline, continue the conversation in the left panel to refine or update it":S,R=o.headerTitle,T=void 0===R?"How would you like to iterate?":R,A=o.customStyles,w=void 0===A?{}:A,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=o.isStreaming,H=o.aiReason,W=i.useState(null),E=W[0],G=W[1],N=e.__assign(e.__assign(e.__assign({},t.default.IterateMenuDefaults.styles),x),w);return n.jsxs("div",e.__assign({style:N.card},{children:[n.jsxs("div",e.__assign({style:N.header},{children:[n.jsx("button",e.__assign({onClick:s,style:N.backBtn,"aria-label":"Go back"},{children:"‹"})),n.jsx("span",e.__assign({style:N.headerTitle},{children:T}))]})),n.jsx("div",e.__assign({style:{width:"100%",maxHeight:"300px",overflow:"auto"}},{children:_.map(function(i,t){var o=E===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,G(function(n){return n===e?null:("chat"===e&&(null==a||a()),m&&m(e),e)});var e},style:N.row},{children:[n.jsx("div",e.__assign({style:N.rowLeft},{children:n.jsxs("div",{children:[n.jsx("p",e.__assign({style:N.label},{children:i.label})),n.jsx("p",e.__assign({style:N.desc},{children:i.description}))]})})),n.jsx("span",e.__assign({style:e.__assign(e.__assign({},N.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:B,historicalClausesData:C,toneLevelsConfig:L,toneColorsConfig:D,riskModesConfig:q,mergedStyles:N,aiReason:H,isStreaming:F})}))]}),i.id)})}))]}))};
2
2
  //# sourceMappingURL=IterateComponent.js.map
@@ -1,2 +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;
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}}},t={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)",fontFamily:"'DM Sans', 'Segoe UI', sans-serif"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderBottom:"1.5px solid #e2e8f0",borderRadius:"18px 18px 0px 0px"},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},meta:{},divider:{height:1,background:"#f1f5f9"},impactText:{margin:"10px 0 0",fontSize:13,lineHeight:1.65,color:"#334155",overflow:"auto",maxHeight:"100px"},secondSection:{marginTop:12,background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:12,padding:"14px 16px",fontSize:13,lineHeight:1.7,color:"#64748b",fontStyle:"italic",overflow:"auto",maxHeight:"100px"},actionsContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:2},fallbackSectionStyle:{marginTop:12,padding:"16px",fontSize:13,color:"#94a3b8",textAlign:"center",fontStyle:"italic",background:"#f8fafc",borderRadius:12,border:"1.5px dashed #cbd5e1"}},n={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:t,CitationAccordionDefaults:n};exports.CitationAccordionDefaults=n,exports.DeviationSummaryDefaults=e,exports.IterateMenuDefaults=o,exports.RedlineCardDefaults=t,exports.default=a;
2
2
  //# sourceMappingURL=PopupDefaults.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),s=require("lucide-react"),n=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(s){var n=s.open;return t.jsx("svg",e.__assign({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.jsx("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},g=function(s){var n=s.color,i=void 0===n?"#3b82f6":n;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"})]}))},h=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},x=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 f(s){var n=s.title,i=s.open,o=s.onToggle,r=s.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:n})),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 _(s){var n=s.icon,i=s.label,o=s.onClick,r=s.customStyle,a=void 0===r?{}:r,d=s.disabled,l=void 0!==d&&d,c=s.disabledStyle,u=void 0===c?{}:c,g=e.__assign(e.__assign({display:"flex",alignItems:"center",gap:7,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:l?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:l?.5:1},a),l?u:{});return t.jsxs("button",e.__assign({onClick:l?void 0:o,disabled:l,style:g,onMouseEnter:function(e){l||(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){l||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[n,i]}))}exports.ApprovedIcon=r,exports.ChevronIcon=u,exports.CloseIcon=d,exports.HistoryIcon=g,exports.IterateIcon=x,exports.RedlineCard=function(u){var p,j=u.status,k=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,I=u.disableAllActions,S=void 0!==I&&I,M=u.impactTitle,W=void 0===M?"Impact":M,T=u.customConfigs,D=void 0===T?{}:T,A=u.customStyles,z=void 0===A?{}:A,U=n.useState(!0),H=U[0],q=U[1],F=n.useState(!0),E=F[0],N=F[1],P=n.useState(!1),O=P[0],Y=P[1],G={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(s.Undo2,{size:17}),label:"Revert",onClick:R},{icon:t.jsx(x,{}),label:"Iterate",onClick:L}]},J={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(h,{}),label:"Reinstate",onClick:w},{icon:t.jsx(x,{}),label:"Iterate",onClick:L}]},K={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t.jsx(l,{}),StatusIcon:t.jsx(s.Undo2,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t.jsx(g,{}),label:"History",onClick:C},{icon:t.jsx(x,{}),label:"Iterate",onClick:L}]};p="accepted"===j?G:"rejected"===j?J:K;var Q=e.__assign(e.__assign({},p),D[j]||{});return t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.RedlineCardDefaults.root),{animation:O?"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"}),z.root)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.RedlineCardDefaults.header),{background:Q.headerBg,borderBottom:"1.5px solid ".concat(Q.headerBorder)}),z.header)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[Q.StatusIcon,t.jsx("span",e.__assign({style:{fontSize:15,fontWeight:700,color:Q.titleColor,letterSpacing:"-0.01em"}},{children:Q.label}))]})),t.jsx("button",e.__assign({onClick:function(){Y(!0),k()},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),z.body)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.meta),z.meta)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[Q.UserIcon,t.jsx("span",e.__assign({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:Q.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),z.divider)}),t.jsx(f,e.__assign({title:W,open:H,onToggle:function(){return q(function(e){return!e})}},{children:t.jsx("p",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.impactText),z.impactText)},{children:b||""}))})),t.jsx("div",{style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.divider),z.divider)}),t.jsx(f,e.__assign({title:Q.secondTitle,open:E,onToggle:function(){return N(function(e){return!e})}},{children:t.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.RedlineCardDefaults.secondSection),{background:Q.secondBg,border:"1.5px solid ".concat(Q.secondBorder)}),z.secondSection)},{children:v||""}))})),t.jsx("div",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.actionsContainer),z.actionsContainer)},{children:Q.actions.map(function(s){return t.jsx(_,{icon:s.icon,label:s.label,onClick:s.onClick,customStyle:e.__assign(e.__assign({},s.style),z.actionBtn),disabled:S||s.disabled,disabledStyle:z.actionBtnDisabled},s.label)})}))]}))]}))},exports.ReinstateIcon=h,exports.RejectedIcon=a,exports.UserApprovedIcon=l,exports.UserRejectedIcon=c,exports.formatDate=o;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),s=require("lucide-react"),i=require("react"),n=require("./PopupDefaults.js"),o=require("@mui/material");function r(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 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:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t.jsx("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},l=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#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"})}))},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 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},g=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},u=function(s){var i=s.open;return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:i?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t.jsx("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},x=function(s){var i=s.color,n=void 0===i?"#3b82f6":i;return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:n,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M1.5 3.5v4h4",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M8 5v3.5l2 1.5",stroke:n,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},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 _(s){var i=s.title,n=s.open,o=s.onToggle,r=s.children;return t.jsxs("div",{children:[t.jsxs("div",e.__assign({onClick:o,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t.jsx("span",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:i})),t.jsx(u,{open:n})]})),t.jsx("div",e.__assign({style:{maxHeight:n?100:0,opacity:n?1:0,transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:n&&t.jsx(t.Fragment,{children:r})}))]})}function p(s){var i=s.icon,n=s.label,o=s.onClick,r=s.customStyle,a=void 0===r?{}:r,l=s.disabled,d=void 0!==l&&l,c=s.disabledStyle,g=void 0===c?{}:c,u=e.__assign(e.__assign({display:"flex",alignItems:"center",gap:10,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:d?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:d?.5:1},a),d?g:{});return t.jsxs("button",e.__assign({onClick:d?void 0:o,disabled:d,style:u,onMouseEnter:function(e){d||(e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)")},onMouseLeave:function(e){d||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[i,n]}))}exports.ApprovedIcon=a,exports.ChevronIcon=u,exports.CloseIcon=d,exports.HistoryIcon=x,exports.IterateIcon=h,exports.RedlineCard=function(u){var j,k=u.status,b=u.onClose,v=u.impactText,y=u.secondText,m=u.actionTakenByName,B=u.actionTakenAtTime,C=void 0===B?"NA":B,L=u.onHistory,S=u.onIterate,w=u.onReinstate,R=u.onRevert,I=u.disableAllActions,T=void 0!==I&&I,W=u.impactTitle,M=void 0===W?"Impact":W,D=u.customConfigs,A=void 0===D?{}:D,z=u.customStyles,U=void 0===z?{}:z,H=u.secondaryTitle,N=i.useState(!0),q=N[0],F=N[1],O=i.useState(!0),E=O[0],P=O[1],Y=i.useState(!1),G=Y[0],J=Y[1],K={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t.jsx(c,{}),StatusIcon:t.jsx(a,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t.jsx(x,{}),label:"History",onClick:L},{icon:t.jsx(s.Undo2,{size:17}),label:"Revert",onClick:R},{icon:t.jsx(h,{}),label:"Iterate",onClick:S}],fallbackText:"No original text available"},Q={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t.jsx(g,{}),StatusIcon:t.jsx(l,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t.jsx(x,{color:"#3b82f6"}),label:"History",onClick:L},{icon:t.jsx(f,{}),label:"Reinstate",onClick:w},{icon:t.jsx(h,{}),label:"Iterate",onClick:S}],fallbackText:"No rejected recommendation available"},V={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t.jsx(c,{}),StatusIcon:t.jsx(s.Undo2,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t.jsx(x,{}),label:"History",onClick:L},{icon:t.jsx(h,{}),label:"Iterate",onClick:S}],fallbackText:"No reverted redline available"};j="accepted"===k?K:"rejected"===k?Q:V;var X=e.__assign(e.__assign({},j),A[k]||{});return t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.root),{animation:G?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":n.default.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),U.root)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.header),{background:X.headerBg,borderBottom:"1.5px solid ".concat(X.headerBorder)}),U.header)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[t.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:X.StatusIcon})),t.jsxs("div",{children:[t.jsx("span",e.__assign({style:{fontSize:15,fontWeight:700,color:X.titleColor,letterSpacing:"-0.01em"}},{children:X.label})),t.jsx(o.Tooltip,e.__assign({title:H},{children:t.jsx("span",e.__assign({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",fontSize:12,color:"gray"}},{children:H}))}))]})]})),t.jsx("button",e.__assign({onClick:function(){J(!0),b()},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({},n.default.RedlineCardDefaults.body),U.body)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.meta),U.meta)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[X.UserIcon,t.jsx("span",e.__assign({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:X.metaLabel}))]})),t.jsxs("div",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[t.jsx(o.Tooltip,e.__assign({title:m},{children:t.jsx("span",e.__assign({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"}},{children:m}))})),t.jsx("span",{children:r(C)})]}))]})),t.jsx("div",{style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.divider),U.divider)}),t.jsx(_,e.__assign({title:M,open:q,onToggle:function(){return F(function(e){return!e})}},{children:t.jsx("p",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.impactText),U.impactText)},{children:v||""}))})),t.jsx("div",{style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.divider),U.divider)}),t.jsx(_,e.__assign({title:X.secondTitle,open:E,onToggle:function(){return P(function(e){return!e})}},{children:y?t.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.secondSection),{background:X.secondBg,border:"1.5px solid ".concat(X.secondBorder)}),U.secondSection)},{children:y})):t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.fallbackSectionStyle),U.fallbackSectionStyle)},{children:[X.fallbackText," "]}))})),t.jsx("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.actionsContainer),U.actionsContainer)},{children:X.actions.map(function(s){return t.jsx(p,{icon:s.icon,label:s.label,onClick:s.onClick,customStyle:e.__assign(e.__assign({},s.style),U.actionBtn),disabled:T||s.disabled,disabledStyle:U.actionBtnDisabled},s.label)})}))]}))]}))},exports.ReinstateIcon=f,exports.RejectedIcon=l,exports.UserApprovedIcon=c,exports.UserRejectedIcon=g,exports.formatDate=r;
2
2
  //# sourceMappingURL=RedlineStatusCard.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),i=require("showdown"),o=require("@mui/material"),l=require("uuid"),r=require("./UserStoryCard.module.css.js"),a=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),_=require("../story-screen/BigEnoughPanel.js"),g=require("./TitleEditor/TitleEditor.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=h(i);function p(n){for(var i,r=[],a=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(i=a.exec(n));){var c=i[1],f=i.index;f>u&&r.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),r.push(t.jsx(o.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(s.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(l.v4()))),u=a.lastIndex}return u<(null==n?void 0:n.length)&&r.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),r}function m(t,n,s){var i;if(!t)return{};if(n)return e.__assign({},t.parentConfig);var o=e.__assign({},t.childConfig);return s&&(null===(i=t.subFeatureOverrides)||void 0===i?void 0:i[s])?e.__assign(e.__assign({},o),t.subFeatureOverrides[s]):o}var S=function(n){var i,o=n.displayName,l=v.useRequirementAI().customStyles,a=null===(i=null==l?void 0:l.userStoryCardStyles)||void 0===i?void 0:i.showDisplayName;return t.jsxs("div",e.__assign({className:r.default.displayName,style:null==a?void 0:a.wrapper},{children:[t.jsx(s.Bookmark,{className:r.default.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),t.jsxs("span",e.__assign({style:null==a?void 0:a.label},{children:[o,":"]}))]}))},x=function(i){var h,C,I,j,w,N,b,B=i.isUserStoryCurrentlyUpdated,D=i.artifactId,E=i.artifactTitleId,U=i.parentUserStory,k=i.currentUserStory,T=i.onUserStoryChange,M=i.parentIndex,A=i.currentIndex,q=i.enableDownload,P=i.isDiffEditReviewMode,R=i.showUserStoryDiff,L=i.handleDownloadUserStory,H=i.handleOpenSendDialog,V=i.updateUserStoryArtifact,W=i.selectedArtifactId,z=i.isDisplayHighlightControl,O=i.elementDisplayConfig,F=i._resolvedConfig,G=i.showWrapper,Q=void 0!==G&&G,Z=i.actionItemsConfig,J=i.onDelete,K=i.contextVariant,X=i.showDisplayName,Y=void 0===X||X,$=i.allowTitleEdit,ee=void 0===$||$,te=i.showConfidenceScore,ne=void 0===te||te,se=i.showBorderTop,ie=void 0===se||se,oe=v.useRequirementAI(),le=oe.searchQueryList,re=oe.citations,ae=oe.customStyles,ue=null==ae?void 0:ae.userStoryCardStyles,de=null===(h=null==ae?void 0:ae.userStoryCardStyles)||void 0===h?void 0:h.userStoryEditStyles,ce=null===(C=null==ae?void 0:ae.userStoryScreenStyles)||void 0===C?void 0:C.userStoryContentStyles,fe=null==ue?void 0:ue.progressHeaderStyles,ve=n.useState(e.__assign(e.__assign({},structuredClone(k)),{value:a.formatMarkdown(k.value)||""})),_e=ve[0],ge=ve[1],he=n.useState({userStory:!!k.isDefaultEdit}),ye=he[0],pe=he[1],me=n.useState(!1),Se=me[0],xe=me[1],Ce=n.useState(null),Ie=Ce[0],je=Ce[1],we=v.useRequirementAI(),Ne=we.userStory,be=we.customIcons,Be=n.useState(""===M||W===k.artifactId||!!k.isDefaultOpen),De=Be[0],Ee=Be[1],Ue=n.useState(!1);Ue[0];var ke=Ue[1],Te=n.useState(null),Me=Te[0],Ae=Te[1],qe=n.useState(null),Pe=qe[0],Re=qe[1],Le=n.useState(!1),He=Le[0],Ve=Le[1],We=n.useRef(null),ze=n.useState(!1);ze[0];var Oe=ze[1],Fe=n.useRef(null);n.useEffect(function(){B&&Ee(B)},[B]),n.useEffect(function(){ge(e.__assign(e.__assign({},structuredClone(k)),{value:a.formatMarkdown(k.value)||""}))},[k]),n.useEffect(function(){le.length>0?Ee(!0):W&&Ee(W===k.artifactId)},[le,W,k.artifactId]);var Ge=function(){Ae(null)},Qe=function(){Re(null)},Ze=function(){Ee(function(e){return!e})};var Je=null!=(null==k?void 0:k.big_enough)&&!Number.isNaN(k.big_enough)&&!!(null==k?void 0:k.big_enough_decision_factors),Ke=""===M,Xe=null!=F?F:m(O,Ke),Ye=!P&&!R;return n.useEffect(function(){if(Ie){var e=setTimeout(function(){var e=document.getElementById("story-card-".concat(Ie));null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return function(){return clearTimeout(e)}}},[Ie]),n.useEffect(function(){k.isDefaultEdit&&pe(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})},[k.isDefaultEdit]),t.jsxs("div",e.__assign({className:r.default.card,style:null==ue?void 0:ue.cardStyle,id:"story-card-".concat(k.title),"data-expanded":De},{children:[t.jsxs("div",e.__assign({className:r.default.titleSection,style:null==ue?void 0:ue.titleSection},{children:[t.jsxs("div",e.__assign({className:r.default.titleRow,style:null==ue?void 0:ue.titleRow,onClick:Ze},{children:[t.jsxs("div",e.__assign({className:r.default.titleLeft,style:null==ue?void 0:ue.titleLeft,onMouseEnter:function(){return Oe(!0)},onMouseLeave:function(){return Oe(!1)}},{children:[Y&&t.jsx(S,{displayName:E}),Se&&Ye?t.jsx(g.InlineTitleEditor,{title:k.title,onSave:function(t){return function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var s,i;return e.__generator(this,function(o){try{s=e.__assign({},k),k.artifactId===n?s.title=t:s.sub_features=(null===(i=k.sub_features)||void 0===i?void 0:i.map(function(s){return s.artifactId===n?e.__assign(e.__assign({},s),{title:t}):s}))||[],ge(s),T(s),xe(!1)}catch(e){console.error("Failed to save title",e)}return[2]})})}(t,k.artifactId)},onCancel:function(){xe(!1)},inputStyle:null==de?void 0:de.inlineTitleInput,confirmButtonStyle:null==de?void 0:de.inlineTitleConfirm,cancelButtonStyle:null==de?void 0:de.inlineTitleCancel},"inline-title-editor"):t.jsxs("div",e.__assign({className:r.default.storyTitleWrapper},{children:[t.jsx("h2",e.__assign({title:k.title,className:r.default.storyTitle,style:null==ue?void 0:ue.storyTitle},{children:p(k.title)}),k.artifactId),ee&&t.jsx("button",e.__assign({type:"button",className:r.default.titleEditButton,style:null==de?void 0:de.titleEditButton,onClick:function(e){e.stopPropagation(),xe(!0),De||Ee(!0)},"aria-label":"Edit title",title:"Edit title"},{children:t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t.jsx("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})}))}))]}))]})),t.jsxs("div",e.__assign({className:r.default.titleActions,style:null==ue?void 0:ue.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Xe.showProgressPercentage||Xe.showGapBox)&&Q&&t.jsxs("div",e.__assign({className:r.default.progressHeader,style:null==fe?void 0:fe.wrapper},{children:[Xe.showProgressPercentage&&t.jsxs("div",e.__assign({className:r.default.progressPercentage,style:null==fe?void 0:fe.percentage},{children:[null!==(j=null!==(I=null==k?void 0:k.confidenceScore)&&void 0!==I?I:null==Xe?void 0:Xe.confidenceValue)&&void 0!==j?j:"0","%"]})),Xe.showGapBox&&t.jsxs("div",e.__assign({className:r.default.gapBox,style:null==fe?void 0:fe.gapBox},{children:[null!==(N=null!==(w=null==k?void 0:k.gapValue)&&void 0!==w?w:null==Xe?void 0:Xe.gapBoxValue)&&void 0!==N?N:"2"," ","Gaps"]}))]})),Je&&t.jsx(_.BigEnoughPanel,{customIcons:null==be?void 0:be.userStoryIcons,customStyles:null==ue?void 0:ue.aiReasoningCitaionStyles,currentUserStory:k,panelStyles:null==ue?void 0:ue.BigEnoughStyles}),!ye.userStory&&t.jsxs(t.Fragment,{children:[!1!==(null==Xe?void 0:Xe.showShareButton)&&t.jsx("button",e.__assign({className:r.default.iconButton,style:null==ue?void 0:ue.iconButton,onClick:function(e){Ae(e.currentTarget)}},{children:t.jsx(s.ExternalLink,{size:16})})),t.jsxs(o.Menu,e.__assign({id:"user-story-share-menu",anchorEl:Me,open:!!Me,onClose:function(){return Ae(null)},style:null==ue?void 0:ue.userStoryShareMenu},{children:[q&&t.jsx(o.MenuItem,e.__assign({style:null==ue?void 0:ue.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return ke(!0),L?[4,Promise.all([L("pdf"),L("doc")])]:[2];case 1:return e.sent(),ke(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:We,className:r.default.menuItemContent,style:null==ue?void 0:ue.menuItemContent},{children:[t.jsx(s.Download,{size:16,color:null==ue?void 0:ue.menuIconColor}),t.jsx("p",e.__assign({style:null==ue?void 0:ue.menuLabel},{children:"Download"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==ue?void 0:ue.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=k,U&&(t=e.__assign(e.__assign({},k),{value:"".concat(u.replaceTitleSection(null==U?void 0:U.value,k.title)," \n").concat(k.value)})),null==H||H(!0,[t],k.artifactId),Ge(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==ue?void 0:ue.menuItemContent,className:r.default.menuItemContentPadded},{children:[t.jsx(s.Share2,{size:16,color:null==ue?void 0:ue.menuIconColor}),t.jsx("p",e.__assign({style:null==ue?void 0:ue.menuLabel},{children:"Send"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==ue?void 0:ue.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,s,i,o;return e.__generator(this,function(e){switch(e.label){case 0:t=new y.default.Converter,n=t.makeHtml(a.formatMarkdown(k.value)||k.value),s=function(e){var t=(new y.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(a.formatMarkdown(k.value)||k.value),i=new ClipboardItem({"text/plain":new Blob([s],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([i])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return o=e.sent(),console.error("Failed to copy user story:",o),[3,5];case 4:return Ge(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==ue?void 0:ue.menuItemContent,className:r.default.menuItemContentPadded},{children:[t.jsx(s.Copy,{size:16,color:null==ue?void 0:ue.menuIconColor}),t.jsx("p",e.__assign({style:null==ue?void 0:ue.menuLabel},{children:"Copy"}))]}))}))]}))]}),ye.userStory&&De?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==ue?void 0:ue.cancelButton,onClick:function(){var t;null===(t=Fe.current)||void 0===t||t.abort(),pe(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),ye.userStory&&De?t.jsx(d.default,{type:"fill",children:He?t.jsxs("span",e.__assign({className:r.default.savingSpinner,style:null==ue?void 0:ue.savingSpinner},{children:[t.jsx(s.LoaderCircle,{className:r.default.spinAnimation,style:null==ue?void 0:ue.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:He,style:He?null==ue?void 0:ue.savingButton:null==ue?void 0:ue.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return Ve(!0),"userStory"==="userStory"&&(T(_e),console.log("I am changing RTE editor values",_e)),[4,V(re,Ne,D,null===(t=Fe.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),T(e.__assign(e.__assign({},_e),{isDefaultEdit:!1})),pe(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),Ve(!1),[2]}})})}}):!P&&!R&&De&&!1!==(null==Xe?void 0:Xe.showEditButton)&&ee&&t.jsx("button",e.__assign({className:r.default.iconButton,style:null==ue?void 0:ue.editButton,onClick:function(){return pe(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(s.PencilIcon,{color:null==ue?void 0:ue.pencilIconColor,size:16})})),Ke&&De&&!P&&!R&&!1!==(null==Xe?void 0:Xe.showEditButton)&&t.jsxs("button",e.__assign({type:"button",className:r.default.addSectionButton,style:null==de?void 0:de.addSectionButton,onClick:function(t){var n,s,i;t.stopPropagation();var o=(null!==(s=null===(n=k.sub_features)||void 0===n?void 0:n.length)&&void 0!==s?s:0)+1,r={artifactId:l.v4(),title:"New Section ".concat(o),value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},a=e.__assign(e.__assign({},k),{sub_features:e.__spreadArray(e.__spreadArray([],null!==(i=k.sub_features)&&void 0!==i?i:[],!0),[r],!1)});ge(a),T(a),Ee(!0),je(r.title)},"aria-label":"Add section",title:"Add section"},{children:[t.jsx(s.Plus,{size:14}),t.jsx("span",e.__assign({className:r.default.addSectionLabel},{children:"Add Section"}))]})),!Ke&&!P&&!R&&t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),null==J||J()},className:r.default.iconButton,style:null==de?void 0:de.deleteButton,"aria-label":"Delete section",title:"Delete section"},{children:t.jsx(s.Trash2,{size:16})})),(null==Xe?void 0:Xe.actionItemsButton)&&t.jsxs(t.Fragment,{children:[t.jsx("span",e.__assign({className:r.default.actionItemBtn,style:null==ue?void 0:ue.actionItemBtn,onClick:function(e){e.stopPropagation(),Re(e.currentTarget)}},{children:t.jsx(s.Ellipsis,{})})),t.jsx(o.Menu,e.__assign({id:"user-story-action-menu",anchorEl:Pe,open:!!Pe,onClose:Qe,style:null==ue?void 0:ue.userStoryShareMenu},{children:null==Z?void 0:Z.items.map(function(n,s){return t.jsx(o.MenuItem,e.__assign({style:null==ue?void 0:ue.userStoryMenuItem,onClick:function(){n.onclick(k),Qe()}},{children:t.jsxs("div",e.__assign({className:r.default.menuItemContent,style:e.__assign(e.__assign({},null==ue?void 0:ue.menuItemContent),!n.isActive&&{cursor:"not-allowed",opacity:.5})},{children:[t.jsx("span",e.__assign({className:r.default.menuItemIcon,style:null==ue?void 0:ue.menuItemIcon},{children:n.icon})),t.jsx("p",e.__assign({style:null==ue?void 0:ue.menuLabel},{children:n.name})),t.jsx("span",{className:r.default.menuItemRight,style:null==ue?void 0:ue.menuItemRight})]}))}),"action-item-".concat(s,"-").concat(n.name))})}))]}),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),Ze()},style:null==ue?void 0:ue.chevronButton,className:r.default.chevronButton},{children:De?t.jsx(s.ChevronUp,{className:r.default.chevronIcon,color:null==ue?void 0:ue.chevronIconColor}):t.jsx(s.ChevronDown,{className:r.default.chevronIcon,color:null==ue?void 0:ue.chevronIconColor})}))]}))]})),t.jsx("div",{className:r.default.divider,style:null==ue?void 0:ue.dividerStyle})]})),De&&t.jsx("div",e.__assign({className:r.default.cardContent,style:e.__assign(e.__assign({},null==ue?void 0:ue.cardContentStyle),{borderTop:ie?"1px solid #E5E5E5":"none"})},{children:t.jsxs("div",e.__assign({className:r.default.contentInner,style:null==ue?void 0:ue.contentInner},{children:[t.jsxs("div",e.__assign({className:r.default.descriptionSection,style:null==ue?void 0:ue.descriptionSection},{children:[t.jsx("div",{className:r.default.justifyBetween,style:null==ue?void 0:ue.justifyBetween}),ye.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:a.formatMarkdown(k.value)||"",handleUpdateState:function(t,n){var s=a.indentMarkdown(n);ge(function(t){return e.__assign(e.__assign({},t),{value:s||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ye.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:R,isParent:""===M,message:a.formatMarkdown(k.value)||"",artifactId:k.artifactId,customStyles:ce,isDisplayHighlightControl:z,contextVariant:K,showConfidenceScore:ne})]})),null===(b=_e.sub_features)||void 0===b?void 0:b.map(function(n,s){var i=m(O,!1,n.artifactId);return t.jsx(x,{artifactId:D,isUserStoryCurrentlyUpdated:B,artifactTitleId:"".concat(E,"-").concat(String.fromCharCode(65+s)),parentUserStory:k,parentIndex:"".concat(M).concat(M&&".").concat(A),currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var s=e.__spreadArray([],k.sub_features||[],!0);s[t]=n,T(e.__assign(e.__assign({},k),{sub_features:s}))}(s,t)},enableDownload:!0,isDiffEditReviewMode:P,showUserStoryDiff:R,updateUserStoryArtifact:V,handleDownloadUserStory:L,handleOpenSendDialog:H,isDisplayHighlightControl:z,elementDisplayConfig:O,_resolvedConfig:i,actionItemsConfig:Z,onDelete:function(){return function(t){var n=(k.sub_features||[]).filter(function(e,n){return n!==t}),s=e.__assign(e.__assign({},k),{sub_features:n});ge(s),T(s)}(s)}},n.artifactId)})]}))}))]}))};exports.StoryCard=x,exports.UserStoryCardWrapper=function(n){var i=n.artifactTitleIDs,o=n.isDiffEditReviewMode,l=n.showUserStoryDiff,a=n.updateUserStoryArtifact,u=n.isUserStoryCurrentlyUpdated,d=n.artifactId,c=n.handleOpenSendDialog,f=n.handleDownloadUserStory,_=n.selectedArtifactId,g=n.isDisplayHighlightControl,h=n.elementDisplayConfig,y=n.showWrapper,p=n.actionItemsConfig,S=n.contextVariant,C=n.showDisplayName,I=n.allowTitleEdit,j=n.showConfidenceScore,w=n.showBorderTop,N=v.useRequirementAI(),b=N.userStory,B=N.setUserStory,D=N.customStyles,E=N.searchQueryList,U=N.currentHighlightIndex,k=N.setCurrentHighlightIndex;N.segmentComponentConfig;var T=null==D?void 0:D.userStoryCardStyles,M=0===U,A=U===E.length-1;return t.jsxs("div",e.__assign({className:r.default.userStoryCardWrapper,style:g?e.__assign(e.__assign({},null==T?void 0:T.userStoryCardWrapper),{position:"relative"}):null==T?void 0:T.userStoryCardWrapper},{children:[g&&t.jsx(t.Fragment,{children:E.length>0&&t.jsx("div",e.__assign({className:r.default.wrapper},{children:t.jsx("div",e.__assign({className:r.default.highlightNavigation},{children:t.jsxs("div",e.__assign({className:r.default.navigationContainer},{children:[t.jsxs("span",e.__assign({className:r.default.navCounter},{children:[U+1," of ",E.length]})),t.jsxs("div",e.__assign({className:r.default.navButtons},{children:[t.jsx("button",e.__assign({onClick:function(){U>0&&k(function(e){return e-1})},className:r.default.navButton,disabled:M},{children:t.jsx(s.ChevronUpIcon,{size:20,className:r.default.navIcon})})),t.jsx("button",e.__assign({onClick:function(){U<E.length-1&&k(function(e){return e+1})},className:r.default.navButton,disabled:A},{children:t.jsx(s.ChevronDownIcon,{size:20,className:r.default.navIcon})}))]}))]}))}))}))}),b.map(function(n,s){var r=m(h,!0);return t.jsx(x,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:i[s]||"",currentUserStory:n,onUserStoryChange:function(t){B(function(n){return n[s]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:o,showUserStoryDiff:l,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:f,selectedArtifactId:_,isDisplayHighlightControl:g,elementDisplayConfig:h,_resolvedConfig:r,showWrapper:y,actionItemsConfig:p,contextVariant:S,showDisplayName:C,allowTitleEdit:I,showConfidenceScore:j,showBorderTop:w},n.artifactId)})]}))},exports.default=x,exports.replaceLearnedTagsWithInfo=p;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),i=require("showdown"),o=require("@mui/material"),l=require("uuid"),r=require("./UserStoryCard.module.css.js"),a=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),_=require("../story-screen/BigEnoughPanel.js"),g=require("./TitleEditor/TitleEditor.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=h(i);function p(n){for(var i,r=[],a=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(i=a.exec(n));){var c=i[1],f=i.index;f>u&&r.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),r.push(t.jsx(o.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(s.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(l.v4()))),u=a.lastIndex}return u<(null==n?void 0:n.length)&&r.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),r}function m(t,n,s){var i;if(!t)return{};if(n)return e.__assign({},t.parentConfig);var o=e.__assign({},t.childConfig);return s&&(null===(i=t.subFeatureOverrides)||void 0===i?void 0:i[s])?e.__assign(e.__assign({},o),t.subFeatureOverrides[s]):o}var x=function(n){var i,o=n.displayName,l=v.useRequirementAI().customStyles,a=null===(i=null==l?void 0:l.userStoryCardStyles)||void 0===i?void 0:i.showDisplayName;return t.jsxs("div",e.__assign({className:r.default.displayName,style:null==a?void 0:a.wrapper},{children:[t.jsx(s.Bookmark,{className:r.default.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),t.jsxs("span",e.__assign({style:null==a?void 0:a.label},{children:[o,":"]}))]}))},S=function(i){var h,C,I,j,w,N,b,B=i.isUserStoryCurrentlyUpdated,D=i.artifactId,E=i.artifactTitleId,U=i.parentUserStory,k=i.currentUserStory,T=i.onUserStoryChange,M=i.parentIndex,A=i.currentIndex,q=i.enableDownload,P=i.isDiffEditReviewMode,R=i.showUserStoryDiff,L=i.handleDownloadUserStory,H=i.handleOpenSendDialog,V=i.updateUserStoryArtifact,W=i.selectedArtifactId,z=i.isDisplayHighlightControl,O=i.elementDisplayConfig,F=i._resolvedConfig,G=i.showWrapper,Q=void 0!==G&&G,Z=i.defaultExpanded,J=i.actionItemsConfig,K=i.onDelete,X=i.contextVariant,Y=i.showDisplayName,$=void 0===Y||Y,ee=i.allowTitleEdit,te=void 0===ee||ee,ne=i.showConfidenceScore,se=void 0===ne||ne,ie=i.showBorderTop,oe=void 0===ie||ie,le=v.useRequirementAI(),re=le.searchQueryList,ae=le.citations,ue=le.customStyles,de=null==ue?void 0:ue.userStoryCardStyles,ce=null===(h=null==ue?void 0:ue.userStoryCardStyles)||void 0===h?void 0:h.userStoryEditStyles,fe=null===(C=null==ue?void 0:ue.userStoryScreenStyles)||void 0===C?void 0:C.userStoryContentStyles,ve=null==de?void 0:de.progressHeaderStyles,_e=n.useState(e.__assign(e.__assign({},structuredClone(k)),{value:a.formatMarkdown(k.value)||""})),ge=_e[0],he=_e[1],ye=n.useState({userStory:!!k.isDefaultEdit}),pe=ye[0],me=ye[1],xe=n.useState(!1),Se=xe[0],Ce=xe[1],Ie=n.useState(null),je=Ie[0],we=Ie[1],Ne=v.useRequirementAI(),be=Ne.userStory,Be=Ne.customIcons,De=n.useState(null!=Z?Z:""===M||W===k.artifactId||!!k.isDefaultOpen),Ee=De[0],Ue=De[1],ke=n.useState(!1);ke[0];var Te=ke[1],Me=n.useState(null),Ae=Me[0],qe=Me[1],Pe=n.useState(null),Re=Pe[0],Le=Pe[1],He=n.useState(!1),Ve=He[0],We=He[1],ze=n.useRef(null),Oe=n.useState(!1);Oe[0];var Fe=Oe[1],Ge=n.useRef(null);n.useEffect(function(){B&&Ue(B)},[B]),n.useEffect(function(){he(e.__assign(e.__assign({},structuredClone(k)),{value:a.formatMarkdown(k.value)||""}))},[k]),n.useEffect(function(){re.length>0?Ue(!0):void 0===Z&&W&&Ue(W===k.artifactId)},[re,W,k.artifactId]);var Qe=function(){qe(null)},Ze=function(){Le(null)},Je=function(){Ue(function(e){return!e})};var Ke=null!=(null==k?void 0:k.big_enough)&&!Number.isNaN(k.big_enough)&&!!(null==k?void 0:k.big_enough_decision_factors),Xe=""===M,Ye=null!=F?F:m(O,Xe),$e=!P&&!R;return n.useEffect(function(){if(je){var e=setTimeout(function(){var e=document.getElementById("story-card-".concat(je));null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return function(){return clearTimeout(e)}}},[je]),n.useEffect(function(){k.isDefaultEdit&&me(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})},[k.isDefaultEdit]),t.jsxs("div",e.__assign({className:r.default.card,style:null==de?void 0:de.cardStyle,id:"story-card-".concat(k.title),"data-expanded":Ee},{children:[t.jsxs("div",e.__assign({className:r.default.titleSection,style:null==de?void 0:de.titleSection},{children:[t.jsxs("div",e.__assign({className:r.default.titleRow,style:null==de?void 0:de.titleRow,onClick:Je},{children:[t.jsxs("div",e.__assign({className:r.default.titleLeft,style:null==de?void 0:de.titleLeft,onMouseEnter:function(){return Fe(!0)},onMouseLeave:function(){return Fe(!1)}},{children:[$&&t.jsx(x,{displayName:E}),Se&&$e?t.jsx(g.InlineTitleEditor,{title:k.title,onSave:function(t){return function(t,n){return e.__awaiter(void 0,void 0,void 0,function(){var s,i;return e.__generator(this,function(o){try{s=e.__assign({},k),k.artifactId===n?s.title=t:s.sub_features=(null===(i=k.sub_features)||void 0===i?void 0:i.map(function(s){return s.artifactId===n?e.__assign(e.__assign({},s),{title:t}):s}))||[],he(s),T(s),Ce(!1)}catch(e){console.error("Failed to save title",e)}return[2]})})}(t,k.artifactId)},onCancel:function(){Ce(!1)},inputStyle:null==ce?void 0:ce.inlineTitleInput,confirmButtonStyle:null==ce?void 0:ce.inlineTitleConfirm,cancelButtonStyle:null==ce?void 0:ce.inlineTitleCancel},"inline-title-editor"):t.jsxs("div",e.__assign({className:r.default.storyTitleWrapper},{children:[t.jsx("h2",e.__assign({title:k.title,className:r.default.storyTitle,style:null==de?void 0:de.storyTitle},{children:p(k.title)}),k.artifactId),te&&t.jsx("button",e.__assign({type:"button",className:r.default.titleEditButton,style:null==ce?void 0:ce.titleEditButton,onClick:function(e){e.stopPropagation(),Ce(!0),Ee||Ue(!0)},"aria-label":"Edit title",title:"Edit title"},{children:t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:t.jsx("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})}))}))]}))]})),t.jsxs("div",e.__assign({className:r.default.titleActions,style:null==de?void 0:de.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(Ye.showProgressPercentage||Ye.showGapBox)&&Q&&t.jsxs("div",e.__assign({className:r.default.progressHeader,style:null==ve?void 0:ve.wrapper},{children:[Ye.showProgressPercentage&&t.jsxs("div",e.__assign({className:r.default.progressPercentage,style:null==ve?void 0:ve.percentage},{children:[null!==(j=null!==(I=null==k?void 0:k.confidenceScore)&&void 0!==I?I:null==Ye?void 0:Ye.confidenceValue)&&void 0!==j?j:"0","%"]})),Ye.showGapBox&&t.jsxs("div",e.__assign({className:r.default.gapBox,style:null==ve?void 0:ve.gapBox},{children:[null!==(N=null!==(w=null==k?void 0:k.gapValue)&&void 0!==w?w:null==Ye?void 0:Ye.gapBoxValue)&&void 0!==N?N:"2"," ","Gaps"]}))]})),Ke&&t.jsx(_.BigEnoughPanel,{customIcons:null==Be?void 0:Be.userStoryIcons,customStyles:null==de?void 0:de.aiReasoningCitaionStyles,currentUserStory:k,panelStyles:null==de?void 0:de.BigEnoughStyles}),!pe.userStory&&t.jsxs(t.Fragment,{children:[!1!==(null==Ye?void 0:Ye.showShareButton)&&t.jsx("button",e.__assign({className:r.default.iconButton,style:null==de?void 0:de.iconButton,onClick:function(e){qe(e.currentTarget)}},{children:t.jsx(s.ExternalLink,{size:16})})),t.jsxs(o.Menu,e.__assign({id:"user-story-share-menu",anchorEl:Ae,open:!!Ae,onClose:function(){return qe(null)},style:null==de?void 0:de.userStoryShareMenu},{children:[q&&t.jsx(o.MenuItem,e.__assign({style:null==de?void 0:de.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return Te(!0),L?[4,Promise.all([L("pdf"),L("doc")])]:[2];case 1:return e.sent(),Te(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:ze,className:r.default.menuItemContent,style:null==de?void 0:de.menuItemContent},{children:[t.jsx(s.Download,{size:16,color:null==de?void 0:de.menuIconColor}),t.jsx("p",e.__assign({style:null==de?void 0:de.menuLabel},{children:"Download"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==de?void 0:de.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=k,U&&(t=e.__assign(e.__assign({},k),{value:"".concat(u.replaceTitleSection(null==U?void 0:U.value,k.title)," \n").concat(k.value)})),null==H||H(!0,[t],k.artifactId),Qe(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==de?void 0:de.menuItemContent,className:r.default.menuItemContentPadded},{children:[t.jsx(s.Share2,{size:16,color:null==de?void 0:de.menuIconColor}),t.jsx("p",e.__assign({style:null==de?void 0:de.menuLabel},{children:"Send"}))]}))})),t.jsx(o.MenuItem,e.__assign({style:null==de?void 0:de.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,s,i,o;return e.__generator(this,function(e){switch(e.label){case 0:t=new y.default.Converter,n=t.makeHtml(a.formatMarkdown(k.value)||k.value),s=function(e){var t=(new y.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(a.formatMarkdown(k.value)||k.value),i=new ClipboardItem({"text/plain":new Blob([s],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([i])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return o=e.sent(),console.error("Failed to copy user story:",o),[3,5];case 4:return Qe(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==de?void 0:de.menuItemContent,className:r.default.menuItemContentPadded},{children:[t.jsx(s.Copy,{size:16,color:null==de?void 0:de.menuIconColor}),t.jsx("p",e.__assign({style:null==de?void 0:de.menuLabel},{children:"Copy"}))]}))}))]}))]}),pe.userStory&&Ee?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==de?void 0:de.cancelButton,onClick:function(){var t;null===(t=Ge.current)||void 0===t||t.abort(),me(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),pe.userStory&&Ee?t.jsx(d.default,{type:"fill",children:Ve?t.jsxs("span",e.__assign({className:r.default.savingSpinner,style:null==de?void 0:de.savingSpinner},{children:[t.jsx(s.LoaderCircle,{className:r.default.spinAnimation,style:null==de?void 0:de.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:Ve,style:Ve?null==de?void 0:de.savingButton:null==de?void 0:de.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return We(!0),"userStory"==="userStory"&&(T(ge),console.log("I am changing RTE editor values",ge)),[4,V(ae,be,D,null===(t=Ge.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),T(e.__assign(e.__assign({},ge),{isDefaultEdit:!1})),me(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),We(!1),[2]}})})}}):!P&&!R&&Ee&&!1!==(null==Ye?void 0:Ye.showEditButton)&&te&&t.jsx("button",e.__assign({className:r.default.iconButton,style:null==de?void 0:de.editButton,onClick:function(){return me(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(s.PencilIcon,{color:null==de?void 0:de.pencilIconColor,size:16})})),Xe&&Ee&&!P&&!R&&!1!==(null==Ye?void 0:Ye.showEditButton)&&t.jsxs("button",e.__assign({type:"button",className:r.default.addSectionButton,style:null==ce?void 0:ce.addSectionButton,onClick:function(t){var n,s,i;t.stopPropagation();var o=(null!==(s=null===(n=k.sub_features)||void 0===n?void 0:n.length)&&void 0!==s?s:0)+1,r={artifactId:l.v4(),title:"New Section ".concat(o),value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},a=e.__assign(e.__assign({},k),{sub_features:e.__spreadArray(e.__spreadArray([],null!==(i=k.sub_features)&&void 0!==i?i:[],!0),[r],!1)});he(a),T(a),Ue(!0),we(r.title)},"aria-label":"Add section",title:"Add section"},{children:[t.jsx(s.Plus,{size:14}),t.jsx("span",e.__assign({className:r.default.addSectionLabel},{children:"Add Section"}))]})),!Xe&&!P&&!R&&t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),null==K||K()},className:r.default.iconButton,style:null==ce?void 0:ce.deleteButton,"aria-label":"Delete section",title:"Delete section"},{children:t.jsx(s.Trash2,{size:16})})),(null==Ye?void 0:Ye.actionItemsButton)&&t.jsxs(t.Fragment,{children:[t.jsx("span",e.__assign({className:r.default.actionItemBtn,style:null==de?void 0:de.actionItemBtn,onClick:function(e){e.stopPropagation(),Le(e.currentTarget)}},{children:t.jsx(s.Ellipsis,{})})),t.jsx(o.Menu,e.__assign({id:"user-story-action-menu",anchorEl:Re,open:!!Re,onClose:Ze,style:null==de?void 0:de.userStoryShareMenu},{children:null==J?void 0:J.items.map(function(n,s){return t.jsx(o.MenuItem,e.__assign({style:null==de?void 0:de.userStoryMenuItem,onClick:function(){n.onclick(k),Ze()}},{children:t.jsxs("div",e.__assign({className:r.default.menuItemContent,style:e.__assign(e.__assign({},null==de?void 0:de.menuItemContent),!n.isActive&&{cursor:"not-allowed",opacity:.5})},{children:[t.jsx("span",e.__assign({className:r.default.menuItemIcon,style:null==de?void 0:de.menuItemIcon},{children:n.icon})),t.jsx("p",e.__assign({style:null==de?void 0:de.menuLabel},{children:n.name})),t.jsx("span",{className:r.default.menuItemRight,style:null==de?void 0:de.menuItemRight})]}))}),"action-item-".concat(s,"-").concat(n.name))})}))]}),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),Je()},style:null==de?void 0:de.chevronButton,className:r.default.chevronButton},{children:Ee?t.jsx(s.ChevronUp,{className:r.default.chevronIcon,color:null==de?void 0:de.chevronIconColor}):t.jsx(s.ChevronDown,{className:r.default.chevronIcon,color:null==de?void 0:de.chevronIconColor})}))]}))]})),t.jsx("div",{className:r.default.divider,style:null==de?void 0:de.dividerStyle})]})),Ee&&t.jsx("div",e.__assign({className:r.default.cardContent,style:e.__assign(e.__assign({},null==de?void 0:de.cardContentStyle),{borderTop:oe?"1px solid #E5E5E5":"none"})},{children:t.jsxs("div",e.__assign({className:r.default.contentInner,style:null==de?void 0:de.contentInner},{children:[t.jsxs("div",e.__assign({className:r.default.descriptionSection,style:null==de?void 0:de.descriptionSection},{children:[t.jsx("div",{className:r.default.justifyBetween,style:null==de?void 0:de.justifyBetween}),pe.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:a.formatMarkdown(k.value)||"",handleUpdateState:function(t,n){var s=a.indentMarkdown(n);he(function(t){return e.__assign(e.__assign({},t),{value:s||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:pe.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:R,isParent:""===M,message:a.formatMarkdown(k.value)||"",artifactId:k.artifactId,customStyles:fe,isDisplayHighlightControl:z,contextVariant:X,showConfidenceScore:se})]})),null===(b=ge.sub_features)||void 0===b?void 0:b.map(function(n,s){var i=m(O,!1,n.artifactId);return t.jsx(S,{artifactId:D,isUserStoryCurrentlyUpdated:B,artifactTitleId:"".concat(E,"-").concat(String.fromCharCode(65+s)),parentUserStory:k,parentIndex:"".concat(M).concat(M&&".").concat(A),currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var s=e.__spreadArray([],k.sub_features||[],!0);s[t]=n,T(e.__assign(e.__assign({},k),{sub_features:s}))}(s,t)},enableDownload:!0,isDiffEditReviewMode:P,showUserStoryDiff:R,updateUserStoryArtifact:V,handleDownloadUserStory:L,handleOpenSendDialog:H,isDisplayHighlightControl:z,elementDisplayConfig:O,_resolvedConfig:i,actionItemsConfig:J,onDelete:function(){return function(t){var n=(k.sub_features||[]).filter(function(e,n){return n!==t}),s=e.__assign(e.__assign({},k),{sub_features:n});he(s),T(s)}(s)}},n.artifactId)})]}))}))]}))};exports.StoryCard=S,exports.UserStoryCardWrapper=function(n){var i=n.artifactTitleIDs,o=n.isDiffEditReviewMode,l=n.showUserStoryDiff,a=n.updateUserStoryArtifact,u=n.isUserStoryCurrentlyUpdated,d=n.artifactId,c=n.handleOpenSendDialog,f=n.handleDownloadUserStory,_=n.selectedArtifactId,g=n.isDisplayHighlightControl,h=n.elementDisplayConfig,y=n.showWrapper,p=n.actionItemsConfig,x=n.contextVariant,C=n.showDisplayName,I=n.allowTitleEdit,j=n.showConfidenceScore,w=n.showBorderTop,N=n.defaultExpanded,b=v.useRequirementAI(),B=b.userStory,D=b.setUserStory,E=b.customStyles,U=b.searchQueryList,k=b.currentHighlightIndex,T=b.setCurrentHighlightIndex;b.segmentComponentConfig;var M=null==E?void 0:E.userStoryCardStyles,A=0===k,q=k===U.length-1;return t.jsxs("div",e.__assign({className:r.default.userStoryCardWrapper,style:g?e.__assign(e.__assign({},null==M?void 0:M.userStoryCardWrapper),{position:"relative"}):null==M?void 0:M.userStoryCardWrapper},{children:[g&&t.jsx(t.Fragment,{children:U.length>0&&t.jsx("div",e.__assign({className:r.default.wrapper},{children:t.jsx("div",e.__assign({className:r.default.highlightNavigation},{children:t.jsxs("div",e.__assign({className:r.default.navigationContainer},{children:[t.jsxs("span",e.__assign({className:r.default.navCounter},{children:[k+1," of ",U.length]})),t.jsxs("div",e.__assign({className:r.default.navButtons},{children:[t.jsx("button",e.__assign({onClick:function(){k>0&&T(function(e){return e-1})},className:r.default.navButton,disabled:A},{children:t.jsx(s.ChevronUpIcon,{size:20,className:r.default.navIcon})})),t.jsx("button",e.__assign({onClick:function(){k<U.length-1&&T(function(e){return e+1})},className:r.default.navButton,disabled:q},{children:t.jsx(s.ChevronDownIcon,{size:20,className:r.default.navIcon})}))]}))]}))}))}))}),B.map(function(n,s){var r=m(h,!0);return t.jsx(S,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:i[s]||"",currentUserStory:n,onUserStoryChange:function(t){D(function(n){return n[s]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:o,showUserStoryDiff:l,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:f,selectedArtifactId:_,isDisplayHighlightControl:g,elementDisplayConfig:h,_resolvedConfig:r,showWrapper:y,defaultExpanded:N,actionItemsConfig:p,contextVariant:x,showDisplayName:C,allowTitleEdit:I,showConfidenceScore:j,showBorderTop:w},n.artifactId)})]}))},exports.default=S,exports.replaceLearnedTagsWithInfo=p;
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +1,2 @@
1
- var e={"cite-acc":"CitationComponent-module_cite-acc__2XusN","cite-acc__header":"CitationComponent-module_cite-acc__header__Ek-ou","cite-acc__headerLeft":"CitationComponent-module_cite-acc__headerLeft__K6ItR","cite-acc__titleIcon":"CitationComponent-module_cite-acc__titleIcon__ssoL-","cite-acc__title":"CitationComponent-module_cite-acc__title__3ibjn","cite-acc__headerRight":"CitationComponent-module_cite-acc__headerRight__OhMqH","cite-acc__gapBadge":"CitationComponent-module_cite-acc__gapBadge__VkuKQ","cite-acc__scoreBadge":"CitationComponent-module_cite-acc__scoreBadge__uVDRv","cite-acc__scoreIcon":"CitationComponent-module_cite-acc__scoreIcon__-MUli","cite-acc__scoreText":"CitationComponent-module_cite-acc__scoreText__42VsL","cite-acc__toggleBtn":"CitationComponent-module_cite-acc__toggleBtn__RcZmg","cite-acc__body":"CitationComponent-module_cite-acc__body__YQDAm","cite-acc__explain-body":"CitationComponent-module_cite-acc__explain-body__1v7hb","cite-acc__explain-body_border":"CitationComponent-module_cite-acc__explain-body_border__QQnDb","cite-acc__innerHeader":"CitationComponent-module_cite-acc__innerHeader__BFwFr","cite-acc__backHeader":"CitationComponent-module_cite-acc__backHeader__aFHVT","cite-acc__backBtn":"CitationComponent-module_cite-acc__backBtn__d91ol","cite-acc__backTitle":"CitationComponent-module_cite-acc__backTitle__Jwdr9","cite-acc__cognitiveSection":"CitationComponent-module_cite-acc__cognitiveSection__eVNry","cite-acc__cognitiveTitle":"CitationComponent-module_cite-acc__cognitiveTitle__LXmhU","cite-acc__innerHeaderLeft":"CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et","cite-acc__innerIcon":"CitationComponent-module_cite-acc__innerIcon__UvlXX","cite-acc__innerTitle":"CitationComponent-module_cite-acc__innerTitle__Lv8vo","cite-acc__innerSub":"CitationComponent-module_cite-acc__innerSub__XG7ad","cite-acc__innerToggle":"CitationComponent-module_cite-acc__innerToggle__3YHI5","cite-acc__innerBody":"CitationComponent-module_cite-acc__innerBody__Bzkt4","cite-text__mark":"CitationComponent-module_cite-text__mark__Xh6wV","cite-text__a":"CitationComponent-module_cite-text__a__9HVV6","cite-text__a-btn":"CitationComponent-module_cite-text__a-btn__9XyA1","cite-text__a-btn_circle":"CitationComponent-module_cite-text__a-btn_circle__SI-j3","cite-text__a-btn_chevron":"CitationComponent-module_cite-text__a-btn_chevron__DXtkI","cite-text__a-btn_open":"CitationComponent-module_cite-text__a-btn_open__2NfoX",spin:"CitationComponent-module_spin__W-F7a","cite-text__a-container":"CitationComponent-module_cite-text__a-container__G-ier","cite-text__a-container-docs":"CitationComponent-module_cite-text__a-container-docs__n8qlA","cite-text__a-container-loader":"CitationComponent-module_cite-text__a-container-loader__f0Exm","md-ol":"CitationComponent-module_md-ol__TO-dB","md-ul":"CitationComponent-module_md-ul__LfZPA","md-li":"CitationComponent-module_md-li__ZEscN","cite-acc__btn-container":"CitationComponent-module_cite-acc__btn-container__RUjvL","btn-accept":"CitationComponent-module_btn-accept__F5s10","btn-reject":"CitationComponent-module_btn-reject__ziZa-"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.CitationComponent-module_cite-acc__2XusN{background:#fff;border:1px solid #eaecf0;border-radius:12px;box-sizing:border-box;container-type:inline-size;max-height:500px;overflow:auto;width:400px}.CitationComponent-module_cite-acc__header__Ek-ou{align-items:center;border-bottom:1px solid #eaecf0;border-top:1px solid #eaecf0;display:flex;flex-wrap:nowrap;gap:12px;justify-content:space-between;min-width:0;padding:12px}.CitationComponent-module_cite-acc__headerLeft__K6ItR{align-items:center;display:flex;flex:1 1 auto;gap:4px;min-width:0;overflow:hidden}.CitationComponent-module_cite-acc__titleIcon__ssoL-{align-items:center;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__title__3ibjn{color:#101828;font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__headerRight__OhMqH{align-items:center;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:10px;min-width:0}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{background:#fef3f2;border-radius:999px;color:#b42318;font-size:12px;font-weight:500;padding:4px 10px;white-space:nowrap}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{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}.CitationComponent-module_cite-acc__scoreIcon__-MUli{display:none}.CitationComponent-module_cite-acc__scoreText__42VsL{color:var(--Primitive-Purple-600,#6938ef);font-family:Inter;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.CitationComponent-module_cite-acc__gapBadge__VkuKQ,.CitationComponent-module_cite-acc__scoreBadge__uVDRv{flex:0 1 auto;min-width:0}.CitationComponent-module_cite-acc__toggleBtn__RcZmg{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;padding:4px}.CitationComponent-module_cite-acc__toggleBtn__RcZmg i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__body__YQDAm{display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px}.CitationComponent-module_cite-acc__explain-body__1v7hb{display:flex;flex-direction:column;gap:"14px";min-width:0;padding:15px}.CitationComponent-module_cite-acc__explain-body_border__QQnDb{border-top:1px solid #eaecf0}.CitationComponent-module_cite-acc__innerHeader__BFwFr{align-items:center;background:#0000;display:flex;gap:12px;justify-content:space-between;min-width:0}.CitationComponent-module_cite-acc__backHeader__aFHVT{align-items:center;border-bottom:.5px solid #e8e7e3;display:flex;gap:8px;padding:14px 16px}.CitationComponent-module_cite-acc__backBtn__d91ol{background:none;border:none;color:#888;cursor:pointer;font-size:20px;line-height:1;padding:0}.CitationComponent-module_cite-acc__backTitle__Jwdr9{color:#1a1a1a;font-size:14px;font-weight:500}.CitationComponent-module_cite-acc__cognitiveSection__eVNry{align-items:center;border-bottom:none;border-top:1px solid #eee;cursor:pointer;display:flex;justify-content:space-between;padding-left:12px;padding-right:12px;padding-top:12px}.CitationComponent-module_cite-acc__cognitiveTitle__LXmhU{color:#101828;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et{align-items:flex-start;display:flex;flex:1 1 auto;gap:10px;min-width:0}.CitationComponent-module_cite-acc__innerIcon__UvlXX{align-items:center;background:#f4f3ff;border-radius:999px;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__innerTitle__Lv8vo{color:#101828;font-size:14px;font-weight:500;line-height:22px}.CitationComponent-module_cite-acc__innerSub__XG7ad{color:#101828;font-size:12px;line-height:18px;margin-top:2px}.CitationComponent-module_cite-acc__innerToggle__3YHI5{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}.CitationComponent-module_cite-acc__innerToggle__3YHI5 i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__innerBody__Bzkt4{border-top:none;min-width:0;overflow-wrap:anywhere;word-break:break-word}.CitationComponent-module_cite-text__mark__Xh6wV{background-color:#fef3c7;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a__9HVV6{display:inline}.CitationComponent-module_cite-text__a-btn__9XyA1{color:#7a5af8;cursor:pointer;display:inline;font-weight:500}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI,.CitationComponent-module_cite-text__a-btn_circle__SI-j3{display:inline-block;margin-left:4px;vertical-align:middle}.CitationComponent-module_cite-text__a-btn_open__2NfoX{border:1px solid #7a5af8;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a-btn_circle__SI-j3{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#7a5af8;height:16px;margin-left:auto;margin-right:auto;width:16px}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI{height:16px;width:16px}.CitationComponent-module_cite-text__a-container__G-ier{margin-bottom:8px;margin-top:8px;max-height:250px;overflow:scroll}.CitationComponent-module_cite-text__a-container-docs__n8qlA{margin-bottom:8px;margin-top:8px;max-height:620px;overflow:scroll}.CitationComponent-module_cite-text__a-container-loader__f0Exm{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#000;height:32px;margin-left:auto;margin-right:auto;width:32px}.CitationComponent-module_md-ol__TO-dB{list-style:decimal;list-style-position:outside;padding-left:20px}.CitationComponent-module_md-ul__LfZPA{list-style:disc;list-style-position:outside;margin:10px 0 12px;padding-left:20px}.CitationComponent-module_md-li__ZEscN{margin:6px 0}.CitationComponent-module_cite-acc__btn-container__RUjvL{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;.CitationComponent-module_btn-accept__F5s10{border:1px solid #8098f9;border-radius:6px;color:#444ce7;padding:7px 10.5px}.CitationComponent-module_btn-reject__ziZa-{border:1px solid #fecaca;border-radius:6px;color:#ef4444;padding:7px 10.5px}}@keyframes CitationComponent-module_spin__W-F7a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@container (max-width: 420px){.CitationComponent-module_cite-acc__scoreIcon__-MUli{align-items:center;display:inline-flex}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{gap:6px;padding:6px 8px}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{padding:4px 8px}}'));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
1
+ var e={"cite-acc":"CitationComponent-module_cite-acc__2XusN","cite-body":"CitationComponent-module_cite-body__MwotJ","cite-acc__header":"CitationComponent-module_cite-acc__header__Ek-ou","cite-acc__headerLeft":"CitationComponent-module_cite-acc__headerLeft__K6ItR","cite-acc__titleIcon":"CitationComponent-module_cite-acc__titleIcon__ssoL-","cite-acc__title":"CitationComponent-module_cite-acc__title__3ibjn","cite-acc__headerRight":"CitationComponent-module_cite-acc__headerRight__OhMqH","cite-acc__gapBadge":"CitationComponent-module_cite-acc__gapBadge__VkuKQ","cite-acc__scoreBadge":"CitationComponent-module_cite-acc__scoreBadge__uVDRv","cite-acc__scoreIcon":"CitationComponent-module_cite-acc__scoreIcon__-MUli","cite-acc__scoreText":"CitationComponent-module_cite-acc__scoreText__42VsL","cite-acc__toggleBtn":"CitationComponent-module_cite-acc__toggleBtn__RcZmg","cite-acc__body":"CitationComponent-module_cite-acc__body__YQDAm","cite-acc__explain-body":"CitationComponent-module_cite-acc__explain-body__1v7hb","cite-acc__explain-body_border":"CitationComponent-module_cite-acc__explain-body_border__QQnDb","cite-acc__innerHeader":"CitationComponent-module_cite-acc__innerHeader__BFwFr","cite-acc__backHeader":"CitationComponent-module_cite-acc__backHeader__aFHVT","cite-acc__backBtn":"CitationComponent-module_cite-acc__backBtn__d91ol","cite-acc__backTitle":"CitationComponent-module_cite-acc__backTitle__Jwdr9","cite-acc__cognitiveSection":"CitationComponent-module_cite-acc__cognitiveSection__eVNry","cite-acc__cognitiveTitle":"CitationComponent-module_cite-acc__cognitiveTitle__LXmhU","cite-acc__innerHeaderLeft":"CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et","cite-acc__innerIcon":"CitationComponent-module_cite-acc__innerIcon__UvlXX","cite-acc__innerTitle":"CitationComponent-module_cite-acc__innerTitle__Lv8vo","cite-acc__innerSub":"CitationComponent-module_cite-acc__innerSub__XG7ad","cite-acc__innerToggle":"CitationComponent-module_cite-acc__innerToggle__3YHI5","cite-acc__innerBody":"CitationComponent-module_cite-acc__innerBody__Bzkt4","cite-text__mark":"CitationComponent-module_cite-text__mark__Xh6wV","cite-text__a":"CitationComponent-module_cite-text__a__9HVV6","cite-text__a-btn":"CitationComponent-module_cite-text__a-btn__9XyA1","cite-text__a-btn_circle":"CitationComponent-module_cite-text__a-btn_circle__SI-j3","cite-text__a-btn_chevron":"CitationComponent-module_cite-text__a-btn_chevron__DXtkI","cite-text__a-btn_open":"CitationComponent-module_cite-text__a-btn_open__2NfoX",spin:"CitationComponent-module_spin__W-F7a","cite-text__a-container":"CitationComponent-module_cite-text__a-container__G-ier","cite-text__a-container-docs":"CitationComponent-module_cite-text__a-container-docs__n8qlA","cite-text__a-container-loader":"CitationComponent-module_cite-text__a-container-loader__f0Exm","md-ol":"CitationComponent-module_md-ol__TO-dB","md-ul":"CitationComponent-module_md-ul__LfZPA","md-li":"CitationComponent-module_md-li__ZEscN","cite-acc__btn-container":"CitationComponent-module_cite-acc__btn-container__RUjvL","btn-accept":"CitationComponent-module_btn-accept__F5s10","btn-reject":"CitationComponent-module_btn-reject__ziZa-"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.CitationComponent-module_cite-acc__2XusN{background:#fff;border:1px solid #eaecf0;border-radius:12px;box-sizing:border-box;container-type:inline-size;width:400px}.CitationComponent-module_cite-body__MwotJ{max-height:500px;overflow:auto;width:100%}.CitationComponent-module_cite-acc__header__Ek-ou{align-items:center;border-bottom:1px solid #eaecf0;border-top:1px solid #eaecf0;display:flex;flex-wrap:nowrap;gap:12px;justify-content:space-between;min-width:0;padding:12px}.CitationComponent-module_cite-acc__headerLeft__K6ItR{align-items:center;display:flex;flex:1 1 auto;gap:4px;min-width:0;overflow:hidden}.CitationComponent-module_cite-acc__titleIcon__ssoL-{align-items:center;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__title__3ibjn{color:#101828;font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__headerRight__OhMqH{align-items:center;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:10px;min-width:0}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{background:#fef3f2;border-radius:999px;color:#b42318;font-size:12px;font-weight:500;padding:4px 10px;white-space:nowrap}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{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}.CitationComponent-module_cite-acc__scoreIcon__-MUli{display:none}.CitationComponent-module_cite-acc__scoreText__42VsL{color:var(--Primitive-Purple-600,#6938ef);font-family:Inter;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.CitationComponent-module_cite-acc__gapBadge__VkuKQ,.CitationComponent-module_cite-acc__scoreBadge__uVDRv{flex:0 1 auto;min-width:0}.CitationComponent-module_cite-acc__toggleBtn__RcZmg{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;padding:4px}.CitationComponent-module_cite-acc__toggleBtn__RcZmg i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__body__YQDAm{display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px}.CitationComponent-module_cite-acc__explain-body__1v7hb{display:flex;flex-direction:column;gap:"14px";min-width:0;padding:15px}.CitationComponent-module_cite-acc__explain-body_border__QQnDb{border-top:1px solid #eaecf0}.CitationComponent-module_cite-acc__innerHeader__BFwFr{align-items:center;background:#0000;display:flex;gap:12px;justify-content:space-between;min-width:0}.CitationComponent-module_cite-acc__backHeader__aFHVT{align-items:center;border-bottom:.5px solid #e8e7e3;display:flex;gap:8px;padding:14px 16px}.CitationComponent-module_cite-acc__backBtn__d91ol{background:none;border:none;color:#888;cursor:pointer;font-size:20px;line-height:1;padding:0}.CitationComponent-module_cite-acc__backTitle__Jwdr9{color:#1a1a1a;font-size:14px;font-weight:500}.CitationComponent-module_cite-acc__cognitiveSection__eVNry{align-items:center;border-bottom:none;border-top:1px solid #eee;cursor:pointer;display:flex;justify-content:space-between;padding-left:12px;padding-right:12px;padding-top:12px}.CitationComponent-module_cite-acc__cognitiveTitle__LXmhU{color:#101828;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et{align-items:flex-start;display:flex;flex:1 1 auto;gap:10px;min-width:0}.CitationComponent-module_cite-acc__innerIcon__UvlXX{align-items:center;background:#f4f3ff;border-radius:999px;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__innerTitle__Lv8vo{color:#101828;font-size:14px;font-weight:500;line-height:22px}.CitationComponent-module_cite-acc__innerSub__XG7ad{color:#101828;font-size:12px;line-height:18px;margin-top:2px}.CitationComponent-module_cite-acc__innerToggle__3YHI5{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}.CitationComponent-module_cite-acc__innerToggle__3YHI5 i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__innerBody__Bzkt4{border-top:none;min-width:0;overflow-wrap:anywhere;word-break:break-word}.CitationComponent-module_cite-text__mark__Xh6wV{background-color:#fef3c7;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a__9HVV6{display:inline}.CitationComponent-module_cite-text__a-btn__9XyA1{color:#7a5af8;cursor:pointer;display:inline;font-weight:500}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI,.CitationComponent-module_cite-text__a-btn_circle__SI-j3{display:inline-block;margin-left:4px;vertical-align:middle}.CitationComponent-module_cite-text__a-btn_open__2NfoX{border:1px solid #7a5af8;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a-btn_circle__SI-j3{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#7a5af8;height:16px;margin-left:auto;margin-right:auto;width:16px}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI{height:16px;width:16px}.CitationComponent-module_cite-text__a-container__G-ier{margin-bottom:8px;margin-top:8px;max-height:250px;overflow:scroll}.CitationComponent-module_cite-text__a-container-docs__n8qlA{margin-bottom:8px;margin-top:8px;max-height:620px;overflow:scroll}.CitationComponent-module_cite-text__a-container-loader__f0Exm{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#000;height:32px;margin-left:auto;margin-right:auto;width:32px}.CitationComponent-module_md-ol__TO-dB{list-style:decimal;list-style-position:outside;padding-left:20px}.CitationComponent-module_md-ul__LfZPA{list-style:disc;list-style-position:outside;margin:10px 0 12px;padding-left:20px}.CitationComponent-module_md-li__ZEscN{margin:6px 0}.CitationComponent-module_cite-acc__btn-container__RUjvL{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;.CitationComponent-module_btn-accept__F5s10{border:1px solid #8098f9;border-radius:6px;color:#444ce7;padding:7px 10.5px}.CitationComponent-module_btn-reject__ziZa-{border:1px solid #fecaca;border-radius:6px;color:#ef4444;padding:7px 10.5px}}@keyframes CitationComponent-module_spin__W-F7a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@container (max-width: 420px){.CitationComponent-module_cite-acc__scoreIcon__-MUli{align-items:center;display:inline-flex}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{gap:6px;padding:6px 8px}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{padding:4px 8px}}'));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=CitationComponent.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as c,jsx as i,Fragment as a}from"react/jsx-runtime";import n,{useMemo as t}from"react";import r from"../Popups/PopupDefaults.js";import o from"react-markdown";import l from"rehype-raw";import d from"./CitationComponent.module.css.js";import{ChevronUp as s}from"lucide-react";import{ReactComponent as m}from"../icons/cognitiveBrain.svg.js";import{ReactComponent as v}from"../icons/aiMagic.svg.js";import _ from"./CitationAnchor.js";var p=function(c){var a=c.text,n=c.item;return i(o,e({rehypePlugins:[l],components:{ol:function(c){var a=c.children;return i("ol",e({className:d["md-ol"]},{children:a}))},ul:function(c){var a=c.children;return i("ul",e({className:d["md-ul"]},{children:a}))},li:function(c){var a=c.children;return i("li",e({className:d["md-li"]},{children:a}))},a:function(e){e.node;var c=e.href,a=e.children;return i(_,{href:c,children:a,metaData:{citations:n.citations,docData:n.docData}})}}},{children:a.replace(/<br\s*\/?>/gi,"\n")}))};function h(o){var l=o.item,_=o.title,h=void 0===_?"Cognitive Decisioning AI":_,u=o.relevanceScore,N=void 0===u?0:u,f=o.showRelevanceScore,b=void 0===f||f,y=o.reason,x=void 0===y?"No reasoning provided.":y,g=o.impact,C=void 0===g?"No Impact provided.":g,k=o.explaination,B=void 0===k?"No explaination provided.":k,H=o.gap,j=void 0===H?"None":H,D=o.onClose,A=void 0===D?function(){}:D,T=o.onAccept,I=o.onReject,L=o.showResolveBtns,w=void 0!==L&&L,R=o.sections,P=o.leftIcon,M=o.scoreIcon,S=o.className,E=o.customStyles,G=void 0===E?{}:E,F=o.actions,q=o.disableAllActions,z=void 0!==q&&q,J=o.actionBtnDisabledStyle,K=void 0===J?{}:J,O=o.onBackClick,Q=o.isImpactNeeded,U=void 0===Q||Q,V=o.cognitiveTitle,W=void 0===V?"Cognitive Integrity":V,X=o.labels,Y=void 0===X?{}:X,Z=t(function(){var e=Number(N);return Number.isNaN(e)?0:Math.max(0,Math.min(100,Math.round(e)))},[N]),$=t(function(){var e=Y&&Y.noGapsText||"1. No gaps identified.";return function(e){if(!e)return!0;var c=e.trim().toLowerCase();return"none"===c||"no gap"===c||"no gaps"===c||"n/a"===c}(j)?e:j},[j]),ee=Y&&Y.impact||"Impact",ce=Y&&Y.explanation||"Explaination",ie=Y&&Y.decisionFactors||"Decision Making Factors",ae=Y&&Y.gaps||"Gaps in Decision",ne=Y&&Y.accept||"Accept",te=Y&&Y.reject||"Reject",re=Y&&Y.backAriaLabel||"Go back",oe=F||[{id:"reject",label:te,onClick:I,className:d["btn-reject"]},{id:"accept",label:ne,onClick:T,className:d["btn-accept"]}];return c("div",e({className:"".concat(d["cite-acc"]," ").concat(S||""),style:e(e({},r.CitationAccordionDefaults.container),null==G?void 0:G.container)},{children:[O&&c("div",e({className:d["cite-acc__backHeader"]},{children:[i("button",e({type:"button",className:d["cite-acc__backBtn"],onClick:function(e){e.stopPropagation(),O&&O()},"aria-label":re},{children:"‹"})),i("span",e({className:d["cite-acc__backTitle"]},{children:W}))]})),R&&R.length>0?R.map(function(a){return!1===a.show?null:c("div",e({className:"".concat(d["cite-acc__explain-body"]," ").concat(a.bodyClassName||"")},{children:[c("div",e({className:d["cite-acc__innerHeader"],style:e(e({},r.CitationAccordionDefaults.innerHeader),null==G?void 0:G.innerHeader)},{children:[i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:a.title}))})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),A&&A()}},{children:i(s,{})}))]})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600"),style:e(e({},r.CitationAccordionDefaults.innerBody),null==G?void 0:G.innerBody)},{children:"string"==typeof a.content?i(p,{text:a.content,item:a.item||l||{}}):a.content}))]}),a.id||a.title)}):c(a,{children:[U&&c("div",e({className:d["cite-acc__explain-body"]},{children:[c("div",e({className:d["cite-acc__innerHeader"]},{children:[i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:ee}))})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),A&&A()}},{children:i(s,{})}))]})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600")},{children:i(p,{text:C||"",item:l||{}})}))]})),c("div",e({className:d["cite-acc__explain-body"]},{children:[i("div",e({className:d["cite-acc__innerHeader"]},{children:i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:ce}))})}))})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600")},{children:i(p,{text:B||"",item:{}})}))]})),w&&i("div",e({className:d["cite-acc__btn-container"]},{children:oe.map(function(c){var a=z||c.disabled;return i("button",e({className:c.className,onClick:a?void 0:c.onClick,disabled:a,style:e(e({},c.style),a?e(e({opacity:.5,cursor:"not-allowed"},K),c.disabledStyle):{})},{children:c.label}),c.id)})})),c("div",e({className:d["cite-acc__header"]},{children:[c("div",e({className:d["cite-acc__headerLeft"]},{children:[i("span",e({className:d["cite-acc__titleIcon"]},{children:P?"function"==typeof P?n.createElement(P):P:i(m,{})})),i("div",e({className:d["cite-acc__title"]},{children:h}))]})),i("div",e({className:d["cite-acc__headerRight"]},{children:b&&c("span",e({className:d["cite-acc__scoreBadge"]},{children:[M?"function"==typeof M?n.createElement(M):M:i(v,{}),c("span",e({className:d["cite-acc__scoreText"]},{children:[Z,"%"]}))]}))}))]})),c("div",e({className:d["cite-acc__explain-body"]},{children:[i("div",e({className:d["cite-acc__innerHeader"]},{children:i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:ie}))})}))})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600")},{children:i(p,{text:x||"",item:l||{}})}))]})),c("div",e({className:"".concat(d["cite-acc__explain-body"]," ").concat(d["cite-acc__explain-body_border"])},{children:[i("div",e({className:d["cite-acc__innerHeader"]},{children:i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:ae}))})}))})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600")},{children:i(p,{text:$||"",item:l||{}})}))]}))]})]}))}export{h as default};
1
+ import{__assign as e}from"tslib";import{jsxs as c,jsx as i,Fragment as a}from"react/jsx-runtime";import n,{useMemo as t}from"react";import r from"../Popups/PopupDefaults.js";import o from"react-markdown";import l from"rehype-raw";import d from"./CitationComponent.module.css.js";import{ChevronUp as s}from"lucide-react";import{ReactComponent as m}from"../icons/cognitiveBrain.svg.js";import{ReactComponent as v}from"../icons/aiMagic.svg.js";import _ from"./CitationAnchor.js";var h=function(c){var a=c.text,n=c.item;return i(o,e({rehypePlugins:[l],components:{ol:function(c){var a=c.children;return i("ol",e({className:d["md-ol"]},{children:a}))},ul:function(c){var a=c.children;return i("ul",e({className:d["md-ul"]},{children:a}))},li:function(c){var a=c.children;return i("li",e({className:d["md-li"]},{children:a}))},a:function(e){e.node;var c=e.href,a=e.children;return i(_,{href:c,children:a,metaData:{citations:n.citations,docData:n.docData}})}}},{children:a.replace(/<br\s*\/?>/gi,"\n")}))};function p(o){var l=o.item,_=o.title,p=void 0===_?"Cognitive Decisioning AI":_,u=o.relevanceScore,N=void 0===u?0:u,f=o.showRelevanceScore,b=void 0===f||f,y=o.reason,x=void 0===y?"No reasoning provided.":y,g=o.impact,C=void 0===g?"No Impact provided.":g,k=o.explaination,B=void 0===k?"No explaination provided.":k,H=o.gap,j=void 0===H?"None":H,D=o.onClose,A=void 0===D?function(){}:D,T=o.onAccept,I=o.onReject,L=o.showResolveBtns,w=void 0!==L&&L,R=o.sections,P=o.leftIcon,M=o.scoreIcon,S=o.className,E=o.customStyles,G=void 0===E?{}:E,F=o.actions,q=o.disableAllActions,z=void 0!==q&&q,J=o.actionBtnDisabledStyle,K=void 0===J?{}:J,O=o.onBackClick,Q=o.isImpactNeeded,U=void 0===Q||Q,V=o.cognitiveTitle,W=void 0===V?"Cognitive Integrity":V,X=o.labels,Y=void 0===X?{}:X,Z=t(function(){var e=Number(N);return Number.isNaN(e)?0:Math.max(0,Math.min(100,Math.round(e)))},[N]),$=t(function(){var e=Y&&Y.noGapsText||"1. No gaps identified.";return function(e){if(!e)return!0;var c=e.trim().toLowerCase();return"none"===c||"no gap"===c||"no gaps"===c||"n/a"===c}(j)?e:j},[j]),ee=Y&&Y.impact||"Impact",ce=Y&&Y.explanation||"Explaination",ie=Y&&Y.decisionFactors||"Decision Making Factors",ae=Y&&Y.gaps||"Gaps in Decision",ne=Y&&Y.accept||"Accept",te=Y&&Y.reject||"Reject",re=Y&&Y.backAriaLabel||"Go back",oe=F||[{id:"reject",label:te,onClick:I,className:d["btn-reject"]},{id:"accept",label:ne,onClick:T,className:d["btn-accept"]}];return c("div",e({className:"".concat(d["cite-acc"]," ").concat(S||""),style:e(e({},r.CitationAccordionDefaults.container),null==G?void 0:G.container)},{children:[O&&c("div",e({className:d["cite-acc__backHeader"]},{children:[i("button",e({type:"button",className:d["cite-acc__backBtn"],onClick:function(e){e.stopPropagation(),O&&O()},"aria-label":re},{children:"‹"})),i("span",e({className:d["cite-acc__backTitle"]},{children:W}))]})),i("div",e({className:d["cite-body"]},{children:R&&R.length>0?R.map(function(a){return!1===a.show?null:c("div",e({className:"".concat(d["cite-acc__explain-body"]," ").concat(a.bodyClassName||"")},{children:[c("div",e({className:d["cite-acc__innerHeader"],style:e(e({},r.CitationAccordionDefaults.innerHeader),null==G?void 0:G.innerHeader)},{children:[i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:a.title}))})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),A&&A()}},{children:i(s,{})}))]})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600"),style:e(e({},r.CitationAccordionDefaults.innerBody),null==G?void 0:G.innerBody)},{children:"string"==typeof a.content?i(h,{text:a.content,item:a.item||l||{}}):a.content}))]}),a.id||a.title)}):c(a,{children:[U&&c("div",e({className:d["cite-acc__explain-body"]},{children:[c("div",e({className:d["cite-acc__innerHeader"]},{children:[i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:ee}))})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),A&&A()}},{children:i(s,{})}))]})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600")},{children:i(h,{text:C||"",item:l||{}})}))]})),c("div",e({className:d["cite-acc__explain-body"]},{children:[i("div",e({className:d["cite-acc__innerHeader"]},{children:i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:ce}))})}))})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600")},{children:i(h,{text:B||"",item:{}})}))]})),w&&i("div",e({className:d["cite-acc__btn-container"]},{children:oe.map(function(c){var a=z||c.disabled;return i("button",e({className:c.className,onClick:a?void 0:c.onClick,disabled:a,style:e(e({},c.style),a?e(e({opacity:.5,cursor:"not-allowed"},K),c.disabledStyle):{})},{children:c.label}),c.id)})})),c("div",e({className:d["cite-acc__header"]},{children:[c("div",e({className:d["cite-acc__headerLeft"]},{children:[i("span",e({className:d["cite-acc__titleIcon"]},{children:P?"function"==typeof P?n.createElement(P):P:i(m,{})})),i("div",e({className:d["cite-acc__title"]},{children:p}))]})),i("div",e({className:d["cite-acc__headerRight"]},{children:b&&c("span",e({className:d["cite-acc__scoreBadge"]},{children:[M?"function"==typeof M?n.createElement(M):M:i(v,{}),c("span",e({className:d["cite-acc__scoreText"]},{children:[Z,"%"]}))]}))}))]})),c("div",e({className:d["cite-acc__explain-body"]},{children:[i("div",e({className:d["cite-acc__innerHeader"]},{children:i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:ie}))})}))})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600")},{children:i(h,{text:x||"",item:l||{}})}))]})),c("div",e({className:"".concat(d["cite-acc__explain-body"]," ").concat(d["cite-acc__explain-body_border"])},{children:[i("div",e({className:d["cite-acc__innerHeader"]},{children:i("div",e({className:d["cite-acc__innerHeaderLeft"]},{children:i("div",{children:i("div",e({className:d["cite-acc__innerTitle"]},{children:ae}))})}))})),i("div",e({className:"".concat(d["cite-acc__innerBody"]," text-sm text-gray-600")},{children:i(h,{text:$||"",item:l||{}})}))]}))]})}))]}))}export{p as default};
2
2
  //# sourceMappingURL=CognitiveComponent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as i,jsxs as o,Fragment as n}from"react/jsx-runtime";import{PenLine as t,CheckCircle as l,XCircle as r,Info as d,ChevronDown as a,ChevronRight as s}from"lucide-react";import{useState as c}from"react";import{ToneToggle as p}from"./ToneToggle.js";import"../CognitiveComponents/CitationComponent.module.css.js";import{ReactComponent as v}from"../icons/cognitiveBrain.svg.js";import{ReactComponent as u}from"../icons/aiMagic.svg.js";var g=[{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"}],m=function(n){var t=n.toneIndex,l=n.configs,r=void 0===l?g: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),u=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:u,stroke:a,strokeWidth:"2",strokeLinecap:"round"})]}))},y=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}))},f=["Lenient","Balanced","Aggressive"],h={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},x={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"400px",overflow:"auto"},S={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},b={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},C={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111"},B={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px"},I={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},k={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},A={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},D={display:"flex",gap:8,marginBottom:18},T={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:12,fontWeight:500,padding:"7px 4px",borderRadius:8,border:"0.5px solid #ccc",background:"#fff",cursor:"pointer"},w={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},z={borderTop:"0.5px solid #eee",paddingTop:14},R={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},W={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},E={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},j={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},L={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},M={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},F={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},H={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"};function N(N){var _,P,O,G,q,J,K,Q,U,V,X,Y,Z,$,ee,ie,oe=N.onClose,ne=N.aiReason,te=N.onAccept,le=N.onReject,re=N.onIterate,de=N.initialTone,ae=N.onRegenerate,se=N.labels,ce=void 0===se?{}:se,pe=N.toneLevelsConfig,ve=void 0===pe?f:pe,ue=N.toneColorsConfig,ge=void 0===ue?h:ue,me=N.dialConfigs,ye=void 0===me?g:me,fe=N.actions,he=N.disableAllActions,xe=void 0!==he&&he,Se=N.customStyles,be=void 0===Se?{}:Se,Ce=N.severityChipStyles,Be=void 0===Ce?{}:Ce,Ie=N.customIcons,ke=void 0===Ie?{}:Ie,Ae=N.onOpenCognitive,De=N.showTone,Te=void 0===De||De,we=N.cognitiveSectionStyle,ze=void 0===we?{}:we,Re=N.cognitiveScoreBadgeStyle,We=void 0===Re?{}:Re,Ee=N.cognitiveScoreTextStyle,je=void 0===Ee?{}:Ee,Le=N.cognitiveStyles,Me=void 0===Le?{}:Le,Fe=N.cognitiveClassNames,He=void 0===Fe?{}:Fe,Ne=N.cognitiveTitle,_e=void 0===Ne?"Cognitive Integrity":Ne,Pe=N.cognitiveLeftIcon,Oe=N.showCognitiveRightArrow,Ge=void 0===Oe||Oe,qe=N.isStreaming,Je=ve.findIndex(function(e){return e===de});-1===Je&&(Je=1);var Ke=c(!0),Qe=Ke[0],Ue=Ke[1],Ve=c(!1),Xe=Ve[0],Ye=Ve[1],Ze=c(Je),$e=Ze[0],ei=Ze[1],ii=c(Je)[0],oi=ve[$e],ni=ge[oi]||"#BA7517",ti=$e!==ii,li=[{id:"iterate",icon:ke.iterateIcon||i(t,{size:16,color:"#64748B"}),label:ce.btnIterate||"Iterate",color:"#64748B",onClick:re},{id:"accept",icon:ke.acceptIcon||i(l,{size:16,color:"#10B981"}),label:ce.btnAccept||"Approve",color:"#10B981",onClick:te},{id:"reject",icon:ke.rejectIcon||i(r,{size:16,color:"#DC2626"}),label:ce.btnReject||"Reject",color:"#DC2626",onClick:le}],ri=fe||li;return o("div",e({onClick:function(e){return e.stopPropagation()},style:e(e({},x),null===(_=null==be?void 0:be.DeviationSummaryStyles)||void 0===_?void 0:_.root)},{children:[o("div",e({style:e(e({},S),null===(P=null==be?void 0:be.DeviationSummaryStyles)||void 0===P?void 0:P.header)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:6}},{children:[i("span",{children:ke.summaryIcon||i(d,{size:16,color:"#E24B4A"})}),i("span",e({style:e(e({},b),null===(O=null==be?void 0:be.DeviationSummaryStyles)||void 0===O?void 0:O.title)},{children:ce.summaryHeader||"Summary"}))]})),i("button",e({onClick:oe,style:e(e({},w),null===(G=null==be?void 0:be.DeviationSummaryStyles)||void 0===G?void 0:G.closeBtn)},{children:"✕"}))]})),i("p",e({style:e(e({},C),null===(q=null==be?void 0:be.DeviationSummaryStyles)||void 0===q?void 0:q.bodyText)},{children:null===(J=null==ne?void 0:ne.deviation_details)||void 0===J?void 0:J.deviation_title})),i("p",e({style:e(e({},B),null===(K=null==be?void 0:be.DeviationSummaryStyles)||void 0===K?void 0:K.summary)},{children:null===(Q=null==ne?void 0:ne.deviation_details)||void 0===Q?void 0:Q.deviation_summary})),o("div",e({style:e(e({},I),null===(U=null==be?void 0:be.DeviationSummaryStyles)||void 0===U?void 0:U.impactContainer)},{children:[o("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[o("button",e({onClick:function(){return Ue(!Qe)},style:e(e({},k),null===(V=null==be?void 0:be.DeviationSummaryStyles)||void 0===V?void 0:V.impactToggle)},{children:[i("span",e({style:e(e({},A),null===(X=null==be?void 0:be.DeviationSummaryStyles)||void 0===X?void 0:X.impactToggleLabel)},{children:ce.impactHeader||"Impact"})),i("span",e({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Qe?"rotate(180deg)":"rotate(0deg)"}},{children:i(a,{size:16,color:"#E24B4A"})}))]})),i(y,{type:(null==ne?void 0:ne.severity)||"Medium",customStyles:Be})]})),Qe&&i("p",e({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0"}},{children:null!==(Z=null===(Y=null==ne?void 0:ne.deviation_details)||void 0===Y?void 0:Y.deviation_impact)&&void 0!==Z?Z:ce.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),i("div",e({style:e(e({},D),null===($=null==be?void 0:be.DeviationSummaryStyles)||void 0===$?void 0:$.actionContainer)},{children:ri.map(function(i){var n,t,l=xe||i.disabled,r=l?e(e({cursor:"not-allowed",opacity:.5},null===(n=null==be?void 0:be.DeviationSummaryStyles)||void 0===n?void 0:n.actionBtnDisabled),i.disabledStyle):{};return o("button",e({style:e(e(e(e(e({},T),null===(t=null==be?void 0:be.DeviationSummaryStyles)||void 0===t?void 0:t.actionBtn),{color:i.color}),i.style),r),onClick:l?void 0:i.onClick,disabled:l},{children:[i.icon,i.label]}),i.id)})})),Te&&o("div",e({style:e(e({},z),null===(ee=null==be?void 0:be.DeviationSummaryStyles)||void 0===ee?void 0:ee.toneContainer)},{children:[o("button",e({onClick:function(){return Ye(!Xe)},style:e(e({},R),null===(ie=null==be?void 0:be.DeviationSummaryStyles)||void 0===ie?void 0:ie.toneToggleBtn)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:8}},{children:[i(m,{toneIndex:$e,configs:ye}),i("span",e({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:ce.toneHeader||"Redline Tone"}))]})),i("span",e({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Xe?"rotate(180deg)":"rotate(0deg)"}},{children:i(a,{size:16,color:"#111"})}))]})),Xe&&o(n,{children:[i("p",e({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:ce.toneDescription||"Controls how assertively AI is redlining"})),i(p,{isDirty:ti,onToneChange:function(e){ei(e)},toneColor:ni,toneIndex:$e,onClickRegenerate:function(){return null==ae?void 0:ae(oi)},toneLabels:ve,isStreaming:qe,aiReason:ne})]})]})),Ae&&o("div",e({className:null==He?void 0:He.section,onClick:function(e){e.stopPropagation(),Ae&&Ae(e)},style:e(e(e({},W),null==Me?void 0:Me.section),ze)},{children:[o("div",e({className:null==He?void 0:He.headerLeft,style:e(e({},E),null==Me?void 0:Me.headerLeft)},{children:[i("span",e({className:null==He?void 0:He.titleIcon,style:e(e({},j),null==Me?void 0:Me.titleIcon)},{children:null!=Pe?Pe:i(v,{})})),i("div",e({className:null==He?void 0:He.cognitiveTitle,style:e(e({},L),null==Me?void 0:Me.cognitiveTitle)},{children:_e}))]})),o("div",e({className:null==He?void 0:He.headerRight,style:e(e({},M),null==Me?void 0:Me.headerRight)},{children:[void 0!==(null==ne?void 0:ne.relevance_score)&&null!==(null==ne?void 0:ne.relevance_score)?o("span",e({className:null==He?void 0:He.scoreBadge,style:e(e(e({},F),null==Me?void 0:Me.scoreBadge),We)},{children:[i(u,{}),o("span",e({className:null==He?void 0:He.scoreText,style:e(e(e({},H),null==Me?void 0:Me.scoreText),je)},{children:[Math.round(Number(ne.relevance_score)),"%"]}))]})):null,Ge&&i("span",e({style:{display:"flex",alignItems:"center"}},{children:i(s,{size:16,color:"#64748B"})}))]}))]}))]}))}export{N as default};
1
+ import{__assign as e}from"tslib";import{jsx as i,jsxs as o,Fragment as n}from"react/jsx-runtime";import{PenLine as t,CheckCircle as l,XCircle as r,Info as d,ChevronDown as a,ChevronRight as s}from"lucide-react";import{useState as c}from"react";import{ToneToggle as v}from"./ToneToggle.js";import"../CognitiveComponents/CitationComponent.module.css.js";import{ReactComponent as p}from"../icons/cognitiveBrain.svg.js";import{ReactComponent as u}from"../icons/aiMagic.svg.js";import{Tooltip as m}from"@mui/material";var g=[{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"}],y=function(n){var t=n.toneIndex,l=n.configs,r=void 0===l?g:l,d=r[Math.min(t,r.length-1)]||r[1]||r[0],a=d.color,s=d.angle,c=d.arcD,v=(s-90)*Math.PI/180,p=11+9*Math.cos(v),u=13+9*Math.sin(v);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:p,y2:u,stroke:a,strokeWidth:"2",strokeLinecap:"round"})]}))},f=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}))},h=["Lenient","Balanced","Aggressive"],x={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},S={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px"},b={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},C={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},B={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},I={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px",maxHeight:"100px",overflow:"auto"},k={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},A={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},w={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},D={display:"flex",gap:8,marginBottom:18},T={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"},z={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},R={borderTop:"0.5px solid #eee",padding:"14px 0px"},W={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},E={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},j={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},L={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},M={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},F={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},_={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},H={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"};function N(N){var P,O,G,q,J,K,Q,U,V,X,Y,Z,$,ee,ie,oe,ne,te=N.onClose,le=N.aiReason,re=N.onAccept,de=N.onReject,ae=N.onIterate,se=N.initialTone,ce=N.onRegenerate,ve=N.labels,pe=void 0===ve?{}:ve,ue=N.toneLevelsConfig,me=void 0===ue?h:ue,ge=N.toneColorsConfig,ye=void 0===ge?x:ge,fe=N.dialConfigs,he=void 0===fe?g:fe,xe=N.actions,Se=N.disableAllActions,be=void 0!==Se&&Se,Ce=N.customStyles,Be=void 0===Ce?{}:Ce,Ie=N.severityChipStyles,ke=void 0===Ie?{}:Ie,Ae=N.customIcons,we=void 0===Ae?{}:Ae,De=N.onOpenCognitive,Te=N.showTone,ze=void 0===Te||Te,Re=N.cognitiveSectionStyle,We=void 0===Re?{}:Re,Ee=N.cognitiveScoreBadgeStyle,je=void 0===Ee?{}:Ee,Le=N.cognitiveScoreTextStyle,Me=void 0===Le?{}:Le,Fe=N.cognitiveStyles,_e=void 0===Fe?{}:Fe,He=N.cognitiveClassNames,Ne=void 0===He?{}:He,Pe=N.cognitiveTitle,Oe=void 0===Pe?"Cognitive Integrity":Pe,Ge=N.cognitiveLeftIcon,qe=N.showCognitiveRightArrow,Je=void 0===qe||qe,Ke=N.isStreaming,Qe=me.findIndex(function(e){return e===se});-1===Qe&&(Qe=1);var Ue=c(!0),Ve=Ue[0],Xe=Ue[1],Ye=c(!1),Ze=Ye[0],$e=Ye[1],ei=c(Qe),ii=ei[0],oi=ei[1],ni=c(Qe)[0],ti=me[ii],li=ye[ti]||"#BA7517",ri=ii!==ni,di=[{id:"iterate",icon:we.iterateIcon||i(t,{size:16,color:"#64748B"}),label:pe.btnIterate||"Iterate",color:"#64748B",onClick:ae},{id:"accept",icon:we.acceptIcon||i(l,{size:16,color:"#10B981"}),label:pe.btnAccept||"Approve",color:"#10B981",onClick:re},{id:"reject",icon:we.rejectIcon||i(r,{size:16,color:"#DC2626"}),label:pe.btnReject||"Reject",color:"#DC2626",onClick:de}],ai=xe||di;return o("div",e({onClick:function(e){return e.stopPropagation()},style:e(e({},S),null===(P=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===P?void 0:P.root)},{children:[o("div",e({style:e(e({},b),null===(O=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===O?void 0:O.header)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:6}},{children:[i("span",{children:we.summaryIcon||i(d,{size:16,color:"#E24B4A"})}),i("span",e({style:e(e({},C),null===(G=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===G?void 0:G.title)},{children:pe.summaryHeader||"Summary"}))]})),i("button",e({onClick:te,style:e(e({},z),null===(q=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===q?void 0:q.closeBtn)},{children:"✕"}))]})),i(m,e({title:null===(J=null==le?void 0:le.deviation_details)||void 0===J?void 0:J.deviation_title},{children:i("p",e({style:e(e({},B),null===(K=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===K?void 0:K.bodyText)},{children:null===(Q=null==le?void 0:le.deviation_details)||void 0===Q?void 0:Q.deviation_title}))})),i("p",e({style:e(e({},I),null===(U=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===U?void 0:U.summary)},{children:null===(V=null==le?void 0:le.deviation_details)||void 0===V?void 0:V.deviation_summary})),o("div",e({style:e(e({},k),null===(X=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===X?void 0:X.impactContainer)},{children:[o("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[o("button",e({onClick:function(){return Xe(!Ve)},style:e(e({},A),null===(Y=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===Y?void 0:Y.impactToggle)},{children:[i("span",e({style:e(e({},w),null===(Z=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===Z?void 0:Z.impactToggleLabel)},{children:pe.impactHeader||"Impact"})),i("span",e({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Ve?"rotate(180deg)":"rotate(0deg)"}},{children:i(a,{size:16,color:"#E24B4A"})}))]})),i(f,{type:(null==le?void 0:le.severity)||"Medium",customStyles:ke})]})),Ve&&i("p",e({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0",maxHeight:"100px",overflow:"auto"}},{children:null!==(ee=null===($=null==le?void 0:le.deviation_details)||void 0===$?void 0:$.deviation_impact)&&void 0!==ee?ee:pe.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),i("div",e({style:e(e({},D),null===(ie=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===ie?void 0:ie.actionContainer)},{children:ai.map(function(i){var n,t,l=be||i.disabled,r=l?e(e({cursor:"not-allowed",opacity:.5},null===(n=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===n?void 0:n.actionBtnDisabled),i.disabledStyle):{};return o("button",e({style:e(e(e(e(e({},T),null===(t=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===t?void 0:t.actionBtn),{color:i.color}),i.style),r),onClick:l?void 0:i.onClick,disabled:l},{children:[i.icon,i.label]}),i.id)})})),ze&&o("div",e({style:e(e({},R),null===(oe=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===oe?void 0:oe.toneContainer)},{children:[o("button",e({onClick:function(){return $e(!Ze)},style:e(e({},W),null===(ne=null==Be?void 0:Be.DeviationSummaryStyles)||void 0===ne?void 0:ne.toneToggleBtn)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:8}},{children:[i(y,{toneIndex:ii,configs:he}),i("span",e({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:pe.toneHeader||"Redline Tone"}))]})),i("span",e({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Ze?"rotate(180deg)":"rotate(0deg)"}},{children:i(a,{size:16,color:"#111"})}))]})),Ze&&o(n,{children:[i("p",e({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:pe.toneDescription||"Controls how assertively AI is redlining"})),i(v,{isDirty:ri,onToneChange:function(e){oi(e)},toneColor:li,toneIndex:ii,onClickRegenerate:function(){return null==ce?void 0:ce(ti)},toneLabels:me,isStreaming:Ke,aiReason:le})]})]})),De&&o("div",e({className:null==Ne?void 0:Ne.section,onClick:function(e){e.stopPropagation(),De&&De(e)},style:e(e(e({},E),null==_e?void 0:_e.section),We)},{children:[o("div",e({className:null==Ne?void 0:Ne.headerLeft,style:e(e({},j),null==_e?void 0:_e.headerLeft)},{children:[i("span",e({className:null==Ne?void 0:Ne.titleIcon,style:e(e({},L),null==_e?void 0:_e.titleIcon)},{children:null!=Ge?Ge:i(p,{})})),i("div",e({className:null==Ne?void 0:Ne.cognitiveTitle,style:e(e({},M),null==_e?void 0:_e.cognitiveTitle)},{children:Oe}))]})),o("div",e({className:null==Ne?void 0:Ne.headerRight,style:e(e({},F),null==_e?void 0:_e.headerRight)},{children:[void 0!==(null==le?void 0:le.relevance_score)&&null!==(null==le?void 0:le.relevance_score)?o("span",e({className:null==Ne?void 0:Ne.scoreBadge,style:e(e(e({},_),null==_e?void 0:_e.scoreBadge),je)},{children:[i(u,{}),o("span",e({className:null==Ne?void 0:Ne.scoreText,style:e(e(e({},H),null==_e?void 0:_e.scoreText),Me)},{children:[Math.round(Number(le.relevance_score)),"%"]}))]})):null,Je&&i("span",e({style:{display:"flex",alignItems:"center"}},{children:i(s,{size:16,color:"#64748B"})}))]}))]}))]}))}export{N as default};
2
2
  //# sourceMappingURL=DeviationSummary.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,jsxs as t}from"react/jsx-runtime";import{useState as i}from"react";import o 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 s=[{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"}],d=[{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(i){var o=i.chatTitle,r=i.chatBody,a=i.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:o})),n("p",e({style:l.chatBannerBody},{children:r}))]}))}))}function u(o){var r=o.initialTone,a=o.onRiskRegenerate,s=o.riskMode,d=o.toneLevelsConfig,g=void 0===d?c:d,u=o.toneColorsConfig,h=void 0===u?f:u,m=o.riskModesConfig,y=void 0===m?p:m,x=o.mergedStyles,v=void 0===x?b:x,C=o.isStreaming,k=o.aiReason,B=g.findIndex(function(e){return e===r});-1===B&&(B=1);var S=i(s||y[0]||"Grounded"),R=S[0],T=S[1],A=i(B),w=A[0],z=A[1],L=i(B)[0],D=g[w],I=h[D]||"#BA7517",M=w!==L||s!==R;return t("div",e({style:v.body},{children:[n("div",e({style:{display:"flex",gap:8,marginBottom:16}},{children:y.map(function(i){return t("button",e({onClick:function(){return T(i)},style:{flex:1,display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderRadius:10,border:"1px solid ".concat(R===i?"#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(R===i?"#7c5cbf":"#ccc"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:R===i&&n("span",{style:{width:8,height:8,borderRadius:"50%",background:"#7c5cbf"}})})),i.charAt(0).toUpperCase()+i.slice(1)]}),i)})})),n(l,{onToneChange:function(e){return z(e)},toneColor:I,isDirty:M,toneIndex:w,onClickRegenerate:function(){return null==a?void 0:a({tone:D,mode:R})},isStreaming:C,aiReason:k})]}))}function h(o){var r=o.onApply,a=o.historicalClausesData,l=void 0===a?d:a,s=o.toneLevelsConfig,f=void 0===s?c:s,p=o.mergedStyles,g=void 0===p?b:p,u=f.length>1?f[1]:f[0]||"Balanced",h=i(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(i){return t("button",e({onClick:function(){return null==r?void 0:r({type:"history",value:i.excerpt})},style:g.clauseCard},{children:[n("p",e({style:g.clauseFilename},{children:i.filename})),n("p",e({style:g.clauseExcerpt},{children:i.excerpt}))]}),i.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,i=e.onRiskRegenerate,o=e.initialTone,r=e.riskMode,a=e.onApply,l=e.chatTitle,s=e.chatBody,d=e.historicalClausesData,c=e.toneLevelsConfig,f=e.toneColorsConfig,p=e.riskModesConfig,m=e.mergedStyles,y=void 0===m?b:m,x=e.isStreaming,v=e.aiReason;return"chat"===t?n(g,{chatTitle:l,chatBody:s,mergedStyles:y}):"risk"===t?n(u,{onRiskRegenerate:i,initialTone:o,riskMode:r,toneLevelsConfig:c,toneColorsConfig:f,riskModesConfig:p,mergedStyles:y,isStreaming:x,aiReason:v}):"history"===t?n(h,{onApply:a,historicalClausesData:d,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?s:v,k=r.historicalClausesConfig,B=void 0===k?d:k,S=r.chatTitle,R=void 0===S?"Chat mode active":S,T=r.chatBody,A=void 0===T?"You are now chatting about this redline, continue the conversation in the left panel to refine or update it":T,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=r.isStreaming,G=r.aiReason,N=i(null),q=N[0],P=N[1],U=e(e(e({},o.IterateMenuDefaults.styles),b),D);return t("div",e({style:U.card},{children:[t("div",e({style:U.header},{children:[n("button",e({onClick:a,style:U.backBtn,"aria-label":"Go back"},{children:"‹"})),n("span",e({style:U.headerTitle},{children:z}))]})),C.map(function(i,o){var r=q===i.id;return t("div",e({style:{borderBottom:o<C.length-1?"0.5px solid #e8e7e3":"none"}},{children:[t("button",e({onClick:function(){return e=i.id,P(function(n){return n===e?null:("chat"===e&&(null==l||l()),x&&x(e),e)});var e},style:U.row},{children:[n("div",e({style:U.rowLeft},{children:t("div",{children:[n("p",e({style:U.label},{children:i.label})),n("p",e({style:U.desc},{children:i.description}))]})})),n("span",e({style:e(e({},U.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:i.id,onRiskRegenerate:g,initialTone:u,riskMode:h,onApply:y,chatTitle:R,chatBody:A,historicalClausesData:B,toneLevelsConfig:M,toneColorsConfig:F,riskModesConfig:W,mergedStyles:U,aiReason:G,isStreaming:E})}))]}),i.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};
1
+ import{__assign as e}from"tslib";import{jsx as n,jsxs as t}from"react/jsx-runtime";import{useState as i}from"react";import o 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(i){var o=i.chatTitle,r=i.chatBody,a=i.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:o})),n("p",e({style:l.chatBannerBody},{children:r}))]}))}))}function u(o){var r=o.initialTone,a=o.onRiskRegenerate,d=o.riskMode,s=o.toneLevelsConfig,g=void 0===s?c:s,u=o.toneColorsConfig,h=void 0===u?f:u,m=o.riskModesConfig,y=void 0===m?p:m,v=o.mergedStyles,x=void 0===v?b:v,C=o.isStreaming,k=o.aiReason,B=g.findIndex(function(e){return e===r});-1===B&&(B=1);var S=i(d||y[0]||"Grounded"),R=S[0],T=S[1],A=i(B),w=A[0],z=A[1],L=i(B)[0],D=g[w],I=h[D]||"#BA7517",M=w!==L||d!==R;return t("div",e({style:x.body},{children:[n("div",e({style:{display:"flex",gap:8,marginBottom:16}},{children:y.map(function(i){return t("button",e({onClick:function(){return T(i)},style:{flex:1,display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderRadius:10,border:"1px solid ".concat(R===i?"#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(R===i?"#7c5cbf":"#ccc"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:R===i&&n("span",{style:{width:8,height:8,borderRadius:"50%",background:"#7c5cbf"}})})),i.charAt(0).toUpperCase()+i.slice(1)]}),i)})})),n(l,{onToneChange:function(e){return z(e)},toneColor:I,isDirty:M,toneIndex:w,onClickRegenerate:function(){return null==a?void 0:a({tone:D,mode:R})},isStreaming:C,aiReason:k})]}))}function h(o){var r=o.onApply,a=o.historicalClausesData,l=void 0===a?s:a,d=o.toneLevelsConfig,f=void 0===d?c:d,p=o.mergedStyles,g=void 0===p?b:p,u=f.length>1?f[1]:f[0]||"Balanced",h=i(u),m=h[0],y=h[1],v=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:[v.map(function(i){return t("button",e({onClick:function(){return null==r?void 0:r({type:"history",value:i.excerpt})},style:g.clauseCard},{children:[n("p",e({style:g.clauseFilename},{children:i.filename})),n("p",e({style:g.clauseExcerpt},{children:i.excerpt}))]}),i.id)}),0===v.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,i=e.onRiskRegenerate,o=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,v=e.isStreaming,x=e.aiReason;return"chat"===t?n(g,{chatTitle:l,chatBody:d,mergedStyles:y}):"risk"===t?n(u,{onRiskRegenerate:i,initialTone:o,riskMode:r,toneLevelsConfig:c,toneColorsConfig:f,riskModesConfig:p,mergedStyles:y,isStreaming:v,aiReason:x}):"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,v=r.onTabToggle,x=r.menuItemsConfig,C=void 0===x?d:x,k=r.historicalClausesConfig,B=void 0===k?s:k,S=r.chatTitle,R=void 0===S?"Chat mode active":S,T=r.chatBody,A=void 0===T?"You are now chatting about this redline, continue the conversation in the left panel to refine or update it":T,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=r.isStreaming,G=r.aiReason,N=i(null),q=N[0],P=N[1],U=e(e(e({},o.IterateMenuDefaults.styles),b),D);return t("div",e({style:U.card},{children:[t("div",e({style:U.header},{children:[n("button",e({onClick:a,style:U.backBtn,"aria-label":"Go back"},{children:"‹"})),n("span",e({style:U.headerTitle},{children:z}))]})),n("div",e({style:{width:"100%",maxHeight:"300px",overflow:"auto"}},{children:C.map(function(i,o){var r=q===i.id;return t("div",e({style:{borderBottom:o<C.length-1?"0.5px solid #e8e7e3":"none"}},{children:[t("button",e({onClick:function(){return e=i.id,P(function(n){return n===e?null:("chat"===e&&(null==l||l()),v&&v(e),e)});var e},style:U.row},{children:[n("div",e({style:U.rowLeft},{children:t("div",{children:[n("p",e({style:U.label},{children:i.label})),n("p",e({style:U.desc},{children:i.description}))]})})),n("span",e({style:e(e({},U.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:i.id,onRiskRegenerate:g,initialTone:u,riskMode:h,onApply:y,chatTitle:R,chatBody:A,historicalClausesData:B,toneLevelsConfig:M,toneColorsConfig:F,riskModesConfig:W,mergedStyles:U,aiReason:G,isStreaming:E})}))]}),i.id)})}))]}))}var b={card:{background:"#fff",border:"0.5px solid #e8e7e3",borderRadius:14,width:300,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
2
  //# sourceMappingURL=IterateComponent.js.map
@@ -1,2 +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};
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)",fontFamily:"'DM Sans', 'Segoe UI', sans-serif"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderBottom:"1.5px solid #e2e8f0",borderRadius:"18px 18px 0px 0px"},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},meta:{},divider:{height:1,background:"#f1f5f9"},impactText:{margin:"10px 0 0",fontSize:13,lineHeight:1.65,color:"#334155",overflow:"auto",maxHeight:"100px"},secondSection:{marginTop:12,background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:12,padding:"14px 16px",fontSize:13,lineHeight:1.7,color:"#64748b",fontStyle:"italic",overflow:"auto",maxHeight:"100px"},actionsContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:2},fallbackSectionStyle:{marginTop:12,padding:"16px",fontSize:13,color:"#94a3b8",textAlign:"center",fontStyle:"italic",background:"#f8fafc",borderRadius:12,border:"1.5px dashed #cbd5e1"}},a={container:{background:"#fff"},header:{display:"flex",alignItems:"center",justifyContent:"space-between"},innerHeader:{padding:"8px 12px"},innerBody:{padding:"8px 12px",color:"#4b5563"}},t={DeviationSummaryDefaults:e,IterateMenuDefaults:o,RedlineCardDefaults:n,CitationAccordionDefaults:a};export{a as CitationAccordionDefaults,e as DeviationSummaryDefaults,o as IterateMenuDefaults,n as RedlineCardDefaults,t as default};
2
2
  //# sourceMappingURL=PopupDefaults.js.map
@@ -1,2 +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 i}from"react";import r 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"})]}))},a=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"})]}))},c=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 i=n.color,r=void 0===i?"#3b82f6":i;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:r,strokeWidth:"1.5",strokeLinecap:"round"}),t("path",{d:"M1.5 3.5v4h4",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M8 5v3.5l2 1.5",stroke:r,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},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 i=n.title,r=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:i})),t(u,{open:r})]})),t("div",e({style:{maxHeight:r?300:0,opacity:r?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,i=t.label,r=t.onClick,d=t.customStyle,l=void 0===d?{}:d,a=t.disabled,c=void 0!==a&&a,s=t.disabledStyle,h=void 0===s?{}:s,u=e(e({display:"flex",alignItems:"center",gap:7,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:c?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:c?.5:1},l),c?h:{});return o("button",e({onClick:c?void 0:r,disabled:c,style:u,onMouseEnter:function(e){c||(e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)")},onMouseLeave:function(e){c||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[n,i]}))}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,S=u.onReinstate,M=u.onRevert,W=u.disableAllActions,T=void 0!==W&&W,I=u.impactTitle,D=void 0===I?"Impact":I,j=u.customConfigs,z=void 0===j?{}:j,A=u.customStyles,H=void 0===A?{}:A,F=i(!0),U=F[0],E=F[1],N=i(!0),P=N[0],O=N[1],Y=i(!1),q=Y[0],G=Y[1],J={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:M},{icon:t(k,{}),label:"Iterate",onClick:R}]},K={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t(h,{}),StatusIcon:t(a,{}),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:S},{icon:t(k,{}),label:"Iterate",onClick:R}]},Q={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}]},V=e(e({},"accepted"===v?J:"rejected"===v?K:Q),z[v]||{});return o("div",e({style:e(e(e({},r.RedlineCardDefaults.root),{animation:q?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":r.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),H.root)},{children:[o("div",e({style:e(e(e({},r.RedlineCardDefaults.header),{background:V.headerBg,borderBottom:"1.5px solid ".concat(V.headerBorder)}),H.header)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[V.StatusIcon,t("span",e({style:{fontSize:15,fontWeight:700,color:V.titleColor,letterSpacing:"-0.01em"}},{children:V.label}))]})),t("button",e({onClick:function(){G(!0),m()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t(c,{})}))]})),o("div",e({style:e(e({},r.RedlineCardDefaults.body),H.body)},{children:[o("div",e({style:e(e({},r.RedlineCardDefaults.meta),H.meta)},{children:[o("div",e({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[V.UserIcon,t("span",e({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:V.metaLabel}))]})),o("div",e({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[B,", ",d(L)]}))]})),t("div",{style:e(e({},r.RedlineCardDefaults.divider),H.divider)}),t(g,e({title:D,open:U,onToggle:function(){return E(function(e){return!e})}},{children:t("p",e({style:e(e({},r.RedlineCardDefaults.impactText),H.impactText)},{children:y||""}))})),t("div",{style:e(e({},r.RedlineCardDefaults.divider),H.divider)}),t(g,e({title:V.secondTitle,open:P,onToggle:function(){return O(function(e){return!e})}},{children:t("div",e({style:e(e(e({},r.RedlineCardDefaults.secondSection),{background:V.secondBg,border:"1.5px solid ".concat(V.secondBorder)}),H.secondSection)},{children:x||""}))})),t("div",e({style:e(e({},r.RedlineCardDefaults.actionsContainer),H.actionsContainer)},{children:V.actions.map(function(o){return t(b,{icon:o.icon,label:o.label,onClick:o.onClick,customStyle:e(e({},o.style),H.actionBtn),disabled:T||o.disabled,disabledStyle:H.actionBtnDisabled},o.label)})}))]}))]}))}export{l as ApprovedIcon,u as ChevronIcon,c as CloseIcon,f as HistoryIcon,k as IterateIcon,v as RedlineCard,p as ReinstateIcon,a as RejectedIcon,s as UserApprovedIcon,h as UserRejectedIcon,d as formatDate};
1
+ import{__assign as e}from"tslib";import{jsx as t,jsxs as i,Fragment as o}from"react/jsx-runtime";import{Undo2 as n}from"lucide-react";import{useState as r}from"react";import l from"./PopupDefaults.js";import{Tooltip as d}from"@mui/material";function a(e){var t=new Date(e);return isNaN(t.getTime())?e:new Date(e).toLocaleString("en-US",{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).replace(" AM","AM").replace(" PM","PM")}var c=function(){return i("svg",e({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t("circle",{cx:"11",cy:"11",r:"10",stroke:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},s=function(){return i("svg",e({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t("circle",{cx:"11",cy:"11",r:"10",stroke:"#ef4444",strokeWidth:"2",fill:"#fff1f2"}),t("path",{d:"M7.5 7.5l7 7M14.5 7.5l-7 7",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}))},h=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"})}))},f=function(){return i("svg",e({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t("path",{d:"M11 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},u=function(){return i("svg",e({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},p=function(i){var o=i.open;return t("svg",e({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:o?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},k=function(o){var n=o.color,r=void 0===n?"#3b82f6":n;return i("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:r,strokeWidth:"1.5",strokeLinecap:"round"}),t("path",{d:"M1.5 3.5v4h4",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M8 5v3.5l2 1.5",stroke:r,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},b=function(){return i("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},g=function(){return i("svg",e({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t("path",{d:"M2 8h12M10 4l4 4-4 4",stroke:"#64748b",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M4 5l-2 3 2 3",stroke:"#64748b",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function v(n){var r=n.title,l=n.open,d=n.onToggle,a=n.children;return i("div",{children:[i("div",e({onClick:d,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t("span",e({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:r})),t(p,{open:l})]})),t("div",e({style:{maxHeight:l?100:0,opacity:l?1:0,transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:l&&t(o,{children:a})}))]})}function y(t){var o=t.icon,n=t.label,r=t.onClick,l=t.customStyle,d=void 0===l?{}:l,a=t.disabled,c=void 0!==a&&a,s=t.disabledStyle,h=void 0===s?{}:s,f=e(e({display:"flex",alignItems:"center",gap:10,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:c?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:c?.5:1},d),c?h:{});return i("button",e({onClick:c?void 0:r,disabled:c,style:f,onMouseEnter:function(e){c||(e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)")},onMouseLeave:function(e){c||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[o,n]}))}function m(o){var p=o.status,m=o.onClose,x=o.impactText,B=o.secondText,C=o.actionTakenByName,L=o.actionTakenAtTime,w=void 0===L?"NA":L,S=o.onHistory,W=o.onIterate,R=o.onReinstate,T=o.onRevert,M=o.disableAllActions,I=void 0!==M&&M,D=o.impactTitle,j=void 0===D?"Impact":D,z=o.customConfigs,A=void 0===z?{}:z,N=o.customStyles,H=void 0===N?{}:N,F=o.secondaryTitle,U=r(!0),E=U[0],O=U[1],P=r(!0),Y=P[0],q=P[1],G=r(!1),J=G[0],K=G[1],Q={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t(f,{}),StatusIcon:t(c,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t(k,{}),label:"History",onClick:S},{icon:t(n,{size:17}),label:"Revert",onClick:T},{icon:t(g,{}),label:"Iterate",onClick:W}],fallbackText:"No original text available"},V={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t(u,{}),StatusIcon:t(s,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t(k,{color:"#3b82f6"}),label:"History",onClick:S},{icon:t(b,{}),label:"Reinstate",onClick:R},{icon:t(g,{}),label:"Iterate",onClick:W}],fallbackText:"No rejected recommendation available"},X={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t(f,{}),StatusIcon:t(n,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t(k,{}),label:"History",onClick:S},{icon:t(g,{}),label:"Iterate",onClick:W}],fallbackText:"No reverted redline available"},Z=e(e({},"accepted"===p?Q:"rejected"===p?V:X),A[p]||{});return i("div",e({style:e(e(e({},l.RedlineCardDefaults.root),{animation:J?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":l.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),H.root)},{children:[i("div",e({style:e(e(e({},l.RedlineCardDefaults.header),{background:Z.headerBg,borderBottom:"1.5px solid ".concat(Z.headerBorder)}),H.header)},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[t("div",e({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:Z.StatusIcon})),i("div",{children:[t("span",e({style:{fontSize:15,fontWeight:700,color:Z.titleColor,letterSpacing:"-0.01em"}},{children:Z.label})),t(d,e({title:F},{children:t("span",e({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",fontSize:12,color:"gray"}},{children:F}))}))]})]})),t("button",e({onClick:function(){K(!0),m()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t(h,{})}))]})),i("div",e({style:e(e({},l.RedlineCardDefaults.body),H.body)},{children:[i("div",e({style:e(e({},l.RedlineCardDefaults.meta),H.meta)},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[Z.UserIcon,t("span",e({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:Z.metaLabel}))]})),i("div",e({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[t(d,e({title:C},{children:t("span",e({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"}},{children:C}))})),t("span",{children:a(w)})]}))]})),t("div",{style:e(e({},l.RedlineCardDefaults.divider),H.divider)}),t(v,e({title:j,open:E,onToggle:function(){return O(function(e){return!e})}},{children:t("p",e({style:e(e({},l.RedlineCardDefaults.impactText),H.impactText)},{children:x||""}))})),t("div",{style:e(e({},l.RedlineCardDefaults.divider),H.divider)}),t(v,e({title:Z.secondTitle,open:Y,onToggle:function(){return q(function(e){return!e})}},{children:B?t("div",e({style:e(e(e({},l.RedlineCardDefaults.secondSection),{background:Z.secondBg,border:"1.5px solid ".concat(Z.secondBorder)}),H.secondSection)},{children:B})):i("div",e({style:e(e({},l.RedlineCardDefaults.fallbackSectionStyle),H.fallbackSectionStyle)},{children:[Z.fallbackText," "]}))})),t("div",e({style:e(e({},l.RedlineCardDefaults.actionsContainer),H.actionsContainer)},{children:Z.actions.map(function(i){return t(y,{icon:i.icon,label:i.label,onClick:i.onClick,customStyle:e(e({},i.style),H.actionBtn),disabled:I||i.disabled,disabledStyle:H.actionBtnDisabled},i.label)})}))]}))]}))}export{c as ApprovedIcon,p as ChevronIcon,h as CloseIcon,k as HistoryIcon,g as IterateIcon,m as RedlineCard,b as ReinstateIcon,s as RejectedIcon,f as UserApprovedIcon,u as UserRejectedIcon,a as formatDate};
2
2
  //# sourceMappingURL=RedlineStatusCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as t,__generator as n,__spreadArray as o}from"tslib";import{jsxs as i,jsx as l,Fragment as r}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ExternalLink as c,Download as d,Share2 as v,Copy as f,LoaderCircle as m,PencilIcon as y,Plus as h,Trash2 as p,Ellipsis as S,ChevronUp as g,ChevronDown as C,ChevronUpIcon as I,ChevronDownIcon as w,Info as N,Bookmark as b}from"lucide-react";import B from"showdown";import{Menu as D,MenuItem as x,Tooltip as U}from"@mui/material";import{v4 as E}from"uuid";import T from"./UserStoryCard.module.css.js";import{formatMarkdown as k,indentMarkdown as A}from"../../utils/helpers.js";import{replaceTitleSection as M}from"../../utils/user-story.utils.js";import _ from"../../shared/AtomicButton.js";import P from"../RichTextEditor/RichTextEditor.js";import H from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as R}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as j}from"../story-screen/BigEnoughPanel.js";import{InlineTitleEditor as L}from"./TitleEditor/TitleEditor.js";function V(t){for(var n,o=[],i=/<learned>(.*?)<\/learned>/g,r=0,a=0;null!==(n=i.exec(t));){var s=n[1],u=n.index;u>r&&o.push(l("span",{children:t.slice(r,u)},"text-pre-".concat(a++))),o.push(l(U,e({title:s,placement:"top"},{children:l(N,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(E()))),r=i.lastIndex}return r<(null==t?void 0:t.length)&&o.push(l("span",{children:t.slice(r)},"text-post-".concat(a++))),o}function z(t,n,o){var i;if(!t)return{};if(n)return e({},t.parentConfig);var l=e({},t.childConfig);return o&&(null===(i=t.subFeatureOverrides)||void 0===i?void 0:i[o])?e(e({},l),t.subFeatureOverrides[o]):l}var W=function(t){var n,o=t.displayName,r=R().customStyles,a=null===(n=null==r?void 0:r.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return i("div",e({className:T.displayName,style:null==a?void 0:a.wrapper},{children:[l(b,{className:T.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),i("span",e({style:null==a?void 0:a.label},{children:[o,":"]}))]}))},O=function(I){var w,N,b,U,F,G,q,Q=I.isUserStoryCurrentlyUpdated,Z=I.artifactId,J=I.artifactTitleId,K=I.parentUserStory,X=I.currentUserStory,Y=I.onUserStoryChange,$=I.parentIndex,ee=I.currentIndex,te=I.enableDownload,ne=I.isDiffEditReviewMode,oe=I.showUserStoryDiff,ie=I.handleDownloadUserStory,le=I.handleOpenSendDialog,re=I.updateUserStoryArtifact,ae=I.selectedArtifactId,se=I.isDisplayHighlightControl,ue=I.elementDisplayConfig,ce=I._resolvedConfig,de=I.showWrapper,ve=void 0!==de&&de,fe=I.actionItemsConfig,me=I.onDelete,ye=I.contextVariant,he=I.showDisplayName,pe=void 0===he||he,Se=I.allowTitleEdit,ge=void 0===Se||Se,Ce=I.showConfidenceScore,Ie=void 0===Ce||Ce,we=I.showBorderTop,Ne=void 0===we||we,be=R(),Be=be.searchQueryList,De=be.citations,xe=be.customStyles,Ue=null==xe?void 0:xe.userStoryCardStyles,Ee=null===(w=null==xe?void 0:xe.userStoryCardStyles)||void 0===w?void 0:w.userStoryEditStyles,Te=null===(N=null==xe?void 0:xe.userStoryScreenStyles)||void 0===N?void 0:N.userStoryContentStyles,ke=null==Ue?void 0:Ue.progressHeaderStyles,Ae=a(e(e({},structuredClone(X)),{value:k(X.value)||""})),Me=Ae[0],_e=Ae[1],Pe=a({userStory:!!X.isDefaultEdit}),He=Pe[0],Re=Pe[1],je=a(!1),Le=je[0],Ve=je[1],ze=a(null),We=ze[0],Oe=ze[1],Fe=R(),Ge=Fe.userStory,qe=Fe.customIcons,Qe=a(""===$||ae===X.artifactId||!!X.isDefaultOpen),Ze=Qe[0],Je=Qe[1],Ke=a(!1);Ke[0];var Xe=Ke[1],Ye=a(null),$e=Ye[0],et=Ye[1],tt=a(null),nt=tt[0],ot=tt[1],it=a(!1),lt=it[0],rt=it[1],at=s(null),st=a(!1);st[0];var ut=st[1],ct=s(null);u(function(){Q&&Je(Q)},[Q]),u(function(){_e(e(e({},structuredClone(X)),{value:k(X.value)||""}))},[X]),u(function(){Be.length>0?Je(!0):ae&&Je(ae===X.artifactId)},[Be,ae,X.artifactId]);var dt=function(){et(null)},vt=function(){ot(null)},ft=function(){Je(function(e){return!e})};var mt=null!=(null==X?void 0:X.big_enough)&&!Number.isNaN(X.big_enough)&&!!(null==X?void 0:X.big_enough_decision_factors),yt=""===$,ht=null!=ce?ce:z(ue,yt),pt=!ne&&!oe;return u(function(){if(We){var e=setTimeout(function(){var e=document.getElementById("story-card-".concat(We));null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return function(){return clearTimeout(e)}}},[We]),u(function(){X.isDefaultEdit&&Re(function(t){return e(e({},t),{userStory:!0})})},[X.isDefaultEdit]),i("div",e({className:T.card,style:null==Ue?void 0:Ue.cardStyle,id:"story-card-".concat(X.title),"data-expanded":Ze},{children:[i("div",e({className:T.titleSection,style:null==Ue?void 0:Ue.titleSection},{children:[i("div",e({className:T.titleRow,style:null==Ue?void 0:Ue.titleRow,onClick:ft},{children:[i("div",e({className:T.titleLeft,style:null==Ue?void 0:Ue.titleLeft,onMouseEnter:function(){return ut(!0)},onMouseLeave:function(){return ut(!1)}},{children:[pe&&l(W,{displayName:J}),Le&&pt?l(L,{title:X.title,onSave:function(o){return function(o,i){return t(void 0,void 0,void 0,function(){var t,l;return n(this,function(n){try{t=e({},X),X.artifactId===i?t.title=o:t.sub_features=(null===(l=X.sub_features)||void 0===l?void 0:l.map(function(t){return t.artifactId===i?e(e({},t),{title:o}):t}))||[],_e(t),Y(t),Ve(!1)}catch(e){console.error("Failed to save title",e)}return[2]})})}(o,X.artifactId)},onCancel:function(){Ve(!1)},inputStyle:null==Ee?void 0:Ee.inlineTitleInput,confirmButtonStyle:null==Ee?void 0:Ee.inlineTitleConfirm,cancelButtonStyle:null==Ee?void 0:Ee.inlineTitleCancel},"inline-title-editor"):i("div",e({className:T.storyTitleWrapper},{children:[l("h2",e({title:X.title,className:T.storyTitle,style:null==Ue?void 0:Ue.storyTitle},{children:V(X.title)}),X.artifactId),ge&&l("button",e({type:"button",className:T.titleEditButton,style:null==Ee?void 0:Ee.titleEditButton,onClick:function(e){e.stopPropagation(),Ve(!0),Ze||Je(!0)},"aria-label":"Edit title",title:"Edit title"},{children:l("svg",e({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:l("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})}))}))]}))]})),i("div",e({className:T.titleActions,style:null==Ue?void 0:Ue.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(ht.showProgressPercentage||ht.showGapBox)&&ve&&i("div",e({className:T.progressHeader,style:null==ke?void 0:ke.wrapper},{children:[ht.showProgressPercentage&&i("div",e({className:T.progressPercentage,style:null==ke?void 0:ke.percentage},{children:[null!==(U=null!==(b=null==X?void 0:X.confidenceScore)&&void 0!==b?b:null==ht?void 0:ht.confidenceValue)&&void 0!==U?U:"0","%"]})),ht.showGapBox&&i("div",e({className:T.gapBox,style:null==ke?void 0:ke.gapBox},{children:[null!==(G=null!==(F=null==X?void 0:X.gapValue)&&void 0!==F?F:null==ht?void 0:ht.gapBoxValue)&&void 0!==G?G:"2"," ","Gaps"]}))]})),mt&&l(j,{customIcons:null==qe?void 0:qe.userStoryIcons,customStyles:null==Ue?void 0:Ue.aiReasoningCitaionStyles,currentUserStory:X,panelStyles:null==Ue?void 0:Ue.BigEnoughStyles}),!He.userStory&&i(r,{children:[!1!==(null==ht?void 0:ht.showShareButton)&&l("button",e({className:T.iconButton,style:null==Ue?void 0:Ue.iconButton,onClick:function(e){et(e.currentTarget)}},{children:l(c,{size:16})})),i(D,e({id:"user-story-share-menu",anchorEl:$e,open:!!$e,onClose:function(){return et(null)},style:null==Ue?void 0:Ue.userStoryShareMenu},{children:[te&&l(x,e({style:null==Ue?void 0:Ue.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return Xe(!0),ie?[4,Promise.all([ie("pdf"),ie("doc")])]:[2];case 1:return e.sent(),Xe(!1),[2]}})})}},{children:i("div",e({ref:at,className:T.menuItemContent,style:null==Ue?void 0:Ue.menuItemContent},{children:[l(d,{size:16,color:null==Ue?void 0:Ue.menuIconColor}),l("p",e({style:null==Ue?void 0:Ue.menuLabel},{children:"Download"}))]}))})),l(x,e({style:null==Ue?void 0:Ue.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){return t=X,K&&(t=e(e({},X),{value:"".concat(M(null==K?void 0:K.value,X.title)," \n").concat(X.value)})),null==le||le(!0,[t],X.artifactId),dt(),[2]})})}},{children:i("div",e({style:null==Ue?void 0:Ue.menuItemContent,className:T.menuItemContentPadded},{children:[l(v,{size:16,color:null==Ue?void 0:Ue.menuIconColor}),l("p",e({style:null==Ue?void 0:Ue.menuLabel},{children:"Send"}))]}))})),l(x,e({style:null==Ue?void 0:Ue.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var e,t,o,i,l;return n(this,function(n){switch(n.label){case 0:e=new B.Converter,t=e.makeHtml(k(X.value)||X.value),o=function(e){var t=(new B.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(k(X.value)||X.value),i=new ClipboardItem({"text/plain":new Blob([o],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,navigator.clipboard.write([i])];case 2:return n.sent(),console.log("Copied User Story"),[3,5];case 3:return l=n.sent(),console.error("Failed to copy user story:",l),[3,5];case 4:return dt(),[7];case 5:return[2]}})})}},{children:i("div",e({style:null==Ue?void 0:Ue.menuItemContent,className:T.menuItemContentPadded},{children:[l(f,{size:16,color:null==Ue?void 0:Ue.menuIconColor}),l("p",e({style:null==Ue?void 0:Ue.menuLabel},{children:"Copy"}))]}))}))]}))]}),He.userStory&&Ze?l(_,{type:"outline",children:"Cancel",style:null==Ue?void 0:Ue.cancelButton,onClick:function(){var t;null===(t=ct.current)||void 0===t||t.abort(),Re(function(t){return e(e({},t),{userStory:!1})})}}):l(r,{}),He.userStory&&Ze?l(_,{type:"fill",children:lt?i("span",e({className:T.savingSpinner,style:null==Ue?void 0:Ue.savingSpinner},{children:[l(m,{className:T.spinAnimation,style:null==Ue?void 0:Ue.spinAnimation}),l("span",{children:"Saving..."})]})):"Save",isDisable:lt,style:lt?null==Ue?void 0:Ue.savingButton:null==Ue?void 0:Ue.saveButton,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return rt(!0),"userStory"==="userStory"&&(Y(Me),console.log("I am changing RTE editor values",Me)),[4,re(De,Ge,Z,null===(t=ct.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),Y(e(e({},Me),{isDefaultEdit:!1})),Re(function(t){return e(e({},t),{userStory:!1})}),rt(!1),[2]}})})}}):!ne&&!oe&&Ze&&!1!==(null==ht?void 0:ht.showEditButton)&&ge&&l("button",e({className:T.iconButton,style:null==Ue?void 0:Ue.editButton,onClick:function(){return Re(function(t){return e(e({},t),{userStory:!0})})}},{children:l(y,{color:null==Ue?void 0:Ue.pencilIconColor,size:16})})),yt&&Ze&&!ne&&!oe&&!1!==(null==ht?void 0:ht.showEditButton)&&i("button",e({type:"button",className:T.addSectionButton,style:null==Ee?void 0:Ee.addSectionButton,onClick:function(t){var n,i,l;t.stopPropagation();var r=(null!==(i=null===(n=X.sub_features)||void 0===n?void 0:n.length)&&void 0!==i?i:0)+1,a={artifactId:E(),title:"New Section ".concat(r),value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},s=e(e({},X),{sub_features:o(o([],null!==(l=X.sub_features)&&void 0!==l?l:[],!0),[a],!1)});_e(s),Y(s),Je(!0),Oe(a.title)},"aria-label":"Add section",title:"Add section"},{children:[l(h,{size:14}),l("span",e({className:T.addSectionLabel},{children:"Add Section"}))]})),!yt&&!ne&&!oe&&l("button",e({type:"button",onClick:function(e){e.stopPropagation(),null==me||me()},className:T.iconButton,style:null==Ee?void 0:Ee.deleteButton,"aria-label":"Delete section",title:"Delete section"},{children:l(p,{size:16})})),(null==ht?void 0:ht.actionItemsButton)&&i(r,{children:[l("span",e({className:T.actionItemBtn,style:null==Ue?void 0:Ue.actionItemBtn,onClick:function(e){e.stopPropagation(),ot(e.currentTarget)}},{children:l(S,{})})),l(D,e({id:"user-story-action-menu",anchorEl:nt,open:!!nt,onClose:vt,style:null==Ue?void 0:Ue.userStoryShareMenu},{children:null==fe?void 0:fe.items.map(function(t,n){return l(x,e({style:null==Ue?void 0:Ue.userStoryMenuItem,onClick:function(){t.onclick(X),vt()}},{children:i("div",e({className:T.menuItemContent,style:e(e({},null==Ue?void 0:Ue.menuItemContent),!t.isActive&&{cursor:"not-allowed",opacity:.5})},{children:[l("span",e({className:T.menuItemIcon,style:null==Ue?void 0:Ue.menuItemIcon},{children:t.icon})),l("p",e({style:null==Ue?void 0:Ue.menuLabel},{children:t.name})),l("span",{className:T.menuItemRight,style:null==Ue?void 0:Ue.menuItemRight})]}))}),"action-item-".concat(n,"-").concat(t.name))})}))]}),l("button",e({type:"button",onClick:function(e){e.stopPropagation(),ft()},style:null==Ue?void 0:Ue.chevronButton,className:T.chevronButton},{children:l(Ze?g:C,{className:T.chevronIcon,color:null==Ue?void 0:Ue.chevronIconColor})}))]}))]})),l("div",{className:T.divider,style:null==Ue?void 0:Ue.dividerStyle})]})),Ze&&l("div",e({className:T.cardContent,style:e(e({},null==Ue?void 0:Ue.cardContentStyle),{borderTop:Ne?"1px solid #E5E5E5":"none"})},{children:i("div",e({className:T.contentInner,style:null==Ue?void 0:Ue.contentInner},{children:[i("div",e({className:T.descriptionSection,style:null==Ue?void 0:Ue.descriptionSection},{children:[l("div",{className:T.justifyBetween,style:null==Ue?void 0:Ue.justifyBetween}),He.userStory?l(P,{minHeight:"100%",height:"100%",type:"string",value:k(X.value)||"",handleUpdateState:function(t,n){var o=A(n);_e(function(t){return e(e({},t),{value:o||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:He.userStory?"edit":"readOnly"}):l(H,{showUserStoryDiff:oe,isParent:""===$,message:k(X.value)||"",artifactId:X.artifactId,customStyles:Te,isDisplayHighlightControl:se,contextVariant:ye,showConfidenceScore:Ie})]})),null===(q=Me.sub_features)||void 0===q?void 0:q.map(function(t,n){var i=z(ue,!1,t.artifactId);return l(O,{artifactId:Z,isUserStoryCurrentlyUpdated:Q,artifactTitleId:"".concat(J,"-").concat(String.fromCharCode(65+n)),parentUserStory:X,parentIndex:"".concat($).concat($&&".").concat(ee),currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(t){return function(t,n){var i=o([],X.sub_features||[],!0);i[t]=n,Y(e(e({},X),{sub_features:i}))}(n,t)},enableDownload:!0,isDiffEditReviewMode:ne,showUserStoryDiff:oe,updateUserStoryArtifact:re,handleDownloadUserStory:ie,handleOpenSendDialog:le,isDisplayHighlightControl:se,elementDisplayConfig:ue,_resolvedConfig:i,actionItemsConfig:fe,onDelete:function(){return function(t){var n=(X.sub_features||[]).filter(function(e,n){return n!==t}),o=e(e({},X),{sub_features:n});_e(o),Y(o)}(n)}},t.artifactId)})]}))}))]}))},F=function(t){var n=t.artifactTitleIDs,a=t.isDiffEditReviewMode,s=t.showUserStoryDiff,u=t.updateUserStoryArtifact,c=t.isUserStoryCurrentlyUpdated,d=t.artifactId,v=t.handleOpenSendDialog,f=t.handleDownloadUserStory,m=t.selectedArtifactId,y=t.isDisplayHighlightControl,h=t.elementDisplayConfig,p=t.showWrapper,S=t.actionItemsConfig,g=t.contextVariant,C=t.showDisplayName,N=t.allowTitleEdit,b=t.showConfidenceScore,B=t.showBorderTop,D=R(),x=D.userStory,U=D.setUserStory,E=D.customStyles,k=D.searchQueryList,A=D.currentHighlightIndex,M=D.setCurrentHighlightIndex;D.segmentComponentConfig;var _=null==E?void 0:E.userStoryCardStyles,P=0===A,H=A===k.length-1;return i("div",e({className:T.userStoryCardWrapper,style:y?e(e({},null==_?void 0:_.userStoryCardWrapper),{position:"relative"}):null==_?void 0:_.userStoryCardWrapper},{children:[y&&l(r,{children:k.length>0&&l("div",e({className:T.wrapper},{children:l("div",e({className:T.highlightNavigation},{children:i("div",e({className:T.navigationContainer},{children:[i("span",e({className:T.navCounter},{children:[A+1," of ",k.length]})),i("div",e({className:T.navButtons},{children:[l("button",e({onClick:function(){A>0&&M(function(e){return e-1})},className:T.navButton,disabled:P},{children:l(I,{size:20,className:T.navIcon})})),l("button",e({onClick:function(){A<k.length-1&&M(function(e){return e+1})},className:T.navButton,disabled:H},{children:l(w,{size:20,className:T.navIcon})}))]}))]}))}))}))}),x.map(function(e,t){var i=z(h,!0);return l(O,{isUserStoryCurrentlyUpdated:c,artifactId:d,artifactTitleId:n[t]||"",currentUserStory:e,onUserStoryChange:function(e){U(function(n){return n[t]=e,o([],n,!0)})},parentIndex:"",currentIndex:"".concat(t+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:v,handleDownloadUserStory:f,selectedArtifactId:m,isDisplayHighlightControl:y,elementDisplayConfig:h,_resolvedConfig:i,showWrapper:p,actionItemsConfig:S,contextVariant:g,showDisplayName:C,allowTitleEdit:N,showConfidenceScore:b,showBorderTop:B},e.artifactId)})]}))};export{O as StoryCard,F as UserStoryCardWrapper,O as default,V as replaceLearnedTagsWithInfo};
1
+ import{__assign as e,__awaiter as t,__generator as n,__spreadArray as o}from"tslib";import{jsxs as i,jsx as l,Fragment as r}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ExternalLink as c,Download as d,Share2 as v,Copy as f,LoaderCircle as m,PencilIcon as y,Plus as h,Trash2 as p,Ellipsis as S,ChevronUp as g,ChevronDown as C,ChevronUpIcon as I,ChevronDownIcon as w,Info as N,Bookmark as b}from"lucide-react";import B from"showdown";import{Menu as D,MenuItem as x,Tooltip as E}from"@mui/material";import{v4 as U}from"uuid";import T from"./UserStoryCard.module.css.js";import{formatMarkdown as k,indentMarkdown as A}from"../../utils/helpers.js";import{replaceTitleSection as M}from"../../utils/user-story.utils.js";import _ from"../../shared/AtomicButton.js";import P from"../RichTextEditor/RichTextEditor.js";import H from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as R}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as j}from"../story-screen/BigEnoughPanel.js";import{InlineTitleEditor as L}from"./TitleEditor/TitleEditor.js";function V(t){for(var n,o=[],i=/<learned>(.*?)<\/learned>/g,r=0,a=0;null!==(n=i.exec(t));){var s=n[1],u=n.index;u>r&&o.push(l("span",{children:t.slice(r,u)},"text-pre-".concat(a++))),o.push(l(E,e({title:s,placement:"top"},{children:l(N,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(U()))),r=i.lastIndex}return r<(null==t?void 0:t.length)&&o.push(l("span",{children:t.slice(r)},"text-post-".concat(a++))),o}function z(t,n,o){var i;if(!t)return{};if(n)return e({},t.parentConfig);var l=e({},t.childConfig);return o&&(null===(i=t.subFeatureOverrides)||void 0===i?void 0:i[o])?e(e({},l),t.subFeatureOverrides[o]):l}var W=function(t){var n,o=t.displayName,r=R().customStyles,a=null===(n=null==r?void 0:r.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return i("div",e({className:T.displayName,style:null==a?void 0:a.wrapper},{children:[l(b,{className:T.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),i("span",e({style:null==a?void 0:a.label},{children:[o,":"]}))]}))},O=function(I){var w,N,b,E,F,G,q,Q=I.isUserStoryCurrentlyUpdated,Z=I.artifactId,J=I.artifactTitleId,K=I.parentUserStory,X=I.currentUserStory,Y=I.onUserStoryChange,$=I.parentIndex,ee=I.currentIndex,te=I.enableDownload,ne=I.isDiffEditReviewMode,oe=I.showUserStoryDiff,ie=I.handleDownloadUserStory,le=I.handleOpenSendDialog,re=I.updateUserStoryArtifact,ae=I.selectedArtifactId,se=I.isDisplayHighlightControl,ue=I.elementDisplayConfig,ce=I._resolvedConfig,de=I.showWrapper,ve=void 0!==de&&de,fe=I.defaultExpanded,me=I.actionItemsConfig,ye=I.onDelete,he=I.contextVariant,pe=I.showDisplayName,Se=void 0===pe||pe,ge=I.allowTitleEdit,Ce=void 0===ge||ge,Ie=I.showConfidenceScore,we=void 0===Ie||Ie,Ne=I.showBorderTop,be=void 0===Ne||Ne,Be=R(),De=Be.searchQueryList,xe=Be.citations,Ee=Be.customStyles,Ue=null==Ee?void 0:Ee.userStoryCardStyles,Te=null===(w=null==Ee?void 0:Ee.userStoryCardStyles)||void 0===w?void 0:w.userStoryEditStyles,ke=null===(N=null==Ee?void 0:Ee.userStoryScreenStyles)||void 0===N?void 0:N.userStoryContentStyles,Ae=null==Ue?void 0:Ue.progressHeaderStyles,Me=a(e(e({},structuredClone(X)),{value:k(X.value)||""})),_e=Me[0],Pe=Me[1],He=a({userStory:!!X.isDefaultEdit}),Re=He[0],je=He[1],Le=a(!1),Ve=Le[0],ze=Le[1],We=a(null),Oe=We[0],Fe=We[1],Ge=R(),qe=Ge.userStory,Qe=Ge.customIcons,Ze=a(null!=fe?fe:""===$||ae===X.artifactId||!!X.isDefaultOpen),Je=Ze[0],Ke=Ze[1],Xe=a(!1);Xe[0];var Ye=Xe[1],$e=a(null),et=$e[0],tt=$e[1],nt=a(null),ot=nt[0],it=nt[1],lt=a(!1),rt=lt[0],at=lt[1],st=s(null),ut=a(!1);ut[0];var ct=ut[1],dt=s(null);u(function(){Q&&Ke(Q)},[Q]),u(function(){Pe(e(e({},structuredClone(X)),{value:k(X.value)||""}))},[X]),u(function(){De.length>0?Ke(!0):void 0===fe&&ae&&Ke(ae===X.artifactId)},[De,ae,X.artifactId]);var vt=function(){tt(null)},ft=function(){it(null)},mt=function(){Ke(function(e){return!e})};var yt=null!=(null==X?void 0:X.big_enough)&&!Number.isNaN(X.big_enough)&&!!(null==X?void 0:X.big_enough_decision_factors),ht=""===$,pt=null!=ce?ce:z(ue,ht),St=!ne&&!oe;return u(function(){if(Oe){var e=setTimeout(function(){var e=document.getElementById("story-card-".concat(Oe));null==e||e.scrollIntoView({behavior:"smooth",block:"start"})},100);return function(){return clearTimeout(e)}}},[Oe]),u(function(){X.isDefaultEdit&&je(function(t){return e(e({},t),{userStory:!0})})},[X.isDefaultEdit]),i("div",e({className:T.card,style:null==Ue?void 0:Ue.cardStyle,id:"story-card-".concat(X.title),"data-expanded":Je},{children:[i("div",e({className:T.titleSection,style:null==Ue?void 0:Ue.titleSection},{children:[i("div",e({className:T.titleRow,style:null==Ue?void 0:Ue.titleRow,onClick:mt},{children:[i("div",e({className:T.titleLeft,style:null==Ue?void 0:Ue.titleLeft,onMouseEnter:function(){return ct(!0)},onMouseLeave:function(){return ct(!1)}},{children:[Se&&l(W,{displayName:J}),Ve&&St?l(L,{title:X.title,onSave:function(o){return function(o,i){return t(void 0,void 0,void 0,function(){var t,l;return n(this,function(n){try{t=e({},X),X.artifactId===i?t.title=o:t.sub_features=(null===(l=X.sub_features)||void 0===l?void 0:l.map(function(t){return t.artifactId===i?e(e({},t),{title:o}):t}))||[],Pe(t),Y(t),ze(!1)}catch(e){console.error("Failed to save title",e)}return[2]})})}(o,X.artifactId)},onCancel:function(){ze(!1)},inputStyle:null==Te?void 0:Te.inlineTitleInput,confirmButtonStyle:null==Te?void 0:Te.inlineTitleConfirm,cancelButtonStyle:null==Te?void 0:Te.inlineTitleCancel},"inline-title-editor"):i("div",e({className:T.storyTitleWrapper},{children:[l("h2",e({title:X.title,className:T.storyTitle,style:null==Ue?void 0:Ue.storyTitle},{children:V(X.title)}),X.artifactId),Ce&&l("button",e({type:"button",className:T.titleEditButton,style:null==Te?void 0:Te.titleEditButton,onClick:function(e){e.stopPropagation(),ze(!0),Je||Ke(!0)},"aria-label":"Edit title",title:"Edit title"},{children:l("svg",e({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:l("path",{d:"M8.99998 14.9992H15.75M2.25 14.9992H3.50591C3.87279 14.9992 4.05624 14.9992 4.22887 14.9577C4.38192 14.921 4.52824 14.8604 4.66245 14.7782C4.81382 14.6854 4.94354 14.5557 5.20296 14.2962L14.625 4.87419C15.2463 4.25287 15.2463 3.24551 14.625 2.62419C14.0037 2.00287 12.9963 2.00287 12.375 2.62419L2.95295 12.0462C2.69352 12.3057 2.5638 12.4354 2.47104 12.5868C2.3888 12.721 2.32819 12.8673 2.29145 13.0203C2.25 13.193 2.25 13.3764 2.25 13.7433V14.9992Z",stroke:"#94A3B8","stroke-width":"1.54286","stroke-linecap":"round","stroke-linejoin":"round"})}))}))]}))]})),i("div",e({className:T.titleActions,style:null==Ue?void 0:Ue.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(pt.showProgressPercentage||pt.showGapBox)&&ve&&i("div",e({className:T.progressHeader,style:null==Ae?void 0:Ae.wrapper},{children:[pt.showProgressPercentage&&i("div",e({className:T.progressPercentage,style:null==Ae?void 0:Ae.percentage},{children:[null!==(E=null!==(b=null==X?void 0:X.confidenceScore)&&void 0!==b?b:null==pt?void 0:pt.confidenceValue)&&void 0!==E?E:"0","%"]})),pt.showGapBox&&i("div",e({className:T.gapBox,style:null==Ae?void 0:Ae.gapBox},{children:[null!==(G=null!==(F=null==X?void 0:X.gapValue)&&void 0!==F?F:null==pt?void 0:pt.gapBoxValue)&&void 0!==G?G:"2"," ","Gaps"]}))]})),yt&&l(j,{customIcons:null==Qe?void 0:Qe.userStoryIcons,customStyles:null==Ue?void 0:Ue.aiReasoningCitaionStyles,currentUserStory:X,panelStyles:null==Ue?void 0:Ue.BigEnoughStyles}),!Re.userStory&&i(r,{children:[!1!==(null==pt?void 0:pt.showShareButton)&&l("button",e({className:T.iconButton,style:null==Ue?void 0:Ue.iconButton,onClick:function(e){tt(e.currentTarget)}},{children:l(c,{size:16})})),i(D,e({id:"user-story-share-menu",anchorEl:et,open:!!et,onClose:function(){return tt(null)},style:null==Ue?void 0:Ue.userStoryShareMenu},{children:[te&&l(x,e({style:null==Ue?void 0:Ue.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return Ye(!0),ie?[4,Promise.all([ie("pdf"),ie("doc")])]:[2];case 1:return e.sent(),Ye(!1),[2]}})})}},{children:i("div",e({ref:st,className:T.menuItemContent,style:null==Ue?void 0:Ue.menuItemContent},{children:[l(d,{size:16,color:null==Ue?void 0:Ue.menuIconColor}),l("p",e({style:null==Ue?void 0:Ue.menuLabel},{children:"Download"}))]}))})),l(x,e({style:null==Ue?void 0:Ue.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){return t=X,K&&(t=e(e({},X),{value:"".concat(M(null==K?void 0:K.value,X.title)," \n").concat(X.value)})),null==le||le(!0,[t],X.artifactId),vt(),[2]})})}},{children:i("div",e({style:null==Ue?void 0:Ue.menuItemContent,className:T.menuItemContentPadded},{children:[l(v,{size:16,color:null==Ue?void 0:Ue.menuIconColor}),l("p",e({style:null==Ue?void 0:Ue.menuLabel},{children:"Send"}))]}))})),l(x,e({style:null==Ue?void 0:Ue.userStoryMenuItem,onClick:function(){return t(void 0,void 0,void 0,function(){var e,t,o,i,l;return n(this,function(n){switch(n.label){case 0:e=new B.Converter,t=e.makeHtml(k(X.value)||X.value),o=function(e){var t=(new B.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(k(X.value)||X.value),i=new ClipboardItem({"text/plain":new Blob([o],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,navigator.clipboard.write([i])];case 2:return n.sent(),console.log("Copied User Story"),[3,5];case 3:return l=n.sent(),console.error("Failed to copy user story:",l),[3,5];case 4:return vt(),[7];case 5:return[2]}})})}},{children:i("div",e({style:null==Ue?void 0:Ue.menuItemContent,className:T.menuItemContentPadded},{children:[l(f,{size:16,color:null==Ue?void 0:Ue.menuIconColor}),l("p",e({style:null==Ue?void 0:Ue.menuLabel},{children:"Copy"}))]}))}))]}))]}),Re.userStory&&Je?l(_,{type:"outline",children:"Cancel",style:null==Ue?void 0:Ue.cancelButton,onClick:function(){var t;null===(t=dt.current)||void 0===t||t.abort(),je(function(t){return e(e({},t),{userStory:!1})})}}):l(r,{}),Re.userStory&&Je?l(_,{type:"fill",children:rt?i("span",e({className:T.savingSpinner,style:null==Ue?void 0:Ue.savingSpinner},{children:[l(m,{className:T.spinAnimation,style:null==Ue?void 0:Ue.spinAnimation}),l("span",{children:"Saving..."})]})):"Save",isDisable:rt,style:rt?null==Ue?void 0:Ue.savingButton:null==Ue?void 0:Ue.saveButton,onClick:function(){return t(void 0,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return at(!0),"userStory"==="userStory"&&(Y(_e),console.log("I am changing RTE editor values",_e)),[4,re(xe,qe,Z,null===(t=dt.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),Y(e(e({},_e),{isDefaultEdit:!1})),je(function(t){return e(e({},t),{userStory:!1})}),at(!1),[2]}})})}}):!ne&&!oe&&Je&&!1!==(null==pt?void 0:pt.showEditButton)&&Ce&&l("button",e({className:T.iconButton,style:null==Ue?void 0:Ue.editButton,onClick:function(){return je(function(t){return e(e({},t),{userStory:!0})})}},{children:l(y,{color:null==Ue?void 0:Ue.pencilIconColor,size:16})})),ht&&Je&&!ne&&!oe&&!1!==(null==pt?void 0:pt.showEditButton)&&i("button",e({type:"button",className:T.addSectionButton,style:null==Te?void 0:Te.addSectionButton,onClick:function(t){var n,i,l;t.stopPropagation();var r=(null!==(i=null===(n=X.sub_features)||void 0===n?void 0:n.length)&&void 0!==i?i:0)+1,a={artifactId:U(),title:"New Section ".concat(r),value:"Please add details for this section.",section:"subfeature",isDefaultOpen:!0},s=e(e({},X),{sub_features:o(o([],null!==(l=X.sub_features)&&void 0!==l?l:[],!0),[a],!1)});Pe(s),Y(s),Ke(!0),Fe(a.title)},"aria-label":"Add section",title:"Add section"},{children:[l(h,{size:14}),l("span",e({className:T.addSectionLabel},{children:"Add Section"}))]})),!ht&&!ne&&!oe&&l("button",e({type:"button",onClick:function(e){e.stopPropagation(),null==ye||ye()},className:T.iconButton,style:null==Te?void 0:Te.deleteButton,"aria-label":"Delete section",title:"Delete section"},{children:l(p,{size:16})})),(null==pt?void 0:pt.actionItemsButton)&&i(r,{children:[l("span",e({className:T.actionItemBtn,style:null==Ue?void 0:Ue.actionItemBtn,onClick:function(e){e.stopPropagation(),it(e.currentTarget)}},{children:l(S,{})})),l(D,e({id:"user-story-action-menu",anchorEl:ot,open:!!ot,onClose:ft,style:null==Ue?void 0:Ue.userStoryShareMenu},{children:null==me?void 0:me.items.map(function(t,n){return l(x,e({style:null==Ue?void 0:Ue.userStoryMenuItem,onClick:function(){t.onclick(X),ft()}},{children:i("div",e({className:T.menuItemContent,style:e(e({},null==Ue?void 0:Ue.menuItemContent),!t.isActive&&{cursor:"not-allowed",opacity:.5})},{children:[l("span",e({className:T.menuItemIcon,style:null==Ue?void 0:Ue.menuItemIcon},{children:t.icon})),l("p",e({style:null==Ue?void 0:Ue.menuLabel},{children:t.name})),l("span",{className:T.menuItemRight,style:null==Ue?void 0:Ue.menuItemRight})]}))}),"action-item-".concat(n,"-").concat(t.name))})}))]}),l("button",e({type:"button",onClick:function(e){e.stopPropagation(),mt()},style:null==Ue?void 0:Ue.chevronButton,className:T.chevronButton},{children:l(Je?g:C,{className:T.chevronIcon,color:null==Ue?void 0:Ue.chevronIconColor})}))]}))]})),l("div",{className:T.divider,style:null==Ue?void 0:Ue.dividerStyle})]})),Je&&l("div",e({className:T.cardContent,style:e(e({},null==Ue?void 0:Ue.cardContentStyle),{borderTop:be?"1px solid #E5E5E5":"none"})},{children:i("div",e({className:T.contentInner,style:null==Ue?void 0:Ue.contentInner},{children:[i("div",e({className:T.descriptionSection,style:null==Ue?void 0:Ue.descriptionSection},{children:[l("div",{className:T.justifyBetween,style:null==Ue?void 0:Ue.justifyBetween}),Re.userStory?l(P,{minHeight:"100%",height:"100%",type:"string",value:k(X.value)||"",handleUpdateState:function(t,n){var o=A(n);Pe(function(t){return e(e({},t),{value:o||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:Re.userStory?"edit":"readOnly"}):l(H,{showUserStoryDiff:oe,isParent:""===$,message:k(X.value)||"",artifactId:X.artifactId,customStyles:ke,isDisplayHighlightControl:se,contextVariant:he,showConfidenceScore:we})]})),null===(q=_e.sub_features)||void 0===q?void 0:q.map(function(t,n){var i=z(ue,!1,t.artifactId);return l(O,{artifactId:Z,isUserStoryCurrentlyUpdated:Q,artifactTitleId:"".concat(J,"-").concat(String.fromCharCode(65+n)),parentUserStory:X,parentIndex:"".concat($).concat($&&".").concat(ee),currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!1,currentUserStory:t,onUserStoryChange:function(t){return function(t,n){var i=o([],X.sub_features||[],!0);i[t]=n,Y(e(e({},X),{sub_features:i}))}(n,t)},enableDownload:!0,isDiffEditReviewMode:ne,showUserStoryDiff:oe,updateUserStoryArtifact:re,handleDownloadUserStory:ie,handleOpenSendDialog:le,isDisplayHighlightControl:se,elementDisplayConfig:ue,_resolvedConfig:i,actionItemsConfig:me,onDelete:function(){return function(t){var n=(X.sub_features||[]).filter(function(e,n){return n!==t}),o=e(e({},X),{sub_features:n});Pe(o),Y(o)}(n)}},t.artifactId)})]}))}))]}))},F=function(t){var n=t.artifactTitleIDs,a=t.isDiffEditReviewMode,s=t.showUserStoryDiff,u=t.updateUserStoryArtifact,c=t.isUserStoryCurrentlyUpdated,d=t.artifactId,v=t.handleOpenSendDialog,f=t.handleDownloadUserStory,m=t.selectedArtifactId,y=t.isDisplayHighlightControl,h=t.elementDisplayConfig,p=t.showWrapper,S=t.actionItemsConfig,g=t.contextVariant,C=t.showDisplayName,N=t.allowTitleEdit,b=t.showConfidenceScore,B=t.showBorderTop,D=t.defaultExpanded,x=R(),E=x.userStory,U=x.setUserStory,k=x.customStyles,A=x.searchQueryList,M=x.currentHighlightIndex,_=x.setCurrentHighlightIndex;x.segmentComponentConfig;var P=null==k?void 0:k.userStoryCardStyles,H=0===M,j=M===A.length-1;return i("div",e({className:T.userStoryCardWrapper,style:y?e(e({},null==P?void 0:P.userStoryCardWrapper),{position:"relative"}):null==P?void 0:P.userStoryCardWrapper},{children:[y&&l(r,{children:A.length>0&&l("div",e({className:T.wrapper},{children:l("div",e({className:T.highlightNavigation},{children:i("div",e({className:T.navigationContainer},{children:[i("span",e({className:T.navCounter},{children:[M+1," of ",A.length]})),i("div",e({className:T.navButtons},{children:[l("button",e({onClick:function(){M>0&&_(function(e){return e-1})},className:T.navButton,disabled:H},{children:l(I,{size:20,className:T.navIcon})})),l("button",e({onClick:function(){M<A.length-1&&_(function(e){return e+1})},className:T.navButton,disabled:j},{children:l(w,{size:20,className:T.navIcon})}))]}))]}))}))}))}),E.map(function(e,t){var i=z(h,!0);return l(O,{isUserStoryCurrentlyUpdated:c,artifactId:d,artifactTitleId:n[t]||"",currentUserStory:e,onUserStoryChange:function(e){U(function(n){return n[t]=e,o([],n,!0)})},parentIndex:"",currentIndex:"".concat(t+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:v,handleDownloadUserStory:f,selectedArtifactId:m,isDisplayHighlightControl:y,elementDisplayConfig:h,_resolvedConfig:i,showWrapper:p,defaultExpanded:D,actionItemsConfig:S,contextVariant:g,showDisplayName:C,allowTitleEdit:N,showConfidenceScore:b,showBorderTop:B},e.artifactId)})]}))};export{O as StoryCard,F as UserStoryCardWrapper,O as default,V as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeviationSummary.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"DeviationSummary.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.tsx"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"IterateComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"IterateComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.tsx"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"PopupDefaults.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,eAAO,MAAM,wBAAwB,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CAiDlE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;CAiExE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CAkB7D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CAKnE,CAAC;;;;;;;;;;;;;;;AAEF,wBAKE"}
1
+ {"version":3,"file":"PopupDefaults.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,eAAO,MAAM,wBAAwB,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CAiDlE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;CAiExE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CA0B7D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CAKnE,CAAC;;;;;;;;;;;;;;;AAEF,wBAKE"}
@@ -20,6 +20,7 @@ export interface CardConfig {
20
20
  secondBorder: string;
21
21
  impactBox: boolean;
22
22
  actions: ActionConfig[];
23
+ fallbackText?: string;
23
24
  }
24
25
  export declare function formatDate(date: string): string;
25
26
  export declare const ApprovedIcon: () => import("react/jsx-runtime").JSX.Element;
@@ -63,8 +64,10 @@ interface RedlineCardProps {
63
64
  actionsContainer?: CSSProperties;
64
65
  actionBtn?: CSSProperties;
65
66
  actionBtnDisabled?: CSSProperties;
67
+ fallbackSectionStyle?: CSSProperties;
66
68
  };
69
+ secondaryTitle?: string;
67
70
  }
68
- export declare function RedlineCard({ status, onClose, impactText, secondText, actionTakenByName, actionTakenAtTime, onHistory, onIterate, onReinstate, onRevert, disableAllActions, impactTitle, customConfigs, customStyles }: RedlineCardProps): import("react/jsx-runtime").JSX.Element;
71
+ export declare function RedlineCard({ status, onClose, impactText, secondText, actionTakenByName, actionTakenAtTime, onHistory, onIterate, onReinstate, onRevert, disableAllActions, impactTitle, customConfigs, customStyles, secondaryTitle, }: RedlineCardProps): import("react/jsx-runtime").JSX.Element;
69
72
  export {};
70
73
  //# sourceMappingURL=RedlineStatusCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RedlineStatusCard.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"RedlineStatusCard.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.tsx"],"names":[],"mappings":"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"}
@@ -46,6 +46,7 @@ interface StoryCardProps {
46
46
  elementDisplayConfig?: ElementDisplayConfig;
47
47
  _resolvedConfig?: CardDisplayConfig;
48
48
  showWrapper?: boolean;
49
+ defaultExpanded?: boolean;
49
50
  actionItemsConfig?: ActionItemsConfig;
50
51
  onDelete?: () => void;
51
52
  contextVariant?: "dropdown" | "inline";
@@ -55,7 +56,7 @@ interface StoryCardProps {
55
56
  showBorderTop?: boolean;
56
57
  }
57
58
  export declare function replaceLearnedTagsWithInfo(content: string): React.ReactNode[];
58
- export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, actionItemsConfig, onDelete, contextVariant, showDisplayName, allowTitleEdit, showConfidenceScore, showBorderTop }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
59
+ export declare const StoryCard: ({ isUserStoryCurrentlyUpdated, artifactId, artifactTitleId, parentUserStory, currentUserStory, onUserStoryChange, parentIndex, currentIndex, enableDownload, isDiffEditReviewMode, showUserStoryDiff, handleDownloadUserStory, handleOpenSendDialog, updateUserStoryArtifact, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, _resolvedConfig, showWrapper, defaultExpanded, actionItemsConfig, onDelete, contextVariant, showDisplayName, allowTitleEdit, showConfidenceScore, showBorderTop }: StoryCardProps) => import("react/jsx-runtime").JSX.Element;
59
60
  interface IProps {
60
61
  isUserStoryCurrentlyUpdated?: boolean;
61
62
  artifactId: string;
@@ -75,7 +76,8 @@ interface IProps {
75
76
  allowTitleEdit?: boolean;
76
77
  showConfidenceScore?: boolean;
77
78
  showBorderTop?: boolean;
79
+ defaultExpanded?: boolean;
78
80
  }
79
- export declare const UserStoryCardWrapper: ({ artifactTitleIDs, isDiffEditReviewMode, showUserStoryDiff, updateUserStoryArtifact, isUserStoryCurrentlyUpdated, artifactId, handleOpenSendDialog, handleDownloadUserStory, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, showWrapper, actionItemsConfig, contextVariant, showDisplayName, allowTitleEdit, showConfidenceScore, showBorderTop }: IProps) => import("react/jsx-runtime").JSX.Element;
81
+ export declare const UserStoryCardWrapper: ({ artifactTitleIDs, isDiffEditReviewMode, showUserStoryDiff, updateUserStoryArtifact, isUserStoryCurrentlyUpdated, artifactId, handleOpenSendDialog, handleDownloadUserStory, selectedArtifactId, isDisplayHighlightControl, elementDisplayConfig, showWrapper, actionItemsConfig, contextVariant, showDisplayName, allowTitleEdit, showConfidenceScore, showBorderTop, defaultExpanded }: IProps) => import("react/jsx-runtime").JSX.Element;
80
82
  export default StoryCard;
81
83
  //# sourceMappingURL=UserStoryCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.192",
3
+ "version": "0.0.194",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",