1import{j as a}from"./ui-vendor-BuIVDC_j.js";import{r as o,u as Mt}from"./react-vendor-CrJEcqUQ.js";import{g as fe,i as Ot,p as It,t as Yt,h as Qt,b as Re,P as $t,s as lt,a as Pt}from"./PriorityBadge-C8UC4ekU.js";import{q as ne,T as Bt,b as Vt,a as Ht,c as Ut,g as it,u as Wt,f as zt,h as Gt,d as Xt,e as Zt,M as Jt,i as Kt,E as ct,j as er,k as tr,C as rr,l as ar,D as sr}from"./taskExport-B04kTfNZ.js";import{k as m,f as ee,e as Ye,E as nr,n as ut,h as dt,o as or,p as lr,z as T,M as ir,I as cr,B as Me,u as ur,U as mt,j as dr,l as ft,s as mr,S as fr,b as pr,m as br}from"./index-KEVldjck.js";import{u as oe,a as hr}from"./subTaskCacheStore-41DECh9D.js";import{a as gr,u as xr,b as yr,T as Oe}from"./useTableColumns-CRH2AV8w.js";import{C as _r}from"./check-DxEj003s.js";import{D as Tr}from"./download-B7EN0SQy.js";import"./arrow-up-BeUwHe7z.js";import"./BaseTable-IIZB8Si4.js";import"./list-filter-D_V2epj_.js";import"./dateFormatter-CkLysxqB.js";import"./date-vendor-ghIBFdIZ.js";import"./form-vendor-BzHnMruS.js";import"./plus-C-yCEgzc.js";function ht(p){const l=p,r=typeof l.frequency_display=="string"?l.frequency_display.trim():"";if(r)return r;const n=String(l.frequency_type||l.frequency_name||l.frequency_label||""),c=fe(n||m.NONE),u=String(n||m.NONE).toLowerCase().trim();if(!u||u===m.NONE)return c;const i=!!l.frequency_unlimited,h=l.frequency_repetitions_remaining??l.frequency_repetitions_total??null,x=h==null||h===""?null:Number(h);return i?`${c} (â)`:x!==null&&Number.isFinite(x)?`${c} (${x})`:c}const Nr=new Set(["serial","tId","dueDate","end_day_date","createdAt","status","priority","actions"]),Sr=new Set(["et","tt","quotation_amount","amount"]),Ee="inline-flex h-[18px] w-[18px] items-center justify-center rounded-[1px] p-0 m-0 shrink-0 leading-none hover:bg-gray-100 focus:outline-none focus-visible:shadow-[inset_0_0_0_1px_#3b82f6] [&_svg]:block [&_svg]:h-[14px] [&_svg]:w-[14px] [&_svg]:shrink-0",$=(p,l)=>{const r=Sr.has(p),n=Nr.has(p),c=p==="frequency"||!r&&!n;return a.jsx("div",{"data-excel-cell":"true","data-column-key":p,className:"w-full h-full min-h-0 min-w-0 relative flex items-stretch",style:{height:"100%",minHeight:0,boxSizing:"border-box"},children:a.jsx("div",{className:Ye("w-full h-full min-h-0 flex items-center text-xs leading-none",r&&"justify-end pr-0 pl-0",n&&"px-0 justify-center",c&&"px-0 justify-start"),style:{height:"100%",minHeight:0,boxSizing:"border-box"},children:l})})};function vr(p,l,r){var c,u,i,h,x;const n=p;switch(l){case"serial":return String(r+1);case"tId":return n.assignment_unique_name||n.tId||"";case"createdAt":{const _=n.createdAt||n.created_at||"";if(!_)return"";const S=((c=ee.getState().preferences)==null?void 0:c.dateFormat)||"DD/MM/YYYY";return ut(_,dt(S))}case"dueDate":{const _=n.due_date||n.dueDate||"";if(!_)return"";const S=((u=ee.getState().preferences)==null?void 0:u.dateFormat)||"DD/MM/YYYY";return ut(_,dt(S))}case"client":{const _=n.client_name||(typeof n.client=="object"&&n.client!==null?(i=n.client)==null?void 0:i.name:null)||(typeof n.client=="string"?n.client:"");return typeof _=="string"?_:""}case"task":return n.task_name||n.task||"";case"subTask":return n.sub_task_name||n.subTask||"";case"et":return String(Number(n.et??n.estimated_time??n.estimatedTime??0)||"");case"tt":return String(Number(n.tt??n.timeTaken??0)||"");case"allottedTo":return n.alloted_to_name||n.allotted_to_name||n.allottedToName||((h=n.allottedTo)==null?void 0:h.name)||"";case"teamLeader":return n.team_leader_name||n.teamLeaderName||((x=n.teamLeader)==null?void 0:x.name)||"";case"priority":return n.priority_name||n.priority||"";case"status":return n.status_name||n.status||"";case"frequency":return ht(p);default:{const _=n[l];return _==null||_===""?"":String(_)}}}const wr=o.memo(function({task:l,columnKey:r,rowIndex:n,priorityColorByName:c,statusColorByName:u}){var x,_;const i=vr(l,r,n),h=l;if(r==="serial")return $(r,a.jsx("span",{className:"text-sm text-center",children:i||"-"}));if(r==="tId")return $(r,a.jsx("span",{className:"font-mono text-sm text-blue-600 dark:text-blue-400",children:i||"-"}));if(r==="createdAt")return $(r,a.jsx("span",{className:"text-sm text-gray-700 whitespace-nowrap",children:i||"-"}));if(r==="dueDate"){const S=((x=ee.getState().preferences)==null?void 0:x.dateFormat)||"DD/MM/YYYY",C=Ot(It(h.due_date,h.dueDate),S);return $(r,a.jsx("span",{className:Ye("font-medium text-sm",C?"text-red-600":"text-black"),children:i||"-"}))}if(r==="frequency"){const S=i||fe(m.NONE),C=!!h.is_generated&&!!((_=ee.getState().preferences)!=null&&_.showAutoGeneratedFrequencyTag);return $(r,a.jsxs("div",{className:"w-full px-2 py-1 rounded text-sm font-medium flex items-center gap-2 text-blue-700 focus-within:text-blue-700",children:[a.jsx("span",{className:"text-blue-700 truncate",children:S}),C?a.jsx("span",{className:"inline-flex items-center rounded bg-blue-100 px-2 py-0.5 text-[10px] font-semibold text-blue-700",children:"Auto-generated"}):null]}))}if(r==="et")return $(r,a.jsx("span",{className:"text-xs leading-none text-right w-full flex items-center justify-end h-full",children:i||"-"}));if(r==="tt"){const S=Number(h.tt??h.timeTaken??0)||0,C=Number(h.et??h.estimated_time??h.estimatedTime??0)||0,O=S>C?"text-red-600":"text-gray-500";return $(r,a.jsx("span",{className:Ye("text-sm font-medium text-right w-full block",O),children:i||"-"}))}if(r==="amount"||r==="quotation_amount")return $(r,a.jsx("span",{className:"text-sm text-right w-full block",children:i||"-"}));if(r==="priority"){const S=i||"-",C=h.priority_color||(c==null?void 0:c[S.toLowerCase()])||void 0;return $(r,a.jsx("div",{className:"w-full",children:a.jsx($t,{priority:S,color:C})}))}if(r==="status"){const S=Yt(i,"-"),C=h.status_color||(u==null?void 0:u[i.toLowerCase()]),O={height:"20px"};return C?(O.color=C,O.backgroundColor=Qt(C,.1)):(O.backgroundColor="#F3F4F6",O.color="#374151"),$(r,a.jsx("span",{className:"inline-flex justify-center items-center w-full px-2 py-0 rounded text-sm font-medium",style:O,children:S}))}return $(r,a.jsx("span",{className:"truncate w-full text-sm",children:i||"-"}))}),Er=o.memo(function({task:l,openModal:r}){return a.jsxs("div",{"data-action-cell":"true","data-excel-cell":"false",className:"w-full h-full min-h-0 inline-flex items-center justify-center gap-0.5 pointer-events-auto overflow-visible",style:{height:"100%"},children:[a.jsx("button",{type:"button",tabIndex:0,"aria-label":"Quotation",onClick:n=>{n.stopPropagation(),r("quotation",l)},className:Ee,children:Re.quotation}),a.jsx("button",{type:"button",tabIndex:0,"aria-label":"View task summary and audit log",title:"Task Summary / Audit Log",onClick:n=>{n.stopPropagation(),r("time",l,n.currentTarget)},className:Ee,children:a.jsx(nr,{size:14,strokeWidth:1.75,className:"block text-gray-500"})}),a.jsx("button",{type:"button",tabIndex:0,"aria-label":"Comment",onClick:n=>{n.stopPropagation(),r("comment",l)},className:Ee,children:Re.comment}),a.jsx("button",{type:"button",tabIndex:0,"aria-label":"Delete task",onClick:n=>{n.stopPropagation(),r("delete",l)},className:Ee,children:Re.delete})]})}),Lr=or()(lr((p,l)=>({quotations:[],selectedQuotation:null,loading:!1,error:null,pagination:{total:0,page:1,limit:50,total_pages:0},filters:{page:1,limit:50},fetchQuotations:async r=>{var n,c;p({loading:!0,error:null});try{const u=await ne.getQuotations({...l().filters,...r});console.log("response: ",u);const{quotations:i,total:h,page:x,limit:_,total_pages:S}=u.data.data;p({quotations:i,pagination:{total:h,page:x,limit:_,total_pages:S},loading:!1})}catch(u){console.error("Error fetching quotations:",u);const i=((c=(n=u.response)==null?void 0:n.data)==null?void 0:c.detail)||"Failed to fetch quotations";p({error:i,loading:!1}),T.error(i,{duration:3e3})}},fetchQuotation:async r=>{var n,c,u;p({loading:!0,error:null});try{const i=await ne.getQuotation(r);p({selectedQuotation:i.data,loading:!1})}catch(i){console.error("Error fetching quotation:",i);const h=((c=(n=i.response)==null?void 0:n.data)==null?void 0:c.detail)||"Failed to fetch quotation";p({error:h,loading:!1}),((u=i.response)==null?void 0:u.status)===404?T.error("Quotation not found",{duration:3e3}):T.error(h,{duration:3e3})}},createQuotation:async r=>{var n,c;p({loading:!0,error:null});try{const i=(await ne.createQuotation(r)).data.uuid;
1return T.success("Quotation created successfully",{duration:2e3}),await l().fetchQuotations(),i}catch(u){console.error("Error creating quotation:",u);const i=((c=(n=u.response)==null?void 0:n.data)==null?void 0:c.detail)||"Failed to create quotation";return p({error:i,loading:!1}),T.error(i,{duration:3e3}),null}},updateQuotation:async(r,n)=>{var c,u;p({loading:!0,error:null});try{await ne.updateQuotation(r,n),p(i=>{var h;return{quotations:i.quotations.map(x=>x.uuid===r?{...x,...n,updated_at:new Date().toISOString()}:x),selectedQuotation:((h=i.selectedQuotation)==null?void 0:h.uuid)===r?{...i.selectedQuotation,...n,updated_at:new Date().toISOString()}:i.selectedQuotation,loading:!1}}),T.success("Quotation updated successfully",{duration:2e3})}catch(i){console.error("Error updating quotation:",i);const h=((u=(c=i.response)==null?void 0:c.data)==null?void 0:u.detail)||"Failed to update quotation";p({error:h,loading:!1}),T.error(h,{duration:3e3})}},deleteQuotation:async r=>{var n,c;p({loading:!0,error:null});try{await ne.deleteQuotation(r),p(u=>{var i;return{quotations:u.quotations.filter(h=>h.uuid!==r),selectedQuotation:((i=u.selectedQuotation)==null?void 0:i.uuid)===r?null:u.selectedQuotation,loading:!1}}),T.success("Quotation deleted successfully",{duration:2e3})}catch(u){console.error("Error deleting quotation:",u);const i=((c=(n=u.response)==null?void 0:n.data)==null?void 0:c.detail)||"Failed to delete quotation";p({error:i,loading:!1}),T.error(i,{duration:3e3})}},generateQuotationPdf:async r=>{var n,c;p({loading:!0,error:null});try{const u=await ne.generatePdf(r),{pdf_url:i}=u.data;p(x=>{var _;return{quotations:x.quotations.map(S=>S.uuid===r?{...S,pdf_url:i}:S),selectedQuotation:((_=x.selectedQuotation)==null?void 0:_.uuid)===r?{...x.selectedQuotation,pdf_url:i}:x.selectedQuotation,loading:!1}}),T.success("Quotation PDF generated successfully",{duration:2e3});const h=l().quotations.find(x=>x.uuid===r);h&&i&&l().downloadQuotationPdf(i,h.uuid)}catch(u){console.error("Error generating quotation PDF:",u);const i=((c=(n=u.response)==null?void 0:n.data)==null?void 0:c.detail)||"Failed to generate quotation PDF";p({error:i,loading:!1}),T.error(i,{duration:3e3})}},downloadQuotationPdf:(r,n)=>{try{const c=document.createElement("a");c.href=r,c.download=`quotation-${n}.pdf`,c.target="_blank",document.body.appendChild(c),c.click(),document.body.removeChild(c)}catch(c){console.error("Error downloading PDF:",c),T.error("Failed to download quotation PDF",{duration:3e3})}},setSelectedQuotation:r=>{p({selectedQuotation:r})},setFilters:r=>{p(n=>({filters:{...n.filters,...r}})),l().fetchQuotations()},clearError:()=>{p({error:null})}}),{name:"quotation-store"})),jr=({isOpen:p,onClose:l,task:r})=>{var Le;const{createQuotation:n,loading:c}=Lr(),[u,i]=o.useState(""),[h,x]=o.useState(""),[_,S]=o.useState(!1),C=o.useRef(null),O=async()=>{if(!u){T.error("Please enter quotation amount",{duration:3e3});return}try{await n({assignment_uuid:r.uuid||r.id||"",quotation_amount:parseFloat(u),remarks:h})&&(T.success("Quotation created successfully",{duration:2e3}),l())}catch(D){console.error("Error creating quotation:",D),T.error("Failed to create quotation",{duration:3e3})}},W=async()=>{if(!u&&!h){T.error("Please enter quotation amount or remarks",{duration:3e3});return}S(!0);try{await n({assignment_uuid:r.uuid||r.id||"",quotation_amount:u?parseFloat(u):0,remarks:h})&&(T.success("Draft quotation saved successfully",{duration:2e3}),l())}catch(D){console.error("Error saving draft:",D),T.error("Failed to save draft",{duration:3e3})}finally{S(!1)}},te=typeof(r==null?void 0:r.client)=="string"?r==null?void 0:r.client:((Le=r==null?void 0:r.client)==null?void 0:Le.name)||"Unknown Client";return a.jsx(ir,{isOpen:p,onClose:l,title:"Create Quotation",size:"sm",children:a.jsxs("div",{className:"space-y-4 px-4",children:[a.jsxs("div",{className:"bg-gray-50 p-3 border rounded-lg flex items-start space-x-3",children:[a.jsx("div",{className:"mt-0.5 bg-gray-500 rounded-full p-0.5",children:a.jsx(_r,{className:"w-3 h-3 text-white"})}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("p",{className:"font-medium text-sm text-gray-900",children:[te," â ",r==null?void 0:r.task," â ",r==null?void 0:r.subTask]}),r.assignment_name&&a.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Assignment: ",r.assignment_name]})]})]}),a.jsxs("div",{children:[a.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Quotation Amount ",a.jsx("span",{className:"text-red-500",children:"*"})]}),a.jsx(cr,{type:"number",value:u,onChange:D=>i(D.target.value),onKeyDown:D=>{var le;D.key==="Enter"&&(D.preventDefault(),(le=C.current)==null||le.focus())},placeholder:"Enter amount",min:"0",step:"0.01",disabled:c})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Remarks"}),a.jsx(Bt,{ref:C,value:h,onChange:D=>x(D.target.value),placeholder:"Enter any additional remarks...",rows:4,disabled:c})]}),a.jsxs("div",{className:"flex justify-between items-center pt-4 border-t",children:[a.jsx(Me,{variant:"secondary",onClick:W,disabled:c||_,loading:_,children:"Save as Draft"}),a.jsxs("div",{className:"flex space-x-3",children:[a.jsx(Me,{variant:"secondary",onClick:l,disabled:c,
1children:"Cancel"}),a.jsx(Me,{variant:"primary",onClick:O,loading:c&&!_,disabled:c,children:"Create Quotation"})]})]})]})})},Cr=[m.NONE,m.DAILY,m.ALTERNATIVE,m.WEEKLY,m.FORTNIGHTLY,m.MONTHLY,m.BI_MONTHLY,m.QUARTERLY,m.HALF_YEARLY,m.YEARLY],pt=p=>{const l=String(p||"").toLowerCase().trim(),r=Cr.indexOf(l);return r===-1?Number.MAX_SAFE_INTEGER:r},Fr=[{id:m.NONE,code:m.NONE,label:"None"},{id:m.DAILY,code:m.DAILY,label:"Daily"},{id:m.ALTERNATIVE,code:m.ALTERNATIVE,label:"Alternate Day"},{id:m.WEEKLY,code:m.WEEKLY,label:"Weekly"},{id:m.FORTNIGHTLY,code:m.FORTNIGHTLY,label:"Fortnightly"},{id:m.MONTHLY,code:m.MONTHLY,label:"Monthly"},{id:m.BI_MONTHLY,code:m.BI_MONTHLY,label:"Bi-Monthly"},{id:m.QUARTERLY,code:m.QUARTERLY,label:"Quarterly"},{id:m.HALF_YEARLY,code:m.HALF_YEARLY,label:"Half-Yearly"},{id:m.YEARLY,code:m.YEARLY,label:"Yearly"}],Ie=p=>{const r=String(p??m.NONE).trim().replace(/\s*\([^)]*\)\s*$/,"").toLowerCase();return{none:m.NONE,daily:m.DAILY,weekly:m.WEEKLY,alternative:m.ALTERNATIVE,alternate:m.ALTERNATIVE,"alternate day":m.ALTERNATIVE,fortnightly:m.FORTNIGHTLY,monthly:m.MONTHLY,"bi-monthly":m.BI_MONTHLY,"bi monthly":m.BI_MONTHLY,quarterly:m.QUARTERLY,"half-yearly":m.HALF_YEARLY,"half yearly":m.HALF_YEARLY,yearly:m.YEARLY}[r]||r||m.NONE},bt=p=>{if(!p)return"0m";const l=Math.floor(p/60),r=p%60;return l>0&&r>0?`${l}h ${r}m`:l>0?`${l}h`:`${r}m`},Ar=({columns:p,totalEt:l,totalTt:r,totalCount:n})=>{const c={borderTop:"1px solid black",borderBottom:0,borderLeft:0,borderRight:0,boxSizing:"border-box"};return a.jsx(a.Fragment,{children:p.map(u=>u.key==="tId"?a.jsx("td",{className:"h-[24px] py-0 pr-2 text-right bg-[#F5F5F5] !border-x-0 !border-b-0",style:c,children:a.jsx(Oe,{fill:!0,content:`Total tasks: ${n}`,position:"top",children:a.jsx("div",{className:"flex items-center justify-end cursor-pointer w-full",children:a.jsx("span",{className:"font-semibold",children:n})})})},u.key):u.key==="et"?a.jsx("td",{className:"h-[24px] py-0 pr-2 text-right bg-[#F5F5F5] !border-x-0 !border-b-0",style:c,children:a.jsx(Oe,{fill:!0,content:`${l} mins (${bt(l)})`,position:"top",children:a.jsx("div",{className:"flex w-full items-center justify-end space-x-1 cursor-pointer",children:a.jsx("span",{className:"font-semibold",children:`${l}m`})})})},u.key):u.key==="tt"?a.jsx("td",{className:"h-[24px] py-0 pr-2 bg-[#F5F5F5] !border-x-0 !border-b-0",style:{textAlign:"right",...c},children:a.jsx(Oe,{fill:!0,content:`${r} mins (${bt(r)})`,position:"top",children:a.jsx("div",{className:"inline-flex items-center justify-end space-x-1 cursor-pointer w-full",children:a.jsxs("span",{className:"font-semibold",children:[r,"m"]})})})},u.key):a.jsx("td",{className:"h-[24px] py-0 bg-[#F5F5F5] !border-x-0 !border-b-0",style:c},u.key))})},zr=()=>{const p=Mt(),{tasks:l,loading:r,pagination:n,fetchAssignmentsUnified:c,selectedTasks:u,toggleTaskSelection:i,batchToggleTaskSelection:h}=oe(e=>({tasks:e.tasks,loading:e.loading,pagination:e.pagination,fetchAssignmentsUnified:e.fetchAssignmentsUnified,selectedTasks:e.selectedTasks,toggleTaskSelection:e.toggleTaskSelection,batchToggleTaskSelection:e.batchToggleTaskSelection}),lt),{user:x}=ur(),_=(x==null?void 0:x.role)===mt.ADMIN||(x==null?void 0:x.role)==="Company Admin",S=(x==null?void 0:x.role)!==mt.TEAM_MEMBER&&(x==null?void 0:x.role)!=="Team Member",{clients:C,users:O}=Vt(),{priorities:W,statuses:te,taskOptions:Le,subTaskOptions:D,fetchTaskTemplates:le,fetchSubTaskTemplates:Qe,fetchPriorities:$e,fetchStatuses:Pe}=ee(e=>({priorities:e.priorities,statuses:e.statuses,taskOptions:e.taskOptions,subTaskOptions:e.subTaskOptions,fetchTaskTemplates:e.fetchTaskTemplates,fetchSubTaskTemplates:e.fetchSubTaskTemplates,fetchPriorities:e.fetchPriorities,fetchStatuses:e.fetchStatuses}),lt),{fetchFrequencyTypes:Be,frequencyTypes:Ve}=Ht(),He=ee(e=>e.productFeatureModules),Ue=o.useMemo(()=>dr(He),[He]),[z,pe]=o.useState(""),[re,be]=o.useState(""),[G,We]=o.useState(""),ie=o.useRef(null),X=o.useRef(null),[gt,ae]=o.useState(!1),[he,ge]=o.useState(!1),[B,ze]=o.useState(null),[P,xe]=o.useState(null),je=80,xt=28,[ce,Ce]=o.useState(je),[se,Ge]=o.useState(!0),Xe=o.useRef(null),[yt,ye]=o.useState(!1),Ze=o.useRef(r);o.useEffect(()=>{ye(!1)},[p.pathname]),o.useEffect(()=>{Ze.current&&!r&&ye(!0),Ze.current=r},[r]),o.useEffect(()=>{We(re.trim())},[re]),o.useEffect(()=>{Promise.all([le({limit:100}),Qe({limit:100}),$e(),Pe(),...Ue?[Be()]:[]])},[Ue,le,Qe,$e,Pe,Be]);const{columns:Z,handleColumnChange:Je}=gr("tasks"),{busy:_t,flashBusy:_e}=xr(),Tt=o.useCallback(e=>{_e();const t=e.includes("actions")?e:[...e,"actions"];Je(t)},[Je,_e]),[Q,Ke]=o.useState({}),[F,et]=o.useState({}),Te=o.useMemo(()=>Object.values(Q).some(t=>t&&t.length>0)||Object.values(F).some(t=>t&&t.length>0)||!!(z.trim()||re.trim()),[Q,F,z,re]);o.useEffect(()=>(document.body.setAttribute("data-has-clearable-filters",Te?"true":"false"),()=>{document.body.removeAttribute("data-has-clearable-filters")}),[Te]);const Ne=o.useCallback(()=>{const e=!!(z.trim()||re.trim())||Object.values(Q).some(t=>t&&t.length>0)||Object.values(F).some(t=>t&&t.length>0);return e&&_e(),pe(""),be(""),We(""),Ke({}),et({}),e},[z,re,Q,F,_e]);o.useEffect(()=>(ft({clearFilters:Ne}),()=>ft({clearFilters:null})),[Ne]),o.useEffect(()=>{const e=t=>{if(t.key!=="Escape"||br())return;const s=!!document.querySelector("button[data-filter-clear-btn]:not(.hidden)");!Te&&!s||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),Ne())};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[Te,Ne]);const V=o.useCallback((e,t)=>{const s=new Map,b=(f,g)=>{const j={client:["client_name","clientName","client_label","clientLabel","client_display_name","client"],task:["task_name","taskName","task_label","taskLabel","task"],subTask:["sub_task_name","subTaskName","sub_task_label","subTaskLabel","subTask"],allottedTo:["alloted_to_name","allotted_to_name","allottedToName","alloted_to_label","allottedTo","allotted_to_display_name","alloted_to_display_name","allotted_to","alloted_to"],teamLeader:["team_leader_name","teamLeaderName","team_leader_label","teamLeaderLabel","teamLeader","team_leader_display_name","team_leader"],priority:["priority_name","priorityName","priority_label","priorityLabel","priority"],status:["status_name","statusName","status_label","statusLabel","status"],frequency:["frequency_type","frequency_name","frequency_label","frequencyTypeLabel"]};if(g==="frequency"){const Y=Ie(f.frequency_type||f.frequency_name||f.frequency_label||m.NONE);return{id:Y,label:fe(Y)}}const L=j[g]||[];let A=null;for(const Y of L){const E=f[Y];if(E!=null&&E!==""){if(typeof E=="string"){A=E;break}else if(typeof E=="object"){const K=E.name||E.label||E.display_name||E.full_name;if(K){A=K;break}}}}const v={client:["client_uuid"],task:["task_uuid"],subTask:["sub_task_uuid"],allottedTo:["alloted_to_uuid","allotted_to_uuid"],teamLeader:["team_leader_uuid"],priority:["priority_uuid"],status:["status_uuid"],frequency:["frequency_type_uuid"]};let R=null;const U=v[g]||[];for(const Y of U)if(f[Y]){R=String(f[Y]);break}return{id:R,label:A}},d=(f,g,j)=>{var A,v,R,U,Y,E,K,w,de,me,N;if(!g)return j;const L=ee.getState();if(f==="task"){const y=(v=(A=L.taskOptions)==null?void 0:A.find(M=>String(M.id)===String(g)))==null?void 0:v.label;if(y)return y;const q=(U=(R=L.taskTemplates)==null?void 0:R.find(M=>String(M.uuid)===String(g)))==null?void 0:U.name;if(q)return q}if(f==="subTask"){const y=(E=(Y=L.subTaskOptions)==null?void 0:Y.find(M=>String(M.id)===String(g)))==null?void 0:E.label;if(y)return y;const q=(w=(K=L.subTaskTemplates)==null?void 0:K.find(M=>String(M.uuid)===String(g)))==null?void 0:w.name;if(q)return q}if(f==="status"){const y=(de=L.statuses)==null?void 0:de.find(M=>String(M.uuid||M.id)===String(g)),q=(y==null?void 0:y.name)||(y==null?void 0:y.label);if(q)return String(q)}if(f==="priority"){const y=(me=L.priorities)==null?void 0:me.find(M=>String(M.uuid||M.id)===String(g)),q=(y==null?void 0:y.name)||(y==null?void 0:y.label);if(q)return String(q)}if(f==="client"){const y=(N=hr.getState().clients)==null?void 0:N.find(q=>String(q.uuid||q.id)===String(g));if(y!=null&&y.name)return String(y.name)}return j};return e.forEach(f=>{const{id:g,label:j}=b(f,t),L=d(t,g,j),A=L&&L.trim()!==""?L.trim():"(Blank)",v=t==="frequency"?A.toLowerCase():g?`id:${g}`:A;if(s.has(v)){const R=s.get(v);R.count+=1,g&&A!=="(Blank)"&&(R.label=A)}else s.set(v,{id:g||`${t}_${A}`,label:A,count:1,color:null,bgColor:null,borderColor:null})}),Array.from(s.values()).sort((f,g)=>f.label.localeCompare(g.label))},[]),H=o.useMemo(()=>l.length?{client:V(l,"client"),task:V(l,"task"),subTask:V(l,"subTask"),allottedTo:V(l,"allottedTo"),teamLeader:V(l,"teamLeader"),priority:mr(V(l,"priority"),W),status:V(l,"status"),frequency:V(l,"frequency")}:{client:[],task:[],subTask:[],allottedTo:[],teamLeader:[],priority:[],status:[],frequency:[]},[l,V,W]),Fe=o.useMemo(()=>({client:{items:H.client.map(e=>({...e,label:`${e.label} (${e.count})`})),showSearch:!0,showSearchBar:!0},task:{items:H.task.map(e=>({...e,label:`${e.label} (${e.count})`})),showSearch:!0,showSearchBar:!0},subTask:{items:H.subTask.map(e=>({...e,label:`${e.label} (${e.count})`})),showSearch:!0,showSearchBar:!0},allottedTo:{items:H.allottedTo.map(e=>({...e,label:`${e.label} (${e.count})`})),showSearch:!0,showSearchBar:!0},teamLeader:{items:H.teamLeader.map(e=>({...e,label:`${e.label} (${e.count})`})),showSearch:!0,showSearchBar:!0},priority:{items:H.priority.map(e=>({...e,label:`${e.label} (${e.count})`})),showSearch:!0,showSearchBar:!0},status:{items:H.status.map(e=>({...e,label:`${e.label} (${e.count})`})),showSearch:!0},frequency:{items:(()=>{const t=[...Ve.map(s=>({id:s.uuid,code:s.code,label:fe(s.code||s.name)}))];return Fr.forEach(s=>{t.some(b=>b.code===s.code)||t.push(s)}),t.sort((s,b)=>pt(s.code)-pt(b.code)).map(s=>{const b=H.frequency.find(f=>f.id===s.id||f.id===s.code||f.label.toLowerCase()===s.label.toLowerCase()),d=(b==null?void 0:b.count)||0;return{...s,count:d,label:d>0?`${s.label} (${d})`:s.label}})})(),showSearch:!0,showSearchBar:!0}}),[H,Ve]),Nt=o.useCallback((e,t)=>{var d;const s=((d=Fe[e])==null?void 0:d.items)||[];et(f=>{const g={...f};return!t||t.length===0?delete g[e]:g[e]=t,g});const b=s.filter(f=>t.includes(f.id)).map(f=>f.label.replace(/\s\(\d+\)$/,""));Ke(f=>{const g={...f};return b.length===0?delete g[e]:g[e]=b,g})},[Fe]),tt=o.useMemo(()=>
1{if(!l.length)return l;const e=t=>(t??"").toString().trim().toLowerCase();return l.filter(t=>Object.keys({...Q,...F}).every(s=>{var de,me;const b=Q[s]||[],d=F[s]||[],f=b.map(e);if(b.length===0&&d.length===0)return!0;const g={client:[t.client_name,t.clientName,(de=t.client)==null?void 0:de.name,t.client_label,t.clientLabel,t.client_display_name,t.clientDisplayName,t.client],task:[t.task_name,t.taskName,t.task_label,t.taskLabel,t.task],subTask:[t.sub_task_name,t.subTaskName,t.sub_task_label,t.subTaskLabel,t.subTask],allottedTo:[t.alloted_to_name,t.allotted_to_name,t.allottedToName,t.alloted_to_label,t.allotted_to_label,t.allottedTo,t.allotted_to_display_name,t.alloted_to_display_name,t.allotted_to,t.alloted_to],teamLeader:[t.team_leader_name,t.teamLeaderName,t.team_leader_label,t.teamLeaderLabel,t.teamLeader,t.team_leader_display_name,t.teamLeaderDisplay,t.team_leader],priority:[t.priority_name,t.priorityName,t.priority_label,t.priorityLabel,t.priority],status:[t.status_name,t.statusName,t.status_label,t.statusLabel,t.status],frequency:[t.frequency_type,t.frequency_name,t.frequency_label]},j=N=>N.find(y=>y!=null),L=N=>{if(N==null)return"";if(typeof N=="string")return N;if(typeof N=="object"){const y=N.name||N.label||N.full_name||N.fullName||N.display_name||N.displayName||N.title||N.username||N.email;return typeof y=="string"&&y.trim()!==""?y:""}return""},A=j(g[s]||[]);let v=L(A);s==="frequency"&&(v=fe(Ie(t.frequency_type||v||m.NONE)));const R=v==null||typeof v!="string"||v.trim()==="",U=v&&typeof v=="string"&&v.trim()!==""?e(v):e("(Blank)"),Y=f.includes("(blank)"),E=()=>U&&f.includes(U),K=()=>U&&f.some(N=>U.includes(N));let w=!1;if(Y&&R)w=!0;else if(s==="allottedTo"||s==="teamLeader")w=!!E();else if(s==="client"){if(w=!!E(),!w){const N=t.client_uuid||(typeof t.client=="object"?(me=t.client)==null?void 0:me.uuid:t.client)||"";w=!!(N&&d.includes(N))}}else if(s==="frequency"){const N=Ie(t.frequency_type||v||m.NONE),y=t.frequency_type_uuid?String(t.frequency_type_uuid):"";w=!!K()||d.includes(N)||!!(y&&d.includes(y))}else s==="status"?(w=!!E(),w||(w=!!(t.status_uuid&&d.includes(t.status_uuid)))):s==="priority"?(w=!!E(),w||(w=!!(t.priority_uuid&&d.includes(t.priority_uuid)))):s==="task"?(w=!!E(),w||(w=!!((t.task_uuid||t.task)&&d.includes(t.task_uuid||t.task)))):s==="subTask"?(w=!!E(),w||(w=!!((t.sub_task_uuid||t.subTask)&&d.includes(t.sub_task_uuid||t.subTask)))):w=!!E();return w}))},[l,Q,F]),rt=o.useMemo(()=>({priorities:W||[],statuses:te||[],clients:C||[],users:O||[]}),[W,te,C,O]),Se=o.useMemo(()=>{const e=tt;return!G||G.trim()===""?e:e.filter(t=>Ut(t,G,rt))},[tt,G,rt]),Ae=o.useCallback((e,t)=>{var s,b,d;switch(t){case"client":{const f=e.client_name||(typeof e.client=="object"&&e.client!==null?(s=e.client)==null?void 0:s.name:null)||(typeof e.client=="string"?e.client:"");return typeof f=="string"?f:""}case"task":return e.task_name||e.task||"";case"subTask":return e.sub_task_name||e.subTask||"";case"et":return Number(e.et??e.estimated_time??e.estimatedTime??0);case"allottedTo":return e.alloted_to_name||e.allotted_to_name||e.allottedToName||((b=e.allottedTo)==null?void 0:b.name)||"";case"teamLeader":return e.team_leader_name||e.teamLeaderName||((d=e.teamLeader)==null?void 0:d.name)||"";case"priority":return e.priority_name||e.priority||"";case"dueDate":return e.due_date||e.dueDate||"";case"frequency":return ht(e);case"status":return e.status_name||e.status||"";case"tt":return Number(e.tt??e.timeTaken??0);case"tId":return e.assignment_unique_name||e.tId||"";default:return e[t]}},[]),k=o.useMemo(()=>{if(!B||!P)return Se;const e=[...Se];return e.sort((t,s)=>{const b=Ae(t,B),d=Ae(s,B),f=b==null||b==="",g=d==null||d==="";if(f&&g)return 0;if(f)return 1;if(g)return-1;if(typeof b=="number"&&typeof d=="number")return P==="asc"?b-d:d-b;const j=Date.parse(String(b)),L=Date.parse(String(d));if(B==="dueDate"&&!Number.isNaN(j)&&!Number.isNaN(L))return P==="asc"?j-L:L-j;const v=String(b).toLowerCase(),R=String(d).toLowerCase();return P==="asc"?v.localeCompare(R):R.localeCompare(v)}),e},[Se,B,P,Ae]);o.useEffect(()=>{Ce(je),Ge(!0)},[G,Q,F,B,P,l.length]),o.useEffect(()=>()=>{var e,t;(t=(e=oe.getState()).clearSelection)==null||t.call(e),oe.setState({tasks:[],loading:!0})},[]),o.useEffect(()=>{const e=t=>{var d,f,g;const s=(d=t.detail)==null?void 0:d.done,b=Xe.current;b&&(b.style.display="none"),(g=(f=oe.getState()).clearSelection)==null||g.call(f),oe.setState({tasks:[],loading:!0}),s==null||s(),Ge(!1),Ce(0)};return window.addEventListener("app:prepare-leave-archived-tasks",e),()=>window.removeEventListener("app:prepare-leave-archived-tasks",e)},[]);const ue=k.length,St=o.useMemo(()=>se?k.slice(0,ce):[],[k,ce,se]),vt=se&&ce<ue,ke=o.useRef(!1),wt=o.useCallback(()=>{ke.current||!se||ce>=ue||(ke.current=!0,o.startTransition(()=>{Ce(e=>Math.min(e+je,ue)),ke.current=!1}))},[ce,ue,se]),Et=o.useCallback(e=>{if(B!==e){ze(e),xe("asc");return}if(P==="asc"){xe("desc");return}if(P==="desc"){ze(null),xe(null);return}xe("asc")},[B,P]),{totalEt:Lt,totalTt:jt}=o.useMemo(()=>{let e=0,t=0;
1return k.forEach(s=>{const b=Number(s.et??s.estimatedTime??s.estimated_time??0),d=Number(s.tt??s.timeTaken??s.time_taken_total??0);Number.isFinite(b)&&(e+=b),Number.isFinite(d)&&(t+=d)}),{totalEt:e,totalTt:t}},[k]),Ct=ue,at=it(G);o.useEffect(()=>{var e,t;(t=(e=oe.getState()).setLoading)==null||t.call(e,!0),c({is_archieved:!0,include_summary:!1,top:"allTasks",search:at},{force:!0,cache:!1}).then(()=>{ye(!0)}).catch(()=>{ye(!0)})},[p.pathname,at,c]);const{modal:J,openModal:st,closeModal:ve}=Wt(),we=J.type==="comment"||J.type==="time"||J.type==="quotation"||J.type==="delete"?J.type:null,I=J.task??null,nt=o.useMemo(()=>{const e={};return W.forEach(t=>{t.color&&(e[t.name.toLowerCase()]=t.color)}),e},[W]),ot=o.useMemo(()=>{const e={};return te.forEach(t=>{t.color&&(e[t.name.toLowerCase()]=t.color)}),e},[te]),Ft=o.useMemo(()=>{const e=Z.filter(s=>s.key!=="actions"&&s.visible&&s.key&&s.key.trim()!=="").map(s=>({...s,editable:!1,width:s.key==="dueDate"?"140px":s.width,minWidth:s.key==="dueDate"?"140px":s.minWidth,className:s.key==="dueDate"||s.key==="createdAt"||s.key==="status"||s.key==="priority"?"text-center":s.className,render:(b,d)=>a.jsx(wr,{task:b,columnKey:s.key,rowIndex:d,priorityColorByName:nt,statusColorByName:ot})})),t=Z.find(s=>s.key==="actions");return e.push({key:"actions",label:(t==null?void 0:t.label)||"ACTIONS",sortable:!1,visible:!0,editable:!1,width:(t==null?void 0:t.width)||"150px",minWidth:(t==null?void 0:t.minWidth)||"150px",className:t==null?void 0:t.className,render:s=>a.jsx(Er,{task:s,openModal:st})}),e},[Z,st,nt,ot]),qe=o.useMemo(()=>Object.entries(u).filter(([,e])=>e).map(([e])=>e),[u]),De=o.useMemo(()=>{const e=new Set(k.map(t=>String(t.uuid||t.id||"")).filter(Boolean));return qe.filter(t=>e.has(String(t)))},[qe,k]),At=o.useMemo(()=>De.length>0,[De]),kt=o.useCallback(e=>{const t=k.map(b=>b.uuid||b.id).filter(Boolean).map(String),s={};t.forEach(b=>{s[b]=e}),h(s)},[k,h]),qt=o.useCallback(async(e,t)=>{const s=k;if(!s||s.length===0){T.error("No tasks to export",{duration:3e3});return}try{ge(!0);const b=zt(s,Z,e?[e]:void 0,t?`${t} Wise Report`:"Assignments Report",Gt(Q)),d=await Pt.exportAssignmentsViewPdf(b),f=new Blob([d.data],{type:"application/pdf"}),g=URL.createObjectURL(f),j=document.createElement("a");j.href=g;const L=(t?`${t}-Wise-Report`:"Assignments-Report").replace(/[^\w\-]+/g,"-");j.setAttribute("download",`${L}-${new Date().toISOString().split("T")[0]}.pdf`),document.body.appendChild(j),j.click(),document.body.removeChild(j),URL.revokeObjectURL(g),T.success("PDF exported successfully!",{duration:2e3})}catch{T.error("Failed to export PDF",{duration:3e3})}finally{ge(!1)}},[k,Z,Q,G]),Dt=o.useCallback(e=>{const t=k;if(!t||t.length===0){T.error("No tasks to export",{duration:3e3});return}try{ge(!0);const s=Xt(t,Z,e);Zt(`tasks-${new Date().toISOString().split("T")[0]}.csv`,s),T.success("Tasks exported successfully!",{duration:2e3})}catch{T.error("Failed to export tasks",{duration:3e3})}finally{ge(!1)}},[k,Z]),Rt=o.useMemo(()=>({client:F.client||[],allottedTo:F.allottedTo||[],teamLeader:F.teamLeader||[],priority:F.priority||[],status:F.status||[],frequency:F.frequency||[],task:F.task||[],subTask:F.subTask||[]}),[F]);return yt?a.jsxs("div",{className:"h-full min-h-0 bg-[#FFFFFF] flex flex-col relative overflow-hidden",children:[a.jsx("div",{className:"bg-white border-b border-gray-200 flex-shrink-0",children:a.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-gray-100",children:[a.jsx("h1",{className:"text-base font-semibold text-gray-800"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(fr,{size:18,className:"text-gray-500 shrink-0"}),a.jsxs("div",{className:"relative",children:[a.jsx("input",{type:"text",placeholder:"Search",value:z,"data-search-input":"true",onChange:e=>pe(e.target.value),onKeyDown:e=>{e.key==="Enter"&&(e.preventDefault(),be(z),e.currentTarget.blur()),e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),pe(""),be(""),e.currentTarget.blur())},className:`px-3 py-1.5 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent w-48 ${z?"pr-8":""}`}),z?a.jsx("button",{type:"button","data-filter-clear-btn":!0,onClick:()=>{pe(""),be("")},className:"filter-clear absolute right-1.5 top-1/2 -translate-y-1/2 inline-flex h-[18px] w-[18px] items-center justify-center rounded-[3px] border-0 p-0 bg-[#fef2f2] text-[14px] leading-none text-[#dc2626] cursor-pointer hover:bg-red-100 focus:outline-none focus-visible:shadow-[inset_0_0_0_2px_#ef4444]","aria-label":"Clear search",title:"Clear search",children:"Ã"}):null]})]}),At&&_&&a.jsx("button",{type:"button",onClick:async()=>{var t,s,b;const e=qe.filter(d=>Se.some(f=>(f.uuid||f.id)===d));try{const d=await pr.bulkUpdateAssignments({uuids:e,is_archieved:!1});d.error_count===0?T.success(`Restored ${d.success_count} archived task${d.success_count>1?"s":""}`,{duration:2e3}):(T.error(`Restored ${d.success_count} task${d.success_count>1?"s":""}, ${d.error_count} failed`,{duration:3e3}),(t=d.errors)!=null&&t.length&&console.error("Bulk restore errors:",d.errors)),await c({is_archieved:!0,include_summary:!1,top:"allTasks",search:it(G)},{cache:!1,force:!0}),e.forEach(f=>i(f,!1))}catch(d){console.error("Bulk restore error:",d),T.error(((b=(s=d==null?void 0:d.response)==null?void 0:s.data)==null?void 0:b.message)||"Failed to restore archived tasks",{duration:3e3})}},className:"inline-flex items-center px-3 py-1.5 text-xs sm:text-sm bg-emerald-50 border border-emerald-500 rounded-md text-emerald-800 hover:bg-emerald-100 shadow-sm font-medium",children:"Restore Archieved Tasks"}),a.jsx(Jt,{columns:Z,onColumnVisibilityChange:Tt,pageName:Kt.ARCHIVED_ASSIGNMENT}),a.jsxs("div",{ref:ie,className:"relative hidden sm:flex",onMouseEnter:()=>{X.current&&(clearTimeout(X.current),X.current=null),ae(!0)},onMouseLeave:()=>{X.current=setTimeout(()=>{ae(!1)},300)},children:[a.jsxs("button",{className:"flex items-center gap-1 px-3 py-1.5 text-sm bg-white border border-gray-300 rounded-md hover:bg-gray-50 text-gray-700 font-medium shadow-sm cursor-pointer",type:"button",title:"Export data",disabled:he,children:[a.jsx(Tr,{size:14}),he?"Exporting...":"Export"]}),gt&&a.jsx("div",{style:{position:"fixed",top:ie.current?ie.current.getBoundingClientRect().bottom+2:0,right:ie.current?window.innerWidth-ie.current.getBoundingClientRect().right:0,zIndex:99999},onMouseEnter:()=>{X.current&&(clearTimeout(X.current),X.current=null),ae(!0)},onMouseLeave:()=>{X.current=setTimeout(()=>{ae(!1)},300)},className:"flex flex-col gap-0.5 bg-white border border-gray-200 rounded-md shadow-xl p-1 min-w-[130px]",children:a.jsxs("div",{className:"grid grid-cols-2 gap-0 p-2 min-w-[360px]",children:[a.jsxs("div",{className:"pr-3 border-r border-gray-200",children:[a.jsxs("div",{className:"flex items-center gap-2 px-2 py-1 mb-1 text-sm font-semibold text-blue-700 border-b border-gray-200",children:[a.jsx(er,{size:14,className:"text-blue-600 shrink-0"}),a.jsx("span",{children:"CSV"})]}),ct.map(e=>a.jsx("button",{type:"button",onClick:()=>{ae(!1),Dt(e.label)},className:"block w-full text-left px-2 py-1.5 text-sm text-gray-700 hover:bg-blue-50 hover:text-blue-700 rounded-md transition-colors",children:he?"Exporting...":e.label},`csv-${e.key}`))]}),a.jsxs("div",{className:"pl-3",children:[a.jsx("div",{className:"flex items-center gap-2 px-2 py-1 mb-1 text-sm font-semibold text-blue-700 border-b border-gray-200",children:a.jsx("span",{children:"PDF"})}),ct.map(e=>a.jsx("button",{type:"button",onClick:()=>{ae(!1),qt(e.key,e.label)},className:"block w-full text-left px-2 py-1.5 text-sm text-gray-700 hover:bg-blue-50 hover:text-blue-700 rounded-md transition-colors",children:he?"Exporting...":e.label},`pdf-${e.key}`))]})]})})]})]})]})}),a.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:a.jsx("div",{className:"h-full px-3 sm:px-3 flex-1 min-h-0 overflow-hidden flex flex-col",children:a.jsx("div",{ref:Xe,className:"flex-1 min-h-0 -mx-3 sm:-mx-3 overflow-hidden",children:se?a.jsx(tr,{data:St,columns:Ft,loading:r,busyOverlay:_t,selectable:S,selectedItems:_?De:[],selectionTotalCount:_?k.length:void 0,onToggleSelection:_?e=>i(e):void 0,onToggleAllSelection:_?kt:void 0,getItemId:e=>String(e.uuid||e.id||""),showFilters:!0,dropdownConfig:Fe,selectedFilters:Rt,activeColumnFilters:Q,onFilterChange:Nt,sortable:!0,sortBy:B??void 0,sortDirection:P??void 0,onSort:Et,tableClassName:"task-table",emptyMessage:"No archived tasks foun
1d",enableExcelNavigation:!0,onScrollNearEnd:vt?wt:void 0,scrollNearEndRows:xt,footerRow:e=>a.jsx(Ar,{columns:e.filter(t=>t.key!=="serial"),totalEt:Lt,totalTt:jt,totalCount:Ct})}):null})})}),we==="comment"&&I&&a.jsx(rr,{isOpen:!0,onClose:ve,taskId:I.uuid||I.id||""}),we==="time"&&I&&a.jsx(ar,{isOpen:!0,onClose:ve,taskId:I.uuid||I.id||"",createdByName:I.created_by_name,returnFocusElement:J.triggerElement||null,fallbackTask:I}),we==="quotation"&&I&&a.jsx(jr,{isOpen:!0,onClose:ve,task:I}),we==="delete"&&I&&a.jsx(sr,{isOpen:!0,onClose:ve,task:I})]}):a.jsxs("div",{className:"h-full bg-[#FFFFFF] flex flex-col relative",children:[a.jsx("div",{className:"bg-white border-b border-gray-200 flex-shrink-0",children:a.jsx("div",{className:"flex items-center justify-between px-4 py-2 border-b border-gray-100",children:a.jsx("h1",{className:"text-base font-semibold text-gray-800",children:"Archived Tasks"})})}),a.jsx("div",{className:"flex-1 min-h-0 overflow-auto p-3 bg-gray-50",children:a.jsx(yr,{rows:15,columns:13})})]})};export{zr as ArchivedTasksPage};
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.