1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[234],{22885:(e,s,r)=>{"use strict";r.d(s,{A:()=>a});let a=(0,r(11713).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},29514:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>h});var a=r(37876),t=r(14232),l=r(50127),d=r(63207),n=r(84806),c=r(10841),i=r.n(c),x=r(89081),m=r(57798);let o=function(){let[e,s]=(0,t.useState)([]),[r,c]=(0,t.useState)(!1);(0,t.useEffect)(()=>{o()},[]);let o=async()=>{try{let e=await (0,n.EeI)({limit:100});s(e.data.data||[])}catch(e){console.error(e)}finally{c(!0)}};return(0,a.jsxs)(l.A,{children:[!r&&(0,a.jsx)(d.a,{}),r&&(0,a.jsxs)("div",{className:"mx-auto w-full max-w-6xl space-y-6 p-6 2xl:max-w-screen-2xl",children:[(0,a.jsx)(m.w,{title:"Agents",description:"Manage all agents"}),0===e.length?(0,a.jsx)(x.Zp,{className:"py-20 text-center",children:(0,a.jsxs)(x.Wu,{children:[(0,a.jsx)("p",{className:"text-lg font-medium text-gray-700",children:"No agents found!"}),(0,a.jsx)("span",{className:"text-4xl text-red-500",children:"â¹ï¸"})]})}):(0,a.jsxs)(x.Zp,{children:[(0,a.jsx)(x.aR,{children:(0,a.jsx)(x.ZB,{children:"All Agents"})}),(0,a.jsx)(x.Wu,{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"min-w-full table-auto border border-gray-200",children:[(0,a.jsx)("thead",{className:"bg-gray-100",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"border px-4 py-2",children:"Agency Name"}),(0,a.jsx)("th",{className:"border px-4 py-2",children:"Email"}),(0,a.jsx)("th",{className:"border px-4 py-2",children:"Phone"}),(0,a.jsx)("th",{className:"border px-4 py-2",children:"Date"}),(0,a.jsx)("th",{className:"border px-4 py-2",children:"Country"})]})}),(0,a.jsx)("tbody",{children:e.map(e=>{var s;return(0,a.jsxs)("tr",{className:"cursor-pointer hover:bg-gray-50",children:[(0,a.jsx)("td",{className:"border px-4 py-2 font-medium text-slate-800",children:(null==e?void 0:e.agencyName)||"Missing Name"}),(0,a.jsx)("td",{className:"border px-4 py-2 font-medium text-slate-800",children:e.email}),(0,a.jsx)("td",{className:"border px-4 py-2",children:e.phone}),(0,a.jsx)("td",{className:"border px-4 py-2",children:i()(e.updatedAt).format("MMMM DD, YYYY HH:mm:ss")}),(0,a.jsx)("td",{className:"border px-4 py-2",children:null==(s=e.country)?void 0:s.name})]},e.id)})})]})})]})]})]})},h=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(o,{})})}},54558:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/agents",function(){return r(29514)}])},57798:(e,s,r)=>{"use strict";r.d(s,{w:()=>n});var a=r(37876),t=r(89983),l=r(22885),d=r(89099);let n=e=>{let{title:s,description:r,button:n=null}=e,c=(0,d.useRouter)();return(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-slate-200 pb-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)(t.$,{variant:"ghost",size:"sm",onClick:()=>{c.back()},className:"hover:bg-transparent",children:[(0,a.jsx)(l.A,{className:"mr-2 h-4 w-4"})," Back"]}),(0,a.jsx)("h1",{className:"text-3xl font-semibold text-slate-900",children:s}),(0,a.jsx)("p",{className:"text-slate-600",children:r})]}),n&&(0,a.jsx)("div",{className:"flex items-start md:items-center",children:n})]})}},63207:(e,s,r)=>{"use strict";r.d(s,{a:()=>t});var a=r(37876);r(14232);let t=()=>(0,a.jsx)("div",{className:"d-flex align-items-center justify-content-center min-h-screen",style:{height:"200px"},children:(0,a.jsx)("div",{className:"spinner-border",role:"status",children:(0,a.jsx)("span",{className:"visually-hidden",children:"Loading..."})})})},89081:(e,s,r)=>{"use strict";r.d(s,{BT:()=>i,Wu:()=>x,ZB:()=>c,Zp:()=>d,aR:()=>n,wL:()=>m});var a=r(37876),t=r(14232),l=r(8488);let d=t.forwardRef((e,s)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("bg-card text-card-foreground rounded-xl border shadow",r),...t})});d.displayName="Card";let n=t.forwardRef((e,s)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",r),...t})});n.displayName="CardHeader";let c=t.forwardRef((e,s)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("leading-none font-semibold tracking-tight",r),...t})});
1c.displayName="CardTitle";let i=t.forwardRef((e,s)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("text-muted-foreground text-sm",r),...t})});i.displayName="CardDescription";let x=t.forwardRef((e,s)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",r),...t})});x.displayName="CardContent";let m=t.forwardRef((e,s)=>{let{className:r,...t}=e;return(0,a.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",r),...t})});m.displayName="CardFooter"}},e=>{e.O(0,[3716,9270,2909,427,9716,4003,1718,6137,4817,4806,127,636,6593,8792],()=>e(e.s=54558)),_N_E=e.O()}]);
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.