PageSourceSearch

https://app.evro.ai/assets/TaskPage-DasrivF2.js

js evro.ai collected 2026-10-05 14:00:50 UTC 25,992 bytes, 3 lines download raw bytes

1import{j as e,r as i,g as U,a as ne,b as oe,h as C,e as re,i as de,l as Q,m as le,n as ce,o as xe,A as he,C as ue,d as G}from"./index-CeBiOOBC.js";import{F as Z}from"./FolderList-DGzFLXdL.js";import{C as ee}from"./Calendar-Dtl8M6C8.js";import{T as te}from"./TaskSectionWrapper-BOWIB-RW.js";import{T as se}from"./Task-FzKOI8nT.js";import{A as pe}from"./AddEditTask-MXWUXXLL.js";import{L as K}from"./AiChatBar-DPbkVxgu.js";import{M as me}from"./MeetingSectionWrapper-DPrytFdK.js";import"./SelectFolder-Do4I7UEl.js";import"./Portal-B489gMui.js";import"./isFocusVisible-QEDXNKgz.js";function ge({}){return e.jsxs("header",{className:"mb-6",children:[e.jsx("h1",{className:"text-[26px] font-semibold text-[#0B1220] dark:text-[#F2EEFB] tracking-[-0.02em] leading-tight",style:{fontFamily:"var(--font-display)"},children:"Task List"}),e.jsx("p",{className:"hidden md:block text-[13px] text-[#6A7689] dark:text-[#8E86AE] mt-1 leading-normal",children:"Where all your meeting action items live."})]})}const fe={search:"",folderId:"All Folders",assigned:{type:"team",isActive:!1},dueDate:{date:"",isActive:!1},folder:{isActive:!1,selected:"All Folders"},date:"",limit:20};function ke(t,l){switch(l.type){case"SET_SEARCH":return{...t,search:l.value};case"TOGGLE_ASSIGNED":return{...t,assigned:{...t.assigned,isActive:!t.assigned.isActive},folder:{...t.folder,isActive:!1},dueDate:{...t.dueDate,isActive:!1}};case"SET_ASSIGNED_TYPE":return{...t,assigned:{...t.assigned,type:l.value,isActive:!1}};case"TOGGLE_FOLDER":return{...t,folder:{...t.folder,isActive:!t.folder.isActive},assigned:{...t.assigned,isActive:!1},dueDate:{...t.dueDate,isActive:!1}};case"TOGGLE_DUEDATE":return{...t,folder:{...t.folder,isActive:!1},assigned:{...t.assigned,isActive:!1},dueDate:{...t.dueDate,isActive:!t.dueDate.isActive}};case"SET_FOLDER_SELECTED":return{...t,folder:{...t.folder,selected:l.value,isActive:!1}};case"SET_DATE":return{...t,date:l.value,dueDate:{...t.dueDate,date:l.value,isActive:!1}};case"SET_FOLDER_ID":return{...t,folderId:l.value};case"CLOSE_POPUPS":return{...t,assigned:{...t.assigned,isActive:!1},folder:{...t.folder,isActive:!1},dueDate:{...t.dueDate,isActive:!1}};case"CLEAR_DUEDATE":return{...t,dueDate:{...t.dueDate,date:"",isActive:!1},date:""};default:return t}}const J=e.jsx("svg",{className:"w-3 h-3 text-[#6A7689]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})}),W="w-full text-left px-3 py-2 text-[13px] text-[#2E3949] dark:text-[#B7AED5] hover:bg-[#F4F3F8] dark:hover:bg-[#232057] transition-colors rounded-[6px]",P="w-full text-left px-3 py-2 text-[13px] font-semibold bg-[#0B1220] dark:bg-[#251e54] text-white dark:text-[#a69bd9] rounded-[6px]";function be({setActiveAddTask:t,isChanged:l,isShowMore:h,isShowMoreCompleted:d,setloader:D}){const[s,o]=i.useReducer(ke,fe),b=i.useRef(null),m=i.useRef(null),F=i.useRef(null),v=i.useRef(null),L=i.useRef(null),B=i.useRef(null),_=i.useRef(null),M=i.useRef(null),[X,N]=i.useState(160),[u,x]=i.useState(),{getPendingTasks:R,getCompletedTasks:k,pendingMeetingTasks:j,pendingNextCursor:Y,completedNextCursor:T,setTaskFetchLoader:E,resetPendingTaskState:I,resetCompletedTaskState:p,resetCursors:O}=U(),{getFolder:$}=ne(),n=oe(s,500);i.useEffect(()=>{(async()=>(await R(n.assigned.type,null,n.limit,n.search,C(n.date),n.folderId).catch(()=>{}),await k(n.assigned.type,null,n.limit,n.search,C(n.date),n.folderId).catch(()=>{}),D(!1)))()},[l,n.assigned.type,n.limit,n.search,n.date,n.folderId]),i.useEffect(()=>{h&&(async()=>await R(n.assigned.type,Y,n.limit,n.search,C(n.date),n.folderId).catch(()=>{}))()},[h]),i.useEffect(()=>{d&&(async()=>await k(n.assigned.type,T,n.limit,n.search,C(n.date),n.folderId).catch(()=>{}))()},[d]),i.useEffect(()=>{function a(c){setTimeout(()=>{const f=c.target,q=(L.current?.contains(f)??!1)||(B.current?.contains(f)??!1),ae=(_.current?.contains(f)??!1)||(M.current?.contains(f)??!1),ie=(F.current?.contains(f)??!1)||(v.current?.contains(f)??!1);!q&&!ae&&!ie&&o({type:"CLOSE_POPUPS"})},0)}return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[s.assigned.isActive,s.folder.isActive]),i.useEffect(()=>{$(),u&&o({type:"SET_DATE",value:`${u.getFullYear()}-${u.getMonth()+1}-${u.getDate()}`})},[u]),i.useEffect(()=>{if(s.dueDate.isActive&&v.current){const a=v.current.getBoundingClientRect();N(a.bottom+4)}},[s.dueDate.isActive]),i.useEffect(()=>{I(),p(),O(),E(!0)},[s.date,s.folderId,s.assigned.type]),i.useEffect(()=>{(s.search.trim()||s.search.length==0)&&(I(),p(),O(),E(!0))},[s.search]);const{googleCalendarConnectedDate:g,microsoftCalendarConnectedDate:A}=re(),[S,V]=i.useState(),[y,z]=i.useState();i.useEffect(()=>{A&&z(new Date(A))},[A]),i.useEffect(()=>{g&&V(new Date(g))},[g]);const w=y&&S?new Date(Math.min(y.getTime(),S.getTime())):y??S,H=de(u)&&j&&Array.isArray(Object.entries(j))&&Object.entries(j).some(([a,
1c])=>c?.length>0),r="h-8 px-3 flex items-center gap-1.5 bg-white dark:bg-[#15113A] border border-[#D2D8E0] dark:border-[rgba(244,240,255,0.10)] rounded-full text-[12px] font-medium text-[#2E3949] dark:text-[#B7AED5] hover:bg-[#F4F3F8] dark:hover:bg-[#232057] transition-colors flex-shrink-0";return e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex flex-col md:hidden mt-4 space-y-2.5",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:e.jsxs("svg",{className:"w-[13px] h-[13px] text-[#6A7689]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("path",{d:"m21 21-4.35-4.35"})]})}),e.jsx("input",{placeholder:"Search tasks...",className:"w-full h-9 pl-9 pr-4 text-[13px] bg-white dark:bg-[#100C30] border border-[#D2D8E0] dark:border-[rgba(244,240,255,0.10)] rounded-full text-[#0B1220] dark:text-[#F2EEFB] placeholder-[#6A7689] dark:placeholder-[#6A6390] focus:outline-none focus:ring-2 focus:ring-[#EAE5FE] dark:focus:ring-[rgba(116,100,220,0.16)] transition-colors",type:"text",value:s.search,onChange:a=>o({type:"SET_SEARCH",value:a.target.value})})]}),e.jsx("button",{onClick:()=>t(!0),className:"h-9 w-9 flex items-center justify-center bg-[#0B1220] dark:bg-[#F2EEFB] text-white dark:text-[#0C0826] rounded-full flex-shrink-0",children:e.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:e.jsx("path",{d:"M12 5v14M5 12h14"})})})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("div",{ref:L,className:"relative flex-shrink-0",children:[e.jsxs("button",{onClick:()=>o({type:"TOGGLE_FOLDER"}),className:`${r} ${s.folder.selected!=="All Folders"?"border-[#A89FE0] dark:border-[rgba(244,240,255,0.18)] text-[#2D2580] dark:text-[#BCB1F0]":""}`,children:[e.jsx("span",{className:"truncate max-w-[100px]",children:s.folder.selected}),J]}),s.folder.isActive&&e.jsx(Z,{folderRef:b,selected:s.folder.selected,onSelect:(a,c)=>{o({type:"SET_FOLDER_SELECTED",value:a}),o({type:"SET_FOLDER_ID",value:c})}})]}),e.jsxs("div",{ref:_,className:"relative flex-shrink-0",children:[e.jsxs("button",{onClick:()=>o({type:"TOGGLE_ASSIGNED"}),className:r,children:[e.jsx("svg",{className:"w-3.5 h-3.5 text-[#6A7689]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"})}),e.jsx("span",{children:s.assigned.type==="unassigned"?"Unassigned":"All Tasks"})]}),s.assigned.isActive&&e.jsxs("div",{className:"absolute left-0 mt-1 w-44 bg-white dark:bg-[#15113A] border border-[#E5E9EF] dark:border-[rgba(244,240,255,0.10)] rounded-[10px] shadow-[0_4px_16px_rgba(11,18,32,0.1)] dark:shadow-[0_4px_16px_rgba(0,0,0,0.55)] z-40 p-1.5 ",children:[e.jsx("button",{onClick:()=>o({type:"SET_ASSIGNED_TYPE",value:"team"}),className:`${s.assigned.type==="team"||s.assigned.type===""?P:W} `,children:"All Tasks"}),e.jsx("button",{onClick:()=>o({type:"SET_ASSIGNED_TYPE",value:"unassigned"}),className:s.assigned.type==="unassigned"?P:W,children:"Unassigned Tasks"})]})]}),e.jsxs("div",{ref:v,className:"relative flex-shrink-0",children:[e.jsxs("button",{onClick:()=>o({type:"TOGGLE_DUEDATE"}),className:r,children:[e.jsx("svg",{className:"w-3.5 h-3.5 text-[#6A7689]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5"})}),e.jsx("span",{children:s.dueDate.date?Q(s.dueDate.date):"Due date"}),s.dueDate.date&&e.jsx("svg",{onClick:a=>{a.stopPropagation(),o({type:"CLEAR_DUEDATE"}),x(void 0)},className:"w-3 h-3 text-[#B45444] cursor-pointer",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})]}),s.dueDate.isActive&&e.jsx("div",{ref:m,className:"absolute left-0 -translate-x-1/2 max-[370px]:-translate-x-0 md:-translate-x-1/4 w-[95vw] max-w-[320px] z-40 mt-1",children:e.jsx(ee,{selected:u,setSelected:x,disableBeforeDate:w,showTooltip:!0})})]})]})]}),e.jsxs("div",{className:"hidden md:flex mt-4 mb-6 items-center gap-2",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none",children:e.jsxs("svg",{className:"w-[13px] h-[13px] text-[#6A7689]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("path",{d:"m21 21-4.35-4.35"})]})}),e.jsx("input",{placeholder:"Search tasks...",className:"w-full h-9 pl-9 pr-4 text-[13px] bg-white dark:bg-[#100C30] border border-[#D2D8E0] dark:border-[rgba(244,240,255,0.10)] rounded-full text-[#0B1220] dark:text-[#F2EEFB] placeholder-[#6A7689] dark:placeholder-[#6A6390] focus:outline-none focus:ring-2 focus:ring-[#EAE5FE] dark:focus:ring-[rgba(116,100,220,0.16)] focus:border-[#A89FE0] dark:focus:border-[rgba(244,240,255,0.18)] transition-colors",type:"text",value:s.search,onChange:a=>o({type:"SET_SEARCH",value:a.target.value})})]}),e.jsxs("div",{ref:B,className:"relative flex-shrink-0",children:[e.jsxs("button",{onClick:()=>o({type:"TOGGLE_FOLDER"}),className:`${r} ${s.folder.selected!=="All Folders"?"border-[#A89FE0] dark:border-[rgba(244,240,255,0.18)] text-[#2D2580] dark:text-[#BCB1F0]":""}`,children:[e.jsx("span",{className:"truncate max-w-[120px]",children:s.folder.selected}),J]}),s.folder.isActive&&e.jsx(Z,{folderRef:b,selected:s.folder.selected,onSelect:(a,c)=>{o({type:"SET_FOLDER_SELECTED",value:a}),o({type:"SET_FOLDER_ID",value:c})}})]}),e.jsxs("div",{ref:M,className:"relative flex-shrink-0",children:[e.jsxs("button",{onClick:()=>o({type:"TOGGLE_ASSIGNED"}),className:r,children:[e.jsx("svg",{className:"w-3.5 h-3.5 text-[#6A7689]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"})}),e.jsx("span",{children:s.assigned.type==="unassigned"?"Unassigned":"All Tasks"}),J]}),s.assigned.isActive&&e.jsxs("div",{className:"absolute right-0 mt-1 w-44 bg-white dark:bg-[#15113A] border border-[#
1E5E9EF] dark:border-[rgba(244,240,255,0.10)] rounded-[10px] shadow-[0_4px_16px_rgba(11,18,32,0.1)] dark:shadow-[0_4px_16px_rgba(0,0,0,0.55)] z-40 p-1.5",children:[e.jsx("button",{onClick:()=>o({type:"SET_ASSIGNED_TYPE",value:"team"}),className:`${s.assigned.type==="team"||s.assigned.type===""?P:W}
2mb-1
3                    `,children:"All Tasks"}),e.jsx("button",{onClick:()=>o({type:"SET_ASSIGNED_TYPE",value:"unassigned"}),className:s.assigned.type==="unassigned"?P:W,children:"Unassigned Tasks"})]})]}),e.jsxs("div",{ref:F,className:"relative flex-shrink-0",children:[e.jsxs("button",{onClick:()=>o({type:"TOGGLE_DUEDATE"}),className:r,children:[e.jsx("svg",{className:"w-3.5 h-3.5 text-[#6A7689]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5"})}),e.jsx("span",{children:s.dueDate.date?Q(s.dueDate.date):"Due date"}),s.dueDate.date&&e.jsx("svg",{onClick:a=>{a.stopPropagation(),o({type:"CLEAR_DUEDATE"}),x(void 0)},className:"w-3 h-3 text-[#B45444] cursor-pointer",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})]}),s.dueDate.isActive&&e.jsx("div",{ref:m,className:"absolute right-0 w-[310px] z-50 mt-1",children:e.jsx(ee,{selected:u,setSelected:x,disableBeforeDate:w,showTooltip:!0})})]}),e.jsxs("button",{onClick:()=>t(!0),className:"h-9 px-4 flex items-center gap-1.5 bg-[#0B1220] dark:bg-[#F2EEFB] hover:bg-[#2E3949] dark:hover:bg-[#FAF8FF] text-white dark:text-[#0C0826] text-[13px] font-semibold rounded-full transition-colors flex-shrink-0",children:[e.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:e.jsx("path",{d:"M12 5v14M5 12h14"})}),"Add Task"]})]}),w&&j&&H&&e.jsxs("p",{className:"text-[11px] text-center text-[#6A7689] dark:text-[#8E86AE] mb-4 font-medium",children:["Tasks available from"," ",w.toLocaleDateString("en-IN",{day:"numeric",month:"long",year:"numeric"})," ","onwards"]})]})}function ve({children:t}){return e.jsx("div",{className:"animate-fade-in-up pb-10",children:e.jsx("div",{className:"space-y-8",children:t})})}function je({children:t,isExpanded:l,setIsExpanded:h}){const{completedCount:d}=U();return e.jsxs("section",{className:"mt-8 mb-12 md:mb-0",children:[e.jsxs("button",{onClick:()=>h(D=>!D),className:"w-full flex items-center justify-between px-4 py-3 bg-white dark:bg-[#15113A] border border-[#D2D8E0] dark:border-[rgba(244,240,255,0.10)] rounded-[10px] hover:bg-[#F4F3F8] dark:hover:bg-[#1C1848] transition-colors mb-4",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.08em] text-[#6A7689] dark:text-[#8E86AE]",children:"Completed"}),e.jsx("span",{className:"text-[11px] font-medium text-[#6A7689] dark:text-[#8E86AE] bg-[#F4F3F8] dark:bg-[#1C1848] px-2 py-0.5 rounded-full border border-[#E5E9EF] dark:border-[rgba(244,240,255,0.06)]",children:d})]}),e.jsx("svg",{className:`w-4 h-4 text-[#6A7689] dark:text-[#8E86AE] transition-transform duration-200 ${l?"rotate-180":"rotate-0"}`,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),l&&t]})}const Ee=[{step:"Step 1",title:"Capture action items",description:"From meetings, chats, or quick notes",icon:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[e.jsx("path",{d:"M12 5v14M5 12h14"}),e.jsx("circle",{cx:"12",cy:"12",r:"9"})]})},{step:"Step 2",title:"Assign owners & due dates",description:"Every task has clear responsibility",icon:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[e.jsx("path",{d:"M8 7h12M8 12h12M8 17h12"}),e.jsx("circle",{cx:"5",cy:"7",r:"1"}),e.jsx("circle",{cx:"5",cy:"12",r:"1"}),e.jsx("circle",{cx:"5",cy:"17",r:"1"})]})},{step:"Step 3",title:"Track completion",description:"See what’s done, delayed, or at risk",icon:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:e.jsx("path",{d:"M20 6L9 17l-5-5"})})}],Ae=[{label:"Clarity",title:"Nothing falls through the cracks",body:"Every action item is captured and visible until it is completed.",iconBg:"bg-indigo-100 text-indigo-700 dark:bg-[rgba(116,100,220,0.16)] dark:text-[#BCB1F0]",icon:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:e.jsx("path",{d:"M12 2l3 7h7l-5.5 4 2 7L12 16l-6.5 4 2-7L2 9h7z"})})},{label:"Ownership",title:"Clear responsibility for every task",body:"Know exactly who owns what, without ambiguity or overlap.",iconBg:"bg-emerald-100 text-emerald-700 dark:bg-[rgba(52,211,153,0.12)] dark:text-[#34D399]",icon:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[e.jsx("circle",{cx:"12",cy:"8",r:"4"}),e.jsx("path",{d:"M4 22c2-5 14-5 16 0"})]})},{label:"Execution",title:"Turn decisions into outcomes",body:"Track progress from assignment to completion in one place.",iconBg:"bg-amber-100 text-amber-700 dark:bg-[rgba(245,158,11,0.12)] dark:text-[#FBBF24]",icon:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:e.jsx("path",{d:"M4 12h16M12 4v16"})})}];function ye({onImportTranscript:t,onStartRecording:l}
3){const h=le();return e.jsxs("div",{className:"flex flex-col items-center px-8 pt-10 pb-12 text-center",children:[e.jsx("div",{className:"mb-6 flex h-[52px] w-[52px] items-center justify-center rounded-full border border-indigo-200 dark:border-[rgba(116,100,220,0.30)] bg-indigo-50 dark:bg-[rgba(116,100,220,0.16)] text-indigo-700 dark:text-[#BCB1F0]",children:e.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[e.jsx("path",{d:"M9 11l3 3L22 4"}),e.jsx("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})]})}),e.jsx("h2",{className:"mb-2 text-xl font-semibold text-gray-900 dark:text-[#F2EEFB]",children:"Your action items in one place"}),e.jsx("p",{className:"mb-8 max-w-2xl text-sm leading-6 text-gray-600 dark:text-[#8E86AE]",children:"Action items are automatically collected from your work so nothing gets lost. Every task is tracked from assignment to completion with full ownership clarity."}),e.jsx("div",{className:"mb-10 flex w-full max-w-[540px] flex-col gap-4",children:Ee.map(d=>
3e.jsxs("div",{className:"flex items-start gap-4 rounded-2xl border border-gray-200 dark:border-[rgba(244,240,255,0.10)] bg-white dark:bg-[#15113A] p-4 text-left shadow-sm dark:shadow-[0_4px_24px_rgba(0,0,0,0.55)]",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-gray-200 dark:border-[rgba(244,240,255,0.10)] bg-gray-50 dark:bg-[#1C1848] text-gray-700 dark:text-[#8E86AE]",children:d.icon}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-xs font-medium uppercase tracking-wide text-indigo-600 dark:text-[#BCB1F0]",children:d.step}),e.jsx("span",{className:"text-sm font-semibold text-gray-900 dark:text-[#F2EEFB]",children:d.title}),e.jsx("span",{className:"text-sm text-gray-500 dark:text-[#8E86AE]",children:d.description})]})]},d.step))}),e.jsxs("div",{className:"mb-10 flex flex-wrap items-center justify-center gap-3",children:[e.jsxs("button",{onClick:l,className:"inline-flex items-center gap-2 rounded-xl bg-black dark:bg-[#6E5FF0] px-4 py-2.5 text-sm font-medium text-white transition hover:opacity-90 dark:hover:bg-[#8275FF]",children:[e.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"9"}),e.jsx("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor",stroke:"none"})]}),"Start recording"]}),e.jsxs("button",{onClick:()=>{h("/home"),t?.()},className:"inline-flex items-center gap-2 rounded-xl border border-gray-300 dark:border-[rgba(244,240,255,0.10)] bg-white dark:bg-[#1C1848] px-4 py-2.5 text-sm font-medium text-gray-700 dark:text-[#B7AED5] transition hover:bg-gray-50 dark:hover:bg-[#232057]",children:[e.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[e.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e.jsx("path",{d:"M17 8l-5-5-5 5"}),e.jsx("path",{d:"M12 3v12"})]}),"Import a transcript"]})]}),e.jsx("div",{className:"grid w-full max-w-[580px] gap-4 md:grid-cols-3",children:Ae.map(d=>e.jsxs("div",{className:"rounded-2xl border border-gray-200 dark:border-[rgba(244,240,255,0.10)] bg-white dark:bg-[#15113A] p-5 text-left shadow-sm dark:shadow-[0_4px_24px_rgba(0,0,0,0.55)]",children:[e.jsx("div",{className:`mb-4 flex h-9 w-9 items-center justify-center rounded-lg ${d.iconBg}`,children:d.icon}),e.jsx("p",{className:"mb-1 text-xs font-medium uppercase tracking-wide text-gray-500 dark:text-[#6A6390]",children:d.label}),e.jsx("h3",{className:"mb-2 text-sm font-semibold text-gray-900 dark:text-[#F2EEFB]",children:d.title}),e.jsx("p",{className:"text-sm leading-6 text-gray-600 dark:text-[#8E86AE]",children:d.body})]},d.label))})]})}function Re({}){const[t,l]=i.useState(!1),[h,d]=i.useState(null),[D,s]=i.useState(),{deleteTaskById:o,totalPendingFetched:b,loading:m,pendingNextCursor:F,completedNextCursor:v,setTaskFetchLoader:L,setCompletedFetchLoader:B,resetCursors:_,resetCompletedTaskState:M,resetPendingTaskState:X,totalUserTask:N}=U(),{addTask:u,pendingMeetingTasks:x,updateTask:R,completedMeetingTask:k}=U(),{startAdhocMeeting:j}=ce(),{importTranscript:Y}=xe(),{googleCalendarConnectedDate:T,microsoftCalendarConnectedDate:E}=re(),[I,p]=i.useState(Math.random()),[O,$]=i.useState(),[n,g]=i.useState(!1),[A,S]=i.useState(!0),[V,y]=i.useState(!1);i.useEffect(()=>{!x||Object.keys(x).length==0&&(T||E)||(!T&&!E&&!b&&(N==null||N==0)?y(!0):y(!1))},[T,E,b,x,N]);const z=async r=>{u({title:r.title,description:r.description,assignedTo:r.assignees,dueDate:C(r.dueDate),priority:r.priority.toLowerCase(),energy:r.energy.toLowerCase(),folderIds:r.folder.length>0?r.folder.map(a=>a.id):void 0}).then(()=>{G.success("Task added successfully"),setTimeout(()=>p(Math.random()),100)}).catch(a=>G.info(a))},w=async r=>{R({title:r.title.trim(),description:r.description.trim(),assignedTo:r.assignees,dueDate:r.dueDate?C(r.dueDate):null,priority:r.priority.toLowerCase(),energy:r.energy.toLowerCase(),folderIds:r.folder.map(a=>a.id)},r.id).then(a=>{setTimeout(()=>p(Math.random()),100),G.success(a)}).catch(a=>G.info(a))},H=async r=>{await o(r),setTimeout(()=>p(Math.random()),100)};return i.useEffect(()=>{he.pageView("Page_Viewed","/task-list")},[]),i.useEffect(()=>()=>{X(),M(),_()},[]),e.jsxs("main",{className:"flex-1 h-[100vh] overflow-hidden pb-16 md:pb-0 relative pt-16 md:pt-0",children:[e.jsx("div",{className:"h-[100dvh] w-full relative flex flex-col bg-[#F4F3F8] dark:bg-[#0C0826]",children:e.jsx("div",{className:"flex-1 overflow-y-auto scroll-smooth dark:bg-[#0C0826]",style:{padding:"32px 36px 80px"},children:e.jsxs("div",{className:"max-w-[80vw] mx-auto w-full",children:[e.jsx(ge,{}),e.jsx(be,{isShowMore:O,isShowMoreCompleted:D,isChanged:I,setloader:g,setActiveAddTask:l}),V?e.jsx(e.Fragment,{children:e.jsx(me,{lastSynced:"",showButton:!1,title:"Getting started",isMaxLength:!1,children:e.jsx(ye,{onStartRecording:j,onImportTranscript:Y})})}):e.jsxs(e.Fragment,{children:[x==null&&k==null&&e.jsx("div",{className:"flex justify-center p-16",children:e.jsx(K,{})}),b>0?e.jsx(ve,{children:x&&Array.isArray(Object.entries(x))&&Object.entries(x).map(([r,a])=>Array.isArray(a)&&a.length>0&&e.jsx(te,{label:r,children:Array.isArray(a)&&a.length>0&&a.map((c,f)=>
3e.jsx(se,{label:r,setIsChanged:p,task:c,selected:h?.id===c?.id,onSelect:q=>{d(q),l(!0)},setloader:g},c?.id??f))},r))}):e.jsx("div",{className:"w-full text-center flex items-center justify-center p-10",children:m.pendingTasks?"":e.jsx("p",{className:"text-[13px] text-[#6A7689] dark:text-[#8E86AE]",children:"No pending tasks"})}),F!==null&&e.jsx("div",{className:"flex justify-center mt-4",children:e.jsx("button",{onClick:()=>{L(!0),$(Math.random())},disabled:m.pendingTasks,className:"px-5 py-2 bg-white dark:bg-[#15113A] text-[#2E3949] dark:text-[#B7AED5] font-semibold rounded-full text-[11px] uppercase tracking-[0.08em] border border-[#D2D8E0] dark:border-[rgba(244,240,255,0.10)] hover:bg-[#F4F3F8] dark:hover:bg-[#232057] transition-colors flex items-center gap-2",children:m.pendingTasks?e.jsx(K,{}):"Show more"})}),Array.isArray(k)&&k.length>0&&e.jsx(je,{isExpanded:A,setIsExpanded:S,children:e.jsx(te,{children:k.map((r,a)=>e.jsx(se,{label:Q(r.dueDate),setIsChanged:p,task:r,selected:h?.id===r?.id,onSelect:c=>{d(c),l(!0)},setloader:g},r?.id??a))})}),v!==null&&A&&e.jsx("div",{className:"flex justify-center mt-4",children:e.jsx("button",{onClick:()=>{B(!0),s(Math.random())},disabled:m.completedTasks===!0,className:"px-5 py-2 bg-white dark:bg-[#15113A] text-[#2E3949] dark:text-[#B7AED5] font-semibold rounded-full text-[11px] uppercase tracking-[0.08em] border border-[#D2D8E0] dark:border-[rgba(244,240,255,0.10)] hover:bg-[#F4F3F8] dark:hover:bg-[#232057] transition-colors flex items-center gap-2",children:m.completedTasks?e.jsx(K,{}):"Show more"})})]})]})})}),t&&e.jsx(pe,{setIsChanged:p,deleteTask:H,setActiveAddTask:l,createTask:z,task:h,setSelectedTask:d,setloader:g,updateTask:w}),n&&e.jsx("div",{className:"fixed bg-black/50 inset-0 flex items-center justify-center z-50",children:e.jsx(ue,{color:"secondary"})})]})}export{Re as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.