PageSourceSearch

https://app.odorbn.gov.ng/chunks/index.a6a05444.js

js odorbn.gov.ng collected 2026-10-08 07:26:40 UTC 20,044 bytes, 1 lines download raw bytes

1import{r as l,ab as ge,x as me,j as s,q as T,O as re,ag as $,w as he,aj as pe,B as m,y as je,L as be,af as ye,Q as ue,al as we}from"./remita.0ace2f64.js";import{k as ee,a as De,O as Ne,B as Se,S as ne,H as Fe,i as Te,D as Ee,M as ve,j as ke,T as Oe,b as Be,c as xe,e as A,f as $e,g as L,P as Pe,h as _e,J as Ie}from"../main.js";import{T as Re}from"./TransactionMenu.36ce097b.js";import{S as le,m as Me}from"./menu-kebab-horizontal-bold.f43301a8.js";import{S as z}from"./SingleStatsCard.ed0d10a8.js";import{D as fe,g as Ae}from"./date-presets.55be456f.js";import{f as Le}from"./filter.adb0ae55.js";import"./check-circle-outline.8651f09a.js";import"./ComponentDownloader.b0aa3970.js";import"./subYears.a97a3379.js";const ze=[{value:"",label:"All Types"},{value:"credit",label:"Credit"},{value:"debit",label:"Debit"}];function He({onCardClick:o}){var g,R,W,Y,M,K;const[u,X]=l.useState(null),[se,U]=l.useState(!0),[D,te]=l.useState(""),[P,q]=l.useState(!0),{getRequest:p}=ge(),{showErrorMessage:k}=me(),[f,V]=l.useState("all_time"),[j,G]=l.useState({startDate:null,endDate:null}),[S,C]=l.useState(null),[O,_]=l.useState(null),[I,E]=l.useState(!1),[i,B]=l.useState(!1),N=l.useRef(null);l.useEffect(()=>{const a=h=>{N.current&&!N.current.contains(h.target)&&E(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]);function J(a){if(a==="custom"){B(!0),E(!1);return}V(a),B(!1);const h=Ae(a);G(h),E(!1)}function y(){if(S&&O){const a=new Date(S),h=new Date(O);h.setHours(23,59,59,999),G({startDate:a,endDate:h}),V("custom"),B(!1)}}function F(){B(!1),C(null),_(null)}async function ae(){var a,h;U(!0);try{let b="";j.startDate&&j.endDate?b=`?start_date=${j.startDate.toISOString()}&end_date=${j.endDate.toISOString()}`:j.startDate?b=`?start_date=${j.startDate.toISOString()}`:j.endDate&&(b=`?end_date=${j.endDate.toISOString()}`),D&&(b+=b?`&type=${D}`:`?type=${D}`);const{data:{status:Z,data:Q,message:e}}=await p(`/admin/analytics/stats/finances${b}`,{headers:{"X-No-Redirect-On-403":"true"}});if(Z==="success")X(Q);else throw new Error(e)}catch(b){k(((h=(a=b==null?void 0:b.response)==null?void 0:a.data)==null?void 0:h.message)||(b==null?void 0:b.message)||"Failed to fetch transaction analytics")}U(!1)}return l.useEffect(()=>{ae()},[j,D]),s.jsxs("div",{className:"w-full mb-[30px]",children:[s.jsxs("div",{className:"flex justify-between items-center mb-4 flex-wrap gap-4",children:[s.jsxs("button",{onClick:()=>q(!P),className:"flex items-center gap-2 text-lg font-bold text-black hover:opacity-80 transition-opacity",children:["Transaction Statistics",s.jsx(T,{icon:P?"mdi:chevron-up":"mdi:chevron-down",className:"text-xl text-gray-500"})]}),P&&s.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[s.jsxs("div",{className:"relative",ref:N,children:[s.jsxs("button",{onClick:()=>E(!I),className:"flex items-center gap-2 px-4 py-2 bg-white rounded-lg border border-gray-200 hover:border-primary/50 transition-colors shadow-sm h-[40px]",children:[s.jsx(T,{icon:"mdi:calendar-range",className:"text-primary text-lg"}),s.jsx("span",{className:"text-sm font-medium text-gray-700",children:((g=fe.find(a=>a.key===f))==null?void 0:g.label)||"All Time"}),s.jsx(T,{icon:"mdi:chevron-down",className:`text-gray-500 transition-transform ${I?"rotate-180":""}`})]}),I&&s.jsx("div",{className:"absolute right-0 mt-1 w-48 bg-white rounded-lg shadow-lg border border-gray-100 py-1 z-50 animate-in fade-in slide-in-from-top-1 duration-150",children:fe.map(a=>s.jsxs("button",{onClick:()=>J(a.key),className:`w-full px-4 py-2 text-left text-sm hover:bg-gray-50 flex items-center justify-between transition-colors ${f===a.key?"text-primary font-medium bg-primary/5":"text-gray-700"}`,children:[a.label,f===a.key&&s.jsx(T,{icon:"mdi:check",className:"text-primary"})]},a.key))})]}),i&&s.jsxs("div",{className:"flex items-center gap-2 animate-in fade-in slide-in-from-left-2 duration-200",children:[s.jsx("div",{className:"w-40",children:s.jsx(ee,{placeholder:"From",popoverDirection:"down",value:{startDate:S,endDate:S},onChange:a=>{C((a==null?void 0:a.startDate)||null)},useRange:!1,asSingle:!0})}),s.jsx("span",{className:"text-gray-400",children:"to"}),s.jsx("div",{className:"w-40",children:s.jsx(ee,{placeholder:"To",popoverDirection:"down",value:{startDate:O,endDate:O},onChange:a=>{_((a==null?void 0:a.startDate)||null)},useRange:!1,asSingle:!0,minDate:S||void 0})}),s.jsx("button",{onClick:y,disabled:!S||!O,className:"px-3 py-2 bg-primary text-white text-sm rounded-lg hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed h-[40px]",children:"Apply"}),s.jsx("button",{onClick:F,className:"p-2 text-gray-400 hover:text-gray-600 transition-colors",children:s.jsx(T,{icon:"mdi:close"})})]}),j.startDate&&j.endDate&&!i&&s.jsxs("span",{className:"text-xs text-gray-500 bg-gray-100 px-3 py-1.5 rounded-full",children:[re(j.startDate,"MMM d, yyyy")," -"," ",re(j.endDate,"MMM d, yyyy")]}),s.jsx("div",{className:"w-[180px]",children:s.jsx(De,{placeholder:"Select Type",value:D,onChange:(a,h)=>te(h),children:ze.map(a=>s.jsx(Ne,{value:a.value,children:a.label},a.value))})})]})]}),P&&s.jsx("div",{className:"grid gap-[30px] sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 w-full",children:se?Array.from({length:6}).map((a,h)=>s.jsxs(le,{className:"p-[25px] rounded-[12px] bg-white",children:[s.jsx(T,{icon:"mdi:account-multiple",className:"text-3xl text-gray-300 relative z-[1] bg-gray-300 w-fit roun
1ded"}),s.jsx("div",{className:"h-[10px]"}),s.jsx(le,{className:"text-gray-300 text-xs font-medium relative z-[1] bg-gray-300 w-fit",children:"Stat Title"}),s.jsx("div",{className:"h-[15px]"}),s.jsx(le,{className:"text-gray-300 text-[25px] leading-[20px] font-semibold relative z-[1] bg-gray-300 w-fit",children:"0"})]},h)):s.jsxs(s.Fragment,{children:[s.jsx(z,{icon:"mdi:cash-multiple",color:"radial-gradient(197.17% 76.15% at 98.96% 40.08%, #0C1E29 0%, #3B3552 100%), #49B1FF",accent:"#BBC3CB",title:"Total Trans.",value:$((u==null?void 0:u.totalTransactions)||0,{minimumFractionDigits:0,maximumFractionDigits:0}),onClick:()=>o==null?void 0:o("total"),buttonSlot:s.jsx(s.Fragment,{})}),s.jsx(z,{icon:"mdi:check-circle",color:"radial-gradient(197.17% 76.15% at 98.96% 40.08%, #007D7F 0%, #00913C 100%), #49B1FF",accent:"#3AC837",title:"Success",value:$(((R=u==null?void 0:u.byStatus)==null?void 0:R.success)||0,{minimumFractionDigits:0,maximumFractionDigits:0}),onClick:()=>o==null?void 0:o("success"),buttonSlot:s.jsx(s.Fragment,{})}),s.jsx(z,{icon:"mdi:clock-outline",color:"radial-gradient(197.17% 76.15% at 98.96% 40.08%, #FF9800 0%, #F57C00 100%), #49B1FF",accent:"#FFE0B2",title:"Pending",value:$(((W=u==null?void 0:u.byStatus)==null?void 0:W.pending)||0,{minimumFractionDigits:0,maximumFractionDigits:0}),onClick:()=>o==null?void 0:o("pending"),buttonSlot:s.jsx(s.Fragment,{})}),s.jsx(z,{icon:"mdi:cogs",color:"radial-gradient(197.17% 76.15% at 98.96% 40.08%, #2196F3 0%, #1976D2 100%), #49B1FF",accent:"#BBDEFB",title:"Processing",value:$(((Y=u==null?void 0:u.byStatus)==null?void 0:Y.processing)||0,{minimumFractionDigits:0,maximumFractionDigits:0}),onClick:()=>o==null?void 0:o("processing"),buttonSlot:s.jsx(s.Fragment,{})}),s.jsx(z,{icon:"mdi:close-circle",color:"radial-gradient(197.17% 76.15% at 98.96% 40.08%, #F44336 0%, #D32F2F 100%), #49B1FF",accent:"#FFCDD2",title:"Failed",value:$(((M=u==null?void 0:u.byStatus)==null?void 0:M.failed)||0,{minimumFractionDigits:0,maximumFractionDigits:0}),onClick:()=>o==null?void 0:o("failed"),buttonSlot:s.jsx(s.Fragment,{})}),s.jsx(z,{icon:"mdi:cash-refund",color:"radial-gradient(197.17% 76.15% at 98.96% 40.08%, #9C27B0 0%, #7B1FA2 100%), #49B1FF",accent:"#E1BEE7",title:"Reversed",value:$(((K=u==null?void 0:u.byStatus)==null?void 0:K.reversed)||0,{minimumFractionDigits:0,maximumFractionDigits:0}),onClick:()=>o==null?void 0:o("reversed"),buttonSlot:s.jsx(s.Fragment,{})})]})})]})}const Ue={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v7.5M3 10h18M10 3v18m6-2h6m-3-3l3 3l-3 3"/>'},qe=Ue,H={fields:["id","created_at","updated_at","narration","amount","type","status","rrr","sn"],pagination:{page:1,page_size:10}};function Ve({isChild:o=!1}){var Z,Q;const u=[{label:"Home",url:"/overview",active:!1},{label:"Transactions",url:location.pathname,active:!0}],{getRequest:X,invalidate:se}=he(),{showErrorMessage:U}=me(),[D,te]=l.useState((H==null?void 0:H.search)||""),[P,q]=l.useState(!0),[p,k]=l.useState(H),[f,V]=l.useState(null),[j,G]=l.useState(""),{id:S}=pe()||{};async function C(){var e,t;q(!0);try{const{data:{message:n,status:c,data:d},...x}=await X(`/transactions?${ue.stringify(S?{...p,filter:{...p==null?void 0:p.filter,profile_id:S}}:p,{encodeValuesOnly:!0})}`,{cache:{hydrate:r=>{var w,v;(r==null?void 0:r.state)=="loading"&&(r!=null&&r.data)&&(V((v=(w=r==null?void 0:r.data)==null?void 0:w.data)==null?void 0:v.data),q(!1))}}});if(c=="success")V(d),G(x==null?void 0:x.id);else throw new Error(n)}catch(n){console.log(n),U(((t=(e=n==null?void 0:n.response)==null?void 0:e.data)==null?void 0:t.message)||(n==null?void 0:n.message)||n||"Unknown error occured.")}q(!1)}async function O(){await se(j),C()}l.useEffect(()=>{setTimeout(C,0)}
1,[p]);const _=l.useRef(0);l.useEffect(()=>{_.current&&clearTimeout(_.current),_.current=setTimeout(()=>k(e=>({...e,search:D||"",pagination:D?H.pagination:e==null?void 0:e.pagination,sort:D?[[{column:"narration",method:"search-priority",searchTerm:D},"ASC"]]:H.sort})),1e3)},[D]);const[I,E]=l.useState(!1),[i,B]=l.useState({from:null,to:null}),[N,J]=l.useState([]),[y,F]=l.useState([]),[ae,g]=l.useState(!1);function R(e,t){B(n=>({...n,[t]:e==null?void 0:e.startDate})),g(!1)}function W(){var t,n,c;let e={};(i.from||i!=null&&i.to)&&(e={...e,and:[...((t=(e==null?void 0:e.and)||[])==null?void 0:t.filter(d=>{var x;return!((x=Object.keys(d))!=null&&x.includes("created_at"))}))||[],{created_at:{gte:new Date((i==null?void 0:i.from)||new Date)}},{created_at:{lte:_e((i==null?void 0:i.to)||new Date,1)}}]},g(!0)),(y==null?void 0:y.length)>0&&(e={...e,or:[...((n=(e==null?void 0:e.or)||[])==null?void 0:n.filter(d=>{var x;return!((x=Object.keys(d))!=null&&x.includes("status"))}))||[],...(y==null?void 0:y.map(d=>({status:d})))||[]]},g(!0)),(N==null?void 0:N.length)>0&&(e={...e,or:[...((c=(e==null?void 0:e.or)||[])==null?void 0:c.filter(d=>{var x;return!((x=Object.keys(d))!=null&&x.includes("type"))}))||[],...(N==null?void 0:N.map(d=>({type:d})))||[]]},g(!0)),k(d=>({...d,filter:e})),E(!1)}function Y(){k(({filter:e,...t})=>({...t})),B({from:null,to:null}),F([]),J([]),g(!1),E(!1)}const[M,K]=l.useState(!1);async function a(){var e,t,n;K(!0);try{const{data:{message:c,status:d,data:x}}=await X(`/transactions/export-csv?${ue.stringify(S?{...p,filter:{...p==null?void 0:p.filter,profile_id:S}}:p,{encodeValuesOnly:!0})}`);if(d=="success"){const r=document.createElement("a"),w=await we(x),v=URL.createObjectURL(w);r.href=v,r.download=`ODORBN Transactions - ${(e=new Date)==null?void 0:e.toISOString()}.csv`,r.click(),setTimeout(()=>URL.revokeObjectURL(v),300)}else throw new Error(c)}catch(c){console.log(c),U(((n=(t=c==null?void 0:c.response)==null?void 0:t.data)==null?void 0:n.message)||(c==null?void 0:c.message)||c||"Unknown error occured")}K(!1)}const h=l.useRef(null);function b(e){var c,d,x;let t=[];e!=="total"&&(t=[e]),F(t);let n={...p.filter};(t==null?void 0:t.length)>0?(n={...n,or:[...((c=(n==null?void 0:n.or)||[])==null?void 0:c.filter(r=>{var w;return!((w=Object.keys(r))!=null&&w.includes("status"))}))||[],...(t==null?void 0:t.map(r=>({status:r})))||[]]},g(!0)):n={...n,or:[...((d=(n==null?void 0:n.or)||[])==null?void 0:d.filter(r=>{var w;return!((w=Object.keys(r))!=null&&w.includes("status"))}))||[]]},k(r=>({...r,filter:n})),(x=h.current)==null||x.scrollIntoView({behavior:"smooth"})}return s.jsxs(s.Fragment,{children:[!o&&s.jsx(Se,{items:u}),!o&&s.jsx(ne,{size:{sm:"30px",md:"49px"}}),!o&&s.jsx(He,{onCardClick:b}),s.jsxs("div",{className:"heading fade-in-0 animate-in flex flex-wrap items-center justify-between gap-4 transition-all duration-500 sm:flex-nowrap",children:[s.jsxs("div",{className:"flex items-center gap-[10px]",children:[s.jsx(Fe,{children:"Transactions"}),s.jsx("div",{className:"pill border-light flex items-center justify-center rounded-l-full rounded-r-full border bg-white px-[8px] py-[4px] text-xs font-medium",children:(f==null?void 0:f.total)||0})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-[20px] md:flex-nowrap",children:[s.jsxs(m,{variant:"light",color:"primary",loading:M,onClick:a,disabled:M,children:[!M&&s.jsx(T,{icon:qe,className:"text-lg text-inherit"}),"Export"]}),s.jsx(Te,{value:D,onChange:e=>{te(e)}}),s.jsxs(Ee,{open:I,children:[s.jsx(ve,{children:s.jsxs(m,{variant:"text",color:"text",className:"px-2",onClick:()=>E(!I),children:[s.jsx(T,{icon:Le,className:"text-lg text-inherit"}),"Filter"]})}),s.jsxs(ke,{slotProps:{root:{className:"w-full max-w-[350px]"},listbox:{className:"p-[30px] w-full !text-[13px] max-h-[400px] overflow-y-auto right-0"}},children:[s.jsxs("div",{onClick:()=>!1,className:"mb-[30px]",children:[s.jsx("p",{className:"font-medium",children:"Status:"}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx(m,{variant:"filled",color:"primary",className:`font-normal ${y.includes("pending")?""
1:"text-text border-gray-50 bg-gray-50"}`,onClick:()=>{F(e=>e!=null&&e.includes("pending")?e==null?void 0:e.filter(t=>!t.includes("pending")):[...e,"pending"]),g(!1)},"full-width":!0,children:"Pending"}),s.jsx(m,{variant:"filled",color:"primary",className:`font-normal ${y.includes("success")?"":"text-text border-gray-50 bg-gray-50"}`,onClick:()=>{F(e=>e!=null&&e.includes("success")?e==null?void 0:e.filter(t=>!t.includes("success")):[...e,"success"]),g(!1)},"full-width":!0,children:"Success"}),s.jsx(m,{variant:"filled",color:"primary",className:`font-normal ${y.includes("processing")?"":"text-text border-gray-50 bg-gray-50"}`,onClick:()=>{F(e=>e!=null&&e.includes("processing")?e==null?void 0:e.filter(t=>!t.includes("processing")):[...e,"processing"]),g(!1)},"full-width":!0,children:"Processing"}),s.jsx(m,{variant:"filled",color:"primary",className:`font-normal ${y.includes("failed")?"":"text-text border-gray-50 bg-gray-50"}`,onClick:()=>{F(e=>e!=null&&e.includes("failed")?e==null?void 0:e.filter(t=>!t.includes("failed")):[...e,"failed"]),g(!1)},"full-width":!0,children:"Failed"}),s.jsx(m,{variant:"filled",color:"primary",className:`font-normal ${y.includes("reversed")?"":"text-text border-gray-50 bg-gray-50"}`,onClick:()=>{F(e=>e!=null&&e.includes("reversed")?e==null?void 0:e.filter(t=>!t.includes("reversed")):[...e,"reversed"]),g(!1)},"full-width":!0,children:"Reversed"})]})]}),s.jsxs("div",{onClick:()=>!1,className:"mb-[30px]",children:[s.jsx("p",{className:"font-medium",children:"Type:"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(m,{variant:"filled",color:"primary",className:`font-normal ${N.includes("credit")?"":"text-text border-gray-50 bg-gray-50"}`,onClick:()=>{J(e=>e!=null&&e.includes("credit")?e==null?void 0:e.filter(t=>!t.includes("credit")):[...e,"credit"]),g(!1)},"full-width":!0,children:"Credit"}),s.jsx(m,{variant:"filled",color:"primary",className:`font-normal ${N.includes("debit")?"":"text-text border-gray-50 bg-gray-50"}`,onClick:()=>{J(e=>e!=null&&e.includes("debit")?e==null?void 0:e.filter(t=>!t.includes("debit")):[...e,"debit"]),g(!1)},"full-width":!0,children:"Debit"})]})]}),s.jsxs("div",{className:"mb-[30px]",children:[s.jsx("p",{className:"font-medium",children:"Date Range:"}),s.jsxs("div",{className:"grid gap-2",children:[s.jsx(ee,{placeholder:"From",popoverDirection:"down",value:{startDate:i.from,endDate:i.from},onChange:async e=>{R(e,"from"),await je(100),R(e,"to")},useRange:!1,asSingle:!0}),s.jsx(ee,{placeholder:"To",popoverDirection:"down",value:{startDate:i.to,endDate:i.to},onChange:e=>R(e,"to"),useRange:!1,asSingle:!0,minDate:i!=null&&i.from?new Date((i==null?void 0:i.from)||new Date):void 0})]})]}),s.jsx("div",{onClick:()=>!1,children:ae?s.jsx(m,{variant:"filled",color:"accent",onClick:Y,"full-width":!0,children:"Clear Filter"}):s.jsx(m,{variant:"filled",color:"primary",onClick:W,"full-width":!0,children:"Apply Filter"})})]})]})]})]}),s.jsx(ne,{size:{sm:"25px",md:"30px"}}),s.jsxs("div",{ref:h,className:"slide-in-from-bottom-[100%] animate-in duration-500",children:[s.jsxs(Oe,{loading:P,empty:!f||!(f!=null&&f.items)||((Z=f==null?void 0:f.items)==null?void 0:Z.length)<1,emptyText:"There are no transactions to show at the moment.",children:[s.jsx(Be,{children:s.jsxs(xe,{children:[s.jsx(A,{children:"Date"}),s.jsx(A,{children:"Member"}),s.jsx(A,{children:"Description"}),s.jsx(A,{children:"Amount"}),s.jsx(A,{children:"Status"}),s.jsx(A,{className:"!bg-white",children:"Action"})]})}),s.jsx($e,{children:(Q=f==null?void 0:f.items)==null?void 0:Q.map(e=>{var t,n,c,d,x,r,w,v,ie,oe,ce,de;return s.jsxs(xe,{hoverEffect:!0,children:[s.jsx(L,{className:"whitespace-nowrap",children:e!=null&&e.created_at?re(new Date(e==null?void 0:e.created_at),"dd MMM, yyy"):s.jsx(s.Fragment,{})}),s.jsx(L,{children:s.jsxs(be,{to:`/admin/members/${(t=e==null?void 0:e.profile)==null?void 0:t.id}`,className:"flex gap-2 items-center w-fit lg:max-w-[250px] hover:opacity-80",children:[s.jsx("div",{className:"icon-ctn bg-primary/20 grid aspect-square w-[25px] min-w-[25px] place-items-center overflow-hidden rounded-full",children:(n=e==null?void 0:e.profile)!=null&&n.image?s.jsx("img",{src:(c=e==null?void 0:e.profile)==null?void 0:c.image,className:"w-full object-cover",alt:"Profile icon"}):s.jsx("span",{className:"text-primary text-xs font-medium",children:(w=(r=(x=(d=e==null?void 0:e.profile)==null?void 0:d.name)==null?void 0:x.replace(/Dr\.?./,""))==null?void 0:r.substring(0,1))==null?void 0:w.toUpperCase()})}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"line-clamp-1 text-primary hover:underline",title:(v=e==null?void 0:e.profile)==null?void 0:v.name,children:((ie=e==null?void 0:e.profile)==null?void 0:ie.name)||"NIL"}),((oe=e==null?void 0:e.profile)==null?void 0:oe.board_number)&&s.jsx("span",{className:"text-xs text-gray-500 line-clamp-1",title:(ce=e==null?void 0:e.profile)==null?void 0:ce.board_number,children:(de=e==null?void 0:e.profile)==null?void 0:de.board_number})]})]})}),s.jsx(L,{children:e==null?void 0:e.narration}),s.jsxs(L,{className:`whitespace-nowrap ${(e==null?void 0:e.type)=="credit"?"text-success":"text-danger"}`,children:[(e==null?void 0:e.type)=="credit"?"+":"-"," ",ye,$(e==null?void 0:e.amount)]}),s.jsx(L,{children:(e==null?void 0:e.status)=="success"?s.jsx(m,{variant:"text",color:"success",radius:"full",className:"bg-success/20 font-normal pointer-events-none border-0 !text-xs",dense:!0,children:"Success"}):(e==null?void 0:e.status)=="processing"?s.jsx(m,{variant:"text",color:"info",radius:"full",className:"bg-info/20 font-normal pointer-events-none border-0 !text-xs",dense:!0,children:"Processing"}):(e==null?void 0:e.status)=="failed"?s.jsx(m,{variant:"text",color:"danger",radiu
1s:"full",className:"bg-danger/20 font-normal pointer-events-none border-0 !text-xs",dense:!0,children:"Failed"}):(e==null?void 0:e.status)=="reversed"?s.jsx(m,{variant:"text",color:"warning",radius:"full",className:"bg-warning/20 font-normal pointer-events-none border-0 !text-xs",dense:!0,children:"Reversed"}):s.jsx(m,{variant:"text",color:"text",radius:"full",className:"bg-text/20 font-normal pointer-events-none border-0 !text-xs",dense:!0,children:"Pending"})}),s.jsx(L,{className:"!bg-white",children:s.jsx("div",{className:"flex items-center justify-end",children:s.jsx(Re,{item:e,invalidateCache:O,children:s.jsx(m,{variant:"text",color:"text","icon-only":!0,children:s.jsx(T,{icon:Me})})},e==null?void 0:e.id)})})]})})})]}),s.jsx(ne,{size:{sm:"25px",md:"30px"}}),s.jsx(Pe,{data:f,filter:p,setFilter:k})]})]})}Ve.Layout=Ie;export{Ve 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.