Files
doormile_crm_build/dist/assets/Survey-DvtSUcNx.js

2 lines
18 KiB
JavaScript

import{r as Y,j as e,i as V,a as g,B as a,N as h,T as n,H as Q,S as x,C as Z,O as J,L as B,M as I,I as N}from"./index-DgiSycAe.js";import{d as X,D as ee,a as re,b as se,c as te,e as oe}from"./EditOutlined-Cybcxtqy.js";import{d as G,T as ne,a as ie}from"./PhoneOutlined-DbZdwTss.js";import{c as O,d as ae,a as le,b as W,e as ce}from"./StorefrontOutlined-CchPzH-F.js";import{d as de}from"./MapOutlined-yASOV5Eh.js";import{P as xe,G as c,C as _}from"./PageHeader-BZc3dw3P.js";import{C as q}from"./Link-ksPAHyrc.js";import{T as f}from"./TextField-X_DfLpXg.js";import{I as he}from"./InputAdornment-BpAXe-Rj.js";import{B as v}from"./Button-CfeUJ628.js";import"./TableCell-DU4FFYK_.js";var T={},ge=V;Object.defineProperty(T,"__esModule",{value:!0});var k=T.default=void 0,ue=ge(Y()),pe=e;k=T.default=(0,ue.default)((0,pe.jsx)("path",{d:"M7 15h7v2H7zm0-4h10v2H7zm0-4h10v2H7zm12-4h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75M19 19H5V5h14z"}),"AssignmentOutlined");const A="https://api.doormile.com/api/v1",K=()=>{const r=localStorage.getItem("auth_token");return{"Content-Type":"application/json",...r?{Authorization:`Bearer ${r}`}:{}}},fe={textTransform:"uppercase",letterSpacing:.4,fontSize:"0.68rem",fontWeight:700,color:"grey.700"};function U({label:r,color:t="default"}){return r?e.jsx(_,{size:"small",label:r,sx:{fontWeight:600,...t==="default"?{bgcolor:"grey.100",color:"grey.700"}:{bgcolor:`${t}.lighter`,color:`${t}.dark`}}}):e.jsx(n,{variant:"body2",sx:{fontWeight:500,color:"grey.500"},children:"—"})}function j({label:r,children:t}){return e.jsxs(a,{children:[e.jsx(n,{variant:"caption",color:"text.secondary",sx:fe,children:r}),e.jsx(a,{sx:{mt:.5},children:t})]})}function P({title:r,value:t,icon:i,gradient:l,percentage:s}){return e.jsxs(a,{sx:{position:"relative",overflow:"hidden",borderRadius:3.5,p:3,color:"white",background:l,boxShadow:"0 10px 30px rgba(0,0,0,0.08)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{transform:"translateY(-6px)",boxShadow:"0 20px 40px rgba(0,0,0,0.12)"}},children:[e.jsxs(a,{sx:{position:"relative",zIndex:2},children:[e.jsxs(x,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e.jsx(n,{variant:"overline",sx:{fontWeight:700,letterSpacing:1.2,opacity:.9},children:r}),e.jsx(a,{sx:{width:36,height:36,borderRadius:"50%",bgcolor:"rgba(255,255,255,0.2)",display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(4px)"},children:e.jsx(i,{sx:{fontSize:20}})})]}),e.jsxs(x,{direction:"row",alignItems:"baseline",spacing:1.5,sx:{mt:2},children:[e.jsx(n,{variant:"h3",sx:{fontWeight:800,lineHeight:1},children:t}),s&&e.jsx(_,{size:"small",label:s,sx:{height:22,bgcolor:"rgba(255,255,255,0.25)",color:"white",fontWeight:700,borderRadius:1.5,backdropFilter:"blur(4px)"}})]})]}),e.jsx(i,{sx:{position:"absolute",right:-24,bottom:-24,fontSize:160,opacity:.1,zIndex:1,transform:"rotate(-15deg)"}})]})}function E({icon:r,title:t,children:i}){return e.jsxs(a,{sx:{height:"100%",borderRadius:2,border:1,borderColor:"divider",bgcolor:"background.paper",overflow:"hidden"},children:[e.jsxs(x,{direction:"row",spacing:1,alignItems:"center",sx:{px:2,py:1.25,borderBottom:1,borderColor:"divider",bgcolor:h("#c01227",.08)},children:[e.jsx(r,{sx:{fontSize:18,color:"#c01227"}}),e.jsx(n,{variant:"overline",sx:{fontWeight:700,color:"grey.800",letterSpacing:.6,lineHeight:1},children:t})]}),e.jsx(x,{spacing:2,sx:{p:2},children:i})]})}async function me(){let r=[],t=0;const i=50;let l=1;for(;t<l;){const s=await fetch(`${A}/admin/competitor-branches?limit=${i}&offset=${t}`,{headers:K()});if(!s.ok)throw new Error("Failed to fetch surveys");const u=await s.json();if(!u.data||u.data.length===0)break;const m=u.data.filter(y=>!r.some(d=>d.id===y.id));if(m.length===0)break;r=[...r,...m],l=u.total||0,t+=i}return{data:r,total:r.length}}async function je(r){const t=!!r.id,i=t?`${A}/admin/competitor-branches/${r.id}`:`${A}/admin/competitor-branches`,s=await fetch(i,{method:t?"PUT":"POST",headers:K(),body:JSON.stringify(r)});if(!s.ok)throw new Error("Failed to save survey");return s.json()}function be({open:r,onClose:t,onSave:i,initialData:l}){const[s,u]=g.useState({}),[m,y]=g.useState(!1);g.useEffect(()=>{r&&u(l||{company:"",area:"",phone:"",rate_per_kg:"",offers_pickup:"no",offers_drop:"no",packing_charge:"",time_in_days:"",plus_code:"",address:""})},[r,l]);const d=C=>S=>{u(w=>({...w,[C]:S.target.value}))},R=async()=>{y(!0);try{await je(s),i(),t()}catch(C){console.error(C),alert("Failed to save. Please try again.")}finally{y(!1)}};return e.jsxs(ee,{open:r,onClose:t,maxWidth:"sm",fullWidth:!0,children:[e.jsx(re,{sx:{fontWeight:800},children:l?"Edit Survey Record":"Add New Survey"}),e.jsx(se,{dividers:!0,children:e.jsxs(c,{container:!0,spacing:2,children:[e.jsx(c,{item:!0,xs:12,sm:6,children:e.jsx(f,{fullWidth:!0,label:"Company",value:s.company||"",onChange:d("company"),size:"small"})}),e.jsx(c,{item:!0,xs:12,sm:6,children:e.jsx(f,{fullWidth:!0,label:"Area / Zone",value:s.area||"",onChange:d("area"),size:"small"})}),e.jsx(c,{item:!0,xs:12,sm:6,children:e.jsx(f,{fullWidth:!0,label:"Phone",value:s.phone||"",onChange:d("phone"),size:"small"})}),e.jsx(c,{item:!0,xs:12,sm:6,children:e.jsx(f,{fullWidth:!0,label:"Rate Per KG",value:s.rate_per_kg||"",onChange:d("rate_per_kg"),size:"small"})}),e.jsx(c,{item:!0,xs:12,sm:6,children:e.jsxs(f,{select:!0,fullWidth:!0,label:"Offers Pickup",value:s.offers_pickup||"no",onChange:d("offers_pickup"),size:"small",children:[e.jsx(I,{value:"yes",children:"Yes"}),e.jsx(I,{value:"no",children:"No"})]})}),e.jsx(c,{item:!0,xs:12,sm:6,children:e.jsxs(f,{select:!0,fullWidth:!0,label:"Offers Drop",value:s.offers_drop||"no",onChange:d("offers_drop"),size:"small",children:[e.jsx(I,{value:"yes",children:"Yes"}),e.jsx(I,{value:"no",children:"No"})]})}),e.jsx(c,{item:!0,xs:12,sm:6,children:e.jsx(f,{fullWidth:!0,label:"Time in Days",value:s.time_in_days||"",onChange:d("time_in_days"),size:"small"})}),e.jsx(c,{item:!0,xs:12,sm:6,children:e.jsx(f,{fullWidth:!0,label:"Packing Charge",value:s.packing_charge||"",onChange:d("packing_charge"),size:"small"})}),e.jsx(c,{item:!0,xs:12,children:e.jsx(f,{fullWidth:!0,label:"Plus Code",value:s.plus_code||"",onChange:d("plus_code"),size:"small"})}),e.jsx(c,{item:!0,xs:12,children:e.jsx(f,{fullWidth:!0,multiline:!0,rows:2,label:"Address",value:s.address||"",onChange:d("address"),size:"small"})})]})}),e.jsxs(te,{sx:{p:2,bgcolor:"grey.50"},children:[e.jsx(v,{onClick:t,disabled:m,color:"inherit",children:"Cancel"}),e.jsx(v,{onClick:R,disabled:m,variant:"contained",sx:{bgcolor:"#c01227","&:hover":{bgcolor:"#a00f20"},borderRadius:2},children:m?"Saving...":"Save Record"})]})]})}function ye({row:r,onEdit:t}){const[i,l]=g.useState(!1);return e.jsxs(a,{sx:{p:2,borderRadius:2.5,border:"1px solid",borderColor:"divider",bgcolor:"background.paper",transition:"all 0.2s ease","&:hover":{borderColor:"#c01227",boxShadow:"0 4px 12px rgba(192, 18, 39, 0.05)"}},children:[e.jsxs(x,{direction:{xs:"column",md:"row"},spacing:3,alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",onClick:()=>l(!i),sx:{cursor:"pointer",userSelect:"none"},children:[e.jsxs(x,{direction:"row",spacing:2,alignItems:"center",sx:{minWidth:240},children:[e.jsx(a,{sx:{p:1.5,borderRadius:2,bgcolor:h("#c01227",.05)},children:e.jsx(W,{sx:{color:"#c01227"}})}),e.jsxs(a,{children:[e.jsx(n,{variant:"subtitle1",sx:{fontWeight:700,color:"grey.900",lineHeight:1.2},children:r.area||"Unknown Area"}),e.jsxs(n,{variant:"body2",sx:{color:"grey.600",display:"flex",alignItems:"center",gap:.5,mt:.5},children:[e.jsx(G,{sx:{fontSize:14}})," ",r.phone||"—"]})]})]}),e.jsxs(x,{direction:"row",spacing:4,sx:{flex:1},justifyContent:{xs:"flex-start",md:"center"},children:[e.jsxs(a,{children:[e.jsx(n,{variant:"caption",sx:{color:"grey.500",fontWeight:700,letterSpacing:.5,display:"block",mb:.5},children:"RATE PER KG"}),e.jsx(U,{label:r.rate_per_kg,color:"success"})]}),e.jsxs(a,{children:[e.jsx(n,{variant:"caption",sx:{color:"grey.500",fontWeight:700,letterSpacing:.5,display:"block",mb:.5},children:"LOGISTICS"}),e.jsx(n,{variant:"body2",sx:{fontWeight:600,color:"grey.800"},children:r.offers_pickup==="yes"||r.offers_drop==="yes"?`${r.offers_pickup==="yes"?"Pickup":""} ${r.offers_drop==="yes"?"Drop":""}`:"—"})]})]}),e.jsxs(x,{direction:"row",spacing:1,alignItems:"center",children:[e.jsx(v,{size:"small",sx:{borderRadius:1.5,color:i?"#c01227":"grey.700",bgcolor:i?h("#c01227",.05):"transparent","&:hover":{bgcolor:h("#c01227",.1),color:"#c01227"}},children:i?"Hide Info":"More Info"}),e.jsx(N,{size:"small",onClick:s=>{s.stopPropagation(),t(r)},sx:{color:"grey.400","&:hover":{color:"#c01227",bgcolor:h("#c01227",.1)}},children:e.jsx(oe,{fontSize:"small"})}),e.jsx(N,{size:"small",onClick:s=>s.stopPropagation(),sx:{color:"grey.400","&:hover":{color:"#ef4444",bgcolor:h("#ef4444",.1)}},children:e.jsx(ie,{fontSize:"small"})})]})]}),e.jsx(B,{in:i,timeout:"auto",unmountOnExit:!0,children:e.jsx(a,{sx:{mt:2.5,pt:2.5,borderTop:"1px dashed",borderColor:"divider"},children:e.jsxs(c,{container:!0,spacing:2,alignItems:"stretch",children:[e.jsx(c,{item:!0,xs:12,md:4,children:e.jsxs(E,{icon:O,title:"ENQUIRY DETAILS",children:[e.jsx(j,{label:"RATE PER KG",children:e.jsx(U,{label:r.rate_per_kg,color:"success"})}),e.jsx(j,{label:"PICKUP",children:e.jsx(n,{variant:"body2",sx:{fontWeight:500,color:r.offers_pickup?"grey.800":"grey.500"},children:r.offers_pickup||"—"})}),e.jsx(j,{label:"DROP",children:e.jsx(n,{variant:"body2",sx:{fontWeight:500,color:r.offers_drop?"grey.800":"grey.500"},children:r.offers_drop||"—"})}),e.jsx(j,{label:"PACKING",children:e.jsx(n,{variant:"body2",sx:{fontWeight:500,color:r.packing_charge?"grey.800":"grey.500"},children:r.packing_charge||"—"})})]})}),e.jsx(c,{item:!0,xs:12,md:4,children:e.jsxs(E,{icon:ce,title:"LOGISTICS & OPS",children:[e.jsx(j,{label:"TIME IN DAYS",children:e.jsx(n,{variant:"body2",sx:{fontWeight:500,color:r.time_in_days?"grey.800":"grey.500"},children:r.time_in_days||"—"})}),e.jsx(j,{label:"COMPANY",children:e.jsx(n,{variant:"body2",sx:{fontWeight:500,color:"grey.800"},children:r.company||"—"})}),e.jsx(j,{label:"CONTACT NUMBER",children:e.jsx(n,{variant:"body2",sx:{fontWeight:500,color:"grey.800"},children:r.phone||"—"})})]})}),e.jsx(c,{item:!0,xs:12,md:4,children:e.jsxs(E,{icon:W,title:"LOCATION & PINCODE",children:[e.jsx(j,{label:"AREA / ZONE",children:e.jsx(n,{variant:"body2",sx:{fontWeight:500,color:"grey.800"},children:r.area||"—"})}),e.jsx(j,{label:"PLUS CODE",children:e.jsx(n,{variant:"body2",sx:{fontWeight:500,color:r.plus_code?"grey.800":"grey.500"},children:r.plus_code||"—"})}),e.jsx(j,{label:"FULL ADDRESS",children:e.jsxs(x,{spacing:1.5,children:[e.jsxs(x,{direction:"row",spacing:1,sx:{p:1.5,borderRadius:1.5,bgcolor:"grey.50",border:1,borderColor:"divider"},children:[e.jsx(W,{sx:{fontSize:16,color:"grey.400",mt:"2px"}}),e.jsx(n,{variant:"body2",sx:{color:"grey.800",lineHeight:1.5},children:r.address||"—"})]}),(r.address||r.plus_code)&&e.jsx(v,{component:"a",href:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(r.plus_code?r.plus_code+" "+(r.address||""):r.address)}`,target:"_blank",rel:"noopener",size:"small",variant:"outlined",startIcon:e.jsx(de,{sx:{fontSize:16}}),sx:{alignSelf:"flex-start",py:.5,px:1.5,fontSize:"0.75rem",fontWeight:600,borderRadius:2,color:"#c01227",borderColor:h("#c01227",.5),bgcolor:h("#c01227",.05),"&:hover":{borderColor:"#c01227",bgcolor:h("#c01227",.1)}},children:"View on map"})]})})]})})]})})})]})}function ve({companyName:r,branches:t,onEdit:i}){const[l,s]=g.useState(!1);return e.jsxs(q,{elevation:0,sx:{borderRadius:3,border:"1px solid",borderColor:l?"#c01227":"grey.200",p:{xs:2.5,md:3},mb:2.5,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{borderColor:"#c01227",boxShadow:"0 8px 30px rgba(192, 18, 39, 0.08)",transform:"translateY(-2px)"}},children:[e.jsxs(x,{direction:{xs:"column",md:"row"},spacing:3,alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",onClick:()=>s(!l),sx:{cursor:"pointer",userSelect:"none"},children:[e.jsxs(x,{direction:"row",spacing:2.5,alignItems:"center",children:[e.jsx(J,{sx:{width:64,height:64,bgcolor:h("#c01227",.1),color:"#c01227",fontWeight:800,fontSize:"1.5rem",borderRadius:2.5},children:(r||"A")[0].toUpperCase()}),e.jsxs(a,{children:[e.jsx(n,{variant:"h5",sx:{fontWeight:800,lineHeight:1.2,color:"grey.900"},children:r||"Unknown Company"}),e.jsxs(n,{variant:"body2",sx:{color:"grey.600",mt:.5,display:"flex",alignItems:"center",gap:.5},children:[e.jsx(O,{sx:{fontSize:16}})," ",t.length," Location",t.length!==1&&"s"," Surveyed"]})]})]}),e.jsxs(x,{direction:"row",spacing:3,alignItems:"center",children:[e.jsxs(x,{direction:"row",spacing:1,sx:{display:{xs:"none",md:"flex"}},children:[e.jsx(_,{size:"small",label:"First Mile",sx:{bgcolor:h("#c01227",.08),color:"#c01227",fontWeight:700,borderRadius:1.5}}),e.jsx(_,{size:"small",label:"Mid Mile",sx:{bgcolor:h("#c01227",.08),color:"#c01227",fontWeight:700,borderRadius:1.5}}),e.jsx(_,{size:"small",label:"Last Mile",sx:{bgcolor:h("#c01227",.08),color:"#c01227",fontWeight:700,borderRadius:1.5}})]}),e.jsx(x,{direction:"row",spacing:1.5,alignItems:"center",children:e.jsx(v,{sx:{borderRadius:2,py:1,px:3,fontWeight:700,color:l?"#c01227":"grey.700",bgcolor:l?h("#c01227",.1):"grey.100","&:hover":{bgcolor:h("#c01227",.15),color:"#c01227"}},endIcon:l?e.jsx(ae,{}):e.jsx(le,{}),children:l?"Hide Locations":"View Locations"})})]})]}),e.jsx(B,{in:l,timeout:"auto",unmountOnExit:!0,children:e.jsx(a,{sx:{mt:3,pt:3,borderTop:"2px dashed",borderColor:"grey.200"},children:e.jsx(x,{spacing:2,children:t.map(u=>e.jsx(ye,{row:u,onEdit:i},u.id||Math.random()))})})})]})}function Ae(){const[r,t]=g.useState([]),[i,l]=g.useState(!0),[s,u]=g.useState(""),[m,y]=g.useState(0),[d,R]=g.useState(5),[C,S]=g.useState(!1),[w,D]=g.useState(null),L=()=>{let o=!1;return l(!0),me().then(p=>{o||t(p.data||p||[])}).catch(p=>console.error("Error fetching surveys:",p)).finally(()=>{o||l(!1)}),()=>{o=!0}};g.useEffect(()=>L(),[]);const $=r.filter(o=>(o.company||"").toLowerCase().includes(s.toLowerCase())||(o.area||"").toLowerCase().includes(s.toLowerCase())||(o.phone||"").toLowerCase().includes(s.toLowerCase())),M=$.reduce((o,p)=>{const z=p.company||"Unknown Company";return o[z]||(o[z]=[]),o[z].push(p),o},{}),F=Object.keys(M).sort(),H=F.slice(m*d,m*d+d),b={total:r.length,quoted:r.filter(o=>o.rate_per_kg&&!o.rate_per_kg.toLowerCase().includes("not answered")).length,missing:r.filter(o=>!o.rate_per_kg||o.rate_per_kg.toLowerCase().includes("not answered")).length};return e.jsxs(a,{sx:{pb:6,bgcolor:"#f8fafc",px:{xs:2,md:4},pt:3,minHeight:"100vh"},children:[e.jsx(xe,{title:"Field Surveys",breadcrumbs:[{label:"Survey Management"}]}),e.jsxs(c,{container:!0,spacing:3,sx:{mb:5,mt:1},children:[e.jsx(c,{item:!0,xs:12,md:4,children:e.jsx(P,{title:"TOTAL ENQUIRIES",value:i?"...":b.total,icon:k,gradient:"linear-gradient(135deg, #e11d48 0%, #c01227 100%)"})}),e.jsx(c,{item:!0,xs:12,md:4,children:e.jsx(P,{title:"RATES QUOTED",value:i?"...":b.quoted,icon:O,gradient:"linear-gradient(135deg, #10b981 0%, #047857 100%)",percentage:b.total?`${Math.round(b.quoted/b.total*100)}%`:"0%"})}),e.jsx(c,{item:!0,xs:12,md:4,children:e.jsx(P,{title:"MISSING INFO",value:i?"...":b.missing,icon:G,gradient:"linear-gradient(135deg, #334155 0%, #0f172a 100%)",percentage:b.total?`${Math.round(b.missing/b.total*100)}%`:"0%"})})]}),e.jsxs(q,{sx:{borderRadius:2,boxShadow:"0 4px 20px rgba(0,0,0,0.05)",overflow:"hidden"},children:[e.jsxs(a,{sx:{p:3,display:"flex",alignItems:"center",gap:2,borderBottom:"1px solid",borderColor:"grey.100"},children:[e.jsx(a,{sx:{width:48,height:48,borderRadius:2.5,bgcolor:h("#c01227",.1),color:"#c01227",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(k,{})}),e.jsxs(a,{children:[e.jsx(n,{variant:"h6",sx:{fontWeight:700,color:"grey.900"},children:"Survey Records"}),e.jsx(n,{variant:"body2",sx:{color:"grey.600",mt:.5},children:"Manage business enquiry and survey data from the field"})]})]}),e.jsxs(a,{sx:{p:2,borderBottom:"1px solid",borderColor:"grey.100",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsx(f,{size:"small",placeholder:"Search by company, area, phone, or",value:s,onChange:o=>{u(o.target.value),y(0)},sx:{width:{xs:"100%",md:400}},InputProps:{startAdornment:e.jsx(he,{position:"start",children:e.jsx(Q,{fontSize:"small"})})}}),e.jsxs(x,{direction:"row",spacing:2,alignItems:"center",children:[!i&&e.jsxs(n,{variant:"body2",sx:{color:"grey.500",fontWeight:600},children:[$.length," records"]}),e.jsx(v,{variant:"contained",startIcon:e.jsx(X,{}),onClick:()=>{D(null),S(!0)},sx:{bgcolor:"#c01227","&:hover":{bgcolor:"#a00f20"},borderRadius:2,px:2,fontWeight:700,whiteSpace:"nowrap"},children:"Add New Survey"})]})]}),e.jsx(a,{sx:{p:3,bgcolor:"grey.50"},children:i?e.jsx(a,{sx:{display:"flex",justifyContent:"center",py:8},children:e.jsx(Z,{})}):H.length>0?e.jsx(a,{children:H.map(o=>e.jsx(ve,{companyName:o,branches:M[o],onEdit:p=>{D(p),S(!0)}},o))}):e.jsxs(a,{sx:{py:10,textAlign:"center"},children:[e.jsx(k,{sx:{fontSize:48,color:"grey.300",mb:2}}),e.jsx(n,{variant:"h6",color:"text.secondary",children:"No survey records found."}),e.jsx(n,{variant:"body2",color:"text.disabled",sx:{mt:1},children:"Try adjusting your search filters."})]})}),e.jsx(a,{sx:{borderTop:"1px solid",borderColor:"grey.200",bgcolor:"white"},children:e.jsx(ne,{component:"div",count:F.length,page:m,onPageChange:(o,p)=>y(p),rowsPerPage:d,onRowsPerPageChange:o=>{R(parseInt(o.target.value,10)),y(0)},rowsPerPageOptions:[5,10,25],labelRowsPerPage:"Companies per page:"})})]}),e.jsx(be,{open:C,onClose:()=>S(!1),onSave:()=>L(),initialData:w})]})}export{Ae as default};