@viswa-test/creative-workspace-ui-component 0.0.46 → 0.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/_virtual/_tslib.js +1 -1
  2. package/dist/cjs/_virtual/_tslib.js +1 -1
  3. package/dist/cjs/components/AssignReminders/AssignLevelAccordions.js +1 -1
  4. package/dist/cjs/components/AssignReminders/AssignReminderLevels.js +1 -1
  5. package/dist/cjs/components/AssignReminders/AssignReminderWrapper.js +1 -1
  6. package/dist/cjs/components/AssignReminders/ManageReminders.js +1 -1
  7. package/dist/cjs/components/AssignReminders/assets/FileCheckCorner.js +1 -1
  8. package/dist/cjs/components/AssignReminders/assets/VerticalLine.js +1 -1
  9. package/dist/cjs/components/AssignReminders/components/AddUserPopup.js +1 -1
  10. package/dist/cjs/components/AssignReminders/components/AssignLevelsDatePicker.js +1 -1
  11. package/dist/cjs/components/AssignReminders/components/AssigneeCalendarView.js +1 -1
  12. package/dist/cjs/components/AssignReminders/components/CustomCheckbox.js +1 -1
  13. package/dist/cjs/components/AssignReminders/components/CustomDatePicker.js +1 -1
  14. package/dist/cjs/components/AssignReminders/components/CustomDropdown.js +1 -1
  15. package/dist/cjs/components/AssignReminders/components/LevelData.js +1 -1
  16. package/dist/cjs/components/AssignReminders/components/ReminderFrequencyAutocomplete.js +1 -1
  17. package/dist/cjs/components/AssignReminders/components/ReviewStatus.js +1 -1
  18. package/dist/cjs/components/AssignReminders/utils/generateRandomColorsPair.js +1 -1
  19. package/dist/cjs/components/ScopeTree/HighlightedText.js +1 -1
  20. package/dist/cjs/components/ScopeTree/TreeAddAction.js +1 -1
  21. package/dist/cjs/components/ScopeTree/TreeMenu.js +1 -1
  22. package/dist/cjs/components/ScopeTree/TreeNode.js +1 -1
  23. package/dist/cjs/components/ScopeTree/TreeNodeHeader.js +1 -1
  24. package/dist/cjs/components/ScopeTree/TreeSectionItem.js +1 -1
  25. package/dist/cjs/components/ScopeTree/TreeSidebar.js +1 -1
  26. package/dist/cjs/components/ScopeTree/TreeTooltip.js +1 -1
  27. package/dist/cjs/features/lsc-guidelines/LscGuidelines.js +1 -1
  28. package/dist/cjs/features/lsc-guidelines/components/GuidelineAttachmentIcon.js +1 -1
  29. package/dist/cjs/features/lsc-guidelines/components/GuidelineCardMenu.js +1 -1
  30. package/dist/cjs/features/lsc-guidelines/components/GuidelineCart.js +1 -1
  31. package/dist/cjs/features/lsc-guidelines/components/GuidelineCartHeader.js +1 -1
  32. package/dist/cjs/features/lsc-guidelines/components/GuidelineCartItem.js +1 -1
  33. package/dist/cjs/features/lsc-guidelines/components/GuidelineClearCartDialog.js +1 -1
  34. package/dist/cjs/features/lsc-guidelines/components/GuidelineConfirmDialog.js +1 -1
  35. package/dist/cjs/features/lsc-guidelines/components/GuidelineEditor.js +1 -1
  36. package/dist/cjs/features/lsc-guidelines/components/GuidelineEditorPage.js +1 -1
  37. package/dist/cjs/features/lsc-guidelines/components/GuidelineEmptyState.js +1 -1
  38. package/dist/cjs/features/lsc-guidelines/components/GuidelineHeader.js +1 -1
  39. package/dist/cjs/features/lsc-guidelines/components/GuidelineIconButton.js +1 -1
  40. package/dist/cjs/features/lsc-guidelines/components/GuidelineLandingPage.js +1 -1
  41. package/dist/cjs/features/lsc-guidelines/components/GuidelineLibrary.js +1 -1
  42. package/dist/cjs/features/lsc-guidelines/components/GuidelineLibraryCard.js +1 -1
  43. package/dist/cjs/features/lsc-guidelines/components/GuidelinePopoverCart.js +1 -1
  44. package/dist/cjs/features/lsc-guidelines/components/GuidelineProceedButton.js +1 -1
  45. package/dist/cjs/features/lsc-guidelines/components/GuidelineSavedModal.js +1 -1
  46. package/dist/cjs/features/lsc-guidelines/components/GuidelineSelectButton.js +1 -1
  47. package/dist/cjs/features/lsc-guidelines/components/GuidelineTooltip.js +1 -1
  48. package/dist/cjs/features/lsc-guidelines/constants.js +1 -1
  49. package/dist/cjs/features/lsc-guidelines/hooks/useControllableState.js +1 -1
  50. package/dist/cjs/features/lsc-guidelines/hooks/useGuidelineFlow.js +1 -1
  51. package/dist/cjs/features/lsc-guidelines/hooks/useGuidelineSelection.js +1 -1
  52. package/dist/cjs/features/lsc-guidelines/icons/GuidelineSpinner.js +1 -1
  53. package/dist/cjs/features/lsc-guidelines/utils.js +1 -1
  54. package/dist/cjs/utils/treeUtils.js +1 -1
  55. package/dist/components/AssignReminders/AssignLevelAccordions.js +1 -1
  56. package/dist/components/AssignReminders/AssignReminderLevels.js +1 -1
  57. package/dist/components/AssignReminders/AssignReminderTest.js +1 -1
  58. package/dist/components/AssignReminders/AssignReminderWrapper.js +1 -1
  59. package/dist/components/AssignReminders/ManageReminders.js +1 -1
  60. package/dist/components/AssignReminders/assets/FileCheckCorner.js +1 -1
  61. package/dist/components/AssignReminders/assets/VerticalLine.js +1 -1
  62. package/dist/components/AssignReminders/components/AddUserPopup.js +1 -1
  63. package/dist/components/AssignReminders/components/AssignLevelsDatePicker.js +1 -1
  64. package/dist/components/AssignReminders/components/AssigneeCalendarView.js +1 -1
  65. package/dist/components/AssignReminders/components/CustomCheckbox.js +1 -1
  66. package/dist/components/AssignReminders/components/CustomDatePicker.js +1 -1
  67. package/dist/components/AssignReminders/components/CustomDropdown.js +1 -1
  68. package/dist/components/AssignReminders/components/LevelData.js +1 -1
  69. package/dist/components/AssignReminders/components/ReminderFrequencyAutocomplete.js +1 -1
  70. package/dist/components/AssignReminders/components/ReviewStatus.js +1 -1
  71. package/dist/components/AssignReminders/styles/AssignLevelsDatePickerStyles.js +1 -1
  72. package/dist/components/AssignReminders/styles/AssignReminderStyles.js +1 -1
  73. package/dist/components/AssignReminders/styles/AssignReminderWrapperStyles.js +1 -1
  74. package/dist/components/AssignReminders/styles/ManageReminder.style.js +1 -1
  75. package/dist/components/AssignReminders/styles/ReviewStatusStyles.js +1 -1
  76. package/dist/components/AssignReminders/utils/generateRandomColorsPair.js +1 -1
  77. package/dist/components/ScopeTree/HighlightedText.js +1 -1
  78. package/dist/components/ScopeTree/TreeAddAction.js +1 -1
  79. package/dist/components/ScopeTree/TreeMenu.js +1 -1
  80. package/dist/components/ScopeTree/TreeNode.js +1 -1
  81. package/dist/components/ScopeTree/TreeNodeHeader.js +1 -1
  82. package/dist/components/ScopeTree/TreeSectionItem.js +1 -1
  83. package/dist/components/ScopeTree/TreeSidebar.js +1 -1
  84. package/dist/components/ScopeTree/TreeTooltip.js +1 -1
  85. package/dist/features/lsc-guidelines/LscGuidelines.js +1 -1
  86. package/dist/features/lsc-guidelines/components/GuidelineAttachmentIcon.js +1 -1
  87. package/dist/features/lsc-guidelines/components/GuidelineCardMenu.js +1 -1
  88. package/dist/features/lsc-guidelines/components/GuidelineCart.js +1 -1
  89. package/dist/features/lsc-guidelines/components/GuidelineCartHeader.js +1 -1
  90. package/dist/features/lsc-guidelines/components/GuidelineCartItem.js +1 -1
  91. package/dist/features/lsc-guidelines/components/GuidelineClearCartDialog.js +1 -1
  92. package/dist/features/lsc-guidelines/components/GuidelineConfirmDialog.js +1 -1
  93. package/dist/features/lsc-guidelines/components/GuidelineEditor.js +1 -1
  94. package/dist/features/lsc-guidelines/components/GuidelineEditorPage.js +1 -1
  95. package/dist/features/lsc-guidelines/components/GuidelineEmptyState.js +1 -1
  96. package/dist/features/lsc-guidelines/components/GuidelineHeader.js +1 -1
  97. package/dist/features/lsc-guidelines/components/GuidelineIconButton.js +1 -1
  98. package/dist/features/lsc-guidelines/components/GuidelineLandingPage.js +1 -1
  99. package/dist/features/lsc-guidelines/components/GuidelineLibrary.js +1 -1
  100. package/dist/features/lsc-guidelines/components/GuidelineLibraryCard.js +1 -1
  101. package/dist/features/lsc-guidelines/components/GuidelinePopoverCart.js +1 -1
  102. package/dist/features/lsc-guidelines/components/GuidelineProceedButton.js +1 -1
  103. package/dist/features/lsc-guidelines/components/GuidelineSavedModal.js +1 -1
  104. package/dist/features/lsc-guidelines/components/GuidelineSelectButton.js +1 -1
  105. package/dist/features/lsc-guidelines/components/GuidelineTooltip.js +1 -1
  106. package/dist/features/lsc-guidelines/constants.js +1 -1
  107. package/dist/features/lsc-guidelines/hooks/useControllableState.js +1 -1
  108. package/dist/features/lsc-guidelines/hooks/useGuidelineFlow.js +1 -1
  109. package/dist/features/lsc-guidelines/hooks/useGuidelineSelection.js +1 -1
  110. package/dist/features/lsc-guidelines/icons/GuidelineSpinner.js +1 -1
  111. package/dist/features/lsc-guidelines/utils.js +1 -1
  112. package/dist/utils/treeUtils.js +1 -1
  113. package/package.json +4 -12
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as s}from"react/jsx-runtime";import{useState as n,useMemo as t}from"react";import i from"dayjs";import{Calendar as a,InfoIcon as o,ArrowLeft as c,ArrowRight as l}from"lucide-react";import{Tooltip as d,Checkbox as r}from"@mui/material";import{styles as g}from"../styles/ManageReminder.style.js";const b=["Su","Mo","Tu","We","Th","Fr","Sa"];function h({assignees:h}){const[j,O]=n(new Date),[m,p]=n({assignee1:!0,assignee2:!0,assignee3:!0}),y=e=>{p(s=>Object.assign(Object.assign({},s),{[e]:!s[e]}))},v=t(()=>{const e=new Map;return h.forEach(s=>{const n=new Map;s.reminders.forEach(e=>{var s;const t=i(e).format("YYYY-MM-DD"),a=null!==(s=n.get(t))&&void 0!==s?s:{reminderCount:0,escalationCount:0};a.reminderCount+=1,n.set(t,a)}),s.escalations.forEach(e=>{var s;const t=i(e).format("YYYY-MM-DD"),a=null!==(s=n.get(t))&&void 0!==s?s:{reminderCount:0,escalationCount:0};a.escalationCount+=1,n.set(t,a)}),n.forEach((n,t)=>{e.has(t)||e.set(t,[]),e.get(t).push({ownerId:s.ownerId,ownerName:s.ownerName,ownerColor:s.ownerColor,reminderCount:n.reminderCount,escalationCount:n.escalationCount,totalCount:n.reminderCount+n.escalationCount})})}),e},[h]);return e("div",Object.assign({style:Object.assign(Object.assign({},g.calendarContainer),{boxShadow:"0 4px 12px 0 rgba(0, 0, 0, 0.08)"})},{children:[e("div",Object.assign({style:g.calendarHeader},{children:[e("div",Object.assign({style:g.calendarHeaderTitle},{children:[s(a,{size:14}),"Calendar View"]})),s("div",Object.assign({style:g.calendarHeaderInfo},{children:s(o,{stroke:"#64748B",style:g.calendarHeaderInfo})}))]})),e("div",Object.assign({style:g.monthNav},{children:[s("button",Object.assign({type:"button",onClick:()=>O(i(j).subtract(1,"month").toDate()),style:g.monthNavBtn},{children:s(c,{size:18})})),s("h2",Object.assign({style:g.monthNavTitle},{children:i(j).format("MMMM YYYY")})),s("button",Object.assign({type:"button",onClick:()=>O(i(j).add(1,"month").toDate()),style:g.monthNavBtn},{children:s(l,{size:18})}))]})),s("div",{className:"calendar-wrapper"}),s("div",Object.assign({style:g.weekdayHeader},{children:b.map(e=>s("div",Object.assign({style:g.weekdayLabel},{children:e}),e))})),s("div",Object.assign({style:g.dayGrid},{children:Array.from({length:42}).map((n,t)=>{var a;const o=i(j).startOf("month").startOf("week").add(t,"day").toDate(),c=i(o).format("YYYY-MM-DD"),l=null!==(a=v.get(c))&&void 0!==a?a:[],r=i(o).month()===i(j).month()&&i(o).year()===i(j).year(),b=i(o).isBefore(i(),"day"),h=i(o).isSame(i(),"day"),O={1:m.assignee1,2:m.assignee2,3:m.assignee3},p=l.filter(e=>O[e.ownerId]);return s(d,Object.assign({arrow:!0,placement:"top",disableHoverListener:!l.length,title:p.length?e("div",Object.assign({style:g.tooltipContent},{children:[e("div",Object.assign({style:g.tooltipHeader},{children:[s("div",Object.assign({style:g.tooltipTitle},{children:"Reminder Schedule"})),s("div",Object.assign({style:g.tooltipDate},{children:i(o).format("MMM D, YYYY")}))]})),s("div",Object.assign({style:g.tooltipAssignees},{children:p.map(n=>e("div",Object.assign({style:g.tooltipAssigneeRow},{children:[e("div",Object.assign({style:g.tooltipAssigneeInfo},{children:[s("span",{style:Object.assign(Object.assign({},g.tooltipAssigneeDot),{backgroundColor:n.ownerColor})}),e("span",Object.assign({style:g.tooltipAssigneeName},{children:[n.ownerName,":"]}))]})),e("span",Object.assign({style:g.tooltipAssigneeCount},{children:["x ",n.reminderCount+n.escalationCount]}))]}),n.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:e("div",Object.assign({style:Object.assign(Object.assign(Object.assign({},g.dayCell),b?g.dayCellPast:{}),h?g.dayCellToday:{})},{children:[s("span",Object.assign({style:Object.assign(Object.assign({},g.dayNumber),r?g.dayNumberCurrent:g.dayNumberOutside)},{children:o.getDate()})),s("div",Object.assign({style:g.indicatorWrapper},{children:p.map((e,n)=>s("span",{style:Object.assign(Object.assign(Object.assign({},g.indicatorDot),0!==n?g.indicatorDotOverlap:{}),{backgroundColor:e.ownerColor,zIndex:n+1})},e.ownerId))}))]}))}),c)})})),s("div",Object.assign({style:g.legendWrapper},{children:e("div",Object.assign({style:g.legendInner},{children:[e("div",Object.assign({style:Object.assign(Object.assign({},g.legendItem),g.legendItemAssignee1),onClick:e=>{y("assignee1")}},{children:[s(r,{checked:null==m?void 0:m.assignee1,size:"small",disableRipple:!0,onClick:e=>e.stopPropagation(),onChange:()=>y("assignee1"),icon:s("div",{style:g.checkboxIconUnchecked}),checkedIcon:s("div",Object.assign({style:Object.assign(Object.assign({},g.checkboxIconChecked),g.checkboxIconCheckedAssignee1)},{children:s("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",style:g.checkboxCheckSvg},{children:s("path",{d:"M1 5L4.2 8L11 1",stroke:"#C11574",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),s("span",Object.assign({style:Object.assign(Object.assign({},g.legendLabel),g.legendLabelAssignee1)},{children:"Assignee 1"}))]})),e("div",Object.assign({style:Object.assign(Object.assign({},g.legendItem),g.legendItemAssignee2),onClick:e=>{y("assignee2")}},{children:[s(r,{checked:null==m?void 0:m.assignee2,size:"small",disableRipple:!0,onClick:e=>e.stopPropagation(),onChange:()=>y("assignee2"),icon:s("div",{style:g.checkboxIconUnchecked}),checkedIcon:s("div",Object.assign({style:Object.assign(Object.assign({},g.checkboxIconChecked),g.checkboxIconCheckedAssignee2)},{children:s("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",style:g.checkboxCheckSvg},{children:s("path",{d:"M1 5L4.2 8L11 1",stroke:"#3538CD",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),s("span",Object.assign({style:Object.assign(Object.assign({},g.legendLabel),g.legendLabelAssignee2)},{children:"Assignee 2"}))]})),e("div",Object.assign({style:Object.assign(Object.assign({},g.legendItem),g.legendItemAssignee3),onClick:e=>{y("assignee3")}},{children:[s(r,{checked:null==m?void 0:m.assignee3,size:"small",disableRipple:!0,onClick:e=>e.stopPropagation(),onChange:()=>y("assignee3"),icon:s("div",{style:g.checkboxIconUnchecked}),checkedIcon:s("div",Object.assign({style:Object.assign(Object.assign({},g.checkboxIconChecked),g.checkboxIconCheckedAssignee3)},{children:s("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",style:g.checkboxCheckSvg},{children:s("path",{d:"M1 5L4.2 8L11 1",stroke:"#FF6058",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),s("span",Object.assign({style:Object.assign(Object.assign({},g.legendLabel),g.legendLabelAssignee3)},{children:"Assignee 3"}))]}))]}))})),e("div",Object.assign({style:g.bottomLegend},{children:[e("div",Object.assign({style:g.bottomLegendItem},{children:[s("div",{style:Object.assign(Object.assign({},g.bottomLegendSwatch),g.bottomLegendSwatchPast)}),s("span",Object.assign({style:g.bottomLegendLabel},{children:"Past Dates"}))]})),e("div",Object.assign({style:g.bottomLegendItem},{children:[s("div",{style:Object.assign(Object.assign({},g.bottomLegendSwatch),g.bottomLegendSwatchFailed)}),s("span",Object.assign({style:g.bottomLegendLabel},{children:"Reminder Failed"}))]}))]}))]}))}export{h as default};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as i}from"react";import r from"dayjs";import{Calendar as l,InfoIcon as s,ArrowLeft as d,ArrowRight as a}from"lucide-react";import{Tooltip as c,Checkbox as h}from"@mui/material";import{styles as g}from"../styles/ManageReminder.style.js";var u=["Su","Mo","Tu","We","Th","Fr","Sa"];function m(m){var p=m.assignees,y=o(new Date),v=y[0],k=y[1],f=o({assignee1:!0,assignee2:!0,assignee3:!0}),C=f[0],b=f[1],w=function(n){b(function(t){var o;return e(e({},t),((o={})[n]=!t[n],o))})},x=i(function(){var e=new Map;return p.forEach(function(n){var t=new Map;n.reminders.forEach(function(e){var n,o=r(e).format("YYYY-MM-DD"),i=null!==(n=t.get(o))&&void 0!==n?n:{reminderCount:0,escalationCount:0};i.reminderCount+=1,t.set(o,i)}),n.escalations.forEach(function(e){var n,o=r(e).format("YYYY-MM-DD"),i=null!==(n=t.get(o))&&void 0!==n?n:{reminderCount:0,escalationCount:0};i.escalationCount+=1,t.set(o,i)}),t.forEach(function(t,o){e.has(o)||e.set(o,[]),e.get(o).push({ownerId:n.ownerId,ownerName:n.ownerName,ownerColor:n.ownerColor,reminderCount:t.reminderCount,escalationCount:t.escalationCount,totalCount:t.reminderCount+t.escalationCount})})}),e},[p]);return n("div",e({style:e(e({},g.calendarContainer),{boxShadow:"0 4px 12px 0 rgba(0, 0, 0, 0.08)"})},{children:[n("div",e({style:g.calendarHeader},{children:[n("div",e({style:g.calendarHeaderTitle},{children:[t(l,{size:14}),"Calendar View"]})),t("div",e({style:g.calendarHeaderInfo},{children:t(s,{stroke:"#64748B",style:g.calendarHeaderInfo})}))]})),n("div",e({style:g.monthNav},{children:[t("button",e({type:"button",onClick:function(){return k(r(v).subtract(1,"month").toDate())},style:g.monthNavBtn},{children:t(d,{size:18})})),t("h2",e({style:g.monthNavTitle},{children:r(v).format("MMMM YYYY")})),t("button",e({type:"button",onClick:function(){return k(r(v).add(1,"month").toDate())},style:g.monthNavBtn},{children:t(a,{size:18})}))]})),t("div",{className:"calendar-wrapper"}),t("div",e({style:g.weekdayHeader},{children:u.map(function(n){return t("div",e({style:g.weekdayLabel},{children:n}),n)})})),t("div",e({style:g.dayGrid},{children:Array.from({length:42}).map(function(o,i){var l,s=r(v).startOf("month").startOf("week").add(i,"day").toDate(),d=r(s).format("YYYY-MM-DD"),a=null!==(l=x.get(d))&&void 0!==l?l:[],h=r(s).month()===r(v).month()&&r(s).year()===r(v).year(),u=r(s).isBefore(r(),"day"),m=r(s).isSame(r(),"day"),p={1:C.assignee1,2:C.assignee2,3:C.assignee3},y=a.filter(function(e){return p[e.ownerId]});return t(c,e({arrow:!0,placement:"top",disableHoverListener:!a.length,title:y.length?n("div",e({style:g.tooltipContent},{children:[n("div",e({style:g.tooltipHeader},{children:[t("div",e({style:g.tooltipTitle},{children:"Reminder Schedule"})),t("div",e({style:g.tooltipDate},{children:r(s).format("MMM D, YYYY")}))]})),t("div",e({style:g.tooltipAssignees},{children:y.map(function(o){return n("div",e({style:g.tooltipAssigneeRow},{children:[n("div",e({style:g.tooltipAssigneeInfo},{children:[t("span",{style:e(e({},g.tooltipAssigneeDot),{backgroundColor:o.ownerColor})}),n("span",e({style:g.tooltipAssigneeName},{children:[o.ownerName,":"]}))]})),n("span",e({style:g.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({style:e(e(e({},g.dayCell),u?g.dayCellPast:{}),m?g.dayCellToday:{})},{children:[t("span",e({style:e(e({},g.dayNumber),h?g.dayNumberCurrent:g.dayNumberOutside)},{children:s.getDate()})),t("div",e({style:g.indicatorWrapper},{children:y.map(function(n,o){return t("span",{style:e(e(e({},g.indicatorDot),0!==o?g.indicatorDotOverlap:{}),{backgroundColor:n.ownerColor,zIndex:o+1})},n.ownerId)})}))]}))}),d)})})),t("div",e({style:g.legendWrapper},{children:n("div",e({style:g.legendInner},{children:[n("div",e({style:e(e({},g.legendItem),g.legendItemAssignee1),onClick:function(e){w("assignee1")}},{children:[t(h,{checked:null==C?void 0:C.assignee1,size:"small",disableRipple:!0,onClick:function(e){return e.stopPropagation()},onChange:function(){return w("assignee1")},icon:t("div",{style:g.checkboxIconUnchecked}),checkedIcon:t("div",e({style:e(e({},g.checkboxIconChecked),g.checkboxIconCheckedAssignee1)},{children:t("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",style:g.checkboxCheckSvg},{children:t("path",{d:"M1 5L4.2 8L11 1",stroke:"#C11574",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),t("span",e({style:e(e({},g.legendLabel),g.legendLabelAssignee1)},{children:"Assignee 1"}))]})),n("div",e({style:e(e({},g.legendItem),g.legendItemAssignee2),onClick:function(e){w("assignee2")}},{children:[t(h,{checked:null==C?void 0:C.assignee2,size:"small",disableRipple:!0,onClick:function(e){return e.stopPropagation()},onChange:function(){return w("assignee2")},icon:t("div",{style:g.checkboxIconUnchecked}),checkedIcon:t("div",e({style:e(e({},g.checkboxIconChecked),g.checkboxIconCheckedAssignee2)},{children:t("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",style:g.checkboxCheckSvg},{children:t("path",{d:"M1 5L4.2 8L11 1",stroke:"#3538CD",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),t("span",e({style:e(e({},g.legendLabel),g.legendLabelAssignee2)},{children:"Assignee 2"}))]})),n("div",e({style:e(e({},g.legendItem),g.legendItemAssignee3),onClick:function(e){w("assignee3")}},{children:[t(h,{checked:null==C?void 0:C.assignee3,size:"small",disableRipple:!0,onClick:function(e){return e.stopPropagation()},onChange:function(){return w("assignee3")},icon:t("div",{style:g.checkboxIconUnchecked}),checkedIcon:t("div",e({style:e(e({},g.checkboxIconChecked),g.checkboxIconCheckedAssignee3)},{children:t("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",fill:"none",style:g.checkboxCheckSvg},{children:t("path",{d:"M1 5L4.2 8L11 1",stroke:"#FF6058",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}))})),sx:{padding:0}}),t("span",e({style:e(e({},g.legendLabel),g.legendLabelAssignee3)},{children:"Assignee 3"}))]}))]}))})),n("div",e({style:g.bottomLegend},{children:[n("div",e({style:g.bottomLegendItem},{children:[t("div",{style:e(e({},g.bottomLegendSwatch),g.bottomLegendSwatchPast)}),t("span",e({style:g.bottomLegendLabel},{children:"Past Dates"}))]})),n("div",e({style:g.bottomLegendItem},{children:[t("div",{style:e(e({},g.bottomLegendSwatch),g.bottomLegendSwatchFailed)}),t("span",e({style:g.bottomLegendLabel},{children:"Reminder Failed"}))]}))]}))]}))}export{m as default};
2
2
  //# sourceMappingURL=AssigneeCalendarView.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{Check as r}from"lucide-react";function i({getter:i,setter:n}){return e("label",Object.assign({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center"}},{children:[t("input",{type:"checkbox",checked:i,onChange:e=>n(e.target.checked),style:{display:"none"}}),t("span",Object.assign({style:{width:"18px",height:"18px",border:"2px solid "+(i?"#7C3AED":"#CBD5E1"),borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff"}},{children:i&&t(r,{size:12,color:"#7C3AED",strokeWidth:3})}))]}))}export{i as default};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{Check as i}from"lucide-react";function n(n){var o=n.getter,c=n.setter;return t("label",e({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center"}},{children:[r("input",{type:"checkbox",checked:o,onChange:function(e){return c(e.target.checked)},style:{display:"none"}}),r("span",e({style:{width:"18px",height:"18px",border:"2px solid ".concat(o?"#7C3AED":"#CBD5E1"),borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff"}},{children:o&&r(i,{size:12,color:"#7C3AED",strokeWidth:3})}))]}))}export{n as default};
2
2
  //# sourceMappingURL=CustomCheckbox.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as i}from"react";import{Calendar as n}from"lucide-react";function o({value:o,onChange:r,placeholder:a="dd/mm/yyyy"}){const l=i(null);return e("div",Object.assign({onClick:()=>{var e,t;null===(t=null===(e=l.current)||void 0===e?void 0:e.showPicker)||void 0===t||t.call(e)},style:{position:"relative",width:"100%",height:"35px",padding:"0 12px",borderRadius:"12px",background:"#F3F4F6",border:"1px solid #C7CDD5",display:"flex",gap:60,alignItems:"center",cursor:"pointer",boxSizing:"border-box"}},{children:[t("input",{ref:l,type:"date",value:o,onChange:e=>r(e.target.value?new Date(e.target.value):null),style:{position:"absolute",opacity:0,pointerEvents:"none"}}),t("span",Object.assign({style:{fontSize:"14px",fontWeight:400,color:o?"#111827":"#667085"}},{children:o?new Date(o).toLocaleDateString("en-GB"):a})),t("div",Object.assign({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"6px"}},{children:t(n,{size:18,color:"#667085",strokeWidth:2})}))]}))}export{o as default};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useRef as i}from"react";import{Calendar as o}from"lucide-react";function n(n){var l=n.value,a=n.onChange,d=n.placeholder,p=void 0===d?"dd/mm/yyyy":d,u=i(null);return t("div",e({onClick:function(){var e,t;null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t||t.call(e)},style:{position:"relative",width:"100%",height:"35px",padding:"0 12px",borderRadius:"12px",background:"#F3F4F6",border:"1px solid #C7CDD5",display:"flex",gap:60,alignItems:"center",cursor:"pointer",boxSizing:"border-box"}},{children:[r("input",{ref:u,type:"date",value:l,onChange:function(e){return a(e.target.value?new Date(e.target.value):null)},style:{position:"absolute",opacity:0,pointerEvents:"none"}}),r("span",e({style:{fontSize:"14px",fontWeight:400,color:l?"#111827":"#667085"}},{children:l?new Date(l).toLocaleDateString("en-GB"):p})),r("div",e({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"6px"}},{children:r(o,{size:18,color:"#667085",strokeWidth:2})}))]}))}export{n as default};
2
2
  //# sourceMappingURL=CustomDatePicker.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as n}from"react/jsx-runtime";import{ChevronDown as t}from"lucide-react";import{useState as r,useRef as i,useEffect as o}from"react";function a({value:a,options:l,onChange:s}){const[c,d]=r(!1),p=i(null),u=l.find(e=>e.label===a)||l[0];return o(()=>{function e(e){p.current&&!p.current.contains(e.target)&&d(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),e("div",Object.assign({ref:p,style:{position:"relative"}},{children:[e("div",Object.assign({onClick:()=>d(!c),style:{display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",background:"transparent",padding:"2px 4px",userSelect:"none"}},{children:[u.icon&&n("span",Object.assign({style:{display:"flex",alignItems:"center"}},{children:u.icon})),n("span",Object.assign({style:{fontSize:"14px"}},{children:u.label})),n(t,{size:14,style:{flexShrink:0}})]})),c&&n("div",Object.assign({style:{position:"absolute",top:"100%",left:0,marginTop:"4px",background:"white",border:"1px solid #CBD5E1",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1)",zIndex:50,minWidth:"140px",overflow:"hidden"}},{children:l.map((t,r)=>e("div",Object.assign({onClick:()=>{s(t.label),d(!1)},style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",cursor:"pointer",fontSize:"14px",backgroundColor:a===t.label?"#F1F5F9":"transparent"},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#F8FAFC",onMouseLeave:e=>e.currentTarget.style.backgroundColor=a===t.label?"#F1F5F9":"transparent"},{children:[t.icon&&n("span",Object.assign({style:{display:"flex",alignItems:"center"}},{children:t.icon})),n("span",{children:t.label})]}),r))}))]}))}export{a as default};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";import{ChevronDown as t}from"lucide-react";import{useState as o,useRef as i,useEffect as l}from"react";function a(a){var c=a.value,s=a.options,u=a.onChange,d=o(!1),p=d[0],f=d[1],x=i(null),m=s.find(function(e){return e.label===c})||s[0];return l(function(){function e(e){x.current&&!x.current.contains(e.target)&&f(!1)}return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n("div",e({ref:x,style:{position:"relative"}},{children:[n("div",e({onClick:function(){return f(!p)},style:{display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",background:"transparent",padding:"2px 4px",userSelect:"none"}},{children:[m.icon&&r("span",e({style:{display:"flex",alignItems:"center"}},{children:m.icon})),r("span",e({style:{fontSize:"14px"}},{children:m.label})),r(t,{size:14,style:{flexShrink:0}})]})),p&&r("div",e({style:{position:"absolute",top:"100%",left:0,marginTop:"4px",background:"white",border:"1px solid #CBD5E1",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1)",zIndex:50,minWidth:"140px",overflow:"hidden"}},{children:s.map(function(t,o){return n("div",e({onClick:function(){u(t.label),f(!1)},style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",cursor:"pointer",fontSize:"14px",backgroundColor:c===t.label?"#F1F5F9":"transparent"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#F8FAFC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor=c===t.label?"#F1F5F9":"transparent"}},{children:[t.icon&&r("span",e({style:{display:"flex",alignItems:"center"}},{children:t.icon})),r("span",{children:t.label})]}),o)})}))]}))}export{a as default};
2
2
  //# sourceMappingURL=CustomDropdown.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as e}from"../../../_virtual/_tslib.js";import{jsxs as i,jsx as n}from"react/jsx-runtime";import{useState as s,useEffect as t}from"react";import o from"./CustomDropdown.js";import{AddUserPopup as a}from"./AddUserPopup.js";function r({assignees:r,onAssigneeChange:l,accessLevelOptions:d,fetchUsers:p,wrapperEl:c}){var g,u,v;const[b,h]=s(""),[m,x]=s([]),[j,f]=s(null);t(()=>{if(!b.trim())return void x([]);const i=setTimeout(()=>e(this,void 0,void 0,function*(){try{const e=yield p(b),i=new Set(r.map(e=>e.id));x(e.filter(e=>!i.has(e.id)))}catch(e){console.error("[LevelData]: fetchUser error:",e),x([])}}),300);return()=>clearTimeout(i)},[b,r]);return i("div",Object.assign({style:{borderTop:"1px solid #CBD5E1",padding:"20px"}},{children:[n("span",Object.assign({style:{fontWeight:600,marginBottom:"8px",fontSize:"14px"}},{children:"Assignee Emails"})),i("div",Object.assign({style:{border:"1px solid #CBD5E1",borderRadius:"8px",padding:"8px",marginTop:"10px",display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},{children:[r.map(e=>{var s,t,a;const p=!!e.notes&&"string"==typeof e.notes&&!!e.notes.trim();return i("div",Object.assign({style:{display:"flex",alignItems:"center",gap:"6px",background:"#E9D5FF",borderRadius:"10px",padding:"2px 8px",fontSize:"12px"}},{children:[n("span",Object.assign({style:{padding:"4px"}},{children:e.name})),n(o,{value:null!==(a=null!==(s=e.accessLevel)&&void 0!==s?s:null===(t=d[0])||void 0===t?void 0:t.label)&&void 0!==a?a:"",options:d,onChange:i=>{return n=e.id,s=i,void l(r.map(e=>e.id===n?Object.assign(Object.assign({},e),{accessLevel:s}):e));var n,s}}),n("div",Object.assign({style:{position:"relative",display:"inline-flex"}},{children:n("button",Object.assign({type:"button",onClick:()=>(e=>{f(Object.assign({},e))})(e),style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",color:p?"#7C3AED":"#C4B5FD"}},{children:i("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[n("path",{d:"M2 6h4"}),n("path",{d:"M2 10h4"}),n("path",{d:"M2 14h4"}),n("path",{d:"M2 18h4"}),n("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2"}),n("path",{d:"M9.5 8h5"}),n("path",{d:"M9.5 12H16"}),n("path",{d:"M9.5 16H14"})]}))}))})),n("button",Object.assign({style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",fontSize:"12px"},onClick:()=>{return i=e.id,l(r.filter(e=>e.id!==i)),void((null==j?void 0:j.id)===i&&f(null));var i},"aria-label":`Remove ${e.name}`},{children:"✕"}))]}),e.id)}),n("input",{type:"text",value:b,placeholder:"Search users...",onChange:e=>h(e.target.value),style:{border:"none",outline:"none",flex:1,minWidth:"150px",fontSize:"12px"}})]})),m.length>0&&n("div",Object.assign({style:{border:"1px solid #CBD5E1",borderRadius:"8px",marginTop:"8px"}},{children:m.map(e=>i("div",Object.assign({style:{padding:"8px",cursor:"pointer"},onClick:()=>(e=>{var i,n,s,t;r.some(i=>i.id===e.id)||(l([...r,Object.assign(Object.assign({},e),{accessLevel:null!==(n=null===(i=d[0])||void 0===i?void 0:i.label)&&void 0!==n?n:"",notes:"",sendMailNow:!1})]),h(""),x([]),f(Object.assign(Object.assign({},e),{accessLevel:null!==(t=null===(s=d[0])||void 0===s?void 0:s.label)&&void 0!==t?t:""})))})(e)},{children:[e.name,e.email&&n("span",Object.assign({style:{marginLeft:"8px",color:"#6B7280",fontSize:"11px"}},{children:e.email}))]}),e.id))})),j&&n(a,{user:j,accessLevel:null!==(v=null!==(g=j.accessLevel)&&void 0!==g?g:null===(u=d[0])||void 0===u?void 0:u.label)&&void 0!==v?v:"",wrapperEl:c,onBackToEditing:()=>{j&&(l(r.map(e=>e.id===j.id?Object.assign(Object.assign({},e),{notes:"",sendMailNow:!1}):e)),f(null))},onSendLater:e=>{j&&(l(r.map(i=>i.id===j.id?Object.assign(Object.assign({},i),{notes:e,sendMailNow:!1}):i)),f(null))},onSendNow:e=>{j&&(l(r.map(i=>i.id===j.id?Object.assign(Object.assign({},i),{notes:e,sendMailNow:!0}):i)),f(null))}})]}))}export{r as default};
1
+ import{__awaiter as e,__generator as n,__assign as i,__spreadArray as r}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as l,useEffect as d}from"react";import a from"./CustomDropdown.js";import{AddUserPopup as s}from"./AddUserPopup.js";function u(u){var p,c,f,v=this,h=u.assignees,m=u.onAssigneeChange,x=u.accessLevelOptions,g=u.fetchUsers,b=u.wrapperEl,y=l(""),w=y[0],C=y[1],L=l([]),k=L[0],M=L[1],E=l(null),S=E[0],B=E[1];d(function(){if(w.trim()){var i=setTimeout(function(){return e(v,void 0,void 0,function(){var e,i,r;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,g(w)];case 1:return e=n.sent(),i=new Set(h.map(function(e){return e.id})),M(e.filter(function(e){return!i.has(e.id)})),[3,3];case 2:return r=n.sent(),console.error("[LevelData]: fetchUser error:",r),M([]),[3,3];case 3:return[2]}})})},300);return function(){return clearTimeout(i)}}M([])},[w,h]);return t("div",i({style:{borderTop:"1px solid #CBD5E1",padding:"20px"}},{children:[o("span",i({style:{fontWeight:600,marginBottom:"8px",fontSize:"14px"}},{children:"Assignee Emails"})),t("div",i({style:{border:"1px solid #CBD5E1",borderRadius:"8px",padding:"8px",marginTop:"10px",display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},{children:[h.map(function(e){var n,r,l,d=!!e.notes&&"string"==typeof e.notes&&!!e.notes.trim();return t("div",i({style:{display:"flex",alignItems:"center",gap:"6px",background:"#E9D5FF",borderRadius:"10px",padding:"2px 8px",fontSize:"12px"}},{children:[o("span",i({style:{padding:"4px"}},{children:e.name})),o(a,{value:null!==(l=null!==(n=e.accessLevel)&&void 0!==n?n:null===(r=x[0])||void 0===r?void 0:r.label)&&void 0!==l?l:"",options:x,onChange:function(n){return r=e.id,t=n,void m(h.map(function(e){return e.id===r?i(i({},e),{accessLevel:t}):e}));var r,t}}),o("div",i({style:{position:"relative",display:"inline-flex"}},{children:o("button",i({type:"button",onClick:function(){return function(e){B(i({},e))}(e)},style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",color:d?"#7C3AED":"#C4B5FD"}},{children:t("svg",i({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[o("path",{d:"M2 6h4"}),o("path",{d:"M2 10h4"}),o("path",{d:"M2 14h4"}),o("path",{d:"M2 18h4"}),o("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2"}),o("path",{d:"M9.5 8h5"}),o("path",{d:"M9.5 12H16"}),o("path",{d:"M9.5 16H14"})]}))}))})),o("button",i({style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",fontSize:"12px"},onClick:function(){return n=e.id,m(h.filter(function(e){return e.id!==n})),void((null==S?void 0:S.id)===n&&B(null));var n},"aria-label":"Remove ".concat(e.name)},{children:"✕"}))]}),e.id)}),o("input",{type:"text",value:w,placeholder:"Search users...",onChange:function(e){return C(e.target.value)},style:{border:"none",outline:"none",flex:1,minWidth:"150px",fontSize:"12px"}})]})),k.length>0&&o("div",i({style:{border:"1px solid #CBD5E1",borderRadius:"8px",marginTop:"8px"}},{children:k.map(function(e){return t("div",i({style:{padding:"8px",cursor:"pointer"},onClick:function(){return function(e){var n,t,o,l;h.some(function(n){return n.id===e.id})||(m(r(r([],h,!0),[i(i({},e),{accessLevel:null!==(t=null===(n=x[0])||void 0===n?void 0:n.label)&&void 0!==t?t:"",notes:"",sendMailNow:!1})],!1)),C(""),M([]),B(i(i({},e),{accessLevel:null!==(l=null===(o=x[0])||void 0===o?void 0:o.label)&&void 0!==l?l:""})))}(e)}},{children:[e.name,e.email&&o("span",i({style:{marginLeft:"8px",color:"#6B7280",fontSize:"11px"}},{children:e.email}))]}),e.id)})})),S&&o(s,{user:S,accessLevel:null!==(f=null!==(p=S.accessLevel)&&void 0!==p?p:null===(c=x[0])||void 0===c?void 0:c.label)&&void 0!==f?f:"",wrapperEl:b,onBackToEditing:function(){S&&(m(h.map(function(e){return e.id===S.id?i(i({},e),{notes:"",sendMailNow:!1}):e})),B(null))},onSendLater:function(e){S&&(m(h.map(function(n){return n.id===S.id?i(i({},n),{notes:e,sendMailNow:!1}):n})),B(null))},onSendNow:function(e){S&&(m(h.map(function(n){return n.id===S.id?i(i({},n),{notes:e,sendMailNow:!0}):n})),B(null))}})]}))}export{u as default};
2
2
  //# sourceMappingURL=LevelData.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t,Fragment as o}from"react/jsx-runtime";import{useState as n,useEffect as i}from"react";import{Autocomplete as r,TextField as p,InputAdornment as s}from"@mui/material";import{ChevronsUpDownIcon as u}from"lucide-react";const l=["1/2","1","2","3","4","Custom"];function a({value:a,onChange:c,options:d=l,placeholder:m="Select frequency",suffix:v}){const[h,x]=n(""),[f,g]=n(null),[y,I]=n(!1);return i(()=>a?"custom"===a.type?(I(!0),g(null),void x(a.value||"")):(I(!1),g(a.value),void x(a.value)):(g(null),x(""),void I(!1)),[a]),e(r,{size:"small",freeSolo:y,options:d,value:f,inputValue:h,popupIcon:e(u,{style:{width:"14px",height:"14px",color:"#6B7280"}}),onChange:(e,t)=>t?"Custom"===t?(I(!0),g(null),x(""),void c({type:"custom",value:""})):(I(!1),g(t),x(t),void c({type:"preset",value:t})):(g(null),x(""),I(!1),void c(null)),slotProps:{paper:{sx:{"& .MuiAutocomplete-option":{fontSize:"12px",minHeight:"32px"}}},clearIndicator:{sx:{"& svg":{fontSize:12}}}},onInputChange:(e,t,o)=>{if(!y)return;const n=t.replace(/[^\d]/g,"");x(n),"input"===o&&c({type:"custom",value:n})},renderInput:n=>e(p,Object.assign({},n,{placeholder:y?"Enter custom value":m,inputProps:Object.assign(Object.assign({},n.inputProps),{inputMode:y?"numeric":void 0,readOnly:!y}),InputProps:Object.assign(Object.assign({},n.InputProps),{endAdornment:y&&v?t(o,{children:[e(s,Object.assign({position:"end"},{children:e("span",Object.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:y?"text":"pointer"},"& input":{cursor:y?"text":"pointer"}},onKeyDown:e=>{y&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}})),sx:{width:"100%"}})}export{a as default};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";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 d(d){var c=d.value,m=d.onChange,v=d.options,f=void 0===v?s:v,h=d.placeholder,x=void 0===h?"Select frequency":h,y=d.suffix,g=r(""),I=g[0],P=g[1],S=r(null),w=S[0],z=S[1],C=r(!1),A=C[0],M=C[1];return i(function(){return c?"custom"===c.type?(M(!0),z(null),void P(c.value||"")):(M(!1),z(c.value),void P(c.value)):(z(null),P(""),void M(!1))},[c]),t(u,{size:"small",freeSolo:A,options:f,value:w,inputValue:I,popupIcon:t(a,{style:{width:"14px",height:"14px",color:"#6B7280"}}),onChange:function(e,t){return t?"Custom"===t?(M(!0),z(null),P(""),void m({type:"custom",value:""})):(M(!1),z(t),P(t),void m({type:"preset",value:t})):(z(null),P(""),M(!1),void m(null))},slotProps:{paper:{sx:{"& .MuiAutocomplete-option":{fontSize:"12px",minHeight:"32px"}}},clearIndicator:{sx:{"& svg":{fontSize:12}}}},onInputChange:function(e,t,o){if(A){var n=t.replace(/[^\d]/g,"");P(n),"input"===o&&m({type:"custom",value:n})}},renderInput:function(r){return t(p,e({},r,{placeholder:A?"Enter custom value":x,inputProps:e(e({},r.inputProps),{inputMode:A?"numeric":void 0,readOnly:!A}),InputProps:e(e({},r.InputProps),{endAdornment:A&&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:A?"text":"pointer"},"& input":{cursor:A?"text":"pointer"}},onKeyDown:function(e){A&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}}))},sx:{width:"100%"}})}export{d as default};
2
2
  //# sourceMappingURL=ReminderFrequencyAutocomplete.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as t,Fragment as i}from"react/jsx-runtime";import s from"react";import{Info as n,Check as l,Hourglass as o,X as r,CircleCheck as a,MinusCircle as d,User as c,ArrowRight as p,CheckCircle as g,FileCheck as v,LucidePen as x}from"lucide-react";import{DEFAULT_REVIEW_STATUS_STYLES as u}from"../styles/ReviewStatusStyles.js";const b=e=>{const t=e.trim().split(/\s+/);return 1===t.length?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()},h=e=>{const t=[{bg:"#FEF9C3",fg:"#854D0E"},{bg:"#DCFCE7",fg:"#166534"},{bg:"#DBEAFE",fg:"#1E40AF"},{bg:"#F3E8FF",fg:"#6B21A8"},{bg:"#FFE4E6",fg:"#9F1239"},{bg:"#FEE2E2",fg:"#991B1B"},{bg:"#E0F2FE",fg:"#0369A1"}];let i=0;for(let t=0;t<e.length;t++)i=e.charCodeAt(t)+((i<<5)-i);return t[Math.abs(i)%t.length]};function f({levels:l,reviewData:o={}}){const r=l.map((e,t)=>{var i,s,n;const l=null!==(s=null!==(i=o[t])&&void 0!==i?i:o[e.headerName])&&void 0!==s?s:{},r=(null!==(n=e.assignees)&&void 0!==n?n:[]).map(e=>({user:e,approved:!0===l[String(e.id)]||!0===l[String(e.email)]||"approved"===e.action||!0===e.approved,rejected:"rejected"===l[String(e.id)]||"rejected"===l[String(e.email)]||"rejected"===e.action}));let a="not_started";if(!0===e.isApproved)a="approved";else if(!0===e.isRejected)a="rejected";else if("approved"===e.status||"completed"===e.status)a="approved";else if("rejected"===e.status)a="rejected";else{const e=r.length>0&&r.every(e=>e.approved),t=r.some(e=>e.rejected);e?a="approved":t&&(a="rejected")}return{level:e,assigneeStatuses:r,status:a}});let a=!1;const d=r.map(e=>{let t="waiting";const i=!0===e.level.isHidden;return"approved"===e.status?t="approved":"rejected"===e.status?(t="rejected",a=!0):e.level.isMandatory||i?a||(t="pending",a=!0):t="optional",Object.assign(Object.assign({},e),{extendedStatus:t,isFinalApproval:i})}),c=(e=>e.filter(e=>"approved"===e.status).length)(r),p=r.length;return e("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:24}},{children:[e("div",{children:[e("div",Object.assign({style:u.progressHeader},{children:[t("span",Object.assign({style:u.progressTitle},{children:"Approval Progress"})),e("span",Object.assign({style:u.progressCount},{children:[c," of ",p," level",1!==p?"s":""," complete"]}))]})),t("div",Object.assign({style:u.progressBarTrack},{children:d.map((e,i)=>{var s;const n="approved"===e.extendedStatus,l="rejected"===e.extendedStatus,o="optional"===e.extendedStatus,r=0===i,a=i===p-1;if((null===(s=e.level)||void 0===s?void 0:s.assignees)&&Array.isArray(e.level.assignees)&&!(e.level.assignees.length<1))return t("div",{style:Object.assign(Object.assign({},u.progressSegment),{backgroundColor:n?"#6366F1":l?"#EF4444":o?"#F1F5F9":"#E5E7EB",borderRadius:r&&a?"999px":r?"999px 0 0 999px":a?"0 999px 999px 0":"0",marginRight:a?0:3})},i)})})),t("div",Object.assign({style:u.progressLabels},{children:d.map((e,s)=>t(i,{children:t("span",Object.assign({style:Object.assign(Object.assign({},u.progressLabel),{color:"approved"===e.extendedStatus?"#6366F1":"rejected"===e.extendedStatus?"#EF4444":"#9CA3AF",fontWeight:"approved"===e.extendedStatus||"rejected"===e.extendedStatus?600:400})},{children:e.level.assignees&&e.level.assignees.length>0?`${e.level.headerName} - ${e.level.title}`:""}),s)}))}))]}),e("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:0}},{children:[t("div",Object.assign({style:u.sectionHeadingRow},{children:e("div",Object.assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[t("span",Object.assign({style:u.sectionTitle},{children:"Approval Levels"})),t(n,{size:15,color:"#9CA3AF"})]}))})),t("div",Object.assign({style:{display:"flex",flexDirection:"column",marginTop:12}},{children:d.map((i,n)=>{var l;const o=n===d.length-1,r=i.isFinalApproval,a=d[n+1],c=null==a?void 0:a.isFinalApproval,p=a&&!a.level.isMandatory&&!c;return e(s.Fragment,r?{children:[e("div",Object.assign({style:{display:"flex",alignItems:"center",margin:"16px 0"}},{children:[t("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),t("span",Object.assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),t("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]})),t("div",Object.assign({style:{marginBottom:"12px",fontSize:"15px",fontWeight:500,color:"#6B7280"}},{children:"Final Approval"})),t(F,{reviewLevel:i})]}:{children:[t(y,{reviewLevel:i}),!o&&!c&&a.level.assignees&&(null===(l=a.level.assignees)||void 0===l?void 0:l.length)>0&&e("div",Object.assign({style:{display:"flex",alignItems:"center",margin:"20px 0"}},{children:[t("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),t("span",Object.assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:p?"optional":"then"})),t("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]}))]},n)})}))]})),t(E,{levels:l})]}))}function y({reviewLevel:i}){var s;const{level:a,assigneeStatuses:d,extendedStatus:c}=i,p=null!==(s={approved:{bg:"#ECFDF5",color:"#059669",icon:t(l,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:t(o,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:t(o,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:t(r,{size:14}),text:"Rejected"},optional:{bg:"#F8FAFC",color:"#64748B",icon:t(n,{size:14}),text:"Optional"}}[c])&&void 0!==s?s:{bg:"#F3F4F6",color:"#4B5563",icon:t(o,{size:14}),text:"Waiting"},g="approved"===c?"1px solid #D1FAE5":"rejected"===c?"1px solid #FCA5A5":"optional"===c?"1px dashed #CBD5E1":"1px solid #E5E7EB",v="approved"===c?"#F0FDF4":"rejected"===c?"#FEF2F2":"#F8FAFC";return!a.assignees||!Array.isArray(a.assignees)||a.assignees.length<1?null:e("div",Object.assign({style:{backgroundColor:"#FFFFFF",border:g,borderRadius:"8px",display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[e("div",Object.assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:v,borderBottom:g,padding:"12px 16px"}},{children:[e("div",Object.assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[t(m,{name:a.headerName}),t("span",Object.assign({style:{fontSize:15,fontWeight:500,color:"#374151"}},{children:a.title}))]})),e("div",Object.assign({style:{backgroundColor:p.bg,color:p.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[p.icon,p.text]}))]})),t("div",Object.assign({style:{padding:"16px"}},{children:d.length>0?t("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:16}},{children:d.map((e,i)=>{var s;return t(j,{assigneeStatus:e,extendedStatus:c},null!==(s=e.user.id)&&void 0!==s?s:i)})})):t("div",Object.assign({style:{fontSize:14,color:"#6B7280"}},{children:"No assignees added yet"}))}))]}))}function F({reviewLevel:i}){var s,a,d,c;const{assigneeStatuses:p,extendedStatus:g}=i,v=null!==(s={approved:{bg:"#ECFDF5",color:"#059669",icon:t(l,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:t(o,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:t(o,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:t(r,{size:14}),text:"Rejected"},optional:{bg:"#F8FAFC",color:"#64748B",icon:t(n,{size:14}),text:"Optional"}}[g])&&void 0!==s?s:{bg:"#F3F4F6",color:"#4B5563",icon:t(o,{size:14}),text:"Waiting"},x=null===(a=p[0])||void 0===a?void 0:a.user;return e("div",Object.assign({style:{backgroundColor:"#FFFFFF",border:"1px solid #E5E7EB",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[x?e("div",Object.assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[t("div",Object.assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:h(null!==(d=x.id)&&void 0!==d?d:x.name).bg,color:h(null!==(c=x.id)&&void 0!==c?c:x.name).fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"14px"}},{children:b(x.name)})),e("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[t("span",Object.assign({style:{fontSize:"15px",fontWeight:400,color:"#374151"}},{children:x.name})),t("span",Object.assign({style:{fontSize:"13px",color:"#6B7280"}},{children:"Will be notified after all levels approve"}))]}))]})):t("span",Object.assign({style:{fontSize:14,color:"#6B7280"}},{children:"No owner assigned"})),e("div",Object.assign({style:{backgroundColor:v.bg,color:v.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[v.icon,v.text]}))]}))}function j({assigneeStatus:s,extendedStatus:n}){var l;const o=s.user,c=s.approved||"approved"===o.action,p=s.rejected||"rejected"===o.action,g=b(o.name),v=h(null!==(l=o.id)&&void 0!==l?l:o.name);return e("div",Object.assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[e("div",Object.assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[t("div",Object.assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:v.bg,color:v.fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,fontSize:"13px"}},{children:g})),e("div",Object.assign({style:{display:"flex",flexDirection:"column",gap:"2px"}},{children:[t("span",Object.assign({style:{fontSize:"14px",fontWeight:400,color:"#374151"}},{children:o.name})),t("span",Object.assign({style:{fontSize:"13px",color:"#6B7280"}},{children:o.email}))]}))]})),t("div",Object.assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:c?t(a,{size:20,color:"#16A34A",strokeWidth:1.5}):p?t(r,{size:20,color:"#DC2626",strokeWidth:1.5}):"pending"===n?e(i,{children:[t("span",{style:{fontSize:"13px",color:"#4B5563"}}),t(d,{size:20,color:"#9CA3AF",strokeWidth:1.5})]}):t(d,"optional"===n?{size:20,color:"#CBD5E1",strokeWidth:1.5}:{size:20,color:"#9CA3AF",strokeWidth:1.5})}))]}))}function m({name:e}){const i=h(e);return t("span",Object.assign({style:{backgroundColor:i.bg,color:i.fg,borderRadius:12,padding:"3px 10px",fontSize:12,fontWeight:500}},{children:e}))}const O=e=>{switch(e){case 0:return t(x,{size:16,color:"#475569"});case 1:return t(v,{size:16,color:"#475569"});case 2:return t(c,{size:16,color:"#475569"});default:return t(g,{size:16,color:"#475569"})}};function E({levels:i}){const n=i.some(e=>{var t,i;return(null!==(i=null===(t=e.assignees)||void 0===t?void 0:t.length)&&void 0!==i?i:0)>0});return e("div",Object.assign({style:u.flowBox},{children:[t("span",Object.assign({style:u.flowTitle},{children:"Current Approval Flow"})),n?t("div",Object.assign({style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center",marginTop:6}},{children:i.map((n,l)=>{var o;const r=n.isHidden,a=!n.isMandatory&&!r,d=null===(o=n.assignees)||void 0===o?void 0:o.map(e=>e.name).join(" / ");if(!d)return null;const g=r?t(c,{size:16,color:"#475569"}):O(l);return e(s.Fragment,{children:[e("span",Object.assign({style:Object.assign(Object.assign({},u.flowChip),{display:"flex",alignItems:"center",gap:"6px",border:a?"1px dashed #CBD5E1":void 0})},{children:[g,e("span",Object.assign({style:{fontSize:13,color:a?"#64748B":"#374151"}},{children:[d," ",a&&"(Optional)"]}))]})),l<i.length-1&&t(p,{size:16,color:"#9CA3AF"})]},l)})})):t("p",Object.assign({style:u.flowEmpty},{children:"No owners assigned yet."}))]}))}export{f as default};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as i,Fragment as n}from"react/jsx-runtime";import l from"react";import{Info as r,Check as o,Hourglass as s,X as d,CircleCheck as a,MinusCircle as p,User as c,ArrowRight as g,CheckCircle as v,FileCheck as u,LucidePen as f}from"lucide-react";import{DEFAULT_REVIEW_STATUS_STYLES as x}from"../styles/ReviewStatusStyles.js";var h=function(e){var t=e.trim().split(/\s+/);return 1===t.length?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()},y=function(e){for(var t=[{bg:"#FEF9C3",fg:"#854D0E"},{bg:"#DCFCE7",fg:"#166534"},{bg:"#DBEAFE",fg:"#1E40AF"},{bg:"#F3E8FF",fg:"#6B21A8"},{bg:"#FFE4E6",fg:"#9F1239"},{bg:"#FEE2E2",fg:"#991B1B"},{bg:"#E0F2FE",fg:"#0369A1"}],i=0,n=0;n<e.length;n++)i=e.charCodeAt(n)+((i<<5)-i);return t[Math.abs(i)%t.length]};function F(o){var s=o.levels,d=o.reviewData,a=void 0===d?{}:d,p=s.map(function(e,t){var i,n,l,r=null!==(n=null!==(i=a[t])&&void 0!==i?i:a[e.headerName])&&void 0!==n?n:{},o=(null!==(l=e.assignees)&&void 0!==l?l:[]).map(function(e){return{user:e,approved:!0===r[String(e.id)]||!0===r[String(e.email)]||"approved"===e.action||!0===e.approved,rejected:"rejected"===r[String(e.id)]||"rejected"===r[String(e.email)]||"rejected"===e.action}}),s="not_started";if(!0===e.isApproved)s="approved";else if(!0===e.isRejected)s="rejected";else if("approved"===e.status||"completed"===e.status)s="approved";else if("rejected"===e.status)s="rejected";else{var d=o.length>0&&o.every(function(e){return e.approved}),p=o.some(function(e){return e.rejected});d?s="approved":p&&(s="rejected")}return{level:e,assigneeStatuses:o,status:s}}),c=!1,g=p.map(function(t){var i="waiting",n=!0===t.level.isHidden;return"approved"===t.status?i="approved":"rejected"===t.status?(i="rejected",c=!0):t.level.isMandatory||n?c||(i="pending",c=!0):i="optional",e(e({},t),{extendedStatus:i,isFinalApproval:n})}),v=function(e){return e.filter(function(e){return"approved"===e.status}).length}(p),u=p.length;return t("div",e({style:{display:"flex",flexDirection:"column",gap:24}},{children:[t("div",{children:[t("div",e({style:x.progressHeader},{children:[i("span",e({style:x.progressTitle},{children:"Approval Progress"})),t("span",e({style:x.progressCount},{children:[v," of ",u," level",1!==u?"s":""," complete"]}))]})),i("div",e({style:x.progressBarTrack},{children:g.map(function(t,n){var l,r="approved"===t.extendedStatus,o="rejected"===t.extendedStatus,s="optional"===t.extendedStatus,d=0===n,a=n===u-1;if((null===(l=t.level)||void 0===l?void 0:l.assignees)&&Array.isArray(t.level.assignees)&&!(t.level.assignees.length<1))return i("div",{style:e(e({},x.progressSegment),{backgroundColor:r?"#6366F1":o?"#EF4444":s?"#F1F5F9":"#E5E7EB",borderRadius:d&&a?"999px":d?"999px 0 0 999px":a?"0 999px 999px 0":"0",marginRight:a?0:3})},n)})})),i("div",e({style:x.progressLabels},{children:g.map(function(t,l){return i(n,{children:i("span",e({style:e(e({},x.progressLabel),{color:"approved"===t.extendedStatus?"#6366F1":"rejected"===t.extendedStatus?"#EF4444":"#9CA3AF",fontWeight:"approved"===t.extendedStatus||"rejected"===t.extendedStatus?600:400})},{children:t.level.assignees&&t.level.assignees.length>0?"".concat(t.level.headerName," - ").concat(t.level.title):""}),l)})})}))]}),t("div",e({style:{display:"flex",flexDirection:"column",gap:0}},{children:[i("div",e({style:x.sectionHeadingRow},{children:t("div",e({style:{display:"flex",alignItems:"center",gap:6}},{children:[i("span",e({style:x.sectionTitle},{children:"Approval Levels"})),i(r,{size:15,color:"#9CA3AF"})]}))})),i("div",e({style:{display:"flex",flexDirection:"column",marginTop:12}},{children:g.map(function(n,r){var o,s=r===g.length-1,d=n.isFinalApproval,a=g[r+1],p=null==a?void 0:a.isFinalApproval,c=a&&!a.level.isMandatory&&!p;return t(l.Fragment,d?{children:[t("div",e({style:{display:"flex",alignItems:"center",margin:"16px 0"}},{children:[i("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),i("span",e({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),i("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]})),i("div",e({style:{marginBottom:"12px",fontSize:"15px",fontWeight:500,color:"#6B7280"}},{children:"Final Approval"})),i(b,{reviewLevel:n})]}:{children:[i(m,{reviewLevel:n}),!s&&!p&&a.level.assignees&&(null===(o=a.level.assignees)||void 0===o?void 0:o.length)>0&&t("div",e({style:{display:"flex",alignItems:"center",margin:"20px 0"}},{children:[i("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),i("span",e({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:c?"optional":"then"})),i("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]}))]},r)})}))]})),i(S,{levels:s})]}))}function m(n){var l,a=n.reviewLevel,p=a.level,c=a.assigneeStatuses,g=a.extendedStatus,v=null!==(l={approved:{bg:"#ECFDF5",color:"#059669",icon:i(o,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:i(s,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:i(s,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:i(d,{size:14}),text:"Rejected"},optional:{bg:"#F8FAFC",color:"#64748B",icon:i(r,{size:14}),text:"Optional"}}[g])&&void 0!==l?l:{bg:"#F3F4F6",color:"#4B5563",icon:i(s,{size:14}),text:"Waiting"},u="approved"===g?"1px solid #D1FAE5":"rejected"===g?"1px solid #FCA5A5":"optional"===g?"1px dashed #CBD5E1":"1px solid #E5E7EB",f="approved"===g?"#F0FDF4":"rejected"===g?"#FEF2F2":"#F8FAFC";return!p.assignees||!Array.isArray(p.assignees)||p.assignees.length<1?null:t("div",e({style:{backgroundColor:"#FFFFFF",border:u,borderRadius:"8px",display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[t("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:f,borderBottom:u,padding:"12px 16px"}},{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[i(C,{name:p.headerName}),i("span",e({style:{fontSize:15,fontWeight:500,color:"#374151"}},{children:p.title}))]})),t("div",e({style:{backgroundColor:v.bg,color:v.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[v.icon,v.text]}))]})),i("div",e({style:{padding:"16px"}},{children:c.length>0?i("div",e({style:{display:"flex",flexDirection:"column",gap:16}},{children:c.map(function(e,t){var n;return i(E,{assigneeStatus:e,extendedStatus:g},null!==(n=e.user.id)&&void 0!==n?n:t)})})):i("div",e({style:{fontSize:14,color:"#6B7280"}},{children:"No assignees added yet"}))}))]}))}function b(n){var l,a,p,c,g=n.reviewLevel,v=g.assigneeStatuses,u=g.extendedStatus,f=null!==(l={approved:{bg:"#ECFDF5",color:"#059669",icon:i(o,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:i(s,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:i(s,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:i(d,{size:14}),text:"Rejected"},optional:{bg:"#F8FAFC",color:"#64748B",icon:i(r,{size:14}),text:"Optional"}}[u])&&void 0!==l?l:{bg:"#F3F4F6",color:"#4B5563",icon:i(s,{size:14}),text:"Waiting"},x=null===(a=v[0])||void 0===a?void 0:a.user;return t("div",e({style:{backgroundColor:"#FFFFFF",border:"1px solid #E5E7EB",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[x?t("div",e({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[i("div",e({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:y(null!==(p=x.id)&&void 0!==p?p:x.name).bg,color:y(null!==(c=x.id)&&void 0!==c?c:x.name).fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"14px"}},{children:h(x.name)})),t("div",e({style:{display:"flex",flexDirection:"column"}},{children:[i("span",e({style:{fontSize:"15px",fontWeight:400,color:"#374151"}},{children:x.name})),i("span",e({style:{fontSize:"13px",color:"#6B7280"}},{children:"Will be notified after all levels approve"}))]}))]})):i("span",e({style:{fontSize:14,color:"#6B7280"}},{children:"No owner assigned"})),t("div",e({style:{backgroundColor:f.bg,color:f.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[f.icon,f.text]}))]}))}function E(l){var r,o=l.assigneeStatus,s=l.extendedStatus,c=o.user,g=o.approved||"approved"===c.action,v=o.rejected||"rejected"===c.action,u=h(c.name),f=y(null!==(r=c.id)&&void 0!==r?r:c.name);return t("div",e({style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[i("div",e({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:f.bg,color:f.fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,fontSize:"13px"}},{children:u})),t("div",e({style:{display:"flex",flexDirection:"column",gap:"2px"}},{children:[i("span",e({style:{fontSize:"14px",fontWeight:400,color:"#374151"}},{children:c.name})),i("span",e({style:{fontSize:"13px",color:"#6B7280"}},{children:c.email}))]}))]})),i("div",e({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:g?i(a,{size:20,color:"#16A34A",strokeWidth:1.5}):v?i(d,{size:20,color:"#DC2626",strokeWidth:1.5}):"pending"===s?t(n,{children:[i("span",{style:{fontSize:"13px",color:"#4B5563"}}),i(p,{size:20,color:"#9CA3AF",strokeWidth:1.5})]}):i(p,"optional"===s?{size:20,color:"#CBD5E1",strokeWidth:1.5}:{size:20,color:"#9CA3AF",strokeWidth:1.5})}))]}))}function C(t){var n=t.name,l=y(n);return i("span",e({style:{backgroundColor:l.bg,color:l.fg,borderRadius:12,padding:"3px 10px",fontSize:12,fontWeight:500}},{children:n}))}var z=function(e){switch(e){case 0:return i(f,{size:16,color:"#475569"});case 1:return i(u,{size:16,color:"#475569"});case 2:return i(c,{size:16,color:"#475569"});default:return i(v,{size:16,color:"#475569"})}};function S(n){var r=n.levels,o=r.some(function(e){var t,i;return(null!==(i=null===(t=e.assignees)||void 0===t?void 0:t.length)&&void 0!==i?i:0)>0});return t("div",e({style:x.flowBox},{children:[i("span",e({style:x.flowTitle},{children:"Current Approval Flow"})),o?i("div",e({style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center",marginTop:6}},{children:r.map(function(n,o){var s,d=n.isHidden,a=!n.isMandatory&&!d,p=null===(s=n.assignees)||void 0===s?void 0:s.map(function(e){return e.name}).join(" / ");if(!p)return null;var v=d?i(c,{size:16,color:"#475569"}):z(o);return t(l.Fragment,{children:[t("span",e({style:e(e({},x.flowChip),{display:"flex",alignItems:"center",gap:"6px",border:a?"1px dashed #CBD5E1":void 0})},{children:[v,t("span",e({style:{fontSize:13,color:a?"#64748B":"#374151"}},{children:[p," ",a&&"(Optional)"]}))]})),o<r.length-1&&i(g,{size:16,color:"#9CA3AF"})]},o)})})):i("p",e({style:x.flowEmpty},{children:"No owners assigned yet."}))]}))}export{F as default};
2
2
  //# sourceMappingURL=ReviewStatus.js.map
@@ -1,2 +1,2 @@
1
- const e={wrapper:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minWidth:"140px",height:"32px",padding:"0 12px",border:"1px solid #D1D5DB",borderRadius:"8px",background:"#FFFFFF",cursor:"pointer",overflow:"hidden"},placeholder:{fontSize:"14px",fontWeight:500,color:"#6B7280",userSelect:"none",pointerEvents:"none"},input:{position:"absolute",inset:0,width:"100%",height:"100%",opacity:0,cursor:"pointer"}};export{e as DATE_PICKER_STYLES};
1
+ var e={wrapper:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minWidth:"140px",height:"32px",padding:"0 12px",border:"1px solid #D1D5DB",borderRadius:"8px",background:"#FFFFFF",cursor:"pointer",overflow:"hidden"},placeholder:{fontSize:"14px",fontWeight:500,color:"#6B7280",userSelect:"none",pointerEvents:"none"},input:{position:"absolute",inset:0,width:"100%",height:"100%",opacity:0,cursor:"pointer"}};export{e as DATE_PICKER_STYLES};
2
2
  //# sourceMappingURL=AssignLevelsDatePickerStyles.js.map
@@ -1,2 +1,2 @@
1
- const e={header:{display:"flex",fontSize:"17px",alignItems:"center",gap:10},finalApprovalBox:{display:"flex",padding:"15px",border:"1px solid #F3F4F6",backgroundColor:"#FFFFFF",alignItems:"center"},currentApprovalFlow:{backgroundColor:"#F9FAFB",border:"1px solid #E5E7EB",borderRadius:"10px",padding:"12px",display:"flex",flexDirection:"column",gap:"8px"},addLevelBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"10px",backgroundColor:"#F3F4F6",color:"#374151",border:"1px dashed #D1D5DB",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:500,transition:"all 0.2s ease"},dateInputWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"110px",height:"30px",padding:"0 12px",border:"2px solid #cfd6df",borderRadius:"8px",position:"relative"},dateInput:{position:"absolute",inset:0,opacity:0,cursor:"pointer",zIndex:100},requiredToggle:{position:"relative",width:"110px",height:"28px",border:"none",borderRadius:"999px",background:"#e2e8f0",cursor:"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",padding:0},requiredToggleActive:{background:"#eef2ff"},toggleThumb:{position:"absolute",left:"4px",width:"20px",height:"20px",borderRadius:"50%",background:"#fff",transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"},toggleThumbActive:{transform:"translateX(82px)"},toggleLabel:{width:"100%",textAlign:"center",fontSize:"12px",fontWeight:500,color:"#64748b",transition:"color 0.2s ease"},toggleLabelActive:{color:"#4F46E5"},infoIconWrapper:{position:"relative",display:"inline-flex",alignItems:"center",cursor:"pointer"},tooltip:{position:"absolute",bottom:"125%",left:"50%",transform:"translateX(-30%)",background:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",whiteSpace:"nowrap",fontSize:"12px",opacity:0,visibility:"hidden",transition:"opacity 0.2s ease",zIndex:1e3},tooltipVisible:{opacity:1,visibility:"visible"}};export{e as DEFAULT_ASSIGN_REMINDER_STYLES};
1
+ var e={header:{display:"flex",fontSize:"17px",alignItems:"center",gap:10},finalApprovalBox:{display:"flex",padding:"15px",border:"1px solid #F3F4F6",backgroundColor:"#FFFFFF",alignItems:"center"},currentApprovalFlow:{backgroundColor:"#F9FAFB",border:"1px solid #E5E7EB",borderRadius:"10px",padding:"12px",display:"flex",flexDirection:"column",gap:"8px"},addLevelBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"10px",backgroundColor:"#F3F4F6",color:"#374151",border:"1px dashed #D1D5DB",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:500,transition:"all 0.2s ease"},dateInputWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"110px",height:"30px",padding:"0 12px",border:"2px solid #cfd6df",borderRadius:"8px",position:"relative"},dateInput:{position:"absolute",inset:0,opacity:0,cursor:"pointer",zIndex:100},requiredToggle:{position:"relative",width:"110px",height:"28px",border:"none",borderRadius:"999px",background:"#e2e8f0",cursor:"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",padding:0},requiredToggleActive:{background:"#eef2ff"},toggleThumb:{position:"absolute",left:"4px",width:"20px",height:"20px",borderRadius:"50%",background:"#fff",transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"},toggleThumbActive:{transform:"translateX(82px)"},toggleLabel:{width:"100%",textAlign:"center",fontSize:"12px",fontWeight:500,color:"#64748b",transition:"color 0.2s ease"},toggleLabelActive:{color:"#4F46E5"},infoIconWrapper:{position:"relative",display:"inline-flex",alignItems:"center",cursor:"pointer"},tooltip:{position:"absolute",bottom:"125%",left:"50%",transform:"translateX(-30%)",background:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",whiteSpace:"nowrap",fontSize:"12px",opacity:0,visibility:"hidden",transition:"opacity 0.2s ease",zIndex:1e3},tooltipVisible:{opacity:1,visibility:"visible"}};export{e as DEFAULT_ASSIGN_REMINDER_STYLES};
2
2
  //# sourceMappingURL=AssignReminderStyles.js.map
@@ -1,2 +1,2 @@
1
- const e={overlay:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.35)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{backgroundColor:"#FFFFFF",borderRadius:"16px",width:"100%",maxWidth:"780px",maxHeight:"90vh",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 20px 60px rgba(0,0,0,0.15)"},header:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",padding:"24px 28px 16px"},headerLeft:{display:"flex",flexDirection:"column",gap:6},modalTitle:{fontSize:18,fontWeight:700,color:"#111827"},redlineRow:{display:"flex",alignItems:"center",gap:8},redlineName:{fontSize:13,color:"#6B7280"},redlineBadge:{fontSize:12,fontWeight:600,padding:"2px 10px",borderRadius:999},closeBtn:{background:"none",border:"none",cursor:"pointer",padding:4,display:"flex",alignItems:"center",borderRadius:6},tabBar:{display:"flex",gap:0,borderBottom:"1px solid #E5E7EB",padding:"0 28px"},tab:{display:"flex",alignItems:"center",gap:7,padding:"10px 16px",fontSize:14,fontWeight:500,color:"#6B7280",background:"none",border:"none",borderBottom:"2px solid transparent",marginBottom:"-1px",cursor:"pointer",transition:"color 0.15s, border-bottom-color 0.15s"},tabActive:{color:"#6366F1",borderBottom:"2px solid #6366F1"},body:{flex:1,overflowY:"auto",padding:"18px 28px",display:"flex",flexDirection:"column",gap:0},dueDateBar:{display:"flex",alignItems:"center",gap:16,padding:"14px 20px",backgroundColor:"#EEF2FF",borderRadius:10,flexWrap:"wrap"},dueDateLabel:{fontSize:14,fontWeight:500,color:"#1F2937",whiteSpace:"nowrap"},dueDateInputWrap:{display:"flex",alignItems:"center",gap:8,borderRadius:8,padding:"6px 12px",flex:"0 0 auto"},dueDateInput:{border:"none",outline:"none",fontSize:14,color:"#374151",background:"transparent",cursor:"pointer"},requiredToProceeed:{display:"flex",alignItems:"center",gap:5,fontSize:13,color:"#6B7280",marginLeft:"auto"},reminderPlaceholder:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"60px 0"},footer:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:12,padding:"16px 28px",borderTop:"1px solid #F3F4F6"},clearBtn:{padding:"9px 20px",fontSize:14,fontWeight:500,color:"#374151",background:"none",border:"none",borderRadius:8,cursor:"pointer"},saveBtn:{padding:"9px 24px",fontSize:14,fontWeight:600,color:"#FFFFFF",backgroundColor:"#6366F1",border:"none",borderRadius:8,cursor:"pointer"}};export{e as DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES};
1
+ var e={overlay:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.35)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{backgroundColor:"#FFFFFF",borderRadius:"16px",width:"100%",maxWidth:"780px",maxHeight:"90vh",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 20px 60px rgba(0,0,0,0.15)"},header:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",padding:"24px 28px 16px"},headerLeft:{display:"flex",flexDirection:"column",gap:6},modalTitle:{fontSize:18,fontWeight:700,color:"#111827"},redlineRow:{display:"flex",alignItems:"center",gap:8},redlineName:{fontSize:13,color:"#6B7280"},redlineBadge:{fontSize:12,fontWeight:600,padding:"2px 10px",borderRadius:999},closeBtn:{background:"none",border:"none",cursor:"pointer",padding:4,display:"flex",alignItems:"center",borderRadius:6},tabBar:{display:"flex",gap:0,borderBottom:"1px solid #E5E7EB",padding:"0 28px"},tab:{display:"flex",alignItems:"center",gap:7,padding:"10px 16px",fontSize:14,fontWeight:500,color:"#6B7280",background:"none",border:"none",borderBottom:"2px solid transparent",marginBottom:"-1px",cursor:"pointer",transition:"color 0.15s, border-bottom-color 0.15s"},tabActive:{color:"#6366F1",borderBottom:"2px solid #6366F1"},body:{flex:1,overflowY:"auto",padding:"18px 28px",display:"flex",flexDirection:"column",gap:0},dueDateBar:{display:"flex",alignItems:"center",gap:16,padding:"14px 20px",backgroundColor:"#EEF2FF",borderRadius:10,flexWrap:"wrap"},dueDateLabel:{fontSize:14,fontWeight:500,color:"#1F2937",whiteSpace:"nowrap"},dueDateInputWrap:{display:"flex",alignItems:"center",gap:8,borderRadius:8,padding:"6px 12px",flex:"0 0 auto"},dueDateInput:{border:"none",outline:"none",fontSize:14,color:"#374151",background:"transparent",cursor:"pointer"},requiredToProceeed:{display:"flex",alignItems:"center",gap:5,fontSize:13,color:"#6B7280",marginLeft:"auto"},reminderPlaceholder:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"60px 0"},footer:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:12,padding:"16px 28px",borderTop:"1px solid #F3F4F6"},clearBtn:{padding:"9px 20px",fontSize:14,fontWeight:500,color:"#374151",background:"none",border:"none",borderRadius:8,cursor:"pointer"},saveBtn:{padding:"9px 24px",fontSize:14,fontWeight:600,color:"#FFFFFF",backgroundColor:"#6366F1",border:"none",borderRadius:8,cursor:"pointer"}};export{e as DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES};
2
2
  //# sourceMappingURL=AssignReminderWrapperStyles.js.map
@@ -1,2 +1,2 @@
1
- const e={mrContainer:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"1rem",marginTop:"1rem"},mrSectionBox:{display:"flex",width:"stretch",flexDirection:"column",gap:"0.75rem",borderRadius:"10px",cursor:"pointer",border:"1px solid #b6c1ca",padding:"0.75rem"},mrSectionHeader:{display:"flex",flexDirection:"column",gap:"0.25rem"},mrSectionHeaderContent:{display:"flex",flexDirection:"row",gap:"0.5rem",justifyContent:"space-between",width:"100%"},mrSectionHeaderLeft:{display:"flex",flexDirection:"column",gap:"0.25rem"},mrSectionHeaderRight:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"0.25rem"},mrSectionTitleWrapper:{display:"flex",alignItems:"center",gap:"0.5rem"},mrSectionTitleIcon:{display:"flex",height:"0.75rem",width:"0.75rem",alignItems:"center",justifyContent:"center"},mrSectionTitle:{fontSize:"0.875rem",fontWeight:600,color:"#334155"},mrSectionDescription:{fontSize:"0.75rem",color:"#334155",fontWeight:400},mrIconSmall:{height:"0.75rem",width:"0.75rem",color:"#334155"},mrIconInfo:{height:"1rem",width:"1rem",color:"#64748b"},mrIconArrow:{height:"0.75rem",width:"0.75rem",stroke:"#334155"},mrIconAction:{height:"1rem",width:"1rem"},mrIconPreview:{height:"1rem",width:"1rem",stroke:"#64748b"},mrIconCalendar:{width:"1.25rem",height:"1.25rem",color:"#1e293b"},mrIconChevronToggle:{height:"1rem",width:"1rem",color:"#4f46e5",position:"fixed"},mrIconDropdown:{width:"0.75rem",height:"0.75rem"},mrIconSuccess:{height:"1.5rem",width:"1.5rem",color:"#16a34a"},mrChevronButton:{display:"flex",alignItems:"center",justifyContent:"center"},mrChevronIcon:{height:"1.25rem",width:"1.25rem",transition:"transform 0.2s ease","&.mrChevronRotated":{transform:"rotate(180deg)"}},mrSuccessMessage:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"0.75rem",width:"100%"},mrSuccessIcon:{display:"flex",height:"3rem",width:"3rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",backgroundColor:"#dcfce7",boxShadow:"0 0 0 4px #ffffff"},mrSuccessIconInner:{position:"relative",height:"1.5rem",width:"1.5rem"},mrSuccessText:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.25rem",textAlign:"center"},mrSuccessTitle:{fontSize:"1rem",fontWeight:500,lineHeight:1.5,color:"#166534"},mrSuccessDescription:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.25,color:"#22c55e"},mrHiddenSection:{overflow:"hidden"},mrRecipientsSection:{display:"flex",flexDirection:"column",gap:"0.5rem"},mrRecipientsLabel:{fontSize:"0.75rem",fontWeight:500,color:"#3f3f46"},mrRecipientsGrid:{display:"flex",flexWrap:"wrap",gap:"0.75rem",marginBottom:"0.75rem"},mrRecipientItem:{display:"flex",alignItems:"center",gap:"0.5rem",borderRadius:"0.375rem",border:"1px solid #cbd5e1",backgroundColor:"#ffffff",padding:"0.25rem 0.5rem"},mrRecipientInfo:{display:"flex",alignItems:"center",gap:"0.5rem"},mrRecipientAvatar:{display:"flex",height:"1.5rem",width:"1.5rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",fontSize:"0.6875rem",fontWeight:500},mrRecipientName:{fontSize:"0.875rem",color:"#3f3f46"},mrCheckboxUnchecked:{height:"1rem",width:"1rem",borderRadius:"0.25rem",border:"1px solid #d0d5dd",backgroundColor:"#ffffff"},mrCheckboxChecked:{display:"flex",height:"1rem",width:"1rem",alignItems:"center",justifyContent:"center",borderRadius:"0.25rem",border:"1px solid #6938ef",backgroundColor:"#ffffff"},mrCheckboxIcon:{height:"0.625rem",width:"0.625rem"},mrActionsSection:{display:"flex",gap:"0.75rem"},mrActionButton:{display:"flex",height:"2.25rem",flex:1,alignItems:"center",justifyContent:"center",gap:"0.5rem",borderRadius:"0.375rem",fontSize:"0.875rem",fontWeight:500,border:"none",cursor:"pointer","&:focus":{outline:"2px solid #4f46e5",outlineOffset:"2px"},"&:active":{opacity:.9}},mrActionButtonSecondary:{border:"1px solid #a5b4fc",backgroundColor:"#ffffff",color:"#4f46e5","&:hover":{backgroundColor:"#f3f4f6"}},mrActionButtonPrimary:{backgroundColor:"#4f46e5",color:"#ffffff","&:hover":{backgroundColor:"#4338ca"}},mrMainContent:{display:"flex",width:"100%",flexDirection:"row",gap:"1.75rem"},mrEscalationContainer:{padding:"0.75rem",backgroundColor:"rgba(255, 255, 255, 0.7)",borderRadius:"10px",flex:1,minWidth:0,outline:"1px solid #b6c1ca",outlineOffset:"-1px",display:"flex",flexDirection:"column",gap:"0.75rem"},mrEscalationHeaderWrapper:{display:"flex",justifyContent:"space-between",flexDirection:"column",gap:"0.25rem",cursor:"pointer"},mrEscalationHeader:{display:"flex",gap:"0.5rem",alignItems:"center",justifyContent:"space-between"},mrEscalationTitleWrapper:{display:"flex",alignItems:"center",gap:"0.5rem"},mrEscalationTitleText:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.25,color:"#3f3f46"},mrTooltipIcon:{position:"relative",width:"1rem",height:"1rem",overflow:"hidden"},mrEscalationActions:{display:"flex",alignItems:"center",gap:"0.5rem"},mrEscalationPreviewButton:{height:"1.75rem",padding:"0.375rem 0.875rem",backgroundColor:"#ffffff",borderRadius:"1.29rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",outline:"0.54px solid #d1d5db",outlineOffset:"-0.54px",display:"flex",alignItems:"center",gap:"0.375rem",border:"none",cursor:"pointer","&:focus":{outline:"2px solid #4f46e5",outlineOffset:"2px"},"&:active":{opacity:.9}},mrEscalationPreviewIcon:{position:"relative",width:"1rem",height:"1rem",overflow:"hidden"},mrEscalationPreviewText:{fontSize:"0.75rem",fontWeight:400,lineHeight:"1rem",color:"#6b7280"},mrEscalationDescription:{fontSize:"0.75rem",color:"#334155",fontWeight:400},mrReorderGroup:{display:"flex",flexDirection:"column",gap:"1.5rem"},mrReminderItem:{display:"flex",justifyContent:"space-between",width:"100%",gap:"1rem"},mrReminderLabelBox:{width:"90px",flexShrink:0,justifyContent:"center",display:"flex"},mrReminderLabelInner:{display:"flex",alignItems:"center"},mrReminderContent:{display:"flex",alignItems:"center",gap:"1rem",width:"100%"},mrDragHandle:{display:"flex",cursor:"grab",alignItems:"center",gap:"0.75rem"},mrReminderBox:{borderRadius:"0.75rem",padding:"0.5rem",width:"100%"},mrReminderFields:{display:"flex",flexDirection:"column",gap:"1rem",width:"100%",flexWrap:"wrap"},mrReminderHeader:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"1rem",width:"100%"},mrReminderAssignee:{display:"flex",alignItems:"center",gap:"0.75rem"},mrReminderAvatar:{display:"flex",height:"1.75rem",width:"1.75rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",backgroundColor:"#dbeafe"},mrReminderInitials:{fontSize:"0.625rem",fontWeight:500,color:"#1e40af"},mrReminderName:{fontSize:"0.75rem",fontWeight:500,color:"#1f2937"},mrReminderStatement:{borderRadius:"9999px",padding:"0.5rem 0.75rem",display:"flex"},mrReminderStatementText:{fontSize:"0.625rem",fontWeight:500,letterSpacing:"-0.01em"},mrReminderDateFields:{display:"flex",alignItems:"flex-start",gap:"1.5rem",width:"100%"},mrReminderField:{width:"100%"},mrReminderFieldLabel:{marginBottom:"0.25rem",fontSize:"0.75rem",fontWeight:500,color:"#3f3f46"},mrReminderDatePicker:{display:"flex",height:"1.75rem",alignItems:"center",justifyContent:"space-between",fontSize:"0.75rem",color:"#3f3f46",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",gap:"0.75rem"},mrReminderDueDate:{display:"flex",height:"1.75rem",alignItems:"center",borderRadius:"0px",border:"0.5px solid #cbd5e1",backgroundColor:"#f1f5f9",padding:"0 0.75rem",fontSize:"0.75rem",color:"#64748b"},mrReminderFrequency:{display:"flex",alignItems:"center",gap:"0.5rem"},mrReminderFrequencyText:{fontSize:"0.75rem",color:"#374151"},mrEscalationCheckbox:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.5rem",fontSize:"0.75rem",fontWeight:500,color:"#3f3f46",padding:"0.5rem",border:"1px solid #e5e7eb",borderRadius:"0.25rem",width:"100%"},mrEscalationCheckboxHeader:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",gap:"0.5rem",width:"100%"},mrEscalationContent:{display:"flex",flexDirection:"column",gap:"0.5rem",width:"100%",overflow:"hidden"},mrEscalationCondition:{color:"#3f3f46",fontSize:"0.75rem",fontWeight:500,fontFamily:"'Inter', sans-serif",lineHeight:1,width:"100%",marginTop:"0.75rem"},mrEscalationFields:{display:"flex",alignItems:"flex-end",width:"100%",flexWrap:"wrap",gap:"0.625rem"},mrEscalationFieldGroup:{display:"flex",gap:"0.75rem",flex:1,minWidth:"130px"},mrEscalationFieldGroupLarge:{flex:1,minWidth:"265px"},mrEscalationFieldGroupSmall:{display:"flex",flex:1,minWidth:"88px"},mrEscalationFieldText:{color:"#3f3f46",fontSize:"0.75rem",fontWeight:500,fontFamily:"'Inter', sans-serif",lineHeight:1.5,minWidth:"152px"},mrDropdownButton:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},mrCalendarPanel:{position:"relative",flexShrink:0},mrCalendarCollapsed:{width:"43px",height:"100%",borderRadius:"10px",border:"1px solid #b6c1ca",backgroundColor:"#ffffff",display:"flex",justifyContent:"center",paddingTop:"281px"},mrCalendarToggle:{position:"absolute",left:"-26px",top:"50%",transform:"translateY(-50%)",height:"3rem",width:"2.25rem",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,background:"none",border:"none",cursor:"pointer","&:focus":{outline:"2px solid #4f46e5",outlineOffset:"2px"},"&:active":{opacity:.9}},mrNoPointerEvents:{pointerEvents:"none"},mrPointerEventsAuto:{pointerEvents:"auto"},calendarContainer:{borderRadius:"8px",border:"1px solid #B6C1CA",backgroundColor:"#ffffff",padding:"16px",minWidth:"345px",height:"100%"},calendarHeader:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"24px"},calendarHeaderTitle:{color:"#334155",fontSize:"14px",fontWeight:600,lineHeight:"20px",display:"flex",gap:"6px",alignItems:"center"},calendarHeaderInfo:{width:"16px",height:"16px"},monthNav:{marginBottom:"24px",display:"flex",alignItems:"center",justifyContent:"space-between"},monthNavBtn:{borderRadius:"8px",border:"1px solid #DCE0E5",padding:"8px",background:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center","&:focus":{outline:"2px solid #4f46e5",outlineOffset:"2px"},"&:active":{opacity:.9}},monthNavTitle:{color:"#14181F",fontSize:"15px",fontWeight:600,margin:0},weekdayHeader:{marginBottom:"8px",display:"grid",gridTemplateColumns:"repeat(7, 1fr)"},weekdayLabel:{textAlign:"center",fontSize:"15px",color:"#6F7C8E",fontWeight:400},dayGrid:{marginTop:"16px",display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"8px 11px"},dayCell:{display:"flex",cursor:"pointer",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:"8px",height:"35px"},dayCellPast:{backgroundColor:"#DAF7D2"},dayCellToday:{border:"2px solid #4f46e5"},dayNumber:{fontSize:"14px"},dayNumberCurrent:{color:"#0f172a"},dayNumberOutside:{color:"#94a3b8"},indicatorWrapper:{display:"flex",alignItems:"center"},indicatorDot:{height:"6px",width:"6px",borderRadius:"50%"},indicatorDotOverlap:{marginLeft:"-1px"},tooltipContent:{minWidth:"120px",borderRadius:"8px",backgroundColor:"#F8FAFC",padding:"8px"},tooltipHeader:{borderBottom:"1px solid #cbd5e1",paddingBottom:"4px",marginBottom:"4px"},tooltipTitle:{fontSize:"10px",fontWeight:500,color:"#0f172a",lineHeight:"16px"},tooltipDate:{fontSize:"8px",fontWeight:400,color:"#334155",lineHeight:"16px"},tooltipAssignees:{display:"flex",flexDirection:"column",gap:"2px"},tooltipAssigneeRow:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"},tooltipAssigneeInfo:{display:"flex",alignItems:"center",gap:"4px"},tooltipAssigneeDot:{height:"8px",width:"8px",borderRadius:"50%"},tooltipAssigneeName:{fontSize:"9px",fontWeight:400,color:"#0f172a",lineHeight:"16px"},tooltipAssigneeCount:{fontSize:"9px",fontWeight:500,color:"#0f172a",lineHeight:"16px"},legendWrapper:{display:"flex",flexWrap:"wrap",alignItems:"flex-start",gap:"6px",marginTop:"38px",justifyContent:"center"},legendInner:{display:"flex",alignItems:"flex-start",gap:"6px"},legendItem:{display:"flex",alignItems:"center",gap:"4px",width:"100%",cursor:"pointer",borderRadius:"4px",padding:"4px 8px"},legendItemAssignee1:{backgroundColor:"#fdf2f8",border:"1px solid #be185d"},legendItemAssignee2:{backgroundColor:"#eef2ff",border:"1px solid #4338ca"},legendItemAssignee3:{justifyContent:"center",backgroundColor:"#fff7ed",border:"1px solid #f87171"},legendLabel:{fontSize:"12px",fontWeight:500},legendLabelAssignee1:{color:"#be185d"},legendLabelAssignee2:{color:"#4338ca"},legendLabelAssignee3:{color:"#f87171"},checkboxIconUnchecked:{height:"16px",width:"16px",borderRadius:"4px",border:"1px solid #D0D5DD",backgroundColor:"#ffffff"},checkboxIconChecked:{display:"flex",height:"16px",width:"16px",alignItems:"center",justifyContent:"center",borderRadius:"4px",backgroundColor:"#ffffff"},checkboxIconCheckedAssignee1:{border:"1px solid #C11574"},checkboxIconCheckedAssignee2:{border:"1px solid #3538CD"},checkboxIconCheckedAssignee3:{border:"1px solid #FF6058"},checkboxCheckSvg:{height:"10px",width:"10px"},bottomLegend:{display:"inline-flex",alignItems:"center",gap:"24px",marginTop:"16px",marginLeft:"4px"},bottomLegendItem:{display:"flex",alignItems:"center",gap:"4px"},bottomLegendSwatch:{width:"12px",height:"12px",borderRadius:"2px"},bottomLegendSwatchPast:{backgroundColor:"#DAF7D2"},bottomLegendSwatchFailed:{backgroundColor:"#fecaca"},bottomLegendLabel:{fontSize:"12px",fontWeight:500,color:"#334155"},"@media (max-width: 1024px)":{mrMainContent:{flexDirection:"column",gap:"1rem"},mrCalendarPanel:{width:"100%"},mrCalendarToggle:{display:"none"}},"@media (max-width: 768px)":{mrContainer:{gap:"0.5rem",marginTop:"0.5rem"},mrSectionBox:{gap:"0.5rem",padding:"0.5rem"},mrSectionHeaderContent:{flexDirection:"column"},mrActionsSection:{flexDirection:"column"},mrActionButton:{height:"2rem"},mrReminderDateFields:{flexDirection:"column",gap:"1rem"},mrReminderContent:{gap:"0.5rem"},mrReminderItem:{gap:"0.5rem"},mrEscalationFields:{flexDirection:"column"},mrEscalationFieldGroup:{width:"100%",minWidth:"100%"},mrEscalationFieldGroupLarge:{width:"100%",minWidth:"100%"},mrEscalationFieldGroupSmall:{width:"100%",minWidth:"100%"},mrEscalationFieldText:{minWidth:"auto"},mrReminderLabelBox:{width:"100%"}}};export{e as styles};
1
+ var e={mrContainer:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"1rem",marginTop:"1rem"},mrSectionBox:{display:"flex",width:"stretch",flexDirection:"column",gap:"0.75rem",borderRadius:"10px",cursor:"pointer",border:"1px solid #b6c1ca",padding:"0.75rem"},mrSectionHeader:{display:"flex",flexDirection:"column",gap:"0.25rem"},mrSectionHeaderContent:{display:"flex",flexDirection:"row",gap:"0.5rem",justifyContent:"space-between",width:"100%"},mrSectionHeaderLeft:{display:"flex",flexDirection:"column",gap:"0.25rem"},mrSectionHeaderRight:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"0.25rem"},mrSectionTitleWrapper:{display:"flex",alignItems:"center",gap:"0.5rem"},mrSectionTitleIcon:{display:"flex",height:"0.75rem",width:"0.75rem",alignItems:"center",justifyContent:"center"},mrSectionTitle:{fontSize:"0.875rem",fontWeight:600,color:"#334155"},mrSectionDescription:{fontSize:"0.75rem",color:"#334155",fontWeight:400},mrIconSmall:{height:"0.75rem",width:"0.75rem",color:"#334155"},mrIconInfo:{height:"1rem",width:"1rem",color:"#64748b"},mrIconArrow:{height:"0.75rem",width:"0.75rem",stroke:"#334155"},mrIconAction:{height:"1rem",width:"1rem"},mrIconPreview:{height:"1rem",width:"1rem",stroke:"#64748b"},mrIconCalendar:{width:"1.25rem",height:"1.25rem",color:"#1e293b"},mrIconChevronToggle:{height:"1rem",width:"1rem",color:"#4f46e5",position:"fixed"},mrIconDropdown:{width:"0.75rem",height:"0.75rem"},mrIconSuccess:{height:"1.5rem",width:"1.5rem",color:"#16a34a"},mrChevronButton:{display:"flex",alignItems:"center",justifyContent:"center"},mrChevronIcon:{height:"1.25rem",width:"1.25rem",transition:"transform 0.2s ease","&.mrChevronRotated":{transform:"rotate(180deg)"}},mrSuccessMessage:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"0.75rem",width:"100%"},mrSuccessIcon:{display:"flex",height:"3rem",width:"3rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",backgroundColor:"#dcfce7",boxShadow:"0 0 0 4px #ffffff"},mrSuccessIconInner:{position:"relative",height:"1.5rem",width:"1.5rem"},mrSuccessText:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.25rem",textAlign:"center"},mrSuccessTitle:{fontSize:"1rem",fontWeight:500,lineHeight:1.5,color:"#166534"},mrSuccessDescription:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.25,color:"#22c55e"},mrHiddenSection:{overflow:"hidden"},mrRecipientsSection:{display:"flex",flexDirection:"column",gap:"0.5rem"},mrRecipientsLabel:{fontSize:"0.75rem",fontWeight:500,color:"#3f3f46"},mrRecipientsGrid:{display:"flex",flexWrap:"wrap",gap:"0.75rem",marginBottom:"0.75rem"},mrRecipientItem:{display:"flex",alignItems:"center",gap:"0.5rem",borderRadius:"0.375rem",border:"1px solid #cbd5e1",backgroundColor:"#ffffff",padding:"0.25rem 0.5rem"},mrRecipientInfo:{display:"flex",alignItems:"center",gap:"0.5rem"},mrRecipientAvatar:{display:"flex",height:"1.5rem",width:"1.5rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",fontSize:"0.6875rem",fontWeight:500},mrRecipientName:{fontSize:"0.875rem",color:"#3f3f46"},mrCheckboxUnchecked:{height:"1rem",width:"1rem",borderRadius:"0.25rem",border:"1px solid #d0d5dd",backgroundColor:"#ffffff"},mrCheckboxChecked:{display:"flex",height:"1rem",width:"1rem",alignItems:"center",justifyContent:"center",borderRadius:"0.25rem",border:"1px solid #6938ef",backgroundColor:"#ffffff"},mrCheckboxIcon:{height:"0.625rem",width:"0.625rem"},mrActionsSection:{display:"flex",gap:"0.75rem"},mrActionButton:{display:"flex",height:"2.25rem",flex:1,alignItems:"center",justifyContent:"center",gap:"0.5rem",borderRadius:"0.375rem",fontSize:"0.875rem",fontWeight:500,border:"none",cursor:"pointer","&:focus":{outline:"2px solid #4f46e5",outlineOffset:"2px"},"&:active":{opacity:.9}},mrActionButtonSecondary:{border:"1px solid #a5b4fc",backgroundColor:"#ffffff",color:"#4f46e5","&:hover":{backgroundColor:"#f3f4f6"}},mrActionButtonPrimary:{backgroundColor:"#4f46e5",color:"#ffffff","&:hover":{backgroundColor:"#4338ca"}},mrMainContent:{display:"flex",width:"100%",flexDirection:"row",gap:"1.75rem"},mrEscalationContainer:{padding:"0.75rem",backgroundColor:"rgba(255, 255, 255, 0.7)",borderRadius:"10px",flex:1,minWidth:0,outline:"1px solid #b6c1ca",outlineOffset:"-1px",display:"flex",flexDirection:"column",gap:"0.75rem"},mrEscalationHeaderWrapper:{display:"flex",justifyContent:"space-between",flexDirection:"column",gap:"0.25rem",cursor:"pointer"},mrEscalationHeader:{display:"flex",gap:"0.5rem",alignItems:"center",justifyContent:"space-between"},mrEscalationTitleWrapper:{display:"flex",alignItems:"center",gap:"0.5rem"},mrEscalationTitleText:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.25,color:"#3f3f46"},mrTooltipIcon:{position:"relative",width:"1rem",height:"1rem",overflow:"hidden"},mrEscalationActions:{display:"flex",alignItems:"center",gap:"0.5rem"},mrEscalationPreviewButton:{height:"1.75rem",padding:"0.375rem 0.875rem",backgroundColor:"#ffffff",borderRadius:"1.29rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",outline:"0.54px solid #d1d5db",outlineOffset:"-0.54px",display:"flex",alignItems:"center",gap:"0.375rem",border:"none",cursor:"pointer","&:focus":{outline:"2px solid #4f46e5",outlineOffset:"2px"},"&:active":{opacity:.9}},mrEscalationPreviewIcon:{position:"relative",width:"1rem",height:"1rem",overflow:"hidden"},mrEscalationPreviewText:{fontSize:"0.75rem",fontWeight:400,lineHeight:"1rem",color:"#6b7280"},mrEscalationDescription:{fontSize:"0.75rem",color:"#334155",fontWeight:400},mrReorderGroup:{display:"flex",flexDirection:"column",gap:"1.5rem"},mrReminderItem:{display:"flex",justifyContent:"space-between",width:"100%",gap:"1rem"},mrReminderLabelBox:{width:"90px",flexShrink:0,justifyContent:"center",display:"flex"},mrReminderLabelInner:{display:"flex",alignItems:"center"},mrReminderContent:{display:"flex",alignItems:"center",gap:"1rem",width:"100%"},mrDragHandle:{display:"flex",cursor:"grab",alignItems:"center",gap:"0.75rem"},mrReminderBox:{borderRadius:"0.75rem",padding:"0.5rem",width:"100%"},mrReminderFields:{display:"flex",flexDirection:"column",gap:"1rem",width:"100%",flexWrap:"wrap"},mrReminderHeader:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"1rem",width:"100%"},mrReminderAssignee:{display:"flex",alignItems:"center",gap:"0.75rem"},mrReminderAvatar:{display:"flex",height:"1.75rem",width:"1.75rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",backgroundColor:"#dbeafe"},mrReminderInitials:{fontSize:"0.625rem",fontWeight:500,color:"#1e40af"},mrReminderName:{fontSize:"0.75rem",fontWeight:500,color:"#1f2937"},mrReminderStatement:{borderRadius:"9999px",padding:"0.5rem 0.75rem",display:"flex"},mrReminderStatementText:{fontSize:"0.625rem",fontWeight:500,letterSpacing:"-0.01em"},mrReminderDateFields:{display:"flex",alignItems:"flex-start",gap:"1.5rem",width:"100%"},mrReminderField:{width:"100%"},mrReminderFieldLabel:{marginBottom:"0.25rem",fontSize:"0.75rem",fontWeight:500,color:"#3f3f46"},mrReminderDatePicker:{display:"flex",height:"1.75rem",alignItems:"center",justifyContent:"space-between",fontSize:"0.75rem",color:"#3f3f46",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",gap:"0.75rem"},mrReminderDueDate:{display:"flex",height:"1.75rem",alignItems:"center",borderRadius:"0px",border:"0.5px solid #cbd5e1",backgroundColor:"#f1f5f9",padding:"0 0.75rem",fontSize:"0.75rem",color:"#64748b"},mrReminderFrequency:{display:"flex",alignItems:"center",gap:"0.5rem"},mrReminderFrequencyText:{fontSize:"0.75rem",color:"#374151"},mrEscalationCheckbox:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.5rem",fontSize:"0.75rem",fontWeight:500,color:"#3f3f46",padding:"0.5rem",border:"1px solid #e5e7eb",borderRadius:"0.25rem",width:"100%"},mrEscalationCheckboxHeader:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",gap:"0.5rem",width:"100%"},mrEscalationContent:{display:"flex",flexDirection:"column",gap:"0.5rem",width:"100%",overflow:"hidden"},mrEscalationCondition:{color:"#3f3f46",fontSize:"0.75rem",fontWeight:500,fontFamily:"'Inter', sans-serif",lineHeight:1,width:"100%",marginTop:"0.75rem"},mrEscalationFields:{display:"flex",alignItems:"flex-end",width:"100%",flexWrap:"wrap",gap:"0.625rem"},mrEscalationFieldGroup:{display:"flex",gap:"0.75rem",flex:1,minWidth:"130px"},mrEscalationFieldGroupLarge:{flex:1,minWidth:"265px"},mrEscalationFieldGroupSmall:{display:"flex",flex:1,minWidth:"88px"},mrEscalationFieldText:{color:"#3f3f46",fontSize:"0.75rem",fontWeight:500,fontFamily:"'Inter', sans-serif",lineHeight:1.5,minWidth:"152px"},mrDropdownButton:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},mrCalendarPanel:{position:"relative",flexShrink:0},mrCalendarCollapsed:{width:"43px",height:"100%",borderRadius:"10px",border:"1px solid #b6c1ca",backgroundColor:"#ffffff",display:"flex",justifyContent:"center",paddingTop:"281px"},mrCalendarToggle:{position:"absolute",left:"-26px",top:"50%",transform:"translateY(-50%)",height:"3rem",width:"2.25rem",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,background:"none",border:"none",cursor:"pointer","&:focus":{outline:"2px solid #4f46e5",outlineOffset:"2px"},"&:active":{opacity:.9}},mrNoPointerEvents:{pointerEvents:"none"},mrPointerEventsAuto:{pointerEvents:"auto"},calendarContainer:{borderRadius:"8px",border:"1px solid #B6C1CA",backgroundColor:"#ffffff",padding:"16px",minWidth:"345px",height:"100%"},calendarHeader:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"24px"},calendarHeaderTitle:{color:"#334155",fontSize:"14px",fontWeight:600,lineHeight:"20px",display:"flex",gap:"6px",alignItems:"center"},calendarHeaderInfo:{width:"16px",height:"16px"},monthNav:{marginBottom:"24px",display:"flex",alignItems:"center",justifyContent:"space-between"},monthNavBtn:{borderRadius:"8px",border:"1px solid #DCE0E5",padding:"8px",background:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center","&:focus":{outline:"2px solid #4f46e5",outlineOffset:"2px"},"&:active":{opacity:.9}},monthNavTitle:{color:"#14181F",fontSize:"15px",fontWeight:600,margin:0},weekdayHeader:{marginBottom:"8px",display:"grid",gridTemplateColumns:"repeat(7, 1fr)"},weekdayLabel:{textAlign:"center",fontSize:"15px",color:"#6F7C8E",fontWeight:400},dayGrid:{marginTop:"16px",display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"8px 11px"},dayCell:{display:"flex",cursor:"pointer",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:"8px",height:"35px"},dayCellPast:{backgroundColor:"#DAF7D2"},dayCellToday:{border:"2px solid #4f46e5"},dayNumber:{fontSize:"14px"},dayNumberCurrent:{color:"#0f172a"},dayNumberOutside:{color:"#94a3b8"},indicatorWrapper:{display:"flex",alignItems:"center"},indicatorDot:{height:"6px",width:"6px",borderRadius:"50%"},indicatorDotOverlap:{marginLeft:"-1px"},tooltipContent:{minWidth:"120px",borderRadius:"8px",backgroundColor:"#F8FAFC",padding:"8px"},tooltipHeader:{borderBottom:"1px solid #cbd5e1",paddingBottom:"4px",marginBottom:"4px"},tooltipTitle:{fontSize:"10px",fontWeight:500,color:"#0f172a",lineHeight:"16px"},tooltipDate:{fontSize:"8px",fontWeight:400,color:"#334155",lineHeight:"16px"},tooltipAssignees:{display:"flex",flexDirection:"column",gap:"2px"},tooltipAssigneeRow:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"},tooltipAssigneeInfo:{display:"flex",alignItems:"center",gap:"4px"},tooltipAssigneeDot:{height:"8px",width:"8px",borderRadius:"50%"},tooltipAssigneeName:{fontSize:"9px",fontWeight:400,color:"#0f172a",lineHeight:"16px"},tooltipAssigneeCount:{fontSize:"9px",fontWeight:500,color:"#0f172a",lineHeight:"16px"},legendWrapper:{display:"flex",flexWrap:"wrap",alignItems:"flex-start",gap:"6px",marginTop:"38px",justifyContent:"center"},legendInner:{display:"flex",alignItems:"flex-start",gap:"6px"},legendItem:{display:"flex",alignItems:"center",gap:"4px",width:"100%",cursor:"pointer",borderRadius:"4px",padding:"4px 8px"},legendItemAssignee1:{backgroundColor:"#fdf2f8",border:"1px solid #be185d"},legendItemAssignee2:{backgroundColor:"#eef2ff",border:"1px solid #4338ca"},legendItemAssignee3:{justifyContent:"center",backgroundColor:"#fff7ed",border:"1px solid #f87171"},legendLabel:{fontSize:"12px",fontWeight:500},legendLabelAssignee1:{color:"#be185d"},legendLabelAssignee2:{color:"#4338ca"},legendLabelAssignee3:{color:"#f87171"},checkboxIconUnchecked:{height:"16px",width:"16px",borderRadius:"4px",border:"1px solid #D0D5DD",backgroundColor:"#ffffff"},checkboxIconChecked:{display:"flex",height:"16px",width:"16px",alignItems:"center",justifyContent:"center",borderRadius:"4px",backgroundColor:"#ffffff"},checkboxIconCheckedAssignee1:{border:"1px solid #C11574"},checkboxIconCheckedAssignee2:{border:"1px solid #3538CD"},checkboxIconCheckedAssignee3:{border:"1px solid #FF6058"},checkboxCheckSvg:{height:"10px",width:"10px"},bottomLegend:{display:"inline-flex",alignItems:"center",gap:"24px",marginTop:"16px",marginLeft:"4px"},bottomLegendItem:{display:"flex",alignItems:"center",gap:"4px"},bottomLegendSwatch:{width:"12px",height:"12px",borderRadius:"2px"},bottomLegendSwatchPast:{backgroundColor:"#DAF7D2"},bottomLegendSwatchFailed:{backgroundColor:"#fecaca"},bottomLegendLabel:{fontSize:"12px",fontWeight:500,color:"#334155"},"@media (max-width: 1024px)":{mrMainContent:{flexDirection:"column",gap:"1rem"},mrCalendarPanel:{width:"100%"},mrCalendarToggle:{display:"none"}},"@media (max-width: 768px)":{mrContainer:{gap:"0.5rem",marginTop:"0.5rem"},mrSectionBox:{gap:"0.5rem",padding:"0.5rem"},mrSectionHeaderContent:{flexDirection:"column"},mrActionsSection:{flexDirection:"column"},mrActionButton:{height:"2rem"},mrReminderDateFields:{flexDirection:"column",gap:"1rem"},mrReminderContent:{gap:"0.5rem"},mrReminderItem:{gap:"0.5rem"},mrEscalationFields:{flexDirection:"column"},mrEscalationFieldGroup:{width:"100%",minWidth:"100%"},mrEscalationFieldGroupLarge:{width:"100%",minWidth:"100%"},mrEscalationFieldGroupSmall:{width:"100%",minWidth:"100%"},mrEscalationFieldText:{minWidth:"auto"},mrReminderLabelBox:{width:"100%"}}};export{e as styles};
2
2
  //# sourceMappingURL=ManageReminder.style.js.map
@@ -1,2 +1,2 @@
1
- const e={progressHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10},progressTitle:{fontSize:15,fontWeight:700,color:"#111827"},progressCount:{fontSize:14,fontWeight:600,color:"#6366F1"},progressBarTrack:{display:"flex",height:8,borderRadius:999,overflow:"hidden"},progressSegment:{flex:1,height:"100%",transition:"background-color 0.3s ease"},progressLabels:{display:"flex",marginTop:6},progressLabel:{flex:1,fontSize:12,transition:"color 0.3s ease"},sectionHeadingRow:{display:"flex",justifyContent:"space-between",alignItems:"center"},sectionTitle:{fontSize:15,fontWeight:700,color:"#111827"},approvedBadge:{display:"flex",alignItems:"center",gap:5,fontSize:13,fontWeight:600,color:"#16A34A"},levelCard:{borderRadius:12,overflow:"hidden",transition:"background-color 0.3s ease, border-color 0.3s ease"},levelCardHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px"},noAssignees:{padding:"10px 16px",fontSize:13,color:"#9CA3AF",fontStyle:"italic"},assigneeRow:{display:"flex",alignItems:"center",gap:12,padding:"10px 16px",borderTop:"1px solid rgba(0,0,0,0.05)"},avatar:{width:38,height:38,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:700,flexShrink:0},userName:{fontSize:14,fontWeight:600,color:"#111827"},userEmail:{fontSize:12,color:"#6B7280"},flowBox:{border:"1px solid #E5E7EB",borderRadius:12,padding:"16px 20px",backgroundColor:"#FFFFFF"},flowTitle:{fontSize:14,fontWeight:700,color:"#111827"},flowEmpty:{fontSize:13,color:"#9CA3AF",fontStyle:"italic",marginTop:6,marginBottom:0},flowChip:{display:"flex",alignItems:"center",gap:6}};export{e as DEFAULT_REVIEW_STATUS_STYLES};
1
+ var e={progressHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10},progressTitle:{fontSize:15,fontWeight:700,color:"#111827"},progressCount:{fontSize:14,fontWeight:600,color:"#6366F1"},progressBarTrack:{display:"flex",height:8,borderRadius:999,overflow:"hidden"},progressSegment:{flex:1,height:"100%",transition:"background-color 0.3s ease"},progressLabels:{display:"flex",marginTop:6},progressLabel:{flex:1,fontSize:12,transition:"color 0.3s ease"},sectionHeadingRow:{display:"flex",justifyContent:"space-between",alignItems:"center"},sectionTitle:{fontSize:15,fontWeight:700,color:"#111827"},approvedBadge:{display:"flex",alignItems:"center",gap:5,fontSize:13,fontWeight:600,color:"#16A34A"},levelCard:{borderRadius:12,overflow:"hidden",transition:"background-color 0.3s ease, border-color 0.3s ease"},levelCardHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px"},noAssignees:{padding:"10px 16px",fontSize:13,color:"#9CA3AF",fontStyle:"italic"},assigneeRow:{display:"flex",alignItems:"center",gap:12,padding:"10px 16px",borderTop:"1px solid rgba(0,0,0,0.05)"},avatar:{width:38,height:38,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:700,flexShrink:0},userName:{fontSize:14,fontWeight:600,color:"#111827"},userEmail:{fontSize:12,color:"#6B7280"},flowBox:{border:"1px solid #E5E7EB",borderRadius:12,padding:"16px 20px",backgroundColor:"#FFFFFF"},flowTitle:{fontSize:14,fontWeight:700,color:"#111827"},flowEmpty:{fontSize:13,color:"#9CA3AF",fontStyle:"italic",marginTop:6,marginBottom:0},flowChip:{display:"flex",alignItems:"center",gap:6}};export{e as DEFAULT_REVIEW_STATUS_STYLES};
2
2
  //# sourceMappingURL=ReviewStatusStyles.js.map
@@ -1,2 +1,2 @@
1
- function o(){const o=Math.floor(360*Math.random());return{backgroundColor:`hsl(${o}, 70%, 82%)`,color:`hsl(${o}, 65%, 25%)`}}export{o as getRandomColorPair};
1
+ function o(){var o=Math.floor(360*Math.random());return{backgroundColor:"hsl(".concat(o,", 70%, 82%)"),color:"hsl(".concat(o,", 65%, 25%)")}}export{o as getRandomColorPair};
2
2
  //# sourceMappingURL=generateRandomColorsPair.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e,Fragment as t}from"react/jsx-runtime";import r from"../../styles/ScopeTree.module.css.js";const i=({text:i,highlight:s})=>{if(!s||!s.trim())return e(t,{children:i});const n=new RegExp(`(${s})`,"gi"),c=i.split(n);return e(t,{children:c.map((t,i)=>n.test(t)?e("span",Object.assign({className:r.highlightText},{children:t}),i):e("span",{children:t},i))})};export{i as HighlightedText};
1
+ import{__assign as r}from"../../_virtual/_tslib.js";import{jsx as t,Fragment as e}from"react/jsx-runtime";import i from"../../styles/ScopeTree.module.css.js";var n=function(n){var s=n.text,c=n.highlight;if(!c||!c.trim())return t(e,{children:s});var l=new RegExp("(".concat(c,")"),"gi"),o=s.split(l);return t(e,{children:o.map(function(e,n){return l.test(e)?t("span",r({className:i.highlightText},{children:e}),n):t("span",{children:e},n)})})};export{n as HighlightedText};
2
2
  //# sourceMappingURL=HighlightedText.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as s}from"react/jsx-runtime";import{Plus as o}from"lucide-react";import t from"../../styles/ScopeTree.module.css.js";const c=({label:c,onAdd:r})=>e("button",Object.assign({className:t.addAction,onClick:r},{children:[s("span",Object.assign({className:t.addIcon},{children:s(o,{size:16,strokeWidth:2.5})})),c]}));export{c as TreeAddAction};
1
+ import{__assign as r}from"../../_virtual/_tslib.js";import{jsxs as e,jsx as o}from"react/jsx-runtime";import{Plus as t}from"lucide-react";import i from"../../styles/ScopeTree.module.css.js";var s=function(s){var a=s.label,c=s.onAdd;return e("button",r({className:i.addAction,onClick:c},{children:[o("span",r({className:i.addIcon},{children:o(t,{size:16,strokeWidth:2.5})})),a]}))};export{s as TreeAddAction};
2
2
  //# sourceMappingURL=TreeAddAction.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as n,useRef as o,useEffect as i}from"react";import{MoreVertical as r}from"lucide-react";import s from"../../styles/ScopeTree.module.css.js";import{TreeTooltip as c}from"./TreeTooltip.js";const a=({options:a=[],buttonClassName:l="",iconSize:d=16})=>{const[m,u]=n(!1),[p,b]=n(!1),g=o(null),h=o(null);i(()=>{const e=e=>{g.current&&!g.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);return e("div",Object.assign({className:s.menuContainer,ref:g},{children:[t("div",{children:t("button",Object.assign({ref:h,type:"button",className:l||s.optionsButton,onClick:e=>{if(e.stopPropagation(),!m&&h.current){const e=h.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=40*a.length+20;b(t<n)}u(!m)}},{children:t(r,{size:d,"aria-hidden":"true"})}))}),m&&t("div",Object.assign({className:`${s.menuDropdown} ${p?s.menuDropdownTop:s.menuDropdownBottom}`,role:"menu","aria-orientation":"vertical"},{children:a.map((n,o)=>{const i=e("button",Object.assign({disabled:n.disabled,onClick:e=>{var t;(e.stopPropagation(),n.disabled)||((t=n.onClick)&&"function"==typeof t&&t(),u(!1))},className:`${s.menuOption} ${n.disabled?s.menuOptionDisabled:""} ${n.className||""}`,role:"menuitem"},{children:[n.icon&&t(n.icon,{size:16,className:s.menuOptionIcon}),n.label]}),`btn-${o}`);return n.tooltip&&n.disabled?t("div",Object.assign({className:s.tooltipWrapper,onClick:e=>e.stopPropagation()},{children:t(c,Object.assign({content:n.tooltip,placement:"right"},{children:t("div",Object.assign({style:{width:"100%"}},{children:i}))}))}),o):t("div",Object.assign({style:{width:"100%"}},{children:i}),o)})}))]}))};export{a as TreeMenu};
1
+ import{__assign as n}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as e,useRef as i,useEffect as r}from"react";import{MoreVertical as c}from"lucide-react";import a from"../../styles/ScopeTree.module.css.js";import{TreeTooltip as l}from"./TreeTooltip.js";var d=function(d){var s=d.options,u=void 0===s?[]:s,m=d.buttonClassName,p=void 0===m?"":m,v=d.iconSize,f=void 0===v?16:v,h=e(!1),b=h[0],g=h[1],w=e(!1),N=w[0],C=w[1],y=i(null),j=i(null);r(function(){var n=function(n){y.current&&!y.current.contains(n.target)&&g(!1)};return document.addEventListener("mousedown",n),function(){return document.removeEventListener("mousedown",n)}},[]);return t("div",n({className:a.menuContainer,ref:y},{children:[o("div",{children:o("button",n({ref:j,type:"button",className:p||a.optionsButton,onClick:function(n){if(n.stopPropagation(),!b&&j.current){var t=j.current.getBoundingClientRect(),o=window.innerHeight-t.bottom,e=40*u.length+20;C(o<e)}g(!b)}},{children:o(c,{size:f,"aria-hidden":"true"})}))}),b&&o("div",n({className:"".concat(a.menuDropdown," ").concat(N?a.menuDropdownTop:a.menuDropdownBottom),role:"menu","aria-orientation":"vertical"},{children:u.map(function(e,i){var r=t("button",n({disabled:e.disabled,onClick:function(n){var t;(n.stopPropagation(),e.disabled)||((t=e.onClick)&&"function"==typeof t&&t(),g(!1))},className:"".concat(a.menuOption," ").concat(e.disabled?a.menuOptionDisabled:""," ").concat(e.className||""),role:"menuitem"},{children:[e.icon&&o(e.icon,{size:16,className:a.menuOptionIcon}),e.label]}),"btn-".concat(i));return e.tooltip&&e.disabled?o("div",n({className:a.tooltipWrapper,onClick:function(n){return n.stopPropagation()}},{children:o(l,n({content:e.tooltip,placement:"right"},{children:o("div",n({style:{width:"100%"}},{children:r}))}))}),i):o("div",n({style:{width:"100%"}},{children:r}),i)})}))]}))};export{d as TreeMenu};
2
2
  //# sourceMappingURL=TreeMenu.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as d}from"react/jsx-runtime";import{Plus as i,Pencil as n,Trash2 as o}from"lucide-react";import l from"../../styles/ScopeTree.module.css.js";import{TreeNodeHeader as t}from"./TreeNodeHeader.js";import{TreeSectionItem as r}from"./TreeSectionItem.js";import{TreeAddAction as a}from"./TreeAddAction.js";const s=({node:c,depth:h=0,nodePath:p=[],expandedNodeIds:m,activeSelection:u,onToggleExpand:C,onSectionSelect:v,onNodeOptionsClick:g,onAddChild:b,onRenameChild:f,onDeleteChild:T,searchQuery:y,sectionsConfig:S=[],nodeTypesConfig:x=[],showChildrenCount:A=!0,showSectionBadge:N=!0})=>{var j,k;const w=[...p,c.id],P=m.has(c.id),O=!!u&&u.nodePath[u.nodePath.length-1]===c.id,E=!!u&&(u.nodePath.includes(c.id)&&!O),I=(e,d)=>{if(!d)return!0;const i=d.toLowerCase();return!!e.name.toLowerCase().includes(i)||!!e.children&&e.children.some(e=>I(e,d))};if(!I(c,y||""))return null;const L=h>=x.length-1?x[x.length-1]:x[h],D=!!(null==L?void 0:L.addChildType);return e("div",Object.assign({className:l.nodeWrapper,style:{"--tree-depth":h}},{children:[d(t,{name:c.name,isExpanded:P,isSelected:O,isAncestor:E,childrenCount:A?null===(j=c.children)||void 0===j?void 0:j.length:void 0,onToggleExpand:e=>{e.stopPropagation(),C(c.id)},onClick:()=>C(c.id),searchQuery:y,menuOptions:[...D&&b?[{label:L.addChildLabel||"Add Child",icon:i,onClick:()=>null==b?void 0:b(c.id,L.addChildType,c.name)}]:[],...f?[{label:"Rename",icon:n,onClick:()=>null==f?void 0:f(c.id,c.name)}]:[],...T?[{label:`Delete ${(null==L?void 0:L.label)||"Node"}`,icon:o,onClick:()=>{var e;return null==T?void 0:T(c.id,c.name,(null===(e=c.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:c.children&&c.children.length>0,tooltip:"This scope cannot be deleted because other scopes inherit learnings from it.",className:"text-red-500 hover:text-red-600 hover:bg-red-50"}]:[]]}),P&&e("div",Object.assign({className:l.childrenWrapper},{children:[S.filter(e=>!e.isVisible||e.isVisible(c,h)).map(e=>{var i;return d(r,{icon:e.icon,label:e.label,badgeCount:N&&e.badgeKey?null===(i=c.metrics)||void 0===i?void 0:i[e.badgeKey]:void 0,isActive:O&&(null==u?void 0:u.sectionId)===e.id,onClick:()=>v(w,e.id)},`${c.id}-${e.id}`)}),null===(k=c.children)||void 0===k?void 0:k.map(e=>d(s,{node:e,depth:h+1,nodePath:w,expandedNodeIds:m,activeSelection:u,onToggleExpand:C,onSectionSelect:v,onNodeOptionsClick:g,onAddChild:b,onRenameChild:f,onDeleteChild:T,searchQuery:y,sectionsConfig:S,nodeTypesConfig:x,showChildrenCount:A,showSectionBadge:N},e.id)),D&&b&&d(a,{label:L.addChildLabel||"Add Child",onAdd:()=>null==b?void 0:b(c.id,L.addChildType,c.name)})]}))]}))};export{s as TreeNode};
1
+ import{__spreadArray as e,__assign as n}from"../../_virtual/_tslib.js";import{jsxs as i,jsx as o}from"react/jsx-runtime";import{Trash2 as d,Plus as l,Pencil as t}from"lucide-react";import r from"../../styles/ScopeTree.module.css.js";import{TreeNodeHeader as a}from"./TreeNodeHeader.js";import{TreeSectionItem as c}from"./TreeSectionItem.js";import{TreeAddAction as s}from"./TreeAddAction.js";var u=function(h){var m,p,v=h.node,C=h.depth,f=void 0===C?0:C,g=h.nodePath,b=void 0===g?[]:g,T=h.expandedNodeIds,y=h.activeSelection,S=h.onToggleExpand,x=h.onSectionSelect,A=h.onNodeOptionsClick,N=h.onAddChild,k=h.onRenameChild,j=h.onDeleteChild,w=h.searchQuery,P=h.sectionsConfig,E=void 0===P?[]:P,I=h.nodeTypesConfig,L=void 0===I?[]:I,D=h.showChildrenCount,O=void 0===D||D,Q=h.showSectionBadge,R=void 0===Q||Q,B=e(e([],b,!0),[v.id],!1),K=T.has(v.id),V=!!y&&y.nodePath[y.nodePath.length-1]===v.id,W=!!y&&(y.nodePath.includes(v.id)&&!V),_=function(e,n){if(!n)return!0;var i=n.toLowerCase();return!!e.name.toLowerCase().includes(i)||!!e.children&&e.children.some(function(e){return _(e,n)})};if(!_(v,w||""))return null;var H=f>=L.length-1?L[L.length-1]:L[f],q=!!(null==H?void 0:H.addChildType);return i("div",n({className:r.nodeWrapper,style:{"--tree-depth":f}},{children:[o(a,{name:v.name,isExpanded:K,isSelected:V,isAncestor:W,childrenCount:O?null===(m=v.children)||void 0===m?void 0:m.length:void 0,onToggleExpand:function(e){e.stopPropagation(),S(v.id)},onClick:function(){return S(v.id)},searchQuery:w,menuOptions:e(e(e([],q&&N?[{label:H.addChildLabel||"Add Child",icon:l,onClick:function(){return null==N?void 0:N(v.id,H.addChildType,v.name)}}]:[],!0),k?[{label:"Rename",icon:t,onClick:function(){return null==k?void 0:k(v.id,v.name)}}]:[],!0),j?[{label:"Delete ".concat((null==H?void 0:H.label)||"Node"),icon:d,onClick:function(){var e;return null==j?void 0:j(v.id,v.name,(null===(e=v.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:v.children&&v.children.length>0,tooltip:"This scope cannot be deleted because other scopes inherit learnings from it.",className:"text-red-500 hover:text-red-600 hover:bg-red-50"}]:[],!0)}),K&&i("div",n({className:r.childrenWrapper},{children:[E.filter(function(e){return!e.isVisible||e.isVisible(v,f)}).map(function(e){var n;return o(c,{icon:e.icon,label:e.label,badgeCount:R&&e.badgeKey?null===(n=v.metrics)||void 0===n?void 0:n[e.badgeKey]:void 0,isActive:V&&(null==y?void 0:y.sectionId)===e.id,onClick:function(){return x(B,e.id)}},"".concat(v.id,"-").concat(e.id))}),null===(p=v.children)||void 0===p?void 0:p.map(function(e){return o(u,{node:e,depth:f+1,nodePath:B,expandedNodeIds:T,activeSelection:y,onToggleExpand:S,onSectionSelect:x,onNodeOptionsClick:A,onAddChild:N,onRenameChild:k,onDeleteChild:j,searchQuery:w,sectionsConfig:E,nodeTypesConfig:L,showChildrenCount:O,showSectionBadge:R},e.id)}),q&&N&&o(s,{label:H.addChildLabel||"Add Child",onAdd:function(){return null==N?void 0:N(v.id,H.addChildType,v.name)}})]}))]}))};export{u as TreeNode};
2
2
  //# sourceMappingURL=TreeNode.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as n}from"react/jsx-runtime";import{ChevronDown as o,FolderOpen as t}from"lucide-react";import s from"../../styles/ScopeTree.module.css.js";import{TreeMenu as i}from"./TreeMenu.js";import{HighlightedText as r}from"./HighlightedText.js";const c=({name:c,isExpanded:a,isSelected:d,isAncestor:l,isExpandable:m=!0,onToggleExpand:h,onClick:p,menuOptions:g,searchQuery:b,childrenCount:u})=>{const j=d?s.nodeHeaderSelected:l?s.nodeHeaderAncestor:"",v=d||l;return e("div",Object.assign({className:`${s.nodeHeader} ${j}`,onClick:p,role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p())}},{children:[n("div",Object.assign({className:`${s.chevron} ${a?s.chevronExpanded:""} ${m?"":s.chevronHidden}`,onClick:e=>{m&&h(e)},role:"button",tabIndex:m?0:-1},{children:n(o,{size:16,strokeWidth:v?2.5:2,color:v?"#2563EB":"#64748B"})})),n("div",Object.assign({className:s.folderIcon},{children:n(t,{size:18,strokeWidth:v?2.5:2,color:v?"currentColor":"#64748B"})})),n("span",Object.assign({className:s.nodeName},{children:n(r,{text:c,highlight:b})})),void 0!==u&&u>0&&n("span",Object.assign({className:`${s.badge} ${d?s.badgeActive:""}`},{children:u})),g&&g.length>0&&n("div",Object.assign({onClick:e=>e.stopPropagation()},{children:n(i,{options:g,buttonClassName:s.optionsButton,iconSize:16})}))]}))};export{c as TreeNodeHeader};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as o,jsx as n}from"react/jsx-runtime";import{ChevronDown as t,FolderOpen as r}from"lucide-react";import c from"../../styles/ScopeTree.module.css.js";import{TreeMenu as i}from"./TreeMenu.js";import{HighlightedText as a}from"./HighlightedText.js";var d=function(d){var s=d.name,l=d.isExpanded,m=d.isSelected,p=d.isAncestor,u=d.isExpandable,h=void 0===u||u,v=d.onToggleExpand,f=d.onClick,g=d.menuOptions,x=d.searchQuery,b=d.childrenCount,k=m?c.nodeHeaderSelected:p?c.nodeHeaderAncestor:"",C=m||p;return o("div",e({className:"".concat(c.nodeHeader," ").concat(k),onClick:f,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}},{children:[n("div",e({className:"".concat(c.chevron," ").concat(l?c.chevronExpanded:""," ").concat(h?"":c.chevronHidden),onClick:function(e){h&&v(e)},role:"button",tabIndex:h?0:-1},{children:n(t,{size:16,strokeWidth:C?2.5:2,color:C?"#2563EB":"#64748B"})})),n("div",e({className:c.folderIcon},{children:n(r,{size:18,strokeWidth:C?2.5:2,color:C?"currentColor":"#64748B"})})),n("span",e({className:c.nodeName},{children:n(a,{text:s,highlight:x})})),void 0!==b&&b>0&&n("span",e({className:"".concat(c.badge," ").concat(m?c.badgeActive:"")},{children:b})),g&&g.length>0&&n("div",e({onClick:function(e){return e.stopPropagation()}},{children:n(i,{options:g,buttonClassName:c.optionsButton,iconSize:16})}))]}))};export{d as TreeNodeHeader};
2
2
  //# sourceMappingURL=TreeNodeHeader.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as s}from"react/jsx-runtime";import i from"../../styles/ScopeTree.module.css.js";const l=({icon:l,label:n,badgeCount:t,isActive:c=!1,onClick:a})=>e("div",Object.assign({className:`${i.pill} ${c?i.pillActive:""}`,onClick:a,role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())}},{children:[s("div",Object.assign({className:i.pillIcon},{children:s(l,{size:18,strokeWidth:c?2.5:2})})),s("span",Object.assign({className:i.pillLabel},{children:n})),"number"==typeof t&&s("span",Object.assign({className:`${i.badge} ${c?i.badgeActive:""}`},{children:t}))]}));export{l as TreeSectionItem};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as c}from"react/jsx-runtime";import i from"../../styles/ScopeTree.module.css.js";var n=function(n){var l=n.icon,o=n.label,a=n.badgeCount,r=n.isActive,s=void 0!==r&&r,d=n.onClick;return t("div",e({className:"".concat(i.pill," ").concat(s?i.pillActive:""),onClick:d,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d())}},{children:[c("div",e({className:i.pillIcon},{children:c(l,{size:18,strokeWidth:s?2.5:2})})),c("span",e({className:i.pillLabel},{children:o})),"number"==typeof a&&c("span",e({className:"".concat(i.badge," ").concat(s?i.badgeActive:"")},{children:a}))]}))};export{n as TreeSectionItem};
2
2
  //# sourceMappingURL=TreeSectionItem.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{useState as n,useEffect as o}from"react";import t from"../../styles/ScopeTree.module.css.js";import{findNodePathById as d}from"../../utils/treeUtils.js";import{TreeNode as i}from"./TreeNode.js";const r=({data:r,defaultExpandedIds:s=[],onSectionSelect:c,onNodeOptionsClick:l,onAddChild:a,onRenameChild:h,onDeleteChild:u,searchQuery:C="",onSearchCountChange:f,sectionsConfig:m,nodeTypesConfig:S,selectedRuleSetId:p,activeSectionId:w,showChildrenCount:g,showSectionBadge:v=!0})=>{const[I,j]=n(new Set(r?[r.id,...s]:s)),[x,y]=n(null);o(()=>{r&&j(e=>{if(!e.has(r.id)){const n=new Set(e);return n.add(r.id),n}return e})},[null==r?void 0:r.id]),o(()=>{if(r&&p&&w){const e=d(r,p);e&&(y({nodePath:e,sectionId:w}),j(n=>{const o=new Set(n);return e.forEach(e=>o.add(e)),o}))}},[r,p,w]),o(()=>{if(C&&r){const e=new Set,n=o=>{const t=C.toLowerCase(),d=o.name.toLowerCase().includes(t);let i=!1;o.children&&o.children.forEach(e=>{n(e)&&(i=!0)});const r=d||i;return r&&i&&e.add(o.id),r};n(r),j(e)}},[C,r]);const E=(e,n)=>{if(!n)return 0;let o=0;const t=n.toLowerCase();return e.name.toLowerCase().includes(t)&&o++,e.children&&e.children.forEach(e=>{o+=E(e,n)}),o};o(()=>{f&&r&&f(E(r,C))},[C,r,f]);return r?e("div",Object.assign({className:t.treeContainer},{children:e(i,{node:r,expandedNodeIds:I,activeSelection:x,onToggleExpand:e=>{j(n=>{const o=new Set(n);return o.has(e)?o.delete(e):o.add(e),o})},onSectionSelect:(e,n)=>{y({nodePath:e,sectionId:n}),c&&c(e[e.length-1],n)},onNodeOptionsClick:e=>{l&&l(e)},onAddChild:a?(e,n,o)=>{a&&a(e,n,o)}:void 0,onRenameChild:h?(e,n)=>{h&&h(e,n)}:void 0,onDeleteChild:u?(e,n,o)=>{u&&u(e,n,o)}:void 0,searchQuery:C,sectionsConfig:m,nodeTypesConfig:S,showChildrenCount:g,showSectionBadge:v})})):null};export{r as TreeSidebar};
1
+ import{__spreadArray as e,__assign as n}from"../../_virtual/_tslib.js";import{jsx as o}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import r from"../../styles/ScopeTree.module.css.js";import{findNodePathById as d}from"../../utils/treeUtils.js";import{TreeNode as c}from"./TreeNode.js";var a=function(a){var u=a.data,l=a.defaultExpandedIds,s=void 0===l?[]:l,f=a.onSectionSelect,h=a.onNodeOptionsClick,C=a.onAddChild,v=a.onRenameChild,m=a.onDeleteChild,S=a.searchQuery,p=void 0===S?"":S,w=a.onSearchCountChange,g=a.sectionsConfig,I=a.nodeTypesConfig,j=a.selectedRuleSetId,x=a.activeSectionId,y=a.showChildrenCount,E=a.showSectionBadge,N=void 0===E||E,T=t(new Set(u?e([u.id],s,!0):s)),L=T[0],R=T[1],k=t(null),A=k[0],B=k[1];i(function(){u&&R(function(e){if(!e.has(u.id)){var n=new Set(e);return n.add(u.id),n}return e})},[null==u?void 0:u.id]),i(function(){if(u&&j&&x){var e=d(u,j);e&&(B({nodePath:e,sectionId:x}),R(function(n){var o=new Set(n);return e.forEach(function(e){return o.add(e)}),o}))}},[u,j,x]),i(function(){if(p&&u){var e=new Set,n=function(o){var t=p.toLowerCase(),i=o.name.toLowerCase().includes(t),r=!1;o.children&&o.children.forEach(function(e){n(e)&&(r=!0)});var d=i||r;return d&&r&&e.add(o.id),d};n(u),R(e)}},[p,u]);var D=function(e,n){if(!n)return 0;var o=0,t=n.toLowerCase();return e.name.toLowerCase().includes(t)&&o++,e.children&&e.children.forEach(function(e){o+=D(e,n)}),o};i(function(){w&&u&&w(D(u,p))},[p,u,w]);return u?o("div",n({className:r.treeContainer},{children:o(c,{node:u,expandedNodeIds:L,activeSelection:A,onToggleExpand:function(e){R(function(n){var o=new Set(n);return o.has(e)?o.delete(e):o.add(e),o})},onSectionSelect:function(e,n){B({nodePath:e,sectionId:n}),f&&f(e[e.length-1],n)},onNodeOptionsClick:function(e){h&&h(e)},onAddChild:C?function(e,n,o){C&&C(e,n,o)}:void 0,onRenameChild:v?function(e,n){v&&v(e,n)}:void 0,onDeleteChild:m?function(e,n,o){m&&m(e,n,o)}:void 0,searchQuery:p,sectionsConfig:g,nodeTypesConfig:I,showChildrenCount:y,showSectionBadge:N})})):null};export{a as TreeSidebar};
2
2
  //# sourceMappingURL=TreeSidebar.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as t,jsxs as e}from"react/jsx-runtime";import{Provider as o,Root as r,Trigger as s,Portal as i,Content as n}from"../../node_modules/@radix-ui/react-tooltip/dist/index.mjs.js";import a from"../../styles/ScopeTree.module.css.js";const l=({content:l,children:d,placement:c="top",withArrow:m=!1})=>l?t(o,{children:e(r,Object.assign({delayDuration:100},{children:[t(s,Object.assign({asChild:!0},{children:d})),t(i,{children:e(n,Object.assign({side:c,sideOffset:4,className:a.tooltipContent},{children:[m&&t("svg",Object.assign({width:8,height:8,viewBox:"0 0 8 8",className:a.tooltipArrow,style:{top:{bottom:0,left:"50%",transform:"translate(-50%, 100%)"},bottom:{top:0,left:"50%",transform:"translate(-50%, -100%) rotate(180deg)"},left:{right:0,top:"50%",transform:"translate(100%, -50%) rotate(-90deg)"},right:{left:0,top:"50%",transform:"translate(-100%, -50%) rotate(90deg)"}}[c]},{children:t("polygon",{points:"0,0 8,0 4,8"})})),l]}))})]}))}):d;export{l as TreeTooltip};
1
+ import{__assign as t}from"../../_virtual/_tslib.js";import{jsx as o,jsxs as e}from"react/jsx-runtime";import{Provider as r,Root as i,Trigger as s,Portal as a,Content as n}from"../../node_modules/@radix-ui/react-tooltip/dist/index.mjs.js";import l from"../../styles/ScopeTree.module.css.js";var d=function(d){var m=d.content,p=d.children,c=d.placement,f=void 0===c?"top":c,h=d.withArrow,g=void 0!==h&&h;return m?o(r,{children:e(i,t({delayDuration:100},{children:[o(s,t({asChild:!0},{children:p})),o(a,{children:e(n,t({side:f,sideOffset:4,className:l.tooltipContent},{children:[g&&o("svg",t({width:8,height:8,viewBox:"0 0 8 8",className:l.tooltipArrow,style:{top:{bottom:0,left:"50%",transform:"translate(-50%, 100%)"},bottom:{top:0,left:"50%",transform:"translate(-50%, -100%) rotate(180deg)"},left:{right:0,top:"50%",transform:"translate(100%, -50%) rotate(-90deg)"},right:{left:0,top:"50%",transform:"translate(-100%, -50%) rotate(90deg)"}}[f]},{children:o("polygon",{points:"0,0 8,0 4,8"})})),m]}))})]}))}):p};export{d as TreeTooltip};
2
2
  //# sourceMappingURL=TreeTooltip.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as i}from"react/jsx-runtime";import{GuidelineCart as l}from"./components/GuidelineCart.js";import{useGuidelineSelection as d}from"./hooks/useGuidelineSelection.js";import{useControllableState as n}from"./hooks/useControllableState.js";import{cx as s}from"./utils.js";function t({guidelines:t,sourceContent:o,selectedGuidelineIds:u,defaultSelectedGuidelineIds:r,cartGuidelineIds:a,defaultCartGuidelineIds:c,onSelectedGuidelineIdsChange:m,onCartGuidelineIdsChange:G,onToggleGuideline:g,onPreviewGuideline:f,onRemoveGuideline:I,onProceed:v,onAddGuideline:C,hideDeleteButton:h,className:p,classNames:b,styles:j,labels:S,formatAddedOnLabel:x}){const{selectedIds:N,selectedGuidelines:y,toggleGuideline:A,setSelectedIds:O}=d({guidelines:t,selectedGuidelineIds:u,defaultSelectedGuidelineIds:r,onSelectedGuidelineIdsChange:m,onToggleGuideline:g}),[P,T]=n({value:a,defaultValue:null!=c?c:t.map(e=>e.id),onChange:G}),k=y.filter(e=>P.includes(e.id));return e("div",Object.assign({className:s("lsc-guidelines grid grid-cols-1 gap-7 xl:grid-cols-[minmax(0,1fr)_348px] xl:items-start",null==b?void 0:b.root,p),style:null==j?void 0:j.root},{children:[i("div",Object.assign({className:null==b?void 0:b.sourceContent,style:null==j?void 0:j.sourceContent},{children:o})),i(l,{guidelines:t,cartGuidelineIds:P,selectedGuidelineIds:N,onToggleGuideline:A,onPreviewGuideline:f,onRemoveGuideline:e=>{T(i=>i.filter(i=>i!==e.id)),O(i=>i.filter(i=>i!==e.id)),I(e)},onProceed:()=>v(k),onAddGuideline:C,hideDeleteButton:h,classNames:b,styles:j,labels:S,formatAddedOnLabel:x})]}))}export{t as LscGuidelines};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as i,jsx as n}from"react/jsx-runtime";import{GuidelineCart as l}from"./components/GuidelineCart.js";import{useGuidelineSelection as d}from"./hooks/useGuidelineSelection.js";import{useControllableState as t}from"./hooks/useControllableState.js";import{cx as o}from"./utils.js";function u(u){var s=u.guidelines,r=u.sourceContent,a=u.selectedGuidelineIds,c=u.defaultSelectedGuidelineIds,m=u.cartGuidelineIds,f=u.defaultCartGuidelineIds,G=u.onSelectedGuidelineIdsChange,g=u.onCartGuidelineIdsChange,v=u.onToggleGuideline,I=u.onPreviewGuideline,p=u.onRemoveGuideline,C=u.onProceed,h=u.onAddGuideline,S=u.hideDeleteButton,b=u.className,j=u.classNames,x=u.styles,N=u.labels,y=u.formatAddedOnLabel,A=d({guidelines:s,selectedGuidelineIds:a,defaultSelectedGuidelineIds:c,onSelectedGuidelineIdsChange:G,onToggleGuideline:v}),P=A.selectedIds,T=A.selectedGuidelines,_=A.toggleGuideline,k=A.setSelectedIds,w=t({value:m,defaultValue:null!=f?f:s.map(function(e){return e.id}),onChange:g}),B=w[0],D=w[1],L=T.filter(function(e){return B.includes(e.id)});return i("div",e({className:o("lsc-guidelines grid grid-cols-1 gap-7 xl:grid-cols-[minmax(0,1fr)_348px] xl:items-start",null==j?void 0:j.root,b),style:null==x?void 0:x.root},{children:[n("div",e({className:null==j?void 0:j.sourceContent,style:null==x?void 0:x.sourceContent},{children:r})),n(l,{guidelines:s,cartGuidelineIds:B,selectedGuidelineIds:P,onToggleGuideline:_,onPreviewGuideline:I,onRemoveGuideline:function(e){D(function(i){return i.filter(function(i){return i!==e.id})}),k(function(i){return i.filter(function(i){return i!==e.id})}),p(e)},onProceed:function(){return C(L)},onAddGuideline:h,hideDeleteButton:S,classNames:j,styles:x,labels:N,formatAddedOnLabel:y})]}))}export{u as LscGuidelines};
2
2
  //# sourceMappingURL=LscGuidelines.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,Fragment as l,jsx as n}from"react/jsx-runtime";import{useRef as t}from"react";import{OverlayPanel as i}from"primereact/overlaypanel";import{cx as a,defaultFormatAddedOnLabel as o}from"../utils.js";import{GuidelinePopoverCart as d}from"./GuidelinePopoverCart.js";function r({guidelines:r,cartGuidelineIds:s,selectedGuidelineIds:u,guidelineCount:c,onToggleGuideline:m,onPreviewGuideline:b,onRemoveGuideline:p,onAddGuideline:g,onOpenFullView:v,disabled:h=!1,className:y,wrapperClassName:f,overlayClassName:w,triggerIcon:G,triggerLabel:x="Open guideline cart",badgeLabel:L,debugEnabled:O=!1,onDebugChange:j,title:N,debugLabel:C,addGuidelineLabel:E,openFullViewLabel:I,emptyTitle:A,emptyDescription:F,emptyActionLabel:B,emptyIcon:D,classNames:T,styles:V,formatAddedOnLabel:P=o}){var R;const W=t(null),k=null!==(R=null!=c?c:null==s?void 0:s.length)&&void 0!==R?R:u.length;return e(l,{children:[e("div",Object.assign({className:a("relative",null==T?void 0:T.attachmentWrapper,f),style:null==V?void 0:V.attachmentWrapper},{children:[n("button",Object.assign({type:"button",onClick:e=>{var l;return null===(l=W.current)||void 0===l?void 0:l.toggle(e)},className:a("flex h-[36px] w-[48px] items-center justify-center rounded-t-[10px] border border-b-0 border-[#E5E7EB] bg-white transition hover:bg-gray-50 focus:outline-none active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-60",null==T?void 0:T.attachmentButton,y),style:null==V?void 0:V.attachmentButton,disabled:h,"aria-label":x,title:x},{children:G})),k>0&&n("span",Object.assign({className:a("pointer-events-none absolute -top-1.5 right-2 flex h-4 min-w-4 items-center justify-center rounded-full bg-[#E0E7FF] px-1 text-[9px] font-bold text-[#5928ED] shadow-sm",null==T?void 0:T.attachmentBadge),style:null==V?void 0:V.attachmentBadge},{children:null!=L?L:k}))]})),n(i,Object.assign({ref:W,dismissable:!0,showCloseIcon:!1,className:a("w-[520px] overflow-visible rounded-xl border-0 p-0 shadow-none",null==T?void 0:T.attachmentOverlay,w),style:null==V?void 0:V.attachmentOverlay},{children:n(d,{guidelines:r,cartGuidelineIds:s,selectedGuidelineIds:u,onToggleGuideline:m,onPreviewGuideline:b,onRemoveGuideline:p,onAddGuideline:()=>{var e;null===(e=W.current)||void 0===e||e.hide(),g()},onOpenFullView:()=>{var e;null===(e=W.current)||void 0===e||e.hide(),v()},debugEnabled:O,onDebugChange:j,title:N,debugLabel:C,addGuidelineLabel:E,openFullViewLabel:I,emptyTitle:A,emptyDescription:F,emptyActionLabel:B,emptyIcon:D,classNames:T,styles:V,formatAddedOnLabel:P})}))]})}export{r as GuidelineAttachmentIcon};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as l,Fragment as n,jsx as t}from"react/jsx-runtime";import{useRef as i}from"react";import{OverlayPanel as o}from"primereact/overlaypanel";import{cx as d,defaultFormatAddedOnLabel as a}from"../utils.js";import{GuidelinePopoverCart as r}from"./GuidelinePopoverCart.js";function u(u){var s,c=u.guidelines,m=u.cartGuidelineIds,p=u.selectedGuidelineIds,b=u.guidelineCount,v=u.onToggleGuideline,g=u.onPreviewGuideline,h=u.onRemoveGuideline,y=u.onAddGuideline,f=u.onOpenFullView,w=u.disabled,G=void 0!==w&&w,x=u.className,L=u.wrapperClassName,N=u.overlayClassName,C=u.triggerIcon,E=u.triggerLabel,I=void 0===E?"Open guideline cart":E,O=u.badgeLabel,j=u.debugEnabled,A=void 0!==j&&j,F=u.onDebugChange,B=u.title,D=u.debugLabel,T=u.addGuidelineLabel,V=u.openFullViewLabel,P=u.emptyTitle,R=u.emptyDescription,W=u.emptyActionLabel,_=u.emptyIcon,k=u.classNames,q=u.styles,z=u.formatAddedOnLabel,H=void 0===z?a:z,J=i(null),K=null!==(s=null!=b?b:null==m?void 0:m.length)&&void 0!==s?s:p.length;return l(n,{children:[l("div",e({className:d("relative",null==k?void 0:k.attachmentWrapper,L),style:null==q?void 0:q.attachmentWrapper},{children:[t("button",e({type:"button",onClick:function(e){var l;return null===(l=J.current)||void 0===l?void 0:l.toggle(e)},className:d("flex h-[36px] w-[48px] items-center justify-center rounded-t-[10px] border border-b-0 border-[#E5E7EB] bg-white transition hover:bg-gray-50 focus:outline-none active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-60",null==k?void 0:k.attachmentButton,x),style:null==q?void 0:q.attachmentButton,disabled:G,"aria-label":I,title:I},{children:C})),K>0&&t("span",e({className:d("pointer-events-none absolute -top-1.5 right-2 flex h-4 min-w-4 items-center justify-center rounded-full bg-[#E0E7FF] px-1 text-[9px] font-bold text-[#5928ED] shadow-sm",null==k?void 0:k.attachmentBadge),style:null==q?void 0:q.attachmentBadge},{children:null!=O?O:K}))]})),t(o,e({ref:J,dismissable:!0,showCloseIcon:!1,className:d("w-[520px] overflow-visible rounded-xl border-0 p-0 shadow-none",null==k?void 0:k.attachmentOverlay,N),style:null==q?void 0:q.attachmentOverlay},{children:t(r,{guidelines:c,cartGuidelineIds:m,selectedGuidelineIds:p,onToggleGuideline:v,onPreviewGuideline:g,onRemoveGuideline:h,onAddGuideline:function(){var e;null===(e=J.current)||void 0===e||e.hide(),y()},onOpenFullView:function(){var e;null===(e=J.current)||void 0===e||e.hide(),f()},debugEnabled:A,onDebugChange:F,title:B,debugLabel:D,addGuidelineLabel:T,openFullViewLabel:V,emptyTitle:P,emptyDescription:R,emptyActionLabel:W,emptyIcon:_,classNames:k,styles:q,formatAddedOnLabel:H})}))]})}export{u as GuidelineAttachmentIcon};
2
2
  //# sourceMappingURL=GuidelineAttachmentIcon.js.map