@viswa-test/creative-workspace-ui-component 0.0.5 → 0.0.7

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 (73) hide show
  1. package/dist/cjs/components/AssignReminders/AssignLevelAccordions.js +2 -0
  2. package/dist/cjs/components/AssignReminders/AssignLevelAccordions.js.map +1 -0
  3. package/dist/cjs/components/AssignReminders/AssignReminderLevels.js +2 -0
  4. package/dist/cjs/components/AssignReminders/AssignReminderLevels.js.map +1 -0
  5. package/dist/cjs/components/AssignReminders/AssignReminderTest.js +2 -0
  6. package/dist/cjs/components/AssignReminders/AssignReminderTest.js.map +1 -0
  7. package/dist/cjs/components/AssignReminders/AssignReminderWrapper.js +2 -0
  8. package/dist/cjs/components/AssignReminders/AssignReminderWrapper.js.map +1 -0
  9. package/dist/cjs/components/AssignReminders/assets/FileCheckCorner.js +2 -0
  10. package/dist/cjs/components/AssignReminders/assets/FileCheckCorner.js.map +1 -0
  11. package/dist/cjs/components/AssignReminders/assets/VerticalLine.js +2 -0
  12. package/dist/cjs/components/AssignReminders/assets/VerticalLine.js.map +1 -0
  13. package/dist/cjs/components/AssignReminders/components/AssignLevelsDatePicker.js +2 -0
  14. package/dist/cjs/components/AssignReminders/components/AssignLevelsDatePicker.js.map +1 -0
  15. package/dist/cjs/components/AssignReminders/components/CustomCheckbox.js +2 -0
  16. package/dist/cjs/components/AssignReminders/components/CustomCheckbox.js.map +1 -0
  17. package/dist/cjs/components/AssignReminders/components/CustomDatePicker.js +2 -0
  18. package/dist/cjs/components/AssignReminders/components/CustomDatePicker.js.map +1 -0
  19. package/dist/cjs/components/AssignReminders/components/CustomDropdown.js +2 -0
  20. package/dist/cjs/components/AssignReminders/components/CustomDropdown.js.map +1 -0
  21. package/dist/cjs/components/AssignReminders/components/LevelData.js +2 -0
  22. package/dist/cjs/components/AssignReminders/components/LevelData.js.map +1 -0
  23. package/dist/cjs/components/AssignReminders/components/ReviewStatus.js +2 -0
  24. package/dist/cjs/components/AssignReminders/components/ReviewStatus.js.map +1 -0
  25. package/dist/cjs/components/AssignReminders/styles/AssignReminderLevels.css.js +2 -0
  26. package/dist/cjs/components/AssignReminders/styles/AssignReminderLevels.css.js.map +1 -0
  27. package/dist/cjs/components/AssignReminders/styles/AssignReminderStyles.js +2 -0
  28. package/dist/cjs/components/AssignReminders/styles/AssignReminderStyles.js.map +1 -0
  29. package/dist/cjs/components/AssignReminders/styles/AssignReminderWrapperStyles.js +2 -0
  30. package/dist/cjs/components/AssignReminders/styles/AssignReminderWrapperStyles.js.map +1 -0
  31. package/dist/cjs/components/AssignReminders/styles/ReviewStatusStyles.js +2 -0
  32. package/dist/cjs/components/AssignReminders/styles/ReviewStatusStyles.js.map +1 -0
  33. package/dist/cjs/components/AssignReminders/utils/generateRandomColorsPair.js +2 -0
  34. package/dist/cjs/components/AssignReminders/utils/generateRandomColorsPair.js.map +1 -0
  35. package/dist/cjs/index.js +1 -1
  36. package/dist/components/AssignReminders/AssignLevelAccordions.js +2 -0
  37. package/dist/components/AssignReminders/AssignLevelAccordions.js.map +1 -0
  38. package/dist/components/AssignReminders/AssignReminderLevels.js +2 -0
  39. package/dist/components/AssignReminders/AssignReminderLevels.js.map +1 -0
  40. package/dist/components/AssignReminders/AssignReminderTest.js +2 -0
  41. package/dist/components/AssignReminders/AssignReminderTest.js.map +1 -0
  42. package/dist/components/AssignReminders/AssignReminderWrapper.js +2 -0
  43. package/dist/components/AssignReminders/AssignReminderWrapper.js.map +1 -0
  44. package/dist/components/AssignReminders/assets/FileCheckCorner.js +2 -0
  45. package/dist/components/AssignReminders/assets/FileCheckCorner.js.map +1 -0
  46. package/dist/components/AssignReminders/assets/VerticalLine.js +2 -0
  47. package/dist/components/AssignReminders/assets/VerticalLine.js.map +1 -0
  48. package/dist/components/AssignReminders/components/AssignLevelsDatePicker.js +2 -0
  49. package/dist/components/AssignReminders/components/AssignLevelsDatePicker.js.map +1 -0
  50. package/dist/components/AssignReminders/components/CustomCheckbox.js +2 -0
  51. package/dist/components/AssignReminders/components/CustomCheckbox.js.map +1 -0
  52. package/dist/components/AssignReminders/components/CustomDatePicker.js +2 -0
  53. package/dist/components/AssignReminders/components/CustomDatePicker.js.map +1 -0
  54. package/dist/components/AssignReminders/components/CustomDropdown.js +2 -0
  55. package/dist/components/AssignReminders/components/CustomDropdown.js.map +1 -0
  56. package/dist/components/AssignReminders/components/LevelData.js +2 -0
  57. package/dist/components/AssignReminders/components/LevelData.js.map +1 -0
  58. package/dist/components/AssignReminders/components/ReviewStatus.js +2 -0
  59. package/dist/components/AssignReminders/components/ReviewStatus.js.map +1 -0
  60. package/dist/components/AssignReminders/styles/AssignReminderLevels.css.js +2 -0
  61. package/dist/components/AssignReminders/styles/AssignReminderLevels.css.js.map +1 -0
  62. package/dist/components/AssignReminders/styles/AssignReminderStyles.js +2 -0
  63. package/dist/components/AssignReminders/styles/AssignReminderStyles.js.map +1 -0
  64. package/dist/components/AssignReminders/styles/AssignReminderWrapperStyles.js +2 -0
  65. package/dist/components/AssignReminders/styles/AssignReminderWrapperStyles.js.map +1 -0
  66. package/dist/components/AssignReminders/styles/ReviewStatusStyles.js +2 -0
  67. package/dist/components/AssignReminders/styles/ReviewStatusStyles.js.map +1 -0
  68. package/dist/components/AssignReminders/utils/generateRandomColorsPair.js +2 -0
  69. package/dist/components/AssignReminders/utils/generateRandomColorsPair.js.map +1 -0
  70. package/dist/index.js +1 -1
  71. package/dist/types/index.d.ts +3 -0
  72. package/dist/types/index.d.ts.map +1 -1
  73. package/package.json +2 -2
@@ -0,0 +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"),r=require("./assets/VerticalLine.js"),o=require("./components/AssignLevelsDatePicker.js"),a=require("./components/LevelData.js");exports.default=function(l){var d,c,u=l.level,g=l.id,p=l.accessLevelOptions,x=l.fetchUsers,h=l.onToggleMandatory,f=l.onDueDateChange,y=l.onAssigneesChange,_=l.onTitleChange,j=l.onDeleteLevel,m=s.useMemo(function(){return i.getRandomColorPair()},[]),v=s.useState(!1),b=v[0],C=v[1],k=s.useState(!1),D=k[0],q=k[1];return 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:"14px",fontWeight:500}},{children:u.headerName})),D?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("input",{type:"text",value:u.title||"",onChange:function(e){return null==_?void 0:_(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:"14px",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:"14px",fontWeight:500,color:"#374151"}},{children:u.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:[b&&u.hasDueDate&&n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({style:{color:"#6B7280"}},{children:["Due Date: ",u.isMandatory&&n.jsx("sup",e.__assign({style:{color:"red"}},{children:"*"}))]})),n.jsx(o.default,{value:null!==(d=u.dueDate)&&void 0!==d?d:null,onSet:f,id:g}),n.jsx(r.default,{})]}),"0"!==g&&n.jsx("div",e.__assign({style:{height:"auto",display:"flex",alignItems:"center"}},{children:n.jsxs("button",e.__assign({type:"button",className:"required-toggle ".concat(u.isMandatory?"active":""),onClick:h,style:{transform:"scale(0.85)",transformOrigin:"right center",margin:0,cursor:"pointer"}},{children:[n.jsx("span",{className:"toggle-thumb"}),n.jsx("span",e.__assign({className:"toggle-label"},{children:"Required"}))]}))})),j&&!1===u.isMandatory&&n.jsx(t.Trash2,{size:18,color:"#EF4444",onClick:function(e){e.stopPropagation(),j()},style:{cursor:"pointer",transition:"opacity 0.2s"}}),n.jsx(t.ChevronDown,{size:20,onClick:function(e){e.stopPropagation(),C(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:b?"rotate(180deg)":"rotate(0deg)"}})]}))]})),b&&n.jsx("div",e.__assign({style:{width:"100%",height:"auto"}},{children:n.jsx(a.default,{assignees:null!==(c=u.assignees)&&void 0!==c?c:[],onAssigneeChange:y,accessLevelOptions:p,fetchUsers:x})}))]}))};
2
+ //# sourceMappingURL=AssignLevelAccordions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignLevelAccordions.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +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"),l=require("./assets/FileCheckCorner.js");require("./styles/AssignReminderLevels.css.js");var a=require("./styles/AssignReminderStyles.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(s),c=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})}},d=[{label:"Edit",icon:n.jsx(i.PenLine,{size:14})},{label:"Approve",icon:n.jsx(i.UserRoundCheck,{size:14})},{label:"Edit & Approve",icon:n.jsx(l.default,{})},{label:"Notify",icon:n.jsx(i.Bell,{size:14})}];exports.default=function(s){var l=s.title,o=s.levels,p=void 0===o?[]:o,f=s.requireFinalApproval,_=void 0!==f&&f,v=s.additionalInfo,g=s.setLevels,x=s.setRequireFinalApproval,h=s.fetchUsers,j=s.accessLevelOptions,y=void 0===j?d:j,A=s.customInfoIcon,m=s.onValidationError,L=s.customStyles;return n.jsxs("div",e.__assign({style:{padding:"8px",display:"flex",flexDirection:"column",gap:"18px"}},{children:[n.jsxs("span",e.__assign({style:e.__assign(e.__assign({},a.DEFAULT_ASSIGN_REMINDER_STYLES.header),null==L?void 0:L.header)},{children:[n.jsx("span",{children:null!=l?l:"Assignee Levels"}),n.jsxs("div",e.__assign({className:"info-icon-wrapper"},{children:[null!=A?A:n.jsx(i.InfoIcon,{width:18,height:18}),n.jsx("div",e.__assign({className:"tooltip"},{children:v||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.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[p.map(function(s,i){return n.jsx(t.default,{level:s,id:String(i),accessLevelOptions:y,fetchUsers:h,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=p[n-1])||void 0===i?void 0:i.dueDate;if(t&&s<t)return void(null==m||m("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)},onDeleteLevel:function(){return e=i,void(null==g||g(function(n){return n.filter(function(n,s){return s!==e})}));var e}},i)}),n.jsxs("button",e.__assign({onClick:function(){var n=p.length+1,s={title:"Level ".concat(n),headerName:"L ".concat(n),isMandatory:!1,dueDate:null,assignees:[],hasDueDate:!0};null==g||g(function(n){return e.__spreadArray(e.__spreadArray([],n,!0),[s],!1)})},style:a.DEFAULT_ASSIGN_REMINDER_STYLES.addLevelBtn,type:"button"},{children:[n.jsx(i.Plus,{size:16}),n.jsx("span",{children:"Add New Level"})]}))]})),n.jsxs("div",e.__assign({style:a.DEFAULT_ASSIGN_REMINDER_STYLES.finalApprovalBox},{children:[n.jsx(r.default,{getter:_,setter:null!=x?x:function(){}}),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",alignItems:"baseline",marginTop:"13px",fontSize:"14px",fontWeight:400}},{children:[n.jsx("span",e.__assign({style:{fontWeight:500}},{children:"Require Final Approval"})),n.jsx("span",{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:a.DEFAULT_ASSIGN_REMINDER_STYLES.currentApprovalFlow},{children:[n.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:600}},{children:"Current Approval Flow"})),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"4px"}},{children:p.map(function(s,t){var r,l=(null===(r=s.assignees)||void 0===r?void 0:r.map(function(e){return e.name}).join(", "))||"No users assigned",a=s.title||"Level ".concat(t+1);return n.jsxs(u.default.Fragment,{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,color:"#374151"},title:a},{children:[c(t),n.jsx("span",{children:l})]})),t<p.length-1&&n.jsx(i.ArrowRight,{size:16,color:"#9CA3AF"})]},t)})}))]}))]}))};
2
+ //# sourceMappingURL=AssignReminderLevels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderLevels.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js");require("react/jsx-runtime"),require("react"),require("./AssignReminderLevels.js");var a=[{id:"u1",name:"Alice Johnson",email:"alice@acme.com"},{id:"u2",name:"Bob Martinez",email:"bob@acme.com"},{id:"u3",name:"Carol White",email:"carol@acme.com"},{id:"u4",name:"David Kim",email:"david@acme.com"},{id:"u5",name:"Eva Patel",email:"eva@acme.com"},{id:"u6",name:"Frank Zhang",email:"frank@acme.com"},{id:"u7",name:"Grace Lee",email:"grace@acme.com"},{id:"u8",name:"Henry Brown",email:"henry@acme.com"},{id:"u9",name:"Iris Nguyen",email:"iris@acme.com"},{id:"u10",name:"James Wilson",email:"james@acme.com"}];exports.INITIAL_LEVELS=[{headerName:"L1",title:"Initial Review",isMandatory:!0,hasDueDate:!0,dueDate:null,assignees:[]},{headerName:"L2",title:"Manager Approval",isMandatory:!1,hasDueDate:!0,dueDate:null,assignees:[]},{headerName:"L3",title:"Final Sign-off",isMandatory:!1,hasDueDate:!1,dueDate:null,assignees:[]}],exports.mockFetchUsers=function(i){return e.__awaiter(void 0,void 0,void 0,function(){var r;return e.__generator(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e){return setTimeout(e,400)})];case 1:return e.sent(),r=i.toLowerCase(),[2,a.filter(function(e){return e.name.toLowerCase().includes(r)||e.email.toLowerCase().includes(r)})]}})})};
2
+ //# sourceMappingURL=AssignReminderTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderTest.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("lucide-react"),a=require("react"),r=require("./AssignReminderLevels.js"),n=require("./AssignReminderTest.js"),t=require("./components/ReviewStatus.js"),_=require("./components/CustomDatePicker.js"),l=require("./styles/AssignReminderWrapperStyles.js"),E=[{tabName:"Assignees & Approvers",tabIcon:s.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2"},{children:[s.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),s.jsx("circle",{cx:"9",cy:"7",r:"4"}),s.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),s.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))},{tabName:"Manage Reminders",tabIcon:s.jsx(i.Bell,{size:15})},{tabName:"Review Status",tabIcon:s.jsx(i.ClipboardList,{size:15})}];exports.default=function(o){var S,R,d=o.metadata,A=void 0===d?{}:d,c=o.reviewData,u=void 0===c?{}:c,D=o.levels,v=o.setLevels,L=o.requireFinalApproval,p=o.setRequireFinalApproval,I=o.approvalDueDate,g=o.setApprovalDueDate,N=o.onClose,T=o.onSave,P=o.onValidationError,j=(null===(S=A.tabData)||void 0===S?void 0:S.length)?A.tabData:E,h=a.useState(j[0].tabName),x=h[0],m=h[1],y=(R=x.toLowerCase()).includes("reminder")?"reminders":R.includes("review")?"review":"assignees",F=a.useState(D||n.INITIAL_LEVELS),b=F[0],M=F[1],W=a.useState(L||!1),U=W[0],G=W[1],Y=a.useState(I||null),f=Y[0],C=Y[1],q=v&&D?D:b,w=v||M,B=p&&void 0!==L?L:U,k=p||G,z=g&&void 0!==I?I:f,V=g||C,H=A.wrapperTitle||"Assign Redline and Manage Reminders",O=A.wrapperSubTitle||"Sec 4.1 - Technical Security Information",X=A.wrapperPriority||"High",J=A.wrapperPriorityStyles||{backgroundColor:"#DC262618",color:"#DC2626",border:"1px solid #DC262640"};return s.jsx("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.overlay},{children:s.jsxs("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.modal},{children:[s.jsxs("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.header},{children:[s.jsxs("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.headerLeft},{children:[s.jsx("span",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.modalTitle},{children:H})),s.jsxs("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineRow},{children:[s.jsx("span",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineName},{children:O})),s.jsx("span",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.redlineBadge),J)},{children:X}))]}))]})),s.jsx("button",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.closeBtn,onClick:N},{children:s.jsx(i.X,{size:20,color:"#6B7280"})}))]})),s.jsx("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tabBar},{children:j.map(function(i){return s.jsxs("button",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tab),x===i.tabName?l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.tabActive:{}),onClick:function(){return m(i.tabName)}},{children:[i.tabIcon," ",i.tabName]}),i.tabName)})})),s.jsxs("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.body},{children:["assignees"===y&&s.jsxs(s.Fragment,{children:[!1!==A.showFinalApprovalDueDate&&s.jsxs("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateBar},{children:[s.jsxs("span",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateLabel},{children:["Final Approval due date ",s.jsx("sup",e.__assign({style:{color:"#DC2626",marginLeft:2}},{children:"*"}))]})),s.jsx("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.dueDateInputWrap},{children:s.jsx(_.default,{value:z?z.toISOString().slice(0,10):"",onChange:V})})),s.jsxs("span",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.requiredToProceeed},{children:[s.jsx(i.CircleAlert,{size:14,color:"#6B7280"})," Required to proceed"]}))]})),s.jsx(r.default,{levels:q,requireFinalApproval:B,setLevels:w,setRequireFinalApproval:k,fetchUsers:n.mockFetchUsers,onValidationError:P})]}),"reminders"===y&&s.jsxs("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.reminderPlaceholder},{children:[s.jsx(i.Bell,{size:32,color:"#D1D5DB"}),s.jsx("p",e.__assign({style:{color:"#9CA3AF",marginTop:12,fontSize:14}},{children:"Reminder settings coming soon…"}))]})),"review"===y&&s.jsx(t.default,{levels:q,reviewData:u})]})),s.jsxs("div",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.footer},{children:[s.jsx("button",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.clearBtn,onClick:function(){w(n.INITIAL_LEVELS.map(function(s){return e.__assign(e.__assign({},s),{assignees:[],dueDate:null})})),k(!1),V(null),null==N||N()}},{children:"Clear"})),s.jsx("button",e.__assign({style:l.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES.saveBtn,onClick:function(){null==T||T({levels:q,requireFinalApproval:B,finalApprovalDueDate:z,activeTab:y})}},{children:"Save Changes"}))]}))]}))}))};
2
+ //# sourceMappingURL=AssignReminderWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.height,s=t.width;return r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:s||"14",height:i||"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-file-check-corner-icon lucide-file-check-corner"},{children:[r.jsx("path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6"}),r.jsx("path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}),r.jsx("path",{d:"m14 20 2 2 4-4"})]}))};
2
+ //# sourceMappingURL=FileCheckCorner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileCheckCorner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),r=require("react/jsx-runtime");exports.default=function(){return r.jsx("svg",e.__assign({width:"2",height:"20",viewBox:"0 0 2 20",fill:"none"},{children:r.jsx("line",{x1:"1",y1:"0",x2:"1",y2:"20",stroke:"#6B7280",strokeWidth:"2"})}))};
2
+ //# sourceMappingURL=VerticalLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalLine.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("react");exports.default=function(a){var n=a.value,l=a.onSet;a.id;var s=r.useRef(null);return t.jsxs("div",e.__assign({className:"date-input-wrapper",onClick:function(){var e;return null===(e=s.current)||void 0===e?void 0:e.showPicker()}},{children:[t.jsx("span",e.__assign({className:"placeholder",style:{color:"#6B7280"}},{children:n?"".concat(n.getDate()," / ").concat(n.getMonth()+1," / ").concat(n.getFullYear()):"--/--/----"})),t.jsx("input",{ref:s,type:"date",className:"date-input",value:n?n.toISOString().split("T")[0]:"",onChange:function(e){var t=e.target.value;l(t?new Date(t):null)}})]}))};
2
+ //# sourceMappingURL=AssignLevelsDatePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignLevelsDatePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("lucide-react");exports.default=function(i){var n=i.getter,s=i.setter;return t.jsxs("label",e.__assign({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",marginTop:"15px",alignItems:"center",justifyContent:"center"}},{children:[t.jsx("input",{type:"checkbox",checked:n,onChange:function(e){return s(e.target.checked)},style:{display:"none"}}),t.jsx("span",e.__assign({style:{width:"18px",height:"18px",border:"2px solid ".concat(n?"#7C3AED":"#CBD5E1"),borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff"}},{children:n&&t.jsx(r.Check,{size:12,color:"#7C3AED",strokeWidth:3})}))]}))};
2
+ //# sourceMappingURL=CustomCheckbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomCheckbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
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("lucide-react");exports.default=function(n){var a=n.value,l=n.onChange,o=n.placeholder,s=void 0===o?"dd/mm/yyyy":o,u=r.useRef(null);return t.jsxs("div",e.__assign({onClick:function(){var e,t;null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t||t.call(e)},style:{position:"relative",width:"100%",height:"35px",padding:"0 12px",borderRadius:"12px",background:"#F3F4F6",border:"1px solid #C7CDD5",display:"flex",gap:60,alignItems:"center",cursor:"pointer",boxSizing:"border-box"}},{children:[t.jsx("input",{ref:u,type:"date",value:a,onChange:function(e){return l(e.target.value?new Date(e.target.value):null)},style:{position:"absolute",opacity:0,pointerEvents:"none"}}),t.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:400,color:a?"#111827":"#667085"}},{children:a?new Date(a).toLocaleDateString("en-GB"):s})),t.jsx("div",e.__assign({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"6px"}},{children:t.jsx(i.Calendar,{size:18,color:"#667085",strokeWidth:2})}))]}))};
2
+ //# sourceMappingURL=CustomDatePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomDatePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),r=require("lucide-react"),t=require("react");exports.default=function(s){var i=s.value,o=s.options,a=s.onChange,l=t.useState(!1),u=l[0],c=l[1],d=t.useRef(null),p=o.find(function(e){return e.label===i})||o[0];return t.useEffect(function(){function e(e){d.current&&!d.current.contains(e.target)&&c(!1)}return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n.jsxs("div",e.__assign({ref:d,style:{position:"relative"}},{children:[n.jsxs("div",e.__assign({onClick:function(){return c(!u)},style:{display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",background:"transparent",padding:"2px 4px",userSelect:"none"}},{children:[p.icon&&n.jsx("span",e.__assign({style:{display:"flex",alignItems:"center"}},{children:p.icon})),n.jsx("span",e.__assign({style:{fontSize:"14px"}},{children:p.label})),n.jsx(r.ChevronDown,{size:14,style:{flexShrink:0}})]})),u&&n.jsx("div",e.__assign({style:{position:"absolute",top:"100%",left:0,marginTop:"4px",background:"white",border:"1px solid #CBD5E1",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1)",zIndex:50,minWidth:"140px",overflow:"hidden"}},{children:o.map(function(r,t){return n.jsxs("div",e.__assign({onClick:function(){a(r.label),c(!1)},style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",cursor:"pointer",fontSize:"14px",backgroundColor:i===r.label?"#F1F5F9":"transparent"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#F8FAFC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor=i===r.label?"#F1F5F9":"transparent"}},{children:[r.icon&&n.jsx("span",e.__assign({style:{display:"flex",alignItems:"center"}},{children:r.icon})),n.jsx("span",{children:r.label})]}),t)})}))]}))};
2
+ //# sourceMappingURL=CustomDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomDropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),r=require("react"),i=require("./CustomDropdown.js");exports.default=function(s){var t=this,a=s.assignees,o=s.onAssigneeChange,l=s.accessLevelOptions,d=s.fetchUsers,u=r.useState(""),c=u[0],p=u[1],x=r.useState([]),f=x[0],g=x[1];return r.useEffect(function(){if(c.trim()){var n=setTimeout(function(){return e.__awaiter(t,void 0,void 0,function(){var n,r,i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,d(c)];case 1:return n=e.sent(),r=new Set(a.map(function(e){return e.id})),g(n.filter(function(e){return!r.has(e.id)})),[3,3];case 2:return i=e.sent(),console.error("[LevelData]: fetchUser error: ".concat(i)),g([]),[3,3];case 3:return[2]}})})},300);return function(){return clearTimeout(n)}}g([])},[c,a]),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:[a.map(function(r){var s,t,d;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:r.name})),n.jsx(i.default,{value:null!==(d=null!==(s=r.accessLevel)&&void 0!==s?s:null===(t=l[0])||void 0===t?void 0:t.label)&&void 0!==d?d:"",options:l,onChange:function(n){return i=r.id,s=n,void o(a.map(function(n){return n.id===i?e.__assign(e.__assign({},n),{accessLevel:s}):n}));var i,s}}),n.jsx("button",e.__assign({style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",fontSize:"12px"},onClick:function(){return e=r.id,void o(a.filter(function(n){return n.id!==e}));var e}},{children:"✕"}))]}),r.id)}),n.jsx("input",{type:"text",value:c,placeholder:"Search users...",onChange:function(e){return p(e.target.value)},style:{border:"none",outline:"none",flex:1,minWidth:"150px",fontSize:"12px"}})]})),f.length>0&&n.jsx("div",e.__assign({style:{border:"1px solid #CBD5E1",borderRadius:"8px",marginTop:"8px"}},{children:f.map(function(r){return n.jsxs("div",e.__assign({style:{padding:"8px",cursor:"pointer"},onClick:function(){return function(n){var r,i;a.some(function(e){return e.id===n.id})||(o(e.__spreadArray(e.__spreadArray([],a,!0),[e.__assign(e.__assign({},n),{accessLevel:null!==(i=null===(r=l[0])||void 0===r?void 0:r.label)&&void 0!==i?i:""})],!1)),p(""),g([]))}(r)}},{children:[r.name,r.email&&n.jsx("span",e.__assign({style:{marginLeft:"8px",color:"#6B7280",fontSize:"11px"}},{children:r.email}))]}),r.id)})}))]}))};
2
+ //# sourceMappingURL=LevelData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LevelData.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),n=require("react"),i=require("lucide-react"),r=require("../styles/ReviewStatusStyles.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(n),t=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"}],n=0,i=0;i<e.length;i++)n=e.charCodeAt(i)+((n<<5)-n);return s[Math.abs(n)%s.length]};function _(n){var i=n.reviewLevel,l=i.level,a=i.assigneeStatuses,t="approved"===i.status;return s.jsxs("div",e.__assign({style:e.__assign(e.__assign({},r.DEFAULT_REVIEW_STATUS_STYLES.levelCard),{backgroundColor:t?"#F0FDF4":"#FFFFFF",border:t?"1px solid #BBF7D0":"1px solid #E5E7EB"})},{children:[s.jsx("div",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.levelCardHeader},{children:s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[s.jsx(d,{name:l.headerName}),s.jsx("span",e.__assign({style:{fontSize:14,fontWeight:600,color:"#111827"}},{children:l.title}))]}))})),a.length>0?s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:0}},{children:a.map(function(e,n){var i;return s.jsx(o,{assigneeStatus:e},null!==(i=e.user.id)&&void 0!==i?i:n)})})):s.jsx("div",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.noAssignees},{children:"No assignees added yet"}))]}))}function o(n){var l,a,_,o=n.assigneeStatus,d=o.user,g=o.approved,E=(a=d.name,1===(_=a.trim().split(/\s+/)).length?_[0].slice(0,2).toUpperCase():(_[0][0]+_[_.length-1][0]).toUpperCase()),p=t(null!==(l=d.id)&&void 0!==l?l:d.name);return s.jsxs("div",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.assigneeRow},{children:[s.jsx("div",e.__assign({style:e.__assign(e.__assign({},r.DEFAULT_REVIEW_STATUS_STYLES.avatar),{backgroundColor:p.bg,color:p.fg})},{children:E})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:1,flex:1}},{children:[s.jsx("span",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.userName},{children:d.name})),s.jsx("span",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.userEmail},{children:d.email}))]})),g&&s.jsx(i.CircleCheck,{size:22,color:"#16A34A",strokeWidth:1.8})]}))}function d(n){var i=n.name,r=t(i);return s.jsx("span",e.__assign({style:{backgroundColor:r.bg,color:r.fg,borderRadius:8,padding:"3px 10px",fontSize:12,fontWeight:600}},{children:i}))}function g(n){var i=n.levels,l=i.some(function(e){var s,n;return(null!==(n=null===(s=e.assignees)||void 0===s?void 0:s.length)&&void 0!==n?n:0)>0});return s.jsxs("div",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.flowBox},{children:[s.jsx("span",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.flowTitle},{children:"Current Approval Flow"})),l?s.jsx("div",e.__assign({style:{display:"flex",flexWrap:"wrap",gap:6,alignItems:"center",marginTop:6}},{children:i.map(function(n,l){var t,_=null===(t=n.assignees)||void 0===t?void 0:t.map(function(e){return e.name}).join(", ");return _?s.jsxs(a.default.Fragment,{children:[s.jsxs("span",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.flowChip},{children:[s.jsx(d,{name:n.headerName}),s.jsx("span",e.__assign({style:{fontSize:13,color:"#374151"}},{children:_}))]})),l<i.length-1&&s.jsx("span",e.__assign({style:{color:"#D1D5DB",fontSize:18}},{children:"→"}))]},l):null})})):s.jsx("p",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.flowEmpty},{children:"No owners assigned yet."}))]}))}exports.default=function(n){var l=n.levels,a=n.reviewData,t=void 0===a?{}:a,o=l.map(function(e,s){var n,i,r,l=null!==(n=t[s])&&void 0!==n?n:{},a=(null!==(i=e.assignees)&&void 0!==i?i:[]).map(function(e){var s;return{user:e,approved:null!==(s=l[String(e.id)])&&void 0!==s&&s}});return{level:e,assigneeStatuses:a,status:(r=a,0===r.length?"not_started":r.every(function(e){return e.approved})?"approved":r.some(function(e){return e.approved})?"pending":"not_started")}}),d=function(e){return e.filter(function(e){return"approved"===e.status}).length}(o),E=o.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:r.DEFAULT_REVIEW_STATUS_STYLES.progressHeader},{children:[s.jsx("span",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.progressTitle},{children:"Approval Progress"})),s.jsxs("span",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.progressCount},{children:[d," of ",E," level",1!==E?"s":""," complete"]}))]})),s.jsx("div",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.progressBarTrack},{children:o.map(function(n,i){var l="approved"===n.status,a=0===i,t=i===E-1;return s.jsx("div",{style:e.__assign(e.__assign({},r.DEFAULT_REVIEW_STATUS_STYLES.progressSegment),{backgroundColor:l?"#6366F1":"#E5E7EB",borderRadius:a&&t?"999px":a?"999px 0 0 999px":t?"0 999px 999px 0":"0",marginRight:t?0:3})},i)})})),s.jsx("div",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.progressLabels},{children:o.map(function(n,i){return s.jsxs("span",e.__assign({style:e.__assign(e.__assign({},r.DEFAULT_REVIEW_STATUS_STYLES.progressLabel),{color:"approved"===n.status?"#6366F1":"#9CA3AF",fontWeight:"approved"===n.status?600:400})},{children:[n.level.headerName," - ",n.level.title]}),i)})}))]}),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:0}},{children:[s.jsxs("div",e.__assign({style:r.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:r.DEFAULT_REVIEW_STATUS_STYLES.sectionTitle},{children:"Approval Levels"})),s.jsx(i.Info,{size:15,color:"#9CA3AF"})]})),d===E&&E>0&&s.jsxs("span",e.__assign({style:r.DEFAULT_REVIEW_STATUS_STYLES.approvedBadge},{children:[s.jsx(i.CircleCheck,{size:14,color:"#16A34A"}),"Approved"]}))]})),s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12,marginTop:12}},{children:o.map(function(e,n){return s.jsx(_,{reviewLevel:e},n)})}))]})),s.jsx(g,{levels:l})]}))};
2
+ //# sourceMappingURL=ReviewStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReviewStatus.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";require("../../../node_modules/style-inject/dist/style-inject.es.js").default(".AssignReminderLevels_date-input-wrapper__ryQen{align-items:center;border:2px solid #cfd6df;border-radius:8px;display:flex;height:30px;justify-content:space-between;padding:0 12px;position:relative;width:110px}.AssignReminderLevels_date-input__E27pM{cursor:pointer;inset:0;opacity:0;position:absolute;z-index:100}.AssignReminderLevels_required-toggle__9LO0Q{align-items:center;background:#cbd5e1;background:#e2e8f0;border:none;border-radius:999px;cursor:pointer;display:flex;height:24px;height:28px;padding:0;position:relative;transition:background-color .2s ease;transition:all .2s ease;width:44px;width:110px}.AssignReminderLevels_required-toggle__9LO0Q.AssignReminderLevels_active__jqQmP{background:#eef2ff}.AssignReminderLevels_toggle-thumb__D6qam{background:#fff;border-radius:50%;box-shadow:0 1px 3px #00000026;height:20px;left:4px;position:absolute;transition:transform .2s ease;width:20px}.AssignReminderLevels_required-toggle__9LO0Q.AssignReminderLevels_active__jqQmP .AssignReminderLevels_toggle-thumb__D6qam{transform:translateX(82px)}.AssignReminderLevels_toggle-label__0BolE{color:#64748b;font-size:12px;font-weight:500;text-align:center;transition:color .2s ease;width:100%}.AssignReminderLevels_required-toggle__9LO0Q.AssignReminderLevels_active__jqQmP .AssignReminderLevels_toggle-label__0BolE{color:#4f46e5}.AssignReminderLevels_info-icon-wrapper__PqIuL{align-items:center;cursor:pointer;display:inline-flex;position:relative}.AssignReminderLevels_tooltip__89ndq{background:#333;border-radius:4px;bottom:125%;color:#fff;font-size:12px;left:50%;opacity:0;padding:6px 10px;position:absolute;transform:translateX(-30%);transition:opacity .2s ease;visibility:hidden;white-space:nowrap}.AssignReminderLevels_info-icon-wrapper__PqIuL:hover .AssignReminderLevels_tooltip__89ndq{opacity:1;visibility:visible}");
2
+ //# sourceMappingURL=AssignReminderLevels.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderLevels.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.DEFAULT_ASSIGN_REMINDER_STYLES={header:{display:"flex",fontSize:"20px",alignItems:"center",gap:10},finalApprovalBox:{display:"flex",padding:"20px",border:"1px solid #F3F4F6",backgroundColor:"#FFFFFF"},currentApprovalFlow:{backgroundColor:"#F9FAFB",border:"1px solid #E5E7EB",borderRadius:"10px",padding:"12px",display:"flex",flexDirection:"column",gap:"8px"},addLevelBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"10px",backgroundColor:"#F3F4F6",color:"#374151",border:"1px dashed #D1D5DB",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:500,transition:"all 0.2s ease"}};
2
+ //# sourceMappingURL=AssignReminderStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderStyles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES={overlay:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.35)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{backgroundColor:"#FFFFFF",borderRadius:"16px",width:"100%",maxWidth:"780px",maxHeight:"90vh",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 20px 60px rgba(0,0,0,0.15)"},header:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",padding:"24px 28px 16px"},headerLeft:{display:"flex",flexDirection:"column",gap:6},modalTitle:{fontSize:18,fontWeight:700,color:"#111827"},redlineRow:{display:"flex",alignItems:"center",gap:8},redlineName:{fontSize:13,color:"#6B7280"},redlineBadge:{fontSize:12,fontWeight:600,padding:"2px 10px",borderRadius:999},closeBtn:{background:"none",border:"none",cursor:"pointer",padding:4,display:"flex",alignItems:"center",borderRadius:6},tabBar:{display:"flex",gap:0,borderBottom:"1px solid #E5E7EB",padding:"0 28px"},tab:{display:"flex",alignItems:"center",gap:7,padding:"10px 16px",fontSize:14,fontWeight:500,color:"#6B7280",background:"none",border:"none",borderBottom:"2px solid transparent",marginBottom:"-1px",cursor:"pointer",transition:"color 0.15s, border-bottom-color 0.15s"},tabActive:{color:"#6366F1",borderBottom:"2px solid #6366F1"},body:{flex:1,overflowY:"auto",padding:"18px 28px",display:"flex",flexDirection:"column",gap:0},dueDateBar:{display:"flex",alignItems:"center",gap:16,padding:"14px 20px",backgroundColor:"#EEF2FF",borderRadius:10,flexWrap:"wrap"},dueDateLabel:{fontSize:14,fontWeight:500,color:"#1F2937",whiteSpace:"nowrap"},dueDateInputWrap:{display:"flex",alignItems:"center",gap:8,borderRadius:8,padding:"6px 12px",flex:"0 0 auto"},dueDateInput:{border:"none",outline:"none",fontSize:14,color:"#374151",background:"transparent",cursor:"pointer"},requiredToProceeed:{display:"flex",alignItems:"center",gap:5,fontSize:13,color:"#6B7280",marginLeft:"auto"},reminderPlaceholder:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"60px 0"},footer:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:12,padding:"16px 28px",borderTop:"1px solid #F3F4F6"},clearBtn:{padding:"9px 20px",fontSize:14,fontWeight:500,color:"#374151",background:"none",border:"none",borderRadius:8,cursor:"pointer"},saveBtn:{padding:"9px 24px",fontSize:14,fontWeight:600,color:"#FFFFFF",backgroundColor:"#6366F1",border:"none",borderRadius:8,cursor:"pointer"}};
2
+ //# sourceMappingURL=AssignReminderWrapperStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderWrapperStyles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.DEFAULT_REVIEW_STATUS_STYLES={progressHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10},progressTitle:{fontSize:15,fontWeight:700,color:"#111827"},progressCount:{fontSize:14,fontWeight:600,color:"#6366F1"},progressBarTrack:{display:"flex",height:8,borderRadius:999,overflow:"hidden"},progressSegment:{flex:1,height:"100%",transition:"background-color 0.3s ease"},progressLabels:{display:"flex",marginTop:6},progressLabel:{flex:1,fontSize:12,transition:"color 0.3s ease"},sectionHeadingRow:{display:"flex",justifyContent:"space-between",alignItems:"center"},sectionTitle:{fontSize:15,fontWeight:700,color:"#111827"},approvedBadge:{display:"flex",alignItems:"center",gap:5,fontSize:13,fontWeight:600,color:"#16A34A"},levelCard:{borderRadius:12,overflow:"hidden",transition:"background-color 0.3s ease, border-color 0.3s ease"},levelCardHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px"},noAssignees:{padding:"10px 16px",fontSize:13,color:"#9CA3AF",fontStyle:"italic"},assigneeRow:{display:"flex",alignItems:"center",gap:12,padding:"10px 16px",borderTop:"1px solid rgba(0,0,0,0.05)"},avatar:{width:38,height:38,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:700,flexShrink:0},userName:{fontSize:14,fontWeight:600,color:"#111827"},userEmail:{fontSize:12,color:"#6B7280"},flowBox:{border:"1px solid #E5E7EB",borderRadius:12,padding:"16px 20px",backgroundColor:"#FFFFFF"},flowTitle:{fontSize:14,fontWeight:700,color:"#111827"},flowEmpty:{fontSize:13,color:"#9CA3AF",fontStyle:"italic",marginTop:6,marginBottom:0},flowChip:{display:"flex",alignItems:"center",gap:6}};
2
+ //# sourceMappingURL=ReviewStatusStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReviewStatusStyles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getRandomColorPair=function(){var o=Math.floor(360*Math.random());return{backgroundColor:"hsl(".concat(o,", 70%, 82%)"),color:"hsl(".concat(o,", 65%, 25%)")}};
2
+ //# sourceMappingURL=generateRandomColorsPair.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateRandomColorsPair.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/ScopeTree/TreeSidebar.js"),i=require("./features/lsc-guidelines/components/GuidelineHeader.js"),n=require("./features/lsc-guidelines/LscGuidelines.js"),r=require("./features/lsc-guidelines/components/GuidelineAttachmentIcon.js"),s=require("./features/lsc-guidelines/components/GuidelineCart.js"),u=require("./features/lsc-guidelines/components/GuidelineCartHeader.js"),t=require("./features/lsc-guidelines/components/GuidelineCartItem.js"),l=require("./features/lsc-guidelines/components/GuidelineEmptyState.js"),d=require("./features/lsc-guidelines/components/GuidelineIconButton.js"),o=require("./features/lsc-guidelines/components/GuidelineLandingPage.js"),a=require("./features/lsc-guidelines/components/GuidelineLibrary.js"),c=require("./features/lsc-guidelines/components/GuidelineLibraryCard.js"),G=require("./features/lsc-guidelines/components/GuidelinePopoverCart.js"),p=require("./features/lsc-guidelines/components/GuidelineProceedButton.js"),m=require("./features/lsc-guidelines/components/GuidelineSelectButton.js"),g=require("./features/lsc-guidelines/components/GuidelineCardMenu.js"),x=require("./features/lsc-guidelines/components/GuidelineConfirmDialog.js"),L=require("./features/lsc-guidelines/components/GuidelineSavedModal.js"),f=require("./features/lsc-guidelines/hooks/useGuidelineFlow.js"),C=require("./features/lsc-guidelines/hooks/useGuidelineSelection.js"),j=require("./features/lsc-guidelines/constants.js"),I=require("./features/lsc-guidelines/utils.js");exports.TreeSidebar=e.TreeSidebar,exports.GuidelineHeader=i.default,exports.LscGuidelines=n.LscGuidelines,exports.GuidelineAttachmentIcon=r.GuidelineAttachmentIcon,exports.GuidelineCart=s.GuidelineCart,exports.GuidelineCartHeader=u.GuidelineCartHeader,exports.GuidelineCartItem=t.GuidelineCartItem,exports.GuidelineEmptyState=l.GuidelineEmptyState,exports.GuidelineIconButton=d.GuidelineIconButton,exports.GuidelineLandingPage=o.GuidelineLandingPage,exports.GuidelineLibrary=a.GuidelineLibrary,exports.GuidelineLibraryCard=c.GuidelineLibraryCard,exports.GuidelinePopoverCart=G.GuidelinePopoverCart,exports.GuidelineProceedButton=p.GuidelineProceedButton,exports.GuidelineSelectButton=m.GuidelineSelectButton,exports.GuidelineCardMenu=g.GuidelineCardMenu,exports.createGuidelineCardMenuItems=g.createGuidelineCardMenuItems,exports.GuidelineConfirmDialog=x.GuidelineConfirmDialog,exports.GuidelineSavedModal=L.GuidelineSavedModal,exports.useGuidelineFlow=f.useGuidelineFlow,exports.useGuidelineSelection=C.useGuidelineSelection,exports.DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE=j.DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,exports.DEFAULT_GUIDELINE_LABELS=j.DEFAULT_GUIDELINE_LABELS,exports.createGuidelineId=I.createGuidelineId,exports.cx=I.cx,exports.defaultFormatAddedOnLabel=I.defaultFormatAddedOnLabel,exports.getGuidelineDescription=I.getGuidelineDescription,exports.mergeGuidelineLabels=I.mergeGuidelineLabels;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/AssignReminders/AssignReminderLevels.js"),i=require("./components/AssignReminders/AssignReminderWrapper.js"),s=require("./components/ScopeTree/TreeSidebar.js"),n=require("./features/lsc-guidelines/components/GuidelineHeader.js"),r=require("./features/lsc-guidelines/LscGuidelines.js"),u=require("./features/lsc-guidelines/components/GuidelineAttachmentIcon.js"),t=require("./features/lsc-guidelines/components/GuidelineCart.js"),l=require("./features/lsc-guidelines/components/GuidelineCartHeader.js"),d=require("./features/lsc-guidelines/components/GuidelineCartItem.js"),o=require("./features/lsc-guidelines/components/GuidelineEmptyState.js"),a=require("./features/lsc-guidelines/components/GuidelineIconButton.js"),c=require("./features/lsc-guidelines/components/GuidelineLandingPage.js"),G=require("./features/lsc-guidelines/components/GuidelineLibrary.js"),p=require("./features/lsc-guidelines/components/GuidelineLibraryCard.js"),m=require("./features/lsc-guidelines/components/GuidelinePopoverCart.js"),g=require("./features/lsc-guidelines/components/GuidelineProceedButton.js"),x=require("./features/lsc-guidelines/components/GuidelineSelectButton.js"),L=require("./features/lsc-guidelines/components/GuidelineCardMenu.js"),f=require("./features/lsc-guidelines/components/GuidelineConfirmDialog.js"),j=require("./features/lsc-guidelines/components/GuidelineSavedModal.js"),C=require("./features/lsc-guidelines/hooks/useGuidelineFlow.js"),q=require("./features/lsc-guidelines/hooks/useGuidelineSelection.js"),A=require("./features/lsc-guidelines/constants.js"),I=require("./features/lsc-guidelines/utils.js");exports.AssignReminderLevels=e.default,exports.AssignReminderWrapper=i.default,exports.TreeSidebar=s.TreeSidebar,exports.GuidelineHeader=n.default,exports.LscGuidelines=r.LscGuidelines,exports.GuidelineAttachmentIcon=u.GuidelineAttachmentIcon,exports.GuidelineCart=t.GuidelineCart,exports.GuidelineCartHeader=l.GuidelineCartHeader,exports.GuidelineCartItem=d.GuidelineCartItem,exports.GuidelineEmptyState=o.GuidelineEmptyState,exports.GuidelineIconButton=a.GuidelineIconButton,exports.GuidelineLandingPage=c.GuidelineLandingPage,exports.GuidelineLibrary=G.GuidelineLibrary,exports.GuidelineLibraryCard=p.GuidelineLibraryCard,exports.GuidelinePopoverCart=m.GuidelinePopoverCart,exports.GuidelineProceedButton=g.GuidelineProceedButton,exports.GuidelineSelectButton=x.GuidelineSelectButton,exports.GuidelineCardMenu=L.GuidelineCardMenu,exports.createGuidelineCardMenuItems=L.createGuidelineCardMenuItems,exports.GuidelineConfirmDialog=f.GuidelineConfirmDialog,exports.GuidelineSavedModal=j.GuidelineSavedModal,exports.useGuidelineFlow=C.useGuidelineFlow,exports.useGuidelineSelection=q.useGuidelineSelection,exports.DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE=A.DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,exports.DEFAULT_GUIDELINE_LABELS=A.DEFAULT_GUIDELINE_LABELS,exports.createGuidelineId=I.createGuidelineId,exports.cx=I.cx,exports.defaultFormatAddedOnLabel=I.defaultFormatAddedOnLabel,exports.getGuidelineDescription=I.getGuidelineDescription,exports.mergeGuidelineLabels=I.mergeGuidelineLabels;
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as n,Fragment as o}from"react/jsx-runtime";import{useMemo as r,useState as i}from"react";import{Check as l,Edit2 as s,Trash2 as a,ChevronDown as c}from"lucide-react";import{getRandomColorPair as d}from"./utils/generateRandomColorsPair.js";import p from"./assets/VerticalLine.js";import u from"./components/AssignLevelsDatePicker.js";import g from"./components/LevelData.js";function f(f){var h,m,y=f.level,x=f.id,b=f.accessLevelOptions,v=f.fetchUsers,C=f.onToggleMandatory,k=f.onDueDateChange,D=f.onAssigneesChange,L=f.onTitleChange,j=f.onDeleteLevel,z=r(function(){return d()},[]),F=i(!1),w=F[0],B=F[1],P=i(!1),E=P[0],I=P[1];return t("div",e({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[t("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[t("span",e({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[n("span",e({style:{backgroundColor:z.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:z.color,fontSize:"14px",fontWeight:500}},{children:y.headerName})),t("div",e({style:{display:"flex",alignItems:"center",gap:"6px"}},E?{children:[n("input",{type:"text",value:y.title||"",onChange:function(e){return null==L?void 0:L(e.target.value)},onBlur:function(){return I(!1)},onKeyDown:function(e){return"Enter"===e.key&&I(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"14px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),n("button",e({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),I(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:n(l,{size:16,color:"#10B981"})}))]}:{children:[n("span",e({style:{fontSize:"14px",fontWeight:500,color:"#374151"}},{children:y.title})),n("button",e({type:"button",onClick:function(e){e.stopPropagation(),I(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:n(s,{size:14,color:"#6B7280"})}))]}))]})),t("div",e({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[w&&y.hasDueDate&&t(o,{children:[t("span",e({style:{color:"#6B7280"}},{children:["Due Date: ",y.isMandatory&&n("sup",e({style:{color:"red"}},{children:"*"}))]})),n(u,{value:null!==(h=y.dueDate)&&void 0!==h?h:null,onSet:k,id:x}),n(p,{})]}),"0"!==x&&n("div",e({style:{height:"auto",display:"flex",alignItems:"center"}},{children:t("button",e({type:"button",className:"required-toggle ".concat(y.isMandatory?"active":""),onClick:C,style:{transform:"scale(0.85)",transformOrigin:"right center",margin:0,cursor:"pointer"}},{children:[n("span",{className:"toggle-thumb"}),n("span",e({className:"toggle-label"},{children:"Required"}))]}))})),j&&!1===y.isMandatory&&n(a,{size:18,color:"#EF4444",onClick:function(e){e.stopPropagation(),j()},style:{cursor:"pointer",transition:"opacity 0.2s"}}),n(c,{size:20,onClick:function(e){e.stopPropagation(),B(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:w?"rotate(180deg)":"rotate(0deg)"}})]}))]})),w&&n("div",e({style:{width:"100%",height:"auto"}},{children:n(g,{assignees:null!==(m=y.assignees)&&void 0!==m?m:[],onAssigneeChange:D,accessLevelOptions:b,fetchUsers:v})}))]}))}export{f as default};
2
+ //# sourceMappingURL=AssignLevelAccordions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignLevelAccordions.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e,__spreadArray as n}from"../../_virtual/_tslib.js";import{jsx as i,jsxs as t}from"react/jsx-runtime";import r from"react";import{PenLine as l,UserRoundCheck as o,Bell as s,InfoIcon as a,Plus as c,ArrowRight as u,CheckSquare as d,User as p,FileCheck as f,Edit2 as v}from"lucide-react";import h from"./AssignLevelAccordions.js";import m from"./components/CustomCheckbox.js";import g from"./assets/FileCheckCorner.js";import"./styles/AssignReminderLevels.css.js";import{DEFAULT_ASSIGN_REMINDER_STYLES as y}from"./styles/AssignReminderStyles.js";var x=function(e){switch(e){case 0:return i(v,{size:16});case 1:return i(f,{size:16});case 2:return i(p,{size:16});default:return i(d,{size:16})}},A=[{label:"Edit",icon:i(l,{size:14})},{label:"Approve",icon:i(o,{size:14})},{label:"Edit & Approve",icon:i(g,{})},{label:"Notify",icon:i(s,{size:14})}];function b(l){var o=l.title,s=l.levels,d=void 0===s?[]:s,p=l.requireFinalApproval,f=void 0!==p&&p,v=l.additionalInfo,g=l.setLevels,b=l.setRequireFinalApproval,L=l.fetchUsers,w=l.accessLevelOptions,z=void 0===w?A:w,D=l.customInfoIcon,C=l.onValidationError,j=l.customStyles;return t("div",e({style:{padding:"8px",display:"flex",flexDirection:"column",gap:"18px"}},{children:[t("span",e({style:e(e({},y.header),null==j?void 0:j.header)},{children:[i("span",{children:null!=o?o:"Assignee Levels"}),t("div",e({className:"info-icon-wrapper"},{children:[null!=D?D:i(a,{width:18,height:18}),i("div",e({className:"tooltip"},{children:v||t("span",{children:[i("b",{children:"How it works:"})," ",i("br",{})," Level 1 is required by default, Enable Level 2 and Level 3 to add sequential approval steps for the review"]})}))]}))]})),t("div",e({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[d.map(function(n,t){return i(h,{level:n,id:String(t),accessLevelOptions:z,fetchUsers:L,onToggleMandatory:function(){return n=t,void(null==g||g(function(i){return i.map(function(i,t){return t===n?e(e({},i),{isMandatory:!i.isMandatory}):i})}));var n},onDueDateChange:function(n){return function(n,i){var t;if(n>0&&i){var r=null===(t=d[n-1])||void 0===t?void 0:t.dueDate;if(r&&i<r)return void(null==C||C("Level ".concat(n+1," due date cannot be before Level ").concat(n," due date")))}null==g||g(function(t){return t.map(function(t,r){return r===n?e(e({},t),{dueDate:i}):t})})}(t,n)},onAssigneesChange:function(n){return i=t,r=n,void(null==g||g(function(n){return n.map(function(n,t){return t===i?e(e({},n),{assignees:r}):n})}));var i,r},onTitleChange:function(n){return function(n,i){null==g||g(function(t){return t.map(function(t,r){return r===n?e(e({},t),{title:i}):t})})}(t,n)},onDeleteLevel:function(){return e=t,void(null==g||g(function(n){return n.filter(function(n,i){return i!==e})}));var e}},t)}),t("button",e({onClick:function(){var e=d.length+1,i={title:"Level ".concat(e),headerName:"L ".concat(e),isMandatory:!1,dueDate:null,assignees:[],hasDueDate:!0};null==g||g(function(e){return n(n([],e,!0),[i],!1)})},style:y.addLevelBtn,type:"button"},{children:[i(c,{size:16}),i("span",{children:"Add New Level"})]}))]})),t("div",e({style:y.finalApprovalBox},{children:[i(m,{getter:f,setter:null!=b?b:function(){}}),t("div",e({style:{display:"flex",flexDirection:"column",alignItems:"baseline",marginTop:"13px",fontSize:"14px",fontWeight:400}},{children:[i("span",e({style:{fontWeight:500}},{children:"Require Final Approval"})),i("span",{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:y.currentApprovalFlow},{children:[i("span",e({style:{fontSize:"14px",fontWeight:600}},{children:"Current Approval Flow"})),i("div",e({style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",marginTop:"4px"}},{children:d.map(function(n,l){var o,s=(null===(o=n.assignees)||void 0===o?void 0:o.map(function(e){return e.name}).join(", "))||"No users assigned",a=n.title||"Level ".concat(l+1);return t(r.Fragment,{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",fontWeight:500,color:"#374151"},title:a},{children:[x(l),i("span",{children:s})]})),l<d.length-1&&i(u,{size:16,color:"#9CA3AF"})]},l)})}))]}))]}))}export{b as default};
2
+ //# sourceMappingURL=AssignReminderLevels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderLevels.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__awaiter as e,__generator as a}from"../../_virtual/_tslib.js";import"react/jsx-runtime";import"react";import"./AssignReminderLevels.js";var i=[{id:"u1",name:"Alice Johnson",email:"alice@acme.com"},{id:"u2",name:"Bob Martinez",email:"bob@acme.com"},{id:"u3",name:"Carol White",email:"carol@acme.com"},{id:"u4",name:"David Kim",email:"david@acme.com"},{id:"u5",name:"Eva Patel",email:"eva@acme.com"},{id:"u6",name:"Frank Zhang",email:"frank@acme.com"},{id:"u7",name:"Grace Lee",email:"grace@acme.com"},{id:"u8",name:"Henry Brown",email:"henry@acme.com"},{id:"u9",name:"Iris Nguyen",email:"iris@acme.com"},{id:"u10",name:"James Wilson",email:"james@acme.com"}],n=function(n){return e(void 0,void 0,void 0,function(){var e;return a(this,function(a){switch(a.label){case 0:return[4,new Promise(function(e){return setTimeout(e,400)})];case 1:return a.sent(),e=n.toLowerCase(),[2,i.filter(function(a){return a.name.toLowerCase().includes(e)||a.email.toLowerCase().includes(e)})]}})})},m=[{headerName:"L1",title:"Initial Review",isMandatory:!0,hasDueDate:!0,dueDate:null,assignees:[]},{headerName:"L2",title:"Manager Approval",isMandatory:!1,hasDueDate:!0,dueDate:null,assignees:[]},{headerName:"L3",title:"Final Sign-off",isMandatory:!1,hasDueDate:!1,dueDate:null,assignees:[]}];export{m as INITIAL_LEVELS,n as mockFetchUsers};
2
+ //# sourceMappingURL=AssignReminderTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderTest.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as r,jsx as i,Fragment as t}from"react/jsx-runtime";import{Bell as l,ClipboardList as a,X as n,CircleAlert as o}from"lucide-react";import{useState as s}from"react";import d from"./AssignReminderLevels.js";import{INITIAL_LEVELS as c,mockFetchUsers as p}from"./AssignReminderTest.js";import v from"./components/ReviewStatus.js";import u from"./components/CustomDatePicker.js";import{DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES as m}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:[i("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),i("circle",{cx:"9",cy:"7",r:"4"}),i("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),i("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))},{tabName:"Manage Reminders",tabIcon:i(l,{size:15})},{tabName:"Review Status",tabIcon:i(a,{size:15})}];function y(a){var y,b,f=a.metadata,D=void 0===f?{}:f,g=a.reviewData,A=void 0===g?{}:g,C=a.levels,w=a.setLevels,R=a.requireFinalApproval,S=a.setRequireFinalApproval,B=a.approvalDueDate,N=a.setApprovalDueDate,k=a.onClose,F=a.onSave,T=a.onValidationError,j=(null===(y=D.tabData)||void 0===y?void 0:y.length)?D.tabData:h,q=s(j[0].tabName),I=q[0],L=q[1],z=(b=I.toLowerCase()).includes("reminder")?"reminders":b.includes("review")?"review":"assignees",x=s(C||c),M=x[0],P=x[1],W=s(R||!1),E=W[0],H=W[1],V=s(B||null),_=V[0],O=V[1],U=w&&C?C:M,G=w||P,J=S&&void 0!==R?R:E,K=S||H,Q=N&&void 0!==B?B:_,X=N||O,Y=D.wrapperTitle||"Assign Redline and Manage Reminders",Z=D.wrapperSubTitle||"Sec 4.1 - Technical Security Information",$=D.wrapperPriority||"High",ee=D.wrapperPriorityStyles||{backgroundColor:"#DC262618",color:"#DC2626",border:"1px solid #DC262640"};return i("div",e({style:m.overlay},{children:r("div",e({style:m.modal},{children:[r("div",e({style:m.header},{children:[r("div",e({style:m.headerLeft},{children:[i("span",e({style:m.modalTitle},{children:Y})),r("div",e({style:m.redlineRow},{children:[i("span",e({style:m.redlineName},{children:Z})),i("span",e({style:e(e({},m.redlineBadge),ee)},{children:$}))]}))]})),i("button",e({style:m.closeBtn,onClick:k},{children:i(n,{size:20,color:"#6B7280"})}))]})),i("div",e({style:m.tabBar},{children:j.map(function(i){return r("button",e({style:e(e({},m.tab),I===i.tabName?m.tabActive:{}),onClick:function(){return L(i.tabName)}},{children:[i.tabIcon," ",i.tabName]}),i.tabName)})})),r("div",e({style:m.body},{children:["assignees"===z&&r(t,{children:[!1!==D.showFinalApprovalDueDate&&r("div",e({style:m.dueDateBar},{children:[r("span",e({style:m.dueDateLabel},{children:["Final Approval due date ",i("sup",e({style:{color:"#DC2626",marginLeft:2}},{children:"*"}))]})),i("div",e({style:m.dueDateInputWrap},{children:i(u,{value:Q?Q.toISOString().slice(0,10):"",onChange:X})})),r("span",e({style:m.requiredToProceeed},{children:[i(o,{size:14,color:"#6B7280"})," Required to proceed"]}))]})),i(d,{levels:U,requireFinalApproval:J,setLevels:G,setRequireFinalApproval:K,fetchUsers:p,onValidationError:T})]}),"reminders"===z&&r("div",e({style:m.reminderPlaceholder},{children:[i(l,{size:32,color:"#D1D5DB"}),i("p",e({style:{color:"#9CA3AF",marginTop:12,fontSize:14}},{children:"Reminder settings coming soon…"}))]})),"review"===z&&i(v,{levels:U,reviewData:A})]})),r("div",e({style:m.footer},{children:[i("button",e({style:m.clearBtn,onClick:function(){G(c.map(function(r){return e(e({},r),{assignees:[],dueDate:null})})),K(!1),X(null),null==k||k()}},{children:"Clear"})),i("button",e({style:m.saveBtn,onClick:function(){null==F||F({levels:U,requireFinalApproval:J,finalApprovalDueDate:Q,activeTab:z})}},{children:"Save Changes"}))]}))]}))}))}export{y as default};
2
+ //# sourceMappingURL=AssignReminderWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as r,jsx as t}from"react/jsx-runtime";var i=function(i){var o=i.height,l=i.width;return r("svg",e({xmlns:"http://www.w3.org/2000/svg",width:l||"14",height:o||"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-file-check-corner-icon lucide-file-check-corner"},{children:[t("path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6"}),t("path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}),t("path",{d:"m14 20 2 2 4-4"})]}))};export{i as default};
2
+ //# sourceMappingURL=FileCheckCorner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileCheckCorner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as t}from"../../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";var i=function(){return r("svg",t({width:"2",height:"20",viewBox:"0 0 2 20",fill:"none"},{children:r("line",{x1:"1",y1:"0",x2:"1",y2:"20",stroke:"#6B7280",strokeWidth:"2"})}))};export{i as default};
2
+ //# sourceMappingURL=VerticalLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalLine.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as t}from"../../../_virtual/_tslib.js";import{jsxs as e,jsx as a}from"react/jsx-runtime";import{useRef as r}from"react";function n(n){var l=n.value,o=n.onSet;n.id;var i=r(null);return e("div",t({className:"date-input-wrapper",onClick:function(){var t;return null===(t=i.current)||void 0===t?void 0:t.showPicker()}},{children:[a("span",t({className:"placeholder",style:{color:"#6B7280"}},{children:l?"".concat(l.getDate()," / ").concat(l.getMonth()+1," / ").concat(l.getFullYear()):"--/--/----"})),a("input",{ref:i,type:"date",className:"date-input",value:l?l.toISOString().split("T")[0]:"",onChange:function(t){var e=t.target.value;o(e?new Date(e):null)}})]}))}export{n as default};
2
+ //# sourceMappingURL=AssignLevelsDatePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignLevelsDatePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{Check as i}from"lucide-react";function n(n){var o=n.getter,c=n.setter;return t("label",e({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",marginTop:"15px",alignItems:"center",justifyContent:"center"}},{children:[r("input",{type:"checkbox",checked:o,onChange:function(e){return c(e.target.checked)},style:{display:"none"}}),r("span",e({style:{width:"18px",height:"18px",border:"2px solid ".concat(o?"#7C3AED":"#CBD5E1"),borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff"}},{children:o&&r(i,{size:12,color:"#7C3AED",strokeWidth:3})}))]}))}export{n as default};
2
+ //# sourceMappingURL=CustomCheckbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomCheckbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +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 i}from"react";import{Calendar as o}from"lucide-react";function n(n){var l=n.value,a=n.onChange,d=n.placeholder,p=void 0===d?"dd/mm/yyyy":d,u=i(null);return t("div",e({onClick:function(){var e,t;null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t||t.call(e)},style:{position:"relative",width:"100%",height:"35px",padding:"0 12px",borderRadius:"12px",background:"#F3F4F6",border:"1px solid #C7CDD5",display:"flex",gap:60,alignItems:"center",cursor:"pointer",boxSizing:"border-box"}},{children:[r("input",{ref:u,type:"date",value:l,onChange:function(e){return a(e.target.value?new Date(e.target.value):null)},style:{position:"absolute",opacity:0,pointerEvents:"none"}}),r("span",e({style:{fontSize:"14px",fontWeight:400,color:l?"#111827":"#667085"}},{children:l?new Date(l).toLocaleDateString("en-GB"):p})),r("div",e({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"6px"}},{children:r(o,{size:18,color:"#667085",strokeWidth:2})}))]}))}export{n as default};
2
+ //# sourceMappingURL=CustomDatePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomDatePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";import{ChevronDown as t}from"lucide-react";import{useState as o,useRef as i,useEffect as l}from"react";function a(a){var c=a.value,s=a.options,u=a.onChange,d=o(!1),p=d[0],f=d[1],x=i(null),m=s.find(function(e){return e.label===c})||s[0];return l(function(){function e(e){x.current&&!x.current.contains(e.target)&&f(!1)}return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n("div",e({ref:x,style:{position:"relative"}},{children:[n("div",e({onClick:function(){return f(!p)},style:{display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",background:"transparent",padding:"2px 4px",userSelect:"none"}},{children:[m.icon&&r("span",e({style:{display:"flex",alignItems:"center"}},{children:m.icon})),r("span",e({style:{fontSize:"14px"}},{children:m.label})),r(t,{size:14,style:{flexShrink:0}})]})),p&&r("div",e({style:{position:"absolute",top:"100%",left:0,marginTop:"4px",background:"white",border:"1px solid #CBD5E1",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1)",zIndex:50,minWidth:"140px",overflow:"hidden"}},{children:s.map(function(t,o){return n("div",e({onClick:function(){u(t.label),f(!1)},style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",cursor:"pointer",fontSize:"14px",backgroundColor:c===t.label?"#F1F5F9":"transparent"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#F8FAFC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor=c===t.label?"#F1F5F9":"transparent"}},{children:[t.icon&&r("span",e({style:{display:"flex",alignItems:"center"}},{children:t.icon})),r("span",{children:t.label})]}),o)})}))]}))}export{a as default};
2
+ //# sourceMappingURL=CustomDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomDropdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__awaiter as e,__assign as n,__generator as r,__spreadArray as i}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as a,useEffect as l}from"react";import s from"./CustomDropdown.js";function d(d){var u=this,p=d.assignees,c=d.onAssigneeChange,f=d.accessLevelOptions,x=d.fetchUsers,m=a(""),v=m[0],g=m[1],h=a([]),b=h[0],y=h[1];l(function(){if(v.trim()){var n=setTimeout(function(){return e(u,void 0,void 0,function(){var e,n,i;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,x(v)];case 1:return e=r.sent(),n=new Set(p.map(function(e){return e.id})),y(e.filter(function(e){return!n.has(e.id)})),[3,3];case 2:return i=r.sent(),console.error("[LevelData]: fetchUser error: ".concat(i)),y([]),[3,3];case 3:return[2]}})})},300);return function(){return clearTimeout(n)}}y([])},[v,p]);return t("div",n({style:{borderTop:"1px solid #CBD5E1",padding:"20px"}},{children:[o("span",n({style:{fontWeight:600,marginBottom:"8px",fontSize:"14px"}},{children:"Assignee Emails"})),t("div",n({style:{border:"1px solid #CBD5E1",borderRadius:"8px",padding:"8px",marginTop:"10px",display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},{children:[p.map(function(e){var r,i,a;return t("div",n({style:{display:"flex",alignItems:"center",gap:"6px",background:"#E9D5FF",borderRadius:"10px",padding:"2px 8px",fontSize:"12px"}},{children:[o("span",n({style:{padding:"4px"}},{children:e.name})),o(s,{value:null!==(a=null!==(r=e.accessLevel)&&void 0!==r?r:null===(i=f[0])||void 0===i?void 0:i.label)&&void 0!==a?a:"",options:f,onChange:function(r){return i=e.id,t=r,void c(p.map(function(e){return e.id===i?n(n({},e),{accessLevel:t}):e}));var i,t}}),o("button",n({style:{border:"none",background:"transparent",cursor:"pointer",padding:"2px",display:"flex",alignItems:"center",fontSize:"12px"},onClick:function(){return n=e.id,void c(p.filter(function(e){return e.id!==n}));var n}},{children:"✕"}))]}),e.id)}),o("input",{type:"text",value:v,placeholder:"Search users...",onChange:function(e){return g(e.target.value)},style:{border:"none",outline:"none",flex:1,minWidth:"150px",fontSize:"12px"}})]})),b.length>0&&o("div",n({style:{border:"1px solid #CBD5E1",borderRadius:"8px",marginTop:"8px"}},{children:b.map(function(e){return t("div",n({style:{padding:"8px",cursor:"pointer"},onClick:function(){return function(e){var r,t;p.some(function(n){return n.id===e.id})||(c(i(i([],p,!0),[n(n({},e),{accessLevel:null!==(t=null===(r=f[0])||void 0===r?void 0:r.label)&&void 0!==t?t:""})],!1)),g(""),y([]))}(e)}},{children:[e.name,e.email&&o("span",n({style:{marginLeft:"8px",color:"#6B7280",fontSize:"11px"}},{children:e.email}))]}),e.id)})}))]}))}export{d as default};
2
+ //# sourceMappingURL=LevelData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LevelData.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as r,jsx as l}from"react/jsx-runtime";import n from"react";import{Info as t,CircleCheck as i}from"lucide-react";import{DEFAULT_REVIEW_STATUS_STYLES as s}from"../styles/ReviewStatusStyles.js";var a=function(e){for(var r=[{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"}],l=0,n=0;n<e.length;n++)l=e.charCodeAt(n)+((l<<5)-l);return r[Math.abs(l)%r.length]};function o(n){var a=n.levels,o=n.reviewData,p=void 0===o?{}:o,c=a.map(function(e,r){var l,n,t,i=null!==(l=p[r])&&void 0!==l?l:{},s=(null!==(n=e.assignees)&&void 0!==n?n:[]).map(function(e){var r;return{user:e,approved:null!==(r=i[String(e.id)])&&void 0!==r&&r}});return{level:e,assigneeStatuses:s,status:(t=s,0===t.length?"not_started":t.every(function(e){return e.approved})?"approved":t.some(function(e){return e.approved})?"pending":"not_started")}}),v=function(e){return e.filter(function(e){return"approved"===e.status}).length}(c),g=c.length;return r("div",e({style:{display:"flex",flexDirection:"column",gap:24}},{children:[r("div",{children:[r("div",e({style:s.progressHeader},{children:[l("span",e({style:s.progressTitle},{children:"Approval Progress"})),r("span",e({style:s.progressCount},{children:[v," of ",g," level",1!==g?"s":""," complete"]}))]})),l("div",e({style:s.progressBarTrack},{children:c.map(function(r,n){var t="approved"===r.status,i=0===n,a=n===g-1;return l("div",{style:e(e({},s.progressSegment),{backgroundColor:t?"#6366F1":"#E5E7EB",borderRadius:i&&a?"999px":i?"999px 0 0 999px":a?"0 999px 999px 0":"0",marginRight:a?0:3})},n)})})),l("div",e({style:s.progressLabels},{children:c.map(function(l,n){return r("span",e({style:e(e({},s.progressLabel),{color:"approved"===l.status?"#6366F1":"#9CA3AF",fontWeight:"approved"===l.status?600:400})},{children:[l.level.headerName," - ",l.level.title]}),n)})}))]}),r("div",e({style:{display:"flex",flexDirection:"column",gap:0}},{children:[r("div",e({style:s.sectionHeadingRow},{children:[r("div",e({style:{display:"flex",alignItems:"center",gap:6}},{children:[l("span",e({style:s.sectionTitle},{children:"Approval Levels"})),l(t,{size:15,color:"#9CA3AF"})]})),v===g&&g>0&&r("span",e({style:s.approvedBadge},{children:[l(i,{size:14,color:"#16A34A"}),"Approved"]}))]})),l("div",e({style:{display:"flex",flexDirection:"column",gap:12,marginTop:12}},{children:c.map(function(e,r){return l(d,{reviewLevel:e},r)})}))]})),l(u,{levels:a})]}))}function d(n){var t=n.reviewLevel,i=t.level,a=t.assigneeStatuses,o="approved"===t.status;return r("div",e({style:e(e({},s.levelCard),{backgroundColor:o?"#F0FDF4":"#FFFFFF",border:o?"1px solid #BBF7D0":"1px solid #E5E7EB"})},{children:[l("div",e({style:s.levelCardHeader},{children:r("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[l(c,{name:i.headerName}),l("span",e({style:{fontSize:14,fontWeight:600,color:"#111827"}},{children:i.title}))]}))})),a.length>0?l("div",e({style:{display:"flex",flexDirection:"column",gap:0}},{children:a.map(function(e,r){var n;return l(p,{assigneeStatus:e},null!==(n=e.user.id)&&void 0!==n?n:r)})})):l("div",e({style:s.noAssignees},{children:"No assignees added yet"}))]}))}function p(n){var t,o,d,p=n.assigneeStatus,c=p.user,u=p.approved,v=(o=c.name,1===(d=o.trim().split(/\s+/)).length?d[0].slice(0,2).toUpperCase():(d[0][0]+d[d.length-1][0]).toUpperCase()),g=a(null!==(t=c.id)&&void 0!==t?t:c.name);return r("div",e({style:s.assigneeRow},{children:[l("div",e({style:e(e({},s.avatar),{backgroundColor:g.bg,color:g.fg})},{children:v})),r("div",e({style:{display:"flex",flexDirection:"column",gap:1,flex:1}},{children:[l("span",e({style:s.userName},{children:c.name})),l("span",e({style:s.userEmail},{children:c.email}))]})),u&&l(i,{size:22,color:"#16A34A",strokeWidth:1.8})]}))}function c(r){var n=r.name,t=a(n);return l("span",e({style:{backgroundColor:t.bg,color:t.fg,borderRadius:8,padding:"3px 10px",fontSize:12,fontWeight:600}},{children:n}))}function u(t){var i=t.levels,a=i.some(function(e){var r,l;return(null!==(l=null===(r=e.assignees)||void 0===r?void 0:r.length)&&void 0!==l?l:0)>0});return r("div",e({style:s.flowBox},{children:[l("span",e({style:s.flowTitle},{children:"Current Approval Flow"})),a?l("div",e({style:{display:"flex",flexWrap:"wrap",gap:6,alignItems:"center",marginTop:6}},{children:i.map(function(t,a){var o,d=null===(o=t.assignees)||void 0===o?void 0:o.map(function(e){return e.name}).join(", ");return d?r(n.Fragment,{children:[r("span",e({style:s.flowChip},{children:[l(c,{name:t.headerName}),l("span",e({style:{fontSize:13,color:"#374151"}},{children:d}))]})),a<i.length-1&&l("span",e({style:{color:"#D1D5DB",fontSize:18}},{children:"→"}))]},a):null})})):l("p",e({style:s.flowEmpty},{children:"No owners assigned yet."}))]}))}export{o as default};
2
+ //# sourceMappingURL=ReviewStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReviewStatus.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import e from"../../../node_modules/style-inject/dist/style-inject.es.js";e(".AssignReminderLevels_date-input-wrapper__ryQen{align-items:center;border:2px solid #cfd6df;border-radius:8px;display:flex;height:30px;justify-content:space-between;padding:0 12px;position:relative;width:110px}.AssignReminderLevels_date-input__E27pM{cursor:pointer;inset:0;opacity:0;position:absolute;z-index:100}.AssignReminderLevels_required-toggle__9LO0Q{align-items:center;background:#cbd5e1;background:#e2e8f0;border:none;border-radius:999px;cursor:pointer;display:flex;height:24px;height:28px;padding:0;position:relative;transition:background-color .2s ease;transition:all .2s ease;width:44px;width:110px}.AssignReminderLevels_required-toggle__9LO0Q.AssignReminderLevels_active__jqQmP{background:#eef2ff}.AssignReminderLevels_toggle-thumb__D6qam{background:#fff;border-radius:50%;box-shadow:0 1px 3px #00000026;height:20px;left:4px;position:absolute;transition:transform .2s ease;width:20px}.AssignReminderLevels_required-toggle__9LO0Q.AssignReminderLevels_active__jqQmP .AssignReminderLevels_toggle-thumb__D6qam{transform:translateX(82px)}.AssignReminderLevels_toggle-label__0BolE{color:#64748b;font-size:12px;font-weight:500;text-align:center;transition:color .2s ease;width:100%}.AssignReminderLevels_required-toggle__9LO0Q.AssignReminderLevels_active__jqQmP .AssignReminderLevels_toggle-label__0BolE{color:#4f46e5}.AssignReminderLevels_info-icon-wrapper__PqIuL{align-items:center;cursor:pointer;display:inline-flex;position:relative}.AssignReminderLevels_tooltip__89ndq{background:#333;border-radius:4px;bottom:125%;color:#fff;font-size:12px;left:50%;opacity:0;padding:6px 10px;position:absolute;transform:translateX(-30%);transition:opacity .2s ease;visibility:hidden;white-space:nowrap}.AssignReminderLevels_info-icon-wrapper__PqIuL:hover .AssignReminderLevels_tooltip__89ndq{opacity:1;visibility:visible}");
2
+ //# sourceMappingURL=AssignReminderLevels.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderLevels.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e={header:{display:"flex",fontSize:"20px",alignItems:"center",gap:10},finalApprovalBox:{display:"flex",padding:"20px",border:"1px solid #F3F4F6",backgroundColor:"#FFFFFF"},currentApprovalFlow:{backgroundColor:"#F9FAFB",border:"1px solid #E5E7EB",borderRadius:"10px",padding:"12px",display:"flex",flexDirection:"column",gap:"8px"},addLevelBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"10px",backgroundColor:"#F3F4F6",color:"#374151",border:"1px dashed #D1D5DB",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:500,transition:"all 0.2s ease"}};export{e as DEFAULT_ASSIGN_REMINDER_STYLES};
2
+ //# sourceMappingURL=AssignReminderStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderStyles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e={overlay:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.35)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{backgroundColor:"#FFFFFF",borderRadius:"16px",width:"100%",maxWidth:"780px",maxHeight:"90vh",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 20px 60px rgba(0,0,0,0.15)"},header:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",padding:"24px 28px 16px"},headerLeft:{display:"flex",flexDirection:"column",gap:6},modalTitle:{fontSize:18,fontWeight:700,color:"#111827"},redlineRow:{display:"flex",alignItems:"center",gap:8},redlineName:{fontSize:13,color:"#6B7280"},redlineBadge:{fontSize:12,fontWeight:600,padding:"2px 10px",borderRadius:999},closeBtn:{background:"none",border:"none",cursor:"pointer",padding:4,display:"flex",alignItems:"center",borderRadius:6},tabBar:{display:"flex",gap:0,borderBottom:"1px solid #E5E7EB",padding:"0 28px"},tab:{display:"flex",alignItems:"center",gap:7,padding:"10px 16px",fontSize:14,fontWeight:500,color:"#6B7280",background:"none",border:"none",borderBottom:"2px solid transparent",marginBottom:"-1px",cursor:"pointer",transition:"color 0.15s, border-bottom-color 0.15s"},tabActive:{color:"#6366F1",borderBottom:"2px solid #6366F1"},body:{flex:1,overflowY:"auto",padding:"18px 28px",display:"flex",flexDirection:"column",gap:0},dueDateBar:{display:"flex",alignItems:"center",gap:16,padding:"14px 20px",backgroundColor:"#EEF2FF",borderRadius:10,flexWrap:"wrap"},dueDateLabel:{fontSize:14,fontWeight:500,color:"#1F2937",whiteSpace:"nowrap"},dueDateInputWrap:{display:"flex",alignItems:"center",gap:8,borderRadius:8,padding:"6px 12px",flex:"0 0 auto"},dueDateInput:{border:"none",outline:"none",fontSize:14,color:"#374151",background:"transparent",cursor:"pointer"},requiredToProceeed:{display:"flex",alignItems:"center",gap:5,fontSize:13,color:"#6B7280",marginLeft:"auto"},reminderPlaceholder:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"60px 0"},footer:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:12,padding:"16px 28px",borderTop:"1px solid #F3F4F6"},clearBtn:{padding:"9px 20px",fontSize:14,fontWeight:500,color:"#374151",background:"none",border:"none",borderRadius:8,cursor:"pointer"},saveBtn:{padding:"9px 24px",fontSize:14,fontWeight:600,color:"#FFFFFF",backgroundColor:"#6366F1",border:"none",borderRadius:8,cursor:"pointer"}};export{e as DEFAULT_ASSIGN_REMINDER_WRAPPER_STYLES};
2
+ //# sourceMappingURL=AssignReminderWrapperStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssignReminderWrapperStyles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e={progressHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:10},progressTitle:{fontSize:15,fontWeight:700,color:"#111827"},progressCount:{fontSize:14,fontWeight:600,color:"#6366F1"},progressBarTrack:{display:"flex",height:8,borderRadius:999,overflow:"hidden"},progressSegment:{flex:1,height:"100%",transition:"background-color 0.3s ease"},progressLabels:{display:"flex",marginTop:6},progressLabel:{flex:1,fontSize:12,transition:"color 0.3s ease"},sectionHeadingRow:{display:"flex",justifyContent:"space-between",alignItems:"center"},sectionTitle:{fontSize:15,fontWeight:700,color:"#111827"},approvedBadge:{display:"flex",alignItems:"center",gap:5,fontSize:13,fontWeight:600,color:"#16A34A"},levelCard:{borderRadius:12,overflow:"hidden",transition:"background-color 0.3s ease, border-color 0.3s ease"},levelCardHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px"},noAssignees:{padding:"10px 16px",fontSize:13,color:"#9CA3AF",fontStyle:"italic"},assigneeRow:{display:"flex",alignItems:"center",gap:12,padding:"10px 16px",borderTop:"1px solid rgba(0,0,0,0.05)"},avatar:{width:38,height:38,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:700,flexShrink:0},userName:{fontSize:14,fontWeight:600,color:"#111827"},userEmail:{fontSize:12,color:"#6B7280"},flowBox:{border:"1px solid #E5E7EB",borderRadius:12,padding:"16px 20px",backgroundColor:"#FFFFFF"},flowTitle:{fontSize:14,fontWeight:700,color:"#111827"},flowEmpty:{fontSize:13,color:"#9CA3AF",fontStyle:"italic",marginTop:6,marginBottom:0},flowChip:{display:"flex",alignItems:"center",gap:6}};export{e as DEFAULT_REVIEW_STATUS_STYLES};
2
+ //# sourceMappingURL=ReviewStatusStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReviewStatusStyles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ function o(){var o=Math.floor(360*Math.random());return{backgroundColor:"hsl(".concat(o,", 70%, 82%)"),color:"hsl(".concat(o,", 65%, 25%)")}}export{o as getRandomColorPair};
2
+ //# sourceMappingURL=generateRandomColorsPair.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateRandomColorsPair.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{TreeSidebar}from"./components/ScopeTree/TreeSidebar.js";export{default as GuidelineHeader}from"./features/lsc-guidelines/components/GuidelineHeader.js";export{LscGuidelines}from"./features/lsc-guidelines/LscGuidelines.js";export{GuidelineAttachmentIcon}from"./features/lsc-guidelines/components/GuidelineAttachmentIcon.js";export{GuidelineCart}from"./features/lsc-guidelines/components/GuidelineCart.js";export{GuidelineCartHeader}from"./features/lsc-guidelines/components/GuidelineCartHeader.js";export{GuidelineCartItem}from"./features/lsc-guidelines/components/GuidelineCartItem.js";export{GuidelineEmptyState}from"./features/lsc-guidelines/components/GuidelineEmptyState.js";export{GuidelineIconButton}from"./features/lsc-guidelines/components/GuidelineIconButton.js";export{GuidelineLandingPage}from"./features/lsc-guidelines/components/GuidelineLandingPage.js";export{GuidelineLibrary}from"./features/lsc-guidelines/components/GuidelineLibrary.js";export{GuidelineLibraryCard}from"./features/lsc-guidelines/components/GuidelineLibraryCard.js";export{GuidelinePopoverCart}from"./features/lsc-guidelines/components/GuidelinePopoverCart.js";export{GuidelineProceedButton}from"./features/lsc-guidelines/components/GuidelineProceedButton.js";export{GuidelineSelectButton}from"./features/lsc-guidelines/components/GuidelineSelectButton.js";export{GuidelineCardMenu,createGuidelineCardMenuItems}from"./features/lsc-guidelines/components/GuidelineCardMenu.js";export{GuidelineConfirmDialog}from"./features/lsc-guidelines/components/GuidelineConfirmDialog.js";export{GuidelineSavedModal}from"./features/lsc-guidelines/components/GuidelineSavedModal.js";export{useGuidelineFlow}from"./features/lsc-guidelines/hooks/useGuidelineFlow.js";export{useGuidelineSelection}from"./features/lsc-guidelines/hooks/useGuidelineSelection.js";export{DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,DEFAULT_GUIDELINE_LABELS}from"./features/lsc-guidelines/constants.js";export{createGuidelineId,cx,defaultFormatAddedOnLabel,getGuidelineDescription,mergeGuidelineLabels}from"./features/lsc-guidelines/utils.js";
1
+ export{default as AssignReminderLevels}from"./components/AssignReminders/AssignReminderLevels.js";export{default as AssignReminderWrapper}from"./components/AssignReminders/AssignReminderWrapper.js";export{TreeSidebar}from"./components/ScopeTree/TreeSidebar.js";export{default as GuidelineHeader}from"./features/lsc-guidelines/components/GuidelineHeader.js";export{LscGuidelines}from"./features/lsc-guidelines/LscGuidelines.js";export{GuidelineAttachmentIcon}from"./features/lsc-guidelines/components/GuidelineAttachmentIcon.js";export{GuidelineCart}from"./features/lsc-guidelines/components/GuidelineCart.js";export{GuidelineCartHeader}from"./features/lsc-guidelines/components/GuidelineCartHeader.js";export{GuidelineCartItem}from"./features/lsc-guidelines/components/GuidelineCartItem.js";export{GuidelineEmptyState}from"./features/lsc-guidelines/components/GuidelineEmptyState.js";export{GuidelineIconButton}from"./features/lsc-guidelines/components/GuidelineIconButton.js";export{GuidelineLandingPage}from"./features/lsc-guidelines/components/GuidelineLandingPage.js";export{GuidelineLibrary}from"./features/lsc-guidelines/components/GuidelineLibrary.js";export{GuidelineLibraryCard}from"./features/lsc-guidelines/components/GuidelineLibraryCard.js";export{GuidelinePopoverCart}from"./features/lsc-guidelines/components/GuidelinePopoverCart.js";export{GuidelineProceedButton}from"./features/lsc-guidelines/components/GuidelineProceedButton.js";export{GuidelineSelectButton}from"./features/lsc-guidelines/components/GuidelineSelectButton.js";export{GuidelineCardMenu,createGuidelineCardMenuItems}from"./features/lsc-guidelines/components/GuidelineCardMenu.js";export{GuidelineConfirmDialog}from"./features/lsc-guidelines/components/GuidelineConfirmDialog.js";export{GuidelineSavedModal}from"./features/lsc-guidelines/components/GuidelineSavedModal.js";export{useGuidelineFlow}from"./features/lsc-guidelines/hooks/useGuidelineFlow.js";export{useGuidelineSelection}from"./features/lsc-guidelines/hooks/useGuidelineSelection.js";export{DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,DEFAULT_GUIDELINE_LABELS}from"./features/lsc-guidelines/constants.js";export{createGuidelineId,cx,defaultFormatAddedOnLabel,getGuidelineDescription,mergeGuidelineLabels}from"./features/lsc-guidelines/utils.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,7 @@
1
+ import AssignReminderLevels from './components/AssignReminders/AssignReminderLevels';
2
+ import AssignReminderWrapper from './components/AssignReminders/AssignReminderWrapper';
1
3
  export { TreeSidebar } from './components/ScopeTree/TreeSidebar';
2
4
  export type { TreeSidebarProps } from './components/ScopeTree/TreeSidebar';
3
5
  export * from './features/lsc-guidelines';
6
+ export { AssignReminderWrapper, AssignReminderLevels };
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,mDAAmD,CAAC;AACrF,OAAO,qBAAqB,MAAM,oDAAoD,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viswa-test/creative-workspace-ui-component",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "author": "Viswa Koduru",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -137,7 +137,7 @@
137
137
  "typescript": "4.9.5"
138
138
  },
139
139
  "peerDependencies": {
140
- "@e-llm-studio/requirement-ai": "^0.0.173",
140
+ "@e-llm-studio/requirement-ai": "^0.0.193",
141
141
  "lucide-react": "^0.474.0",
142
142
  "primeicons": "^7.0.0",
143
143
  "primereact": "^10.9.7",