@viswa-test/test-citation 0.0.193 → 0.0.195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +290 -0
- package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CitationRenderer.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/cjs/features/ManageRemainders/AssigneeCalendarView.js +2 -0
- package/dist/cjs/features/ManageRemainders/AssigneeCalendarView.js.map +1 -0
- package/dist/cjs/features/ManageRemainders/ManageRemainder.module.css.js +2 -0
- package/dist/cjs/features/ManageRemainders/ManageRemainder.module.css.js.map +1 -0
- package/dist/cjs/features/ManageRemainders/ManageReminders.js +2 -0
- package/dist/cjs/features/ManageRemainders/ManageReminders.js.map +1 -0
- package/dist/cjs/features/ManageRemainders/ReminderFrequencyAutocomplete.js +2 -0
- package/dist/cjs/features/ManageRemainders/ReminderFrequencyAutocomplete.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/features/CognitiveCompare/CitationRenderer.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/features/ManageRemainders/AssigneeCalendarView.js +2 -0
- package/dist/features/ManageRemainders/AssigneeCalendarView.js.map +1 -0
- package/dist/features/ManageRemainders/ManageRemainder.module.css.js +2 -0
- package/dist/features/ManageRemainders/ManageRemainder.module.css.js.map +1 -0
- package/dist/features/ManageRemainders/ManageReminders.js +2 -0
- package/dist/features/ManageRemainders/ManageReminders.js.map +1 -0
- package/dist/features/ManageRemainders/ReminderFrequencyAutocomplete.js +2 -0
- package/dist/features/ManageRemainders/ReminderFrequencyAutocomplete.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/types/src/CommonConstants/CommonConstants.d.ts +7670 -0
- package/dist/types/src/CommonConstants/CommonConstants.d.ts.map +1 -1
- package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts +2 -2
- package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
- package/dist/types/src/features/ManageRemainders/AssigneeCalendarView.d.ts +19 -0
- package/dist/types/src/features/ManageRemainders/AssigneeCalendarView.d.ts.map +1 -0
- package/dist/types/src/features/ManageRemainders/ManageRemainderUsage.d.ts +2 -0
- package/dist/types/src/features/ManageRemainders/ManageRemainderUsage.d.ts.map +1 -0
- package/dist/types/src/features/ManageRemainders/ManageReminders.d.ts +49 -0
- package/dist/types/src/features/ManageRemainders/ManageReminders.d.ts.map +1 -0
- package/dist/types/src/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts +17 -0
- package/dist/types/src/features/ManageRemainders/ReminderFrequencyAutocomplete.d.ts.map +1 -0
- package/dist/types/src/features/ManageRemainders/types/type.d.ts +79 -0
- package/dist/types/src/features/ManageRemainders/types/type.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +14 -7
|
@@ -0,0 +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 a=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;a&&e.setAttribute("nonce",a),e.appendChild(document.createTextNode(".ManageRemainder-module_mrContainer__kVgxT{align-items:center;display:flex;flex-direction:column;gap:1rem;justify-content:center;margin-top:1rem}.ManageRemainder-module_mrSectionBox__bEDtY{border:1px solid #b6c1ca;border-radius:10px;cursor:pointer;display:flex;flex-direction:column;gap:.75rem;padding:.75rem;width:100%}.ManageRemainder-module_mrSectionHeader__5k1HQ{display:flex;flex-direction:column;gap:.25rem}.ManageRemainder-module_mrSectionHeaderContent__eKJWh{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between;width:100%}.ManageRemainder-module_mrSectionHeaderLeft__I-hzD{display:flex;flex-direction:column;gap:.25rem}.ManageRemainder-module_mrSectionHeaderRight__W-BY3{align-items:center;display:flex;gap:.25rem;justify-content:flex-start}.ManageRemainder-module_mrSectionTitleWrapper__NA6i-{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrSectionTitleIcon__6pWZz{align-items:center;display:flex;height:.75rem;justify-content:center;width:.75rem}.ManageRemainder-module_mrSectionTitle__BPAU2{color:#334155;font-size:.875rem;font-weight:600}.ManageRemainder-module_mrSectionDescription__HdkjC{color:#334155;font-size:.75rem;font-weight:400}.ManageRemainder-module_mrIconSmall__kbiWd{color:#334155;height:.75rem;width:.75rem}.ManageRemainder-module_mrIconInfo__U8Ylz{color:#64748b;height:1rem;width:1rem}.ManageRemainder-module_mrIconArrow__wMp9q{stroke:#334155;height:.75rem;width:.75rem}.ManageRemainder-module_mrIconAction__l9uVi{height:1rem;width:1rem}.ManageRemainder-module_mrIconPreview__oYo84{stroke:#64748b;height:1rem;width:1rem}.ManageRemainder-module_mrIconCalendar__2gaaf{color:#1e293b;height:1.25rem;width:1.25rem}.ManageRemainder-module_mrIconChevronToggle__LjUy1{color:#4f46e5;height:1rem;position:fixed;width:1rem}.ManageRemainder-module_mrIconDropdown__-heGj{height:.75rem;width:.75rem}.ManageRemainder-module_mrIconSuccess__EMJrR{color:#16a34a;height:1.5rem;width:1.5rem}.ManageRemainder-module_mrChevronButton__QKLsI{align-items:center;display:flex;justify-content:center}.ManageRemainder-module_mrChevronIcon__CxLkq{height:1.25rem;transition:transform .2s ease;width:1.25rem}.ManageRemainder-module_mrChevronIcon__CxLkq.ManageRemainder-module_mrChevronRotated__NL7Ho{transform:rotate(180deg)}.ManageRemainder-module_mrSuccessMessage__4N0gO{align-items:center;display:inline-flex;flex-direction:column;gap:.75rem;width:100%}.ManageRemainder-module_mrSuccessIcon__PsybU{align-items:center;background-color:#dcfce7;border-radius:9999px;box-shadow:0 0 0 4px #fff;display:flex;height:3rem;justify-content:center;width:3rem}.ManageRemainder-module_mrSuccessIconInner__yEl8-{height:1.5rem;position:relative;width:1.5rem}.ManageRemainder-module_mrSuccessText__-hXJh{align-items:center;display:flex;flex-direction:column;gap:.25rem;text-align:center}.ManageRemainder-module_mrSuccessTitle__Zakof{color:#166534;font-size:1rem;font-weight:500;line-height:1.5}.ManageRemainder-module_mrSuccessDescription__-r7A8{color:#22c55e;font-size:.875rem;font-weight:400;line-height:1.25}.ManageRemainder-module_mrRecipientsSection__L0f1k{display:flex;flex-direction:column;gap:.5rem}.ManageRemainder-module_mrRecipientsLabel__Escta{color:#3f3f46;font-size:.75rem;font-weight:500}.ManageRemainder-module_mrRecipientsGrid__-7giX{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.75rem}.ManageRemainder-module_mrRecipientItem__C0uw5{align-items:center;background-color:#fff;border:1px solid #cbd5e1;border-radius:.375rem;display:flex;gap:.5rem;padding:.25rem .5rem}.ManageRemainder-module_mrRecipientInfo__djuEp{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrRecipientAvatar__g6YDo{align-items:center;border-radius:9999px;display:flex;font-size:.6875rem;font-weight:500;height:1.5rem;justify-content:center;width:1.5rem}.ManageRemainder-module_mrRecipientName__gFCJU{color:#3f3f46;font-size:.875rem}.ManageRemainder-module_mrCheckboxUnchecked__j0wYE{background-color:#fff;border:1px solid #d0d5dd;border-radius:.25rem;height:1rem;width:1rem}.ManageRemainder-module_mrCheckboxChecked__TowNb{align-items:center;background-color:#fff;border:1px solid #6938ef;border-radius:.25rem;display:flex;height:1rem;justify-content:center;width:1rem}.ManageRemainder-module_mrCheckboxIcon__RVL-V{height:.625rem;width:.625rem}.ManageRemainder-module_mrActionsSection__in30u{display:flex;gap:.75rem}.ManageRemainder-module_mrActionButton__x9IEC{align-items:center;border:none;border-radius:.375rem;cursor:pointer;display:flex;flex:1;font-size:.875rem;font-weight:500;gap:.5rem;height:2.25rem;justify-content:center}.ManageRemainder-module_mrActionButtonSecondary__GBvpQ{background-color:#fff;border:1px solid #a5b4fc;color:#4f46e5}.ManageRemainder-module_mrActionButtonSecondary__GBvpQ:hover{background-color:#f3f4f6}.ManageRemainder-module_mrActionButtonPrimary__vRNbF{background-color:#4f46e5;color:#fff}.ManageRemainder-module_mrActionButtonPrimary__vRNbF:hover{background-color:#4338ca}.ManageRemainder-module_mrMainContent__2gAUU{display:flex;flex-direction:row;gap:1.75rem;width:100%}.ManageRemainder-module_mrEscalationContainer__V4PfB{background-color:#ffffffb3;border-radius:10px;display:flex;flex:1;flex-direction:column;gap:.75rem;min-width:0;outline:1px solid #b6c1ca;outline-offset:-1px;padding:.75rem}.ManageRemainder-module_mrEscalationHeaderWrapper__vOg2K{cursor:pointer;display:flex;flex-direction:column;gap:.25rem;justify-content:space-between}.ManageRemainder-module_mrEscalationHeader__sV-tw{align-items:center;display:flex;gap:.5rem;justify-content:space-between}.ManageRemainder-module_mrEscalationTitleWrapper__G90xv{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrEscalationTitleText__X233z{color:#3f3f46;font-size:.875rem;font-weight:600;line-height:1.25}.ManageRemainder-module_mrTooltipIcon__QpPGO{height:1rem;overflow:hidden;position:relative;width:1rem}.ManageRemainder-module_mrEscalationActions__RoHhx{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrEscalationPreviewButton__68J90{align-items:center;background-color:#fff;border:none;border-radius:1.29rem;box-shadow:0 1px 2px 0 #0000000d;cursor:pointer;display:flex;gap:.375rem;height:1.75rem;outline:.54px solid #d1d5db;outline-offset:-.54px;padding:.375rem .875rem}.ManageRemainder-module_mrEscalationPreviewIcon__KNa9K{height:1rem;overflow:hidden;position:relative;width:1rem}.ManageRemainder-module_mrEscalationPreviewText__FM5S5{color:#6b7280;font-size:.75rem;font-weight:400;line-height:1rem}.ManageRemainder-module_mrEscalationDescription__z-3q8{color:#334155;font-size:.75rem;font-weight:400}.ManageRemainder-module_mrReorderGroup__sLaAn{display:flex;flex-direction:column;gap:1.5rem}.ManageRemainder-module_mrReminderItem__kwd0b{display:flex;gap:1rem;justify-content:space-between;width:100%}.ManageRemainder-module_mrReminderLabelBox__KRi5V{display:flex;flex-shrink:0;justify-content:center;width:90px}.ManageRemainder-module_mrReminderLabelInner__GuTh-{align-items:center;display:flex}.ManageRemainder-module_mrReminderContent__yKbGS{align-items:center;display:flex;gap:1rem;width:100%}.ManageRemainder-module_mrDragHandle__4Lz8t{align-items:center;cursor:grab;display:flex;gap:.75rem}.ManageRemainder-module_mrReminderBox__ur54z{border-radius:.75rem;padding:.5rem;width:100%}.ManageRemainder-module_mrReminderFields__yQROF{display:flex;flex-direction:column;flex-wrap:wrap;gap:1rem;width:100%}.ManageRemainder-module_mrReminderHeader__wMUF6{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;width:100%}.ManageRemainder-module_mrReminderAssignee__0p1Gb{align-items:center;display:flex;gap:.75rem}.ManageRemainder-module_mrReminderAvatar__6KM5V{align-items:center;background-color:#dbeafe;border-radius:9999px;display:flex;height:1.75rem;justify-content:center;width:1.75rem}.ManageRemainder-module_mrReminderInitials__bUFkd{color:#1e40af;font-size:.625rem;font-weight:500}.ManageRemainder-module_mrReminderName__zjceM{color:#1f2937;font-size:.75rem;font-weight:500}.ManageRemainder-module_mrReminderStatement__7Y0B-{border-radius:9999px;display:flex;padding:.5rem .75rem}.ManageRemainder-module_mrReminderStatementText__LodbK{font-size:.625rem;font-weight:500;letter-spacing:-.01em}.ManageRemainder-module_mrReminderDateFields__GT4N9{align-items:flex-start;display:flex;gap:1.5rem;width:100%}.ManageRemainder-module_mrReminderField__XBiO4{width:100%}.ManageRemainder-module_mrReminderFieldLabel__S9dXV{color:#3f3f46;font-size:.75rem;font-weight:500;margin-bottom:.25rem}.ManageRemainder-module_mrReminderDatePicker__Vgbui{align-items:center;box-shadow:0 1px 2px 0 #0000000d;color:#3f3f46;display:flex;font-size:.75rem;gap:.75rem;height:1.75rem;justify-content:space-between}.ManageRemainder-module_mrReminderDueDate__7nawQ{align-items:center;background-color:#f1f5f9;border:.5px solid #cbd5e1;border-radius:0;color:#64748b;display:flex;font-size:.75rem;height:1.75rem;padding:0 .75rem}.ManageRemainder-module_mrReminderFrequency__Qq1qa{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrReminderFrequencyText__lGfl0{color:#374151;font-size:.75rem}.ManageRemainder-module_mrEscalationCheckbox__xZrG3{align-items:flex-start;border:1px solid #e5e7eb;border-radius:.25rem;color:#3f3f46;display:flex;flex-direction:column;font-size:.75rem;font-weight:500;gap:.5rem;padding:.5rem;width:100%}.ManageRemainder-module_mrEscalationCheckboxHeader__1GgFB{align-items:flex-start;display:flex;gap:.5rem;justify-content:flex-start;width:100%}.ManageRemainder-module_mrEscalationContent__ItAyr{display:flex;flex-direction:column;gap:.5rem;overflow:hidden;width:100%}.ManageRemainder-module_mrEscalationCondition__4GCeD{color:#3f3f46;font-family:Inter,sans-serif;font-size:.75rem;font-weight:500;line-height:1;margin-top:.75rem;width:100%}.ManageRemainder-module_mrEscalationFields__oFHp-{align-items:flex-end;display:flex;flex-wrap:wrap;gap:1.5rem;gap:.625rem;width:100%}.ManageRemainder-module_mrEscalationFieldGroup__uES3-{display:flex;flex:1;gap:.75rem;min-width:130px}.ManageRemainder-module_mrEscalationFieldGroupLarge__MpVYP{flex:1;min-width:265px}.ManageRemainder-module_mrEscalationFieldGroupSmall__FFbRJ{display:flex;flex:1;min-width:88px}.ManageRemainder-module_mrEscalationFieldText__n7EfI{color:#3f3f46;font-family:Inter,sans-serif;font-size:.75rem;font-weight:500;line-height:1.5;min-width:152px}.ManageRemainder-module_mrDropdownButton__9wvGh{align-items:center;cursor:pointer;display:flex;justify-content:center}.ManageRemainder-module_mrCalendarPanel__PnMpt{flex-shrink:0;position:relative}.ManageRemainder-module_mrCalendarCollapsed__mb-bI{background-color:#fff;border:1px solid #b6c1ca;border-radius:10px;display:flex;height:100%;justify-content:center;padding-top:281px;width:43px}.ManageRemainder-module_mrCalendarToggle__9HIet{align-items:center;background:none;border:none;cursor:pointer;display:flex;height:3rem;justify-content:center;left:-26px;position:absolute;top:50%;transform:translateY(-50%);width:2.25rem;z-index:10}@media (max-width:1024px){.ManageRemainder-module_mrMainContent__2gAUU{flex-direction:column;gap:1rem}.ManageRemainder-module_mrCalendarPanel__PnMpt{width:100%}.ManageRemainder-module_mrCalendarToggle__9HIet{display:none}}@media (max-width:768px){.ManageRemainder-module_mrContainer__kVgxT{gap:.5rem;margin-top:.5rem}.ManageRemainder-module_mrSectionBox__bEDtY{gap:.5rem;padding:.5rem}.ManageRemainder-module_mrActionsSection__in30u,.ManageRemainder-module_mrSectionHeaderContent__eKJWh{flex-direction:column}.ManageRemainder-module_mrActionButton__x9IEC{height:2rem}.ManageRemainder-module_mrReminderDateFields__GT4N9{flex-direction:column;gap:1rem}.ManageRemainder-module_mrReminderContent__yKbGS,.ManageRemainder-module_mrReminderItem__kwd0b{gap:.5rem}.ManageRemainder-module_mrEscalationFields__oFHp-{flex-direction:column}.ManageRemainder-module_mrEscalationFieldGroupLarge__MpVYP,.ManageRemainder-module_mrEscalationFieldGroupSmall__FFbRJ,.ManageRemainder-module_mrEscalationFieldGroup__uES3-{min-width:100%;width:100%}.ManageRemainder-module_mrEscalationFieldText__n7EfI{min-width:auto}.ManageRemainder-module_mrReminderLabelBox__KRi5V{width:100%}}button:focus{outline:2px solid #4f46e5;outline-offset:2px}button:active{opacity:.9}.ManageRemainder-module_mrHiddenSection__c67oj{overflow:hidden}.ManageRemainder-module_mrNoPointerEvents__OQbav{pointer-events:none}.ManageRemainder-module_mrPointerEventsAuto__0avRT{pointer-events:auto}.ManageRemainder-module_calendarContainer__N804t{background-color:#fff;border:1px solid #b6c1ca;border-radius:8px;height:100%;min-width:345px;padding:16px}.ManageRemainder-module_calendarHeader__BjE9o{align-items:center;display:flex;gap:6px;margin-bottom:24px}.ManageRemainder-module_calendarHeaderTitle__U8NmV{align-items:center;color:#334155;display:flex;font-size:14px;font-weight:600;gap:6px;line-height:20px}.ManageRemainder-module_calendarHeaderInfo__s05VQ{height:16px;width:16px}.ManageRemainder-module_monthNav__FBbyi{align-items:center;display:flex;justify-content:space-between;margin-bottom:24px}.ManageRemainder-module_monthNavBtn__oor7V{align-items:center;background:none;border:1px solid #dce0e5;border-radius:8px;cursor:pointer;display:flex;justify-content:center;padding:8px}.ManageRemainder-module_monthNavTitle__zgDDq{color:#14181f;font-size:15px;font-weight:600;margin:0}.ManageRemainder-module_weekdayHeader__XciP8{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:8px}.ManageRemainder-module_weekdayLabel__dDWJo{color:#6f7c8e;font-size:15px;font-weight:400;text-align:center}.ManageRemainder-module_dayGrid__dT0og{display:grid;gap:8px 11px;grid-template-columns:repeat(7,1fr);margin-top:16px}.ManageRemainder-module_dayCell__AGx-w{align-items:center;border-radius:8px;cursor:pointer;display:flex;flex-direction:column;height:35px;justify-content:center}.ManageRemainder-module_dayCellPast__91hbu{background-color:#daf7d2}.ManageRemainder-module_dayCellToday__q8Wvi{border:2px solid #4f46e5}.ManageRemainder-module_dayNumber__6yOVW{font-size:14px}.ManageRemainder-module_dayNumberCurrent__6ML9j{color:#0f172a}.ManageRemainder-module_dayNumberOutside__JQ-t7{color:#94a3b8}.ManageRemainder-module_indicatorWrapper__5FOym{align-items:center;display:flex}.ManageRemainder-module_indicatorDot__ElweF{border-radius:50%;height:6px;width:6px}.ManageRemainder-module_indicatorDotOverlap__QPBRy{margin-left:-1px}.ManageRemainder-module_tooltipContent__ErzOu{background-color:#f8fafc;border-radius:8px;min-width:120px;padding:8px}.ManageRemainder-module_tooltipHeader__Q4qHO{border-bottom:1px solid #cbd5e1;margin-bottom:4px;padding-bottom:4px}.ManageRemainder-module_tooltipTitle__iZtI4{color:#0f172a;font-size:10px;font-weight:500;line-height:16px}.ManageRemainder-module_tooltipDate__ulMaQ{color:#334155;font-size:8px;font-weight:400;line-height:16px}.ManageRemainder-module_tooltipAssignees__jGc-Y{display:flex;flex-direction:column;gap:2px}.ManageRemainder-module_tooltipAssigneeRow__nzr3m{align-items:center;display:flex;gap:12px;justify-content:space-between}.ManageRemainder-module_tooltipAssigneeInfo__vIXTP{align-items:center;display:flex;gap:4px}.ManageRemainder-module_tooltipAssigneeDot__yz6E6{border-radius:50%;height:8px;width:8px}.ManageRemainder-module_tooltipAssigneeName__JJbid{color:#0f172a;font-size:9px;font-weight:400;line-height:16px}.ManageRemainder-module_tooltipAssigneeCount__49OVk{color:#0f172a;font-size:9px;font-weight:500;line-height:16px}.ManageRemainder-module_legendWrapper__OfxhE{align-items:flex-start;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:38px}.ManageRemainder-module_legendInner__iwIe7{align-items:flex-start;display:flex;gap:6px}.ManageRemainder-module_legendItem__zbxBG{align-items:center;border-radius:4px;cursor:pointer;display:flex;gap:4px;padding:4px 8px;width:100%}.ManageRemainder-module_legendItemAssignee1__I6F-D{background-color:#fdf2f8;border:1px solid #be185d}.ManageRemainder-module_legendItemAssignee2__YObVW{background-color:#eef2ff;border:1px solid #4338ca}.ManageRemainder-module_legendItemAssignee3__uCkBW{background-color:#fff7ed;border:1px solid #f87171;justify-content:center}.ManageRemainder-module_legendLabel__Va4Sw{font-size:12px;font-weight:500}.ManageRemainder-module_legendLabelAssignee1__vG-F4{color:#be185d}.ManageRemainder-module_legendLabelAssignee2__CbGVb{color:#4338ca}.ManageRemainder-module_legendLabelAssignee3__cz-57{color:#f87171}.ManageRemainder-module_checkboxIconUnchecked__xoI0S{background-color:#fff;border:1px solid #d0d5dd;border-radius:4px;height:16px;width:16px}.ManageRemainder-module_checkboxIconChecked__Y3mN2{align-items:center;background-color:#fff;border-radius:4px;display:flex;height:16px;justify-content:center;width:16px}.ManageRemainder-module_checkboxIconCheckedAssignee1__817aZ{border:1px solid #c11574}.ManageRemainder-module_checkboxIconCheckedAssignee2__hTAKp{border:1px solid #3538cd}.ManageRemainder-module_checkboxIconCheckedAssignee3__hQwwN{border:1px solid #ff6058}.ManageRemainder-module_checkboxCheckSvg__R87mg{height:10px;width:10px}.ManageRemainder-module_bottomLegend__rRzkt{align-items:center;display:inline-flex;gap:24px;margin-left:4px;margin-top:16px}.ManageRemainder-module_bottomLegendItem__u90vA{align-items:center;display:flex;gap:4px}.ManageRemainder-module_bottomLegendSwatch__9uu1M{border-radius:2px;height:12px;width:12px}.ManageRemainder-module_bottomLegendSwatchPast__-DcRZ{background-color:#daf7d2}.ManageRemainder-module_bottomLegendSwatchFailed__9lK2I{background-color:#fecaca}.ManageRemainder-module_bottomLegendLabel__9eDD-{color:#334155;font-size:12px;font-weight:500}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={mrContainer:"ManageRemainder-module_mrContainer__kVgxT",mrSectionBox:"ManageRemainder-module_mrSectionBox__bEDtY",mrSectionHeader:"ManageRemainder-module_mrSectionHeader__5k1HQ",mrSectionHeaderContent:"ManageRemainder-module_mrSectionHeaderContent__eKJWh",mrSectionHeaderLeft:"ManageRemainder-module_mrSectionHeaderLeft__I-hzD",mrSectionHeaderRight:"ManageRemainder-module_mrSectionHeaderRight__W-BY3",mrSectionTitleWrapper:"ManageRemainder-module_mrSectionTitleWrapper__NA6i-",mrSectionTitleIcon:"ManageRemainder-module_mrSectionTitleIcon__6pWZz",mrSectionTitle:"ManageRemainder-module_mrSectionTitle__BPAU2",mrSectionDescription:"ManageRemainder-module_mrSectionDescription__HdkjC",mrIconSmall:"ManageRemainder-module_mrIconSmall__kbiWd",mrIconInfo:"ManageRemainder-module_mrIconInfo__U8Ylz",mrIconArrow:"ManageRemainder-module_mrIconArrow__wMp9q",mrIconAction:"ManageRemainder-module_mrIconAction__l9uVi",mrIconPreview:"ManageRemainder-module_mrIconPreview__oYo84",mrIconCalendar:"ManageRemainder-module_mrIconCalendar__2gaaf",mrIconChevronToggle:"ManageRemainder-module_mrIconChevronToggle__LjUy1",mrIconDropdown:"ManageRemainder-module_mrIconDropdown__-heGj",mrIconSuccess:"ManageRemainder-module_mrIconSuccess__EMJrR",mrChevronButton:"ManageRemainder-module_mrChevronButton__QKLsI",mrChevronIcon:"ManageRemainder-module_mrChevronIcon__CxLkq",mrChevronRotated:"ManageRemainder-module_mrChevronRotated__NL7Ho",mrSuccessMessage:"ManageRemainder-module_mrSuccessMessage__4N0gO",mrSuccessIcon:"ManageRemainder-module_mrSuccessIcon__PsybU",mrSuccessIconInner:"ManageRemainder-module_mrSuccessIconInner__yEl8-",mrSuccessText:"ManageRemainder-module_mrSuccessText__-hXJh",mrSuccessTitle:"ManageRemainder-module_mrSuccessTitle__Zakof",mrSuccessDescription:"ManageRemainder-module_mrSuccessDescription__-r7A8",mrHiddenSection:"ManageRemainder-module_mrHiddenSection__c67oj",mrRecipientsSection:"ManageRemainder-module_mrRecipientsSection__L0f1k",mrRecipientsLabel:"ManageRemainder-module_mrRecipientsLabel__Escta",mrRecipientsGrid:"ManageRemainder-module_mrRecipientsGrid__-7giX",mrRecipientItem:"ManageRemainder-module_mrRecipientItem__C0uw5",mrRecipientInfo:"ManageRemainder-module_mrRecipientInfo__djuEp",mrRecipientAvatar:"ManageRemainder-module_mrRecipientAvatar__g6YDo",mrRecipientName:"ManageRemainder-module_mrRecipientName__gFCJU",mrCheckboxUnchecked:"ManageRemainder-module_mrCheckboxUnchecked__j0wYE",mrCheckboxChecked:"ManageRemainder-module_mrCheckboxChecked__TowNb",mrCheckboxIcon:"ManageRemainder-module_mrCheckboxIcon__RVL-V",mrActionsSection:"ManageRemainder-module_mrActionsSection__in30u",mrActionButton:"ManageRemainder-module_mrActionButton__x9IEC",mrActionButtonSecondary:"ManageRemainder-module_mrActionButtonSecondary__GBvpQ",mrActionButtonPrimary:"ManageRemainder-module_mrActionButtonPrimary__vRNbF",mrMainContent:"ManageRemainder-module_mrMainContent__2gAUU",mrEscalationContainer:"ManageRemainder-module_mrEscalationContainer__V4PfB",mrEscalationHeaderWrapper:"ManageRemainder-module_mrEscalationHeaderWrapper__vOg2K",mrEscalationHeader:"ManageRemainder-module_mrEscalationHeader__sV-tw",mrEscalationTitleWrapper:"ManageRemainder-module_mrEscalationTitleWrapper__G90xv",mrEscalationTitleText:"ManageRemainder-module_mrEscalationTitleText__X233z",mrTooltipIcon:"ManageRemainder-module_mrTooltipIcon__QpPGO",mrEscalationActions:"ManageRemainder-module_mrEscalationActions__RoHhx",mrEscalationPreviewButton:"ManageRemainder-module_mrEscalationPreviewButton__68J90",mrEscalationPreviewIcon:"ManageRemainder-module_mrEscalationPreviewIcon__KNa9K",mrEscalationPreviewText:"ManageRemainder-module_mrEscalationPreviewText__FM5S5",mrEscalationDescription:"ManageRemainder-module_mrEscalationDescription__z-3q8",mrReorderGroup:"ManageRemainder-module_mrReorderGroup__sLaAn",mrReminderItem:"ManageRemainder-module_mrReminderItem__kwd0b",mrReminderLabelBox:"ManageRemainder-module_mrReminderLabelBox__KRi5V",mrReminderLabelInner:"ManageRemainder-module_mrReminderLabelInner__GuTh-",mrReminderContent:"ManageRemainder-module_mrReminderContent__yKbGS",mrDragHandle:"ManageRemainder-module_mrDragHandle__4Lz8t",mrReminderBox:"ManageRemainder-module_mrReminderBox__ur54z",mrReminderFields:"ManageRemainder-module_mrReminderFields__yQROF",mrReminderHeader:"ManageRemainder-module_mrReminderHeader__wMUF6",mrReminderAssignee:"ManageRemainder-module_mrReminderAssignee__0p1Gb",mrReminderAvatar:"ManageRemainder-module_mrReminderAvatar__6KM5V",mrReminderInitials:"ManageRemainder-module_mrReminderInitials__bUFkd",mrReminderName:"ManageRemainder-module_mrReminderName__zjceM",mrReminderStatement:"ManageRemainder-module_mrReminderStatement__7Y0B-",mrReminderStatementText:"ManageRemainder-module_mrReminderStatementText__LodbK",mrReminderDateFields:"ManageRemainder-module_mrReminderDateFields__GT4N9",mrReminderField:"ManageRemainder-module_mrReminderField__XBiO4",mrReminderFieldLabel:"ManageRemainder-module_mrReminderFieldLabel__S9dXV",mrReminderDatePicker:"ManageRemainder-module_mrReminderDatePicker__Vgbui",mrReminderDueDate:"ManageRemainder-module_mrReminderDueDate__7nawQ",mrReminderFrequency:"ManageRemainder-module_mrReminderFrequency__Qq1qa",mrReminderFrequencyText:"ManageRemainder-module_mrReminderFrequencyText__lGfl0",mrEscalationCheckbox:"ManageRemainder-module_mrEscalationCheckbox__xZrG3",mrEscalationCheckboxHeader:"ManageRemainder-module_mrEscalationCheckboxHeader__1GgFB",mrEscalationContent:"ManageRemainder-module_mrEscalationContent__ItAyr",mrEscalationCondition:"ManageRemainder-module_mrEscalationCondition__4GCeD",mrEscalationFields:"ManageRemainder-module_mrEscalationFields__oFHp-",mrEscalationFieldGroup:"ManageRemainder-module_mrEscalationFieldGroup__uES3-",mrEscalationFieldGroupLarge:"ManageRemainder-module_mrEscalationFieldGroupLarge__MpVYP",mrEscalationFieldGroupSmall:"ManageRemainder-module_mrEscalationFieldGroupSmall__FFbRJ",mrEscalationFieldText:"ManageRemainder-module_mrEscalationFieldText__n7EfI",mrDropdownButton:"ManageRemainder-module_mrDropdownButton__9wvGh",mrCalendarPanel:"ManageRemainder-module_mrCalendarPanel__PnMpt",mrCalendarCollapsed:"ManageRemainder-module_mrCalendarCollapsed__mb-bI",mrCalendarToggle:"ManageRemainder-module_mrCalendarToggle__9HIet",mrNoPointerEvents:"ManageRemainder-module_mrNoPointerEvents__OQbav",mrPointerEventsAuto:"ManageRemainder-module_mrPointerEventsAuto__0avRT",calendarContainer:"ManageRemainder-module_calendarContainer__N804t",calendarHeader:"ManageRemainder-module_calendarHeader__BjE9o",calendarHeaderTitle:"ManageRemainder-module_calendarHeaderTitle__U8NmV",calendarHeaderInfo:"ManageRemainder-module_calendarHeaderInfo__s05VQ",monthNav:"ManageRemainder-module_monthNav__FBbyi",monthNavBtn:"ManageRemainder-module_monthNavBtn__oor7V",monthNavTitle:"ManageRemainder-module_monthNavTitle__zgDDq",weekdayHeader:"ManageRemainder-module_weekdayHeader__XciP8",weekdayLabel:"ManageRemainder-module_weekdayLabel__dDWJo",dayGrid:"ManageRemainder-module_dayGrid__dT0og",dayCell:"ManageRemainder-module_dayCell__AGx-w",dayCellPast:"ManageRemainder-module_dayCellPast__91hbu",dayCellToday:"ManageRemainder-module_dayCellToday__q8Wvi",dayNumber:"ManageRemainder-module_dayNumber__6yOVW",dayNumberCurrent:"ManageRemainder-module_dayNumberCurrent__6ML9j",dayNumberOutside:"ManageRemainder-module_dayNumberOutside__JQ-t7",indicatorWrapper:"ManageRemainder-module_indicatorWrapper__5FOym",indicatorDot:"ManageRemainder-module_indicatorDot__ElweF",indicatorDotOverlap:"ManageRemainder-module_indicatorDotOverlap__QPBRy",tooltipContent:"ManageRemainder-module_tooltipContent__ErzOu",tooltipHeader:"ManageRemainder-module_tooltipHeader__Q4qHO",tooltipTitle:"ManageRemainder-module_tooltipTitle__iZtI4",tooltipDate:"ManageRemainder-module_tooltipDate__ulMaQ",tooltipAssignees:"ManageRemainder-module_tooltipAssignees__jGc-Y",tooltipAssigneeRow:"ManageRemainder-module_tooltipAssigneeRow__nzr3m",tooltipAssigneeInfo:"ManageRemainder-module_tooltipAssigneeInfo__vIXTP",tooltipAssigneeDot:"ManageRemainder-module_tooltipAssigneeDot__yz6E6",tooltipAssigneeName:"ManageRemainder-module_tooltipAssigneeName__JJbid",tooltipAssigneeCount:"ManageRemainder-module_tooltipAssigneeCount__49OVk",legendWrapper:"ManageRemainder-module_legendWrapper__OfxhE",legendInner:"ManageRemainder-module_legendInner__iwIe7",legendItem:"ManageRemainder-module_legendItem__zbxBG",legendItemAssignee1:"ManageRemainder-module_legendItemAssignee1__I6F-D",legendItemAssignee2:"ManageRemainder-module_legendItemAssignee2__YObVW",legendItemAssignee3:"ManageRemainder-module_legendItemAssignee3__uCkBW",legendLabel:"ManageRemainder-module_legendLabel__Va4Sw",legendLabelAssignee1:"ManageRemainder-module_legendLabelAssignee1__vG-F4",legendLabelAssignee2:"ManageRemainder-module_legendLabelAssignee2__CbGVb",legendLabelAssignee3:"ManageRemainder-module_legendLabelAssignee3__cz-57",checkboxIconUnchecked:"ManageRemainder-module_checkboxIconUnchecked__xoI0S",checkboxIconChecked:"ManageRemainder-module_checkboxIconChecked__Y3mN2",checkboxIconCheckedAssignee1:"ManageRemainder-module_checkboxIconCheckedAssignee1__817aZ",checkboxIconCheckedAssignee2:"ManageRemainder-module_checkboxIconCheckedAssignee2__hTAKp",checkboxIconCheckedAssignee3:"ManageRemainder-module_checkboxIconCheckedAssignee3__hQwwN",checkboxCheckSvg:"ManageRemainder-module_checkboxCheckSvg__R87mg",bottomLegend:"ManageRemainder-module_bottomLegend__rRzkt",bottomLegendItem:"ManageRemainder-module_bottomLegendItem__u90vA",bottomLegendSwatch:"ManageRemainder-module_bottomLegendSwatch__9uu1M",bottomLegendSwatchPast:"ManageRemainder-module_bottomLegendSwatchPast__-DcRZ",bottomLegendSwatchFailed:"ManageRemainder-module_bottomLegendSwatchFailed__9lK2I",bottomLegendLabel:"ManageRemainder-module_bottomLegendLabel__9eDD-"};
|
|
2
|
+
//# sourceMappingURL=ManageRemainder.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManageRemainder.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),s=require("react"),n=require("lucide-react"),i=require("@mui/material/Checkbox"),t=require("@mui/material"),r=require("framer-motion"),l=require("@mui/icons-material/DragIndicator"),d=require("@mui/x-date-pickers"),o=require("@mui/x-date-pickers/AdapterDayjs"),c=require("./ReminderFrequencyAutocomplete.js"),u=require("./AssigneeCalendarView.js"),m=require("dayjs"),f=require("./ManageRemainder.module.css.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=_(i),h=_(l),x=_(m),g=["Assignee 1","Assignee 2","Assignee 3"],p=[{bg:"#FDF2FA",text:"#C11574"},{bg:"#EEF4FF",text:"#3538CD"},{bg:"#F1F5F9",text:"#344054"}],j=[{bg:"#FDF2FA",text:"#C93185"},{bg:"#EEF2FF",text:"#6366F1"},{bg:"#FFF4E5",text:"#FF6058"}],N=[{id:"1",name:"Assignee 1",color:"#C11574",bg:"#FDF2F8",startDate:new Date("2026-11-09"),dueDate:new Date("2026-12-01")},{id:"2",name:"Assignee 2",color:"#3538CD",bg:"#EEF4FF",startDate:new Date("2026-11-21"),dueDate:new Date("2026-12-03")},{id:"3",name:"Assignee 3",color:"#FF6058",bg:"#FFF7ED",startDate:new Date("2026-12-01"),dueDate:new Date("2026-12-03")}],b=[{bg:"#DBEAFE",text:"#1E40AF"},{bg:"#CCFBF1",text:"#0D9488"},{bg:"#DCFCE7",text:"#166534"}],y=[{initials:"OR",name:"Olivia Rhye",checked:!1,bg:"bg-blue-100",text:"text-blue-700"},{initials:"DM",name:"Daniela Mark",checked:!1,bg:"bg-cyan-100",text:"text-teal-700"},{initials:"JB",name:"Jenna Beckner",checked:!1,bg:"bg-emerald-100",text:"text-emerald-600"}],C=function(e){var a,s,n,i,t,r,l,d;return(null==e?void 0:e.is_escalation_reminder)&&(null===(a=null==e?void 0:e.days)||void 0===a?void 0:a.value)&&"undefined"!==(null===(s=null==e?void 0:e.days)||void 0===s?void 0:s.value)&&(null===(n=null==e?void 0:e.escalation_reminder_frequency)||void 0===n?void 0:n.value)&&"undefined"!==(null===(i=null==e?void 0:e.escalation_reminder_frequency)||void 0===i?void 0:i.value)?"Start notifying ".concat((null===(t=null==e?void 0:e.days)||void 0===t?void 0:t.value.includes("day"))?null===(r=null==e?void 0:e.days)||void 0===r?void 0:r.value:"".concat(null===(l=null==e?void 0:e.days)||void 0===l?void 0:l.value," ").concat(Number(null===(d=null==e?void 0:e.days)||void 0===d?void 0:d.value)>0?"days":"day")," ").concat(null==e?void 0:e.before_or_after," the due date"):"Notify until successful document upload"},k={"& .MuiInputBase-root":{height:"28px",borderRadius:"4px",fontSize:"11px"}};exports.ManageReminders=function(i){var l=i.data,m=i.schedules,_=i.setSchedules,R=i.remainderOwners,D=i.setRemainderOwners,F=i.labels,S=void 0===F?g:F,w=i.colors,I=void 0===w?p:w,E=i.chipColor,A=void 0===E?j:E,B=i.assignees,T=void 0===B?N:B,q=i.fallbackRecipients,P=void 0===q?y:q,L=i.recipientsColor,M=void 0===L?b:L,O=i.manualReminderTitle,Y=void 0===O?"Send Manual Reminder Now":O,H=i.manualReminderDescription,z=void 0===H?"Immediately notify the assignees about this document.":H;i.lastReminderText;var W=i.selectRecipientsLabel,G=void 0===W?"Select recipients:":W,U=i.previewEmailButtonLabel,V=void 0===U?"Preview Email":U,J=i.sendNowButtonLabel,Z=void 0===J?"Send Now":J,K=i.reminderSuccessTitle,Q=void 0===K?"Reminder sent successfully!":K,X=i.reminderSuccessDescription,$=void 0===X?"Email notification sent to 2 assignees.":X,ee=i.escalationTitle,ae=void 0===ee?"Escalation and Auto Reminder Setup":ee;i.escalationTitleTooltip;var se=i.escalationDescription,ne=void 0===se?"Configure Auto reminder settings for all assignees.":se;i.configureAutoReminderText;var ie=i.getDynamicStatement,te=void 0===ie?C:ie,re=i.reminderStartDateLabel,le=void 0===re?"Reminder Start Date":re,de=i.documentDueDateLabel,oe=void 0===de?"Document Due Date":de,ce=i.reminderFrequencyLabel,ue=void 0===ce?"Reminder Frequency":ce,me=i.escalationRemindersLabel,fe=void 0===me?"Escalation Reminders":me;i.escalationTooltip;var _e=i.escalationConditionText,ve=void 0===_e?"If the document is still pending, start escalation reminders":_e,he=i.daysText,xe=void 0===he?"days":he,ge=i.dueDataAndRepeatText,pe=void 0===ge?"due date and repeat every":ge,je=i.reminderFrequencyOptions,Ne=void 0===je?["12 hours","24 hours","48 hours","72 hours","Custom"]:je,be=i.escalationFrequencyOptions,ye=void 0===be?["1/2 hour","1 hour","4 hours","6 hours","12 hours","Custom"]:be,Ce=i.beforeAfterOptions,ke=void 0===Ce?["After","Before"]:Ce,Re=i.handelSendNow,De=i.showPreviewEmail,Fe=void 0===De||De,Se=s.useState(!1),we=Se[0],Ie=Se[1],Ee=s.useState(!1),Ae=Ee[0],Be=Ee[1],Te=s.useState(!1),qe=Te[0],Pe=Te[1],Le=s.useState(null);Le[0],Le[1];var Me=s.useState(!0),Oe=Me[0],Ye=Me[1],He=s.useState(P),ze=He[0],We=He[1],Ge=r.useDragControls(),Ue=function(a,s,n){D(function(i){return i.map(function(i,t){var r;return t===a?e.__assign(e.__assign({},i),((r={})[s]=n,r)):i})})},Ve=function(e){var a;if(!e)return null;if("custom"===e.type)return Number(e.value)<=0?null:60*Number(e.value)*60*1e3;return null!==(a={"1/2 hour":18e5,"1 hour":36e5,"4 hours":144e5,"6 hours":216e5,"12 hours":432e5,"24 hours":864e5,"48 hours":1728e5,"72 hours":2592e5,"96 hours":3456e5,"1/2 day":432e5,"1 day":864e5,"2 days":1728e5,"3 days":2592e5,"4 days":3456e5}[e.value])&&void 0!==a?a:null},Je=function(e,a,s){if(!e||!a||!s)return[];var n=Ve(s);if(!n)return[];for(var i=[],t=x.default(e).valueOf(),r=x.default(a).valueOf();t<=r;)i.push(x.default(t).toISOString()),t+=n;return i},Ze=function(e,a,s,n){if(!(e&&a&&n&&s))return[];var i=Ve(n);if(!i)return[];var t,r=x.default(e),l="custom"===a.type?Number(a.value):Number("1/2"===a.value.split(" ")[0]?.5:Number(a.value.split(" ")[0])),d=[];switch(s){case"Before":t=r.subtract(l,"day");break;case"After":t=r.add(l,"day");break;default:return[]}for(var o=t.valueOf(),c=0;c<1e3;c++)d.push(x.default(o).toISOString()),o+=i;return d},Ke=function(e){return e?e.split(" ").map(function(e){return e[0]}).join("").toUpperCase():""};s.useEffect(function(){var e=(null==l?void 0:l.due_at)||"",a=null==R?void 0:R.map(function(a){var s=T.find(function(e){return e.id===String(a.id)});return{ownerId:a.id,ownerName:null==s?void 0:s.name,ownerColor:null==s?void 0:s.color,reminders:Je(a.reminder_start_date,e,a.reminder_frequency),escalations:Ze(e,a.days,a.before_or_after,a.escalation_reminder_frequency)}});_(a)},[R]),s.useEffect(function(){if(null==l?void 0:l.assignee){var e=Object.values(l.assignee).filter(function(e){return e&&Object.keys(e).length>0}).map(function(e,a){return{name:e.name,checked:!1,recipientsColor:M[a]}}),a=e.length>0?e:P;We(a)}},[l]);var Qe=Object.values((null==l?void 0:l.assignee)||{}).filter(function(e){return null==e?void 0:e.name});return a.jsxs("div",e.__assign({className:f.default.mrContainer},{children:[a.jsxs("div",e.__assign({className:f.default.mrSectionBox,onClick:function(){return Ie(function(e){return!e})}},{children:[a.jsxs("div",e.__assign({className:f.default.mrSectionHeader},{children:[a.jsxs("div",e.__assign({className:f.default.mrSectionHeaderContent},{children:[a.jsxs("div",e.__assign({className:f.default.mrSectionHeaderLeft},{children:[a.jsxs("div",e.__assign({className:f.default.mrSectionTitleWrapper},{children:[a.jsx("div",e.__assign({className:f.default.mrSectionTitleIcon},{children:a.jsx(n.Send,{className:f.default.mrIconSmall})})),a.jsx("div",e.__assign({className:f.default.mrSectionTitle},{children:Y}))]})),a.jsx("div",e.__assign({className:f.default.mrSectionDescription},{children:z}))]})),a.jsx("div",e.__assign({className:f.default.mrSectionHeaderRight},{children:a.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),Ie(function(e){return!e})},className:f.default.mrChevronButton},{children:a.jsx(n.ChevronDown,{className:"".concat(f.default.mrChevronIcon," ").concat(we?f.default.mrChevronRotated:"")})}))}))]})),a.jsx(r.AnimatePresence,{children:qe&&a.jsxs(r.motion.div,e.__assign({initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:f.default.mrSuccessMessage},{children:[a.jsx("div",e.__assign({className:f.default.mrSuccessIcon},{children:a.jsx("div",e.__assign({className:f.default.mrSuccessIconInner},{children:a.jsx(n.CircleCheckBigIcon,{className:f.default.mrIconSuccess})}))})),a.jsxs("div",e.__assign({className:f.default.mrSuccessText},{children:[a.jsx("div",e.__assign({className:f.default.mrSuccessTitle},{children:Q})),a.jsx("div",e.__assign({className:f.default.mrSuccessDescription},{children:$}))]}))]}))})]})),a.jsx(r.AnimatePresence,{children:we&&a.jsxs(r.motion.div,e.__assign({initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:f.default.mrHiddenSection,style:{pointerEvents:we?"auto":"none"}},{children:[a.jsxs("div",e.__assign({className:f.default.mrRecipientsSection},{children:[a.jsx("div",e.__assign({className:f.default.mrRecipientsLabel},{children:G})),a.jsx("div",e.__assign({className:f.default.mrRecipientsGrid},{children:ze.map(function(s){return a.jsxs("div",e.__assign({className:f.default.mrRecipientItem},{children:[a.jsx(v.default,{checked:s.checked,onChange:function(){return a=s.name,void We(function(s){return s.map(function(s){return s.name===a?e.__assign(e.__assign({},s),{checked:!s.checked}):s})});var a},onClick:function(e){return e.stopPropagation()},size:"small",disableRipple:!0,icon:a.jsx("div",{className:f.default.mrCheckboxUnchecked}),checkedIcon:a.jsx("div",e.__assign({className:f.default.mrCheckboxChecked},{children:a.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",className:f.default.mrCheckboxIcon},{children:a.jsx("path",{d:"M1 5L4.2 8L11 1",stroke:"#5925DC",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),a.jsxs("div",e.__assign({className:f.default.mrRecipientInfo},{children:[a.jsx("div",e.__assign({className:f.default.mrRecipientAvatar,style:{backgroundColor:s.recipientsColor.bg,color:s.recipientsColor.text}},{children:Ke(s.name)})),a.jsx("div",e.__assign({className:f.default.mrRecipientName},{children:s.name}))]}))]}),s.name)})}))]})),a.jsxs("div",e.__assign({className:f.default.mrActionsSection},{children:[Fe&&a.jsxs("button",e.__assign({onClick:function(e){e.stopPropagation()},type:"button",className:"".concat(f.default.mrActionButton," ").concat(f.default.mrActionButtonSecondary)},{children:[a.jsx(n.Mail,{className:f.default.mrIconAction}),V]})),a.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),Pe(!0),setTimeout(function(){Pe(!1)},3e3),Re()},className:"".concat(f.default.mrActionButton," ").concat(f.default.mrActionButtonPrimary)},{children:Z}))]}))]}))})]})),a.jsxs("div",e.__assign({className:f.default.mrMainContent},{children:[a.jsxs("div",e.__assign({className:f.default.mrEscalationContainer},{children:[a.jsxs("div",e.__assign({className:f.default.mrEscalationHeaderWrapper,onClick:function(e){e.stopPropagation(),Be(function(e){return!e})}},{children:[a.jsxs("div",e.__assign({className:f.default.mrEscalationHeader},{children:[a.jsxs("div",e.__assign({className:f.default.mrEscalationTitleWrapper},{children:[a.jsx("div",e.__assign({className:f.default.mrEscalationTitleText},{children:ae})),a.jsx("div",e.__assign({className:f.default.mrTooltipIcon},{children:a.jsx(n.InfoIcon,{stroke:"#64748B",className:f.default.mrIconInfo})}))]})),a.jsxs("div",e.__assign({className:f.default.mrEscalationActions},{children:[Fe&&a.jsxs("button",e.__assign({className:f.default.mrEscalationPreviewButton},{children:[a.jsx("div",e.__assign({className:f.default.mrEscalationPreviewIcon},{children:a.jsx(n.Mail,{className:f.default.mrIconPreview})})),a.jsx("span",e.__assign({className:f.default.mrEscalationPreviewText},{children:V}))]})),a.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),Be(function(e){return!e})},className:f.default.mrChevronButton},{children:a.jsx(n.ChevronDown,{className:"".concat(f.default.mrChevronIcon," ").concat(Ae?f.default.mrChevronRotated:"")})}))]}))]})),a.jsx("div",e.__assign({className:f.default.mrEscalationDescription},{children:ne}))]})),a.jsx(r.AnimatePresence,e.__assign({initial:!1},{children:Ae&&a.jsx(r.motion.div,e.__assign({layout:!0,initial:{opacity:0,scaleY:.96},animate:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.96},transition:{duration:.3,ease:"easeInOut"},style:{transformOrigin:"top",overflow:"hidden"}},{children:a.jsx(r.Reorder.Group,e.__assign({axis:"y",values:R||[],onReorder:function(e){D(e)},layoutScroll:!0,className:f.default.mrReorderGroup},{children:null==R?void 0:R.map(function(s,i){var u,m,_=Qe[i]||P[i];return a.jsx(r.Reorder.Item,e.__assign({value:s,dragControls:Ge,layout:"position",className:""},{children:a.jsxs("div",e.__assign({className:f.default.mrReminderItem},{children:[a.jsx("div",e.__assign({className:f.default.mrReminderLabelBox},{children:a.jsx("div",e.__assign({className:f.default.mrReminderLabelInner},{children:a.jsx(t.Chip,{label:S[i],sx:{backgroundColor:I[i].bg,minWidth:90,color:I[i].text,fontWeight:500}})}))})),a.jsxs("div",e.__assign({className:f.default.mrReminderContent},{children:[a.jsx("div",e.__assign({className:f.default.mrDragHandle},{children:a.jsx(h.default,{onPointerDown:function(e){return Ge.start(e)},sx:{color:"#9e9e9e"}})})),a.jsx(t.Box,e.__assign({display:"flex",alignItems:"center",gap:2,border:"1px solid #E5E7EB",sx:{background:"#fff"},className:f.default.mrReminderBox},{children:a.jsxs("div",e.__assign({className:f.default.mrReminderFields},{children:[a.jsxs("div",e.__assign({className:f.default.mrReminderHeader},{children:[a.jsxs("div",e.__assign({className:f.default.mrReminderAssignee},{children:[a.jsx("div",e.__assign({className:f.default.mrReminderAvatar},{children:a.jsx("span",e.__assign({className:f.default.mrReminderInitials},{children:Ke(null==_?void 0:_.name)}))})),a.jsx("span",e.__assign({className:f.default.mrReminderName},{children:null==_?void 0:_.name}))]})),a.jsx("div",e.__assign({className:f.default.mrReminderStatement,style:{backgroundColor:null===(u=A[i])||void 0===u?void 0:u.bg}},{children:a.jsx("span",e.__assign({className:f.default.mrReminderStatementText,style:{color:null===(m=A[i])||void 0===m?void 0:m.text}},{children:te(s)}))}))]})),a.jsxs("div",e.__assign({className:f.default.mrReminderDateFields},{children:[a.jsxs("div",e.__assign({className:f.default.mrReminderField},{children:[a.jsx("p",e.__assign({className:f.default.mrReminderFieldLabel},{children:le})),a.jsxs("div",e.__assign({className:f.default.mrReminderDatePicker},{children:[a.jsx(d.LocalizationProvider,e.__assign({dateAdapter:o.AdapterDayjs},{children:a.jsx(d.DatePicker,{value:s.reminder_start_date?x.default(s.reminder_start_date):null,disablePast:!0,format:"MM/DD/YYYY",onChange:function(e){if(!e||!x.default(e).isBefore(x.default(),"day")){var a=e?x.default(e).toISOString():"";!function(e,a){Ue(e,"reminder_start_date",a)}(i,e?x.default(a).toISOString():"")}},slotProps:{actionBar:{actions:["clear"]},textField:{fullWidth:!0,size:"small",sx:k,placeholder:"MM/DD/YYYY"},openPickerButton:{id:"trial-start-date-picker-icon","data-testid":"trial-start-date-picker-icon",size:"small"},openPickerIcon:{sx:{fontSize:"14px"}}}})})),a.jsx(n.ArrowRight,{className:f.default.mrIconArrow})]}))]})),a.jsxs("div",e.__assign({className:f.default.mrReminderField},{children:[a.jsx("p",e.__assign({className:f.default.mrReminderFieldLabel},{children:oe})),a.jsx("div",e.__assign({className:f.default.mrReminderDueDate},{children:(null==l?void 0:l.due_at)?x.default(l.due_at).format("MM/DD/YYYY"):""}))]})),a.jsxs("div",e.__assign({className:f.default.mrReminderField},{children:[a.jsx("p",e.__assign({className:f.default.mrReminderFieldLabel},{children:ue})),a.jsxs("div",e.__assign({className:f.default.mrReminderFrequency},{children:[a.jsx("span",e.__assign({className:f.default.mrReminderFrequencyText},{children:"Every"})),a.jsx(c.default,{value:s.reminder_frequency,onChange:function(e){return function(e,a){Ue(e,"reminder_frequency",a)}(i,e)},options:Ne,suffix:"hours"})]}))]}))]})),a.jsxs("div",e.__assign({className:f.default.mrEscalationCheckbox},{children:[a.jsxs("div",e.__assign({className:f.default.mrEscalationCheckboxHeader},{children:[a.jsx(v.default,{size:"small",disableRipple:!0,checked:s.is_escalation_reminder,onChange:function(e){!function(e,a){Ue(e,"is_escalation_reminder",a),a||(Ue(e,"days",{type:"preset",value:""}),Ue(e,"escalation_reminder_frequency",{type:"preset",value:""}),Ue(e,"before_or_after",""))}(i,e.target.checked)},icon:a.jsx("div",{className:f.default.mrCheckboxUnchecked}),checkedIcon:a.jsx("div",e.__assign({className:f.default.mrCheckboxChecked},{children:a.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",className:f.default.mrCheckboxIcon},{children:a.jsx("path",{d:"M1 5L4.2 8L11 1",stroke:"#5925DC",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),fe,a.jsx("div",e.__assign({className:f.default.mrTooltipIcon},{children:a.jsx(n.InfoIcon,{stroke:"#64748B",className:f.default.mrIconInfo})}))]})),a.jsx(r.AnimatePresence,{children:s.is_escalation_reminder&&a.jsxs(r.motion.div,e.__assign({initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:f.default.mrEscalationContent},{children:[a.jsx("div",e.__assign({className:f.default.mrEscalationCondition},{children:ve})),a.jsxs("div",e.__assign({className:f.default.mrEscalationFields},{children:[a.jsxs("div",e.__assign({className:f.default.mrEscalationFieldGroup},{children:[a.jsx(c.default,{value:s.days,onChange:function(e){return function(e,a){Ue(e,"days",a)}(i,e)}}),a.jsx("div",e.__assign({className:f.default.mrEscalationFieldText},{children:xe}))]})),a.jsxs("div",e.__assign({className:"".concat(f.default.mrEscalationFieldGroup," ").concat(f.default.mrEscalationFieldGroupLarge)},{children:[a.jsx(t.Autocomplete,{size:"small",options:ke,value:s.before_or_after,onChange:function(e,a){!function(e,a){Ue(e,"before_or_after",a)}(i,a||"")},popupIcon:a.jsx("button",e.__assign({type:"button",id:"dropdown-icon",className:f.default.mrDropdownButton},{children:a.jsx(n.ChevronDown,{className:f.default.mrIconDropdown})})),slotProps:{paper:{sx:{"& .MuiAutocomplete-option":{fontSize:"12px",minHeight:"32px"}}},clearIndicator:{sx:{"& svg":{fontSize:12}}}},renderInput:function(s){return a.jsx(t.TextField,e.__assign({},s,{placeholder:"Select value",sx:k}))},sx:{width:"100%"}}),a.jsx("div",e.__assign({className:f.default.mrEscalationFieldText},{children:pe}))]})),a.jsx("div",e.__assign({className:f.default.mrEscalationFieldGroupSmall},{children:a.jsx(c.default,{value:s.escalation_reminder_frequency,onChange:function(e){return function(e,a){Ue(e,"escalation_reminder_frequency",a)}(i,e)},options:ye,suffix:"hours"})}))]}))]}))})]}))]}))}))]}))]}))}),s.id||i)})}))}))}))]})),Ae&&a.jsxs(r.motion.div,e.__assign({initial:{width:Oe?"345px":"43px"},animate:{width:Oe?"345px":"43px"},transition:{duration:.3},className:f.default.mrCalendarPanel},{children:[Oe?a.jsx(u.default,{assignees:m}):a.jsx("div",e.__assign({className:f.default.mrCalendarCollapsed},{children:a.jsx(n.CalendarIcon,{className:f.default.mrIconCalendar})})),a.jsxs("button",e.__assign({onClick:function(){return Ye(function(e){return!e})},className:f.default.mrCalendarToggle},{children:[a.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"19",height:"50",viewBox:"0 0 19 50",fill:"none"},{children:a.jsx("path",{d:"M3.94434 9.65137C1.79601 11.031 0.49707 13.4087 0.49707 15.9619V35.1436C0.49707 37.8496 1.95476 40.346 4.31152 41.6758L17.5469 49.1426V0.915039L3.94434 9.65137Z",fill:"white",stroke:"#E0E0E0"})})),Oe?a.jsx(n.ChevronRight,{className:f.default.mrIconChevronToggle}):a.jsx(n.ChevronLeft,{className:f.default.mrIconChevronToggle})]}))]}))]}))]}))};
|
|
2
|
+
//# sourceMappingURL=ManageReminders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManageReminders.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),o=require("@mui/material"),r=require("lucide-react"),u=["1/2","1","2","3","4","Custom"];exports.default=function(i){var s=i.value,p=i.onChange,a=i.options,l=void 0===a?u:a,c=i.placeholder,d=void 0===c?"Select frequency":c,v=i.suffix,x=n.useState(""),f=x[0],m=x[1],_=n.useState(null),g=_[0],h=_[1],y=n.useState(!1),I=y[0],j=y[1];return n.useEffect(function(){return s?"custom"===s.type?(j(!0),h(null),void m(s.value||"")):(j(!1),h(s.value),void m(s.value)):(h(null),m(""),void j(!1))},[s]),t.jsx(o.Autocomplete,{size:"small",freeSolo:I,options:l,value:g,inputValue:f,popupIcon:t.jsx("button",e.__assign({type:"button",id:"dropdown-icon",className:"cursor-pointer flex items-center justify-center"},{children:t.jsx(r.ChevronsUpDownIcon,{className:"w-3 h-3"})})),onChange:function(e,t){return t?"Custom"===t?(j(!0),h(null),m(""),void p({type:"custom",value:""})):(j(!1),h(t),m(t),void p({type:"preset",value:t})):(h(null),m(""),j(!1),void p(null))},slotProps:{paper:{sx:{"& .MuiAutocomplete-option":{fontSize:"12px",minHeight:"32px"}}},clearIndicator:{sx:{"& svg":{fontSize:12}}}},onInputChange:function(e,t,n){if(I){var o=t.replace(/[^\d]/g,"");m(o),"input"===n&&p({type:"custom",value:o})}},renderInput:function(n){return t.jsx(o.TextField,e.__assign({},n,{placeholder:I?"Enter custom value":d,inputProps:e.__assign(e.__assign({},n.inputProps),{inputMode:I?"numeric":void 0,readOnly:!I}),InputProps:e.__assign(e.__assign({},n.InputProps),{endAdornment:I&&v?t.jsxs(t.Fragment,{children:[t.jsx(o.InputAdornment,e.__assign({position:"end"},{children:t.jsx("span",e.__assign({style:{fontSize:"11px",color:"#888",whiteSpace:"nowrap"}},{children:v}))})),n.InputProps.endAdornment]}):n.InputProps.endAdornment}),sx:{"& .MuiInputBase-root":{height:"28px",borderRadius:"4px",fontSize:"11px",width:"100%",cursor:I?"text":"pointer"},"& input":{cursor:I?"text":"pointer"}},onKeyDown:function(e){I&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}}))},sx:{width:"100%"}})};
|
|
2
|
+
//# sourceMappingURL=ReminderFrequencyAutocomplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReminderFrequencyAutocomplete.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),n=require("./features/Bookemon/Bookemon.js"),o=require("./features/PdfEditorCitation/PdfEditorCitation.js"),r=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),u=require("./features/PaginatedTable/PaginatedTable.js"),C=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),d=require("./features/ChatCitation/ChatCitationRenderer.js"),f=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),p=require("./features/PdfViewer/PdfViewer.js"),l=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),g=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),x=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),q=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),j=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),m=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),c=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),R=require("./features/TableCitation/TableCitationContent.js"),I=require("./features/CitationViewer/CitationsViewer.js"),S=require("./features/ExcelCitation/ExcelCitations.js"),T=require("./features/ScannedDocCitation/ScannedDocCitation.js"),E=require("./features/ChatDrawer/ChatDrawer.js"),D=require("./features/ChatDrawer/constants/ChatDrawer.js"),A=require("./features/SplitterCitations/SplitterCitationsComponent.js"),P=require("./features/CognitiveCompare/CognitiveCompare.js"),v=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),w=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),h=require("./features/IngestionStatus/IngestionStatusComponent.js"),_=require("./features/ManageRemainders/ManageReminders.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=n.default,exports.PdfCitation=o.PdfEditorCitation,exports.CitationRenderer=r.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=u.default,exports.InternalgptReasoningComponent=C.default,exports.NonWebReasoningComponent=C.default,exports.ChatCitation=d.default,exports.CognitiveDecisioningCard=f.default,exports.PdfViewer=p.default,exports.FaqCitation=l.default,exports.ImageCitationContent=g.default,exports.VideoCitationContent=x.default,exports.FileCitationContent=q.default,exports.WebCitationWithImageContent=j.default,exports.MarkdownWithImageCitation=m.default,exports.AiReasoningCitation=c.default,exports.TableCitationContent=R.default,exports.CitationsViewer=I.default,exports.ExcelCitation=S.default,exports.ScannedDocCitation=T.default,exports.ChatDrawer=E.default,exports.FILE_INGESTION_STATUS=D.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=D.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=D.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=A.default,exports.CognitiveCompare=P.default,exports.CognitiveInternalgptCoreComponent=v.default,exports.TextualGuideLinesComponent=w.default,exports.IngestionStatusChip=h.IngestionStatusChip,exports.IngestionStatusComponent=h.IngestionStatusComponent,exports.ManageReminders=_.ManageReminders;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as n,Fragment as i,jsx as o}from"react/jsx-runtime";import{useState as e}from"react";import r from"./CitationRenderer.module.css.js";var a=function(a){var l=a.inLineCitation,c=a.citationTitle,s=a.citationIcon,p=a.chevronUpComponent,m=a.chevronDownComponent,d=a.additionalCallbackForPillButton,u=a.citationComponent,f=a.styles,v=void 0===f?{}:f,C=a.isOpen,h=a.onToggle,y=e(!1),g=y[0],B=y[1],N=void 0!==C?C:g;return n(i,{children:[n("span",t({onClick:function(t){return function(t){t.preventDefault(),t.stopPropagation(),d&&d(),h?h():void 0===C&&B(function(t){return!t})}(t)},className:r.pillButton,style:v.pillButton},{children:[s||(c?o("span",t({style:v.citationTitle},{children:c})):null),l&&(N?p:m)]})),l&&N&&o("div",t({className:r.citationWrapper,style:v.citationWrapper},{children:o("div",t({className:r.citationContent,style:v.citationContent},{children:u}))}))]})};export{a as default};
|
|
2
2
|
//# sourceMappingURL=CitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as r}from"tslib";import{jsx as i,jsxs as o}from"react/jsx-runtime";import{useMemo as t}from"react";import{Box as n,Typography as e}from"@mui/material";import c from"react-markdown";import d from"./CitationAnchor.js";function l(l){var a=l.content,f=void 0===a?"":a,m=l.title,s=void 0===m?"":m,u=l.citations,p=void 0===u?{}:u,x=l.styles,h=void 0===x?{}:x,v=l.docData,y=void 0===v?{}:v;l.open;var g=t(function(){return JSON.stringify(p||{})},[p]),D=t(function(){return p},[g]),b=t(function(){return JSON.stringify(y||{})},[y]),C=t(function(){return y},[b]),E=t(function(){return{citations:D,docData:C}},[D,C]),F=t(function(){return{a:function(r){var o=r.href,t=void 0===o?"":o,n=r.children;return i(d,{href:t,children:n,metaData:E})}}},[E]);return o(n,r({sx:{borderRadius:"8px",border:"1px solid #E4E7EC",bgcolor:"#FCFCFD"}},{children:[i(n,r({sx:{px:1.5,py:.75,borderBottom:"1px solid #EAECF0"}},{children:i(e,r({sx:{fontSize:"15px",fontWeight:600,color:"#344054",lineHeight:1.25}},{children:s}))})),i(n,r({sx:{px:1.5,py:1.1,display:"flex",flexDirection:"column",gap:.95}},{children:i(n,r({sx:{display:"flex",flexDirection:"column"}},{children:i(e,r({component:"div",sx:r({},h)},{children:i(c,r({components:F},{children:f}))}))}))}))]}))}export{l as default};
|
|
2
2
|
//# sourceMappingURL=CitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as n}from"tslib";import{jsx as i,jsxs as t}from"react/jsx-runtime";import{useState as o,useRef as r,useMemo as l,useEffect as u,useCallback as c}from"react";import{Box as a,Snackbar as s,Alert as d,Tooltip as v,Typography as f}from"@mui/material";import{ChevronDown as p}from"lucide-react";import{ButtonCognitiveIcon as g}from"../../assests/svg/ButtonCognitiveIcon.js";import h from"./OverlayComponent.js";import{safeStringify as m,extractDeviationScore as S,generateColorPalette as x,findKeyPathByNodeId as R,DEVIATION_BADGE_SEPARATOR as y,hasMeaningfulRedlineTags as b,scrollAndHighlightClause as C}from"./CognitiveComparehelpers.js";import{SHARED_MARKDOWN_STYLES as w,DEFAULT_FIELD_CONFIG as B,DEFAULT_COMPARISON_CONFIG as _}from"./CognitiveCompareConfig.js";export{SHARED_MARKDOWN_STYLES}from"./CognitiveCompareConfig.js";import{DEFAULT_DEVIAION_COLOR as E,EMPTY_SUMMARY_POPUP_STATE as F,DEFAULT_COMPONENT_HEADER_TEXT as I}from"./CognitiveCompareConstants.js";import T from"./CognitivePopup.js";import A from"./MoreFunctionsPopup.js";import D from"./LoaderComponent.js";import O from"./components/ThreeDotsLoader.js";import{useCognitiveTreeData as k}from"./hooks/useCompareData.js";import{useComparePopups as L}from"./hooks/useComparePopups.js";import{useSectionRefs as j}from"./hooks/useSectionRefs.js";import{useAccordionState as P}from"./hooks/useAccordionState.js";import{useDeviationNavigation as N}from"./hooks/useDeviationNavigation.js";import H from"./components/CompareHeader.js";import z from"./components/SubSectionAccordion.js";import M from"./components/LHSSectionRow.js";import q from"./components/RHSSectionRow.js";import W from"./components/CognitiveSummaryPopup.js";import{CompareContextProvider as V}from"./CompareContext.js";import{useStyleHelpers as K}from"./hooks/useStyles.js";import{useResizeHandler as J}from"./hooks/useResizeHandler.js";import{useLinesCalculator as Y}from"./hooks/useLinesCalculator.js";import{useSideBySide as X}from"./hooks/useSideBySide.js";import $ from"./components/SvgConnectors.js";var U=function(U){var G,Q,Z,ee,ne,ie,te,oe,re,le,ue,ce,ae,se,de,ve,fe,pe,ge,he,me,Se,xe,Re,ye,be,Ce,we,Be,_e,Ee,Fe,Ie,Te,Ae,De=U.componentHeaderText,Oe=void 0===De?I:De,ke=U.treeData,Le=U.comparisonConfig,je=U.leftColumnTitleText,Pe=U.rightColumnTitleText,Ne=U.markdownStyles,He=U.resetTrigger,ze=U.displayConfig,Me=void 0===ze?{isHeaderVisible:!0,isToggleVisible:!0,maintainRelativeOrder:!1,isLoading:!0,showDeviationBadges:!1,enableDeviationSchemaBackwardCompatibility:!1,displayEmailNotifier:!0}:ze,qe=U.onMaintainRelativeOrderChange,We=U.popupConfig,Ve=U.deviationData,Ke=void 0===Ve?{}:Ve,Je=U.deviationNodeIdToView,Ye=U.resetDeviationNodeId,Xe=U.isProposingFix,$e=void 0!==Xe&&Xe,Ue=U.proposingFixNodeId,Ge=U.isRedlineFlow,Qe=o(Me.maintainRelativeOrder),Ze=Qe[0],en=Qe[1],nn=null!==(G=null==Me?void 0:Me.expandLevels)&&void 0!==G?G:0,tn=!!(null==Me?void 0:Me.expandAllSections),on=!!Ze||!!(null==Me?void 0:Me.showDeviationBadges),rn=o(!1),ln=rn[0],un=rn[1],cn=o(null),an=cn[0],sn=cn[1],dn=o(null===(Z=null!==(Q=null==ke?void 0:ke.newEvaluationResult)&&void 0!==Q?Q:null==Me?void 0:Me.enableDeviationSchemaBackwardCompatibility)||void 0===Z||Z)[0],vn=o(new Set),fn=vn[0],pn=vn[1],gn=o([]),hn=gn[0],mn=gn[1],Sn=o(!1),xn=Sn[0],Rn=Sn[1],yn=r(null),bn=r(null),Cn=r(null),wn=r(null),Bn=r(null),_n=r(!1),En=r(null),Fn=r({}),In=r([]),Tn=r(function(){}),An=r(null),Dn=r(function(){}),On=l(function(){return JSON.stringify(Ke||{})},[JSON.stringify(Ke)]),kn=l(function(){return Ke||{}},[On]),Ln=l(function(){return(null==ke?void 0:ke.cognitive_decisioning)||{}},[ke]),jn=l(function(){return e(e({},w),Ne)},[Ne]),Pn=r(null),Nn=r(null),Hn=r(null),zn=r(null),Mn=r(null),qn=r(null),Wn=r(null),Vn=r(null),Kn=r(null),Jn=r(null),Yn=L(Pn),Xn=Yn.cognitivePopup,$n=Yn.setCognitivePopup,Un=Yn.moreFunctions,Gn=Yn.setMoreFunctions,Qn=Yn.position,Zn=Yn.setPosition,ei=Yn.activeBadgeId,ni=Yn.summaryPopup,ii=Yn.setSummaryPopup,ti=Yn.closeSummaryPopup,oi=Yn.setActiveBadgeId,ri=Yn.popupRef,li=Yn.handleOpenCognitiveCompare,ui=Yn.openCognitivePopupFromState,ci=Yn.closeCognitivePopup,ai=Yn.closeMoreFunctionsPopup,si=l(function(){var e,n,i,t,o,r,l;return{fields:null!==(e=null==Le?void 0:Le.fields)&&void 0!==e?e:B,thresholds:{high:null!==(i=null===(n=null==Le?void 0:Le.thresholds)||void 0===n?void 0:n.high)&&void 0!==i?i:_.thresholds.high,medium:null!==(o=null===(t=null==Le?void 0:Le.thresholds)||void 0===t?void 0:t.medium)&&void 0!==o?o:_.thresholds.medium,exact:null!==(l=null===(r=null==Le?void 0:Le.thresholds)||void 0===r?void 0:r.exact)&&void 0!==l?l:_.thresholds.exact}}},[Le]),di=o(null),vi=di[0];di[1];var fi=null===(ie=null===(ee=null==ke?void 0:ke.documents)||void 0===ee?void 0:ee[null===(ne=null==ke?void 0:ke.input_index_map)||void 0===ne?void 0:ne[0]])||void 0===ie?void 0:ie.title,pi=null===(re=null===(te=null==ke?void 0:ke.documents)||void 0===te?void 0:te[null===(oe=null==ke?void 0:ke.input_index_map)||void 0===oe?void 0:oe[1]])||void 0===re?void 0:re.title,gi=m(je||fi||"Uploaded Contract"),hi=null===(ae=null===(ce=null===(le=null==ke?void 0:ke.documents)||void 0===le?void 0:le[null===(ue=null==ke?void 0:ke.input_index_map)||void 0===ue?void 0:ue[0]])||void 0===ce?void 0:ce.metadata)||void 0===ae?void 0:ae.file_name,mi=m(hi),Si=null===(fe=null===(ve=null===(se=null==ke?void 0:ke.documents)||void 0===se?void 0:se[null===(de=null==ke?void 0:ke.input_index_map)||void 0===de?void 0:de[1]])||void 0===ve?void 0:ve.metadata)||void 0===fe?void 0:fe.file_name,xi=m(Si),Ri=m(Pe||pi||"Reference Template"),yi=k(ke,Ze,kn,si,dn),bi=yi.activeProposed,Ci=yi.existingRule,wi=yi.proposedSections,Bi=yi.existingSections,_i=yi.visibleFields,Ei=yi.parentDeviationRecord,Fi=yi.deviationNumberRegistry,Ii=yi.parseError;u(function(){Ii&&sn("Failed to load comparison: ".concat(Ii))},[Ii]);var Ti=wi.length>0||Bi.length>0,Ai=l(function(){if(!Ge)return"off";var e=0,n=0,i=function(t){Array.isArray(t)&&t.forEach(function(t){var o,r=(null==t?void 0:t.content)||"";b(r)&&(e+=1,n+=String(r).length),(null===(o=null==t?void 0:t.subsections)||void 0===o?void 0:o.length)&&i(t.subsections)})};return i(wi),i(Bi),"".concat(e,":").concat(n)},[Ge,wi,Bi]);u(function(){if(wi.length||Bi.length)if(tn){var e={},n={},i=function(i,t){i.forEach(function(i,o){var r,l=Ze?"".concat(t,"-").concat(o):String(o);e[l]=!0;var u=function(e,i){null==e||e.forEach(function(e,t){var o,r="".concat(i,"-").concat(t);n[r]=!0,(null===(o=e.subsections)||void 0===o?void 0:o.length)&&u(e.subsections,r)})};(null===(r=i.subsections)||void 0===r?void 0:r.length)&&u(i.subsections,String(o))})};i(wi,"left"),i(Bi,"right"),vt(e),pt(n)}else if(nn>0){var t={},o={},r=function(e,n,i){e.forEach(function(e,r){var l;if(i>=1){var u=Ze?"".concat(n,"-").concat(r):String(r);t[u]=!0}var c=function(e,n,t){t>i||null==e||e.forEach(function(e,i){var r,l="".concat(n,"-").concat(i);o[l]=!0,(null===(r=e.subsections)||void 0===r?void 0:r.length)&&c(e.subsections,l,t+1)})};(null===(l=e.subsections)||void 0===l?void 0:l.length)&&i>=2&&c(e.subsections,String(r),2)})};r(wi,"left",nn),r(Bi,"right",nn),vt(t),pt(o)}},[tn,nn,wi,Bi,Ze]);var Di=j(_i.map(function(e){return e.key}),Math.max(wi.length,Bi.length)),Oi=Di.leftRefs,ki=Di.rightRefs,Li=Di.sectionLeftRefs,ji=Di.sectionRightRefs,Pi=Di.lhsBadgeRefs,Ni=Di.rhsBadgeRefs,Hi=Di.sectionRightRowRefs,zi=Di.subSectionLeftRefs,Mi=Di.subSectionRightRefs,qi=Di.sectionRowRefs,Wi=Di.getSectionRowRef,Vi=Di.getSubSectionRef,Ki=Di.getBadgeRef,Ji=X({maintainRelativeOrder:Ze,proposedSections:wi,existingSections:Bi,leftContainerRef:Vn,rightContainerRef:Hn,scrollContainerRef:Pn,sectionLeftRefs:Li,sectionRightRefs:ji,subSectionLeftRefs:zi,subSectionRightRefs:Mi,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni,sectionRowRefs:qi,sectionRightRowRefs:Hi,rhsTopSpacerRef:zn,rhsBottomSpacerRef:Mn,lhsTopSpacerRef:qn,lhsBottomSpacerRef:Wn,calculateLinesRef:Tn,setConnectedSections:pn,setConnectedLines:mn,cachedConnectedPositions:In,closeMoreFunctionsPopup:ai,setErrorToast:sn,moreFunctions:Un,closeSummaryPopup:ti}),Yi=Ji.isSideBySide,Xi=Ji.isArrowVisible,$i=Ji.setIsArrowVisible,Ui=Ji.isResizing,Gi=Ji.setIsResizing,Qi=Ji.isSideBySideLoading,Zi=Ji.activeSideBySideSection,et=Ji.scrollLock,nt=Ji.sideBySideCacheRef,it=Ji.isSideBySideRef,tt=Ji.activeSideBySideRightSectionRef,ot=Ji.activeSideBySideSectionRef,rt=Ji.sideBySideLineRef,lt=Ji.highlightedClauseRefs,ut=Ji.clearClauseHighlight,ct=Ji.resetSideBySide,at=Ji.activateSideBySide,st=P({maintainRelativeOrder:!!Ze,proposedSections:wi,existingSections:Bi,activeSideBySideSection:Zi,connectedSections:fn,resetSideBySide:ct,setConnectedSections:pn,setConnectedLines:mn,cachedConnectedPositions:In,svgContainerRef:yn,isAnimatingRef:_n,animationTimerRef:En,calculateLinesRef:Tn,sectionLeftRefs:Li,sectionRightRefs:ji,subSectionLeftRefs:zi,subSectionRightRefs:Mi}),dt=st.expandedSections,vt=st.setExpandedSections,ft=st.expandedSubSections,pt=st.setExpandedSubSections,gt=st.handleSubSectionToggle,ht=st.toggleSection,mt=st.forceExpandCrossWiredSections,St=function(){var e,n;if(null!=Zi){var i=null===(e=Li.current[Zi])||void 0===e?void 0:e.current,t=null===(n=ji.current[Zi])||void 0===n?void 0:n.current,o=Hn.current;if(i&&t&&o){var r=i.getBoundingClientRect(),l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=r.top-u.top,a=l.top-u.top-c;o.scrollBy({top:a,behavior:"smooth"})}}},xt=c(function(e){null==e||e.stopPropagation(),Rn(function(e){var n=!e;return n&&requestAnimationFrame(function(){St()}),n})},[St]);u(function(){Ge&&"off"!==Ai&&"0:0"!==Ai&&(nt.current=null,In.current=[],requestAnimationFrame(function(){var e;null===(e=Tn.current)||void 0===e||e.call(Tn)}))},[Ge,Ai]);var Rt=l(function(){var e=new Map,n=new Map,i=1;if(Ze)wi.forEach(function(n){!n.title&&!n.content||n.id&&e.set(n.id,i++)}),Bi.forEach(function(t){if(t.id&&!(!t.title&&!t.content)){var o=wi.filter(function(e){var n;return null===(n=e.refIndexes)||void 0===n?void 0:n.includes(t.selfIndex)});if(o.length>0){var r=o.map(function(n){return e.get(n.id)}).filter(Boolean);n.set(t.id,r.join(", "))}else n.set(t.id,String(i++))}});else for(var t=Math.max(wi.length,Bi.length),o=0;o<t;o++){var r=wi[o],l=Bi[o];r?(e.set(r.id,i),l&&n.set(l.id,String(i)),i++):l&&n.set(l.id,String(i++))}return{leftNums:e,rightNums:n}},[wi,Bi,Ze]),yt=Ci.analysis,bt=m(null===(ge=null===(pe=null==yt?void 0:yt.rule_difference_comparison)||void 0===pe?void 0:pe.summary)||void 0===ge?void 0:ge.overall_summary),Ct=!!bt.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),wt=null!==(he=null==ke?void 0:ke.base_root_id)&&void 0!==he?he:"-1";null==ke||ke[wt];var Bt=dn?null!==(Fe=null!==(Be=Ke&&(null===(we=null==Ke?void 0:Ke[wt])||void 0===we?void 0:we.evaluation_result))&&void 0!==Be?Be:null===(Ee=null===(_e=null==ke?void 0:ke.nodes)||void 0===_e?void 0:_e[wt])||void 0===Ee?void 0:Ee.evaluation_result)&&void 0!==Fe?Fe:null:null!==(Ce=null!==(xe=Ke&&(null===(Se=null===(me=null==Ke?void 0:Ke[wt])||void 0===me?void 0:me.evaluation_result)||void 0===Se?void 0:Se[0]))&&void 0!==xe?xe:null===(be=null===(ye=null===(Re=null==ke?void 0:ke.nodes)||void 0===Re?void 0:Re[wt])||void 0===ye?void 0:ye.evaluation_result)||void 0===be?void 0:be[0])&&void 0!==Ce?Ce:null,_t=S(Bt),Et=x(null!==(Ae=null===(Te=null===(Ie=null==Bt?void 0:Bt.evaluation_outputs)||void 0===Ie?void 0:Ie.metadata)||void 0===Te?void 0:Te.label_color)&&void 0!==Ae?Ae:E),Ft=r(ct);u(function(){Ft.current=ct},[ct]);var It=r(ci);u(function(){It.current=ci},[ci]);var Tt=c(function(e,n,i,t,o,r){return Lo.current(e,n,i,t,o,r)},[]),At=c(function(e,n,i,t,o){return jo.current(e,n,i,t,o)},[]),Dt=c(function(){return Po.current()},[]),Ot=c(function(e,n){return No.current(e,n)},[]),kt=c(function(e){return Ho.current(e)},[]),Lt=c(function(e){return zo.current(e)},[]),jt=c(function(){return Mo.current()},[]),Pt=c(function(){var e,n;ut(),null===(e=Ft.current)||void 0===e||e.call(Ft),Rn(!1),pn(new Set),mn([]),In.current=[],io([]),oo(null),ii(F),null===(n=It.current)||void 0===n||n.call(It),requestAnimationFrame(function(){var e;null===(e=Tn.current)||void 0===e||e.call(Tn)})},[]),Nt=r(Pt);u(function(){Nt.current=Pt},[Pt]),u(function(){He&&Nt.current()},[He]);var Ht=l(function(){return{documents:null==ke?void 0:ke.documents,input_index_map:null==ke?void 0:ke.input_index_map}},[JSON.stringify(null==ke?void 0:ke.documents),JSON.stringify(null==ke?void 0:ke.input_index_map)]),zt=r(ke);u(function(){zt.current=ke},[ke]);var Mt=r(Ln);u(function(){Mt.current=Ln},[Ln]);var qt=c(function(n,i,t,o,r,l,u){var c,a,s,d=m(null==i?void 0:i.id)||m(null==t?void 0:t.id)||"",v=(d?Mt.current[d]:null)||(null==i?void 0:i.cognitiveData)||(null==t?void 0:t.cognitiveData)||{section_id:d,decisioning:[],gap:[],relevance_score:0},f=null!==(a=null===(c=qi.current[o])||void 0===c?void 0:c.current)&&void 0!==a?a:null;return{isLoading:null!==(s=null==Me?void 0:Me.isLoading)&&void 0!==s&&s,open:!0,sectionTitle:(null==i?void 0:i.title)?null==i?void 0:i.title:"No Counterpart",refSectionTitle:(null==t?void 0:t.title)?null==t?void 0:t.title:"No Counterpart",cognitiveData:v,anchorEl:n,sectionAnchorEl:f,badgeStyle:l||null,sectionIdx:o,docData:Ht,deviationData:function(){var n,r,l=(null==i?void 0:i.evaluationResult)||(null==t?void 0:t.evaluationResult)||null,u=function(n){var i=function(e){if(!e||"object"!=typeof e)return null;var n=null==e?void 0:e.deviation_entries;if(n&&"object"==typeof n){var i=Object.keys(n).sort(function(e,n){return Number(e)-Number(n)})[0];if(i&&n[i])return n[i]}var t=Object.keys(e).filter(function(e){return/^\d+$/.test(e)}).sort(function(e,n){return Number(e)-Number(n)});if(t.length&&e[t[0]])return e[t[0]];var o=null==e?void 0:e.deviations;if(o&&"object"==typeof o){var r=Object.keys(o).sort(function(e,n){return Number(e)-Number(n)})[0];if(r&&o[r])return o[r]}return null}(n);return i?e(e({},n),{deviation_summary:(null==n?void 0:n.deviation_summary)||(null==i?void 0:i.deviation_summary),deviation_title:(null==n?void 0:n.deviation_title)||(null==i?void 0:i.deviation_title),deviation_impact:(null==n?void 0:n.deviation_impact)||(null==i?void 0:i.deviation_impact),deviation_explanation:(null==n?void 0:n.deviation_explanation)||(null==i?void 0:i.deviation_explanation),evaluation_outputs:(null==n?void 0:n.evaluation_outputs)||(null==i?void 0:i.evaluation_outputs),cognitive_decisioning:(null==n?void 0:n.cognitive_decisioning)||(null==i?void 0:i.cognitive_decisioning)}):n};if(!("string"==typeof o&&o.includes(y)))return u(l);var c=o.split(y)[1];if(!c)return l;var a=(null==i?void 0:i.evaluationResult)||(null==t?void 0:t.evaluationResult)||{},s=(null===(n=null==a?void 0:a.deviation_entries)||void 0===n?void 0:n[c])||(null===(r=null==a?void 0:a.deviations)||void 0===r?void 0:r[c])||null;return s?e(e(e({},a),s),{deviation_summary:(null==s?void 0:s.deviation_summary)||(null==a?void 0:a.deviation_summary),deviation_title:(null==s?void 0:s.deviation_title)||(null==a?void 0:a.deviation_title),deviation_impact:(null==s?void 0:s.deviation_impact)||(null==a?void 0:a.deviation_impact),deviation_explanation:(null==s?void 0:s.deviation_explanation)||(null==a?void 0:a.deviation_explanation),evaluation_outputs:(null==s?void 0:s.evaluation_outputs)||(null==a?void 0:a.evaluation_outputs),cognitive_decisioning:(null==s?void 0:s.cognitive_decisioning)||(null==a?void 0:a.cognitive_decisioning)}):u(l)}(),isOrphan:!!r}},[Ht]),Wt=c(function(e,n,i,t,o,r){var l;if(e.stopPropagation(),Un.open&&Un.sectionIdx===o)ai();else{var u=e.currentTarget,c="left";(null===(l=Hn.current)||void 0===l?void 0:l.contains(u))&&(c="right");ut(),it.current&&ct(),pn(new Set),mn([]),In.current=[],ci(),ni.open?ho():ti(),requestAnimationFrame(function(){var e=function(){var e,n,i,t;if("string"==typeof o&&o.includes(y)){var r=o.split(y),l="".concat(r[0]).concat(y).concat(r[1]);return"right"===c?null===(e=Ni.current[l])||void 0===e?void 0:e.current:null===(n=Pi.current[l])||void 0===n?void 0:n.current}return"right"===c?null===(i=Ni.current[o])||void 0===i?void 0:i.current:null===(t=Pi.current[o])||void 0===t?void 0:t.current}()||u;Gn(qt(e,n,t,o,i,r))})}},[Un.open,Un.sectionIdx,ai,ti,qt]),Vt=c(function(){var e=Un.sectionIdx;Un.isOrphan,ai(),ti(),null!==e&&(mt(e),ut(),it.current&&ct(),mn([]),In.current=[],pn(function(n){return n.has(e)?new Set:new Set([e])}),setTimeout(function(){Tn.current&&Tn.current()},50))},[Un.sectionIdx,Un.isOrphan,ai,ti,ct]),Kt=c(function(){var e=Bn.current;if(e){Bn.current=null;var n=wi.findIndex(function(n){return n.id===e}),i=Bi.findIndex(function(n){return n.id===e}),t=-1===n?R(wi,e):null,o=-1===i?R(Bi,e):null,r=-1!==n?n:t?Number(t.split("-")[0]):-1,l=-1!==i?i:o?Number(o.split("-")[0]):-1,u=function(e,n,i,t){var o,r,l,u;return-1!==e?null!==(r=null===(o=i.current[e])||void 0===o?void 0:o.current)&&void 0!==r?r:null:n&&null!==(u=null===(l=t.current[n])||void 0===l?void 0:l.current)&&void 0!==u?u:null},c=function(e,n,i){void 0===i&&(i=30);var t=0,o=function(){var r=e();r&&0!==r.getBoundingClientRect().height?(lt.current.add(r),C(r,n)):t++<i&&requestAnimationFrame(o)};requestAnimationFrame(o)};if(Ze)-1!==r&&Vn.current&&c(function(){return u(n,t,Li,zi)},Vn.current),-1!==l&&Hn.current&&c(function(){return u(i,o,ji,Mi)},Hn.current);else{var a=Pn.current;if(!a)return;c(function(){return-1!==r?u(n,t,Li,zi):u(i,o,ji,Mi)},a)}}},[wi,Bi,Ze,Li,ji,zi,Mi,Vn,Hn,Pn]),Jt=c(function(n){if(n){ut(),ct(),pn(new Set),mn([]),In.current=[],ti(),ci();var i=wi.findIndex(function(e){return e.id===n}),t=Bi.findIndex(function(e){return e.id===n}),o=-1===i?R(wi,n):null,r=-1===t?R(Bi,n):null;if(-1!==i||o||-1!==t||r){var l=-1!==i?i:o?Number(o.split("-")[0]):-1,u=-1!==t?t:r?Number(r.split("-")[0]):-1;Bn.current=n,vt(function(n){var i,t=e({},n),o=!1;-1!==l&&(t[i=Ze?"left-".concat(l):String(l)]||(t[i]=!0,o=!0));-1!==u&&(t[i=Ze?"right-".concat(u):String(u)]||(t[i]=!0,o=!0));return o?t:n}),pt(function(n){var i=e({},n),t=!1,l=function(e){for(var n=e.split("-"),o=n[0],r=1;r<n.length;r++)o+="-".concat(n[r]),i[o]||(i[o]=!0,t=!0)};return o&&l(o),r&&l(r),t?i:n}),setTimeout(function(){requestAnimationFrame(function(){Bn.current===n&&Yt.current()})},50)}else console.warn('scrollToAndHighlightClause: nodeId "'.concat(n,'" not found'))}},[wi,Bi,Ze,vt,pt,ct,ti,ci]),Yt=r(Kt);u(function(){Yt.current=Kt},[Kt]);var Xt=r(null);u(function(){if(vi){var e=si.fields.find(function(e){return e.analysisKey===vi||e.key===vi});if(e){var n=Oi.current[e.key]||ki.current[e.key];(null==n?void 0:n.current)&&setTimeout(function(){return n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}}},[vi,si.fields]);var $t=c(function(e){var n,i,t,o,r,l,u,c,a,s=null===(n=null==yt?void 0:yt.rule_difference_comparison)||void 0===n?void 0:n.fields;if(!s||!s[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var d=s[e],v=(null==d?void 0:d.relation)||(null===(t=null===(i=null==d?void 0:d.highlights)||void 0===i?void 0:i.ruleA_spans)||void 0===t?void 0:t.length)||(null===(r=null===(o=null==d?void 0:d.highlights)||void 0===o?void 0:o.ruleB_spans)||void 0===r?void 0:r.length)||(null==d?void 0:d.mappings)&&d.mappings.length>0;if(d.mappings){var f=d.mappings[0]||{};return{score:d.score,relation:f.relation||"",highlightsA:(null===(l=f.highlights)||void 0===l?void 0:l.ruleA_spans)||[],highlightsB:(null===(u=f.highlights)||void 0===u?void 0:u.ruleB_spans)||[],hasContent:!!v}}return{score:d.score,relation:d.relation||"",highlightsA:(null===(c=d.highlights)||void 0===c?void 0:c.ruleA_spans)||[],highlightsB:(null===(a=d.highlights)||void 0===a?void 0:a.ruleB_spans)||[],hasContent:!!v}},[yt]),Ut=K({proposedSections:wi,existingSections:Bi,maintainRelativeOrder:Ze,cognitiveMap:Ln,deviationData:Ke,treeData:ke,resolvedComparisonConfig:si}),Gt=Ut.getSectionCompareStyle,Qt=Ut.getSubSectionCompareStyle,Zt=Ut.getDeviationStyleByKey,eo=Y({containerRef:bn,leftContainerRef:Vn,rightContainerRef:Hn,svgContainerRef:yn,pathRefs:Fn,leftHeaderRef:Cn,rightHeaderRef:wn,proposedSections:wi,existingSections:Bi,visibleFields:_i,leftRefs:Oi,rightRefs:ki,sectionLeftRefs:Li,sectionRightRefs:ji,subSectionLeftRefs:zi,subSectionRightRefs:Mi,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni,sectionRowRefs:qi,expandedSections:dt,expandedSubSections:ft,connectedSections:fn,isSideBySide:Yi,activeSideBySideSection:Zi,maintainRelativeOrder:Ze,cognitiveMap:Ln,getSectionCompareStyle:Gt,getSubSectionCompareStyle:Qt,getDeviationStyleByKey:Zt,isArrowVisible:Xi,isAnimatingRef:_n,isSideBySideRef:it,sideBySideCacheRef:nt,sideBySideLineRef:rt,activeSideBySideSectionRef:ot,activeSideBySideRightSectionRef:tt,connectedLines:hn,setConnectedLines:mn,cachedConnectedPositions:In,calculateLinesRef:Tn,resizeTimerRef:An,scrollLock:et,scrollSyncLocked:xn,handleResizeRef:Dn,activeProposed:bi,existingRule:Ci,analysisData:yt,pendingScrollTargetRef:Kn,pendingScrollCallbackRef:Jn,resolvedComparisonConfig:si,getFieldData:$t}),no=eo.lines,io=eo.setLines,to=eo.overallConnector,oo=eo.setOverallConnector,ro=eo.svgDimensions,lo=eo.handleColumnScroll;u(function(){ni.anchorEl&&requestAnimationFrame(function(){requestAnimationFrame(function(){var e;null===(e=Tn.current)||void 0===e||e.call(Tn)})})},[ni.anchorEl,xn]);var uo=c(function(){ut(),Rn(!1),vt({}),pt({}),ct(),pn(new Set),mn([]),In.current=[],ti(),ci(),ai(),requestAnimationFrame(function(){Tn.current&&Tn.current()})},[vt,pt,ct,ti,ci,ai]);u(function(){Yi||0!==fn.size||Rn(!1)},[Yi,fn]);var co=l(function(){return Object.values(dt).some(Boolean)||Object.values(ft).some(Boolean)},[dt,ft]),ao=r(null),so=r(0),vo=r(0),fo=r(0),po=J({timerRef:ao,ruleComponentRef:Nn,scrollContainerRef:Pn,containerRef:bn,maintainRelativeOrder:Ze,proposedSections:wi,existingSections:Bi,isSideBySideRef:it,activeSideBySideSectionRef:ot,activeSideBySideRightSectionRef:tt,sectionRowRefs:qi,sectionRightRowRefs:Hi,sectionLeftRefs:Li,sectionRightRefs:ji,subSectionLeftRefs:zi,subSectionRightRefs:Mi,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni,leftContainerRef:Vn,rightContainerRef:Hn,calculateLinesRef:Tn,handleResizeRef:Dn,setIsResizing:Gi,setIsArrowVisible:$i,sideBySideCacheRef:nt,cachedConnectedPositions:In}).handleResize;u(function(){Dn.current=po},[po,Dn]),u(function(){var e=function(e,n,i,t,o){n.current=e.getBoundingClientRect().width;var r=new ResizeObserver(function(e){null!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(function(){var r,l,u;i.current=null;var c=e[e.length-1];if(c){var a=null!==(u=null===(l=null===(r=c.borderBoxSize)||void 0===r?void 0:r[0])||void 0===l?void 0:l.inlineSize)&&void 0!==u?u:c.contentRect.width;Math.abs(a-n.current)<1?o():(n.current=a,t())}})});return r.observe(e),r},n={current:null},i={current:null},t={current:null},o=[],r=[n,i,t];return Nn.current&&o.push(e(Nn.current,so,n,function(){return Dn.current()},function(){})),Pn.current&&o.push(e(Pn.current,vo,i,function(){return Dn.current()},function(){return Tn.current()})),bn.current&&o.push(e(bn.current,fo,t,function(){return Dn.current()},function(){return Tn.current()})),function(){o.forEach(function(e){return e.disconnect()}),r.forEach(function(e){null!==e.current&&(cancelAnimationFrame(e.current),e.current=null)})}},[]),u(function(){it.current=Yi},[Yi]),u(function(){ot.current=Zi},[Zi]);var go=c(function(){var e,n=Un.sectionIdx,i=Un.isOrphan;if(ti(),null!=n){var t="left";Un.anchorEl&&(null===(e=Hn.current)||void 0===e?void 0:e.contains(Un.anchorEl))&&(t="right"),mt(n),at(n,i,{sourceSide:t})}},[at,Un.isOrphan,Un.sectionIdx,Un.anchorEl,ti]),ho=c(function(){ti(),ct(),pn(new Set),mn([]),In.current=[]},[ti,ct]),mo=null!==Un.sectionIdx&&fn.has(Un.sectionIdx),So=N({proposedSections:wi,existingSections:Bi,parentDeviationRecord:Ei,expandedSections:dt,maintainRelativeOrder:!!Ze,scrollContainerRef:Pn,leftContainerRef:Vn,rightContainerRef:Hn,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni}),xo=So.showDeviationNavigation,Ro=So.showOpenNodeRef,yo=So.adjustScrollForPopup,bo=c(function(e,n,i,t,o){var r,l="string"==typeof t?m(t).trim():m(null==t?void 0:t.deviation_summary).trim(),u=e.currentTarget;ci();var c="left";(null===(r=Hn.current)||void 0===r?void 0:r.contains(u))&&(c="right");var a=function(){var e,i,t,o;if("string"==typeof n&&n.includes(y)){var r=n.split(y),l="".concat(r[0]).concat(y).concat(r[1]);return"right"===c?null===(e=Ni.current[l])||void 0===e?void 0:e.current:null===(i=Pi.current[l])||void 0===i?void 0:i.current}return"right"===c?null===(t=Ni.current[n])||void 0===t?void 0:t.current:null===(o=Pi.current[n])||void 0===o?void 0:o.current};if(i)return ct(),pn(new Set),mn([]),In.current=[],void(l&&(mt(n),requestAnimationFrame(function(){var e=a()||u;e&&(e.getBoundingClientRect().top>.8*window.innerHeight&&e.scrollIntoView({behavior:"smooth",block:"center"}));ii({open:!0,anchorEl:e,summary:t,displayImpact:o})})));mt(n),l?setTimeout(function(){at(n,i,{toggleIfSame:!1,sourceSide:c,onReady:function(){var e,n,i,r=a()||u;if(r){var l=r.getBoundingClientRect();if(l.top>.8*window.innerHeight||l.top<100){var c=l.top-window.innerHeight/2;Ze?(null===(e=Vn.current)||void 0===e||e.scrollBy({top:c,behavior:"smooth"}),null===(n=Hn.current)||void 0===n||n.scrollBy({top:c,behavior:"smooth"})):null===(i=Pn.current)||void 0===i||i.scrollBy({top:c,behavior:"smooth"})}}ii({open:!0,anchorEl:r,summary:t,displayImpact:o})}})},350):setTimeout(function(){at(n,i,{toggleIfSame:!1,sourceSide:c})},350)},[at,ci,ii,ct,mt]),Co=l(function(){var e;if(!Je)return null;var n=null===(e=null==Je?void 0:Je.id)||void 0===e?void 0:e.split(":")[0];for(var i in Ei){if((Ei[i]||[]).some(function(e){return e.id===n}))return i}return null},[Je,Ei]),wo=r({id:null,triggerMs:null}),Bo=r(null);u(function(){var i;if(null==Je?void 0:Je.id){var t=Number(Je.trigger),o=wo.current;if((null==o?void 0:o.triggerMs)!==t){if(!(Je.id.includes(":")&&/:\d+$/.test(Je.id)))return wo.current={id:Je.id,triggerMs:t},void Jt(Je.id);var r=null===(i=null==Je?void 0:Je.id)||void 0===i?void 0:i.split(":"),l=r[0],u=r[1],c=null!=u?u:"0";Bo.current!==Je.id&&(ti(),ci(),ct(),pn(new Set),mn([]),In.current=[],Bo.current=Je.id);var a=!1,s=0,d=null,v=150,f=function(e,n){for(var i=function(e,t){if(!e)return null;if(e.id===n)return t;if(!Array.isArray(e.subsections))return null;for(var o=0;o<e.subsections.length;o++){var r=i(e.subsections[o],"".concat(t,"-").concat(o));if(r)return r}return null},t=0;t<e.length;t++){var o=i(e[t],String(t));if(o)return o}return null},p=function(){var i,o,r,u;if(!a){var g=function(){wo.current={id:Je.id,triggerMs:t}},h=null,m=null;for(var S in Ei){var x=Ei[S].find(function(e){return e.id===l});if(x){h=S,m=x;break}}if(m&&h){var R=wi.findIndex(function(e){return e.id===h}),b=Bi.findIndex(function(e){return e.id===h}),C=-1===R&&-1!==b,w=f(wi,m.id),B=f(Bi,m.id);if(w&&!B&&!C){var _=w.split("-"),E=Number(_[0]);if(Ze){var F=null===(o=null===(i=wi[E])||void 0===i?void 0:i.refIndexes)||void 0===o?void 0:o[0],I=Bi.findIndex(function(e){return e.selfIndex===F});-1!==I&&(E=I)}B=n([E],_.slice(1),!0).join("-")}if(w||B){var T=w?Number(w.split("-")[0]):R,A=B?Number(B.split("-")[0]):b,D=wi[T],O=Bi[A],k=D&&!D.title&&!D.content,L=O&&!O.title&&!O.content,j=C||(!w&&!!B||k&&!L),P=!1;if(T>=0&&!C)(Ze?!!dt["left-".concat(T)]:!!dt[String(T)])||(ht(T,"left"),P=!0);if(A>=0)(Ze?!!dt["right-".concat(A)]:!!dt[String(A)])||(ht(A,"right"),P=!0);if(P)return s+=1,void(d=setTimeout(p,450));var N,H=w||"",z=B||"",M="".concat(m.id).concat(y).concat(c).concat(y).concat(H).concat(y).concat(z),q="".concat(m.id).concat(y).concat(c),W=null===(r=Pi.current[q])||void 0===r?void 0:r.current,V=null===(u=Ni.current[q])||void 0===u?void 0:u.current,K=j||!W&&!!V,J=K?V:W;if(N=Ze?K?Hn.current:Vn.current:Pn.current,J&&N){var Y=J.getBoundingClientRect();if(0===Y.height)return void((s+=1)<2?d=setTimeout(p,v):g());var X=N.getBoundingClientRect(),$=Y.top-X.top+N.scrollTop-X.height/2+Y.height/2,U=w&&w.includes("-")||B&&B.includes("-"),G=function(){var n,i,t,o,r;if(!a){g();var l=J instanceof Element?window.getComputedStyle(J).color:"";W&&(W.style.transition="box-shadow 300ms ease-in-out",W.style.boxShadow="0 0 10px ".concat(l)),V&&(V.style.transition="box-shadow 300ms ease-in-out",V.style.boxShadow="0 0 10px ".concat(l)),setTimeout(function(){W&&(W.style.boxShadow=""),V&&(V.style.boxShadow="")},2e3);var u=(null===(i=null===(n=m.evaluationResult)||void 0===n?void 0:n.deviations)||void 0===i?void 0:i[c])||m,s=(null===(t=m.evaluationResult)||void 0===t?void 0:t.evaluation_outputs)||m.evaluation_outputs;if(!(!!W&&!!V)){var d=K?(null===(o=Ni.current[U?q:A])||void 0===o?void 0:o.current)||V:(null===(r=Pi.current[U?q:T])||void 0===r?void 0:r.current)||W;return yo(d,function(){ii({open:!0,anchorEl:d,displayImpact:Je.displayImpact,summary:e(e({},u),{evaluation_outputs:s})})},{skipScroll:!0}),void(null==Ye||Ye())}at(M,!1,{toggleIfSame:!1,sourceSide:C?"right":"left",onReady:function(){var n,i;g();var t=K?(null===(n=Ni.current[q])||void 0===n?void 0:n.current)||V:(null===(i=Pi.current[q])||void 0===i?void 0:i.current)||W;ii({open:!0,anchorEl:t,displayImpact:Je.displayImpact,summary:e({},u)}),null==Ye||Ye()}})}};Math.abs(N.scrollTop-$)<=2?G():(Kn.current=$,Jn.current=G,N.scrollTo({top:$,behavior:"smooth"}),d&&clearTimeout(d),d=setTimeout(function(){if(Jn.current){Kn.current=null;var e=Jn.current;Jn.current=null,e()}},800))}else(s+=1)<2?d=setTimeout(p,v):g()}else(s+=1)<2?d=setTimeout(p,v):g()}else(s+=1)<2?d=setTimeout(p,v):g()}};return d=setTimeout(p,v),function(){a=!0,d&&clearTimeout(d)}}}},[Je,Ei,wi,Bi,Ze,dt,ht,at,ii,Jt]),u(function(){var n,i,t;if(ni.open){var o=ni.anchorEl;if(o&&!o.isConnected){var r=function(e){for(var n,i=0,t=Object.entries(e);i<t.length;i++){var r=t[i],l=r[0];if((null===(n=r[1].current)||void 0===n?void 0:n.textContent)===o.textContent)return l}return null},l=(null===(n=o.dataset)||void 0===n?void 0:n.deviationRefId)||r(Pi.current)||r(Ni.current);if(l){var u=(null===(i=Ni.current[l])||void 0===i?void 0:i.current)||(null===(t=Pi.current[l])||void 0===t?void 0:t.current);u&&u.isConnected&&ii(function(n){return e(e({},n),{anchorEl:u})})}}}},[ni.open,ni.anchorEl,xn,fn,dt]);var _o=Xn.open,Eo=Xn.sectionIdx,Fo=Xn.isOrphan,Io=Xn.badgeStyle,To=Xn.anchorEl,Ao=Xn.sectionAnchorEl;u(function(){var n;if(_o&&null!=Eo&&Eo!==wt){var i="string"==typeof Eo?Eo.split(y)[0]:null,t=function(e,n){var i;if(!e||!Array.isArray(e))return null;for(var o=0,r=e;o<r.length;o++){var l=r[o];if(l.id===n)return l;if(null===(i=l.subsections)||void 0===i?void 0:i.length){var u=t(l.subsections,n);if(u)return u}}return null},o=i&&"string"==typeof i?t(wi,i):null,r=i&&"string"==typeof i?t(Bi,i):null,l="number"==typeof Eo?wi[Eo]||null:o||i&&((null===(n=null==ke?void 0:ke.nodes)||void 0===n?void 0:n[i])||(null==ke?void 0:ke[i]))||null,u="number"==typeof Eo?Bi[Eo]||null:r,c=qt(To,l,u,Eo,Fo,Io);$n(function(n){return n.open?m(n.cognitiveData)===m(c.cognitiveData)&&m(n.deviationData)===m(c.deviationData)&&n.sectionTitle===c.sectionTitle&&n.refSectionTitle===c.refSectionTitle?n:e(e(e({},n),c),{open:!0,anchorEl:n.anchorEl,sectionAnchorEl:n.sectionAnchorEl}):n})}},[_o,Eo,Fo,Io,To,Ao,wi,Bi,qt]);var Do=c(function(e){var n=e.section,t=e.keyPath,o=e.depth,r=void 0===o?0:o,l=e.columnKey,u=void 0===l?"left":l,c=e.parentNodeId,a=void 0===c?"":c,s=e.sectionOffset;return i(z,{section:n,keyPath:t,depth:r,columnKey:u,parentNodeId:a,sectionOffset:s})},[]),Oo=l(function(){return wi.map(function(e,n){var t,o=!(null==e?void 0:e.title)&&!(null==e?void 0:e.content),r=!(null==e?void 0:e.refIndexes)||0===e.refIndexes.length;return o&&r&&Ze?null:i(M,{section:e,idx:n},null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"left-row-".concat(n))})},[wi]),ko=l(function(){return Bi.map(function(e,n){var t,o=!(null==e?void 0:e.title)&&!(null==e?void 0:e.content),r=!(null==e?void 0:e.refIndexes)||0===e.refIndexes.length;return o&&r&&Ze?null:i(q,{section:e,idx:n},null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"right-row-".concat(n))})},[Bi]),Lo=r(Wt);u(function(){Lo.current=Wt},[Wt]);var jo=r(bo);u(function(){jo.current=bo},[bo]);var Po=r(ho);u(function(){Po.current=ho},[ho]);var No=r(ht);u(function(){No.current=ht},[ht]);var Ho=r(gt);u(function(){Ho.current=gt},[gt]);var zo=r(Do);u(function(){zo.current=Do},[Do]);var Mo=r(ct);u(function(){Mo.current=ct},[ct]);var qo=l(function(){return{maintainRelativeOrder:!!Ze,showDeviationBadges:on,isProposingFix:$e,proposingFixNodeId:Ue,isRedlineFlow:Ge,isSideBySide:Yi,activeSideBySideSection:Zi,scrollSyncLocked:xn,toggleScrollSyncLocked:xt,summaryPopupAnchorEl:ni.anchorEl,connectedSections:fn,proposedSections:wi,existingSections:Bi,deviationNumberRegistry:Fi,treeData:ke,displayConfig:Me,resolvedMarkdownStyles:jn,unifiedNumbering:Rt,expandedSections:dt,expandedSubSections:ft,setExpandedSubSections:pt,getSectionCompareStyle:Gt,getSubSectionCompareStyle:Qt,getBadgeRef:Ki,getSectionRowRef:Wi,getSubSectionRef:Vi,sectionLeftRefs:Li,sectionRightRefs:ji,sectionRowRefs:qi,sectionRightRowRefs:Hi,subSectionLeftRefs:zi,subSectionRightRefs:Mi,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni,openMoreFunctionsPopup:Tt,handleOpenSummaryPopup:At,openSummaryPopup:At,handleCloseSummaryPopup:Dt,toggleSection:Ot,handleSubSectionToggle:kt,renderSubSectionAccordion:Lt,resetSideBySide:jt,setConnectedSections:pn,setConnectedLines:mn,cachedConnectedPositions:In,showDeviationNavigation:xo,showOpenNodeRef:Ro,deviationNodeIdToView:null==Je?void 0:Je.id,deviationTargetParentId:Co}},[Ze,on,$e,Ue,Ge,Yi,Zi,xn,xt,ni.anchorEl,fn,wi,Bi,Fi,ke,Me,jn,Rt,dt,ft,pt,Gt,Qt,Ki,Wi,Vi,xo,Ro,Je,Co]);return i(V,e({value:qo},{children:t(a,e({ref:Nn,sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"visible",position:"relative"}},{children:[ln&&i(a,e({sx:{position:"absolute",inset:0,bgcolor:"rgba(255, 255, 255, 0.6)",backdropFilter:"blur(10px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px"}},{children:i(D,{})})),ni.open&&i(W,{open:ni.open,anchorEl:ni.anchorEl,containerEl:Xt.current,clipTopEl:Cn.current,scrollContainerEl:Pn.current,onClose:ho,summary:ni.summary,displayImpact:ni.displayImpact,isScrollLocked:xn}),i(A,{open:Un.open,anchorEl:Un.anchorEl,maintainRelativeOrder:!!Ze,sectionTitle:Un.sectionTitle,referenceSectionTitle:Un.refSectionTitle,onClose:ai,onOpenCognitiveCompare:li,onOpenSideBySide:go,onConnect:Vt,isConnected:mo,isOrphan:Un.isOrphan}),Xn.open&&i(T,{open:Xn.open,popupRef:ri,position:Qn,popupConfig:We,onClose:function(){Zn(null),$n(function(n){return e(e({},n),{open:!1})}),oi(null)},markdownStyles:Ne,sectionTitle:mi,referenceSectionTitle:xi,cognitiveData:Xn.cognitiveData,anchorEl:Xn.anchorEl,sectionAnchorEl:Xn.sectionAnchorEl,scrollContainerEl:Pn.current,badgeStyle:Xn.badgeStyle,docData:Xn.docData,deviationData:Xn.deviationData,isLoading:Xn.isLoading}),i(s,e({open:!!an,autoHideDuration:8e3,onClose:function(){return sn(null)},anchorOrigin:{vertical:"top",horizontal:"center"}},{children:i(d,e({onClose:function(){return sn(null)},severity:"error",sx:{width:"100%",whiteSpace:"pre-line"}},{children:an}))})),i(H,{componentHeaderText:Oe,displayConfig:Me,maintainRelativeOrder:Ze,onCollapseAll:uo,showCollapseAll:co,onToggleView:function(e){un(!0),setTimeout(function(){en(!e),null==qe||qe(!e),Rn(!1),ct(),ti(),pn(new Set),mn([]),In.current=[],requestAnimationFrame(function(){requestAnimationFrame(function(){setTimeout(function(){un(!1)},600)})})},50)}}),i(a,e({ref:Pn,onScroll:lo,sx:{flex:1,minHeight:0,pt:1.5,pb:1,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",overflowY:Ze?"visible":"auto",borderTop:bt&&Ct?"none":"1.5px solid #EEF0F4"}},{children:i(a,e({sx:e({display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"},Ze?{flex:1}:{})},{children:t(a,e({ref:bn,sx:e({display:"grid",gridTemplateColumns:"minmax(0, 1fr) 180px minmax(0, 1fr)",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative",minHeight:0},Ze?{flex:1,overflow:"visible"}:{})},{children:[i($,{svgContainerRef:yn,svgDimensions:ro,isResizing:Ui,overallConnector:to,rootDeviationStyle:Et,lines:no,isSideBySide:Yi,activeSideBySideSection:Zi,isArrowVisible:Xi,maintainRelativeOrder:Ze,proposedSections:wi,existingSections:Bi,cognitivePopup:Xn,activeBadgeId:ei,closeCognitivePopup:ci,setActiveBadgeId:oi,openCognitivePopupFromState:ui,buildSectionPopupState:qt,connectedLines:hn,pathRefs:Fn}),t(a,e({sx:e({border:"1px solid #E7E7E9",borderRadius:"8px",bgcolor:"#FFFFFF",display:"flex",flexDirection:"column",position:"relative",zIndex:2,filter:"drop-shadow(0px 2px 4px #F2F2F2)"},Ze?{flex:1,overflow:"visible"}:{})},{children:[i(a,e({ref:Cn,sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E7E7E9",borderRadius:"8px 8px 0 0",display:"flex",alignItems:"center",minHeight:"40px",overflow:"hidden",minWidth:0}},{children:i(v,e({title:gi,placement:"top"},{children:i(f,e({sx:{fontSize:"16px",fontWeight:500,color:"#19213D",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0,textAlign:"center",display:"block"}},{children:gi}))}))})),t(a,e({ref:Vn,onScroll:lo,sx:e({p:"12px",display:"flex",flexDirection:"column"},Ze?{maxHeight:"calc(100vh - 250px)",flex:1,overflowY:"auto",overflowX:"hidden",minHeight:0,mr:"-180px",pr:"192px","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}:{})},{children:[i("div",{ref:qn,style:{width:"100%",height:"0px",flexShrink:0}}),Ti&&Oo,i("div",{ref:Wn,style:{width:"100%",height:"0px",flexShrink:0}})]}))]})),i(a,e({ref:Xt,sx:{width:"180px",display:"flex",flexDirection:"column",alignItems:"center",pt:"15px",gap:0,zIndex:20,pointerEvents:"none"}},{children:i(a,e({sx:{display:"flex",justifyContent:"center",alignItems:"center",mt:0}},{children:t(a,e({onClick:function(n){n.stopPropagation(),Xn.open&&ei===wt?ci():(oi(wt),ui(qt(n.currentTarget,{title:"",content:"",evaluationResult:Bt,cognitiveData:{section_id:"",decisioning:[],gap:[],relevance_score:0,isMissingRationale:!0}},null,wt,!0,e(e({},Et),{label:""}))))},sx:{display:"inline-flex",alignItems:"center",gap:"5px",px:1.5,py:"5px",top:"-8px",borderRadius:"20px",bgcolor:Et.badgeBg,color:Et.badgeText,border:"1px solid ".concat(Et.badgeBorder),fontSize:"12px",fontWeight:600,whiteSpace:"nowrap",position:"relative",zIndex:1,pointerEvents:"auto",cursor:"pointer"}},{children:[null!=_t?_t:i(O,{}),i(a,e({component:"span",sx:{width:14,height:14,display:"flex",alignItems:"center","& svg":{width:"14px",height:"14px"}}},{children:i(g,{})})),i(p,{size:11,style:{transform:Xn.open&&ei===wt?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}))}))})),t(a,e({sx:e({border:"1px solid #E3E6EA",borderRadius:"8px",bgcolor:"#FFFFFF",boxShadow:"0px 1px 4px #F7F4FE",position:"relative",zIndex:2,display:"flex",flexDirection:"column",minWidth:0},Ze?{flex:1,overflow:"visible",minHeight:0}:{})},{children:[Qi&&i(h,{sections:11}),i(a,e({ref:wn,sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"40px",display:"flex",alignItems:"center",overflowX:"hidden"}},{children:i(v,e({title:Ri,placement:"top"},{children:i(f,e({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0,textAlign:"center",display:"block"}},{children:Ri}))}))})),t(a,e({ref:Hn,onScroll:lo,sx:e({p:"12px",display:"flex",flexDirection:"column"},Ze?{maxHeight:"calc(100vh - 250px)",flex:1,overflowY:"auto",overflowX:"hidden",minHeight:0,ml:"-150px",pl:"165px","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}:{})},{children:[i("div",{ref:zn,style:{width:"100%",height:"0px",flexShrink:0}}),Ti&&ko,i("div",{ref:Mn,style:{width:"100%",height:"0px",flexShrink:0}})]}))]}))]}))}))}))]}))}))};export{U as default};
|
|
1
|
+
import{__assign as e,__spreadArray as n}from"tslib";import{jsx as i,jsxs as t}from"react/jsx-runtime";import{useState as o,useRef as r,useMemo as l,useEffect as u,useCallback as c}from"react";import{Box as a,Snackbar as s,Alert as d,Tooltip as v,Typography as f}from"@mui/material";import{ChevronDown as p}from"lucide-react";import{ButtonCognitiveIcon as g}from"../../assests/svg/ButtonCognitiveIcon.js";import h from"./OverlayComponent.js";import{safeStringify as m,extractDeviationScore as S,generateColorPalette as x,findKeyPathByNodeId as R,DEVIATION_BADGE_SEPARATOR as y,hasMeaningfulRedlineTags as b,scrollAndHighlightClause as C}from"./CognitiveComparehelpers.js";import{SHARED_MARKDOWN_STYLES as w,DEFAULT_FIELD_CONFIG as _,DEFAULT_COMPARISON_CONFIG as B}from"./CognitiveCompareConfig.js";export{SHARED_MARKDOWN_STYLES}from"./CognitiveCompareConfig.js";import{DEFAULT_DEVIAION_COLOR as E,EMPTY_SUMMARY_POPUP_STATE as F,DEFAULT_COMPONENT_HEADER_TEXT as I}from"./CognitiveCompareConstants.js";import T from"./CognitivePopup.js";import A from"./MoreFunctionsPopup.js";import D from"./LoaderComponent.js";import O from"./components/ThreeDotsLoader.js";import{useCognitiveTreeData as k}from"./hooks/useCompareData.js";import{useComparePopups as L}from"./hooks/useComparePopups.js";import{useSectionRefs as j}from"./hooks/useSectionRefs.js";import{useAccordionState as P}from"./hooks/useAccordionState.js";import{useDeviationNavigation as N}from"./hooks/useDeviationNavigation.js";import H from"./components/CompareHeader.js";import z from"./components/SubSectionAccordion.js";import M from"./components/LHSSectionRow.js";import q from"./components/RHSSectionRow.js";import W from"./components/CognitiveSummaryPopup.js";import{CompareContextProvider as V}from"./CompareContext.js";import{useStyleHelpers as K}from"./hooks/useStyles.js";import{useResizeHandler as J}from"./hooks/useResizeHandler.js";import{useLinesCalculator as Y}from"./hooks/useLinesCalculator.js";import{useSideBySide as X}from"./hooks/useSideBySide.js";import $ from"./components/SvgConnectors.js";var U=function(U){var G,Q,Z,ee,ne,ie,te,oe,re,le,ue,ce,ae,se,de,ve,fe,pe,ge,he,me,Se,xe,Re,ye,be,Ce,we,_e,Be,Ee,Fe,Ie,Te,Ae,De=U.componentHeaderText,Oe=void 0===De?I:De,ke=U.treeData,Le=U.comparisonConfig,je=U.leftColumnTitleText,Pe=U.rightColumnTitleText,Ne=U.markdownStyles,He=U.resetTrigger,ze=U.displayConfig,Me=void 0===ze?{isHeaderVisible:!0,isToggleVisible:!0,maintainRelativeOrder:!1,isLoading:!0,showDeviationBadges:!1,enableDeviationSchemaBackwardCompatibility:!1,displayEmailNotifier:!0}:ze,qe=U.onMaintainRelativeOrderChange,We=U.popupConfig,Ve=U.deviationData,Ke=void 0===Ve?{}:Ve,Je=U.deviationNodeIdToView,Ye=U.resetDeviationNodeId,Xe=U.isProposingFix,$e=void 0!==Xe&&Xe,Ue=U.proposingFixNodeId,Ge=U.isRedlineFlow,Qe=o(Me.maintainRelativeOrder),Ze=Qe[0],en=Qe[1],nn=null!==(G=null==Me?void 0:Me.expandLevels)&&void 0!==G?G:0,tn=!!(null==Me?void 0:Me.expandAllSections),on=!!Ze||!!(null==Me?void 0:Me.showDeviationBadges),rn=o(!1),ln=rn[0],un=rn[1],cn=o(null),an=cn[0],sn=cn[1],dn=o(null===(Z=null!==(Q=null==ke?void 0:ke.newEvaluationResult)&&void 0!==Q?Q:null==Me?void 0:Me.enableDeviationSchemaBackwardCompatibility)||void 0===Z||Z)[0],vn=o(new Set),fn=vn[0],pn=vn[1],gn=o([]),hn=gn[0],mn=gn[1],Sn=o(!1),xn=Sn[0],Rn=Sn[1],yn=r(null),bn=r(null),Cn=r(null),wn=r(null),_n=r(null),Bn=r(!1),En=r(null),Fn=r({}),In=r([]),Tn=r(function(){}),An=r(null),Dn=r(function(){}),On=l(function(){return JSON.stringify(Ke||{})},[JSON.stringify(Ke)]),kn=l(function(){return Ke||{}},[On]),Ln=l(function(){return(null==ke?void 0:ke.cognitive_decisioning)||{}},[ke]),jn=l(function(){return e(e({},w),Ne)},[Ne]),Pn=r(null),Nn=r(null),Hn=r(null),zn=r(null),Mn=r(null),qn=r(null),Wn=r(null),Vn=r(null),Kn=r(null),Jn=r(null),Yn=L(Pn),Xn=Yn.cognitivePopup,$n=Yn.setCognitivePopup,Un=Yn.moreFunctions,Gn=Yn.setMoreFunctions,Qn=Yn.position,Zn=Yn.setPosition,ei=Yn.activeBadgeId,ni=Yn.summaryPopup,ii=Yn.setSummaryPopup,ti=Yn.closeSummaryPopup,oi=Yn.setActiveBadgeId,ri=Yn.popupRef,li=Yn.handleOpenCognitiveCompare,ui=Yn.openCognitivePopupFromState,ci=Yn.closeCognitivePopup,ai=Yn.closeMoreFunctionsPopup,si=l(function(){var e,n,i,t,o,r,l;return{fields:null!==(e=null==Le?void 0:Le.fields)&&void 0!==e?e:_,thresholds:{high:null!==(i=null===(n=null==Le?void 0:Le.thresholds)||void 0===n?void 0:n.high)&&void 0!==i?i:B.thresholds.high,medium:null!==(o=null===(t=null==Le?void 0:Le.thresholds)||void 0===t?void 0:t.medium)&&void 0!==o?o:B.thresholds.medium,exact:null!==(l=null===(r=null==Le?void 0:Le.thresholds)||void 0===r?void 0:r.exact)&&void 0!==l?l:B.thresholds.exact}}},[Le]),di=o(null),vi=di[0];di[1];var fi=null===(ie=null===(ee=null==ke?void 0:ke.documents)||void 0===ee?void 0:ee[null===(ne=null==ke?void 0:ke.input_index_map)||void 0===ne?void 0:ne[0]])||void 0===ie?void 0:ie.title,pi=null===(re=null===(te=null==ke?void 0:ke.documents)||void 0===te?void 0:te[null===(oe=null==ke?void 0:ke.input_index_map)||void 0===oe?void 0:oe[1]])||void 0===re?void 0:re.title,gi=m(je||fi||"Uploaded Contract"),hi=null===(ae=null===(ce=null===(le=null==ke?void 0:ke.documents)||void 0===le?void 0:le[null===(ue=null==ke?void 0:ke.input_index_map)||void 0===ue?void 0:ue[0]])||void 0===ce?void 0:ce.metadata)||void 0===ae?void 0:ae.file_name,mi=m(hi),Si=null===(fe=null===(ve=null===(se=null==ke?void 0:ke.documents)||void 0===se?void 0:se[null===(de=null==ke?void 0:ke.input_index_map)||void 0===de?void 0:de[1]])||void 0===ve?void 0:ve.metadata)||void 0===fe?void 0:fe.file_name,xi=m(Si),Ri=m(Pe||pi||"Reference Template"),yi=k(ke,Ze,kn,si,dn),bi=yi.activeProposed,Ci=yi.existingRule,wi=yi.proposedSections,_i=yi.existingSections,Bi=yi.visibleFields,Ei=yi.parentDeviationRecord,Fi=yi.deviationNumberRegistry,Ii=yi.parseError;u(function(){Ii&&sn("Failed to load comparison: ".concat(Ii))},[Ii]);var Ti=wi.length>0||_i.length>0,Ai=l(function(){if(!Ge)return"off";var e=0,n=0,i=function(t){Array.isArray(t)&&t.forEach(function(t){var o,r=(null==t?void 0:t.content)||"";b(r)&&(e+=1,n+=String(r).length),(null===(o=null==t?void 0:t.subsections)||void 0===o?void 0:o.length)&&i(t.subsections)})};return i(wi),i(_i),"".concat(e,":").concat(n)},[Ge,wi,_i]);u(function(){if(wi.length||_i.length)if(tn){var e={},n={},i=function(i,t){i.forEach(function(i,o){var r,l=Ze?"".concat(t,"-").concat(o):String(o);e[l]=!0;var u=function(e,i){null==e||e.forEach(function(e,t){var o,r="".concat(i,"-").concat(t);n[r]=!0,(null===(o=e.subsections)||void 0===o?void 0:o.length)&&u(e.subsections,r)})};(null===(r=i.subsections)||void 0===r?void 0:r.length)&&u(i.subsections,String(o))})};i(wi,"left"),i(_i,"right"),vt(e),pt(n)}else if(nn>0){var t={},o={},r=function(e,n,i){e.forEach(function(e,r){var l;if(i>=1){var u=Ze?"".concat(n,"-").concat(r):String(r);t[u]=!0}var c=function(e,n,t){t>i||null==e||e.forEach(function(e,i){var r,l="".concat(n,"-").concat(i);o[l]=!0,(null===(r=e.subsections)||void 0===r?void 0:r.length)&&c(e.subsections,l,t+1)})};(null===(l=e.subsections)||void 0===l?void 0:l.length)&&i>=2&&c(e.subsections,String(r),2)})};r(wi,"left",nn),r(_i,"right",nn),vt(t),pt(o)}},[tn,nn,wi,_i,Ze]);var Di=j(Bi.map(function(e){return e.key}),Math.max(wi.length,_i.length)),Oi=Di.leftRefs,ki=Di.rightRefs,Li=Di.sectionLeftRefs,ji=Di.sectionRightRefs,Pi=Di.lhsBadgeRefs,Ni=Di.rhsBadgeRefs,Hi=Di.sectionRightRowRefs,zi=Di.subSectionLeftRefs,Mi=Di.subSectionRightRefs,qi=Di.sectionRowRefs,Wi=Di.getSectionRowRef,Vi=Di.getSubSectionRef,Ki=Di.getBadgeRef,Ji=X({maintainRelativeOrder:Ze,proposedSections:wi,existingSections:_i,leftContainerRef:Vn,rightContainerRef:Hn,scrollContainerRef:Pn,sectionLeftRefs:Li,sectionRightRefs:ji,subSectionLeftRefs:zi,subSectionRightRefs:Mi,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni,sectionRowRefs:qi,sectionRightRowRefs:Hi,rhsTopSpacerRef:zn,rhsBottomSpacerRef:Mn,lhsTopSpacerRef:qn,lhsBottomSpacerRef:Wn,calculateLinesRef:Tn,setConnectedSections:pn,setConnectedLines:mn,cachedConnectedPositions:In,closeMoreFunctionsPopup:ai,setErrorToast:sn,moreFunctions:Un,closeSummaryPopup:ti}),Yi=Ji.isSideBySide,Xi=Ji.isArrowVisible,$i=Ji.setIsArrowVisible,Ui=Ji.isResizing,Gi=Ji.setIsResizing,Qi=Ji.isSideBySideLoading,Zi=Ji.activeSideBySideSection,et=Ji.scrollLock,nt=Ji.sideBySideCacheRef,it=Ji.isSideBySideRef,tt=Ji.activeSideBySideRightSectionRef,ot=Ji.activeSideBySideSectionRef,rt=Ji.sideBySideLineRef,lt=Ji.highlightedClauseRefs,ut=Ji.clearClauseHighlight,ct=Ji.resetSideBySide,at=Ji.activateSideBySide,st=P({maintainRelativeOrder:!!Ze,proposedSections:wi,existingSections:_i,activeSideBySideSection:Zi,connectedSections:fn,resetSideBySide:ct,setConnectedSections:pn,setConnectedLines:mn,cachedConnectedPositions:In,svgContainerRef:yn,isAnimatingRef:Bn,animationTimerRef:En,calculateLinesRef:Tn,sectionLeftRefs:Li,sectionRightRefs:ji,subSectionLeftRefs:zi,subSectionRightRefs:Mi}),dt=st.expandedSections,vt=st.setExpandedSections,ft=st.expandedSubSections,pt=st.setExpandedSubSections,gt=st.handleSubSectionToggle,ht=st.toggleSection,mt=st.forceExpandCrossWiredSections,St=function(){var e,n;if(null!=Zi){var i=null===(e=Li.current[Zi])||void 0===e?void 0:e.current,t=null===(n=ji.current[Zi])||void 0===n?void 0:n.current,o=Hn.current;if(i&&t&&o){var r=i.getBoundingClientRect(),l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=r.top-u.top,a=l.top-u.top-c;o.scrollBy({top:a,behavior:"smooth"})}}},xt=c(function(e){null==e||e.stopPropagation(),Rn(function(e){var n=!e;return n&&requestAnimationFrame(function(){St()}),n})},[St]);u(function(){Ge&&"off"!==Ai&&"0:0"!==Ai&&(nt.current=null,In.current=[],requestAnimationFrame(function(){var e;null===(e=Tn.current)||void 0===e||e.call(Tn)}))},[Ge,Ai]);var Rt=l(function(){var e=new Map,n=new Map,i=1;if(Ze)wi.forEach(function(n){!n.title&&!n.content||n.id&&e.set(n.id,i++)}),_i.forEach(function(t){if(t.id&&!(!t.title&&!t.content)){var o=wi.filter(function(e){var n;return null===(n=e.refIndexes)||void 0===n?void 0:n.includes(t.selfIndex)});if(o.length>0){var r=o.map(function(n){return e.get(n.id)}).filter(Boolean);n.set(t.id,r.join(", "))}else n.set(t.id,String(i++))}});else for(var t=Math.max(wi.length,_i.length),o=0;o<t;o++){var r=wi[o],l=_i[o];r?(e.set(r.id,i),l&&n.set(l.id,String(i)),i++):l&&n.set(l.id,String(i++))}return{leftNums:e,rightNums:n}},[wi,_i,Ze]),yt=Ci.analysis,bt=m(null===(ge=null===(pe=null==yt?void 0:yt.rule_difference_comparison)||void 0===pe?void 0:pe.summary)||void 0===ge?void 0:ge.overall_summary),Ct=!!bt.match(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/i),wt=null!==(he=null==ke?void 0:ke.base_root_id)&&void 0!==he?he:"-1";null==ke||ke[wt];var _t=dn?null!==(Fe=null!==(_e=Ke&&(null===(we=null==Ke?void 0:Ke[wt])||void 0===we?void 0:we.evaluation_result))&&void 0!==_e?_e:null===(Ee=null===(Be=null==ke?void 0:ke.nodes)||void 0===Be?void 0:Be[wt])||void 0===Ee?void 0:Ee.evaluation_result)&&void 0!==Fe?Fe:null:null!==(Ce=null!==(xe=Ke&&(null===(Se=null===(me=null==Ke?void 0:Ke[wt])||void 0===me?void 0:me.evaluation_result)||void 0===Se?void 0:Se[0]))&&void 0!==xe?xe:null===(be=null===(ye=null===(Re=null==ke?void 0:ke.nodes)||void 0===Re?void 0:Re[wt])||void 0===ye?void 0:ye.evaluation_result)||void 0===be?void 0:be[0])&&void 0!==Ce?Ce:null,Bt=S(_t),Et=x(null!==(Ae=null===(Te=null===(Ie=null==_t?void 0:_t.evaluation_outputs)||void 0===Ie?void 0:Ie.metadata)||void 0===Te?void 0:Te.label_color)&&void 0!==Ae?Ae:E),Ft=r(ct);u(function(){Ft.current=ct},[ct]);var It=r(ci);u(function(){It.current=ci},[ci]);var Tt=c(function(e,n,i,t,o,r){return jo.current(e,n,i,t,o,r)},[]),At=c(function(e,n,i,t,o){return Po.current(e,n,i,t,o)},[]),Dt=c(function(){return No.current()},[]),Ot=c(function(e,n){return Ho.current(e,n)},[]),kt=c(function(e){return zo.current(e)},[]),Lt=c(function(e){return Mo.current(e)},[]),jt=c(function(){return qo.current()},[]),Pt=c(function(){var e,n;ut(),null===(e=Ft.current)||void 0===e||e.call(Ft),Rn(!1),pn(new Set),mn([]),In.current=[],io([]),oo(null),ii(F),null===(n=It.current)||void 0===n||n.call(It),requestAnimationFrame(function(){var e;null===(e=Tn.current)||void 0===e||e.call(Tn)})},[]),Nt=r(Pt);u(function(){Nt.current=Pt},[Pt]),u(function(){He&&Nt.current()},[He]);var Ht=l(function(){return{documents:null==ke?void 0:ke.documents,input_index_map:null==ke?void 0:ke.input_index_map}},[JSON.stringify(null==ke?void 0:ke.documents),JSON.stringify(null==ke?void 0:ke.input_index_map)]),zt=r(ke);u(function(){zt.current=ke},[ke]);var Mt=r(Ln);u(function(){Mt.current=Ln},[Ln]);var qt=c(function(n,i,t,o,r,l,u){var c,a,s,d,v=m(null==i?void 0:i.id)||m(null==t?void 0:t.id)||"",f=(v?null===(c=Mt.current)||void 0===c?void 0:c[v]:null)||(null==i?void 0:i.cognitiveData)||(null==t?void 0:t.cognitiveData)||{section_id:v,decisioning:[],gap:[],relevance_score:0},p=null!==(s=null===(a=qi.current[o])||void 0===a?void 0:a.current)&&void 0!==s?s:null;return{isLoading:null!==(d=null==Me?void 0:Me.isLoading)&&void 0!==d&&d,open:!0,sectionTitle:(null==i?void 0:i.title)?null==i?void 0:i.title:"No Counterpart",refSectionTitle:(null==t?void 0:t.title)?null==t?void 0:t.title:"No Counterpart",cognitiveData:f,anchorEl:n,sectionAnchorEl:p,badgeStyle:l||null,sectionIdx:o,docData:Ht,deviationData:function(){var n,r,l=(null==i?void 0:i.evaluationResult)||(null==t?void 0:t.evaluationResult)||null,u=function(n){var i=function(e){if(!e||"object"!=typeof e)return null;var n=null==e?void 0:e.deviation_entries;if(n&&"object"==typeof n){var i=Object.keys(n).sort(function(e,n){return Number(e)-Number(n)})[0];if(i&&n[i])return n[i]}var t=Object.keys(e).filter(function(e){return/^\d+$/.test(e)}).sort(function(e,n){return Number(e)-Number(n)});if(t.length&&e[t[0]])return e[t[0]];var o=null==e?void 0:e.deviations;if(o&&"object"==typeof o){var r=Object.keys(o).sort(function(e,n){return Number(e)-Number(n)})[0];if(r&&o[r])return o[r]}return null}(n);return i?e(e({},n),{deviation_summary:(null==n?void 0:n.deviation_summary)||(null==i?void 0:i.deviation_summary),deviation_title:(null==n?void 0:n.deviation_title)||(null==i?void 0:i.deviation_title),deviation_impact:(null==n?void 0:n.deviation_impact)||(null==i?void 0:i.deviation_impact),deviation_explanation:(null==n?void 0:n.deviation_explanation)||(null==i?void 0:i.deviation_explanation),evaluation_outputs:(null==n?void 0:n.evaluation_outputs)||(null==i?void 0:i.evaluation_outputs),cognitive_decisioning:(null==n?void 0:n.cognitive_decisioning)||(null==i?void 0:i.cognitive_decisioning)}):n};if(!("string"==typeof o&&o.includes(y)))return u(l);var c=o.split(y)[1];if(!c)return l;var a=(null==i?void 0:i.evaluationResult)||(null==t?void 0:t.evaluationResult)||{},s=(null===(n=null==a?void 0:a.deviation_entries)||void 0===n?void 0:n[c])||(null===(r=null==a?void 0:a.deviations)||void 0===r?void 0:r[c])||null;return s?e(e(e({},a),s),{deviation_summary:(null==s?void 0:s.deviation_summary)||(null==a?void 0:a.deviation_summary),deviation_title:(null==s?void 0:s.deviation_title)||(null==a?void 0:a.deviation_title),deviation_impact:(null==s?void 0:s.deviation_impact)||(null==a?void 0:a.deviation_impact),deviation_explanation:(null==s?void 0:s.deviation_explanation)||(null==a?void 0:a.deviation_explanation),evaluation_outputs:(null==s?void 0:s.evaluation_outputs)||(null==a?void 0:a.evaluation_outputs),cognitive_decisioning:(null==s?void 0:s.cognitive_decisioning)||(null==a?void 0:a.cognitive_decisioning)}):u(l)}(),isOrphan:!!r}},[Ht]),Wt=c(function(e,n,i,t,o,r){var l;if(e.stopPropagation(),Un.open&&Un.sectionIdx===o)ai();else{var u=e.currentTarget,c="left";(null===(l=Hn.current)||void 0===l?void 0:l.contains(u))&&(c="right");ut(),it.current&&ct(),pn(new Set),mn([]),In.current=[],ci(),ni.open?ho():ti(),requestAnimationFrame(function(){var e=function(){var e,n,i,t;if("string"==typeof o&&o.includes(y)){var r=o.split(y),l="".concat(r[0]).concat(y).concat(r[1]);return"right"===c?null===(e=Ni.current[l])||void 0===e?void 0:e.current:null===(n=Pi.current[l])||void 0===n?void 0:n.current}return"right"===c?null===(i=Ni.current[o])||void 0===i?void 0:i.current:null===(t=Pi.current[o])||void 0===t?void 0:t.current}()||u;Gn(qt(e,n,t,o,i,r))})}},[Un.open,Un.sectionIdx,ai,ti,qt]),Vt=c(function(){var e=Un.sectionIdx;Un.isOrphan,ai(),ti(),null!==e&&(mt(e),ut(),it.current&&ct(),mn([]),In.current=[],pn(function(n){return n.has(e)?new Set:new Set([e])}),setTimeout(function(){Tn.current&&Tn.current()},50))},[Un.sectionIdx,Un.isOrphan,ai,ti,ct]),Kt=c(function(){var e=_n.current;if(e){_n.current=null;var n=wi.findIndex(function(n){return n.id===e}),i=_i.findIndex(function(n){return n.id===e}),t=-1===n?R(wi,e):null,o=-1===i?R(_i,e):null,r=-1!==n?n:t?Number(t.split("-")[0]):-1,l=-1!==i?i:o?Number(o.split("-")[0]):-1,u=function(e,n,i,t){var o,r,l,u;return-1!==e?null!==(r=null===(o=i.current[e])||void 0===o?void 0:o.current)&&void 0!==r?r:null:n&&null!==(u=null===(l=t.current[n])||void 0===l?void 0:l.current)&&void 0!==u?u:null},c=function(e,n,i){void 0===i&&(i=30);var t=0,o=function(){var r=e();r&&0!==r.getBoundingClientRect().height?(lt.current.add(r),C(r,n)):t++<i&&requestAnimationFrame(o)};requestAnimationFrame(o)};if(Ze)-1!==r&&Vn.current&&c(function(){return u(n,t,Li,zi)},Vn.current),-1!==l&&Hn.current&&c(function(){return u(i,o,ji,Mi)},Hn.current);else{var a=Pn.current;if(!a)return;c(function(){return-1!==r?u(n,t,Li,zi):u(i,o,ji,Mi)},a)}}},[wi,_i,Ze,Li,ji,zi,Mi,Vn,Hn,Pn]),Jt=c(function(n){if(n){ut(),ct(),pn(new Set),mn([]),In.current=[],ti(),ci();var i=wi.findIndex(function(e){return e.id===n}),t=_i.findIndex(function(e){return e.id===n}),o=-1===i?R(wi,n):null,r=-1===t?R(_i,n):null;if(-1!==i||o||-1!==t||r){var l=-1!==i?i:o?Number(o.split("-")[0]):-1,u=-1!==t?t:r?Number(r.split("-")[0]):-1;_n.current=n,vt(function(n){var i,t=e({},n),o=!1;-1!==l&&(t[i=Ze?"left-".concat(l):String(l)]||(t[i]=!0,o=!0));-1!==u&&(t[i=Ze?"right-".concat(u):String(u)]||(t[i]=!0,o=!0));return o?t:n}),pt(function(n){var i=e({},n),t=!1,l=function(e){for(var n=e.split("-"),o=n[0],r=1;r<n.length;r++)o+="-".concat(n[r]),i[o]||(i[o]=!0,t=!0)};return o&&l(o),r&&l(r),t?i:n}),setTimeout(function(){requestAnimationFrame(function(){_n.current===n&&Yt.current()})},50)}else console.warn('scrollToAndHighlightClause: nodeId "'.concat(n,'" not found'))}},[wi,_i,Ze,vt,pt,ct,ti,ci]),Yt=r(Kt);u(function(){Yt.current=Kt},[Kt]);var Xt=r(null);u(function(){if(vi){var e=si.fields.find(function(e){return e.analysisKey===vi||e.key===vi});if(e){var n=Oi.current[e.key]||ki.current[e.key];(null==n?void 0:n.current)&&setTimeout(function(){return n.current.scrollIntoView({behavior:"smooth",block:"center"})},150)}}},[vi,si.fields]);var $t=c(function(e){var n,i,t,o,r,l,u,c,a,s=null===(n=null==yt?void 0:yt.rule_difference_comparison)||void 0===n?void 0:n.fields;if(!s||!s[e])return{score:0,relation:"",highlightsA:[],highlightsB:[],hasContent:!1};var d=s[e],v=(null==d?void 0:d.relation)||(null===(t=null===(i=null==d?void 0:d.highlights)||void 0===i?void 0:i.ruleA_spans)||void 0===t?void 0:t.length)||(null===(r=null===(o=null==d?void 0:d.highlights)||void 0===o?void 0:o.ruleB_spans)||void 0===r?void 0:r.length)||(null==d?void 0:d.mappings)&&d.mappings.length>0;if(d.mappings){var f=d.mappings[0]||{};return{score:d.score,relation:f.relation||"",highlightsA:(null===(l=f.highlights)||void 0===l?void 0:l.ruleA_spans)||[],highlightsB:(null===(u=f.highlights)||void 0===u?void 0:u.ruleB_spans)||[],hasContent:!!v}}return{score:d.score,relation:d.relation||"",highlightsA:(null===(c=d.highlights)||void 0===c?void 0:c.ruleA_spans)||[],highlightsB:(null===(a=d.highlights)||void 0===a?void 0:a.ruleB_spans)||[],hasContent:!!v}},[yt]),Ut=K({proposedSections:wi,existingSections:_i,maintainRelativeOrder:Ze,cognitiveMap:Ln,deviationData:kn,treeData:ke,resolvedComparisonConfig:si}),Gt=Ut.getSectionCompareStyle,Qt=Ut.getSubSectionCompareStyle,Zt=Ut.getDeviationStyleByKey,eo=Y({containerRef:bn,leftContainerRef:Vn,rightContainerRef:Hn,svgContainerRef:yn,pathRefs:Fn,leftHeaderRef:Cn,rightHeaderRef:wn,proposedSections:wi,existingSections:_i,visibleFields:Bi,leftRefs:Oi,rightRefs:ki,sectionLeftRefs:Li,sectionRightRefs:ji,subSectionLeftRefs:zi,subSectionRightRefs:Mi,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni,sectionRowRefs:qi,expandedSections:dt,expandedSubSections:ft,connectedSections:fn,isSideBySide:Yi,activeSideBySideSection:Zi,maintainRelativeOrder:Ze,cognitiveMap:Ln,getSectionCompareStyle:Gt,getSubSectionCompareStyle:Qt,getDeviationStyleByKey:Zt,isArrowVisible:Xi,isAnimatingRef:Bn,isSideBySideRef:it,sideBySideCacheRef:nt,sideBySideLineRef:rt,activeSideBySideSectionRef:ot,activeSideBySideRightSectionRef:tt,connectedLines:hn,setConnectedLines:mn,cachedConnectedPositions:In,calculateLinesRef:Tn,resizeTimerRef:An,scrollLock:et,scrollSyncLocked:xn,handleResizeRef:Dn,activeProposed:bi,existingRule:Ci,analysisData:yt,pendingScrollTargetRef:Kn,pendingScrollCallbackRef:Jn,resolvedComparisonConfig:si,getFieldData:$t}),no=eo.lines,io=eo.setLines,to=eo.overallConnector,oo=eo.setOverallConnector,ro=eo.svgDimensions,lo=eo.handleColumnScroll;u(function(){ni.anchorEl&&requestAnimationFrame(function(){requestAnimationFrame(function(){var e;null===(e=Tn.current)||void 0===e||e.call(Tn)})})},[ni.anchorEl,xn]);var uo=c(function(){ut(),Rn(!1),vt({}),pt({}),ct(),pn(new Set),mn([]),In.current=[],ti(),ci(),ai(),requestAnimationFrame(function(){Tn.current&&Tn.current()})},[vt,pt,ct,ti,ci,ai]);u(function(){Yi||0!==fn.size||Rn(!1)},[Yi,fn]);var co=l(function(){return Object.values(dt).some(Boolean)||Object.values(ft).some(Boolean)},[dt,ft]),ao=r(null),so=r(0),vo=r(0),fo=r(0),po=J({timerRef:ao,ruleComponentRef:Nn,scrollContainerRef:Pn,containerRef:bn,maintainRelativeOrder:Ze,proposedSections:wi,existingSections:_i,isSideBySideRef:it,activeSideBySideSectionRef:ot,activeSideBySideRightSectionRef:tt,sectionRowRefs:qi,sectionRightRowRefs:Hi,sectionLeftRefs:Li,sectionRightRefs:ji,subSectionLeftRefs:zi,subSectionRightRefs:Mi,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni,leftContainerRef:Vn,rightContainerRef:Hn,calculateLinesRef:Tn,handleResizeRef:Dn,setIsResizing:Gi,setIsArrowVisible:$i,sideBySideCacheRef:nt,cachedConnectedPositions:In}).handleResize;u(function(){Dn.current=po},[po,Dn]),u(function(){var e=function(e,n,i,t,o){n.current=e.getBoundingClientRect().width;var r=new ResizeObserver(function(e){null!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(function(){var r,l,u;i.current=null;var c=e[e.length-1];if(c){var a=null!==(u=null===(l=null===(r=c.borderBoxSize)||void 0===r?void 0:r[0])||void 0===l?void 0:l.inlineSize)&&void 0!==u?u:c.contentRect.width;Math.abs(a-n.current)<1?o():(n.current=a,t())}})});return r.observe(e),r},n={current:null},i={current:null},t={current:null},o=[],r=[n,i,t];return Nn.current&&o.push(e(Nn.current,so,n,function(){return Dn.current()},function(){})),Pn.current&&o.push(e(Pn.current,vo,i,function(){return Dn.current()},function(){return Tn.current()})),bn.current&&o.push(e(bn.current,fo,t,function(){return Dn.current()},function(){return Tn.current()})),function(){o.forEach(function(e){return e.disconnect()}),r.forEach(function(e){null!==e.current&&(cancelAnimationFrame(e.current),e.current=null)})}},[]),u(function(){it.current=Yi},[Yi]),u(function(){ot.current=Zi},[Zi]);var go=c(function(){var e,n=Un.sectionIdx,i=Un.isOrphan;if(ti(),null!=n){var t="left";Un.anchorEl&&(null===(e=Hn.current)||void 0===e?void 0:e.contains(Un.anchorEl))&&(t="right"),mt(n),at(n,i,{sourceSide:t})}},[at,Un.isOrphan,Un.sectionIdx,Un.anchorEl,ti]),ho=c(function(){ti(),ct(),pn(new Set),mn([]),In.current=[]},[ti,ct]),mo=null!==Un.sectionIdx&&fn.has(Un.sectionIdx),So=N({proposedSections:wi,existingSections:_i,parentDeviationRecord:Ei,expandedSections:dt,maintainRelativeOrder:!!Ze,scrollContainerRef:Pn,leftContainerRef:Vn,rightContainerRef:Hn,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni}),xo=So.showDeviationNavigation,Ro=So.showOpenNodeRef,yo=So.adjustScrollForPopup,bo=c(function(e,n,i,t,o){var r,l="string"==typeof t?m(t).trim():m(null==t?void 0:t.deviation_summary).trim(),u=e.currentTarget;ci();var c="left";(null===(r=Hn.current)||void 0===r?void 0:r.contains(u))&&(c="right");var a=function(){var e,i,t,o;if("string"==typeof n&&n.includes(y)){var r=n.split(y),l="".concat(r[0]).concat(y).concat(r[1]);return"right"===c?null===(e=Ni.current[l])||void 0===e?void 0:e.current:null===(i=Pi.current[l])||void 0===i?void 0:i.current}return"right"===c?null===(t=Ni.current[n])||void 0===t?void 0:t.current:null===(o=Pi.current[n])||void 0===o?void 0:o.current};if(i)return ct(),pn(new Set),mn([]),In.current=[],void(l&&(mt(n),requestAnimationFrame(function(){var e=a()||u;e&&(e.getBoundingClientRect().top>.8*window.innerHeight&&e.scrollIntoView({behavior:"smooth",block:"center"}));ii({open:!0,anchorEl:e,summary:t,displayImpact:o})})));mt(n),l?setTimeout(function(){at(n,i,{toggleIfSame:!1,sourceSide:c,onReady:function(){var e,n,i,r=a()||u;if(r){var l=r.getBoundingClientRect();if(l.top>.8*window.innerHeight||l.top<100){var c=l.top-window.innerHeight/2;Ze?(null===(e=Vn.current)||void 0===e||e.scrollBy({top:c,behavior:"smooth"}),null===(n=Hn.current)||void 0===n||n.scrollBy({top:c,behavior:"smooth"})):null===(i=Pn.current)||void 0===i||i.scrollBy({top:c,behavior:"smooth"})}}ii({open:!0,anchorEl:r,summary:t,displayImpact:o})}})},350):setTimeout(function(){at(n,i,{toggleIfSame:!1,sourceSide:c})},350)},[at,ci,ii,ct,mt]),Co=l(function(){var e;if(!Je)return null;var n=null===(e=null==Je?void 0:Je.id)||void 0===e?void 0:e.split(":")[0];for(var i in Ei){if((Ei[i]||[]).some(function(e){return e.id===n}))return i}return null},[Je,Ei]),wo=r({id:null,triggerMs:null}),_o=r(null),Bo=r(dt);u(function(){Bo.current=dt},[dt]),u(function(){var i;if(null==Je?void 0:Je.id){var t=Number(Je.trigger),o=wo.current;if((null==o?void 0:o.triggerMs)!==t){if(!(Je.id.includes(":")&&/:\d+$/.test(Je.id)))return wo.current={id:Je.id,triggerMs:t},void Jt(Je.id);var r=null===(i=null==Je?void 0:Je.id)||void 0===i?void 0:i.split(":"),l=r[0],u=r[1],c=null!=u?u:"0";_o.current!==Je.id&&(ti(),ci(),ct(),pn(new Set),mn([]),In.current=[],_o.current=Je.id);var a=!1,s=0,d=null,v=200,f=!1,p=function(e,n){for(var i=function(e,t){if(!e)return null;if(e.id===n)return t;if(!Array.isArray(e.subsections))return null;for(var o=0;o<e.subsections.length;o++){var r=i(e.subsections[o],"".concat(t,"-").concat(o));if(r)return r}return null},t=0;t<e.length;t++){var o=i(e[t],String(t));if(o)return o}return null},g=function(){var i,o,r,u;if(!a){var h=function(){wo.current={id:Je.id,triggerMs:t}},S=null,x=null;for(var R in Ei){var b=Ei[R].find(function(e){return e.id===l});if(b){S=R,x=b;break}}if(x&&S){var C=wi.findIndex(function(e){return e.id===S}),w=_i.findIndex(function(e){return e.id===S}),_=-1===C&&-1!==w,B=p(wi,x.id),E=p(_i,x.id);if(B&&!E&&!_){var F=B.split("-"),I=Number(F[0]);if(Ze){var T=null===(o=null===(i=wi[I])||void 0===i?void 0:i.refIndexes)||void 0===o?void 0:o[0],A=_i.findIndex(function(e){return e.selfIndex===T});-1!==A&&(I=A)}E=n([I],F.slice(1),!0).join("-")}if(B||E){var D=B?Number(B.split("-")[0]):C,O=E?Number(E.split("-")[0]):w,k=O>=0?O:E?Number(E.split("-")[0]):-1,L=wi[D],j=_i[k],P=L&&!L.title&&!L.content,N=j&&!j.title&&!j.content,H=_||(!B&&!!E||P&&!N);if(!f){var z=!1;if(D>=0&&!_)(Ze?!!Bo.current["left-".concat(D)]:!!Bo.current[String(D)])||(ht(D,"left"),z=!0);if(O>=0)(Ze?!!Bo.current["right-".concat(k)]:!!Bo.current[String(k)])||(ht(k,"right"),z=!0);if((B&&B.includes("-")||E&&E.includes("-"))&&(pt(function(n){var i=e({},n),t=!1,o=function(e){for(var n=e.split("-"),o=n[0],r=1;r<n.length;r++)o+="-".concat(n[r]),i[o]||(i[o]=!0,t=!0)};return B&&o(B),E&&o(E),t?i:n}),z||(z=!0)),z)return f=!0,void(d=setTimeout(g,800))}var M,q=B||"",W=E||"",V="".concat(x.id).concat(y).concat(c).concat(y).concat(q).concat(y).concat(W),K="".concat(x.id).concat(y).concat(c),J=null===(r=Pi.current[K])||void 0===r?void 0:r.current,Y=null===(u=Ni.current[K])||void 0===u?void 0:u.current,X=H||!J&&!!Y,$=X?Y:J;if(M=Ze?X?Hn.current:Vn.current:Pn.current,$&&M){var U=$.getBoundingClientRect();if(0===U.height)return void((s+=1)<6?d=setTimeout(g,v):h());var G=M.getBoundingClientRect(),Q=U.top-G.top+M.scrollTop-G.height/2+U.height/2,Z=B&&B.includes("-")||E&&E.includes("-"),ee=function(){var n,i,t,o,r,l;if(!a){h();var u=$ instanceof Element?window.getComputedStyle($).color:"";J&&(J.style.transition="box-shadow 300ms ease-in-out",J.style.boxShadow="0 0 10px ".concat(u)),Y&&(Y.style.transition="box-shadow 300ms ease-in-out",Y.style.boxShadow="0 0 10px ".concat(u)),setTimeout(function(){J&&(J.style.boxShadow=""),Y&&(Y.style.boxShadow="")},2e3);var s=(null===(i=null===(n=x.evaluationResult)||void 0===n?void 0:n.deviations)||void 0===i?void 0:i[c])||x,d=(null===(t=x.evaluationResult)||void 0===t?void 0:t.evaluation_outputs)||x.evaluation_outputs,v=!!J&&!!Y,f=!!("string"==typeof(null==s?void 0:s.deviation_summary)?s.deviation_summary.trim():m(null!==(o=null==s?void 0:s.deviation_summary)&&void 0!==o?o:"").trim()),p=X?(null===(r=Ni.current[Z?K:k])||void 0===r?void 0:r.current)||Y:(null===(l=Pi.current[Z?K:D])||void 0===l?void 0:l.current)||J;if(!v||!f)return yo(p,function(){ii({open:!0,anchorEl:p,displayImpact:Je.displayImpact,summary:e(e({},s),{evaluation_outputs:d})})},{skipScroll:!0}),void(null==Ye||Ye());at(V,!1,{toggleIfSame:!1,sourceSide:_?"right":"left",onReady:function(){var n,i;h();var t=X?(null===(n=Ni.current[K])||void 0===n?void 0:n.current)||Y:(null===(i=Pi.current[K])||void 0===i?void 0:i.current)||J;ii({open:!0,anchorEl:t,displayImpact:Je.displayImpact,summary:e({},s)}),null==Ye||Ye()}})}},ne=function(){if(!Ze)return null;var e=X?J:Y,n=X?Vn.current:Hn.current;if(!e||!n)return null;var i=e.getBoundingClientRect();if(0===i.height)return null;var t=n.getBoundingClientRect();return{container:n,top:i.top-t.top+n.scrollTop-t.height/2+i.height/2}}(),ie=Math.abs(M.scrollTop-Q)<=2,te=!ne||Math.abs(ne.container.scrollTop-ne.top)<=2;ie&&te?ee():(ie||(Kn.current=Q,Jn.current=ee,M.scrollTo({top:Q,behavior:"smooth"})),ne&&!te&&ne.container.scrollTo({top:ne.top,behavior:"smooth"}),d&&clearTimeout(d),d=setTimeout(function(){if(Jn.current){Kn.current=null;var e=Jn.current;Jn.current=null,e()}else ie&&ee()},1500))}else(s+=1)<6?d=setTimeout(g,v):h()}else(s+=1)<6?d=setTimeout(g,v):h()}else(s+=1)<6?d=setTimeout(g,v):h()}};return d=setTimeout(g,v),function(){a=!0,d&&clearTimeout(d)}}}},[Je,Ei,wi,_i,Ze,ht,at,ii,Jt]),u(function(){var n,i,t;if(ni.open){var o=ni.anchorEl;if(o&&!o.isConnected){var r=function(e){for(var n,i=0,t=Object.entries(e);i<t.length;i++){var r=t[i],l=r[0];if((null===(n=r[1].current)||void 0===n?void 0:n.textContent)===o.textContent)return l}return null},l=(null===(n=o.dataset)||void 0===n?void 0:n.deviationRefId)||r(Pi.current)||r(Ni.current);if(l){var u=(null===(i=Ni.current[l])||void 0===i?void 0:i.current)||(null===(t=Pi.current[l])||void 0===t?void 0:t.current);u&&u.isConnected&&ii(function(n){return e(e({},n),{anchorEl:u})})}}}},[ni.open,ni.anchorEl,xn,fn,dt]);var Eo=Xn.open,Fo=Xn.sectionIdx,Io=Xn.isOrphan,To=Xn.badgeStyle,Ao=Xn.anchorEl,Do=Xn.sectionAnchorEl;u(function(){var n;if(Eo&&null!=Fo&&Fo!==wt){var i="string"==typeof Fo?Fo.split(y)[0]:null,t=function(e,n){var i;if(!e||!Array.isArray(e))return null;for(var o=0,r=e;o<r.length;o++){var l=r[o];if(l.id===n)return l;if(null===(i=l.subsections)||void 0===i?void 0:i.length){var u=t(l.subsections,n);if(u)return u}}return null},o=i&&"string"==typeof i?t(wi,i):null,r=i&&"string"==typeof i?t(_i,i):null,l="number"==typeof Fo?wi[Fo]||null:o||i&&((null===(n=null==ke?void 0:ke.nodes)||void 0===n?void 0:n[i])||(null==ke?void 0:ke[i]))||null,u="number"==typeof Fo?_i[Fo]||null:r,c=qt(Ao,l,u,Fo,Io,To);$n(function(n){return n.open?m(n.cognitiveData)===m(c.cognitiveData)&&m(n.deviationData)===m(c.deviationData)&&n.sectionTitle===c.sectionTitle&&n.refSectionTitle===c.refSectionTitle?n:e(e(e({},n),c),{open:!0,anchorEl:n.anchorEl,sectionAnchorEl:n.sectionAnchorEl}):n})}},[Eo,Fo,Io,To,Ao,Do,wi,_i,qt]);var Oo=c(function(e){var n=e.section,t=e.keyPath,o=e.depth,r=void 0===o?0:o,l=e.columnKey,u=void 0===l?"left":l,c=e.parentNodeId,a=void 0===c?"":c,s=e.sectionOffset;return i(z,{section:n,keyPath:t,depth:r,columnKey:u,parentNodeId:a,sectionOffset:s})},[]),ko=l(function(){return wi.map(function(e,n){var t,o=!(null==e?void 0:e.title)&&!(null==e?void 0:e.content),r=!(null==e?void 0:e.refIndexes)||0===e.refIndexes.length;return o&&r&&Ze?null:i(M,{section:e,idx:n},null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"left-row-".concat(n))})},[wi]),Lo=l(function(){return _i.map(function(e,n){var t,o=!(null==e?void 0:e.title)&&!(null==e?void 0:e.content),r=!(null==e?void 0:e.refIndexes)||0===e.refIndexes.length;return o&&r&&Ze?null:i(q,{section:e,idx:n},null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"right-row-".concat(n))})},[_i]),jo=r(Wt);u(function(){jo.current=Wt},[Wt]);var Po=r(bo);u(function(){Po.current=bo},[bo]);var No=r(ho);u(function(){No.current=ho},[ho]);var Ho=r(ht);u(function(){Ho.current=ht},[ht]);var zo=r(gt);u(function(){zo.current=gt},[gt]);var Mo=r(Oo);u(function(){Mo.current=Oo},[Oo]);var qo=r(ct);u(function(){qo.current=ct},[ct]);var Wo=l(function(){return{maintainRelativeOrder:!!Ze,showDeviationBadges:on,isProposingFix:$e,proposingFixNodeId:Ue,isRedlineFlow:Ge,isSideBySide:Yi,activeSideBySideSection:Zi,scrollSyncLocked:xn,toggleScrollSyncLocked:xt,summaryPopupAnchorEl:ni.anchorEl,connectedSections:fn,proposedSections:wi,existingSections:_i,deviationNumberRegistry:Fi,treeData:ke,displayConfig:Me,resolvedMarkdownStyles:jn,unifiedNumbering:Rt,expandedSections:dt,expandedSubSections:ft,setExpandedSubSections:pt,getSectionCompareStyle:Gt,getSubSectionCompareStyle:Qt,getBadgeRef:Ki,getSectionRowRef:Wi,getSubSectionRef:Vi,sectionLeftRefs:Li,sectionRightRefs:ji,sectionRowRefs:qi,sectionRightRowRefs:Hi,subSectionLeftRefs:zi,subSectionRightRefs:Mi,lhsBadgeRefs:Pi,rhsBadgeRefs:Ni,openMoreFunctionsPopup:Tt,handleOpenSummaryPopup:At,openSummaryPopup:At,handleCloseSummaryPopup:Dt,toggleSection:Ot,handleSubSectionToggle:kt,renderSubSectionAccordion:Lt,resetSideBySide:jt,setConnectedSections:pn,setConnectedLines:mn,cachedConnectedPositions:In,showDeviationNavigation:xo,showOpenNodeRef:Ro,deviationNodeIdToView:null==Je?void 0:Je.id,deviationTargetParentId:Co}},[Ze,on,$e,Ue,Ge,Yi,Zi,xn,xt,ni.anchorEl,fn,wi,_i,Fi,Me,jn,Rt,dt,ft,pt,Gt,Qt,Ki,Wi,Vi,xo,Ro,Je,Co]);return i(V,e({value:Wo},{children:t(a,e({ref:Nn,sx:{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#F6F7F9B2",fontFamily:'"Plus Jakarta Sans", sans-serif',overflow:"visible",position:"relative"}},{children:[ln&&i(a,e({sx:{position:"absolute",inset:0,bgcolor:"rgba(255, 255, 255, 0.6)",backdropFilter:"blur(10px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px"}},{children:i(D,{})})),ni.open&&i(W,{open:ni.open,anchorEl:ni.anchorEl,containerEl:Xt.current,clipTopEl:Cn.current,scrollContainerEl:Pn.current,onClose:ho,summary:ni.summary,displayImpact:ni.displayImpact,isScrollLocked:xn}),i(A,{open:Un.open,anchorEl:Un.anchorEl,maintainRelativeOrder:!!Ze,sectionTitle:Un.sectionTitle,referenceSectionTitle:Un.refSectionTitle,onClose:ai,onOpenCognitiveCompare:li,onOpenSideBySide:go,onConnect:Vt,isConnected:mo,isOrphan:Un.isOrphan}),Xn.open&&i(T,{open:Xn.open,popupRef:ri,position:Qn,popupConfig:We,onClose:function(){Zn(null),$n(function(n){return e(e({},n),{open:!1})}),oi(null)},markdownStyles:Ne,sectionTitle:mi,referenceSectionTitle:xi,cognitiveData:Xn.cognitiveData,anchorEl:Xn.anchorEl,sectionAnchorEl:Xn.sectionAnchorEl,scrollContainerEl:Pn.current,badgeStyle:Xn.badgeStyle,docData:Xn.docData,deviationData:Xn.deviationData,isLoading:Xn.isLoading}),i(s,e({open:!!an,autoHideDuration:8e3,onClose:function(){return sn(null)},anchorOrigin:{vertical:"top",horizontal:"center"}},{children:i(d,e({onClose:function(){return sn(null)},severity:"error",sx:{width:"100%",whiteSpace:"pre-line"}},{children:an}))})),i(H,{componentHeaderText:Oe,displayConfig:Me,maintainRelativeOrder:Ze,onCollapseAll:uo,showCollapseAll:co,onToggleView:function(e){un(!0),setTimeout(function(){en(!e),null==qe||qe(!e),Rn(!1),ct(),ti(),pn(new Set),mn([]),In.current=[],requestAnimationFrame(function(){requestAnimationFrame(function(){setTimeout(function(){un(!1)},600)})})},50)}}),i(a,e({ref:Pn,onScroll:lo,sx:{flex:1,minHeight:0,pt:1.5,pb:1,px:3,display:"flex",justifyContent:"center",alignItems:"flex-start",bgcolor:"#FFFFFF",overflowY:Ze?"visible":"auto",borderTop:bt&&Ct?"none":"1.5px solid #EEF0F4"}},{children:i(a,e({sx:e({display:"flex",flexDirection:"column",width:"100%",maxWidth:"1200px"},Ze?{flex:1}:{})},{children:t(a,e({ref:bn,sx:e({display:"grid",gridTemplateColumns:"minmax(0, 1fr) 180px minmax(0, 1fr)",gap:"60px",maxWidth:"1200px",width:"100%",position:"relative",minHeight:0},Ze?{flex:1,overflow:"visible"}:{})},{children:[i($,{svgContainerRef:yn,svgDimensions:ro,isResizing:Ui,overallConnector:to,rootDeviationStyle:Et,lines:no,isSideBySide:Yi,activeSideBySideSection:Zi,isArrowVisible:Xi,maintainRelativeOrder:Ze,proposedSections:wi,existingSections:_i,cognitivePopup:Xn,activeBadgeId:ei,closeCognitivePopup:ci,setActiveBadgeId:oi,openCognitivePopupFromState:ui,buildSectionPopupState:qt,connectedLines:hn,pathRefs:Fn}),t(a,e({sx:e({border:"1px solid #E7E7E9",borderRadius:"8px",bgcolor:"#FFFFFF",display:"flex",flexDirection:"column",position:"relative",zIndex:2,filter:"drop-shadow(0px 2px 4px #F2F2F2)"},Ze?{flex:1,overflow:"visible"}:{})},{children:[i(a,e({ref:Cn,sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E7E7E9",borderRadius:"8px 8px 0 0",display:"flex",alignItems:"center",minHeight:"40px",overflow:"hidden",minWidth:0}},{children:i(v,e({title:gi,placement:"top"},{children:i(f,e({sx:{fontSize:"16px",fontWeight:500,color:"#19213D",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0,textAlign:"center",display:"block"}},{children:gi}))}))})),t(a,e({ref:Vn,onScroll:lo,sx:e({p:"12px",display:"flex",flexDirection:"column"},Ze?{maxHeight:"calc(100vh - 250px)",flex:1,overflowY:"auto",overflowX:"hidden",minHeight:0,mr:"-180px",pr:"192px","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}:{})},{children:[i("div",{ref:qn,style:{width:"100%",height:"0px",flexShrink:0}}),Ti&&ko,i("div",{ref:Wn,style:{width:"100%",height:"0px",flexShrink:0}})]}))]})),i(a,e({ref:Xt,sx:{width:"180px",display:"flex",flexDirection:"column",alignItems:"center",pt:"15px",gap:0,zIndex:20,pointerEvents:"none"}},{children:i(a,e({sx:{display:"flex",justifyContent:"center",alignItems:"center",mt:0}},{children:t(a,e({onClick:function(n){n.stopPropagation(),Xn.open&&ei===wt?ci():(oi(wt),ui(qt(n.currentTarget,{title:"",content:"",evaluationResult:_t,cognitiveData:{section_id:"",decisioning:[],gap:[],relevance_score:0,isMissingRationale:!0}},null,wt,!0,e(e({},Et),{label:""}))))},sx:{display:"inline-flex",alignItems:"center",gap:"5px",px:1.5,py:"5px",top:"-8px",borderRadius:"20px",bgcolor:Et.badgeBg,color:Et.badgeText,border:"1px solid ".concat(Et.badgeBorder),fontSize:"12px",fontWeight:600,whiteSpace:"nowrap",position:"relative",zIndex:1,pointerEvents:"auto",cursor:"pointer"}},{children:[null!=Bt?Bt:i(O,{}),i(a,e({component:"span",sx:{width:14,height:14,display:"flex",alignItems:"center","& svg":{width:"14px",height:"14px"}}},{children:i(g,{})})),i(p,{size:11,style:{transform:Xn.open&&ei===wt?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease"}})]}))}))})),t(a,e({sx:e({border:"1px solid #E3E6EA",borderRadius:"8px",bgcolor:"#FFFFFF",boxShadow:"0px 1px 4px #F7F4FE",position:"relative",zIndex:2,display:"flex",flexDirection:"column",minWidth:0},Ze?{flex:1,overflow:"visible",minHeight:0}:{})},{children:[Qi&&i(h,{sections:11}),i(a,e({ref:wn,sx:{p:"8px",bgcolor:"#F7F8FA",borderBottom:"1px solid #E3E6EA",borderRadius:"8px 8px 0 0",minHeight:"40px",display:"flex",alignItems:"center",overflowX:"hidden"}},{children:i(v,e({title:Ri,placement:"top"},{children:i(f,e({sx:{fontSize:"16px",fontWeight:500,color:"#5928ED",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0,textAlign:"center",display:"block"}},{children:Ri}))}))})),t(a,e({ref:Hn,onScroll:lo,sx:e({p:"12px",display:"flex",flexDirection:"column"},Ze?{maxHeight:"calc(100vh - 250px)",flex:1,overflowY:"auto",overflowX:"hidden",minHeight:0,ml:"-150px",pl:"165px","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}:{})},{children:[i("div",{ref:zn,style:{width:"100%",height:"0px",flexShrink:0}}),Ti&&Lo,i("div",{ref:Mn,style:{width:"100%",height:"0px",flexShrink:0}})]}))]}))]}))}))}))]}))}))};export{U as default};
|
|
2
2
|
//# sourceMappingURL=CognitiveCompare.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as n,jsx as a}from"react/jsx-runtime";import{useState as o,useMemo as c}from"react";import t from"dayjs";import{Calendar as s,InfoIcon as i,ArrowLeft as r,ArrowRight as l}from"lucide-react";import{Tooltip as d,Checkbox as m}from"@mui/material";import h from"./ManageRemainder.module.css.js";var g=["Su","Mo","Tu","We","Th","Fr","Sa"];function u(u){var p=u.assignees,v=o(new Date),N=v[0],k=v[1],f=o({assignee1:!0,assignee2:!0,assignee3:!0}),C=f[0],b=f[1],w=function(n){b(function(a){var o;return e(e({},a),((o={})[n]=!a[n],o))})},x=c(function(){var e=new Map;return p.forEach(function(n){var a=new Map;n.reminders.forEach(function(e){var n,o=t(e).format("YYYY-MM-DD"),c=null!==(n=a.get(o))&&void 0!==n?n:{reminderCount:0,escalationCount:0};c.reminderCount+=1,a.set(o,c)}),n.escalations.forEach(function(e){var n,o=t(e).format("YYYY-MM-DD"),c=null!==(n=a.get(o))&&void 0!==n?n:{reminderCount:0,escalationCount:0};c.escalationCount+=1,a.set(o,c)}),a.forEach(function(a,o){e.has(o)||e.set(o,[]),e.get(o).push({ownerId:n.ownerId,ownerName:n.ownerName,ownerColor:n.ownerColor,reminderCount:a.reminderCount,escalationCount:a.escalationCount,totalCount:a.reminderCount+a.escalationCount})})}),e},[p]);return n("div",e({style:{boxShadow:"0 4px 12px 0 rgba(0, 0, 0, 0.08)"},className:h.calendarContainer},{children:[n("div",e({className:h.calendarHeader},{children:[n("div",e({className:h.calendarHeaderTitle},{children:[a(s,{size:14}),"Calendar View"]})),a("div",e({className:h.calendarHeaderInfo},{children:a(i,{stroke:"#64748B",className:h.calendarHeaderInfo})}))]})),n("div",e({className:h.monthNav},{children:[a("button",e({type:"button",onClick:function(){return k(t(N).subtract(1,"month").toDate())},className:h.monthNavBtn},{children:a(r,{size:18})})),a("h2",e({className:h.monthNavTitle},{children:t(N).format("MMMM YYYY")})),a("button",e({type:"button",onClick:function(){return k(t(N).add(1,"month").toDate())},className:h.monthNavBtn},{children:a(l,{size:18})}))]})),a("div",{className:"calendar-wrapper"}),a("div",e({className:h.weekdayHeader},{children:g.map(function(n){return a("div",e({className:h.weekdayLabel},{children:n}),n)})})),a("div",e({className:h.dayGrid},{children:Array.from({length:42}).map(function(o,c){var s,i=t(N).startOf("month").startOf("week").add(c,"day").toDate(),r=t(i).format("YYYY-MM-DD"),l=null!==(s=x.get(r))&&void 0!==s?s:[],m=t(i).month()===t(N).month()&&t(i).year()===t(N).year(),g=t(i).isBefore(t(),"day"),u=t(i).isSame(t(),"day"),p={1:C.assignee1,2:C.assignee2,3:C.assignee3},v=l.filter(function(e){return p[e.ownerId]});return a(d,e({arrow:!0,placement:"top",disableHoverListener:!l.length,title:v.length?n("div",e({className:h.tooltipContent},{children:[n("div",e({className:h.tooltipHeader},{children:[a("div",e({className:h.tooltipTitle},{children:"Reminder Schedule"})),a("div",e({className:h.tooltipDate},{children:t(i).format("MMM D, YYYY")}))]})),a("div",e({className:h.tooltipAssignees},{children:v.map(function(o){return n("div",e({className:h.tooltipAssigneeRow},{children:[n("div",e({className:h.tooltipAssigneeInfo},{children:[a("span",{className:h.tooltipAssigneeDot,style:{backgroundColor:o.ownerColor}}),n("span",e({className:h.tooltipAssigneeName},{children:[o.ownerName,":"]}))]})),n("span",e({className:h.tooltipAssigneeCount},{children:["x"," ",o.reminderCount+o.escalationCount]}))]}),o.ownerId)})}))]})):"",slotProps:{tooltip:{sx:{bgcolor:"#F8FAFC",color:"#0F172A",borderRadius:"8px",boxShadow:"0px 4px 12px rgba(15, 23, 42, 0.12)",p:0,maxWidth:"none"}},arrow:{sx:{color:"#FFFFFF"}}}},{children:n("div",e({className:"".concat(h.dayCell).concat(g?" ".concat(h.dayCellPast):"").concat(u?" ".concat(h.dayCellToday):"")},{children:[a("span",e({className:"".concat(h.dayNumber," ").concat(m?h.dayNumberCurrent:h.dayNumberOutside)},{children:i.getDate()})),a("div",e({className:h.indicatorWrapper},{children:v.map(function(e,n){return a("span",{className:"".concat(h.indicatorDot).concat(0!==n?" ".concat(h.indicatorDotOverlap):""),style:{backgroundColor:e.ownerColor,zIndex:n+1}},e.ownerId)})}))]}))}),r)})})),a("div",e({className:h.legendWrapper},{children:n("div",e({className:h.legendInner},{children:[n("div",e({className:"".concat(h.legendItem," ").concat(h.legendItemAssignee1),onClick:function(e){w("assignee1")}},{children:[a(m,{checked:null==C?void 0:C.assignee1,size:"small",disableRipple:!0,onClick:function(e){return e.stopPropagation()},onChange:function(){return w("assignee1")},icon:a("div",{className:h.checkboxIconUnchecked}),checkedIcon:a("div",e({className:"".concat(h.checkboxIconChecked," ").concat(h.checkboxIconCheckedAssignee1)},{children:a("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",className:h.checkboxCheckSvg},{children:a("path",{d:"M1 5L4.2 8L11 1",stroke:"#C11574",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),a("span",e({className:"".concat(h.legendLabel," ").concat(h.legendLabelAssignee1)},{children:"Assignee 1"}))]})),n("div",e({className:"".concat(h.legendItem," ").concat(h.legendItemAssignee2),onClick:function(e){w("assignee2")}},{children:[a(m,{checked:null==C?void 0:C.assignee2,size:"small",disableRipple:!0,onClick:function(e){return e.stopPropagation()},onChange:function(){return w("assignee2")},icon:a("div",{className:h.checkboxIconUnchecked}),checkedIcon:a("div",e({className:"".concat(h.checkboxIconChecked," ").concat(h.checkboxIconCheckedAssignee2)},{children:a("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",className:h.checkboxCheckSvg},{children:a("path",{d:"M1 5L4.2 8L11 1",stroke:"#3538CD",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),a("span",e({className:"".concat(h.legendLabel," ").concat(h.legendLabelAssignee2)},{children:"Assignee 2"}))]})),n("div",e({className:"".concat(h.legendItem," ").concat(h.legendItemAssignee3),onClick:function(e){w("assignee3")}},{children:[a(m,{checked:null==C?void 0:C.assignee3,size:"small",disableRipple:!0,onClick:function(e){return e.stopPropagation()},onChange:function(){return w("assignee3")},icon:a("div",{className:h.checkboxIconUnchecked}),checkedIcon:a("div",e({className:"".concat(h.checkboxIconChecked," ").concat(h.checkboxIconCheckedAssignee3)},{children:a("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",className:h.checkboxCheckSvg},{children:a("path",{d:"M1 5L4.2 8L11 1",stroke:"#FF6058",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),a("span",e({className:"".concat(h.legendLabel," ").concat(h.legendLabelAssignee3)},{children:"Assignee 3"}))]}))]}))})),n("div",e({className:h.bottomLegend},{children:[n("div",e({className:h.bottomLegendItem},{children:[a("div",{className:"".concat(h.bottomLegendSwatch," ").concat(h.bottomLegendSwatchPast)}),a("span",e({className:h.bottomLegendLabel},{children:"Past Dates"}))]})),n("div",e({className:h.bottomLegendItem},{children:[a("div",{className:"".concat(h.bottomLegendSwatch," ").concat(h.bottomLegendSwatchFailed)}),a("span",e({className:h.bottomLegendLabel},{children:"Reminder Failed"}))]}))]}))]}))}export{u as default};
|
|
2
|
+
//# sourceMappingURL=AssigneeCalendarView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssigneeCalendarView.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={mrContainer:"ManageRemainder-module_mrContainer__kVgxT",mrSectionBox:"ManageRemainder-module_mrSectionBox__bEDtY",mrSectionHeader:"ManageRemainder-module_mrSectionHeader__5k1HQ",mrSectionHeaderContent:"ManageRemainder-module_mrSectionHeaderContent__eKJWh",mrSectionHeaderLeft:"ManageRemainder-module_mrSectionHeaderLeft__I-hzD",mrSectionHeaderRight:"ManageRemainder-module_mrSectionHeaderRight__W-BY3",mrSectionTitleWrapper:"ManageRemainder-module_mrSectionTitleWrapper__NA6i-",mrSectionTitleIcon:"ManageRemainder-module_mrSectionTitleIcon__6pWZz",mrSectionTitle:"ManageRemainder-module_mrSectionTitle__BPAU2",mrSectionDescription:"ManageRemainder-module_mrSectionDescription__HdkjC",mrIconSmall:"ManageRemainder-module_mrIconSmall__kbiWd",mrIconInfo:"ManageRemainder-module_mrIconInfo__U8Ylz",mrIconArrow:"ManageRemainder-module_mrIconArrow__wMp9q",mrIconAction:"ManageRemainder-module_mrIconAction__l9uVi",mrIconPreview:"ManageRemainder-module_mrIconPreview__oYo84",mrIconCalendar:"ManageRemainder-module_mrIconCalendar__2gaaf",mrIconChevronToggle:"ManageRemainder-module_mrIconChevronToggle__LjUy1",mrIconDropdown:"ManageRemainder-module_mrIconDropdown__-heGj",mrIconSuccess:"ManageRemainder-module_mrIconSuccess__EMJrR",mrChevronButton:"ManageRemainder-module_mrChevronButton__QKLsI",mrChevronIcon:"ManageRemainder-module_mrChevronIcon__CxLkq",mrChevronRotated:"ManageRemainder-module_mrChevronRotated__NL7Ho",mrSuccessMessage:"ManageRemainder-module_mrSuccessMessage__4N0gO",mrSuccessIcon:"ManageRemainder-module_mrSuccessIcon__PsybU",mrSuccessIconInner:"ManageRemainder-module_mrSuccessIconInner__yEl8-",mrSuccessText:"ManageRemainder-module_mrSuccessText__-hXJh",mrSuccessTitle:"ManageRemainder-module_mrSuccessTitle__Zakof",mrSuccessDescription:"ManageRemainder-module_mrSuccessDescription__-r7A8",mrHiddenSection:"ManageRemainder-module_mrHiddenSection__c67oj",mrRecipientsSection:"ManageRemainder-module_mrRecipientsSection__L0f1k",mrRecipientsLabel:"ManageRemainder-module_mrRecipientsLabel__Escta",mrRecipientsGrid:"ManageRemainder-module_mrRecipientsGrid__-7giX",mrRecipientItem:"ManageRemainder-module_mrRecipientItem__C0uw5",mrRecipientInfo:"ManageRemainder-module_mrRecipientInfo__djuEp",mrRecipientAvatar:"ManageRemainder-module_mrRecipientAvatar__g6YDo",mrRecipientName:"ManageRemainder-module_mrRecipientName__gFCJU",mrCheckboxUnchecked:"ManageRemainder-module_mrCheckboxUnchecked__j0wYE",mrCheckboxChecked:"ManageRemainder-module_mrCheckboxChecked__TowNb",mrCheckboxIcon:"ManageRemainder-module_mrCheckboxIcon__RVL-V",mrActionsSection:"ManageRemainder-module_mrActionsSection__in30u",mrActionButton:"ManageRemainder-module_mrActionButton__x9IEC",mrActionButtonSecondary:"ManageRemainder-module_mrActionButtonSecondary__GBvpQ",mrActionButtonPrimary:"ManageRemainder-module_mrActionButtonPrimary__vRNbF",mrMainContent:"ManageRemainder-module_mrMainContent__2gAUU",mrEscalationContainer:"ManageRemainder-module_mrEscalationContainer__V4PfB",mrEscalationHeaderWrapper:"ManageRemainder-module_mrEscalationHeaderWrapper__vOg2K",mrEscalationHeader:"ManageRemainder-module_mrEscalationHeader__sV-tw",mrEscalationTitleWrapper:"ManageRemainder-module_mrEscalationTitleWrapper__G90xv",mrEscalationTitleText:"ManageRemainder-module_mrEscalationTitleText__X233z",mrTooltipIcon:"ManageRemainder-module_mrTooltipIcon__QpPGO",mrEscalationActions:"ManageRemainder-module_mrEscalationActions__RoHhx",mrEscalationPreviewButton:"ManageRemainder-module_mrEscalationPreviewButton__68J90",mrEscalationPreviewIcon:"ManageRemainder-module_mrEscalationPreviewIcon__KNa9K",mrEscalationPreviewText:"ManageRemainder-module_mrEscalationPreviewText__FM5S5",mrEscalationDescription:"ManageRemainder-module_mrEscalationDescription__z-3q8",mrReorderGroup:"ManageRemainder-module_mrReorderGroup__sLaAn",mrReminderItem:"ManageRemainder-module_mrReminderItem__kwd0b",mrReminderLabelBox:"ManageRemainder-module_mrReminderLabelBox__KRi5V",mrReminderLabelInner:"ManageRemainder-module_mrReminderLabelInner__GuTh-",mrReminderContent:"ManageRemainder-module_mrReminderContent__yKbGS",mrDragHandle:"ManageRemainder-module_mrDragHandle__4Lz8t",mrReminderBox:"ManageRemainder-module_mrReminderBox__ur54z",mrReminderFields:"ManageRemainder-module_mrReminderFields__yQROF",mrReminderHeader:"ManageRemainder-module_mrReminderHeader__wMUF6",mrReminderAssignee:"ManageRemainder-module_mrReminderAssignee__0p1Gb",mrReminderAvatar:"ManageRemainder-module_mrReminderAvatar__6KM5V",mrReminderInitials:"ManageRemainder-module_mrReminderInitials__bUFkd",mrReminderName:"ManageRemainder-module_mrReminderName__zjceM",mrReminderStatement:"ManageRemainder-module_mrReminderStatement__7Y0B-",mrReminderStatementText:"ManageRemainder-module_mrReminderStatementText__LodbK",mrReminderDateFields:"ManageRemainder-module_mrReminderDateFields__GT4N9",mrReminderField:"ManageRemainder-module_mrReminderField__XBiO4",mrReminderFieldLabel:"ManageRemainder-module_mrReminderFieldLabel__S9dXV",mrReminderDatePicker:"ManageRemainder-module_mrReminderDatePicker__Vgbui",mrReminderDueDate:"ManageRemainder-module_mrReminderDueDate__7nawQ",mrReminderFrequency:"ManageRemainder-module_mrReminderFrequency__Qq1qa",mrReminderFrequencyText:"ManageRemainder-module_mrReminderFrequencyText__lGfl0",mrEscalationCheckbox:"ManageRemainder-module_mrEscalationCheckbox__xZrG3",mrEscalationCheckboxHeader:"ManageRemainder-module_mrEscalationCheckboxHeader__1GgFB",mrEscalationContent:"ManageRemainder-module_mrEscalationContent__ItAyr",mrEscalationCondition:"ManageRemainder-module_mrEscalationCondition__4GCeD",mrEscalationFields:"ManageRemainder-module_mrEscalationFields__oFHp-",mrEscalationFieldGroup:"ManageRemainder-module_mrEscalationFieldGroup__uES3-",mrEscalationFieldGroupLarge:"ManageRemainder-module_mrEscalationFieldGroupLarge__MpVYP",mrEscalationFieldGroupSmall:"ManageRemainder-module_mrEscalationFieldGroupSmall__FFbRJ",mrEscalationFieldText:"ManageRemainder-module_mrEscalationFieldText__n7EfI",mrDropdownButton:"ManageRemainder-module_mrDropdownButton__9wvGh",mrCalendarPanel:"ManageRemainder-module_mrCalendarPanel__PnMpt",mrCalendarCollapsed:"ManageRemainder-module_mrCalendarCollapsed__mb-bI",mrCalendarToggle:"ManageRemainder-module_mrCalendarToggle__9HIet",mrNoPointerEvents:"ManageRemainder-module_mrNoPointerEvents__OQbav",mrPointerEventsAuto:"ManageRemainder-module_mrPointerEventsAuto__0avRT",calendarContainer:"ManageRemainder-module_calendarContainer__N804t",calendarHeader:"ManageRemainder-module_calendarHeader__BjE9o",calendarHeaderTitle:"ManageRemainder-module_calendarHeaderTitle__U8NmV",calendarHeaderInfo:"ManageRemainder-module_calendarHeaderInfo__s05VQ",monthNav:"ManageRemainder-module_monthNav__FBbyi",monthNavBtn:"ManageRemainder-module_monthNavBtn__oor7V",monthNavTitle:"ManageRemainder-module_monthNavTitle__zgDDq",weekdayHeader:"ManageRemainder-module_weekdayHeader__XciP8",weekdayLabel:"ManageRemainder-module_weekdayLabel__dDWJo",dayGrid:"ManageRemainder-module_dayGrid__dT0og",dayCell:"ManageRemainder-module_dayCell__AGx-w",dayCellPast:"ManageRemainder-module_dayCellPast__91hbu",dayCellToday:"ManageRemainder-module_dayCellToday__q8Wvi",dayNumber:"ManageRemainder-module_dayNumber__6yOVW",dayNumberCurrent:"ManageRemainder-module_dayNumberCurrent__6ML9j",dayNumberOutside:"ManageRemainder-module_dayNumberOutside__JQ-t7",indicatorWrapper:"ManageRemainder-module_indicatorWrapper__5FOym",indicatorDot:"ManageRemainder-module_indicatorDot__ElweF",indicatorDotOverlap:"ManageRemainder-module_indicatorDotOverlap__QPBRy",tooltipContent:"ManageRemainder-module_tooltipContent__ErzOu",tooltipHeader:"ManageRemainder-module_tooltipHeader__Q4qHO",tooltipTitle:"ManageRemainder-module_tooltipTitle__iZtI4",tooltipDate:"ManageRemainder-module_tooltipDate__ulMaQ",tooltipAssignees:"ManageRemainder-module_tooltipAssignees__jGc-Y",tooltipAssigneeRow:"ManageRemainder-module_tooltipAssigneeRow__nzr3m",tooltipAssigneeInfo:"ManageRemainder-module_tooltipAssigneeInfo__vIXTP",tooltipAssigneeDot:"ManageRemainder-module_tooltipAssigneeDot__yz6E6",tooltipAssigneeName:"ManageRemainder-module_tooltipAssigneeName__JJbid",tooltipAssigneeCount:"ManageRemainder-module_tooltipAssigneeCount__49OVk",legendWrapper:"ManageRemainder-module_legendWrapper__OfxhE",legendInner:"ManageRemainder-module_legendInner__iwIe7",legendItem:"ManageRemainder-module_legendItem__zbxBG",legendItemAssignee1:"ManageRemainder-module_legendItemAssignee1__I6F-D",legendItemAssignee2:"ManageRemainder-module_legendItemAssignee2__YObVW",legendItemAssignee3:"ManageRemainder-module_legendItemAssignee3__uCkBW",legendLabel:"ManageRemainder-module_legendLabel__Va4Sw",legendLabelAssignee1:"ManageRemainder-module_legendLabelAssignee1__vG-F4",legendLabelAssignee2:"ManageRemainder-module_legendLabelAssignee2__CbGVb",legendLabelAssignee3:"ManageRemainder-module_legendLabelAssignee3__cz-57",checkboxIconUnchecked:"ManageRemainder-module_checkboxIconUnchecked__xoI0S",checkboxIconChecked:"ManageRemainder-module_checkboxIconChecked__Y3mN2",checkboxIconCheckedAssignee1:"ManageRemainder-module_checkboxIconCheckedAssignee1__817aZ",checkboxIconCheckedAssignee2:"ManageRemainder-module_checkboxIconCheckedAssignee2__hTAKp",checkboxIconCheckedAssignee3:"ManageRemainder-module_checkboxIconCheckedAssignee3__hQwwN",checkboxCheckSvg:"ManageRemainder-module_checkboxCheckSvg__R87mg",bottomLegend:"ManageRemainder-module_bottomLegend__rRzkt",bottomLegendItem:"ManageRemainder-module_bottomLegendItem__u90vA",bottomLegendSwatch:"ManageRemainder-module_bottomLegendSwatch__9uu1M",bottomLegendSwatchPast:"ManageRemainder-module_bottomLegendSwatchPast__-DcRZ",bottomLegendSwatchFailed:"ManageRemainder-module_bottomLegendSwatchFailed__9lK2I",bottomLegendLabel:"ManageRemainder-module_bottomLegendLabel__9eDD-"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const a=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;a&&e.setAttribute("nonce",a),e.appendChild(document.createTextNode(".ManageRemainder-module_mrContainer__kVgxT{align-items:center;display:flex;flex-direction:column;gap:1rem;justify-content:center;margin-top:1rem}.ManageRemainder-module_mrSectionBox__bEDtY{border:1px solid #b6c1ca;border-radius:10px;cursor:pointer;display:flex;flex-direction:column;gap:.75rem;padding:.75rem;width:100%}.ManageRemainder-module_mrSectionHeader__5k1HQ{display:flex;flex-direction:column;gap:.25rem}.ManageRemainder-module_mrSectionHeaderContent__eKJWh{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between;width:100%}.ManageRemainder-module_mrSectionHeaderLeft__I-hzD{display:flex;flex-direction:column;gap:.25rem}.ManageRemainder-module_mrSectionHeaderRight__W-BY3{align-items:center;display:flex;gap:.25rem;justify-content:flex-start}.ManageRemainder-module_mrSectionTitleWrapper__NA6i-{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrSectionTitleIcon__6pWZz{align-items:center;display:flex;height:.75rem;justify-content:center;width:.75rem}.ManageRemainder-module_mrSectionTitle__BPAU2{color:#334155;font-size:.875rem;font-weight:600}.ManageRemainder-module_mrSectionDescription__HdkjC{color:#334155;font-size:.75rem;font-weight:400}.ManageRemainder-module_mrIconSmall__kbiWd{color:#334155;height:.75rem;width:.75rem}.ManageRemainder-module_mrIconInfo__U8Ylz{color:#64748b;height:1rem;width:1rem}.ManageRemainder-module_mrIconArrow__wMp9q{stroke:#334155;height:.75rem;width:.75rem}.ManageRemainder-module_mrIconAction__l9uVi{height:1rem;width:1rem}.ManageRemainder-module_mrIconPreview__oYo84{stroke:#64748b;height:1rem;width:1rem}.ManageRemainder-module_mrIconCalendar__2gaaf{color:#1e293b;height:1.25rem;width:1.25rem}.ManageRemainder-module_mrIconChevronToggle__LjUy1{color:#4f46e5;height:1rem;position:fixed;width:1rem}.ManageRemainder-module_mrIconDropdown__-heGj{height:.75rem;width:.75rem}.ManageRemainder-module_mrIconSuccess__EMJrR{color:#16a34a;height:1.5rem;width:1.5rem}.ManageRemainder-module_mrChevronButton__QKLsI{align-items:center;display:flex;justify-content:center}.ManageRemainder-module_mrChevronIcon__CxLkq{height:1.25rem;transition:transform .2s ease;width:1.25rem}.ManageRemainder-module_mrChevronIcon__CxLkq.ManageRemainder-module_mrChevronRotated__NL7Ho{transform:rotate(180deg)}.ManageRemainder-module_mrSuccessMessage__4N0gO{align-items:center;display:inline-flex;flex-direction:column;gap:.75rem;width:100%}.ManageRemainder-module_mrSuccessIcon__PsybU{align-items:center;background-color:#dcfce7;border-radius:9999px;box-shadow:0 0 0 4px #fff;display:flex;height:3rem;justify-content:center;width:3rem}.ManageRemainder-module_mrSuccessIconInner__yEl8-{height:1.5rem;position:relative;width:1.5rem}.ManageRemainder-module_mrSuccessText__-hXJh{align-items:center;display:flex;flex-direction:column;gap:.25rem;text-align:center}.ManageRemainder-module_mrSuccessTitle__Zakof{color:#166534;font-size:1rem;font-weight:500;line-height:1.5}.ManageRemainder-module_mrSuccessDescription__-r7A8{color:#22c55e;font-size:.875rem;font-weight:400;line-height:1.25}.ManageRemainder-module_mrRecipientsSection__L0f1k{display:flex;flex-direction:column;gap:.5rem}.ManageRemainder-module_mrRecipientsLabel__Escta{color:#3f3f46;font-size:.75rem;font-weight:500}.ManageRemainder-module_mrRecipientsGrid__-7giX{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.75rem}.ManageRemainder-module_mrRecipientItem__C0uw5{align-items:center;background-color:#fff;border:1px solid #cbd5e1;border-radius:.375rem;display:flex;gap:.5rem;padding:.25rem .5rem}.ManageRemainder-module_mrRecipientInfo__djuEp{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrRecipientAvatar__g6YDo{align-items:center;border-radius:9999px;display:flex;font-size:.6875rem;font-weight:500;height:1.5rem;justify-content:center;width:1.5rem}.ManageRemainder-module_mrRecipientName__gFCJU{color:#3f3f46;font-size:.875rem}.ManageRemainder-module_mrCheckboxUnchecked__j0wYE{background-color:#fff;border:1px solid #d0d5dd;border-radius:.25rem;height:1rem;width:1rem}.ManageRemainder-module_mrCheckboxChecked__TowNb{align-items:center;background-color:#fff;border:1px solid #6938ef;border-radius:.25rem;display:flex;height:1rem;justify-content:center;width:1rem}.ManageRemainder-module_mrCheckboxIcon__RVL-V{height:.625rem;width:.625rem}.ManageRemainder-module_mrActionsSection__in30u{display:flex;gap:.75rem}.ManageRemainder-module_mrActionButton__x9IEC{align-items:center;border:none;border-radius:.375rem;cursor:pointer;display:flex;flex:1;font-size:.875rem;font-weight:500;gap:.5rem;height:2.25rem;justify-content:center}.ManageRemainder-module_mrActionButtonSecondary__GBvpQ{background-color:#fff;border:1px solid #a5b4fc;color:#4f46e5}.ManageRemainder-module_mrActionButtonSecondary__GBvpQ:hover{background-color:#f3f4f6}.ManageRemainder-module_mrActionButtonPrimary__vRNbF{background-color:#4f46e5;color:#fff}.ManageRemainder-module_mrActionButtonPrimary__vRNbF:hover{background-color:#4338ca}.ManageRemainder-module_mrMainContent__2gAUU{display:flex;flex-direction:row;gap:1.75rem;width:100%}.ManageRemainder-module_mrEscalationContainer__V4PfB{background-color:#ffffffb3;border-radius:10px;display:flex;flex:1;flex-direction:column;gap:.75rem;min-width:0;outline:1px solid #b6c1ca;outline-offset:-1px;padding:.75rem}.ManageRemainder-module_mrEscalationHeaderWrapper__vOg2K{cursor:pointer;display:flex;flex-direction:column;gap:.25rem;justify-content:space-between}.ManageRemainder-module_mrEscalationHeader__sV-tw{align-items:center;display:flex;gap:.5rem;justify-content:space-between}.ManageRemainder-module_mrEscalationTitleWrapper__G90xv{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrEscalationTitleText__X233z{color:#3f3f46;font-size:.875rem;font-weight:600;line-height:1.25}.ManageRemainder-module_mrTooltipIcon__QpPGO{height:1rem;overflow:hidden;position:relative;width:1rem}.ManageRemainder-module_mrEscalationActions__RoHhx{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrEscalationPreviewButton__68J90{align-items:center;background-color:#fff;border:none;border-radius:1.29rem;box-shadow:0 1px 2px 0 #0000000d;cursor:pointer;display:flex;gap:.375rem;height:1.75rem;outline:.54px solid #d1d5db;outline-offset:-.54px;padding:.375rem .875rem}.ManageRemainder-module_mrEscalationPreviewIcon__KNa9K{height:1rem;overflow:hidden;position:relative;width:1rem}.ManageRemainder-module_mrEscalationPreviewText__FM5S5{color:#6b7280;font-size:.75rem;font-weight:400;line-height:1rem}.ManageRemainder-module_mrEscalationDescription__z-3q8{color:#334155;font-size:.75rem;font-weight:400}.ManageRemainder-module_mrReorderGroup__sLaAn{display:flex;flex-direction:column;gap:1.5rem}.ManageRemainder-module_mrReminderItem__kwd0b{display:flex;gap:1rem;justify-content:space-between;width:100%}.ManageRemainder-module_mrReminderLabelBox__KRi5V{display:flex;flex-shrink:0;justify-content:center;width:90px}.ManageRemainder-module_mrReminderLabelInner__GuTh-{align-items:center;display:flex}.ManageRemainder-module_mrReminderContent__yKbGS{align-items:center;display:flex;gap:1rem;width:100%}.ManageRemainder-module_mrDragHandle__4Lz8t{align-items:center;cursor:grab;display:flex;gap:.75rem}.ManageRemainder-module_mrReminderBox__ur54z{border-radius:.75rem;padding:.5rem;width:100%}.ManageRemainder-module_mrReminderFields__yQROF{display:flex;flex-direction:column;flex-wrap:wrap;gap:1rem;width:100%}.ManageRemainder-module_mrReminderHeader__wMUF6{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;width:100%}.ManageRemainder-module_mrReminderAssignee__0p1Gb{align-items:center;display:flex;gap:.75rem}.ManageRemainder-module_mrReminderAvatar__6KM5V{align-items:center;background-color:#dbeafe;border-radius:9999px;display:flex;height:1.75rem;justify-content:center;width:1.75rem}.ManageRemainder-module_mrReminderInitials__bUFkd{color:#1e40af;font-size:.625rem;font-weight:500}.ManageRemainder-module_mrReminderName__zjceM{color:#1f2937;font-size:.75rem;font-weight:500}.ManageRemainder-module_mrReminderStatement__7Y0B-{border-radius:9999px;display:flex;padding:.5rem .75rem}.ManageRemainder-module_mrReminderStatementText__LodbK{font-size:.625rem;font-weight:500;letter-spacing:-.01em}.ManageRemainder-module_mrReminderDateFields__GT4N9{align-items:flex-start;display:flex;gap:1.5rem;width:100%}.ManageRemainder-module_mrReminderField__XBiO4{width:100%}.ManageRemainder-module_mrReminderFieldLabel__S9dXV{color:#3f3f46;font-size:.75rem;font-weight:500;margin-bottom:.25rem}.ManageRemainder-module_mrReminderDatePicker__Vgbui{align-items:center;box-shadow:0 1px 2px 0 #0000000d;color:#3f3f46;display:flex;font-size:.75rem;gap:.75rem;height:1.75rem;justify-content:space-between}.ManageRemainder-module_mrReminderDueDate__7nawQ{align-items:center;background-color:#f1f5f9;border:.5px solid #cbd5e1;border-radius:0;color:#64748b;display:flex;font-size:.75rem;height:1.75rem;padding:0 .75rem}.ManageRemainder-module_mrReminderFrequency__Qq1qa{align-items:center;display:flex;gap:.5rem}.ManageRemainder-module_mrReminderFrequencyText__lGfl0{color:#374151;font-size:.75rem}.ManageRemainder-module_mrEscalationCheckbox__xZrG3{align-items:flex-start;border:1px solid #e5e7eb;border-radius:.25rem;color:#3f3f46;display:flex;flex-direction:column;font-size:.75rem;font-weight:500;gap:.5rem;padding:.5rem;width:100%}.ManageRemainder-module_mrEscalationCheckboxHeader__1GgFB{align-items:flex-start;display:flex;gap:.5rem;justify-content:flex-start;width:100%}.ManageRemainder-module_mrEscalationContent__ItAyr{display:flex;flex-direction:column;gap:.5rem;overflow:hidden;width:100%}.ManageRemainder-module_mrEscalationCondition__4GCeD{color:#3f3f46;font-family:Inter,sans-serif;font-size:.75rem;font-weight:500;line-height:1;margin-top:.75rem;width:100%}.ManageRemainder-module_mrEscalationFields__oFHp-{align-items:flex-end;display:flex;flex-wrap:wrap;gap:1.5rem;gap:.625rem;width:100%}.ManageRemainder-module_mrEscalationFieldGroup__uES3-{display:flex;flex:1;gap:.75rem;min-width:130px}.ManageRemainder-module_mrEscalationFieldGroupLarge__MpVYP{flex:1;min-width:265px}.ManageRemainder-module_mrEscalationFieldGroupSmall__FFbRJ{display:flex;flex:1;min-width:88px}.ManageRemainder-module_mrEscalationFieldText__n7EfI{color:#3f3f46;font-family:Inter,sans-serif;font-size:.75rem;font-weight:500;line-height:1.5;min-width:152px}.ManageRemainder-module_mrDropdownButton__9wvGh{align-items:center;cursor:pointer;display:flex;justify-content:center}.ManageRemainder-module_mrCalendarPanel__PnMpt{flex-shrink:0;position:relative}.ManageRemainder-module_mrCalendarCollapsed__mb-bI{background-color:#fff;border:1px solid #b6c1ca;border-radius:10px;display:flex;height:100%;justify-content:center;padding-top:281px;width:43px}.ManageRemainder-module_mrCalendarToggle__9HIet{align-items:center;background:none;border:none;cursor:pointer;display:flex;height:3rem;justify-content:center;left:-26px;position:absolute;top:50%;transform:translateY(-50%);width:2.25rem;z-index:10}@media (max-width:1024px){.ManageRemainder-module_mrMainContent__2gAUU{flex-direction:column;gap:1rem}.ManageRemainder-module_mrCalendarPanel__PnMpt{width:100%}.ManageRemainder-module_mrCalendarToggle__9HIet{display:none}}@media (max-width:768px){.ManageRemainder-module_mrContainer__kVgxT{gap:.5rem;margin-top:.5rem}.ManageRemainder-module_mrSectionBox__bEDtY{gap:.5rem;padding:.5rem}.ManageRemainder-module_mrActionsSection__in30u,.ManageRemainder-module_mrSectionHeaderContent__eKJWh{flex-direction:column}.ManageRemainder-module_mrActionButton__x9IEC{height:2rem}.ManageRemainder-module_mrReminderDateFields__GT4N9{flex-direction:column;gap:1rem}.ManageRemainder-module_mrReminderContent__yKbGS,.ManageRemainder-module_mrReminderItem__kwd0b{gap:.5rem}.ManageRemainder-module_mrEscalationFields__oFHp-{flex-direction:column}.ManageRemainder-module_mrEscalationFieldGroupLarge__MpVYP,.ManageRemainder-module_mrEscalationFieldGroupSmall__FFbRJ,.ManageRemainder-module_mrEscalationFieldGroup__uES3-{min-width:100%;width:100%}.ManageRemainder-module_mrEscalationFieldText__n7EfI{min-width:auto}.ManageRemainder-module_mrReminderLabelBox__KRi5V{width:100%}}button:focus{outline:2px solid #4f46e5;outline-offset:2px}button:active{opacity:.9}.ManageRemainder-module_mrHiddenSection__c67oj{overflow:hidden}.ManageRemainder-module_mrNoPointerEvents__OQbav{pointer-events:none}.ManageRemainder-module_mrPointerEventsAuto__0avRT{pointer-events:auto}.ManageRemainder-module_calendarContainer__N804t{background-color:#fff;border:1px solid #b6c1ca;border-radius:8px;height:100%;min-width:345px;padding:16px}.ManageRemainder-module_calendarHeader__BjE9o{align-items:center;display:flex;gap:6px;margin-bottom:24px}.ManageRemainder-module_calendarHeaderTitle__U8NmV{align-items:center;color:#334155;display:flex;font-size:14px;font-weight:600;gap:6px;line-height:20px}.ManageRemainder-module_calendarHeaderInfo__s05VQ{height:16px;width:16px}.ManageRemainder-module_monthNav__FBbyi{align-items:center;display:flex;justify-content:space-between;margin-bottom:24px}.ManageRemainder-module_monthNavBtn__oor7V{align-items:center;background:none;border:1px solid #dce0e5;border-radius:8px;cursor:pointer;display:flex;justify-content:center;padding:8px}.ManageRemainder-module_monthNavTitle__zgDDq{color:#14181f;font-size:15px;font-weight:600;margin:0}.ManageRemainder-module_weekdayHeader__XciP8{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:8px}.ManageRemainder-module_weekdayLabel__dDWJo{color:#6f7c8e;font-size:15px;font-weight:400;text-align:center}.ManageRemainder-module_dayGrid__dT0og{display:grid;gap:8px 11px;grid-template-columns:repeat(7,1fr);margin-top:16px}.ManageRemainder-module_dayCell__AGx-w{align-items:center;border-radius:8px;cursor:pointer;display:flex;flex-direction:column;height:35px;justify-content:center}.ManageRemainder-module_dayCellPast__91hbu{background-color:#daf7d2}.ManageRemainder-module_dayCellToday__q8Wvi{border:2px solid #4f46e5}.ManageRemainder-module_dayNumber__6yOVW{font-size:14px}.ManageRemainder-module_dayNumberCurrent__6ML9j{color:#0f172a}.ManageRemainder-module_dayNumberOutside__JQ-t7{color:#94a3b8}.ManageRemainder-module_indicatorWrapper__5FOym{align-items:center;display:flex}.ManageRemainder-module_indicatorDot__ElweF{border-radius:50%;height:6px;width:6px}.ManageRemainder-module_indicatorDotOverlap__QPBRy{margin-left:-1px}.ManageRemainder-module_tooltipContent__ErzOu{background-color:#f8fafc;border-radius:8px;min-width:120px;padding:8px}.ManageRemainder-module_tooltipHeader__Q4qHO{border-bottom:1px solid #cbd5e1;margin-bottom:4px;padding-bottom:4px}.ManageRemainder-module_tooltipTitle__iZtI4{color:#0f172a;font-size:10px;font-weight:500;line-height:16px}.ManageRemainder-module_tooltipDate__ulMaQ{color:#334155;font-size:8px;font-weight:400;line-height:16px}.ManageRemainder-module_tooltipAssignees__jGc-Y{display:flex;flex-direction:column;gap:2px}.ManageRemainder-module_tooltipAssigneeRow__nzr3m{align-items:center;display:flex;gap:12px;justify-content:space-between}.ManageRemainder-module_tooltipAssigneeInfo__vIXTP{align-items:center;display:flex;gap:4px}.ManageRemainder-module_tooltipAssigneeDot__yz6E6{border-radius:50%;height:8px;width:8px}.ManageRemainder-module_tooltipAssigneeName__JJbid{color:#0f172a;font-size:9px;font-weight:400;line-height:16px}.ManageRemainder-module_tooltipAssigneeCount__49OVk{color:#0f172a;font-size:9px;font-weight:500;line-height:16px}.ManageRemainder-module_legendWrapper__OfxhE{align-items:flex-start;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:38px}.ManageRemainder-module_legendInner__iwIe7{align-items:flex-start;display:flex;gap:6px}.ManageRemainder-module_legendItem__zbxBG{align-items:center;border-radius:4px;cursor:pointer;display:flex;gap:4px;padding:4px 8px;width:100%}.ManageRemainder-module_legendItemAssignee1__I6F-D{background-color:#fdf2f8;border:1px solid #be185d}.ManageRemainder-module_legendItemAssignee2__YObVW{background-color:#eef2ff;border:1px solid #4338ca}.ManageRemainder-module_legendItemAssignee3__uCkBW{background-color:#fff7ed;border:1px solid #f87171;justify-content:center}.ManageRemainder-module_legendLabel__Va4Sw{font-size:12px;font-weight:500}.ManageRemainder-module_legendLabelAssignee1__vG-F4{color:#be185d}.ManageRemainder-module_legendLabelAssignee2__CbGVb{color:#4338ca}.ManageRemainder-module_legendLabelAssignee3__cz-57{color:#f87171}.ManageRemainder-module_checkboxIconUnchecked__xoI0S{background-color:#fff;border:1px solid #d0d5dd;border-radius:4px;height:16px;width:16px}.ManageRemainder-module_checkboxIconChecked__Y3mN2{align-items:center;background-color:#fff;border-radius:4px;display:flex;height:16px;justify-content:center;width:16px}.ManageRemainder-module_checkboxIconCheckedAssignee1__817aZ{border:1px solid #c11574}.ManageRemainder-module_checkboxIconCheckedAssignee2__hTAKp{border:1px solid #3538cd}.ManageRemainder-module_checkboxIconCheckedAssignee3__hQwwN{border:1px solid #ff6058}.ManageRemainder-module_checkboxCheckSvg__R87mg{height:10px;width:10px}.ManageRemainder-module_bottomLegend__rRzkt{align-items:center;display:inline-flex;gap:24px;margin-left:4px;margin-top:16px}.ManageRemainder-module_bottomLegendItem__u90vA{align-items:center;display:flex;gap:4px}.ManageRemainder-module_bottomLegendSwatch__9uu1M{border-radius:2px;height:12px;width:12px}.ManageRemainder-module_bottomLegendSwatchPast__-DcRZ{background-color:#daf7d2}.ManageRemainder-module_bottomLegendSwatchFailed__9lK2I{background-color:#fecaca}.ManageRemainder-module_bottomLegendLabel__9eDD-{color:#334155;font-size:12px;font-weight:500}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=ManageRemainder.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManageRemainder.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as i,jsx as n}from"react/jsx-runtime";import{useState as a,useEffect as r}from"react";import{Send as t,ChevronDown as o,CircleCheckBigIcon as c,Mail as l,InfoIcon as s,ArrowRight as d,CalendarIcon as m,ChevronRight as u,ChevronLeft as v}from"lucide-react";import h from"@mui/material/Checkbox";import{Chip as p,Box as f,Autocomplete as N,TextField as g}from"@mui/material";import{useDragControls as b,AnimatePresence as y,motion as x,Reorder as C}from"framer-motion";import k from"@mui/icons-material/DragIndicator";import{LocalizationProvider as F,DatePicker as R}from"@mui/x-date-pickers";import{AdapterDayjs as D}from"@mui/x-date-pickers/AdapterDayjs";import w from"./ReminderFrequencyAutocomplete.js";import S from"./AssigneeCalendarView.js";import E from"dayjs";import I from"./ManageRemainder.module.css.js";var _=["Assignee 1","Assignee 2","Assignee 3"],A=[{bg:"#FDF2FA",text:"#C11574"},{bg:"#EEF4FF",text:"#3538CD"},{bg:"#F1F5F9",text:"#344054"}],B=[{bg:"#FDF2FA",text:"#C93185"},{bg:"#EEF2FF",text:"#6366F1"},{bg:"#FFF4E5",text:"#FF6058"}],T=[{id:"1",name:"Assignee 1",color:"#C11574",bg:"#FDF2F8",startDate:new Date("2026-11-09"),dueDate:new Date("2026-12-01")},{id:"2",name:"Assignee 2",color:"#3538CD",bg:"#EEF4FF",startDate:new Date("2026-11-21"),dueDate:new Date("2026-12-03")},{id:"3",name:"Assignee 3",color:"#FF6058",bg:"#FFF7ED",startDate:new Date("2026-12-01"),dueDate:new Date("2026-12-03")}],L=[{bg:"#DBEAFE",text:"#1E40AF"},{bg:"#CCFBF1",text:"#0D9488"},{bg:"#DCFCE7",text:"#166534"}],P=[{initials:"OR",name:"Olivia Rhye",checked:!1,bg:"bg-blue-100",text:"text-blue-700"},{initials:"DM",name:"Daniela Mark",checked:!1,bg:"bg-cyan-100",text:"text-teal-700"},{initials:"JB",name:"Jenna Beckner",checked:!1,bg:"bg-emerald-100",text:"text-emerald-600"}],O=function(e){var i,n,a,r,t,o,c,l;return(null==e?void 0:e.is_escalation_reminder)&&(null===(i=null==e?void 0:e.days)||void 0===i?void 0:i.value)&&"undefined"!==(null===(n=null==e?void 0:e.days)||void 0===n?void 0:n.value)&&(null===(a=null==e?void 0:e.escalation_reminder_frequency)||void 0===a?void 0:a.value)&&"undefined"!==(null===(r=null==e?void 0:e.escalation_reminder_frequency)||void 0===r?void 0:r.value)?"Start notifying ".concat((null===(t=null==e?void 0:e.days)||void 0===t?void 0:t.value.includes("day"))?null===(o=null==e?void 0:e.days)||void 0===o?void 0:o.value:"".concat(null===(c=null==e?void 0:e.days)||void 0===c?void 0:c.value," ").concat(Number(null===(l=null==e?void 0:e.days)||void 0===l?void 0:l.value)>0?"days":"day")," ").concat(null==e?void 0:e.before_or_after," the due date"):"Notify until successful document upload"},M={"& .MuiInputBase-root":{height:"28px",borderRadius:"4px",fontSize:"11px"}},q=function(q){var Y=q.data,j=q.schedules,H=q.setSchedules,z=q.remainderOwners,W=q.setRemainderOwners,G=q.labels,U=void 0===G?_:G,V=q.colors,J=void 0===V?A:V,Z=q.chipColor,K=void 0===Z?B:Z,Q=q.assignees,X=void 0===Q?T:Q,$=q.fallbackRecipients,ee=void 0===$?P:$,ie=q.recipientsColor,ne=void 0===ie?L:ie,ae=q.manualReminderTitle,re=void 0===ae?"Send Manual Reminder Now":ae,te=q.manualReminderDescription,oe=void 0===te?"Immediately notify the assignees about this document.":te;q.lastReminderText;var ce=q.selectRecipientsLabel,le=void 0===ce?"Select recipients:":ce,se=q.previewEmailButtonLabel,de=void 0===se?"Preview Email":se,me=q.sendNowButtonLabel,ue=void 0===me?"Send Now":me,ve=q.reminderSuccessTitle,he=void 0===ve?"Reminder sent successfully!":ve,pe=q.reminderSuccessDescription,fe=void 0===pe?"Email notification sent to 2 assignees.":pe,Ne=q.escalationTitle,ge=void 0===Ne?"Escalation and Auto Reminder Setup":Ne;q.escalationTitleTooltip;var be=q.escalationDescription,ye=void 0===be?"Configure Auto reminder settings for all assignees.":be;q.configureAutoReminderText;var xe=q.getDynamicStatement,Ce=void 0===xe?O:xe,ke=q.reminderStartDateLabel,Fe=void 0===ke?"Reminder Start Date":ke,Re=q.documentDueDateLabel,De=void 0===Re?"Document Due Date":Re,we=q.reminderFrequencyLabel,Se=void 0===we?"Reminder Frequency":we,Ee=q.escalationRemindersLabel,Ie=void 0===Ee?"Escalation Reminders":Ee;q.escalationTooltip;var _e=q.escalationConditionText,Ae=void 0===_e?"If the document is still pending, start escalation reminders":_e,Be=q.daysText,Te=void 0===Be?"days":Be,Le=q.dueDataAndRepeatText,Pe=void 0===Le?"due date and repeat every":Le,Oe=q.reminderFrequencyOptions,Me=void 0===Oe?["12 hours","24 hours","48 hours","72 hours","Custom"]:Oe,qe=q.escalationFrequencyOptions,Ye=void 0===qe?["1/2 hour","1 hour","4 hours","6 hours","12 hours","Custom"]:qe,je=q.beforeAfterOptions,He=void 0===je?["After","Before"]:je,ze=q.handelSendNow,We=q.showPreviewEmail,Ge=void 0===We||We,Ue=a(!1),Ve=Ue[0],Je=Ue[1],Ze=a(!1),Ke=Ze[0],Qe=Ze[1],Xe=a(!1),$e=Xe[0],ei=Xe[1],ii=a(null);ii[0],ii[1];var ni=a(!0),ai=ni[0],ri=ni[1],ti=a(ee),oi=ti[0],ci=ti[1],li=b(),si=function(i,n,a){W(function(r){return r.map(function(r,t){var o;return t===i?e(e({},r),((o={})[n]=a,o)):r})})},di=function(e){var i;if(!e)return null;if("custom"===e.type)return Number(e.value)<=0?null:60*Number(e.value)*60*1e3;return null!==(i={"1/2 hour":18e5,"1 hour":36e5,"4 hours":144e5,"6 hours":216e5,"12 hours":432e5,"24 hours":864e5,"48 hours":1728e5,"72 hours":2592e5,"96 hours":3456e5,"1/2 day":432e5,"1 day":864e5,"2 days":1728e5,"3 days":2592e5,"4 days":3456e5}[e.value])&&void 0!==i?i:null},mi=function(e,i,n){if(!e||!i||!n)return[];var a=di(n);if(!a)return[];for(var r=[],t=E(e).valueOf(),o=E(i).valueOf();t<=o;)r.push(E(t).toISOString()),t+=a;return r},ui=function(e,i,n,a){if(!(e&&i&&a&&n))return[];var r=di(a);if(!r)return[];var t,o=E(e),c="custom"===i.type?Number(i.value):Number("1/2"===i.value.split(" ")[0]?.5:Number(i.value.split(" ")[0])),l=[];switch(n){case"Before":t=o.subtract(c,"day");break;case"After":t=o.add(c,"day");break;default:return[]}for(var s=t.valueOf(),d=0;d<1e3;d++)l.push(E(s).toISOString()),s+=r;return l},vi=function(e){return e?e.split(" ").map(function(e){return e[0]}).join("").toUpperCase():""};r(function(){var e=(null==Y?void 0:Y.due_at)||"",i=null==z?void 0:z.map(function(i){var n=X.find(function(e){return e.id===String(i.id)});return{ownerId:i.id,ownerName:null==n?void 0:n.name,ownerColor:null==n?void 0:n.color,reminders:mi(i.reminder_start_date,e,i.reminder_frequency),escalations:ui(e,i.days,i.before_or_after,i.escalation_reminder_frequency)}});H(i)},[z]),r(function(){if(null==Y?void 0:Y.assignee){var e=Object.values(Y.assignee).filter(function(e){return e&&Object.keys(e).length>0}).map(function(e,i){return{name:e.name,checked:!1,recipientsColor:ne[i]}}),i=e.length>0?e:ee;ci(i)}},[Y]);var hi=Object.values((null==Y?void 0:Y.assignee)||{}).filter(function(e){return null==e?void 0:e.name});return i("div",e({className:I.mrContainer},{children:[i("div",e({className:I.mrSectionBox,onClick:function(){return Je(function(e){return!e})}},{children:[i("div",e({className:I.mrSectionHeader},{children:[i("div",e({className:I.mrSectionHeaderContent},{children:[i("div",e({className:I.mrSectionHeaderLeft},{children:[i("div",e({className:I.mrSectionTitleWrapper},{children:[n("div",e({className:I.mrSectionTitleIcon},{children:n(t,{className:I.mrIconSmall})})),n("div",e({className:I.mrSectionTitle},{children:re}))]})),n("div",e({className:I.mrSectionDescription},{children:oe}))]})),n("div",e({className:I.mrSectionHeaderRight},{children:n("button",e({type:"button",onClick:function(e){e.stopPropagation(),Je(function(e){return!e})},className:I.mrChevronButton},{children:n(o,{className:"".concat(I.mrChevronIcon," ").concat(Ve?I.mrChevronRotated:"")})}))}))]})),n(y,{children:$e&&i(x.div,e({initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:I.mrSuccessMessage},{children:[n("div",e({className:I.mrSuccessIcon},{children:n("div",e({className:I.mrSuccessIconInner},{children:n(c,{className:I.mrIconSuccess})}))})),i("div",e({className:I.mrSuccessText},{children:[n("div",e({className:I.mrSuccessTitle},{children:he})),n("div",e({className:I.mrSuccessDescription},{children:fe}))]}))]}))})]})),n(y,{children:Ve&&i(x.div,e({initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:I.mrHiddenSection,style:{pointerEvents:Ve?"auto":"none"}},{children:[i("div",e({className:I.mrRecipientsSection},{children:[n("div",e({className:I.mrRecipientsLabel},{children:le})),n("div",e({className:I.mrRecipientsGrid},{children:oi.map(function(a){return i("div",e({className:I.mrRecipientItem},{children:[n(h,{checked:a.checked,onChange:function(){return i=a.name,void ci(function(n){return n.map(function(n){return n.name===i?e(e({},n),{checked:!n.checked}):n})});var i},onClick:function(e){return e.stopPropagation()},size:"small",disableRipple:!0,icon:n("div",{className:I.mrCheckboxUnchecked}),checkedIcon:n("div",e({className:I.mrCheckboxChecked},{children:n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",className:I.mrCheckboxIcon},{children:n("path",{d:"M1 5L4.2 8L11 1",stroke:"#5925DC",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),i("div",e({className:I.mrRecipientInfo},{children:[n("div",e({className:I.mrRecipientAvatar,style:{backgroundColor:a.recipientsColor.bg,color:a.recipientsColor.text}},{children:vi(a.name)})),n("div",e({className:I.mrRecipientName},{children:a.name}))]}))]}),a.name)})}))]})),i("div",e({className:I.mrActionsSection},{children:[Ge&&i("button",e({onClick:function(e){e.stopPropagation()},type:"button",className:"".concat(I.mrActionButton," ").concat(I.mrActionButtonSecondary)},{children:[n(l,{className:I.mrIconAction}),de]})),n("button",e({type:"button",onClick:function(e){e.stopPropagation(),ei(!0),setTimeout(function(){ei(!1)},3e3),ze()},className:"".concat(I.mrActionButton," ").concat(I.mrActionButtonPrimary)},{children:ue}))]}))]}))})]})),i("div",e({className:I.mrMainContent},{children:[i("div",e({className:I.mrEscalationContainer},{children:[i("div",e({className:I.mrEscalationHeaderWrapper,onClick:function(e){e.stopPropagation(),Qe(function(e){return!e})}},{children:[i("div",e({className:I.mrEscalationHeader},{children:[i("div",e({className:I.mrEscalationTitleWrapper},{children:[n("div",e({className:I.mrEscalationTitleText},{children:ge})),n("div",e({className:I.mrTooltipIcon},{children:n(s,{stroke:"#64748B",className:I.mrIconInfo})}))]})),i("div",e({className:I.mrEscalationActions},{children:[Ge&&i("button",e({className:I.mrEscalationPreviewButton},{children:[n("div",e({className:I.mrEscalationPreviewIcon},{children:n(l,{className:I.mrIconPreview})})),n("span",e({className:I.mrEscalationPreviewText},{children:de}))]})),n("button",e({type:"button",onClick:function(e){e.stopPropagation(),Qe(function(e){return!e})},className:I.mrChevronButton},{children:n(o,{className:"".concat(I.mrChevronIcon," ").concat(Ke?I.mrChevronRotated:"")})}))]}))]})),n("div",e({className:I.mrEscalationDescription},{children:ye}))]})),n(y,e({initial:!1},{children:Ke&&n(x.div,e({layout:!0,initial:{opacity:0,scaleY:.96},animate:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.96},transition:{duration:.3,ease:"easeInOut"},style:{transformOrigin:"top",overflow:"hidden"}},{children:n(C.Group,e({axis:"y",values:z||[],onReorder:function(e){W(e)},layoutScroll:!0,className:I.mrReorderGroup},{children:null==z?void 0:z.map(function(a,r){var t,c,l=hi[r]||ee[r];return n(C.Item,e({value:a,dragControls:li,layout:"position",className:""},{children:i("div",e({className:I.mrReminderItem},{children:[n("div",e({className:I.mrReminderLabelBox},{children:n("div",e({className:I.mrReminderLabelInner},{children:n(p,{label:U[r],sx:{backgroundColor:J[r].bg,minWidth:90,color:J[r].text,fontWeight:500}})}))})),i("div",e({className:I.mrReminderContent},{children:[n("div",e({className:I.mrDragHandle},{children:n(k,{onPointerDown:function(e){return li.start(e)},sx:{color:"#9e9e9e"}})})),n(f,e({display:"flex",alignItems:"center",gap:2,border:"1px solid #E5E7EB",sx:{background:"#fff"},className:I.mrReminderBox},{children:i("div",e({className:I.mrReminderFields},{children:[i("div",e({className:I.mrReminderHeader},{children:[i("div",e({className:I.mrReminderAssignee},{children:[n("div",e({className:I.mrReminderAvatar},{children:n("span",e({className:I.mrReminderInitials},{children:vi(null==l?void 0:l.name)}))})),n("span",e({className:I.mrReminderName},{children:null==l?void 0:l.name}))]})),n("div",e({className:I.mrReminderStatement,style:{backgroundColor:null===(t=K[r])||void 0===t?void 0:t.bg}},{children:n("span",e({className:I.mrReminderStatementText,style:{color:null===(c=K[r])||void 0===c?void 0:c.text}},{children:Ce(a)}))}))]})),i("div",e({className:I.mrReminderDateFields},{children:[i("div",e({className:I.mrReminderField},{children:[n("p",e({className:I.mrReminderFieldLabel},{children:Fe})),i("div",e({className:I.mrReminderDatePicker},{children:[n(F,e({dateAdapter:D},{children:n(R,{value:a.reminder_start_date?E(a.reminder_start_date):null,disablePast:!0,format:"MM/DD/YYYY",onChange:function(e){if(!e||!E(e).isBefore(E(),"day")){var i=e?E(e).toISOString():"";!function(e,i){si(e,"reminder_start_date",i)}(r,e?E(i).toISOString():"")}},slotProps:{actionBar:{actions:["clear"]},textField:{fullWidth:!0,size:"small",sx:M,placeholder:"MM/DD/YYYY"},openPickerButton:{id:"trial-start-date-picker-icon","data-testid":"trial-start-date-picker-icon",size:"small"},openPickerIcon:{sx:{fontSize:"14px"}}}})})),n(d,{className:I.mrIconArrow})]}))]})),i("div",e({className:I.mrReminderField},{children:[n("p",e({className:I.mrReminderFieldLabel},{children:De})),n("div",e({className:I.mrReminderDueDate},{children:(null==Y?void 0:Y.due_at)?E(Y.due_at).format("MM/DD/YYYY"):""}))]})),i("div",e({className:I.mrReminderField},{children:[n("p",e({className:I.mrReminderFieldLabel},{children:Se})),i("div",e({className:I.mrReminderFrequency},{children:[n("span",e({className:I.mrReminderFrequencyText},{children:"Every"})),n(w,{value:a.reminder_frequency,onChange:function(e){return function(e,i){si(e,"reminder_frequency",i)}(r,e)},options:Me,suffix:"hours"})]}))]}))]})),i("div",e({className:I.mrEscalationCheckbox},{children:[i("div",e({className:I.mrEscalationCheckboxHeader},{children:[n(h,{size:"small",disableRipple:!0,checked:a.is_escalation_reminder,onChange:function(e){!function(e,i){si(e,"is_escalation_reminder",i),i||(si(e,"days",{type:"preset",value:""}),si(e,"escalation_reminder_frequency",{type:"preset",value:""}),si(e,"before_or_after",""))}(r,e.target.checked)},icon:n("div",{className:I.mrCheckboxUnchecked}),checkedIcon:n("div",e({className:I.mrCheckboxChecked},{children:n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",className:I.mrCheckboxIcon},{children:n("path",{d:"M1 5L4.2 8L11 1",stroke:"#5925DC",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),Ie,n("div",e({className:I.mrTooltipIcon},{children:n(s,{stroke:"#64748B",className:I.mrIconInfo})}))]})),n(y,{children:a.is_escalation_reminder&&i(x.div,e({initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:I.mrEscalationContent},{children:[n("div",e({className:I.mrEscalationCondition},{children:Ae})),i("div",e({className:I.mrEscalationFields},{children:[i("div",e({className:I.mrEscalationFieldGroup},{children:[n(w,{value:a.days,onChange:function(e){return function(e,i){si(e,"days",i)}(r,e)}}),n("div",e({className:I.mrEscalationFieldText},{children:Te}))]})),i("div",e({className:"".concat(I.mrEscalationFieldGroup," ").concat(I.mrEscalationFieldGroupLarge)},{children:[n(N,{size:"small",options:He,value:a.before_or_after,onChange:function(e,i){!function(e,i){si(e,"before_or_after",i)}(r,i||"")},popupIcon:n("button",e({type:"button",id:"dropdown-icon",className:I.mrDropdownButton},{children:n(o,{className:I.mrIconDropdown})})),slotProps:{paper:{sx:{"& .MuiAutocomplete-option":{fontSize:"12px",minHeight:"32px"}}},clearIndicator:{sx:{"& svg":{fontSize:12}}}},renderInput:function(i){return n(g,e({},i,{placeholder:"Select value",sx:M}))},sx:{width:"100%"}}),n("div",e({className:I.mrEscalationFieldText},{children:Pe}))]})),n("div",e({className:I.mrEscalationFieldGroupSmall},{children:n(w,{value:a.escalation_reminder_frequency,onChange:function(e){return function(e,i){si(e,"escalation_reminder_frequency",i)}(r,e)},options:Ye,suffix:"hours"})}))]}))]}))})]}))]}))}))]}))]}))}),a.id||r)})}))}))}))]})),Ke&&i(x.div,e({initial:{width:ai?"345px":"43px"},animate:{width:ai?"345px":"43px"},transition:{duration:.3},className:I.mrCalendarPanel},{children:[ai?n(S,{assignees:j}):n("div",e({className:I.mrCalendarCollapsed},{children:n(m,{className:I.mrIconCalendar})})),i("button",e({onClick:function(){return ri(function(e){return!e})},className:I.mrCalendarToggle},{children:[n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"19",height:"50",viewBox:"0 0 19 50",fill:"none"},{children:n("path",{d:"M3.94434 9.65137C1.79601 11.031 0.49707 13.4087 0.49707 15.9619V35.1436C0.49707 37.8496 1.95476 40.346 4.31152 41.6758L17.5469 49.1426V0.915039L3.94434 9.65137Z",fill:"white",stroke:"#E0E0E0"})})),n(ai?u:v,{className:I.mrIconChevronToggle})]}))]}))]}))]}))};export{q as ManageReminders};
|
|
2
|
+
//# sourceMappingURL=ManageReminders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManageReminders.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as r,useEffect as i}from"react";import{Autocomplete as u,TextField as p,InputAdornment as l}from"@mui/material";import{ChevronsUpDownIcon as a}from"lucide-react";var s=["1/2","1","2","3","4","Custom"];function c(c){var d=c.value,m=c.onChange,f=c.options,v=void 0===f?s:f,h=c.placeholder,x=void 0===h?"Select frequency":h,y=c.suffix,I=r(""),g=I[0],P=I[1],w=r(null),S=w[0],z=w[1],C=r(!1),b=C[0],A=C[1];return i(function(){return d?"custom"===d.type?(A(!0),z(null),void P(d.value||"")):(A(!1),z(d.value),void P(d.value)):(z(null),P(""),void A(!1))},[d]),t(u,{size:"small",freeSolo:b,options:v,value:S,inputValue:g,popupIcon:t("button",e({type:"button",id:"dropdown-icon",className:"cursor-pointer flex items-center justify-center"},{children:t(a,{className:"w-3 h-3"})})),onChange:function(e,t){return t?"Custom"===t?(A(!0),z(null),P(""),void m({type:"custom",value:""})):(A(!1),z(t),P(t),void m({type:"preset",value:t})):(z(null),P(""),A(!1),void m(null))},slotProps:{paper:{sx:{"& .MuiAutocomplete-option":{fontSize:"12px",minHeight:"32px"}}},clearIndicator:{sx:{"& svg":{fontSize:12}}}},onInputChange:function(e,t,o){if(b){var n=t.replace(/[^\d]/g,"");P(n),"input"===o&&m({type:"custom",value:n})}},renderInput:function(r){return t(p,e({},r,{placeholder:b?"Enter custom value":x,inputProps:e(e({},r.inputProps),{inputMode:b?"numeric":void 0,readOnly:!b}),InputProps:e(e({},r.InputProps),{endAdornment:b&&y?o(n,{children:[t(l,e({position:"end"},{children:t("span",e({style:{fontSize:"11px",color:"#888",whiteSpace:"nowrap"}},{children:y}))})),r.InputProps.endAdornment]}):r.InputProps.endAdornment}),sx:{"& .MuiInputBase-root":{height:"28px",borderRadius:"4px",fontSize:"11px",width:"100%",cursor:b?"text":"pointer"},"& input":{cursor:b?"text":"pointer"}},onKeyDown:function(e){b&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}}))},sx:{width:"100%"}})}export{c as default};
|
|
2
|
+
//# sourceMappingURL=ReminderFrequencyAutocomplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReminderFrequencyAutocomplete.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|