@viswa-test/creative-workspace-ui-component 0.0.38 → 0.0.40

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 (36) hide show
  1. package/dist/cjs/components/AssignReminders/AssignLevelAccordions.js +1 -1
  2. package/dist/cjs/components/AssignReminders/AssignReminderLevels.js +1 -1
  3. package/dist/cjs/components/AssignReminders/AssignReminderWrapper.js +1 -1
  4. package/dist/cjs/components/AssignReminders/components/AssignLevelsDatePicker.js +1 -1
  5. package/dist/cjs/components/AssignReminders/components/LevelData.js +1 -1
  6. package/dist/cjs/components/AssignReminders/components/ReviewStatus.js +1 -1
  7. package/dist/cjs/features/lsc-guidelines/components/GuidelinePopoverCart.js +1 -1
  8. package/dist/cjs/features/lsc-guidelines/components/GuidelineSavedModal.js +1 -1
  9. package/dist/components/AssignReminders/AssignLevelAccordions.js +1 -1
  10. package/dist/components/AssignReminders/AssignReminderLevels.js +1 -1
  11. package/dist/components/AssignReminders/AssignReminderWrapper.js +1 -1
  12. package/dist/components/AssignReminders/components/AssignLevelsDatePicker.js +1 -1
  13. package/dist/components/AssignReminders/components/LevelData.js +1 -1
  14. package/dist/components/AssignReminders/components/ReviewStatus.js +1 -1
  15. package/dist/features/lsc-guidelines/components/GuidelinePopoverCart.js +1 -1
  16. package/dist/features/lsc-guidelines/components/GuidelineSavedModal.js +1 -1
  17. package/dist/types/components/AssignReminders/AssignLevelAccordions.d.ts +2 -1
  18. package/dist/types/components/AssignReminders/AssignLevelAccordions.d.ts.map +1 -1
  19. package/dist/types/components/AssignReminders/AssignReminderLevels.d.ts +1 -1
  20. package/dist/types/components/AssignReminders/AssignReminderLevels.d.ts.map +1 -1
  21. package/dist/types/components/AssignReminders/AssignReminderTest.d.ts.map +1 -1
  22. package/dist/types/components/AssignReminders/AssignReminderWrapper.d.ts.map +1 -1
  23. package/dist/types/components/AssignReminders/components/AddUserPopup.d.ts.map +1 -1
  24. package/dist/types/components/AssignReminders/components/AssignAccessLevelsPopup.d.ts +3 -6
  25. package/dist/types/components/AssignReminders/components/AssignAccessLevelsPopup.d.ts.map +1 -1
  26. package/dist/types/components/AssignReminders/components/AssignLevelsDatePicker.d.ts +2 -1
  27. package/dist/types/components/AssignReminders/components/AssignLevelsDatePicker.d.ts.map +1 -1
  28. package/dist/types/components/AssignReminders/components/LevelData.d.ts.map +1 -1
  29. package/dist/types/components/AssignReminders/types/levelData.type.d.ts +2 -3
  30. package/dist/types/components/AssignReminders/types/levelData.type.d.ts.map +1 -1
  31. package/dist/types/components/AssignReminders/types/types.d.ts +4 -4
  32. package/dist/types/components/AssignReminders/types/types.d.ts.map +1 -1
  33. package/dist/types/features/lsc-guidelines/components/GuidelinePopoverCart.d.ts.map +1 -1
  34. package/dist/types/features/lsc-guidelines/components/GuidelineSavedModal.d.ts +2 -1
  35. package/dist/types/features/lsc-guidelines/components/GuidelineSavedModal.d.ts.map +1 -1
  36. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),t=require("lucide-react"),i=require("./utils/generateRandomColorsPair.js"),o=require("./assets/VerticalLine.js"),r=require("./components/AssignLevelsDatePicker.js"),a=require("./components/LevelData.js");exports.default=function(l){var d,p,u,c,g=l.level,x=l.id,h=l.accessLevelOptions,f=l.fetchUsers,y=l.onToggleMandatory,_=l.onDueDateChange,v=l.onAssigneesChange,j=l.onTitleChange;l.onDeleteLevel;var b=s.useMemo(function(){return i.getRandomColorPair()},[]),m="0"===x||(null!==(p=null===(d=g.assignees)||void 0===d?void 0:d.length)&&void 0!==p?p:0)>0,C=s.useState(m),k=C[0],D=C[1],F=s.useState(!1),S=F[0],w=F[1];return s.useEffect(function(){var e,n;(null!==(n=null===(e=g.assignees)||void 0===e?void 0:e.length)&&void 0!==n?n:0)>0&&D(!0)},[g.assignees]),n.jsxs("div",e.__assign({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[n.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[n.jsx("span",e.__assign({style:{backgroundColor:b.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:b.color,fontSize:"13px",fontWeight:500}},{children:g.headerName})),S?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("input",{type:"text",value:g.title||"",onChange:function(e){return null==j?void 0:j(e.target.value)},onBlur:function(){return w(!1)},onKeyDown:function(e){return"Enter"===e.key&&w(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),n.jsx("button",e.__assign({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),w(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:n.jsx(t.Check,{size:16,color:"#10B981"})}))]})):n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("span",e.__assign({style:{fontSize:"13px",fontWeight:500,color:"#374151"}},{children:g.title})),n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),w(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:n.jsx(t.Edit2,{size:14,color:"#6B7280"})}))]}))]})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({style:{color:"#6B7280"}},{children:["Due Date: ",g.isMandatory&&n.jsx("sup",e.__assign({style:{color:"red"}},{children:"*"}))]})),n.jsx(r.default,{value:null!==(u=g.dueDate)&&void 0!==u?u:null,onSet:_,id:x}),n.jsx(o.default,{})]}),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center"}},{children:n.jsxs("button",e.__assign({type:"button",onClick:y,disabled:"0"===x,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:g.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===x?"50%":"100%",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[n.jsx("span",{style:{position:"absolute",top:"3px",left:g.isMandatory?"65px":"3px",width:"20px",height:"20px",borderRadius:"50%",background:"#FFF",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"}}),n.jsx("span",e.__assign({style:{color:"#FFF",fontSize:"10px",fontWeight:500,userSelect:"none",paddingLeft:g.isMandatory?"0":"18px",paddingRight:g.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),n.jsx(t.ChevronDown,{size:20,onClick:function(e){e.stopPropagation(),D(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:k?"rotate(180deg)":"rotate(0deg)"}})]}))]})),k&&n.jsx("div",e.__assign({style:{width:"100%",height:"auto"}},{children:n.jsx(a.default,{assignees:null!==(c=g.assignees)&&void 0!==c?c:[],onAssigneeChange:v,accessLevelOptions:h,fetchUsers:f})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),t=require("lucide-react"),i=require("./utils/generateRandomColorsPair.js"),o=require("./assets/VerticalLine.js"),r=require("./components/AssignLevelsDatePicker.js"),a=require("./components/LevelData.js");exports.default=function(l){var d,u,p,c,g=l.level,x=l.id,h=l.accessLevelOptions,f=l.fetchUsers,y=l.onToggleMandatory,_=l.onDueDateChange,j=l.onAssigneesChange,v=l.onTitleChange,b=l.finalApprovalDueDate,m=s.useMemo(function(){return i.getRandomColorPair()},[]),C="0"===x||(null!==(u=null===(d=g.assignees)||void 0===d?void 0:d.length)&&void 0!==u?u:0)>0,k=s.useState(C),D=k[0],F=k[1],S=s.useState(!1),w=S[0],q=S[1];return s.useEffect(function(){var e,n;(null!==(n=null===(e=g.assignees)||void 0===e?void 0:e.length)&&void 0!==n?n:0)>0&&F(!0)},[g.assignees]),n.jsxs("div",e.__assign({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[n.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[n.jsx("span",e.__assign({style:{backgroundColor:m.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:m.color,fontSize:"13px",fontWeight:500}},{children:g.headerName})),w?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("input",{type:"text",value:g.title||"",onChange:function(e){return null==v?void 0:v(e.target.value)},onBlur:function(){return q(!1)},onKeyDown:function(e){return"Enter"===e.key&&q(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),n.jsx("button",e.__assign({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),q(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:n.jsx(t.Check,{size:16,color:"#10B981"})}))]})):n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("span",e.__assign({style:{fontSize:"13px",fontWeight:500,color:"#374151"}},{children:g.title})),n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),q(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:n.jsx(t.Edit2,{size:14,color:"#6B7280"})}))]}))]})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({style:{color:"#6B7280"}},{children:["Due Date: ",g.isMandatory&&n.jsx("sup",e.__assign({style:{color:"red"}},{children:"*"}))]})),n.jsx(r.default,{value:null!==(p=g.dueDate)&&void 0!==p?p:null,onSet:_,id:x,maxDate:null!=b?b:null}),n.jsx(o.default,{})]}),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center"}},{children:n.jsxs("button",e.__assign({type:"button",onClick:y,disabled:"0"===x,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:g.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===x?"50%":"100%",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[n.jsx("span",{style:{position:"absolute",top:"3px",left:g.isMandatory?"65px":"3px",width:"20px",height:"20px",borderRadius:"50%",background:"#FFF",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"}}),n.jsx("span",e.__assign({style:{color:"#FFF",fontSize:"10px",fontWeight:500,userSelect:"none",paddingLeft:g.isMandatory?"0":"18px",paddingRight:g.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),n.jsx(t.ChevronDown,{size:20,onClick:function(e){e.stopPropagation(),F(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:D?"rotate(180deg)":"rotate(0deg)"}})]}))]})),D&&n.jsx("div",e.__assign({style:{width:"100%",height:"auto"}},{children:n.jsx(a.default,{assignees:null!==(c=g.assignees)&&void 0!==c?c:[],onAssigneeChange:j,accessLevelOptions:h,fetchUsers:f})}))]}))};
2
2
  //# sourceMappingURL=AssignLevelAccordions.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),i=require("lucide-react"),t=require("./AssignLevelAccordions.js"),r=require("./components/CustomCheckbox.js"),a=require("./assets/FileCheckCorner.js"),l=require("./styles/AssignReminderStyles.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(s),c=[{label:"Edit",icon:n.jsx(i.PenLine,{size:14})},{label:"Approve",icon:n.jsx(i.UserRoundCheck,{size:14})},{label:"Edit & Approve",icon:n.jsx(a.default,{})},{label:"Notify",icon:n.jsx(i.Bell,{size:14})}];exports.AssignReminderLevels=function(s){var a=s.title,o=s.levels,_=void 0===o?[]:o,d=s.requireFinalApproval,p=void 0!==d&&d,f=s.additionalInfo,g=s.setLevels,v=s.setRequireFinalApproval,x=s.fetchUsers,h=s.accessLevelOptions,j=void 0===h?c:h,A=s.customInfoIcon,S=s.onValidationError,y=s.customStyles,E=void 0===y?{}:y,L=s.totalLevels,m=u.default.useState(!1),I=m[0],D=m[1],b=u.default.useMemo(function(){return Array.from({length:null!=L?L:3},function(e,n){var s;return null!==(s=_[n])&&void 0!==s?s:{title:"Level ".concat(n+1),headerName:"L ".concat(n+1),isMandatory:!1,dueDate:null,assignees:[],hasDueDate:!0}})},[_,L]),F=(_.length>0?_:b).filter(function(e){return!e.isHidden});return n.jsxs("div",e.__assign({style:e.__assign({padding:"8px",display:"flex",flexDirection:"column",gap:"18px"},E.container)},{children:[n.jsxs("span",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.header),E.levelsHeader)},{children:[n.jsx("span",{children:null!=a?a:"Assignee Levels"}),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.infoIconWrapper),E.infoIconWrapper),onMouseEnter:function(){return D(!0)},onMouseLeave:function(){return D(!1)}},{children:[null!=A?A:n.jsx(i.InfoIcon,{width:18,height:18}),n.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.tooltip),E.tooltip),I?e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.tooltipVisible),E.tooltipVisible):{})},{children:f||n.jsxs("span",{children:[n.jsx("b",{children:"How it works:"}),n.jsx("br",{}),"Level 1 is required by default, Enable Level 2 and Level 3 to add sequential approval steps for the review"]})}))]}))]})),n.jsx("div",e.__assign({style:e.__assign({display:"flex",flexDirection:"column",gap:"16px"},E.accordionsContainer)},{children:F.map(function(s,i){return n.jsx(t.default,{level:s,id:String(i),accessLevelOptions:j,fetchUsers:x,onToggleMandatory:function(){return n=i,void(null==g||g(function(s){return s.map(function(s,i){return i===n?e.__assign(e.__assign({},s),{isMandatory:!s.isMandatory}):s})}));var n},onDueDateChange:function(n){return function(n,s){var i;if(n>0&&s){var t=null===(i=_[n-1])||void 0===i?void 0:i.dueDate;if(t&&s<t)return void(null==S||S("Level ".concat(n+1," due date cannot be before Level ").concat(n," due date")))}null==g||g(function(i){return i.map(function(i,t){return t===n?e.__assign(e.__assign({},i),{dueDate:s}):i})})}(i,n)},onAssigneesChange:function(n){return s=i,t=n,void(null==g||g(function(n){return n.map(function(n,i){return i===s?e.__assign(e.__assign({},n),{assignees:t}):n})}));var s,t},onTitleChange:function(n){return function(n,s){null==g||g(function(i){return i.map(function(i,t){return t===n?e.__assign(e.__assign({},i),{title:s}):i})})}(i,n)}},i)})})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.finalApprovalBox),E.finalApprovalBox)},{children:[n.jsx(r.default,{getter:p,setter:null!=v?v:function(){}}),n.jsxs("div",e.__assign({style:e.__assign({display:"flex",flexDirection:"column",alignItems:"baseline",fontSize:"14px",fontWeight:400},E.finalApprovalTextWrapper)},{children:[n.jsx("span",e.__assign({style:e.__assign({fontWeight:500},E.finalApprovalTitle)},{children:"Require Final Approval"})),n.jsx("span",e.__assign({style:E.finalApprovalDesc},{children:"After all assignees approve, you (the owner) will be notified to give final sign-off before the redline is settled."}))]}))]})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.currentApprovalFlow),E.currentApprovalFlow)},{children:[n.jsx("span",e.__assign({style:e.__assign({fontSize:"14px",fontWeight:600},E.currentApprovalFlowTitle)},{children:"Current Approval Flow"})),n.jsx("div",e.__assign({style:e.__assign({display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"4px"},E.approvalFlowItemsWrapper)},{children:_.map(function(s,t){var r,a=s.isHidden,l=(null===(r=s.assignees)||void 0===r?void 0:r.map(function(e){return e.name}).join(" / "))||"No users assigned",o=s.title||"Level ".concat(t+1),c=a?n.jsx(i.User,{size:16}):function(e){switch(e){case 0:return n.jsx(i.Edit2,{size:16});case 1:return n.jsx(i.FileCheck,{size:16});case 2:return n.jsx(i.User,{size:16});default:return n.jsx(i.CheckSquare,{size:16})}}(t);return n.jsxs(u.default.Fragment,{children:[n.jsxs("div",e.__assign({style:e.__assign({display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,color:"#374151"},E.approvalFlowItem),title:o},{children:[c,n.jsx("span",{children:l})]})),t<_.length-1&&n.jsx(i.ArrowRight,{size:16,color:"#9CA3AF"})]},t)})}))]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),i=require("lucide-react"),t=require("./AssignLevelAccordions.js"),r=require("./components/CustomCheckbox.js"),a=require("./assets/FileCheckCorner.js"),l=require("./styles/AssignReminderStyles.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(s),c=[{label:"Edit",icon:n.jsx(i.PenLine,{size:14})},{label:"Approve",icon:n.jsx(i.UserRoundCheck,{size:14})},{label:"Edit & Approve",icon:n.jsx(a.default,{})},{label:"Notify",icon:n.jsx(i.Bell,{size:14})}];exports.AssignReminderLevels=function(s){var a=s.title,o=s.levels,_=void 0===o?[]:o,d=s.requireFinalApproval,p=void 0!==d&&d,f=s.additionalInfo,g=s.setLevels,v=s.setRequireFinalApproval,x=s.fetchUsers,h=s.accessLevelOptions,j=void 0===h?c:h,A=s.customInfoIcon,S=s.onValidationError,y=s.customStyles,E=void 0===y?{}:y,L=s.totalLevels,m=s.finalApprovalDueDate,D=u.default.useState(!1),I=D[0],b=D[1],F=u.default.useMemo(function(){return Array.from({length:null!=L?L:3},function(e,n){var s;return null!==(s=_[n])&&void 0!==s?s:{title:"Level ".concat(n+1),headerName:"L ".concat(n+1),isMandatory:!1,dueDate:null,assignees:[],hasDueDate:!0}})},[_,L]),R=(_.length>0?_:F).filter(function(e){return!e.isHidden});return n.jsxs("div",e.__assign({style:e.__assign({padding:"8px",display:"flex",flexDirection:"column",gap:"18px"},E.container)},{children:[n.jsxs("span",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.header),E.levelsHeader)},{children:[n.jsx("span",{children:null!=a?a:"Assignee Levels"}),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.infoIconWrapper),E.infoIconWrapper),onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)}},{children:[null!=A?A:n.jsx(i.InfoIcon,{width:18,height:18}),n.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.tooltip),E.tooltip),I?e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.tooltipVisible),E.tooltipVisible):{})},{children:f||n.jsxs("span",{children:[n.jsx("b",{children:"How it works:"}),n.jsx("br",{}),"Level 1 is required by default, Enable Level 2 and Level 3 to add sequential approval steps for the review"]})}))]}))]})),n.jsx("div",e.__assign({style:e.__assign({display:"flex",flexDirection:"column",gap:"16px"},E.accordionsContainer)},{children:R.map(function(s,i){return n.jsx(t.default,{level:s,id:String(i),accessLevelOptions:j,fetchUsers:x,onToggleMandatory:function(){return n=i,void(null==g||g(function(s){return s.map(function(s,i){return i===n?e.__assign(e.__assign({},s),{isMandatory:!s.isMandatory}):s})}));var n},onDueDateChange:function(n){return function(n,s){var i;if(n>0&&s){var t=null===(i=_[n-1])||void 0===i?void 0:i.dueDate;if(t&&s<t)return void(null==S||S("Level ".concat(n+1," due date cannot be before Level ").concat(n," due date")))}null==g||g(function(i){return i.map(function(i,t){return t===n?e.__assign(e.__assign({},i),{dueDate:s}):i})})}(i,n)},onAssigneesChange:function(n){return s=i,t=n,void(null==g||g(function(n){return n.map(function(n,i){return i===s?e.__assign(e.__assign({},n),{assignees:t}):n})}));var s,t},onTitleChange:function(n){return function(n,s){null==g||g(function(i){return i.map(function(i,t){return t===n?e.__assign(e.__assign({},i),{title:s}):i})})}(i,n)},finalApprovalDueDate:m},i)})})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.finalApprovalBox),E.finalApprovalBox)},{children:[n.jsx(r.default,{getter:p,setter:null!=v?v:function(){}}),n.jsxs("div",e.__assign({style:e.__assign({display:"flex",flexDirection:"column",alignItems:"baseline",fontSize:"14px",fontWeight:400},E.finalApprovalTextWrapper)},{children:[n.jsx("span",e.__assign({style:e.__assign({fontWeight:500},E.finalApprovalTitle)},{children:"Require Final Approval"})),n.jsx("span",e.__assign({style:E.finalApprovalDesc},{children:"After all assignees approve, you (the owner) will be notified to give final sign-off before the redline is settled."}))]}))]})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_STYLES.currentApprovalFlow),E.currentApprovalFlow)},{children:[n.jsx("span",e.__assign({style:e.__assign({fontSize:"14px",fontWeight:600},E.currentApprovalFlowTitle)},{children:"Current Approval Flow"})),n.jsx("div",e.__assign({style:e.__assign({display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"4px"},E.approvalFlowItemsWrapper)},{children:_.map(function(s,t){var r,a=s.isHidden,l=(null===(r=s.assignees)||void 0===r?void 0:r.map(function(e){return e.name}).join(" / "))||"No users assigned",o=s.title||"Level ".concat(t+1),c=a?n.jsx(i.User,{size:16}):function(e){switch(e){case 0:return n.jsx(i.Edit2,{size:16});case 1:return n.jsx(i.FileCheck,{size:16});case 2:return n.jsx(i.User,{size:16});default:return n.jsx(i.CheckSquare,{size:16})}}(t);return n.jsxs(u.default.Fragment,{children:[n.jsxs("div",e.__assign({style:e.__assign({display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,color:"#374151"},E.approvalFlowItem),title:o},{children:[c,n.jsx("span",{children:l})]})),t<_.length-1&&n.jsx(i.ArrowRight,{size:16,color:"#9CA3AF"})]},t)})}))]}))]}))};
2
2
  //# sourceMappingURL=AssignReminderLevels.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),n=require("lucide-react"),s=require("react"),a=require("./AssignReminderLevels.js"),r=require("./AssignReminderTest.js"),t=require("./components/ReviewStatus.js"),l=require("./components/CustomDatePicker.js"),o=require("./ManageReminders.js"),_=require("./styles/AssignReminderWrapperStyles.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(s),c=[{tabName:"Assignees & Approvers",tabIcon:i.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},{children:[i.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),i.jsx("circle",{cx:"9",cy:"7",r:"4"}),i.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),i.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))},{tabName:"Manage Reminders",tabIcon:i.jsx(n.Bell,{size:15})},{tabName:"Review Status",tabIcon:i.jsx(n.ClipboardList,{size:15})}],v=[{id:1,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}},{id:2,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}},{id:3,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}}];exports.AssignReminderWrapper=function(d){var m,p,E,R=d.metadata,S=void 0===R?{}:R,g=d.reviewData,f=void 0===g?{}:g,A=d.levels,D=d.setLevels,y=d.requireFinalApproval,L=d.setRequireFinalApproval,T=d.approvalDueDate,b=d.setApprovalDueDate,h=d.onClose,N=d.fetchUsers,I=d.onSave,x=d.onValidationError,P=d.totalLevels,j=d.customStyles,F=void 0===j?{}:j,w=d.isSaving,q=void 0!==w&&w,M=d.onRequireFinalApproval,C=d.isOwner,W=void 0===C||C;d.remindersData;var U,B=d.remainderOwners,Y=d.setRemainderOwners,G=d.schedules,O=d.setSchedules,k=d.handelSendNow,H=d.showPreviewEmail,z=d.tabName,V=d.reminderLabels,X=d.reminderColors,J=d.reminderChipColor,K=d.reminderAssignees,Q=d.reminderFallbackRecipients,Z=d.reminderRecipientsColor,$=d.manualReminderTitle,ee=d.manualReminderDescription,ie=d.lastReminderText,ne=d.selectRecipientsLabel,se=d.previewEmailButtonLabel,ae=d.sendNowButtonLabel,re=d.reminderSuccessTitle,te=d.reminderSuccessDescription,le=d.escalationTitle,oe=d.escalationTitleTooltip,_e=d.escalationDescription,de=d.configureAutoReminderText,ue=d.getDynamicStatement,ce=d.reminderStartDateLabel,ve=d.documentDueDateLabel,me=d.reminderFrequencyLabel,pe=d.escalationRemindersLabel,Ee=d.escalationTooltip,Re=d.escalationConditionText,Se=d.daysText,ge=d.dueDataAndRepeatText,fe=d.reminderFrequencyOptions,Ae=d.escalationFrequencyOptions,De=d.beforeAfterOptions,ye=(null===(m=S.tabData)||void 0===m?void 0:m.length)?S.tabData:c,Le=W?ye:ye.filter(function(e,i){return 0!==i}),Te=s.useState(null!==(E=null===(p=Le[0])||void 0===p?void 0:p.tabName)&&void 0!==E?E:""),be=Te[0],he=Te[1],Ne=(U=be.toLowerCase()).includes("reminder")?"reminders":U.includes("review")?"review":"assignees",Ie=s.useState(A||r.INITIAL_LEVELS),xe=Ie[0],Pe=Ie[1],je=s.useState(y||!1),Fe=je[0],we=je[1],qe=s.useState(T||null),Me=qe[0],Ce=qe[1],We=s.useState(null),Ue=We[0],Be=We[1],Ye=s.useState([]),Ge=Ye[0],Oe=Ye[1],ke=s.useState(B||v),He=ke[0],ze=ke[1],Ve=void 0!==G?G:Ge,Xe=void 0!==O?O:Oe,Je=void 0!==B?B:He,Ke=u.default.useMemo(function(){return{due_at:Me?Me.toISOString():"",assignee:xe.filter(function(e){return!e.isHidden}).flatMap(function(e){return e.assignees||[]}).reduce(function(i,n,s){var a;return e.__assign(e.__assign({},i),((a={})[s]=n,a))},{})}},[Me,xe]);s.useEffect(function(){void 0!==B&&ze(B)},[B]),s.useEffect(function(){M&&M().then(function(e){Array.isArray(e)&&e.length>0?Be(e[0]):e&&!Array.isArray(e)&&Be(e)}).catch(function(e){return console.error("Failed to fetch user:",e)})},[]),s.useEffect(function(){z&&he(z)},[z]),s.useEffect(function(){var e,i;Le.some(function(e){return e.tabName===be})||he(null!==(i=null===(e=Le[0])||void 0===e?void 0:e.tabName)&&void 0!==i?i:"")},[Le,be]),s.useEffect(function(){A&&Pe(function(i){var n=i.find(function(e){return e.isHidden});return n?e.__spreadArray(e.__spreadArray([],A,!0),[n],!1):A})},[A]),s.useEffect(function(){void 0!==y&&we(y)},[y]),s.useEffect(function(){void 0!==T&&Ce(T)},[T]),s.useEffect(function(){Pe(function(i){var n=i.filter(function(e){return!e.isHidden});if(Fe){var s={headerName:"Final",title:"Final Approval",isMandatory:!0,hasDueDate:!1,dueDate:null,isHidden:!0,assignees:[{id:(null==Ue?void 0:Ue.id)||"me",email:(null==Ue?void 0:Ue.email)||"",name:(null==Ue?void 0:Ue.name)?"".concat(Ue.name," (You)"):"Username (You)",accessLevel:"Approve"}]};return e.__spreadArray(e.__spreadArray([],n,!0),[s],!1)}return n})},[Fe,Ue]),s.useEffect(function(){var e=xe.flatMap(function(e){return e.assignees||[]}).filter(function(e){return e.email});ze(function(i){var n=i.length===e.length&&e.every(function(e,n){var s;return(null===(s=i[n])||void 0===s?void 0:s.email)===e.email});return n?i:e.map(function(e,n){var s=i.find(function(i){return i.email===e.email});return s||{id:n+1,name:e.name,email:e.email,reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}}})})},[xe]);var Qe=S.wrapperTitle||"Assign Redline and Manage Reminders",Ze=S.wrapperSubTitle||"Sec 4.1 - Technical Security Information",$e=S.wrapperPriority||"High",ei=S.wrapperPriorityStyles||{backgroundColor:"#DC262618",color:"#DC2626",border:"1px solid #DC262640"};return i.jsx("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.overlay),F.overlay)},{children:i.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.modal),{transition:"width 0.3s ease, max-width 0.3s ease"}),"reminders"===Ne?{width:"1400px",maxWidth:"95vw"}:{}),F.modal)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.header),F.header)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.headerLeft),F.headerLeft)},{children:[i.jsx("span",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.modalTitle),F.modalTitle)},{children:Qe})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineRow),F.redlineRow)},{children:[i.jsx("span",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineName),F.redlineName)},{children:Ze})),i.jsx("span",e.__assign({style:e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineBadge),ei),F.redlineBadge)},{children:$e}))]}))]})),i.jsx("button",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.closeBtn),F.closeBtn),onClick:h},{children:i.jsx(n.X,{size:20,color:"#6B7280"})}))]})),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tabBar),F.tabBar)},{children:Le.map(function(n){var s=be===n.tabName;return i.jsxs("button",e.__assign({style:e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tab),F.tab),s?e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tabActive),F.tabActive):{}),onClick:function(){return he(n.tabName)}},{children:[n.tabIcon," ",n.tabName]}),n.tabName)})})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.body),F.body)},{children:["assignees"===Ne&&i.jsxs(i.Fragment,{children:[!1!==S.showFinalApprovalDueDate&&i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateBar),F.dueDateBar)},{children:[i.jsxs("span",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateLabel),F.dueDateLabel)},{children:["Final Approval due date"," ",i.jsx("sup",e.__assign({style:{color:"#DC2626",marginLeft:2}},{children:"*"}))]})),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateInputWrap),F.dueDateInputWrap)},{children:i.jsx(l.default,{value:Me?Me.toISOString().slice(0,10):"",onChange:Ce})})),i.jsxs("span",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.requiredToProceeed),F.requiredToProceeed)},{children:[i.jsx(n.CircleAlert,{size:14,color:"#6B7280"})," Required to proceed"]}))]})),i.jsx(a.AssignReminderLevels,{levels:xe,totalLevels:P,requireFinalApproval:Fe,setLevels:Pe,setRequireFinalApproval:function(e){we(e)},fetchUsers:N,onValidationError:x,customStyles:F})]}),"reminders"===Ne&&i.jsx(o.ManageReminders,e.__assign({data:Ke,schedules:Ve,setSchedules:Xe,remainderOwners:Je,setRemainderOwners:function(e){var i="function"==typeof e?e(Je):e;Y?Y(i):ze(i)},handelSendNow:function(e,i){k&&k(e||Ve,i||Je)},showPreviewEmail:null!=H&&H},void 0!==V&&{labels:V},void 0!==X&&{colors:X},void 0!==J&&{chipColor:J},void 0!==K&&{assignees:K},void 0!==Q&&{fallbackRecipients:Q},void 0!==Z&&{recipientsColor:Z},void 0!==$&&{manualReminderTitle:$},void 0!==ee&&{manualReminderDescription:ee},void 0!==ie&&{lastReminderText:ie},void 0!==ne&&{selectRecipientsLabel:ne},void 0!==se&&{previewEmailButtonLabel:se},void 0!==ae&&{sendNowButtonLabel:ae},void 0!==re&&{reminderSuccessTitle:re},void 0!==te&&{reminderSuccessDescription:te},void 0!==le&&{escalationTitle:le},void 0!==oe&&{escalationTitleTooltip:oe},void 0!==_e&&{escalationDescription:_e},void 0!==de&&{configureAutoReminderText:de},void 0!==ue&&{getDynamicStatement:ue},void 0!==ce&&{reminderStartDateLabel:ce},void 0!==ve&&{documentDueDateLabel:ve},void 0!==me&&{reminderFrequencyLabel:me},void 0!==pe&&{escalationRemindersLabel:pe},void 0!==Ee&&{escalationTooltip:Ee},void 0!==Re&&{escalationConditionText:Re},void 0!==Se&&{daysText:Se},void 0!==ge&&{dueDataAndRepeatText:ge},void 0!==fe&&{reminderFrequencyOptions:fe},void 0!==Ae&&{escalationFrequencyOptions:Ae},void 0!==De&&{beforeAfterOptions:De})),"review"===Ne&&i.jsx(t.default,{levels:xe,reviewData:f})]})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.footer),F.footer)},{children:[i.jsx("button",e.__assign({style:e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.clearBtn),F.clearBtn),q?F.actionBtnDisabled:{}),onClick:function(){Pe(r.INITIAL_LEVELS.map(function(i){return e.__assign(e.__assign({},i),{assignees:[],dueDate:null})})),we(!1),Ce(null)},disabled:q},{children:"Clear"})),i.jsx("button",e.__assign({style:e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.saveBtn),F.saveBtn),q?F.actionBtnDisabled:{}),onClick:function(){var e=xe.filter(function(e){return!e.isHidden});null==D||D(e),null==L||L(Fe),null==b||b(Me),null==I||I({levels:e,requireFinalApproval:Fe,finalApprovalDueDate:Me,activeTab:Ne,schedules:Ve,remainderOwners:Je})},disabled:q},{children:"Save Changes"}))]}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),n=require("lucide-react"),s=require("react"),a=require("./AssignReminderLevels.js"),r=require("./AssignReminderTest.js"),t=require("./components/ReviewStatus.js"),l=require("./components/CustomDatePicker.js"),o=require("./ManageReminders.js"),_=require("./styles/AssignReminderWrapperStyles.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(s),c=[{tabName:"Assignees & Approvers",tabIcon:i.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},{children:[i.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),i.jsx("circle",{cx:"9",cy:"7",r:"4"}),i.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),i.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))},{tabName:"Manage Reminders",tabIcon:i.jsx(n.Bell,{size:15})},{tabName:"Review Status",tabIcon:i.jsx(n.ClipboardList,{size:15})}],v=[{id:1,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}},{id:2,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}},{id:3,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}}];exports.AssignReminderWrapper=function(d){var m,p,E,R=d.metadata,S=void 0===R?{}:R,g=d.reviewData,f=void 0===g?{}:g,A=d.levels,D=d.setLevels,y=d.requireFinalApproval,L=d.setRequireFinalApproval,T=d.approvalDueDate,b=d.setApprovalDueDate,h=d.onClose,N=d.fetchUsers,I=d.onSave,x=d.onValidationError,P=d.totalLevels,j=d.customStyles,F=void 0===j?{}:j,w=d.isSaving,q=void 0!==w&&w,M=d.onRequireFinalApproval,C=d.isOwner,W=void 0===C||C;d.remindersData;var U,B=d.remainderOwners,Y=d.setRemainderOwners,G=d.schedules,O=d.setSchedules,k=d.handelSendNow,H=d.showPreviewEmail,z=d.tabName,V=d.reminderLabels,X=d.reminderColors,J=d.reminderChipColor,K=d.reminderAssignees,Q=d.reminderFallbackRecipients,Z=d.reminderRecipientsColor,$=d.manualReminderTitle,ee=d.manualReminderDescription,ie=d.lastReminderText,ne=d.selectRecipientsLabel,se=d.previewEmailButtonLabel,ae=d.sendNowButtonLabel,re=d.reminderSuccessTitle,te=d.reminderSuccessDescription,le=d.escalationTitle,oe=d.escalationTitleTooltip,_e=d.escalationDescription,de=d.configureAutoReminderText,ue=d.getDynamicStatement,ce=d.reminderStartDateLabel,ve=d.documentDueDateLabel,me=d.reminderFrequencyLabel,pe=d.escalationRemindersLabel,Ee=d.escalationTooltip,Re=d.escalationConditionText,Se=d.daysText,ge=d.dueDataAndRepeatText,fe=d.reminderFrequencyOptions,Ae=d.escalationFrequencyOptions,De=d.beforeAfterOptions,ye=(null===(m=S.tabData)||void 0===m?void 0:m.length)?S.tabData:c,Le=W?ye:ye.filter(function(e,i){return 0!==i}),Te=s.useState(null!==(E=null===(p=Le[0])||void 0===p?void 0:p.tabName)&&void 0!==E?E:""),be=Te[0],he=Te[1],Ne=(U=be.toLowerCase()).includes("reminder")?"reminders":U.includes("review")?"review":"assignees",Ie=s.useState(A||r.INITIAL_LEVELS),xe=Ie[0],Pe=Ie[1],je=s.useState(y||!1),Fe=je[0],we=je[1],qe=s.useState(T||null),Me=qe[0],Ce=qe[1],We=s.useState(null),Ue=We[0],Be=We[1],Ye=s.useState([]),Ge=Ye[0],Oe=Ye[1],ke=s.useState(B||v),He=ke[0],ze=ke[1],Ve=void 0!==G?G:Ge,Xe=void 0!==O?O:Oe,Je=void 0!==B?B:He,Ke=u.default.useMemo(function(){return{due_at:Me?Me.toISOString():"",assignee:xe.filter(function(e){return!e.isHidden}).flatMap(function(e){return e.assignees||[]}).reduce(function(i,n,s){var a;return e.__assign(e.__assign({},i),((a={})[s]=n,a))},{})}},[Me,xe]);s.useEffect(function(){void 0!==B&&ze(B)},[B]),s.useEffect(function(){M&&M().then(function(e){Array.isArray(e)&&e.length>0?Be(e[0]):e&&!Array.isArray(e)&&Be(e)}).catch(function(e){return console.error("Failed to fetch user:",e)})},[]),s.useEffect(function(){z&&he(z)},[z]),s.useEffect(function(){var e,i;Le.some(function(e){return e.tabName===be})||he(null!==(i=null===(e=Le[0])||void 0===e?void 0:e.tabName)&&void 0!==i?i:"")},[Le,be]),s.useEffect(function(){A&&Pe(function(i){var n=i.find(function(e){return e.isHidden});return n?e.__spreadArray(e.__spreadArray([],A,!0),[n],!1):A})},[A]),s.useEffect(function(){void 0!==y&&we(y)},[y]),s.useEffect(function(){void 0!==T&&Ce(T)},[T]),s.useEffect(function(){Pe(function(i){var n=i.filter(function(e){return!e.isHidden});if(Fe){var s={headerName:"Final",title:"Final Approval",isMandatory:!0,hasDueDate:!1,dueDate:null,isHidden:!0,assignees:[{id:(null==Ue?void 0:Ue.id)||"me",email:(null==Ue?void 0:Ue.email)||"",name:(null==Ue?void 0:Ue.name)?"".concat(Ue.name," (You)"):"Username (You)",accessLevel:"Approve"}]};return e.__spreadArray(e.__spreadArray([],n,!0),[s],!1)}return n})},[Fe,Ue]),s.useEffect(function(){var e=xe.flatMap(function(e){return e.assignees||[]}).filter(function(e){return e.email});ze(function(i){var n=i.length===e.length&&e.every(function(e,n){var s;return(null===(s=i[n])||void 0===s?void 0:s.email)===e.email});return n?i:e.map(function(e,n){var s=i.find(function(i){return i.email===e.email});return s||{id:n+1,name:e.name,email:e.email,reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}}})})},[xe]);var Qe=S.wrapperTitle||"Assign Redline and Manage Reminders",Ze=S.wrapperSubTitle||"Sec 4.1 - Technical Security Information",$e=S.wrapperPriority||"High",ei=S.wrapperPriorityStyles||{backgroundColor:"#DC262618",color:"#DC2626",border:"1px solid #DC262640"};return i.jsx("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.overlay),F.overlay)},{children:i.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.modal),{transition:"width 0.3s ease, max-width 0.3s ease"}),"reminders"===Ne?{width:"1400px",maxWidth:"95vw"}:{}),F.modal)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.header),F.header)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.headerLeft),F.headerLeft)},{children:[i.jsx("span",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.modalTitle),F.modalTitle)},{children:Qe})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineRow),F.redlineRow)},{children:[i.jsx("span",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineName),F.redlineName)},{children:Ze})),i.jsx("span",e.__assign({style:e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineBadge),ei),F.redlineBadge)},{children:$e}))]}))]})),i.jsx("button",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.closeBtn),F.closeBtn),onClick:h},{children:i.jsx(n.X,{size:20,color:"#6B7280"})}))]})),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tabBar),F.tabBar)},{children:Le.map(function(n){var s=be===n.tabName;return i.jsxs("button",e.__assign({style:e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tab),F.tab),s?e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tabActive),F.tabActive):{}),onClick:function(){return he(n.tabName)}},{children:[n.tabIcon," ",n.tabName]}),n.tabName)})})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.body),F.body)},{children:["assignees"===Ne&&i.jsxs(i.Fragment,{children:[!1!==S.showFinalApprovalDueDate&&i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateBar),F.dueDateBar)},{children:[i.jsxs("span",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateLabel),F.dueDateLabel)},{children:["Final Approval due date"," ",i.jsx("sup",e.__assign({style:{color:"#DC2626",marginLeft:2}},{children:"*"}))]})),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateInputWrap),F.dueDateInputWrap)},{children:i.jsx(l.default,{value:Me?Me.toISOString().slice(0,10):"",onChange:Ce})})),i.jsxs("span",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.requiredToProceeed),F.requiredToProceeed)},{children:[i.jsx(n.CircleAlert,{size:14,color:"#6B7280"})," Required to proceed"]}))]})),i.jsx(a.AssignReminderLevels,{levels:xe,totalLevels:P,requireFinalApproval:Fe,setLevels:Pe,setRequireFinalApproval:function(e){we(e)},fetchUsers:N,onValidationError:x,customStyles:F,finalApprovalDueDate:Me})]}),"reminders"===Ne&&i.jsx(o.ManageReminders,e.__assign({data:Ke,schedules:Ve,setSchedules:Xe,remainderOwners:Je,setRemainderOwners:function(e){var i="function"==typeof e?e(Je):e;Y?Y(i):ze(i)},handelSendNow:function(e,i){k&&k(e||Ve,i||Je)},showPreviewEmail:null!=H&&H},void 0!==V&&{labels:V},void 0!==X&&{colors:X},void 0!==J&&{chipColor:J},void 0!==K&&{assignees:K},void 0!==Q&&{fallbackRecipients:Q},void 0!==Z&&{recipientsColor:Z},void 0!==$&&{manualReminderTitle:$},void 0!==ee&&{manualReminderDescription:ee},void 0!==ie&&{lastReminderText:ie},void 0!==ne&&{selectRecipientsLabel:ne},void 0!==se&&{previewEmailButtonLabel:se},void 0!==ae&&{sendNowButtonLabel:ae},void 0!==re&&{reminderSuccessTitle:re},void 0!==te&&{reminderSuccessDescription:te},void 0!==le&&{escalationTitle:le},void 0!==oe&&{escalationTitleTooltip:oe},void 0!==_e&&{escalationDescription:_e},void 0!==de&&{configureAutoReminderText:de},void 0!==ue&&{getDynamicStatement:ue},void 0!==ce&&{reminderStartDateLabel:ce},void 0!==ve&&{documentDueDateLabel:ve},void 0!==me&&{reminderFrequencyLabel:me},void 0!==pe&&{escalationRemindersLabel:pe},void 0!==Ee&&{escalationTooltip:Ee},void 0!==Re&&{escalationConditionText:Re},void 0!==Se&&{daysText:Se},void 0!==ge&&{dueDataAndRepeatText:ge},void 0!==fe&&{reminderFrequencyOptions:fe},void 0!==Ae&&{escalationFrequencyOptions:Ae},void 0!==De&&{beforeAfterOptions:De})),"review"===Ne&&i.jsx(t.default,{levels:xe,reviewData:f})]})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.footer),F.footer)},{children:[i.jsx("button",e.__assign({style:e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.clearBtn),F.clearBtn),q?F.actionBtnDisabled:{}),onClick:function(){Pe(r.INITIAL_LEVELS.map(function(i){return e.__assign(e.__assign({},i),{assignees:[],dueDate:null})})),we(!1),Ce(null)},disabled:q},{children:"Clear"})),i.jsx("button",e.__assign({style:e.__assign(e.__assign(e.__assign({},_.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.saveBtn),F.saveBtn),q?F.actionBtnDisabled:{}),onClick:function(){var e=xe.filter(function(e){return!e.isHidden});null==D||D(e),null==L||L(Fe),null==b||b(Me),null==I||I({levels:e,requireFinalApproval:Fe,finalApprovalDueDate:Me,activeTab:Ne,schedules:Ve,remainderOwners:Je})},disabled:q},{children:"Save Changes"}))]}))]}))}))};
2
2
  //# sourceMappingURL=AssignReminderWrapper.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),t=require("react"),l=require("../styles/AssignLevelsDatePickerStyles.js");exports.default=function(n){var i=n.value,s=n.onSet,u=t.useRef(null);return r.jsxs("div",e.__assign({style:l.DATE_PICKER_STYLES.wrapper,onClick:function(){var e,r;return null===(r=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===r?void 0:r.call(e)}},{children:[r.jsx("span",e.__assign({style:l.DATE_PICKER_STYLES.placeholder},{children:i?i.toLocaleDateString("en-GB"):"--/--/----"})),r.jsx("input",{ref:u,type:"date",style:l.DATE_PICKER_STYLES.input,value:i?i.toISOString().split("T")[0]:"",onChange:function(e){var r=e.target.value;s(r?new Date(r):null)}})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("react"),i=require("../styles/AssignLevelsDatePickerStyles.js");exports.default=function(l){var n=l.value,s=l.onSet,a=l.maxDate,u=r.useRef(null);return t.jsxs("div",e.__assign({style:i.DATE_PICKER_STYLES.wrapper,onClick:function(){var e,t;return null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t?void 0:t.call(e)}},{children:[t.jsx("span",e.__assign({style:i.DATE_PICKER_STYLES.placeholder},{children:n?n.toLocaleDateString("en-GB"):"--/--/----"})),t.jsx("input",{ref:u,type:"date",max:a?a.toISOString().split("T")[0]:void 0,style:i.DATE_PICKER_STYLES.input,value:n?n.toISOString().split("T")[0]:"",onChange:function(e){var t=e.target.value;s(t?new Date(t):null)}})]}))};
2
2
  //# sourceMappingURL=AssignLevelsDatePicker.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),i=require("react"),s=require("./CustomDropdown.js"),r=require("./AddUserPopup.js");exports.default=function(t){var o,a,l,d=this,u=t.assignees,p=t.onAssigneeChange,c=t.accessLevelOptions,x=t.fetchUsers,g=t.wrapperEl,_=i.useState(""),f=_[0],v=_[1],h=i.useState([]),m=h[0],j=h[1],b=i.useState(null),y=b[0],w=b[1],S=i.useState(null),M=S[0],C=S[1];return i.useEffect(function(){if(f.trim()){var n=setTimeout(function(){return e.__awaiter(d,void 0,void 0,function(){var n,i,s;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,x(f)];case 1:return n=e.sent(),i=new Set(u.map(function(e){return e.id})),j(n.filter(function(e){return!i.has(e.id)})),[3,3];case 2:return s=e.sent(),console.error("[LevelData]: fetchUser error:",s),j([]),[3,3];case 3:return[2]}})})},300);return function(){return clearTimeout(n)}}j([])},[f,u]),n.jsxs("div",e.__assign({style:{borderTop:"1px solid #CBD5E1",padding:"20px"}},{children:[n.jsx("span",e.__assign({style:{fontWeight:600,marginBottom:"8px",fontSize:"14px"}},{children:"Assignee Emails"})),n.jsxs("div",e.__assign({style:{border:"1px solid #CBD5E1",borderRadius:"8px",padding:"8px",marginTop:"10px",display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},{children:[u.map(function(i){var r,t,o,a,l,d=!!(null===(r=i.notes)||void 0===r?void 0:r.trim());return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px",background:"#E9D5FF",borderRadius:"10px",padding:"2px 8px",fontSize:"12px"}},{children:[n.jsx("span",e.__assign({style:{padding:"4px"}},{children:i.name})),n.jsx(s.default,{value:null!==(a=null!==(t=i.accessLevel)&&void 0!==t?t:null===(o=c[0])||void 0===o?void 0:o.label)&&void 0!==a?a:"",options:c,onChange:function(n){return s=i.id,r=n,void p(u.map(function(n){return n.id===s?e.__assign(e.__assign({},n),{accessLevel:r}):n}));var s,r}}),n.jsxs("div",e.__assign({style:{position:"relative",display:"inline-flex"},onMouseEnter:function(){return C(i.id)},onMouseLeave:function(){return C(null)}},{children:[n.jsx("button",e.__assign({type:"button",onClick:function(){return function(n){w(e.__assign({},n))}(i)},style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",color:d?"#7C3AED":"#C4B5FD"}},{children:n.jsxs("svg",e.__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.jsx("path",{d:"M2 6h4"}),n.jsx("path",{d:"M2 10h4"}),n.jsx("path",{d:"M2 14h4"}),n.jsx("path",{d:"M2 18h4"}),n.jsx("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2"}),n.jsx("path",{d:"M9.5 8h5"}),n.jsx("path",{d:"M9.5 12H16"}),n.jsx("path",{d:"M9.5 16H14"})]}))})),M===i.id&&(null===(l=i.notes)||void 0===l?void 0:l.trim())&&n.jsx("div",e.__assign({style:{position:"absolute",bottom:"120%",left:"50%",transform:"translateX(-50%)",background:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"pre-wrap",maxWidth:"250px",zIndex:9999,boxShadow:"0 2px 8px rgba(0,0,0,0.2)"}},{children:i.notes}))]})),n.jsx("button",e.__assign({style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",fontSize:"12px"},onClick:function(){return e=i.id,p(u.filter(function(n){return n.id!==e})),void((null==y?void 0:y.id)===e&&w(null));var e},"aria-label":"Remove ".concat(i.name)},{children:"✕"}))]}),i.id)}),n.jsx("input",{type:"text",value:f,placeholder:"Search users...",onChange:function(e){return v(e.target.value)},style:{border:"none",outline:"none",flex:1,minWidth:"150px",fontSize:"12px"}})]})),m.length>0&&n.jsx("div",e.__assign({style:{border:"1px solid #CBD5E1",borderRadius:"8px",marginTop:"8px"}},{children:m.map(function(i){return n.jsxs("div",e.__assign({style:{padding:"8px",cursor:"pointer"},onClick:function(){return function(n){var i,s,r,t;u.some(function(e){return e.id===n.id})||(p(e.__spreadArray(e.__spreadArray([],u,!0),[e.__assign(e.__assign({},n),{accessLevel:null!==(s=null===(i=c[0])||void 0===i?void 0:i.label)&&void 0!==s?s:"",notes:"",sendMailNow:!1})],!1)),v(""),j([]),w(e.__assign(e.__assign({},n),{accessLevel:null!==(t=null===(r=c[0])||void 0===r?void 0:r.label)&&void 0!==t?t:""})))}(i)}},{children:[i.name,i.email&&n.jsx("span",e.__assign({style:{marginLeft:"8px",color:"#6B7280",fontSize:"11px"}},{children:i.email}))]}),i.id)})})),y&&n.jsx(r.AddUserPopup,{user:y,accessLevel:null!==(l=null!==(o=y.accessLevel)&&void 0!==o?o:null===(a=c[0])||void 0===a?void 0:a.label)&&void 0!==l?l:"",wrapperEl:g,onBackToEditing:function(){y&&(p(u.map(function(n){return n.id===y.id?e.__assign(e.__assign({},n),{notes:"",sendMailNow:!1}):n})),w(null))},onSendLater:function(n){y&&(p(u.map(function(i){return i.id===y.id?e.__assign(e.__assign({},i),{notes:n,sendMailNow:!1}):i})),w(null))},onSendNow:function(n){y&&(p(u.map(function(i){return i.id===y.id?e.__assign(e.__assign({},i),{notes:n,sendMailNow:!0}):i})),w(null))}})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),i=require("react"),s=require("./CustomDropdown.js"),r=require("./AddUserPopup.js");exports.default=function(t){var a,o,l,d=this,u=t.assignees,p=t.onAssigneeChange,c=t.accessLevelOptions,x=t.fetchUsers,g=t.wrapperEl,_=i.useState(""),f=_[0],v=_[1],h=i.useState([]),m=h[0],j=h[1],y=i.useState(null),b=y[0],w=y[1];return i.useEffect(function(){if(f.trim()){var n=setTimeout(function(){return e.__awaiter(d,void 0,void 0,function(){var n,i,s;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,x(f)];case 1:return n=e.sent(),i=new Set(u.map(function(e){return e.id})),j(n.filter(function(e){return!i.has(e.id)})),[3,3];case 2:return s=e.sent(),console.error("[LevelData]: fetchUser error:",s),j([]),[3,3];case 3:return[2]}})})},300);return function(){return clearTimeout(n)}}j([])},[f,u]),n.jsxs("div",e.__assign({style:{borderTop:"1px solid #CBD5E1",padding:"20px"}},{children:[n.jsx("span",e.__assign({style:{fontWeight:600,marginBottom:"8px",fontSize:"14px"}},{children:"Assignee Emails"})),n.jsxs("div",e.__assign({style:{border:"1px solid #CBD5E1",borderRadius:"8px",padding:"8px",marginTop:"10px",display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},{children:[u.map(function(i){var r,t,a,o=!!i.notes&&"string"==typeof i.notes&&!!i.notes.trim();return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px",background:"#E9D5FF",borderRadius:"10px",padding:"2px 8px",fontSize:"12px"}},{children:[n.jsx("span",e.__assign({style:{padding:"4px"}},{children:i.name})),n.jsx(s.default,{value:null!==(a=null!==(r=i.accessLevel)&&void 0!==r?r:null===(t=c[0])||void 0===t?void 0:t.label)&&void 0!==a?a:"",options:c,onChange:function(n){return s=i.id,r=n,void p(u.map(function(n){return n.id===s?e.__assign(e.__assign({},n),{accessLevel:r}):n}));var s,r}}),n.jsx("div",e.__assign({style:{position:"relative",display:"inline-flex"}},{children:n.jsx("button",e.__assign({type:"button",onClick:function(){return function(n){w(e.__assign({},n))}(i)},style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",color:o?"#7C3AED":"#C4B5FD"}},{children:n.jsxs("svg",e.__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.jsx("path",{d:"M2 6h4"}),n.jsx("path",{d:"M2 10h4"}),n.jsx("path",{d:"M2 14h4"}),n.jsx("path",{d:"M2 18h4"}),n.jsx("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2"}),n.jsx("path",{d:"M9.5 8h5"}),n.jsx("path",{d:"M9.5 12H16"}),n.jsx("path",{d:"M9.5 16H14"})]}))}))})),n.jsx("button",e.__assign({style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",fontSize:"12px"},onClick:function(){return e=i.id,p(u.filter(function(n){return n.id!==e})),void((null==b?void 0:b.id)===e&&w(null));var e},"aria-label":"Remove ".concat(i.name)},{children:"✕"}))]}),i.id)}),n.jsx("input",{type:"text",value:f,placeholder:"Search users...",onChange:function(e){return v(e.target.value)},style:{border:"none",outline:"none",flex:1,minWidth:"150px",fontSize:"12px"}})]})),m.length>0&&n.jsx("div",e.__assign({style:{border:"1px solid #CBD5E1",borderRadius:"8px",marginTop:"8px"}},{children:m.map(function(i){return n.jsxs("div",e.__assign({style:{padding:"8px",cursor:"pointer"},onClick:function(){return function(n){var i,s,r,t;u.some(function(e){return e.id===n.id})||(p(e.__spreadArray(e.__spreadArray([],u,!0),[e.__assign(e.__assign({},n),{accessLevel:null!==(s=null===(i=c[0])||void 0===i?void 0:i.label)&&void 0!==s?s:"",notes:"",sendMailNow:!1})],!1)),v(""),j([]),w(e.__assign(e.__assign({},n),{accessLevel:null!==(t=null===(r=c[0])||void 0===r?void 0:r.label)&&void 0!==t?t:""})))}(i)}},{children:[i.name,i.email&&n.jsx("span",e.__assign({style:{marginLeft:"8px",color:"#6B7280",fontSize:"11px"}},{children:i.email}))]}),i.id)})})),b&&n.jsx(r.AddUserPopup,{user:b,accessLevel:null!==(l=null!==(a=b.accessLevel)&&void 0!==a?a:null===(o=c[0])||void 0===o?void 0:o.label)&&void 0!==l?l:"",wrapperEl:g,onBackToEditing:function(){b&&(p(u.map(function(n){return n.id===b.id?e.__assign(e.__assign({},n),{notes:"",sendMailNow:!1}):n})),w(null))},onSendLater:function(n){b&&(p(u.map(function(i){return i.id===b.id?e.__assign(e.__assign({},i),{notes:n,sendMailNow:!1}):i})),w(null))},onSendNow:function(n){b&&(p(u.map(function(i){return i.id===b.id?e.__assign(e.__assign({},i),{notes:n,sendMailNow:!0}):i})),w(null))}})]}))};
2
2
  //# sourceMappingURL=LevelData.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),t=require("../styles/ReviewStatusStyles.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=l(i),o=function(e){var s=e.trim().split(/\s+/);return 1===s.length?s[0].slice(0,2).toUpperCase():(s[0][0]+s[s.length-1][0]).toUpperCase()},a=function(e){for(var s=[{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 s[Math.abs(i)%s.length]};function d(i){var t,l,r=i.reviewLevel,o=r.level,a=r.assigneeStatuses,d=r.extendedStatus,c=null!==(t={approved:{bg:"#ECFDF5",color:"#059669",icon:s.jsx(n.Check,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:s.jsx(n.Hourglass,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:s.jsx(n.X,{size:14}),text:"Rejected"},optional:{bg:"#F8FAFC",color:"#64748B",icon:s.jsx(n.Info,{size:14}),text:"Optional"}}[d])&&void 0!==t?t:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},x="approved"===d?"1px solid #D1FAE5":"rejected"===d?"1px solid #FCA5A5":"optional"===d?"1px dashed #CBD5E1":"1px solid #E5E7EB",u="approved"===d?"#F0FDF4":"rejected"===d?"#FEF2F2":"#F8FAFC";return o.assignees&&(null===(l=o.assignees)||void 0===l?void 0:l.length)<1?null:s.jsxs("div",e.__assign({style:{backgroundColor:"#FFFFFF",border:x,borderRadius:"8px",display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:u,borderBottom:x,padding:"12px 16px"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[s.jsx(p,{name:o.headerName}),s.jsx("span",e.__assign({style:{fontSize:15,fontWeight:500,color:"#374151"}},{children:o.title}))]})),s.jsxs("div",e.__assign({style:{backgroundColor:c.bg,color:c.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[c.icon,c.text]}))]})),s.jsx("div",e.__assign({style:{padding:"16px"}},{children:a.length>0?s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:16}},{children:a.map(function(e,i){var n;return s.jsx(g,{assigneeStatus:e,extendedStatus:d},null!==(n=e.user.id)&&void 0!==n?n:i)})})):s.jsx("div",e.__assign({style:{fontSize:14,color:"#6B7280"}},{children:"No assignees added yet"}))}))]}))}function c(i){var t,l,r,d,c=i.reviewLevel,g=c.assigneeStatuses,p=c.extendedStatus,x=null!==(t={approved:{bg:"#ECFDF5",color:"#059669",icon:s.jsx(n.Check,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:s.jsx(n.Hourglass,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:s.jsx(n.X,{size:14}),text:"Rejected"},optional:{bg:"#F8FAFC",color:"#64748B",icon:s.jsx(n.Info,{size:14}),text:"Optional"}}[p])&&void 0!==t?t:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},u=null===(l=g[0])||void 0===l?void 0:l.user;return s.jsxs("div",e.__assign({style:{backgroundColor:"#FFFFFF",border:"1px solid #E5E7EB",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[u?s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[s.jsx("div",e.__assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:a(null!==(r=u.id)&&void 0!==r?r:u.name).bg,color:a(null!==(d=u.id)&&void 0!==d?d:u.name).fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"14px"}},{children:o(u.name)})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column"}},{children:[s.jsx("span",e.__assign({style:{fontSize:"15px",fontWeight:400,color:"#374151"}},{children:u.name})),s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#6B7280"}},{children:"Will be notified after all levels approve"}))]}))]})):s.jsx("span",e.__assign({style:{fontSize:14,color:"#6B7280"}},{children:"No owner assigned"})),s.jsxs("div",e.__assign({style:{backgroundColor:x.bg,color:x.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[x.icon,x.text]}))]}))}function g(i){var t,l=i.assigneeStatus,r=i.extendedStatus,d=l.user,c=l.approved||"approved"===d.action,g=l.rejected||"rejected"===d.action,p=o(d.name),x=a(null!==(t=d.id)&&void 0!==t?t:d.name);return s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[s.jsx("div",e.__assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:x.bg,color:x.fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,fontSize:"13px"}},{children:p})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"2px"}},{children:[s.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:400,color:"#374151"}},{children:d.name})),s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#6B7280"}},{children:d.email}))]}))]})),s.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:c?s.jsx(n.CircleCheck,{size:20,color:"#16A34A",strokeWidth:1.5}):g?s.jsx(n.X,{size:20,color:"#DC2626",strokeWidth:1.5}):"pending"===r?s.jsxs(s.Fragment,{children:[s.jsx("span",{style:{fontSize:"13px",color:"#4B5563"}}),s.jsx(n.MinusCircle,{size:20,color:"#9CA3AF",strokeWidth:1.5})]}):"optional"===r?s.jsx(n.MinusCircle,{size:20,color:"#CBD5E1",strokeWidth:1.5}):s.jsx(n.MinusCircle,{size:20,color:"#9CA3AF",strokeWidth:1.5})}))]}))}function p(i){var n=i.name,t=a(n);return s.jsx("span",e.__assign({style:{backgroundColor:t.bg,color:t.fg,borderRadius:12,padding:"3px 10px",fontSize:12,fontWeight:500}},{children:n}))}var x=function(e){switch(e){case 0:return s.jsx(n.LucidePen,{size:16,color:"#475569"});case 1:return s.jsx(n.FileCheck,{size:16,color:"#475569"});case 2:return s.jsx(n.User,{size:16,color:"#475569"});default:return s.jsx(n.CheckCircle,{size:16,color:"#475569"})}};function u(i){var l=i.levels,o=l.some(function(e){var s,i;return(null!==(i=null===(s=e.assignees)||void 0===s?void 0:s.length)&&void 0!==i?i:0)>0});return s.jsxs("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.flowBox},{children:[s.jsx("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.flowTitle},{children:"Current Approval Flow"})),o?s.jsx("div",e.__assign({style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center",marginTop:6}},{children:l.map(function(i,o){var a,d=i.isHidden,c=!i.isMandatory&&!d,g=null===(a=i.assignees)||void 0===a?void 0:a.map(function(e){return e.name}).join(" / ");if(!g)return null;var p=d?s.jsx(n.User,{size:16,color:"#475569"}):x(o);return s.jsxs(r.default.Fragment,{children:[s.jsxs("span",e.__assign({style:e.__assign(e.__assign({},t.DEFAULT_REVIEW_STATUS_STYLES.flowChip),{display:"flex",alignItems:"center",gap:"6px",border:c?"1px dashed #CBD5E1":void 0})},{children:[p,s.jsxs("span",e.__assign({style:{fontSize:13,color:c?"#64748B":"#374151"}},{children:[g," ",c&&"(Optional)"]}))]})),o<l.length-1&&s.jsx(n.ArrowRight,{size:16,color:"#9CA3AF"})]},o)})})):s.jsx("p",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.flowEmpty},{children:"No owners assigned yet."}))]}))}exports.default=function(i){var l=i.levels,o=i.reviewData,a=void 0===o?{}:o,g=l.map(function(e,s){var i,n,t,l=null!==(n=null!==(i=a[s])&&void 0!==i?i:a[e.headerName])&&void 0!==n?n:{},r=(null!==(t=e.assignees)&&void 0!==t?t:[]).map(function(e){return{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}}),o="not_started";if(!0===e.isApproved)o="approved";else if(!0===e.isRejected)o="rejected";else if("approved"===e.status||"completed"===e.status)o="approved";else if("rejected"===e.status)o="rejected";else{var d=r.length>0&&r.every(function(e){return e.approved}),c=r.some(function(e){return e.rejected});d?o="approved":c&&(o="rejected")}return{level:e,assigneeStatuses:r,status:o}}),p=!1,x=g.map(function(s){var i="waiting",n=!0===s.level.isHidden;return"approved"===s.status?i="approved":"rejected"===s.status?(i="rejected",p=!0):s.level.isMandatory||n?p||(i="pending",p=!0):i="optional",e.__assign(e.__assign({},s),{extendedStatus:i,isFinalApproval:n})}),_=function(e){return e.filter(function(e){return"approved"===e.status}).length}(g),v=g.length;return s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:24}},{children:[s.jsxs("div",{children:[s.jsxs("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressHeader},{children:[s.jsx("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressTitle},{children:"Approval Progress"})),s.jsxs("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressCount},{children:[_," of ",v," level",1!==v?"s":""," complete"]}))]})),s.jsx("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressBarTrack},{children:x.map(function(i,n){var l,r,o,a="approved"===i.extendedStatus,d="rejected"===i.extendedStatus,c="optional"===i.extendedStatus,g=0===n,p=n===v-1;if(!((null===(l=i.level)||void 0===l?void 0:l.assignees)&&(null===(o=null===(r=i.level)||void 0===r?void 0:r.assignees)||void 0===o?void 0:o.length)<1))return s.jsx("div",{style:e.__assign(e.__assign({},t.DEFAULT_REVIEW_STATUS_STYLES.progressSegment),{backgroundColor:a?"#6366F1":d?"#EF4444":c?"#F1F5F9":"#E5E7EB",borderRadius:g&&p?"999px":g?"999px 0 0 999px":p?"0 999px 999px 0":"0",marginRight:p?0:3})},n)})})),s.jsx("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressLabels},{children:x.map(function(i,n){return s.jsx(s.Fragment,{children:s.jsx("span",e.__assign({style:e.__assign(e.__assign({},t.DEFAULT_REVIEW_STATUS_STYLES.progressLabel),{color:"approved"===i.extendedStatus?"#6366F1":"rejected"===i.extendedStatus?"#EF4444":"#9CA3AF",fontWeight:"approved"===i.extendedStatus||"rejected"===i.extendedStatus?600:400})},{children:i.level.assignees&&i.level.assignees.length>0?"".concat(i.level.headerName," - ").concat(i.level.title):""}),n)})})}))]}),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:0}},{children:[s.jsx("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.sectionHeadingRow},{children:s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[s.jsx("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.sectionTitle},{children:"Approval Levels"})),s.jsx(n.Info,{size:15,color:"#9CA3AF"})]}))})),s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",marginTop:12}},{children:x.map(function(i,n){var t,l=n===x.length-1,o=i.isFinalApproval,a=x[n+1],g=null==a?void 0:a.isFinalApproval,p=a&&!a.level.isMandatory&&!g;return o?s.jsxs(r.default.Fragment,{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",margin:"16px 0"}},{children:[s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),s.jsx("span",e.__assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]})),s.jsx("div",e.__assign({style:{marginBottom:"12px",fontSize:"15px",fontWeight:500,color:"#6B7280"}},{children:"Final Approval"})),s.jsx(c,{reviewLevel:i})]},n):s.jsxs(r.default.Fragment,{children:[s.jsx(d,{reviewLevel:i}),!l&&!g&&a.level.assignees&&(null===(t=a.level.assignees)||void 0===t?void 0:t.length)>0&&s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",margin:"20px 0"}},{children:[s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),s.jsx("span",e.__assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:p?"optional":"then"})),s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]}))]},n)})}))]})),s.jsx(u,{levels:l})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),t=require("../styles/ReviewStatusStyles.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=l(i),o=function(e){var s=e.trim().split(/\s+/);return 1===s.length?s[0].slice(0,2).toUpperCase():(s[0][0]+s[s.length-1][0]).toUpperCase()},a=function(e){for(var s=[{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 s[Math.abs(i)%s.length]};function d(i){var t,l=i.reviewLevel,r=l.level,o=l.assigneeStatuses,a=l.extendedStatus,d=null!==(t={approved:{bg:"#ECFDF5",color:"#059669",icon:s.jsx(n.Check,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:s.jsx(n.Hourglass,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:s.jsx(n.X,{size:14}),text:"Rejected"},optional:{bg:"#F8FAFC",color:"#64748B",icon:s.jsx(n.Info,{size:14}),text:"Optional"}}[a])&&void 0!==t?t:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},c="approved"===a?"1px solid #D1FAE5":"rejected"===a?"1px solid #FCA5A5":"optional"===a?"1px dashed #CBD5E1":"1px solid #E5E7EB",x="approved"===a?"#F0FDF4":"rejected"===a?"#FEF2F2":"#F8FAFC";return!r.assignees||!Array.isArray(r.assignees)||r.assignees.length<1?null:s.jsxs("div",e.__assign({style:{backgroundColor:"#FFFFFF",border:c,borderRadius:"8px",display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:x,borderBottom:c,padding:"12px 16px"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[s.jsx(p,{name:r.headerName}),s.jsx("span",e.__assign({style:{fontSize:15,fontWeight:500,color:"#374151"}},{children:r.title}))]})),s.jsxs("div",e.__assign({style:{backgroundColor:d.bg,color:d.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[d.icon,d.text]}))]})),s.jsx("div",e.__assign({style:{padding:"16px"}},{children:o.length>0?s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:16}},{children:o.map(function(e,i){var n;return s.jsx(g,{assigneeStatus:e,extendedStatus:a},null!==(n=e.user.id)&&void 0!==n?n:i)})})):s.jsx("div",e.__assign({style:{fontSize:14,color:"#6B7280"}},{children:"No assignees added yet"}))}))]}))}function c(i){var t,l,r,d,c=i.reviewLevel,g=c.assigneeStatuses,p=c.extendedStatus,x=null!==(t={approved:{bg:"#ECFDF5",color:"#059669",icon:s.jsx(n.Check,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:s.jsx(n.Hourglass,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:s.jsx(n.X,{size:14}),text:"Rejected"},optional:{bg:"#F8FAFC",color:"#64748B",icon:s.jsx(n.Info,{size:14}),text:"Optional"}}[p])&&void 0!==t?t:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},u=null===(l=g[0])||void 0===l?void 0:l.user;return s.jsxs("div",e.__assign({style:{backgroundColor:"#FFFFFF",border:"1px solid #E5E7EB",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[u?s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[s.jsx("div",e.__assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:a(null!==(r=u.id)&&void 0!==r?r:u.name).bg,color:a(null!==(d=u.id)&&void 0!==d?d:u.name).fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"14px"}},{children:o(u.name)})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column"}},{children:[s.jsx("span",e.__assign({style:{fontSize:"15px",fontWeight:400,color:"#374151"}},{children:u.name})),s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#6B7280"}},{children:"Will be notified after all levels approve"}))]}))]})):s.jsx("span",e.__assign({style:{fontSize:14,color:"#6B7280"}},{children:"No owner assigned"})),s.jsxs("div",e.__assign({style:{backgroundColor:x.bg,color:x.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[x.icon,x.text]}))]}))}function g(i){var t,l=i.assigneeStatus,r=i.extendedStatus,d=l.user,c=l.approved||"approved"===d.action,g=l.rejected||"rejected"===d.action,p=o(d.name),x=a(null!==(t=d.id)&&void 0!==t?t:d.name);return s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[s.jsx("div",e.__assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:x.bg,color:x.fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,fontSize:"13px"}},{children:p})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"2px"}},{children:[s.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:400,color:"#374151"}},{children:d.name})),s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#6B7280"}},{children:d.email}))]}))]})),s.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:c?s.jsx(n.CircleCheck,{size:20,color:"#16A34A",strokeWidth:1.5}):g?s.jsx(n.X,{size:20,color:"#DC2626",strokeWidth:1.5}):"pending"===r?s.jsxs(s.Fragment,{children:[s.jsx("span",{style:{fontSize:"13px",color:"#4B5563"}}),s.jsx(n.MinusCircle,{size:20,color:"#9CA3AF",strokeWidth:1.5})]}):"optional"===r?s.jsx(n.MinusCircle,{size:20,color:"#CBD5E1",strokeWidth:1.5}):s.jsx(n.MinusCircle,{size:20,color:"#9CA3AF",strokeWidth:1.5})}))]}))}function p(i){var n=i.name,t=a(n);return s.jsx("span",e.__assign({style:{backgroundColor:t.bg,color:t.fg,borderRadius:12,padding:"3px 10px",fontSize:12,fontWeight:500}},{children:n}))}var x=function(e){switch(e){case 0:return s.jsx(n.LucidePen,{size:16,color:"#475569"});case 1:return s.jsx(n.FileCheck,{size:16,color:"#475569"});case 2:return s.jsx(n.User,{size:16,color:"#475569"});default:return s.jsx(n.CheckCircle,{size:16,color:"#475569"})}};function u(i){var l=i.levels,o=l.some(function(e){var s,i;return(null!==(i=null===(s=e.assignees)||void 0===s?void 0:s.length)&&void 0!==i?i:0)>0});return s.jsxs("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.flowBox},{children:[s.jsx("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.flowTitle},{children:"Current Approval Flow"})),o?s.jsx("div",e.__assign({style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center",marginTop:6}},{children:l.map(function(i,o){var a,d=i.isHidden,c=!i.isMandatory&&!d,g=null===(a=i.assignees)||void 0===a?void 0:a.map(function(e){return e.name}).join(" / ");if(!g)return null;var p=d?s.jsx(n.User,{size:16,color:"#475569"}):x(o);return s.jsxs(r.default.Fragment,{children:[s.jsxs("span",e.__assign({style:e.__assign(e.__assign({},t.DEFAULT_REVIEW_STATUS_STYLES.flowChip),{display:"flex",alignItems:"center",gap:"6px",border:c?"1px dashed #CBD5E1":void 0})},{children:[p,s.jsxs("span",e.__assign({style:{fontSize:13,color:c?"#64748B":"#374151"}},{children:[g," ",c&&"(Optional)"]}))]})),o<l.length-1&&s.jsx(n.ArrowRight,{size:16,color:"#9CA3AF"})]},o)})})):s.jsx("p",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.flowEmpty},{children:"No owners assigned yet."}))]}))}exports.default=function(i){var l=i.levels,o=i.reviewData,a=void 0===o?{}:o,g=l.map(function(e,s){var i,n,t,l=null!==(n=null!==(i=a[s])&&void 0!==i?i:a[e.headerName])&&void 0!==n?n:{},r=(null!==(t=e.assignees)&&void 0!==t?t:[]).map(function(e){return{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}}),o="not_started";if(!0===e.isApproved)o="approved";else if(!0===e.isRejected)o="rejected";else if("approved"===e.status||"completed"===e.status)o="approved";else if("rejected"===e.status)o="rejected";else{var d=r.length>0&&r.every(function(e){return e.approved}),c=r.some(function(e){return e.rejected});d?o="approved":c&&(o="rejected")}return{level:e,assigneeStatuses:r,status:o}}),p=!1,x=g.map(function(s){var i="waiting",n=!0===s.level.isHidden;return"approved"===s.status?i="approved":"rejected"===s.status?(i="rejected",p=!0):s.level.isMandatory||n?p||(i="pending",p=!0):i="optional",e.__assign(e.__assign({},s),{extendedStatus:i,isFinalApproval:n})}),_=function(e){return e.filter(function(e){return"approved"===e.status}).length}(g),v=g.length;return s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:24}},{children:[s.jsxs("div",{children:[s.jsxs("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressHeader},{children:[s.jsx("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressTitle},{children:"Approval Progress"})),s.jsxs("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressCount},{children:[_," of ",v," level",1!==v?"s":""," complete"]}))]})),s.jsx("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressBarTrack},{children:x.map(function(i,n){var l,r="approved"===i.extendedStatus,o="rejected"===i.extendedStatus,a="optional"===i.extendedStatus,d=0===n,c=n===v-1;if((null===(l=null==i?void 0:i.level)||void 0===l?void 0:l.assignees)&&Array.isArray(i.level.assignees)&&!(i.level.assignees.length<1))return s.jsx("div",{style:e.__assign(e.__assign({},t.DEFAULT_REVIEW_STATUS_STYLES.progressSegment),{backgroundColor:r?"#6366F1":o?"#EF4444":a?"#F1F5F9":"#E5E7EB",borderRadius:d&&c?"999px":d?"999px 0 0 999px":c?"0 999px 999px 0":"0",marginRight:c?0:3})},n)})})),s.jsx("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressLabels},{children:x.map(function(i,n){return s.jsx(s.Fragment,{children:s.jsx("span",e.__assign({style:e.__assign(e.__assign({},t.DEFAULT_REVIEW_STATUS_STYLES.progressLabel),{color:"approved"===i.extendedStatus?"#6366F1":"rejected"===i.extendedStatus?"#EF4444":"#9CA3AF",fontWeight:"approved"===i.extendedStatus||"rejected"===i.extendedStatus?600:400})},{children:i.level.assignees&&i.level.assignees.length>0?"".concat(i.level.headerName," - ").concat(i.level.title):""}),n)})})}))]}),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:0}},{children:[s.jsx("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.sectionHeadingRow},{children:s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[s.jsx("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.sectionTitle},{children:"Approval Levels"})),s.jsx(n.Info,{size:15,color:"#9CA3AF"})]}))})),s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",marginTop:12}},{children:x.map(function(i,n){var t,l=n===x.length-1,o=i.isFinalApproval,a=x[n+1],g=null==a?void 0:a.isFinalApproval,p=a&&!a.level.isMandatory&&!g;return o?s.jsxs(r.default.Fragment,{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",margin:"16px 0"}},{children:[s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),s.jsx("span",e.__assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]})),s.jsx("div",e.__assign({style:{marginBottom:"12px",fontSize:"15px",fontWeight:500,color:"#6B7280"}},{children:"Final Approval"})),s.jsx(c,{reviewLevel:i})]},n):s.jsxs(r.default.Fragment,{children:[s.jsx(d,{reviewLevel:i}),!l&&!g&&a.level.assignees&&(null===(t=a.level.assignees)||void 0===t?void 0:t.length)>0&&s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",margin:"20px 0"}},{children:[s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),s.jsx("span",e.__assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:p?"optional":"then"})),s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]}))]},n)})}))]})),s.jsx(u,{levels:l})]}))};
2
2
  //# sourceMappingURL=ReviewStatus.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),i=require("lucide-react"),l=require("../utils.js"),o=require("./GuidelineCartItem.js"),n=require("./GuidelineTooltip.js"),s=require("../constants.js");exports.GuidelinePopoverCart=function(r){var d=r.guidelines,u=r.cartGuidelineIds,p=r.selectedGuidelineIds,a=r.onToggleGuideline,c=r.onPreviewGuideline,v=r.onRemoveGuideline,x=r.onAddGuideline,m=r.onOpenFullView,g=r.debugEnabled,b=void 0!==g&&g,y=r.onDebugChange,h=r.title,_=void 0===h?"Guideline Cart":h,f=r.debugLabel,D=void 0===f?"Debug":f,j=r.addGuidelineLabel,E=void 0===j?"Add guideline":j,N=r.openFullViewLabel,w=void 0===N?"Open full view":N,F=r.emptyTitle,A=void 0===F?"No guideline yet":F,L=r.emptyDescription,C=void 0===L?"Add your first guideline to get started":L,G=r.emptyActionLabel,T=void 0===G?"Add guideline":G,k=r.emptyIcon,I=r.className,B=r.classNames,O=r.styles,q=r.formatAddedOnLabel,P=void 0===q?l.defaultFormatAddedOnLabel:q,S=r.debugTooltipContent,z=void 0===S?s.DEFAULT_GUIDELINE_LABELS.popoverDebugTooltipContent:S,W=u?d.filter(function(e){return u.includes(e.id)}):d.filter(function(e){return p.includes(e.id)});return t.jsxs("section",e.__assign({className:l.cx("bg-white p-6",null==B?void 0:B.popoverCart,I),style:null==O?void 0:O.popoverCart},{children:[t.jsxs("div",e.__assign({className:l.cx("flex items-center justify-between gap-4",null==B?void 0:B.popoverHeader),style:null==O?void 0:O.popoverHeader},{children:[t.jsx("h3",e.__assign({className:l.cx("text-[18px] font-semibold leading-7 text-[#5928ED]",null==B?void 0:B.popoverTitle),style:null==O?void 0:O.popoverTitle},{children:_})),t.jsxs("div",e.__assign({className:l.cx("flex shrink-0 items-center gap-3 text-[#5928ED]",null==B?void 0:B.popoverActions),style:null==O?void 0:O.popoverActions},{children:[y&&t.jsxs("div",e.__assign({className:l.cx("flex items-center gap-2",null==B?void 0:B.popoverDebug),style:null==O?void 0:O.popoverDebug},{children:[t.jsx("button",e.__assign({type:"button",role:"switch","aria-checked":b,onClick:function(){return y(!b)},className:l.cx("relative inline-flex h-5 w-9 items-center rounded-full border transition-colors focus:outline-none",b?"border-[#5928ED] bg-[#5928ED]":"border-[#D0D5DD] bg-[#EAECF0]",null==B?void 0:B.popoverDebugSwitch),style:null==O?void 0:O.popoverDebugSwitch},{children:t.jsx("span",{className:l.cx("inline-block h-4 w-4 transform rounded-full bg-white transition-transform",b?"translate-x-4":"translate-x-0.5",null==B?void 0:B.popoverDebugThumb),style:null==O?void 0:O.popoverDebugThumb})})),t.jsx(n.GuidelineTooltip,e.__assign({content:z,side:"bottom",maxWidth:400},{children:t.jsx("span",e.__assign({className:l.cx("text-[14px] leading-5 text-[#667085] cursor-help",null==B?void 0:B.popoverDebugLabel),style:null==O?void 0:O.popoverDebugLabel},{children:D}))}))]})),t.jsx("div",{className:l.cx("h-6 w-px bg-[#D0D5DD]",null==B?void 0:B.popoverDivider),style:null==O?void 0:O.popoverDivider}),t.jsx("button",e.__assign({type:"button",onClick:x,className:l.cx("flex h-7 w-7 items-center justify-center rounded-md text-[#5928ED] transition hover:bg-[#F4F0FF]",null==B?void 0:B.popoverAddButton),style:null==O?void 0:O.popoverAddButton,"aria-label":E,title:E},{children:t.jsx(i.Plus,{size:20,strokeWidth:2.1})})),t.jsx("button",e.__assign({type:"button",onClick:m,className:l.cx("flex h-7 w-7 items-center justify-center rounded-md text-[#5928ED] transition hover:bg-[#F4F0FF]",null==B?void 0:B.popoverOpenButton),style:null==O?void 0:O.popoverOpenButton,"aria-label":w,title:w},{children:t.jsx(i.ExternalLink,{size:18,strokeWidth:2.1})}))]}))]})),t.jsx("div",e.__assign({className:l.cx("mt-6 max-h-[360px] space-y-4 overflow-y-auto pr-1",null==B?void 0:B.popoverList),style:null==O?void 0:O.popoverList},{children:0===W.length?t.jsxs("div",e.__assign({className:l.cx("flex flex-col items-center rounded-[8px] bg-[#F9FAFB] px-5 py-6 text-center",null==B?void 0:B.popoverEmptyState),style:null==O?void 0:O.popoverEmptyState},{children:[k&&t.jsx("div",e.__assign({className:l.cx("mb-2 flex h-12 w-12 items-center justify-center rounded-xl bg-[#EDE9FE]",null==B?void 0:B.popoverEmptyIcon),style:null==O?void 0:O.popoverEmptyIcon},{children:k})),t.jsx("p",e.__assign({className:l.cx("text-[14px] font-semibold text-[#1F2937]",null==B?void 0:B.popoverEmptyTitle),style:null==O?void 0:O.popoverEmptyTitle},{children:A})),t.jsx("p",e.__assign({className:l.cx("mt-1 text-[12px] text-[#667085]",null==B?void 0:B.popoverEmptyDescription),style:null==O?void 0:O.popoverEmptyDescription},{children:C})),t.jsxs("button",e.__assign({type:"button",onClick:x,className:l.cx("mt-4 flex items-center gap-1.5 rounded-lg bg-[#5928ED] px-5 py-2 text-sm font-medium text-white transition hover:bg-[#4A1FD6]",null==B?void 0:B.popoverEmptyButton),style:null==O?void 0:O.popoverEmptyButton},{children:[t.jsx(i.Plus,{size:16}),T]}))]})):W.map(function(e){return t.jsx(o.GuidelineCartItem,{guideline:e,isSelected:p.includes(e.id),onToggle:a,onPreview:c,onRemove:v,classNames:B,styles:O,formatAddedOnLabel:P},e.id)})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),t=require("lucide-react"),l=require("../utils.js"),o=require("./GuidelineCartItem.js"),n=require("./GuidelineTooltip.js"),s=require("../constants.js");exports.GuidelinePopoverCart=function(r){var d=r.guidelines,u=r.cartGuidelineIds,p=r.selectedGuidelineIds,a=r.onToggleGuideline,c=r.onPreviewGuideline,v=r.onRemoveGuideline,x=r.onAddGuideline,m=r.onOpenFullView,g=r.debugEnabled,b=void 0!==g&&g,y=r.onDebugChange,h=r.title,f=void 0===h?"Guideline Cart":h,_=r.debugLabel,D=void 0===_?"Debug":_,j=r.addGuidelineLabel,E=void 0===j?"Add guideline":j,N=r.openFullViewLabel,w=void 0===N?"Open full view":N,F=r.emptyTitle,A=void 0===F?"No guideline yet":F,L=r.emptyDescription,C=void 0===L?"Add your first guideline to get started":L,G=r.emptyActionLabel,T=void 0===G?"Add guideline":G,k=r.emptyIcon,I=r.className,B=r.classNames,O=r.styles,q=r.formatAddedOnLabel,P=void 0===q?l.defaultFormatAddedOnLabel:q,S=r.debugTooltipContent,z=void 0===S?s.DEFAULT_GUIDELINE_LABELS.popoverDebugTooltipContent:S,W=u?d.filter(function(e){return u.includes(e.id)}):d.filter(function(e){return p.includes(e.id)});return i.jsxs("section",e.__assign({className:l.cx("flex min-h-[420px] flex-col bg-white p-6",null==B?void 0:B.popoverCart,I),style:null==O?void 0:O.popoverCart},{children:[i.jsxs("div",e.__assign({className:l.cx("flex items-center justify-between gap-4",null==B?void 0:B.popoverHeader),style:null==O?void 0:O.popoverHeader},{children:[i.jsx("h3",e.__assign({className:l.cx("text-[18px] font-semibold leading-7 text-[#5928ED]",null==B?void 0:B.popoverTitle),style:null==O?void 0:O.popoverTitle},{children:f})),i.jsxs("div",e.__assign({className:l.cx("flex shrink-0 items-center gap-3 text-[#5928ED]",null==B?void 0:B.popoverActions),style:null==O?void 0:O.popoverActions},{children:[y&&i.jsxs("div",e.__assign({className:l.cx("flex items-center gap-2",null==B?void 0:B.popoverDebug),style:null==O?void 0:O.popoverDebug},{children:[i.jsx("button",e.__assign({type:"button",role:"switch","aria-checked":b,onClick:function(){return y(!b)},className:l.cx("relative inline-flex h-5 w-9 items-center rounded-full border transition-colors focus:outline-none",b?"border-[#5928ED] bg-[#5928ED]":"border-[#D0D5DD] bg-[#EAECF0]",null==B?void 0:B.popoverDebugSwitch),style:null==O?void 0:O.popoverDebugSwitch},{children:i.jsx("span",{className:l.cx("inline-block h-4 w-4 transform rounded-full bg-white transition-transform",b?"translate-x-4":"translate-x-0.5",null==B?void 0:B.popoverDebugThumb),style:null==O?void 0:O.popoverDebugThumb})})),i.jsx(n.GuidelineTooltip,e.__assign({content:z,side:"bottom",maxWidth:400},{children:i.jsx("span",e.__assign({className:l.cx("text-[14px] leading-5 text-[#667085] cursor-help",null==B?void 0:B.popoverDebugLabel),style:null==O?void 0:O.popoverDebugLabel},{children:D}))}))]})),i.jsx("div",{className:l.cx("h-6 w-px bg-[#D0D5DD]",null==B?void 0:B.popoverDivider),style:null==O?void 0:O.popoverDivider}),i.jsx("button",e.__assign({type:"button",onClick:x,className:l.cx("flex h-7 w-7 items-center justify-center rounded-md text-[#5928ED] transition hover:bg-[#F4F0FF]",null==B?void 0:B.popoverAddButton),style:null==O?void 0:O.popoverAddButton,"aria-label":E,title:E},{children:i.jsx(t.Plus,{size:20,strokeWidth:2.1})})),i.jsx("button",e.__assign({type:"button",onClick:m,className:l.cx("flex h-7 w-7 items-center justify-center rounded-md text-[#5928ED] transition hover:bg-[#F4F0FF]",null==B?void 0:B.popoverOpenButton),style:null==O?void 0:O.popoverOpenButton,"aria-label":w,title:w},{children:i.jsx(t.ExternalLink,{size:18,strokeWidth:2.1})}))]}))]})),i.jsx("div",e.__assign({className:l.cx("mt-6 min-h-[360px] flex-1 space-y-4 overflow-y-auto pr-1",null==B?void 0:B.popoverList),style:null==O?void 0:O.popoverList},{children:0===W.length?i.jsxs("div",e.__assign({className:l.cx("flex h-full min-h-[360px] flex-col items-center justify-center rounded-[8px] bg-[#F9FAFB] px-5 py-6 text-center",null==B?void 0:B.popoverEmptyState),style:null==O?void 0:O.popoverEmptyState},{children:[k&&i.jsx("div",e.__assign({className:l.cx("mb-2 flex h-12 w-12 items-center justify-center rounded-xl bg-[#EDE9FE]",null==B?void 0:B.popoverEmptyIcon),style:null==O?void 0:O.popoverEmptyIcon},{children:k})),i.jsx("p",e.__assign({className:l.cx("text-[14px] font-semibold text-[#1F2937]",null==B?void 0:B.popoverEmptyTitle),style:null==O?void 0:O.popoverEmptyTitle},{children:A})),i.jsx("p",e.__assign({className:l.cx("mt-1 text-[12px] text-[#667085]",null==B?void 0:B.popoverEmptyDescription),style:null==O?void 0:O.popoverEmptyDescription},{children:C})),i.jsxs("button",e.__assign({type:"button",onClick:m,className:l.cx("mt-4 flex items-center gap-1.5 rounded-lg bg-[#5928ED] px-5 py-2 text-sm font-medium text-white transition hover:bg-[#4A1FD6]",null==B?void 0:B.popoverEmptyButton),style:null==O?void 0:O.popoverEmptyButton},{children:[i.jsx(t.Plus,{size:16}),T]}))]})):W.map(function(e){return i.jsx(o.GuidelineCartItem,{guideline:e,isSelected:p.includes(e.id),onToggle:a,onPreview:c,onRemove:v,classNames:B,styles:O,formatAddedOnLabel:P},e.id)})}))]}))};
2
2
  //# sourceMappingURL=GuidelinePopoverCart.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),s=require("../utils.js"),i={title:"Guideline Saved Successfully",description:"Would you like to add it to the current Guideline Cart?",saveOnly:"Save Only",addToCart:"Add To Cart",closeAriaLabel:"Close"};exports.GuidelineSavedModal=function(d){var o=d.open,n=d.onSaveOnly,r=d.onAddToCart,u=d.onClose,c=d.labels,v=d.classNames,x=d.styles,g=e.__assign(e.__assign({},i),c);return t.useEffect(function(){if(o){var e=function(e){"Escape"===e.key&&u()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[o,u]),o?l.jsx("div",e.__assign({className:s.cx("fixed inset-0 z-50 flex items-center justify-center bg-black/40 px-4",null==v?void 0:v.savedModalOverlay),style:null==x?void 0:x.savedModalOverlay,role:"presentation",onClick:u},{children:l.jsxs("div",e.__assign({role:"dialog","aria-modal":"true","aria-labelledby":"guideline-saved-modal-title",className:s.cx("w-full max-w-[420px] rounded-lg bg-white p-6 shadow-xl",null==v?void 0:v.savedModalDialog),style:null==x?void 0:x.savedModalDialog,onClick:function(e){return e.stopPropagation()}},{children:[l.jsxs("div",e.__assign({className:s.cx("flex items-start justify-between",null==v?void 0:v.savedModalHeader),style:null==x?void 0:x.savedModalHeader},{children:[l.jsx("h2",e.__assign({id:"guideline-saved-modal-title",className:s.cx("text-[18px] font-semibold leading-7 text-[#1F2937]",null==v?void 0:v.savedModalTitle),style:null==x?void 0:x.savedModalTitle},{children:g.title})),l.jsx("button",e.__assign({type:"button",onClick:u,"aria-label":g.closeAriaLabel,className:s.cx("ml-3 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600",null==v?void 0:v.savedModalCloseButton),style:null==x?void 0:x.savedModalCloseButton},{children:l.jsx(a.X,{className:"h-4 w-4"})}))]})),l.jsx("p",e.__assign({className:s.cx("mt-2 text-[14px] leading-6 text-[#344054]",null==v?void 0:v.savedModalDescription),style:null==x?void 0:x.savedModalDescription},{children:g.description})),l.jsxs("div",e.__assign({className:s.cx("mt-6 flex justify-end gap-3",null==v?void 0:v.savedModalActions),style:null==x?void 0:x.savedModalActions},{children:[l.jsx("button",e.__assign({type:"button",onClick:n,className:s.cx("h-[40px] rounded-lg border border-gray-300 bg-white px-4 text-[14px] font-medium text-[#111827] transition-colors duration-150 hover:bg-gray-50",null==v?void 0:v.savedModalSaveButton),style:null==x?void 0:x.savedModalSaveButton},{children:g.saveOnly})),l.jsx("button",e.__assign({type:"button",onClick:r,className:s.cx("h-[40px] rounded-lg bg-violet-700 px-4 text-[14px] font-medium text-white transition-colors duration-150 hover:bg-violet-800",null==v?void 0:v.savedModalAddButton),style:null==x?void 0:x.savedModalAddButton},{children:g.addToCart}))]}))]}))})):null};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),s=require("../utils.js"),d={title:"Guideline Saved Successfully",description:"Would you like to add it to the current Guideline Cart?",saveOnly:"Save Only",addToCart:"Add To Cart",closeAriaLabel:"Close"};exports.GuidelineSavedModal=function(i){var o=i.open,n=i.onSaveOnly,r=i.onAddToCart,u=i.onClose,c=i.labels,v=i.disableModalButtons,x=void 0!==v&&v,y=i.classNames,g=i.styles,b=e.__assign(e.__assign({},d),c);return t.useEffect(function(){if(o){var e=function(e){"Escape"===e.key&&u()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[o,u]),o?l.jsx("div",e.__assign({className:s.cx("fixed inset-0 z-50 flex items-center justify-center bg-black/40 px-4",null==y?void 0:y.savedModalOverlay),style:null==g?void 0:g.savedModalOverlay,role:"presentation",onClick:u},{children:l.jsxs("div",e.__assign({role:"dialog","aria-modal":"true","aria-labelledby":"guideline-saved-modal-title",className:s.cx("w-full max-w-[420px] rounded-lg bg-white p-6 shadow-xl",null==y?void 0:y.savedModalDialog),style:null==g?void 0:g.savedModalDialog,onClick:function(e){return e.stopPropagation()}},{children:[l.jsxs("div",e.__assign({className:s.cx("flex items-start justify-between",null==y?void 0:y.savedModalHeader),style:null==g?void 0:g.savedModalHeader},{children:[l.jsx("h2",e.__assign({id:"guideline-saved-modal-title",className:s.cx("text-[18px] font-semibold leading-7 text-[#1F2937]",null==y?void 0:y.savedModalTitle),style:null==g?void 0:g.savedModalTitle},{children:b.title})),l.jsx("button",e.__assign({type:"button",onClick:u,"aria-label":b.closeAriaLabel,className:s.cx("ml-3 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600",null==y?void 0:y.savedModalCloseButton),style:null==g?void 0:g.savedModalCloseButton},{children:l.jsx(a.X,{className:"h-4 w-4"})}))]})),l.jsx("p",e.__assign({className:s.cx("mt-2 text-[14px] leading-6 text-[#344054]",null==y?void 0:y.savedModalDescription),style:null==g?void 0:g.savedModalDescription},{children:b.description})),l.jsxs("div",e.__assign({className:s.cx("mt-6 flex justify-end gap-3",null==y?void 0:y.savedModalActions),style:null==g?void 0:g.savedModalActions},{children:[l.jsx("button",e.__assign({type:"button",onClick:n,disabled:x,className:s.cx("h-[40px] rounded-lg border border-gray-300 bg-white px-4 text-[14px] font-medium text-[#111827] transition-colors duration-150 hover:bg-gray-50 disabled:opacity-50",null==y?void 0:y.savedModalSaveButton),style:null==g?void 0:g.savedModalSaveButton},{children:b.saveOnly})),l.jsx("button",e.__assign({type:"button",onClick:r,disabled:x,className:s.cx("h-[40px] rounded-lg bg-violet-700 px-4 text-[14px] font-medium text-white transition-colors duration-150 hover:bg-violet-800 disabled:opacity-50",null==y?void 0:y.savedModalAddButton),style:null==g?void 0:g.savedModalAddButton},{children:b.addToCart}))]}))]}))})):null};
2
2
  //# sourceMappingURL=GuidelineSavedModal.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as n,jsx as t,Fragment as o}from"react/jsx-runtime";import{useMemo as i,useState as r,useEffect as l}from"react";import{Check as s,Edit2 as a,ChevronDown as d}from"lucide-react";import{getRandomColorPair as p}from"./utils/generateRandomColorsPair.js";import c from"./assets/VerticalLine.js";import u from"./components/AssignLevelsDatePicker.js";import g from"./components/LevelData.js";function f(f){var h,x,y,m,b=f.level,v=f.id,k=f.accessLevelOptions,C=f.fetchUsers,D=f.onToggleMandatory,F=f.onDueDateChange,w=f.onAssigneesChange,L=f.onTitleChange;f.onDeleteLevel;var S=i(function(){return p()},[]),B="0"===v||(null!==(x=null===(h=b.assignees)||void 0===h?void 0:h.length)&&void 0!==x?x:0)>0,j=r(B),z=j[0],M=j[1],R=r(!1),I=R[0],E=R[1];return l(function(){var e,n;(null!==(n=null===(e=b.assignees)||void 0===e?void 0:e.length)&&void 0!==n?n:0)>0&&M(!0)},[b.assignees]),n("div",e({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[n("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[n("span",e({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[t("span",e({style:{backgroundColor:S.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:S.color,fontSize:"13px",fontWeight:500}},{children:b.headerName})),n("div",e({style:{display:"flex",alignItems:"center",gap:"6px"}},I?{children:[t("input",{type:"text",value:b.title||"",onChange:function(e){return null==L?void 0:L(e.target.value)},onBlur:function(){return E(!1)},onKeyDown:function(e){return"Enter"===e.key&&E(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),t("button",e({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),E(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:t(s,{size:16,color:"#10B981"})}))]}:{children:[t("span",e({style:{fontSize:"13px",fontWeight:500,color:"#374151"}},{children:b.title})),t("button",e({type:"button",onClick:function(e){e.stopPropagation(),E(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:t(a,{size:14,color:"#6B7280"})}))]}))]})),n("div",e({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[n(o,{children:[n("span",e({style:{color:"#6B7280"}},{children:["Due Date: ",b.isMandatory&&t("sup",e({style:{color:"red"}},{children:"*"}))]})),t(u,{value:null!==(y=b.dueDate)&&void 0!==y?y:null,onSet:F,id:v}),t(c,{})]}),t("div",e({style:{display:"flex",alignItems:"center"}},{children:n("button",e({type:"button",onClick:D,disabled:"0"===v,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:b.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===v?"50%":"100%",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[t("span",{style:{position:"absolute",top:"3px",left:b.isMandatory?"65px":"3px",width:"20px",height:"20px",borderRadius:"50%",background:"#FFF",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"}}),t("span",e({style:{color:"#FFF",fontSize:"10px",fontWeight:500,userSelect:"none",paddingLeft:b.isMandatory?"0":"18px",paddingRight:b.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),t(d,{size:20,onClick:function(e){e.stopPropagation(),M(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:z?"rotate(180deg)":"rotate(0deg)"}})]}))]})),z&&t("div",e({style:{width:"100%",height:"auto"}},{children:t(g,{assignees:null!==(m=b.assignees)&&void 0!==m?m:[],onAssigneeChange:w,accessLevelOptions:k,fetchUsers:C})}))]}))}export{f as default};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as n,jsx as t,Fragment as o}from"react/jsx-runtime";import{useMemo as i,useState as r,useEffect as l}from"react";import{Check as a,Edit2 as s,ChevronDown as d}from"lucide-react";import{getRandomColorPair as p}from"./utils/generateRandomColorsPair.js";import c from"./assets/VerticalLine.js";import u from"./components/AssignLevelsDatePicker.js";import g from"./components/LevelData.js";function f(f){var h,x,y,m,b=f.level,v=f.id,k=f.accessLevelOptions,C=f.fetchUsers,D=f.onToggleMandatory,F=f.onDueDateChange,w=f.onAssigneesChange,S=f.onTitleChange,B=f.finalApprovalDueDate,L=i(function(){return p()},[]),j="0"===v||(null!==(x=null===(h=b.assignees)||void 0===h?void 0:h.length)&&void 0!==x?x:0)>0,z=r(j),M=z[0],R=z[1],I=r(!1),A=I[0],E=I[1];return l(function(){var e,n;(null!==(n=null===(e=b.assignees)||void 0===e?void 0:e.length)&&void 0!==n?n:0)>0&&R(!0)},[b.assignees]),n("div",e({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[n("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[n("span",e({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[t("span",e({style:{backgroundColor:L.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:L.color,fontSize:"13px",fontWeight:500}},{children:b.headerName})),n("div",e({style:{display:"flex",alignItems:"center",gap:"6px"}},A?{children:[t("input",{type:"text",value:b.title||"",onChange:function(e){return null==S?void 0:S(e.target.value)},onBlur:function(){return E(!1)},onKeyDown:function(e){return"Enter"===e.key&&E(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),t("button",e({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),E(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:t(a,{size:16,color:"#10B981"})}))]}:{children:[t("span",e({style:{fontSize:"13px",fontWeight:500,color:"#374151"}},{children:b.title})),t("button",e({type:"button",onClick:function(e){e.stopPropagation(),E(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:t(s,{size:14,color:"#6B7280"})}))]}))]})),n("div",e({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[n(o,{children:[n("span",e({style:{color:"#6B7280"}},{children:["Due Date: ",b.isMandatory&&t("sup",e({style:{color:"red"}},{children:"*"}))]})),t(u,{value:null!==(y=b.dueDate)&&void 0!==y?y:null,onSet:F,id:v,maxDate:null!=B?B:null}),t(c,{})]}),t("div",e({style:{display:"flex",alignItems:"center"}},{children:n("button",e({type:"button",onClick:D,disabled:"0"===v,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:b.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===v?"50%":"100%",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[t("span",{style:{position:"absolute",top:"3px",left:b.isMandatory?"65px":"3px",width:"20px",height:"20px",borderRadius:"50%",background:"#FFF",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"}}),t("span",e({style:{color:"#FFF",fontSize:"10px",fontWeight:500,userSelect:"none",paddingLeft:b.isMandatory?"0":"18px",paddingRight:b.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),t(d,{size:20,onClick:function(e){e.stopPropagation(),R(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:M?"rotate(180deg)":"rotate(0deg)"}})]}))]})),M&&t("div",e({style:{width:"100%",height:"auto"}},{children:t(g,{assignees:null!==(m=b.assignees)&&void 0!==m?m:[],onAssigneeChange:w,accessLevelOptions:k,fetchUsers:C})}))]}))}export{f as default};
2
2
  //# sourceMappingURL=AssignLevelAccordions.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as n,jsxs as t}from"react/jsx-runtime";import i from"react";import{PenLine as r,UserRoundCheck as l,Bell as o,InfoIcon as a,User as s,ArrowRight as c,CheckSquare as p,FileCheck as u,Edit2 as d}from"lucide-react";import f from"./AssignLevelAccordions.js";import v from"./components/CustomCheckbox.js";import m from"./assets/FileCheckCorner.js";import{DEFAULT_ASSIGN_REMINDER_STYLES as h}from"./styles/AssignReminderStyles.js";var g=[{label:"Edit",icon:n(r,{size:14})},{label:"Approve",icon:n(l,{size:14})},{label:"Edit & Approve",icon:n(m,{})},{label:"Notify",icon:n(o,{size:14})}];function y(r){var l=r.title,o=r.levels,m=void 0===o?[]:o,y=r.requireFinalApproval,x=void 0!==y&&y,A=r.additionalInfo,b=r.setLevels,L=r.setRequireFinalApproval,w=r.fetchUsers,z=r.accessLevelOptions,F=void 0===z?g:z,D=r.customInfoIcon,C=r.onValidationError,I=r.customStyles,W=void 0===I?{}:I,j=r.totalLevels,M=i.useState(!1),S=M[0],T=M[1],q=i.useMemo(function(){return Array.from({length:null!=j?j:3},function(e,n){var t;return null!==(t=m[n])&&void 0!==t?t:{title:"Level ".concat(n+1),headerName:"L ".concat(n+1),isMandatory:!1,dueDate:null,assignees:[],hasDueDate:!0}})},[m,j]),E=(m.length>0?m:q).filter(function(e){return!e.isHidden});return t("div",e({style:e({padding:"8px",display:"flex",flexDirection:"column",gap:"18px"},W.container)},{children:[t("span",e({style:e(e({},h.header),W.levelsHeader)},{children:[n("span",{children:null!=l?l:"Assignee Levels"}),t("div",e({style:e(e({},h.infoIconWrapper),W.infoIconWrapper),onMouseEnter:function(){return T(!0)},onMouseLeave:function(){return T(!1)}},{children:[null!=D?D:n(a,{width:18,height:18}),n("div",e({style:e(e(e({},h.tooltip),W.tooltip),S?e(e({},h.tooltipVisible),W.tooltipVisible):{})},{children:A||t("span",{children:[n("b",{children:"How it works:"}),n("br",{}),"Level 1 is required by default, Enable Level 2 and Level 3 to add sequential approval steps for the review"]})}))]}))]})),n("div",e({style:e({display:"flex",flexDirection:"column",gap:"16px"},W.accordionsContainer)},{children:E.map(function(t,i){return n(f,{level:t,id:String(i),accessLevelOptions:F,fetchUsers:w,onToggleMandatory:function(){return n=i,void(null==b||b(function(t){return t.map(function(t,i){return i===n?e(e({},t),{isMandatory:!t.isMandatory}):t})}));var n},onDueDateChange:function(n){return function(n,t){var i;if(n>0&&t){var r=null===(i=m[n-1])||void 0===i?void 0:i.dueDate;if(r&&t<r)return void(null==C||C("Level ".concat(n+1," due date cannot be before Level ").concat(n," due date")))}null==b||b(function(i){return i.map(function(i,r){return r===n?e(e({},i),{dueDate:t}):i})})}(i,n)},onAssigneesChange:function(n){return t=i,r=n,void(null==b||b(function(n){return n.map(function(n,i){return i===t?e(e({},n),{assignees:r}):n})}));var t,r},onTitleChange:function(n){return function(n,t){null==b||b(function(i){return i.map(function(i,r){return r===n?e(e({},i),{title:t}):i})})}(i,n)}},i)})})),t("div",e({style:e(e({},h.finalApprovalBox),W.finalApprovalBox)},{children:[n(v,{getter:x,setter:null!=L?L:function(){}}),t("div",e({style:e({display:"flex",flexDirection:"column",alignItems:"baseline",fontSize:"14px",fontWeight:400},W.finalApprovalTextWrapper)},{children:[n("span",e({style:e({fontWeight:500},W.finalApprovalTitle)},{children:"Require Final Approval"})),n("span",e({style:W.finalApprovalDesc},{children:"After all assignees approve, you (the owner) will be notified to give final sign-off before the redline is settled."}))]}))]})),t("div",e({style:e(e({},h.currentApprovalFlow),W.currentApprovalFlow)},{children:[n("span",e({style:e({fontSize:"14px",fontWeight:600},W.currentApprovalFlowTitle)},{children:"Current Approval Flow"})),n("div",e({style:e({display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"4px"},W.approvalFlowItemsWrapper)},{children:m.map(function(r,l){var o,a=r.isHidden,f=(null===(o=r.assignees)||void 0===o?void 0:o.map(function(e){return e.name}).join(" / "))||"No users assigned",v=r.title||"Level ".concat(l+1),h=a?n(s,{size:16}):function(e){switch(e){case 0:return n(d,{size:16});case 1:return n(u,{size:16});case 2:return n(s,{size:16});default:return n(p,{size:16})}}(l);return t(i.Fragment,{children:[t("div",e({style:e({display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,color:"#374151"},W.approvalFlowItem),title:v},{children:[h,n("span",{children:f})]})),l<m.length-1&&n(c,{size:16,color:"#9CA3AF"})]},l)})}))]}))]}))}export{y as AssignReminderLevels};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as n,jsxs as t}from"react/jsx-runtime";import i from"react";import{PenLine as r,UserRoundCheck as l,Bell as o,InfoIcon as a,User as s,ArrowRight as p,CheckSquare as c,FileCheck as u,Edit2 as d}from"lucide-react";import f from"./AssignLevelAccordions.js";import v from"./components/CustomCheckbox.js";import m from"./assets/FileCheckCorner.js";import{DEFAULT_ASSIGN_REMINDER_STYLES as h}from"./styles/AssignReminderStyles.js";var g=[{label:"Edit",icon:n(r,{size:14})},{label:"Approve",icon:n(l,{size:14})},{label:"Edit & Approve",icon:n(m,{})},{label:"Notify",icon:n(o,{size:14})}];function y(r){var l=r.title,o=r.levels,m=void 0===o?[]:o,y=r.requireFinalApproval,A=void 0!==y&&y,x=r.additionalInfo,b=r.setLevels,D=r.setRequireFinalApproval,L=r.fetchUsers,w=r.accessLevelOptions,z=void 0===w?g:w,F=r.customInfoIcon,C=r.onValidationError,I=r.customStyles,W=void 0===I?{}:I,j=r.totalLevels,M=r.finalApprovalDueDate,S=i.useState(!1),T=S[0],q=S[1],E=i.useMemo(function(){return Array.from({length:null!=j?j:3},function(e,n){var t;return null!==(t=m[n])&&void 0!==t?t:{title:"Level ".concat(n+1),headerName:"L ".concat(n+1),isMandatory:!1,dueDate:null,assignees:[],hasDueDate:!0}})},[m,j]),H=(m.length>0?m:E).filter(function(e){return!e.isHidden});return t("div",e({style:e({padding:"8px",display:"flex",flexDirection:"column",gap:"18px"},W.container)},{children:[t("span",e({style:e(e({},h.header),W.levelsHeader)},{children:[n("span",{children:null!=l?l:"Assignee Levels"}),t("div",e({style:e(e({},h.infoIconWrapper),W.infoIconWrapper),onMouseEnter:function(){return q(!0)},onMouseLeave:function(){return q(!1)}},{children:[null!=F?F:n(a,{width:18,height:18}),n("div",e({style:e(e(e({},h.tooltip),W.tooltip),T?e(e({},h.tooltipVisible),W.tooltipVisible):{})},{children:x||t("span",{children:[n("b",{children:"How it works:"}),n("br",{}),"Level 1 is required by default, Enable Level 2 and Level 3 to add sequential approval steps for the review"]})}))]}))]})),n("div",e({style:e({display:"flex",flexDirection:"column",gap:"16px"},W.accordionsContainer)},{children:H.map(function(t,i){return n(f,{level:t,id:String(i),accessLevelOptions:z,fetchUsers:L,onToggleMandatory:function(){return n=i,void(null==b||b(function(t){return t.map(function(t,i){return i===n?e(e({},t),{isMandatory:!t.isMandatory}):t})}));var n},onDueDateChange:function(n){return function(n,t){var i;if(n>0&&t){var r=null===(i=m[n-1])||void 0===i?void 0:i.dueDate;if(r&&t<r)return void(null==C||C("Level ".concat(n+1," due date cannot be before Level ").concat(n," due date")))}null==b||b(function(i){return i.map(function(i,r){return r===n?e(e({},i),{dueDate:t}):i})})}(i,n)},onAssigneesChange:function(n){return t=i,r=n,void(null==b||b(function(n){return n.map(function(n,i){return i===t?e(e({},n),{assignees:r}):n})}));var t,r},onTitleChange:function(n){return function(n,t){null==b||b(function(i){return i.map(function(i,r){return r===n?e(e({},i),{title:t}):i})})}(i,n)},finalApprovalDueDate:M},i)})})),t("div",e({style:e(e({},h.finalApprovalBox),W.finalApprovalBox)},{children:[n(v,{getter:A,setter:null!=D?D:function(){}}),t("div",e({style:e({display:"flex",flexDirection:"column",alignItems:"baseline",fontSize:"14px",fontWeight:400},W.finalApprovalTextWrapper)},{children:[n("span",e({style:e({fontWeight:500},W.finalApprovalTitle)},{children:"Require Final Approval"})),n("span",e({style:W.finalApprovalDesc},{children:"After all assignees approve, you (the owner) will be notified to give final sign-off before the redline is settled."}))]}))]})),t("div",e({style:e(e({},h.currentApprovalFlow),W.currentApprovalFlow)},{children:[n("span",e({style:e({fontSize:"14px",fontWeight:600},W.currentApprovalFlowTitle)},{children:"Current Approval Flow"})),n("div",e({style:e({display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"4px"},W.approvalFlowItemsWrapper)},{children:m.map(function(r,l){var o,a=r.isHidden,f=(null===(o=r.assignees)||void 0===o?void 0:o.map(function(e){return e.name}).join(" / "))||"No users assigned",v=r.title||"Level ".concat(l+1),h=a?n(s,{size:16}):function(e){switch(e){case 0:return n(d,{size:16});case 1:return n(u,{size:16});case 2:return n(s,{size:16});default:return n(c,{size:16})}}(l);return t(i.Fragment,{children:[t("div",e({style:e({display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,color:"#374151"},W.approvalFlowItem),title:v},{children:[h,n("span",{children:f})]})),l<m.length-1&&n(p,{size:16,color:"#9CA3AF"})]},l)})}))]}))]}))}export{y as AssignReminderLevels};
2
2
  //# sourceMappingURL=AssignReminderLevels.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as i}from"../../_virtual/_tslib.js";import{jsxs as r,jsx as n,Fragment as t}from"react/jsx-runtime";import{Bell as a,ClipboardList as o,X as l,CircleAlert as s}from"lucide-react";import d,{useState as c,useEffect as u}from"react";import{AssignReminderLevels as m}from"./AssignReminderLevels.js";import{INITIAL_LEVELS as v}from"./AssignReminderTest.js";import p from"./components/ReviewStatus.js";import f from"./components/CustomDatePicker.js";import{ManageReminders as y}from"./ManageReminders.js";import{DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES as b}from"./styles/AssignReminderWrapperStyles.js";var h=[{tabName:"Assignees & Approvers",tabIcon:r("svg",e({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},{children:[n("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),n("circle",{cx:"9",cy:"7",r:"4"}),n("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),n("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))},{tabName:"Manage Reminders",tabIcon:n(a,{size:15})},{tabName:"Review Status",tabIcon:n(o,{size:15})}],D=[{id:1,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}},{id:2,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}},{id:3,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}}];function _(a){var o,_,g,w=a.metadata,R=void 0===w?{}:w,A=a.reviewData,T=void 0===A?{}:A,S=a.levels,L=a.setLevels,C=a.requireFinalApproval,q=a.setRequireFinalApproval,B=a.approvalDueDate,x=a.setApprovalDueDate,F=a.onClose,N=a.fetchUsers,O=a.onSave,k=a.onValidationError,M=a.totalLevels,I=a.customStyles,j=void 0===I?{}:I,H=a.isSaving,P=void 0!==H&&H,E=a.onRequireFinalApproval,W=a.isOwner,z=void 0===W||W;a.remindersData;var U,V=a.remainderOwners,Y=a.setRemainderOwners,G=a.schedules,J=a.setSchedules,K=a.handelSendNow,Q=a.showPreviewEmail,X=a.tabName,Z=a.reminderLabels,$=a.reminderColors,ee=a.reminderChipColor,ie=a.reminderAssignees,re=a.reminderFallbackRecipients,ne=a.reminderRecipientsColor,te=a.manualReminderTitle,ae=a.manualReminderDescription,oe=a.lastReminderText,le=a.selectRecipientsLabel,se=a.previewEmailButtonLabel,de=a.sendNowButtonLabel,ce=a.reminderSuccessTitle,ue=a.reminderSuccessDescription,me=a.escalationTitle,ve=a.escalationTitleTooltip,pe=a.escalationDescription,fe=a.configureAutoReminderText,ye=a.getDynamicStatement,be=a.reminderStartDateLabel,he=a.documentDueDateLabel,De=a.reminderFrequencyLabel,_e=a.escalationRemindersLabel,ge=a.escalationTooltip,we=a.escalationConditionText,Re=a.daysText,Ae=a.dueDataAndRepeatText,Te=a.reminderFrequencyOptions,Se=a.escalationFrequencyOptions,Le=a.beforeAfterOptions,Ce=(null===(o=R.tabData)||void 0===o?void 0:o.length)?R.tabData:h,qe=z?Ce:Ce.filter(function(e,i){return 0!==i}),Be=c(null!==(g=null===(_=qe[0])||void 0===_?void 0:_.tabName)&&void 0!==g?g:""),xe=Be[0],Fe=Be[1],Ne=(U=xe.toLowerCase()).includes("reminder")?"reminders":U.includes("review")?"review":"assignees",Oe=c(S||v),ke=Oe[0],Me=Oe[1],Ie=c(C||!1),je=Ie[0],He=Ie[1],Pe=c(B||null),Ee=Pe[0],We=Pe[1],ze=c(null),Ue=ze[0],Ve=ze[1],Ye=c([]),Ge=Ye[0],Je=Ye[1],Ke=c(V||D),Qe=Ke[0],Xe=Ke[1],Ze=void 0!==G?G:Ge,$e=void 0!==J?J:Je,ei=void 0!==V?V:Qe,ii=d.useMemo(function(){return{due_at:Ee?Ee.toISOString():"",assignee:ke.filter(function(e){return!e.isHidden}).flatMap(function(e){return e.assignees||[]}).reduce(function(i,r,n){var t;return e(e({},i),((t={})[n]=r,t))},{})}},[Ee,ke]);u(function(){void 0!==V&&Xe(V)},[V]),u(function(){E&&E().then(function(e){Array.isArray(e)&&e.length>0?Ve(e[0]):e&&!Array.isArray(e)&&Ve(e)}).catch(function(e){return console.error("Failed to fetch user:",e)})},[]),u(function(){X&&Fe(X)},[X]),u(function(){var e,i;qe.some(function(e){return e.tabName===xe})||Fe(null!==(i=null===(e=qe[0])||void 0===e?void 0:e.tabName)&&void 0!==i?i:"")},[qe,xe]),u(function(){S&&Me(function(e){var r=e.find(function(e){return e.isHidden});return r?i(i([],S,!0),[r],!1):S})},[S]),u(function(){void 0!==C&&He(C)},[C]),u(function(){void 0!==B&&We(B)},[B]),u(function(){Me(function(e){var r=e.filter(function(e){return!e.isHidden});if(je){var n={headerName:"Final",title:"Final Approval",isMandatory:!0,hasDueDate:!1,dueDate:null,isHidden:!0,assignees:[{id:(null==Ue?void 0:Ue.id)||"me",email:(null==Ue?void 0:Ue.email)||"",name:(null==Ue?void 0:Ue.name)?"".concat(Ue.name," (You)"):"Username (You)",accessLevel:"Approve"}]};return i(i([],r,!0),[n],!1)}return r})},[je,Ue]),u(function(){var e=ke.flatMap(function(e){return e.assignees||[]}).filter(function(e){return e.email});Xe(function(i){var r=i.length===e.length&&e.every(function(e,r){var n;return(null===(n=i[r])||void 0===n?void 0:n.email)===e.email});return r?i:e.map(function(e,r){var n=i.find(function(i){return i.email===e.email});return n||{id:r+1,name:e.name,email:e.email,reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}}})})},[ke]);var ri=R.wrapperTitle||"Assign Redline and Manage Reminders",ni=R.wrapperSubTitle||"Sec 4.1 - Technical Security Information",ti=R.wrapperPriority||"High",ai=R.wrapperPriorityStyles||{backgroundColor:"#DC262618",color:"#DC2626",border:"1px solid #DC262640"};return n("div",e({style:e(e({},b.overlay),j.overlay)},{children:r("div",e({style:e(e(e(e({},b.modal),{transition:"width 0.3s ease, max-width 0.3s ease"}),"reminders"===Ne?{width:"1400px",maxWidth:"95vw"}:{}),j.modal)},{children:[r("div",e({style:e(e({},b.header),j.header)},{children:[r("div",e({style:e(e({},b.headerLeft),j.headerLeft)},{children:[n("span",e({style:e(e({},b.modalTitle),j.modalTitle)},{children:ri})),r("div",e({style:e(e({},b.redlineRow),j.redlineRow)},{children:[n("span",e({style:e(e({},b.redlineName),j.redlineName)},{children:ni})),n("span",e({style:e(e(e({},b.redlineBadge),ai),j.redlineBadge)},{children:ti}))]}))]})),n("button",e({style:e(e({},b.closeBtn),j.closeBtn),onClick:F},{children:n(l,{size:20,color:"#6B7280"})}))]})),n("div",e({style:e(e({},b.tabBar),j.tabBar)},{children:qe.map(function(i){var n=xe===i.tabName;return r("button",e({style:e(e(e({},b.tab),j.tab),n?e(e({},b.tabActive),j.tabActive):{}),onClick:function(){return Fe(i.tabName)}},{children:[i.tabIcon," ",i.tabName]}),i.tabName)})})),r("div",e({style:e(e({},b.body),j.body)},{children:["assignees"===Ne&&r(t,{children:[!1!==R.showFinalApprovalDueDate&&r("div",e({style:e(e({},b.dueDateBar),j.dueDateBar)},{children:[r("span",e({style:e(e({},b.dueDateLabel),j.dueDateLabel)},{children:["Final Approval due date"," ",n("sup",e({style:{color:"#DC2626",marginLeft:2}},{children:"*"}))]})),n("div",e({style:e(e({},b.dueDateInputWrap),j.dueDateInputWrap)},{children:n(f,{value:Ee?Ee.toISOString().slice(0,10):"",onChange:We})})),r("span",e({style:e(e({},b.requiredToProceeed),j.requiredToProceeed)},{children:[n(s,{size:14,color:"#6B7280"})," Required to proceed"]}))]})),n(m,{levels:ke,totalLevels:M,requireFinalApproval:je,setLevels:Me,setRequireFinalApproval:function(e){He(e)},fetchUsers:N,onValidationError:k,customStyles:j})]}),"reminders"===Ne&&n(y,e({data:ii,schedules:Ze,setSchedules:$e,remainderOwners:ei,setRemainderOwners:function(e){var i="function"==typeof e?e(ei):e;Y?Y(i):Xe(i)},handelSendNow:function(e,i){K&&K(e||Ze,i||ei)},showPreviewEmail:null!=Q&&Q},void 0!==Z&&{labels:Z},void 0!==$&&{colors:$},void 0!==ee&&{chipColor:ee},void 0!==ie&&{assignees:ie},void 0!==re&&{fallbackRecipients:re},void 0!==ne&&{recipientsColor:ne},void 0!==te&&{manualReminderTitle:te},void 0!==ae&&{manualReminderDescription:ae},void 0!==oe&&{lastReminderText:oe},void 0!==le&&{selectRecipientsLabel:le},void 0!==se&&{previewEmailButtonLabel:se},void 0!==de&&{sendNowButtonLabel:de},void 0!==ce&&{reminderSuccessTitle:ce},void 0!==ue&&{reminderSuccessDescription:ue},void 0!==me&&{escalationTitle:me},void 0!==ve&&{escalationTitleTooltip:ve},void 0!==pe&&{escalationDescription:pe},void 0!==fe&&{configureAutoReminderText:fe},void 0!==ye&&{getDynamicStatement:ye},void 0!==be&&{reminderStartDateLabel:be},void 0!==he&&{documentDueDateLabel:he},void 0!==De&&{reminderFrequencyLabel:De},void 0!==_e&&{escalationRemindersLabel:_e},void 0!==ge&&{escalationTooltip:ge},void 0!==we&&{escalationConditionText:we},void 0!==Re&&{daysText:Re},void 0!==Ae&&{dueDataAndRepeatText:Ae},void 0!==Te&&{reminderFrequencyOptions:Te},void 0!==Se&&{escalationFrequencyOptions:Se},void 0!==Le&&{beforeAfterOptions:Le})),"review"===Ne&&n(p,{levels:ke,reviewData:T})]})),r("div",e({style:e(e({},b.footer),j.footer)},{children:[n("button",e({style:e(e(e({},b.clearBtn),j.clearBtn),P?j.actionBtnDisabled:{}),onClick:function(){Me(v.map(function(i){return e(e({},i),{assignees:[],dueDate:null})})),He(!1),We(null)},disabled:P},{children:"Clear"})),n("button",e({style:e(e(e({},b.saveBtn),j.saveBtn),P?j.actionBtnDisabled:{}),onClick:function(){var e=ke.filter(function(e){return!e.isHidden});null==L||L(e),null==q||q(je),null==x||x(Ee),null==O||O({levels:e,requireFinalApproval:je,finalApprovalDueDate:Ee,activeTab:Ne,schedules:Ze,remainderOwners:ei})},disabled:P},{children:"Save Changes"}))]}))]}))}))}export{_ as AssignReminderWrapper};
1
+ import{__assign as e,__spreadArray as i}from"../../_virtual/_tslib.js";import{jsxs as r,jsx as n,Fragment as t}from"react/jsx-runtime";import{Bell as a,ClipboardList as o,X as l,CircleAlert as s}from"lucide-react";import d,{useState as c,useEffect as u}from"react";import{AssignReminderLevels as m}from"./AssignReminderLevels.js";import{INITIAL_LEVELS as v}from"./AssignReminderTest.js";import p from"./components/ReviewStatus.js";import f from"./components/CustomDatePicker.js";import{ManageReminders as y}from"./ManageReminders.js";import{DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES as b}from"./styles/AssignReminderWrapperStyles.js";var h=[{tabName:"Assignees & Approvers",tabIcon:r("svg",e({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},{children:[n("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),n("circle",{cx:"9",cy:"7",r:"4"}),n("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),n("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))},{tabName:"Manage Reminders",tabIcon:n(a,{size:15})},{tabName:"Review Status",tabIcon:n(o,{size:15})}],D=[{id:1,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}},{id:2,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}},{id:3,name:"",email:"",reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}}];function _(a){var o,_,g,w=a.metadata,R=void 0===w?{}:w,A=a.reviewData,T=void 0===A?{}:A,S=a.levels,L=a.setLevels,C=a.requireFinalApproval,q=a.setRequireFinalApproval,B=a.approvalDueDate,x=a.setApprovalDueDate,F=a.onClose,N=a.fetchUsers,O=a.onSave,k=a.onValidationError,M=a.totalLevels,I=a.customStyles,j=void 0===I?{}:I,H=a.isSaving,P=void 0!==H&&H,E=a.onRequireFinalApproval,W=a.isOwner,z=void 0===W||W;a.remindersData;var U,V=a.remainderOwners,Y=a.setRemainderOwners,G=a.schedules,J=a.setSchedules,K=a.handelSendNow,Q=a.showPreviewEmail,X=a.tabName,Z=a.reminderLabels,$=a.reminderColors,ee=a.reminderChipColor,ie=a.reminderAssignees,re=a.reminderFallbackRecipients,ne=a.reminderRecipientsColor,te=a.manualReminderTitle,ae=a.manualReminderDescription,oe=a.lastReminderText,le=a.selectRecipientsLabel,se=a.previewEmailButtonLabel,de=a.sendNowButtonLabel,ce=a.reminderSuccessTitle,ue=a.reminderSuccessDescription,me=a.escalationTitle,ve=a.escalationTitleTooltip,pe=a.escalationDescription,fe=a.configureAutoReminderText,ye=a.getDynamicStatement,be=a.reminderStartDateLabel,he=a.documentDueDateLabel,De=a.reminderFrequencyLabel,_e=a.escalationRemindersLabel,ge=a.escalationTooltip,we=a.escalationConditionText,Re=a.daysText,Ae=a.dueDataAndRepeatText,Te=a.reminderFrequencyOptions,Se=a.escalationFrequencyOptions,Le=a.beforeAfterOptions,Ce=(null===(o=R.tabData)||void 0===o?void 0:o.length)?R.tabData:h,qe=z?Ce:Ce.filter(function(e,i){return 0!==i}),Be=c(null!==(g=null===(_=qe[0])||void 0===_?void 0:_.tabName)&&void 0!==g?g:""),xe=Be[0],Fe=Be[1],Ne=(U=xe.toLowerCase()).includes("reminder")?"reminders":U.includes("review")?"review":"assignees",Oe=c(S||v),ke=Oe[0],Me=Oe[1],Ie=c(C||!1),je=Ie[0],He=Ie[1],Pe=c(B||null),Ee=Pe[0],We=Pe[1],ze=c(null),Ue=ze[0],Ve=ze[1],Ye=c([]),Ge=Ye[0],Je=Ye[1],Ke=c(V||D),Qe=Ke[0],Xe=Ke[1],Ze=void 0!==G?G:Ge,$e=void 0!==J?J:Je,ei=void 0!==V?V:Qe,ii=d.useMemo(function(){return{due_at:Ee?Ee.toISOString():"",assignee:ke.filter(function(e){return!e.isHidden}).flatMap(function(e){return e.assignees||[]}).reduce(function(i,r,n){var t;return e(e({},i),((t={})[n]=r,t))},{})}},[Ee,ke]);u(function(){void 0!==V&&Xe(V)},[V]),u(function(){E&&E().then(function(e){Array.isArray(e)&&e.length>0?Ve(e[0]):e&&!Array.isArray(e)&&Ve(e)}).catch(function(e){return console.error("Failed to fetch user:",e)})},[]),u(function(){X&&Fe(X)},[X]),u(function(){var e,i;qe.some(function(e){return e.tabName===xe})||Fe(null!==(i=null===(e=qe[0])||void 0===e?void 0:e.tabName)&&void 0!==i?i:"")},[qe,xe]),u(function(){S&&Me(function(e){var r=e.find(function(e){return e.isHidden});return r?i(i([],S,!0),[r],!1):S})},[S]),u(function(){void 0!==C&&He(C)},[C]),u(function(){void 0!==B&&We(B)},[B]),u(function(){Me(function(e){var r=e.filter(function(e){return!e.isHidden});if(je){var n={headerName:"Final",title:"Final Approval",isMandatory:!0,hasDueDate:!1,dueDate:null,isHidden:!0,assignees:[{id:(null==Ue?void 0:Ue.id)||"me",email:(null==Ue?void 0:Ue.email)||"",name:(null==Ue?void 0:Ue.name)?"".concat(Ue.name," (You)"):"Username (You)",accessLevel:"Approve"}]};return i(i([],r,!0),[n],!1)}return r})},[je,Ue]),u(function(){var e=ke.flatMap(function(e){return e.assignees||[]}).filter(function(e){return e.email});Xe(function(i){var r=i.length===e.length&&e.every(function(e,r){var n;return(null===(n=i[r])||void 0===n?void 0:n.email)===e.email});return r?i:e.map(function(e,r){var n=i.find(function(i){return i.email===e.email});return n||{id:r+1,name:e.name,email:e.email,reminder_start_date:"",reminder_frequency:{type:"preset",value:""},is_escalation_reminder:!1,days:{type:"preset",value:""},before_or_after:"",escalation_reminder_frequency:{type:"preset",value:""}}})})},[ke]);var ri=R.wrapperTitle||"Assign Redline and Manage Reminders",ni=R.wrapperSubTitle||"Sec 4.1 - Technical Security Information",ti=R.wrapperPriority||"High",ai=R.wrapperPriorityStyles||{backgroundColor:"#DC262618",color:"#DC2626",border:"1px solid #DC262640"};return n("div",e({style:e(e({},b.overlay),j.overlay)},{children:r("div",e({style:e(e(e(e({},b.modal),{transition:"width 0.3s ease, max-width 0.3s ease"}),"reminders"===Ne?{width:"1400px",maxWidth:"95vw"}:{}),j.modal)},{children:[r("div",e({style:e(e({},b.header),j.header)},{children:[r("div",e({style:e(e({},b.headerLeft),j.headerLeft)},{children:[n("span",e({style:e(e({},b.modalTitle),j.modalTitle)},{children:ri})),r("div",e({style:e(e({},b.redlineRow),j.redlineRow)},{children:[n("span",e({style:e(e({},b.redlineName),j.redlineName)},{children:ni})),n("span",e({style:e(e(e({},b.redlineBadge),ai),j.redlineBadge)},{children:ti}))]}))]})),n("button",e({style:e(e({},b.closeBtn),j.closeBtn),onClick:F},{children:n(l,{size:20,color:"#6B7280"})}))]})),n("div",e({style:e(e({},b.tabBar),j.tabBar)},{children:qe.map(function(i){var n=xe===i.tabName;return r("button",e({style:e(e(e({},b.tab),j.tab),n?e(e({},b.tabActive),j.tabActive):{}),onClick:function(){return Fe(i.tabName)}},{children:[i.tabIcon," ",i.tabName]}),i.tabName)})})),r("div",e({style:e(e({},b.body),j.body)},{children:["assignees"===Ne&&r(t,{children:[!1!==R.showFinalApprovalDueDate&&r("div",e({style:e(e({},b.dueDateBar),j.dueDateBar)},{children:[r("span",e({style:e(e({},b.dueDateLabel),j.dueDateLabel)},{children:["Final Approval due date"," ",n("sup",e({style:{color:"#DC2626",marginLeft:2}},{children:"*"}))]})),n("div",e({style:e(e({},b.dueDateInputWrap),j.dueDateInputWrap)},{children:n(f,{value:Ee?Ee.toISOString().slice(0,10):"",onChange:We})})),r("span",e({style:e(e({},b.requiredToProceeed),j.requiredToProceeed)},{children:[n(s,{size:14,color:"#6B7280"})," Required to proceed"]}))]})),n(m,{levels:ke,totalLevels:M,requireFinalApproval:je,setLevels:Me,setRequireFinalApproval:function(e){He(e)},fetchUsers:N,onValidationError:k,customStyles:j,finalApprovalDueDate:Ee})]}),"reminders"===Ne&&n(y,e({data:ii,schedules:Ze,setSchedules:$e,remainderOwners:ei,setRemainderOwners:function(e){var i="function"==typeof e?e(ei):e;Y?Y(i):Xe(i)},handelSendNow:function(e,i){K&&K(e||Ze,i||ei)},showPreviewEmail:null!=Q&&Q},void 0!==Z&&{labels:Z},void 0!==$&&{colors:$},void 0!==ee&&{chipColor:ee},void 0!==ie&&{assignees:ie},void 0!==re&&{fallbackRecipients:re},void 0!==ne&&{recipientsColor:ne},void 0!==te&&{manualReminderTitle:te},void 0!==ae&&{manualReminderDescription:ae},void 0!==oe&&{lastReminderText:oe},void 0!==le&&{selectRecipientsLabel:le},void 0!==se&&{previewEmailButtonLabel:se},void 0!==de&&{sendNowButtonLabel:de},void 0!==ce&&{reminderSuccessTitle:ce},void 0!==ue&&{reminderSuccessDescription:ue},void 0!==me&&{escalationTitle:me},void 0!==ve&&{escalationTitleTooltip:ve},void 0!==pe&&{escalationDescription:pe},void 0!==fe&&{configureAutoReminderText:fe},void 0!==ye&&{getDynamicStatement:ye},void 0!==be&&{reminderStartDateLabel:be},void 0!==he&&{documentDueDateLabel:he},void 0!==De&&{reminderFrequencyLabel:De},void 0!==_e&&{escalationRemindersLabel:_e},void 0!==ge&&{escalationTooltip:ge},void 0!==we&&{escalationConditionText:we},void 0!==Re&&{daysText:Re},void 0!==Ae&&{dueDataAndRepeatText:Ae},void 0!==Te&&{reminderFrequencyOptions:Te},void 0!==Se&&{escalationFrequencyOptions:Se},void 0!==Le&&{beforeAfterOptions:Le})),"review"===Ne&&n(p,{levels:ke,reviewData:T})]})),r("div",e({style:e(e({},b.footer),j.footer)},{children:[n("button",e({style:e(e(e({},b.clearBtn),j.clearBtn),P?j.actionBtnDisabled:{}),onClick:function(){Me(v.map(function(i){return e(e({},i),{assignees:[],dueDate:null})})),He(!1),We(null)},disabled:P},{children:"Clear"})),n("button",e({style:e(e(e({},b.saveBtn),j.saveBtn),P?j.actionBtnDisabled:{}),onClick:function(){var e=ke.filter(function(e){return!e.isHidden});null==L||L(e),null==q||q(je),null==x||x(Ee),null==O||O({levels:e,requireFinalApproval:je,finalApprovalDueDate:Ee,activeTab:Ne,schedules:Ze,remainderOwners:ei})},disabled:P},{children:"Save Changes"}))]}))]}))}))}export{_ as AssignReminderWrapper};
2
2
  //# sourceMappingURL=AssignReminderWrapper.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useRef as l}from"react";import{DATE_PICKER_STYLES as n}from"../styles/AssignLevelsDatePickerStyles.js";function i(i){var o=i.value,a=i.onSet,u=l(null);return t("div",e({style:n.wrapper,onClick:function(){var e,t;return null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t?void 0:t.call(e)}},{children:[r("span",e({style:n.placeholder},{children:o?o.toLocaleDateString("en-GB"):"--/--/----"})),r("input",{ref:u,type:"date",style:n.input,value:o?o.toISOString().split("T")[0]:"",onChange:function(e){var t=e.target.value;a(t?new Date(t):null)}})]}))}export{i as default};
1
+ import{__assign as t}from"../../../_virtual/_tslib.js";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useRef as l}from"react";import{DATE_PICKER_STYLES as i}from"../styles/AssignLevelsDatePickerStyles.js";function n(n){var o=n.value,a=n.onSet,s=n.maxDate,u=l(null);return e("div",t({style:i.wrapper,onClick:function(){var t,e;return null===(e=null===(t=u.current)||void 0===t?void 0:t.showPicker)||void 0===e?void 0:e.call(t)}},{children:[r("span",t({style:i.placeholder},{children:o?o.toLocaleDateString("en-GB"):"--/--/----"})),r("input",{ref:u,type:"date",max:s?s.toISOString().split("T")[0]:void 0,style:i.input,value:o?o.toISOString().split("T")[0]:"",onChange:function(t){var e=t.target.value;a(e?new Date(e):null)}})]}))}export{n as default};
2
2
  //# sourceMappingURL=AssignLevelsDatePicker.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as n,__generator as e,__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,x=u.onAssigneeChange,m=u.accessLevelOptions,g=u.fetchUsers,b=u.wrapperEl,y=l(""),w=y[0],C=y[1],L=l([]),M=L[0],k=L[1],S=l(null),E=S[0],B=S[1],D=l(null),z=D[0],T=D[1];d(function(){if(w.trim()){var i=setTimeout(function(){return n(v,void 0,void 0,function(){var n,i,r;return e(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,g(w)];case 1:return n=e.sent(),i=new Set(h.map(function(n){return n.id})),k(n.filter(function(n){return!i.has(n.id)})),[3,3];case 2:return r=e.sent(),console.error("[LevelData]: fetchUser error:",r),k([]),[3,3];case 3:return[2]}})})},300);return function(){return clearTimeout(i)}}k([])},[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(n){var e,r,l,d,s,u=!!(null===(e=n.notes)||void 0===e?void 0:e.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:n.name})),o(a,{value:null!==(d=null!==(r=n.accessLevel)&&void 0!==r?r:null===(l=m[0])||void 0===l?void 0:l.label)&&void 0!==d?d:"",options:m,onChange:function(e){return r=n.id,t=e,void x(h.map(function(n){return n.id===r?i(i({},n),{accessLevel:t}):n}));var r,t}}),t("div",i({style:{position:"relative",display:"inline-flex"},onMouseEnter:function(){return T(n.id)},onMouseLeave:function(){return T(null)}},{children:[o("button",i({type:"button",onClick:function(){return function(n){B(i({},n))}(n)},style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",color:u?"#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"})]}))})),z===n.id&&(null===(s=n.notes)||void 0===s?void 0:s.trim())&&o("div",i({style:{position:"absolute",bottom:"120%",left:"50%",transform:"translateX(-50%)",background:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"pre-wrap",maxWidth:"250px",zIndex:9999,boxShadow:"0 2px 8px rgba(0,0,0,0.2)"}},{children:n.notes}))]})),o("button",i({style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",fontSize:"12px"},onClick:function(){return e=n.id,x(h.filter(function(n){return n.id!==e})),void((null==E?void 0:E.id)===e&&B(null));var e},"aria-label":"Remove ".concat(n.name)},{children:"✕"}))]}),n.id)}),o("input",{type:"text",value:w,placeholder:"Search users...",onChange:function(n){return C(n.target.value)},style:{border:"none",outline:"none",flex:1,minWidth:"150px",fontSize:"12px"}})]})),M.length>0&&o("div",i({style:{border:"1px solid #CBD5E1",borderRadius:"8px",marginTop:"8px"}},{children:M.map(function(n){return t("div",i({style:{padding:"8px",cursor:"pointer"},onClick:function(){return function(n){var e,t,o,l;h.some(function(e){return e.id===n.id})||(x(r(r([],h,!0),[i(i({},n),{accessLevel:null!==(t=null===(e=m[0])||void 0===e?void 0:e.label)&&void 0!==t?t:"",notes:"",sendMailNow:!1})],!1)),C(""),k([]),B(i(i({},n),{accessLevel:null!==(l=null===(o=m[0])||void 0===o?void 0:o.label)&&void 0!==l?l:""})))}(n)}},{children:[n.name,n.email&&o("span",i({style:{marginLeft:"8px",color:"#6B7280",fontSize:"11px"}},{children:n.email}))]}),n.id)})})),E&&o(s,{user:E,accessLevel:null!==(f=null!==(p=E.accessLevel)&&void 0!==p?p:null===(c=m[0])||void 0===c?void 0:c.label)&&void 0!==f?f:"",wrapperEl:b,onBackToEditing:function(){E&&(x(h.map(function(n){return n.id===E.id?i(i({},n),{notes:"",sendMailNow:!1}):n})),B(null))},onSendLater:function(n){E&&(x(h.map(function(e){return e.id===E.id?i(i({},e),{notes:n,sendMailNow:!1}):e})),B(null))},onSendNow:function(n){E&&(x(h.map(function(e){return e.id===E.id?i(i({},e),{notes:n,sendMailNow:!0}):e})),B(null))}})]}))}export{u 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{__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 d,X as s,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 d=o.levels,s=o.reviewData,a=void 0===s?{}:s,p=d.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}}),d="not_started";if(!0===e.isApproved)d="approved";else if(!0===e.isRejected)d="rejected";else if("approved"===e.status||"completed"===e.status)d="approved";else if("rejected"===e.status)d="rejected";else{var s=o.length>0&&o.every(function(e){return e.approved}),p=o.some(function(e){return e.rejected});s?d="approved":p&&(d="rejected")}return{level:e,assigneeStatuses:o,status:d}}),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,o,d="approved"===t.extendedStatus,s="rejected"===t.extendedStatus,a="optional"===t.extendedStatus,p=0===n,c=n===u-1;if(!((null===(l=t.level)||void 0===l?void 0:l.assignees)&&(null===(o=null===(r=t.level)||void 0===r?void 0:r.assignees)||void 0===o?void 0:o.length)<1))return i("div",{style:e(e({},x.progressSegment),{backgroundColor:d?"#6366F1":s?"#EF4444":a?"#F1F5F9":"#E5E7EB",borderRadius:p&&c?"999px":p?"999px 0 0 999px":c?"0 999px 999px 0":"0",marginRight:c?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,d=r===g.length-1,s=n.isFinalApproval,a=g[r+1],p=null==a?void 0:a.isFinalApproval,c=a&&!a.level.isMandatory&&!p;return t(l.Fragment,s?{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}),!d&&!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:d})]}))}function m(n){var l,a,p=n.reviewLevel,c=p.level,g=p.assigneeStatuses,v=p.extendedStatus,u=null!==(l={approved:{bg:"#ECFDF5",color:"#059669",icon:i(o,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:i(d,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:i(d,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:i(s,{size:14}),text:"Rejected"},optional:{bg:"#F8FAFC",color:"#64748B",icon:i(r,{size:14}),text:"Optional"}}[v])&&void 0!==l?l:{bg:"#F3F4F6",color:"#4B5563",icon:i(d,{size:14}),text:"Waiting"},f="approved"===v?"1px solid #D1FAE5":"rejected"===v?"1px solid #FCA5A5":"optional"===v?"1px dashed #CBD5E1":"1px solid #E5E7EB",x="approved"===v?"#F0FDF4":"rejected"===v?"#FEF2F2":"#F8FAFC";return c.assignees&&(null===(a=c.assignees)||void 0===a?void 0:a.length)<1?null:t("div",e({style:{backgroundColor:"#FFFFFF",border:f,borderRadius:"8px",display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[t("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:x,borderBottom:f,padding:"12px 16px"}},{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[i(C,{name:c.headerName}),i("span",e({style:{fontSize:15,fontWeight:500,color:"#374151"}},{children:c.title}))]})),t("div",e({style:{backgroundColor:u.bg,color:u.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[u.icon,u.text]}))]})),i("div",e({style:{padding:"16px"}},{children:g.length>0?i("div",e({style:{display:"flex",flexDirection:"column",gap:16}},{children:g.map(function(e,t){var n;return i(E,{assigneeStatus:e,extendedStatus:v},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(d,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:i(d,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:i(s,{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(d,{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,d=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(s,{size:20,color:"#DC2626",strokeWidth:1.5}):"pending"===d?t(n,{children:[i("span",{style:{fontSize:"13px",color:"#4B5563"}}),i(p,{size:20,color:"#9CA3AF",strokeWidth:1.5})]}):i(p,"optional"===d?{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 d,s=n.isHidden,a=!n.isMandatory&&!s,p=null===(d=n.assignees)||void 0===d?void 0:d.map(function(e){return e.name}).join(" / ");if(!p)return null;var v=s?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};
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=null==t?void 0: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
- import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Plus as l,ExternalLink as i}from"lucide-react";import{cx as n,defaultFormatAddedOnLabel as r}from"../utils.js";import{GuidelineCartItem as d}from"./GuidelineCartItem.js";import{GuidelineTooltip as p}from"./GuidelineTooltip.js";import{DEFAULT_GUIDELINE_LABELS as s}from"../constants.js";function u(u){var a=u.guidelines,v=u.cartGuidelineIds,c=u.selectedGuidelineIds,m=u.onToggleGuideline,b=u.onPreviewGuideline,y=u.onRemoveGuideline,g=u.onAddGuideline,h=u.onOpenFullView,f=u.debugEnabled,x=void 0!==f&&f,D=u.onDebugChange,E=u.title,N=void 0===E?"Guideline Cart":E,w=u.debugLabel,F=void 0===w?"Debug":w,A=u.addGuidelineLabel,C=void 0===A?"Add guideline":A,T=u.openFullViewLabel,j=void 0===T?"Open full view":T,G=u.emptyTitle,L=void 0===G?"No guideline yet":G,k=u.emptyDescription,B=void 0===k?"Add your first guideline to get started":k,I=u.emptyActionLabel,O=void 0===I?"Add guideline":I,S=u.emptyIcon,z=u.className,W=u.classNames,H=u.styles,P=u.formatAddedOnLabel,R=void 0===P?r:P,V=u.debugTooltipContent,_=void 0===V?s.popoverDebugTooltipContent:V,q=v?a.filter(function(e){return v.includes(e.id)}):a.filter(function(e){return c.includes(e.id)});return t("section",e({className:n("bg-white p-6",null==W?void 0:W.popoverCart,z),style:null==H?void 0:H.popoverCart},{children:[t("div",e({className:n("flex items-center justify-between gap-4",null==W?void 0:W.popoverHeader),style:null==H?void 0:H.popoverHeader},{children:[o("h3",e({className:n("text-[18px] font-semibold leading-7 text-[#5928ED]",null==W?void 0:W.popoverTitle),style:null==H?void 0:H.popoverTitle},{children:N})),t("div",e({className:n("flex shrink-0 items-center gap-3 text-[#5928ED]",null==W?void 0:W.popoverActions),style:null==H?void 0:H.popoverActions},{children:[D&&t("div",e({className:n("flex items-center gap-2",null==W?void 0:W.popoverDebug),style:null==H?void 0:H.popoverDebug},{children:[o("button",e({type:"button",role:"switch","aria-checked":x,onClick:function(){return D(!x)},className:n("relative inline-flex h-5 w-9 items-center rounded-full border transition-colors focus:outline-none",x?"border-[#5928ED] bg-[#5928ED]":"border-[#D0D5DD] bg-[#EAECF0]",null==W?void 0:W.popoverDebugSwitch),style:null==H?void 0:H.popoverDebugSwitch},{children:o("span",{className:n("inline-block h-4 w-4 transform rounded-full bg-white transition-transform",x?"translate-x-4":"translate-x-0.5",null==W?void 0:W.popoverDebugThumb),style:null==H?void 0:H.popoverDebugThumb})})),o(p,e({content:_,side:"bottom",maxWidth:400},{children:o("span",e({className:n("text-[14px] leading-5 text-[#667085] cursor-help",null==W?void 0:W.popoverDebugLabel),style:null==H?void 0:H.popoverDebugLabel},{children:F}))}))]})),o("div",{className:n("h-6 w-px bg-[#D0D5DD]",null==W?void 0:W.popoverDivider),style:null==H?void 0:H.popoverDivider}),o("button",e({type:"button",onClick:g,className:n("flex h-7 w-7 items-center justify-center rounded-md text-[#5928ED] transition hover:bg-[#F4F0FF]",null==W?void 0:W.popoverAddButton),style:null==H?void 0:H.popoverAddButton,"aria-label":C,title:C},{children:o(l,{size:20,strokeWidth:2.1})})),o("button",e({type:"button",onClick:h,className:n("flex h-7 w-7 items-center justify-center rounded-md text-[#5928ED] transition hover:bg-[#F4F0FF]",null==W?void 0:W.popoverOpenButton),style:null==H?void 0:H.popoverOpenButton,"aria-label":j,title:j},{children:o(i,{size:18,strokeWidth:2.1})}))]}))]})),o("div",e({className:n("mt-6 max-h-[360px] space-y-4 overflow-y-auto pr-1",null==W?void 0:W.popoverList),style:null==H?void 0:H.popoverList},{children:0===q.length?t("div",e({className:n("flex flex-col items-center rounded-[8px] bg-[#F9FAFB] px-5 py-6 text-center",null==W?void 0:W.popoverEmptyState),style:null==H?void 0:H.popoverEmptyState},{children:[S&&o("div",e({className:n("mb-2 flex h-12 w-12 items-center justify-center rounded-xl bg-[#EDE9FE]",null==W?void 0:W.popoverEmptyIcon),style:null==H?void 0:H.popoverEmptyIcon},{children:S})),o("p",e({className:n("text-[14px] font-semibold text-[#1F2937]",null==W?void 0:W.popoverEmptyTitle),style:null==H?void 0:H.popoverEmptyTitle},{children:L})),o("p",e({className:n("mt-1 text-[12px] text-[#667085]",null==W?void 0:W.popoverEmptyDescription),style:null==H?void 0:H.popoverEmptyDescription},{children:B})),t("button",e({type:"button",onClick:g,className:n("mt-4 flex items-center gap-1.5 rounded-lg bg-[#5928ED] px-5 py-2 text-sm font-medium text-white transition hover:bg-[#4A1FD6]",null==W?void 0:W.popoverEmptyButton),style:null==H?void 0:H.popoverEmptyButton},{children:[o(l,{size:16}),O]}))]})):q.map(function(e){return o(d,{guideline:e,isSelected:c.includes(e.id),onToggle:m,onPreview:b,onRemove:y,classNames:W,styles:H,formatAddedOnLabel:R},e.id)})}))]}))}export{u as GuidelinePopoverCart};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{Plus as l,ExternalLink as i}from"lucide-react";import{cx as n,defaultFormatAddedOnLabel as r}from"../utils.js";import{GuidelineCartItem as d}from"./GuidelineCartItem.js";import{GuidelineTooltip as p}from"./GuidelineTooltip.js";import{DEFAULT_GUIDELINE_LABELS as s}from"../constants.js";function u(u){var a=u.guidelines,v=u.cartGuidelineIds,c=u.selectedGuidelineIds,m=u.onToggleGuideline,b=u.onPreviewGuideline,y=u.onRemoveGuideline,f=u.onAddGuideline,h=u.onOpenFullView,g=u.debugEnabled,x=void 0!==g&&g,D=u.onDebugChange,E=u.title,N=void 0===E?"Guideline Cart":E,w=u.debugLabel,F=void 0===w?"Debug":w,A=u.addGuidelineLabel,C=void 0===A?"Add guideline":A,T=u.openFullViewLabel,j=void 0===T?"Open full view":T,G=u.emptyTitle,L=void 0===G?"No guideline yet":G,k=u.emptyDescription,B=void 0===k?"Add your first guideline to get started":k,I=u.emptyActionLabel,O=void 0===I?"Add guideline":I,S=u.emptyIcon,z=u.className,W=u.classNames,H=u.styles,P=u.formatAddedOnLabel,R=void 0===P?r:P,V=u.debugTooltipContent,_=void 0===V?s.popoverDebugTooltipContent:V,q=v?a.filter(function(e){return v.includes(e.id)}):a.filter(function(e){return c.includes(e.id)});return t("section",e({className:n("flex min-h-[420px] flex-col bg-white p-6",null==W?void 0:W.popoverCart,z),style:null==H?void 0:H.popoverCart},{children:[t("div",e({className:n("flex items-center justify-between gap-4",null==W?void 0:W.popoverHeader),style:null==H?void 0:H.popoverHeader},{children:[o("h3",e({className:n("text-[18px] font-semibold leading-7 text-[#5928ED]",null==W?void 0:W.popoverTitle),style:null==H?void 0:H.popoverTitle},{children:N})),t("div",e({className:n("flex shrink-0 items-center gap-3 text-[#5928ED]",null==W?void 0:W.popoverActions),style:null==H?void 0:H.popoverActions},{children:[D&&t("div",e({className:n("flex items-center gap-2",null==W?void 0:W.popoverDebug),style:null==H?void 0:H.popoverDebug},{children:[o("button",e({type:"button",role:"switch","aria-checked":x,onClick:function(){return D(!x)},className:n("relative inline-flex h-5 w-9 items-center rounded-full border transition-colors focus:outline-none",x?"border-[#5928ED] bg-[#5928ED]":"border-[#D0D5DD] bg-[#EAECF0]",null==W?void 0:W.popoverDebugSwitch),style:null==H?void 0:H.popoverDebugSwitch},{children:o("span",{className:n("inline-block h-4 w-4 transform rounded-full bg-white transition-transform",x?"translate-x-4":"translate-x-0.5",null==W?void 0:W.popoverDebugThumb),style:null==H?void 0:H.popoverDebugThumb})})),o(p,e({content:_,side:"bottom",maxWidth:400},{children:o("span",e({className:n("text-[14px] leading-5 text-[#667085] cursor-help",null==W?void 0:W.popoverDebugLabel),style:null==H?void 0:H.popoverDebugLabel},{children:F}))}))]})),o("div",{className:n("h-6 w-px bg-[#D0D5DD]",null==W?void 0:W.popoverDivider),style:null==H?void 0:H.popoverDivider}),o("button",e({type:"button",onClick:f,className:n("flex h-7 w-7 items-center justify-center rounded-md text-[#5928ED] transition hover:bg-[#F4F0FF]",null==W?void 0:W.popoverAddButton),style:null==H?void 0:H.popoverAddButton,"aria-label":C,title:C},{children:o(l,{size:20,strokeWidth:2.1})})),o("button",e({type:"button",onClick:h,className:n("flex h-7 w-7 items-center justify-center rounded-md text-[#5928ED] transition hover:bg-[#F4F0FF]",null==W?void 0:W.popoverOpenButton),style:null==H?void 0:H.popoverOpenButton,"aria-label":j,title:j},{children:o(i,{size:18,strokeWidth:2.1})}))]}))]})),o("div",e({className:n("mt-6 min-h-[360px] flex-1 space-y-4 overflow-y-auto pr-1",null==W?void 0:W.popoverList),style:null==H?void 0:H.popoverList},{children:0===q.length?t("div",e({className:n("flex h-full min-h-[360px] flex-col items-center justify-center rounded-[8px] bg-[#F9FAFB] px-5 py-6 text-center",null==W?void 0:W.popoverEmptyState),style:null==H?void 0:H.popoverEmptyState},{children:[S&&o("div",e({className:n("mb-2 flex h-12 w-12 items-center justify-center rounded-xl bg-[#EDE9FE]",null==W?void 0:W.popoverEmptyIcon),style:null==H?void 0:H.popoverEmptyIcon},{children:S})),o("p",e({className:n("text-[14px] font-semibold text-[#1F2937]",null==W?void 0:W.popoverEmptyTitle),style:null==H?void 0:H.popoverEmptyTitle},{children:L})),o("p",e({className:n("mt-1 text-[12px] text-[#667085]",null==W?void 0:W.popoverEmptyDescription),style:null==H?void 0:H.popoverEmptyDescription},{children:B})),t("button",e({type:"button",onClick:h,className:n("mt-4 flex items-center gap-1.5 rounded-lg bg-[#5928ED] px-5 py-2 text-sm font-medium text-white transition hover:bg-[#4A1FD6]",null==W?void 0:W.popoverEmptyButton),style:null==H?void 0:H.popoverEmptyButton},{children:[o(l,{size:16}),O]}))]})):q.map(function(e){return o(d,{guideline:e,isSelected:c.includes(e.id),onToggle:m,onPreview:b,onRemove:y,classNames:W,styles:H,formatAddedOnLabel:R},e.id)})}))]}))}export{u as GuidelinePopoverCart};
2
2
  //# sourceMappingURL=GuidelinePopoverCart.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as l,jsxs as t}from"react/jsx-runtime";import{useEffect as o}from"react";import{X as a}from"lucide-react";import{cx as d}from"../utils.js";var i={title:"Guideline Saved Successfully",description:"Would you like to add it to the current Guideline Cart?",saveOnly:"Save Only",addToCart:"Add To Cart",closeAriaLabel:"Close"};function n(n){var s=n.open,r=n.onSaveOnly,u=n.onAddToCart,v=n.onClose,c=n.labels,m=n.classNames,y=n.styles,p=e(e({},i),c);return o(function(){if(s){var e=function(e){"Escape"===e.key&&v()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[s,v]),s?l("div",e({className:d("fixed inset-0 z-50 flex items-center justify-center bg-black/40 px-4",null==m?void 0:m.savedModalOverlay),style:null==y?void 0:y.savedModalOverlay,role:"presentation",onClick:v},{children:t("div",e({role:"dialog","aria-modal":"true","aria-labelledby":"guideline-saved-modal-title",className:d("w-full max-w-[420px] rounded-lg bg-white p-6 shadow-xl",null==m?void 0:m.savedModalDialog),style:null==y?void 0:y.savedModalDialog,onClick:function(e){return e.stopPropagation()}},{children:[t("div",e({className:d("flex items-start justify-between",null==m?void 0:m.savedModalHeader),style:null==y?void 0:y.savedModalHeader},{children:[l("h2",e({id:"guideline-saved-modal-title",className:d("text-[18px] font-semibold leading-7 text-[#1F2937]",null==m?void 0:m.savedModalTitle),style:null==y?void 0:y.savedModalTitle},{children:p.title})),l("button",e({type:"button",onClick:v,"aria-label":p.closeAriaLabel,className:d("ml-3 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600",null==m?void 0:m.savedModalCloseButton),style:null==y?void 0:y.savedModalCloseButton},{children:l(a,{className:"h-4 w-4"})}))]})),l("p",e({className:d("mt-2 text-[14px] leading-6 text-[#344054]",null==m?void 0:m.savedModalDescription),style:null==y?void 0:y.savedModalDescription},{children:p.description})),t("div",e({className:d("mt-6 flex justify-end gap-3",null==m?void 0:m.savedModalActions),style:null==y?void 0:y.savedModalActions},{children:[l("button",e({type:"button",onClick:r,className:d("h-[40px] rounded-lg border border-gray-300 bg-white px-4 text-[14px] font-medium text-[#111827] transition-colors duration-150 hover:bg-gray-50",null==m?void 0:m.savedModalSaveButton),style:null==y?void 0:y.savedModalSaveButton},{children:p.saveOnly})),l("button",e({type:"button",onClick:u,className:d("h-[40px] rounded-lg bg-violet-700 px-4 text-[14px] font-medium text-white transition-colors duration-150 hover:bg-violet-800",null==m?void 0:m.savedModalAddButton),style:null==y?void 0:y.savedModalAddButton},{children:p.addToCart}))]}))]}))})):null}export{n as GuidelineSavedModal};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as l,jsxs as t}from"react/jsx-runtime";import{useEffect as o}from"react";import{X as d}from"lucide-react";import{cx as a}from"../utils.js";var i={title:"Guideline Saved Successfully",description:"Would you like to add it to the current Guideline Cart?",saveOnly:"Save Only",addToCart:"Add To Cart",closeAriaLabel:"Close"};function n(n){var s=n.open,r=n.onSaveOnly,u=n.onAddToCart,v=n.onClose,c=n.labels,m=n.disableModalButtons,y=void 0!==m&&m,p=n.classNames,b=n.styles,x=e(e({},i),c);return o(function(){if(s){var e=function(e){"Escape"===e.key&&v()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[s,v]),s?l("div",e({className:a("fixed inset-0 z-50 flex items-center justify-center bg-black/40 px-4",null==p?void 0:p.savedModalOverlay),style:null==b?void 0:b.savedModalOverlay,role:"presentation",onClick:v},{children:t("div",e({role:"dialog","aria-modal":"true","aria-labelledby":"guideline-saved-modal-title",className:a("w-full max-w-[420px] rounded-lg bg-white p-6 shadow-xl",null==p?void 0:p.savedModalDialog),style:null==b?void 0:b.savedModalDialog,onClick:function(e){return e.stopPropagation()}},{children:[t("div",e({className:a("flex items-start justify-between",null==p?void 0:p.savedModalHeader),style:null==b?void 0:b.savedModalHeader},{children:[l("h2",e({id:"guideline-saved-modal-title",className:a("text-[18px] font-semibold leading-7 text-[#1F2937]",null==p?void 0:p.savedModalTitle),style:null==b?void 0:b.savedModalTitle},{children:x.title})),l("button",e({type:"button",onClick:v,"aria-label":x.closeAriaLabel,className:a("ml-3 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600",null==p?void 0:p.savedModalCloseButton),style:null==b?void 0:b.savedModalCloseButton},{children:l(d,{className:"h-4 w-4"})}))]})),l("p",e({className:a("mt-2 text-[14px] leading-6 text-[#344054]",null==p?void 0:p.savedModalDescription),style:null==b?void 0:b.savedModalDescription},{children:x.description})),t("div",e({className:a("mt-6 flex justify-end gap-3",null==p?void 0:p.savedModalActions),style:null==b?void 0:b.savedModalActions},{children:[l("button",e({type:"button",onClick:r,disabled:y,className:a("h-[40px] rounded-lg border border-gray-300 bg-white px-4 text-[14px] font-medium text-[#111827] transition-colors duration-150 hover:bg-gray-50 disabled:opacity-50",null==p?void 0:p.savedModalSaveButton),style:null==b?void 0:b.savedModalSaveButton},{children:x.saveOnly})),l("button",e({type:"button",onClick:u,disabled:y,className:a("h-[40px] rounded-lg bg-violet-700 px-4 text-[14px] font-medium text-white transition-colors duration-150 hover:bg-violet-800 disabled:opacity-50",null==p?void 0:p.savedModalAddButton),style:null==b?void 0:b.savedModalAddButton},{children:x.addToCart}))]}))]}))})):null}export{n as GuidelineSavedModal};
2
2
  //# sourceMappingURL=GuidelineSavedModal.js.map
@@ -3,7 +3,8 @@ import { LevelAccordionProps } from "./types/types";
3
3
  interface ExtendedLevelAccordionProps extends LevelAccordionProps {
4
4
  onTitleChange?: (title: string) => void;
5
5
  onDeleteLevel?: () => void;
6
+ finalApprovalDueDate?: Date | null;
6
7
  }
7
- export default function LevelAccordion({ level, id, accessLevelOptions, fetchUsers, onToggleMandatory, onDueDateChange, onAssigneesChange, onTitleChange, onDeleteLevel }: ExtendedLevelAccordionProps): React.JSX.Element;
8
+ export default function LevelAccordion({ level, id, accessLevelOptions, fetchUsers, onToggleMandatory, onDueDateChange, onAssigneesChange, onTitleChange, finalApprovalDueDate }: ExtendedLevelAccordionProps): React.JSX.Element;
8
9
  export {};
9
10
  //# sourceMappingURL=AssignLevelAccordions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssignLevelAccordions.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignLevelAccordions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKpD,UAAU,2BAA4B,SAAQ,mBAAmB;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,KAAK,EACL,EAAE,EACF,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EAChB,EAAE,2BAA2B,qBA+J7B"}
1
+ {"version":3,"file":"AssignLevelAccordions.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignLevelAccordions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKpD,UAAU,2BAA4B,SAAQ,mBAAmB;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,KAAK,EACL,EAAE,EACF,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACvB,EAAE,2BAA2B,qBAgK7B"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  import { AssignReminderLevelsProps } from "./types/types";
3
- declare function AssignReminderLevels({ title, levels, requireFinalApproval, additionalInfo, setLevels, setRequireFinalApproval, fetchUsers, accessLevelOptions, customInfoIcon, onValidationError, customStyles, totalLevels, }: AssignReminderLevelsProps): React.JSX.Element;
3
+ declare function AssignReminderLevels({ title, levels, requireFinalApproval, additionalInfo, setLevels, setRequireFinalApproval, fetchUsers, accessLevelOptions, customInfoIcon, onValidationError, customStyles, totalLevels, finalApprovalDueDate }: AssignReminderLevelsProps): React.JSX.Element;
4
4
  export { AssignReminderLevels };
5
5
  //# sourceMappingURL=AssignReminderLevels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssignReminderLevels.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderLevels.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAS,MAAM,eAAe,CAAC;AAsBjE,iBAAS,oBAAoB,CAAC,EAC1B,KAAK,EACL,MAAW,EACX,oBAA4B,EAC5B,cAAc,EACd,SAAS,EACT,uBAAuB,EACvB,UAAU,EACV,kBAAiD,EACjD,cAAc,EACd,iBAAiB,EACjB,YAAiB,EACjB,WAAW,GACd,EAAE,yBAAyB,qBAkN3B;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"AssignReminderLevels.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderLevels.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAS,MAAM,eAAe,CAAC;AAsBjE,iBAAS,oBAAoB,CAAC,EAC1B,KAAK,EACL,MAAW,EACX,oBAA4B,EAC5B,cAAc,EACd,SAAS,EACT,uBAAuB,EACvB,UAAU,EACV,kBAAiD,EACjD,cAAc,EACd,iBAAiB,EACjB,YAAiB,EACjB,WAAW,EACX,oBAAoB,EACvB,EAAE,yBAAyB,qBAmN3B;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AssignReminderTest.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderTest.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAepD,eAAO,MAAM,cAAc,UAAiB,MAAM,KAAG,QAAQ,YAAY,EAAE,CAQ1E,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAAK,EAyBjC,CAAC;AAGF,MAAM,CAAC,OAAO,UAAU,wBAAwB,gCA+C/C"}
1
+ {"version":3,"file":"AssignReminderTest.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderTest.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAepD,eAAO,MAAM,cAAc,UAAiB,MAAM,KAAG,QAAQ,YAAY,EAAE,CAQ1E,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAAK,EAyBjC,CAAC;AAGF,MAAM,CAAC,OAAO,UAAU,wBAAwB,gCAgD/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"AssignReminderWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAMnE,OAAO,EACH,0BAA0B,EAK7B,MAAM,eAAe,CAAC;AAwDvB,iBAAS,qBAAqB,CAAC,EAC3B,QAAa,EACb,UAAe,EACf,MAAM,EACN,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,UAAU,EACV,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,YAAiB,EACjB,QAAgB,EAChB,sBAAsB,EACtB,OAAc,EAGd,aAAa,EACb,eAAe,EAAE,mBAAmB,EACpC,kBAAkB,EAAE,sBAAsB,EAC1C,SAAS,EAAE,aAAa,EACxB,YAAY,EAAE,gBAAgB,EAC9B,aAAa,EACb,gBAAgB,EAChB,OAAO,EAGP,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,QAAQ,EACR,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,GACrB,EAAE,0BAA0B,qBAkY5B;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"AssignReminderWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAMnE,OAAO,EACH,0BAA0B,EAK7B,MAAM,eAAe,CAAC;AAwDvB,iBAAS,qBAAqB,CAAC,EAC3B,QAAa,EACb,UAAe,EACf,MAAM,EACN,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,UAAU,EACV,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,YAAiB,EACjB,QAAgB,EAChB,sBAAsB,EACtB,OAAc,EAGd,aAAa,EACb,eAAe,EAAE,mBAAmB,EACpC,kBAAkB,EAAE,sBAAsB,EAC1C,SAAS,EAAE,aAAa,EACxB,YAAY,EAAE,gBAAgB,EAC9B,aAAa,EACb,gBAAgB,EAChB,OAAO,EAGP,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,QAAQ,EACR,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,GACrB,EAAE,0BAA0B,qBAmY5B;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AddUserPopup.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/AddUserPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,UAAU,iBAAiB;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AA+ID,iBAAS,YAAY,CAAC,EAClB,IAAI,EACJ,WAAW,EACX,SAAS,EACT,eAAe,EACf,WAAW,EACX,SAAS,GACZ,EAAE,iBAAiB,qBA8FnB;AAED,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"AddUserPopup.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/AddUserPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,UAAU,iBAAiB;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AA+ID,iBAAS,YAAY,CAAC,EAClB,IAAI,EACJ,WAAW,EACX,SAAS,EACT,eAAe,EACf,WAAW,EACX,SAAS,GACZ,EAAE,iBAAiB,qBA8FnB;AAED,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,8 +1,5 @@
1
1
  import React from "react";
2
- interface AccessLevelOption {
3
- label: string;
4
- icon: React.ReactNode;
5
- }
2
+ import { DropdownOption } from "../types/types";
6
3
  interface AccessLevelPopupValue {
7
4
  accessLevel: string;
8
5
  notes: string;
@@ -12,7 +9,7 @@ interface AccessLevelPopupProps {
12
9
  value: AccessLevelPopupValue;
13
10
  onConfirm: (value: AccessLevelPopupValue) => void;
14
11
  onClose: () => void;
15
- accessLevelOptions?: AccessLevelOption[];
12
+ accessLevelOptions?: DropdownOption[];
16
13
  /**
17
14
  * Pass the AssignWrapper's root element so the overlay is scoped to it.
18
15
  * Falls back to covering the full viewport if not provided.
@@ -21,5 +18,5 @@ interface AccessLevelPopupProps {
21
18
  }
22
19
  declare function AccessLevelPopup({ value, onConfirm, onClose, accessLevelOptions, wrapperEl, }: AccessLevelPopupProps): React.JSX.Element;
23
20
  export { AccessLevelPopup };
24
- export type { AccessLevelOption, AccessLevelPopupValue, AccessLevelPopupProps };
21
+ export type { AccessLevelPopupValue, AccessLevelPopupProps };
25
22
  //# sourceMappingURL=AssignAccessLevelsPopup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssignAccessLevelsPopup.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/AssignAccessLevelsPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,UAAU,iBAAiB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB;AAED,UAAU,qBAAqB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;CACxB;AAED,UAAU,qBAAqB;IAC3B,KAAK,EAAE,qBAAqB,CAAC;IAC7B,SAAS,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAClC;AA6MD,iBAAS,gBAAgB,CAAC,EACtB,KAAK,EACL,SAAS,EACT,OAAO,EACP,kBAAoC,EACpC,SAAS,GACZ,EAAE,qBAAqB,qBA8HvB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"AssignAccessLevelsPopup.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/AssignAccessLevelsPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAOhD,UAAU,qBAAqB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;CACxB;AAED,UAAU,qBAAqB;IAC3B,KAAK,EAAE,qBAAqB,CAAC;IAC7B,SAAS,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,CAAC,EAAE,cAAc,EAAE,CAAC;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAClC;AA6MD,iBAAS,gBAAgB,CAAC,EACtB,KAAK,EACL,SAAS,EACT,OAAO,EACP,kBAAoC,EACpC,SAAS,GACZ,EAAE,qBAAqB,qBA8HvB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
- declare function AssignLevelDatePicker({ value, onSet, }: {
2
+ declare function AssignLevelDatePicker({ value, onSet, maxDate }: {
3
3
  value: Date | null;
4
4
  onSet: (val: Date | null) => void;
5
5
  id: string;
6
+ maxDate: Date | null;
6
7
  }): import("react").JSX.Element;
7
8
  export default AssignLevelDatePicker;
8
9
  //# sourceMappingURL=AssignLevelsDatePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssignLevelsDatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/AssignLevelsDatePicker.tsx"],"names":[],"mappings":";AAGA,iBAAS,qBAAqB,CAAC,EAC7B,KAAK,EACL,KAAK,GACN,EAAE;IACD,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ,+BA0BA;AAED,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"AssignLevelsDatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/AssignLevelsDatePicker.tsx"],"names":[],"mappings":";AAIA,iBAAS,qBAAqB,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,OAAO,EACR,EAAE;IACD,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB,+BA2BA;AAED,eAAe,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LevelData.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/LevelData.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAKzD,UAAU,sBAAuB,SAAQ,cAAc;IACnD,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAClC;AAED,iBAAS,SAAS,CAAC,EACf,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,SAAS,GACZ,EAAE,sBAAsB,+BAyPxB;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"LevelData.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/LevelData.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAKzD,UAAU,sBAAuB,SAAQ,cAAc;IACnD,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAClC;AAED,iBAAS,SAAS,CAAC,EACf,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,SAAS,GACZ,EAAE,sBAAsB,+BAgQxB;AAED,eAAe,SAAS,CAAC"}
@@ -1,9 +1,8 @@
1
- import { AccessLevelOption } from "../components/AssignAccessLevelsPopup";
2
- import { AssigneeUser, FetchUsersFunction } from "./types";
1
+ import { AssigneeUser, DropdownOption, FetchUsersFunction } from "./types";
3
2
  interface LevelDataProps {
4
3
  assignees: AssigneeUser[];
5
4
  onAssigneeChange: (assignees: AssigneeUser[]) => void;
6
- accessLevelOptions: AccessLevelOption[];
5
+ accessLevelOptions: DropdownOption[];
7
6
  fetchUsers: FetchUsersFunction;
8
7
  }
9
8
  export { LevelDataProps };
@@ -1 +1 @@
1
- {"version":3,"file":"levelData.type.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/types/levelData.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAkB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3E,UAAU,cAAc;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,gBAAgB,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IACtD,kBAAkB,EAAG,iBAAiB,EAAE,CAAC;IACzC,UAAU,EAAE,kBAAkB,CAAC;CAClC;AAED,OAAO,EAAC,cAAc,EAAC,CAAC"}
1
+ {"version":3,"file":"levelData.type.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/types/levelData.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3E,UAAU,cAAc;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,gBAAgB,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IACtD,kBAAkB,EAAG,cAAc,EAAE,CAAC;IACtC,UAAU,EAAE,kBAAkB,CAAC;CAClC;AAED,OAAO,EAAC,cAAc,EAAC,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import { AccessLevelOption } from "../components/AssignAccessLevelsPopup";
3
2
  export type TabId = "assignees" | "reminders" | "review";
4
3
  export interface AssigneeUser {
5
4
  email: string;
@@ -25,7 +24,7 @@ export interface Level {
25
24
  }
26
25
  export type DropdownOption = {
27
26
  label: string;
28
- icon?: React.ReactNode;
27
+ icon: React.ReactNode;
29
28
  };
30
29
  export interface CustomStyle {
31
30
  header?: React.CSSProperties;
@@ -122,16 +121,17 @@ export interface AssignReminderLevelsProps {
122
121
  setLevels?: React.Dispatch<React.SetStateAction<Level[]>>;
123
122
  setRequireFinalApproval?: React.Dispatch<React.SetStateAction<boolean>>;
124
123
  fetchUsers: FetchUsersFunction;
125
- accessLevelOptions?: AccessLevelOption[];
124
+ accessLevelOptions?: DropdownOption[];
126
125
  onValidationError?: (message: string) => void;
127
126
  customInfoIcon?: React.ReactNode;
128
127
  customStyles?: Record<string, React.CSSProperties>;
129
128
  totalLevels?: number;
129
+ finalApprovalDueDate: Date | null;
130
130
  }
131
131
  export interface LevelAccordionProps {
132
132
  level: Level;
133
133
  id: string;
134
- accessLevelOptions: AccessLevelOption[];
134
+ accessLevelOptions: DropdownOption[];
135
135
  fetchUsers: FetchUsersFunction;
136
136
  onToggleMandatory: () => void;
137
137
  onDueDateChange: (date: Date | null) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,YAAY;IACzB,KAAK,EAAS,MAAM,CAAC;IACrB,IAAI,EAAU,MAAM,CAAC;IACrB,EAAE,EAAY,GAAG,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAO,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,KAAK;IAClB,UAAU,EAAG,MAAM,CAAC;IACpB,KAAK,EAAQ,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAK,IAAI,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAI,OAAO,CAAC;IACrB,SAAS,CAAC,EAAG,YAAY,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAM,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;CAC9F;AAID,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EA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AAK,MAAM,CAAC;IAGnE,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,iBAAiB,CAAC,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,YAAY;IACzB,KAAK,EAAS,MAAM,CAAC;IACrB,IAAI,EAAU,MAAM,CAAC;IACrB,EAAE,EAAY,GAAG,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAO,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,KAAK;IAClB,UAAU,EAAG,MAAM,CAAC;IACpB,KAAK,EAAQ,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IAC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B,CAAC,EAAE,MAAM,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAGpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE;QACrB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAGnC,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,mBAAmB,KAAK,MAAM,CAAC;IAGnE,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,iBAAiB,CAAC,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"GuidelinePopoverCart.d.ts","sourceRoot":"","sources":["../../../../../src/features/lsc-guidelines/components/GuidelinePopoverCart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,UA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Ac,EACd,cAAc,EACd,YAAoB,EACpB,aAAa,EACb,KAAwB,EACxB,UAAoB,EACpB,iBAAmC,EACnC,iBAAoC,EACpC,UAA+B,EAC/B,gBAA4D,EAC5D,gBAAkC,EAClC,SAAS,EACT,SAAS,EACT,UAAU,EACV,MAAM,EACN,kBAA8C,EAC9C,mBAAyE,GAC1E,EAAE,yBAAyB,CAAC,UAAU,CAAC,+BA2KvC"}
1
+ {"version":3,"file":"GuidelinePopoverCart.d.ts","sourceRoot":"","sources":["../../../../../src/features/lsc-guidelines/components/GuidelinePopoverCart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAM7F,UAAU,yBAAyB,CAAC,UAAU,SAAS,gBAAgB;IACrE,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,kBAAkB,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC/C,iBAAiB,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,kBAAkB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,UAAU,SAAS,gBAAgB,EAAE,EACxE,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,YAAoB,EACpB,aAAa,EACb,KAAwB,EACxB,UAAoB,EACpB,iBAAmC,EACnC,iBAAoC,EACpC,UAA+B,EAC/B,gBAA4D,EAC5D,gBAAkC,EAClC,SAAS,EACT,SAAS,EACT,UAAU,EACV,MAAM,EACN,kBAA8C,EAC9C,mBAAyE,GAC1E,EAAE,yBAAyB,CAAC,UAAU,CAAC,+BA8KvC"}
@@ -12,9 +12,10 @@ export interface GuidelineSavedModalProps {
12
12
  onSaveOnly: () => void;
13
13
  onAddToCart: () => void;
14
14
  onClose: () => void;
15
+ disableModalButtons?: boolean;
15
16
  labels?: GuidelineSavedModalLabels;
16
17
  classNames?: LscGuidelineClassNames;
17
18
  styles?: LscGuidelineStyles;
18
19
  }
19
- export declare function GuidelineSavedModal({ open, onSaveOnly, onAddToCart, onClose, labels, classNames, styles, }: GuidelineSavedModalProps): import("react").JSX.Element | null;
20
+ export declare function GuidelineSavedModal({ open, onSaveOnly, onAddToCart, onClose, labels, disableModalButtons, classNames, styles, }: GuidelineSavedModalProps): import("react").JSX.Element | null;
20
21
  //# sourceMappingURL=GuidelineSavedModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GuidelineSavedModal.d.ts","sourceRoot":"","sources":["../../../../../src/features/lsc-guidelines/components/GuidelineSavedModal.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAG3E,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAUD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,UAAU,EACV,WAAW,EACX,OAAO,EACP,MAAM,EACN,UAAU,EACV,MAAM,GACP,EAAE,wBAAwB,sCA+G1B"}
1
+ {"version":3,"file":"GuidelineSavedModal.d.ts","sourceRoot":"","sources":["../../../../../src/features/lsc-guidelines/components/GuidelineSavedModal.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAG3E,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAUD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,UAAU,EACV,WAAW,EACX,OAAO,EACP,MAAM,EACN,mBAAyB,EACzB,UAAU,EACV,MAAM,GACP,EAAE,wBAAwB,sCAiH1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viswa-test/creative-workspace-ui-component",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "author": "Viswa Koduru",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -128,7 +128,7 @@
128
128
  "typescript": "4.9.5"
129
129
  },
130
130
  "peerDependencies": {
131
- "@e-llm-studio/requirement-ai": "^0.0.208",
131
+ "@e-llm-studio/requirement-ai": "^0.0.213",
132
132
  "lucide-react": "^0.474.0",
133
133
  "primeicons": "^7.0.0",
134
134
  "primereact": "^10.9.7",