"use strict";(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[181],{10181:(e,t,r)=>{r.r(t),r.d(t,{default:()=>te});var o=r(89379),n=r(9950),i=r(26910),s=r(36150),a=r(2235),l=r(41413),c=r(83274),d=r(16491),x=r(82053),h=r(93230),u=r(60899),p=r(1320),m=r(15769),A=r(69780),g=r(9213),f=r(21671),j=r(34075),b=r(25333),v=r(33738),S=r(74745),w=r(25277),y=r(96583),C=r(28170),k=r(31222),D=r(4159),R=r.n(D),_=r(81425),P=r(52351),I=r(35678),E=r(59212),z=r(56311),T=r(96646),M=r(10523),W=r(46639),N=r(44414);const L={width:"100%",height:"100%"};function F(e){let{details:t,loading:r,riderName:o,dateRange:i,onClose:s}=e;const a=(0,n.useRef)(null),[l,c]=(0,n.useState)(null),[u,p]=(0,n.useState)([]),[m,A]=(0,n.useState)(!1),{isLoaded:g}=(0,M.KD)({googleMapsApiKey:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_API_URL:"https://mock-data-api-nextjs.vercel.app/",REACT_APP_AUTH0_CLIENT_ID:"",REACT_APP_AUTH0_DOMAIN:"",REACT_APP_AWS_APP_CLIENT_ID:"",REACT_APP_AWS_POOL_ID:"",REACT_APP_FIREBASE_API_KEY:"",REACT_APP_FIREBASE_APP_ID:"",REACT_APP_FIREBASE_AUTH_DOMAIN:"",REACT_APP_FIREBASE_MEASUREMENT_ID:"",REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"",REACT_APP_FIREBASE_PROJECT_ID:"",REACT_APP_FIREBASE_STORAGE_BUCKET:"",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyCF4KatYCI3vqz1_H3kiHeyS3yCMfYToh8",REACT_APP_RIDER_ACCESS_ID:"AAAAILMpCEU:APA91bEavuOllBI6sFgYtxXAgNmAVwNA-MnCMHLGlR4_t7UqpLajAkdn3T0CZr_zaLBknLyim9ytFLMZgbeXmKqTad_PKCbqlYjHpaizVrLXtecxqyEy4UktIacK2UvHVUATHL-7VQQk",REACT_APP_STAFF_TOKEN:"",REACT_APP_URL:"https://jupiter.nearle.app/live/api/v1",REACT_APP_URL2:"https://jupiter.nearle.app/live/api/v2",REACT_APP_URL3:"https://jupiter.nearle.app/live/api/v3",REACT_APP_VERSION:"v2.1.0"}.REACT_APP_GOOGLE_MAPS_KEY}),f=(0,n.useMemo)((()=>(t||[]).map((e=>({lat:e.dropLat,lng:e.dropLng})))),[t]);(0,n.useEffect)((()=>{if(!g||!a.current||0===f.length)return;const e=new window.google.maps.LatLngBounds;f.forEach((t=>e.extend(t))),a.current.fitBounds(e,48)}),[g,f]),(0,n.useEffect)((()=>{if(!g||f.length<2)return void p([]);let e=!1;const t=new window.google.maps.DirectionsService,r=(e,r,o)=>new Promise(((n,i)=>{t.route({origin:e,destination:r,waypoints:o.map((e=>({location:e,stopover:!0}))),travelMode:window.google.maps.TravelMode.DRIVING},((e,t)=>{"OK"===t?n(e):i(new Error(t))}))}));return(async()=>{A(!0);try{const t=f,o=[];let n=0;for(;n({lat:e.lat(),lng:e.lng()})));o.length>0&&c.length>0&&c.shift(),o.push(...c),n+=i}e||p(o)}catch(t){e||p([])}finally{e||A(!1)}})(),()=>{e=!0}}),[g,f]);const j=(e,t)=>{const r=t?38:32,o=t?"#4338ca":"#6366f1",n=encodeURIComponent('')+'')+''.concat(e,"")+"");return"data:image/svg+xml;charset=UTF-8,".concat(n)},v=(0,N.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1.5,sx:{px:2,py:1.25,borderBottom:"1px solid rgba(15, 23, 42, 0.08)",background:"linear-gradient(135deg, #6366f1 0%, #3b82f6 100%)",color:"#fff",flexShrink:0},children:[(0,N.jsx)(k.pk7,{size:20}),(0,N.jsxs)(h.A,{sx:{flex:1,minWidth:0},children:[(0,N.jsxs)(x.A,{sx:{fontWeight:700,fontSize:15,lineHeight:1.2},children:["Planned route",o?" \u2014 ".concat(o):""]}),i&&(0,N.jsx)(x.A,{sx:{fontSize:12,opacity:.85},children:i})]}),t&&t.length>0&&(0,N.jsxs)(x.A,{sx:{fontSize:12,opacity:.9,fontWeight:600},children:[t.length," ",1===t.length?"stop":"stops",m?" \xb7 resolving route\u2026":""]}),s&&(0,N.jsx)(b.A,{size:"small",onClick:s,sx:{color:"#fff"},"aria-label":"Close",children:(0,N.jsx)(k.m6K,{})})]});return r||!g?(0,N.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[v,(0,N.jsxs)(h.A,{alignItems:"center",justifyContent:"center",sx:{flex:1,gap:1.5},children:[(0,N.jsx)(W.A,{size:32}),(0,N.jsx)(x.A,{sx:{color:"#64748b",fontSize:13},children:r?"Loading planned route\u2026":"Loading map\u2026"})]})]}):t&&0!==t.length?(0,N.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[v,(0,N.jsx)(d.A,{sx:{flex:1,minHeight:0},children:(0,N.jsxs)(M.u6,{mapContainerStyle:L,onLoad:e=>a.current=e,center:f[0],zoom:14,options:{streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1},children:[u.length>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(M.Ro,{path:u,options:{strokeColor:"#6366f1",strokeOpacity:.25,strokeWeight:8}}),(0,N.jsx)(M.Ro,{path:u,options:{strokeColor:"#6366f1",strokeOpacity:.95,strokeWeight:4}})]}):(0,N.jsx)(M.Ro,{path:f,options:{strokeColor:"#6366f1",strokeOpacity:0,strokeWeight:0,icons:[{icon:{path:"M 0,-1 0,1",strokeOpacity:.6,strokeColor:"#6366f1",scale:3},offset:"0",repeat:"14px"}]}}),t.map(((e,t)=>{const r=e.step||t+1,o=l===e.deliveryid;return(0,N.jsx)(M.pH,{position:{lat:e.dropLat,lng:e.dropLng},icon:{url:j(r,o)},onClick:()=>c(o?null:e.deliveryid),zIndex:o?1e3:r,children:o&&(0,N.jsx)(M.Fu,{onCloseClick:()=>c(null),children:(0,N.jsxs)(d.A,{sx:{minWidth:180,fontFamily:"inherit"},children:[(0,N.jsxs)(x.A,{sx:{fontWeight:800,fontSize:13,color:"#0f172a"},children:["Step ",r," \xb7 ",e.customer]}),e.address&&(0,N.jsx)(x.A,{sx:{fontSize:12,color:"#475569",mt:.5},children:e.address}),e.expectedTime&&(0,N.jsxs)(x.A,{sx:{fontSize:12,color:"#64748b",mt:.5},children:["ETA ",String(e.expectedTime).slice(11,16)||e.expectedTime]}),e.orderid&&(0,N.jsxs)(x.A,{sx:{fontSize:11,color:"#94a3b8",mt:.5},children:["Order #",e.orderid]})]})})},"step-".concat(e.deliveryid||e.orderid||t))}))]})})]}):(0,N.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[v,(0,N.jsxs)(h.A,{alignItems:"center",justifyContent:"center",sx:{flex:1,gap:1,p:3},children:[(0,N.jsx)(x.A,{sx:{color:"#1e293b",fontWeight:700,fontSize:16},children:"No planned route for this rider"}),(0,N.jsx)(x.A,{sx:{color:"#64748b",fontSize:13,textAlign:"center",maxWidth:360},children:"There are no deliveries with drop coordinates assigned to this rider for the selected date range."})]})]})}var O=r(20466),Y=r(36220);R().extend(Y);const B={radiusPill:999,radiusCard:16,shadowSoft:"0 14px 40px rgba(15, 23, 42, 0.10)",shadowMd:"0 8px 24px rgba(15, 23, 42, 0.08)",shadowPop:"0 18px 50px rgba(15, 23, 42, 0.18)",textPrimary:"#0f172a",textSecondary:"#64748b",textMuted:"#94a3b8",borderSubtle:"#e2e8f0",divider:"#f1f5f9",surface:"#ffffff",surfaceAlt:"#f8fafc"},K=(e,t)=>"".concat(e).concat(t),H=e=>K(e,"08"),U=e=>K(e,"18"),G=e=>K(e,"26"),V=e=>K(e,"55"),q="#662582",X="#9255AB",Z=e=>(0,N.jsx)(a.A,(0,o.A)((0,o.A)({},e),{},{sx:{mt:.75,borderRadius:2,boxShadow:B.shadowPop,border:"1px solid",borderColor:"divider",overflow:"hidden"}})),$=e=>{let{color:t,selected:r,size:o=24,children:n}=e;return(0,N.jsx)(l.A,{sx:{width:o,height:o,bgcolor:r?t:U(t),color:r?"#fff":t,transition:"background-color 0.15s, color 0.15s"},children:n})},J=e=>{let{color:t,icon:r,label:o,tooltip:n,minWidth:i=80}=e;return(0,N.jsx)(c.A,{title:n||"",placement:"top",children:(0,N.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1,py:.375,borderRadius:999,bgcolor:H(t),border:"1px solid ".concat(V(t)),color:t,fontSize:11,fontWeight:800,minWidth:i,justifyContent:"center",whiteSpace:"nowrap"},children:[r,o]})})},Q=e=>{let{value:t,color:r="#ef4444",icon:o}=e;const n=Number(t)||0;return 0===n?(0,N.jsx)(x.A,{variant:"caption",sx:{color:B.textMuted,fontWeight:700},children:"0"}):(0,N.jsxs)(d.A,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.875,py:.25,borderRadius:999,bgcolor:H(r),border:"1px solid ".concat(V(r)),color:r,fontSize:12,fontWeight:800,minWidth:36,justifyContent:"center"},children:[o,n]})};function ee(e){return new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",minimumFractionDigits:2}).format(Number(e)||0)}function te(){const[e,t]=(0,n.useState)(R()().format("YYYY-MM-DD")),[r,o]=(0,n.useState)(R()().format("YYYY-MM-DD")),[D,M]=(0,n.useState)("All"),[W,L]=(0,n.useState)(!1),[Y,K]=(0,n.useState)("Today"),[te,re]=(0,n.useState)([]),[oe,ne]=(0,n.useState)(null),[ie,se]=(0,n.useState)(0),[ae,le]=(0,n.useState)(!1),[ce,de]=(0,n.useState)(!1),[xe,he]=(0,n.useState)(null),[ue,pe]=(0,n.useState)(null),[me,Ae]=(0,n.useState)(!1),[ge,fe]=(0,n.useState)(""),[je,be]=(0,n.useState)(""),{isLoading:ve,data:Se}=(0,s.I)({queryKey:["ridersummary",ie,e,r],queryFn:_.KN}),we=(0,n.useMemo)((()=>{if(!Se)return[];if(!je)return Se;const e=je.toLowerCase().trim();return Se.filter((t=>["".concat(t.firstname||""," ").concat(t.lastname||""),String(t.userid)].filter(Boolean).some((t=>String(t).toLowerCase().includes(e)))))}),[Se,je]),ye=(0,n.useMemo)((()=>Se&&0!==Se.length?Se.reduce(((e,t)=>(e.riders+=1,e.orders+=Number(t.totalorders)||0,e.delivered+=Number(t.delivered)||0,e.amount+=Math.max(Number(t.charges)||0,Number(t.deliveryamt)||0),e)),{riders:0,orders:0,delivered:0,amount:0}):{riders:0,orders:0,delivered:0,amount:0}),[Se]),Ce=(0,n.useMemo)((()=>Se?Se.reduce(((e,t)=>e+(Number(t.deliveryamt)||0)),0):0),[Se]),ke=[{key:"riders",label:"Active Riders",color:q,icon:k.bsz,value:ye.riders},{key:"orders",label:"Total Orders",color:"#0ea5e9",icon:k.F6S,value:ye.orders},{key:"delivered",label:"Delivered",color:"#10b981",icon:k.mU9,value:ye.delivered},{key:"amount",label:"Total Amount",color:"#f59e0b",icon:k.YHz,value:ee(Ce)}];return(0,N.jsxs)(N.Fragment,{children:[(ve||ae)&&(0,N.jsx)(P.A,{}),(0,N.jsx)(a.A,{elevation:0,sx:{mb:{xs:1.5,md:2},p:{xs:1.5,sm:2,md:2.5},borderRadius:B.radiusCard/8,border:"1px solid",borderColor:B.borderSubtle,background:"linear-gradient(135deg, ".concat(H(q)," 0%, ").concat(H(X)," 100%)"),boxShadow:B.shadowMd},children:(0,N.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},justifyContent:"space-between",spacing:{xs:1.5,sm:2},children:[(0,N.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:{xs:1.25,sm:1.75},children:[(0,N.jsx)(l.A,{sx:{width:{xs:40,sm:48},height:{xs:40,sm:48},bgcolor:q,color:"#fff",boxShadow:"0 6px 18px ".concat(G(q))},children:(0,N.jsx)(k.bsz,{size:22})}),(0,N.jsxs)(h.A,{children:[(0,N.jsx)(x.A,{variant:"h3",sx:{fontWeight:800,color:B.textPrimary,lineHeight:1.1,fontSize:{xs:"1.25rem",sm:"1.5rem",md:"1.75rem"}},children:"Riders Summary"}),(0,N.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,sx:{mt:.5},children:[(0,N.jsx)(d.A,{sx:{width:8,height:8,borderRadius:"50%",bgcolor:"#10b981",boxShadow:"0 0 0 4px rgba(16,185,129,0.18)"}}),(0,N.jsxs)(x.A,{variant:"caption",sx:{color:B.textSecondary,fontWeight:600},children:["Live \xb7 ",D||"All Zones"," \xb7 ",Y]})]})]})]}),(0,N.jsx)(E.A,{locaName:D,setAppId:se,setLocoName:M,pill:!0,accentColor:q,icon:(0,N.jsx)(k.HPi,{size:14}),placeholder:"Select Zone",paperComponent:Z,sx:{width:{xs:"100%",sm:280},zIndex:100}})]})}),(0,N.jsx)(u.Ay,{container:!0,spacing:{xs:1.25,sm:1.5,md:2},sx:{mt:"1px"},children:ke.map((e=>{const t=e.icon;return(0,N.jsx)(u.Ay,{item:!0,xs:6,sm:6,md:3,children:(0,N.jsxs)(a.A,{elevation:0,sx:{position:"relative",overflow:"hidden",p:{xs:1.25,sm:1.75,md:2.25},borderRadius:B.radiusCard/8,border:"1px solid",borderColor:B.borderSubtle,background:"#fff",transition:"transform 0.2s, box-shadow 0.2s, border-color 0.2s","&:hover":{transform:"translateY(-3px)",boxShadow:B.shadowMd,borderColor:V(e.color)}},children:[(0,N.jsx)(d.A,{sx:{position:"absolute",top:0,left:0,right:0,height:3,background:"linear-gradient(90deg, ".concat(e.color," 0%, ").concat(U(e.color)," 100%)")}}),(0,N.jsxs)(h.A,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",spacing:1,children:[(0,N.jsxs)(h.A,{spacing:.5,sx:{minWidth:0,flex:1},children:[(0,N.jsx)(x.A,{variant:"caption",sx:{color:B.textSecondary,fontWeight:700,letterSpacing:.4,textTransform:"uppercase",fontSize:{xs:10,sm:11},whiteSpace:"nowrap"},children:e.label}),(0,N.jsx)(x.A,{sx:{fontWeight:800,color:B.textPrimary,lineHeight:1.1,fontSize:{xs:"1.1rem",sm:"1.4rem",md:"1.6rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.value})]}),(0,N.jsx)(l.A,{sx:{width:{xs:36,sm:42,md:48},height:{xs:36,sm:42,md:48},bgcolor:U(e.color),color:e.color,boxShadow:"inset 0 0 0 1px ".concat(V(e.color)),flexShrink:0},children:(0,N.jsx)(t,{size:20})})]})]})},e.key)}))}),(0,N.jsx)(a.A,{elevation:0,sx:{mt:{xs:1.5,md:2},p:{xs:1,md:1.5},borderTopLeftRadius:B.radiusCard/8,borderTopRightRadius:B.radiusCard/8,borderBottomLeftRadius:0,borderBottomRightRadius:0,border:"1px solid",borderColor:B.borderSubtle,borderBottom:0,background:"#fff"},children:(0,N.jsxs)(h.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between",spacing:1.25,children:[(0,N.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1.25,flexWrap:"wrap",children:[(0,N.jsx)($,{color:q,size:32,children:(0,N.jsx)(k.bsz,{size:18})}),(0,N.jsxs)(h.A,{children:[(0,N.jsxs)(x.A,{variant:"caption",sx:{fontWeight:800,color:B.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:["Orders \xb7 ",Y]}),(0,N.jsxs)(x.A,{variant:"body2",sx:{color:B.textPrimary,fontWeight:700},children:[we.length," riders \xb7 ",ye.orders," orders"]})]}),(0,N.jsx)(c.A,{title:"Date Filter",placement:"top",children:(0,N.jsxs)(d.A,{onClick:()=>L(!0),sx:{display:"inline-flex",alignItems:"center",gap:.75,px:1.25,py:.75,borderRadius:999,cursor:"pointer",bgcolor:H("#f59e0b"),border:"1.5px solid ".concat(V("#f59e0b")),color:"#f59e0b",fontWeight:800,fontSize:12,ml:1,transition:"all 0.18s","&:hover":{borderColor:"#f59e0b",boxShadow:"0 0 0 3px ".concat(G("#f59e0b"))}},children:[(0,N.jsx)(k.Ki0,{size:14}),R()(e).format("DD/MM/YY")," \u2013 ",R()(r).format("DD/MM/YY")]})})]}),(0,N.jsx)(d.A,{sx:{width:{xs:"100%",sm:280,lg:340},flex:{xs:"1 1 100%",sm:"0 0 auto"}},children:(0,N.jsx)(z.A,{value:ge,onChange:fe,onDebouncedChange:be,placeholder:"Search riders (ctrl+k)",sx:{m:0,width:"100%",borderRadius:999,bgcolor:H(q),"& fieldset":{borderColor:V(q),borderWidth:1.5},"&:hover fieldset":{borderColor:q},"&.Mui-focused fieldset":{borderColor:q,borderWidth:2},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(G(q))}}})})]})}),(0,N.jsxs)(a.A,{elevation:0,sx:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:B.radiusCard/8,borderBottomRightRadius:B.radiusCard/8,border:"1px solid",borderColor:B.borderSubtle,overflow:"hidden",background:"#fff"},children:[(0,N.jsx)(p.A,{sx:{maxHeight:{xs:"calc(100vh - 220px)",md:"calc(100vh - 190px)"},"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-thumb":{backgroundColor:V(q),borderRadius:8,"&:hover":{backgroundColor:q}},"&::-webkit-scrollbar-track":{backgroundColor:B.surfaceAlt}},children:(0,N.jsxs)(m.A,{stickyHeader:!0,sx:{minWidth:{xs:880,md:1080}},children:[(0,N.jsx)(A.A,{children:(0,N.jsxs)(g.A,{sx:{"& th":{backgroundColor:B.surfaceAlt,color:B.textSecondary,fontSize:{xs:10,md:11},fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(B.borderSubtle),py:{xs:1,md:1.25},px:{xs:1,md:2}}},children:[(0,N.jsx)(f.A,{children:"#"}),(0,N.jsx)(f.A,{children:"Rider"}),(0,N.jsx)(f.A,{align:"center",children:"Orders"}),(0,N.jsx)(f.A,{align:"center",children:"Pending"}),(0,N.jsx)(f.A,{align:"center",children:"Cancelled"}),(0,N.jsx)(f.A,{align:"center",children:"Delivered"}),(0,N.jsx)(f.A,{align:"center",children:"KMS"}),(0,N.jsx)(f.A,{align:"center",children:"Amount"}),(0,N.jsx)(f.A,{align:"right",children:"Action"})]})}),(0,N.jsxs)(j.A,{children:[ve&&(0,N.jsx)(T.r,{col:5}),we&&0!==we.length||ve?we.map(((t,o)=>{const s=oe===t.userid,l=Math.max(Number(t.charges)||0,Number(t.deliveryamt)||0);return(0,N.jsxs)(n.Fragment,{children:[(0,N.jsxs)(g.A,{sx:{transition:"background-color 0.15s","& td":{borderBottom:s?"none":"1px solid ".concat(B.divider),py:{xs:1,md:1.5},px:{xs:1,md:2}},"&:hover":{backgroundColor:s?"#fff":B.surfaceAlt},bgcolor:s?H(q):"transparent"},children:[(0,N.jsx)(f.A,{children:(0,N.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:B.textMuted},children:String(o+1).padStart(2,"0")})}),(0,N.jsx)(f.A,{children:(0,N.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,N.jsx)($,{color:q,size:36,children:(0,N.jsx)(k.LTk,{size:18})}),(0,N.jsxs)(h.A,{children:[(0,N.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:B.textPrimary,whiteSpace:"nowrap"},children:"".concat((null===t||void 0===t?void 0:t.firstname)||""," ").concat((null===t||void 0===t?void 0:t.lastname)||"").trim()||"\u2014"}),(0,N.jsxs)(x.A,{variant:"caption",sx:{color:B.textSecondary},children:["ID #",t.userid]})]})]})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(Q,{value:t.totalorders,color:q,icon:(0,N.jsx)(k.F6S,{size:11})})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(Q,{value:t.pending,color:"#f59e0b",icon:(0,N.jsx)(k.tX0,{size:11})})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(Q,{value:t.cancelled,color:"#ef4444",icon:(0,N.jsx)(k.uDv,{size:11})})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(Q,{value:t.delivered,color:"#10b981",icon:(0,N.jsx)(k.mU9,{size:11})})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsxs)(h.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,N.jsx)(J,{color:"#ef4444",icon:(0,N.jsx)(k.xI$,{size:11}),label:"".concat(Number(t.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,N.jsx)(J,{color:"#10b981",icon:(0,N.jsx)(k.xI$,{size:11}),label:"".concat(Number(t.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(J,{color:q,icon:(0,N.jsx)(k.YHz,{size:11}),label:ee(l).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})}),(0,N.jsx)(f.A,{align:"right",children:(0,N.jsxs)(h.A,{direction:"row",spacing:.75,justifyContent:"flex-end",children:[(0,N.jsx)(c.A,{title:"View planned route",placement:"top",children:(0,N.jsx)(b.A,{size:"small",onClick:()=>{pe({userid:null===t||void 0===t?void 0:t.userid,name:"".concat((null===t||void 0===t?void 0:t.firstname)||""," ").concat((null===t||void 0===t?void 0:t.lastname)||"").trim()||"Rider ".concat(null===t||void 0===t?void 0:t.userid)}),he(null),de(!0),(async t=>{Ae(!0);try{var o;const n="undefined"!==typeof window&&localStorage.getItem("userid")||0,s=0===ie?"appuserid=".concat(n):"applocationid=".concat(ie),a="".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getdeliveries/")+"?".concat(s)+"&status=all"+"&fromdate=".concat(e)+"&todate=".concat(r)+"&pageno=1&pagesize=200&keyword=&tenantid=&locationid="+"&userid=".concat(t),l=await i.A.get(a),c=(null===l||void 0===l||null===(o=l.data)||void 0===o?void 0:o.details)||[],d=e=>{const t=Number(e);return Number.isFinite(t)?t:null},x=c.map((e=>{var t,r,o,n,i;const s=d(null!==(t=e.droplat)&&void 0!==t?t:e.deliverylat),a=d(null!==(r=e.droplon)&&void 0!==r?r:e.deliverylong),l=d(null!==(o=e.pickuplat)&&void 0!==o?o:e.pickuplatitude),c=d(null!==(n=null!==(i=e.pickuplon)&&void 0!==i?i:e.pickuplong)&&void 0!==n?n:e.picklongitude);return null==s||null==a?null:{step:Number(e.step)||0,orderid:e.orderid,deliveryid:e.deliveryid,customer:e.deliverycustomer||e.customername||"Order ".concat(e.orderid),address:e.deliveryaddress||e.deliverysuburb||"",dropLat:s,dropLng:a,pickLat:null!==l&&void 0!==l?l:null,pickLng:null!==c&&void 0!==c?c:null,expectedTime:e.expecteddeliverytime||null}})).filter(Boolean).sort(((e,t)=>e.step-t.step));he(x)}catch(n){(0,O.k)(null===n||void 0===n?void 0:n.message,"error",2e3),he([])}finally{Ae(!1)}})(null===t||void 0===t?void 0:t.userid)},sx:{bgcolor:U("#0ea5e9"),color:"#0ea5e9",border:"1px solid ".concat(V("#0ea5e9")),"&:hover":{bgcolor:"#0ea5e9",color:"#fff"}},children:(0,N.jsx)(k.Cd7,{size:14})})}),(0,N.jsx)(c.A,{title:s?"Collapse breakdown":"Expand breakdown",placement:"top",children:(0,N.jsx)(b.A,{size:"small",onClick:()=>{const o=!s;ne(o?t.userid:null),o&&(async t=>{le(!0);try{const o=await i.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/deliveries/getreportsummary/?&fromdate=").concat(e,"&todate=").concat(r,"&userid=").concat(t));re(o.data.details)}catch(o){console.log("tenantRes",o)}finally{le(!1)}})(t.userid)},sx:{bgcolor:s?q:U(q),color:s?"#fff":q,border:"1px solid ".concat(V(q)),"&:hover":{bgcolor:q,color:"#fff"}},children:s?(0,N.jsx)(k.Xbk,{size:16}):(0,N.jsx)(k.j1Q,{size:16})})})]})})]}),s&&(0,N.jsx)(g.A,{children:(0,N.jsx)(f.A,{colSpan:9,sx:{p:0,borderBottom:"1px solid ".concat(B.divider),bgcolor:H(q)},children:(0,N.jsx)(v.A,{in:s,timeout:"auto",unmountOnExit:!0,children:(0,N.jsx)(d.A,{sx:{p:{xs:1,md:2}},children:(0,N.jsxs)(a.A,{elevation:0,sx:{borderRadius:B.radiusCard/8,border:"1px solid",borderColor:B.borderSubtle,overflow:"hidden",boxShadow:B.shadowSoft},children:[(0,N.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:1,sx:{px:2,py:1.25,background:"linear-gradient(135deg, ".concat(H(q)," 0%, ").concat(H(X)," 100%)"),borderBottom:"1px solid ".concat(B.borderSubtle)},children:[(0,N.jsx)($,{color:q,size:28,selected:!0,children:(0,N.jsx)(k.Itr,{size:14})}),(0,N.jsxs)(x.A,{variant:"caption",sx:{fontWeight:800,color:B.textPrimary,letterSpacing:.6,textTransform:"uppercase"},children:["Tenant Breakdown \xb7 ","".concat((null===t||void 0===t?void 0:t.firstname)||""," ").concat((null===t||void 0===t?void 0:t.lastname)||"").trim()]})]}),(0,N.jsxs)(m.A,{size:"small",children:[(0,N.jsx)(A.A,{children:(0,N.jsxs)(g.A,{sx:{"& th":{backgroundColor:B.surfaceAlt,color:B.textSecondary,fontSize:10,fontWeight:800,letterSpacing:.6,textTransform:"uppercase",whiteSpace:"nowrap",borderBottom:"1px solid ".concat(B.borderSubtle),py:1,px:1.5}},children:[(0,N.jsx)(f.A,{children:"#"}),(0,N.jsx)(f.A,{children:"Client"}),(0,N.jsx)(f.A,{align:"center",children:"All"}),(0,N.jsx)(f.A,{align:"center",children:"Pending"}),(0,N.jsx)(f.A,{align:"center",children:"Completed"}),(0,N.jsx)(f.A,{align:"center",children:"Cancelled"}),(0,N.jsx)(f.A,{align:"center",children:"KMS"}),(0,N.jsx)(f.A,{align:"center",children:"Amount"})]})}),(0,N.jsxs)(j.A,{children:[ae&&(0,N.jsx)(T.r,{col:4}),ae||te&&0!==te.length?null===te||void 0===te?void 0:te.map(((e,t)=>(0,N.jsxs)(g.A,{sx:{"& td":{borderBottom:"1px solid ".concat(B.divider),py:1,px:1.5},"&:hover":{backgroundColor:B.surfaceAlt}},children:[(0,N.jsx)(f.A,{children:(0,N.jsx)(x.A,{variant:"caption",sx:{fontWeight:700,color:B.textMuted},children:String(t+1).padStart(2,"0")})}),(0,N.jsx)(f.A,{children:(0,N.jsxs)(h.A,{direction:"row",alignItems:"center",spacing:.75,children:[(0,N.jsx)($,{color:"#0ea5e9",size:24,children:(0,N.jsx)(k.Itr,{size:12})}),(0,N.jsx)(x.A,{variant:"subtitle2",sx:{fontWeight:700,color:B.textPrimary,whiteSpace:"nowrap"},children:e.tenantname||"\u2014"})]})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(Q,{value:e.totalorders,color:q,icon:(0,N.jsx)(k.F6S,{size:10})})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(Q,{value:e.deliveriespending,color:"#f59e0b",icon:(0,N.jsx)(k.tX0,{size:10})})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(Q,{value:e.deliveriescompleted,color:"#10b981",icon:(0,N.jsx)(k.mU9,{size:10})})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(Q,{value:e.deliveriescancelled,color:"#ef4444",icon:(0,N.jsx)(k.uDv,{size:10})})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsxs)(h.A,{direction:"column",spacing:.5,alignItems:"center",children:[(0,N.jsx)(J,{color:"#ef4444",icon:(0,N.jsx)(k.xI$,{size:10}),label:"".concat(Number(e.kms||0).toFixed(2)," km"),tooltip:"KMS"}),(0,N.jsx)(J,{color:"#10b981",icon:(0,N.jsx)(k.xI$,{size:10}),label:"".concat(Number(e.cumulativekms||0).toFixed(2)," km"),tooltip:"Actual KMS"})]})}),(0,N.jsx)(f.A,{align:"center",children:(0,N.jsx)(J,{color:q,icon:(0,N.jsx)(k.YHz,{size:10}),label:ee(Math.max(Number(e.charges)||0,Number(e.deliveryamt)||0)).replace("\u20b9","").trim(),tooltip:"Total Amount",minWidth:100})})]},"".concat(e.tenantname,"-").concat(t)))):(0,N.jsx)(g.A,{children:(0,N.jsx)(f.A,{colSpan:8,sx:{py:3},children:(0,N.jsx)(x.A,{variant:"caption",sx:{color:B.textMuted,textAlign:"center",display:"block"},children:"No tenant breakdown available."})})})]})]})]})})})})})]},t.userid||o)})):(0,N.jsx)(g.A,{children:(0,N.jsx)(f.A,{colSpan:9,sx:{py:6},children:(0,N.jsxs)(h.A,{alignItems:"center",spacing:1.5,children:[(0,N.jsx)(l.A,{sx:{width:64,height:64,bgcolor:U("#94a3b8"),color:B.textMuted},children:(0,N.jsx)(k.bsz,{size:28})}),(0,N.jsx)(x.A,{variant:"subtitle1",sx:{fontWeight:700,color:B.textPrimary},children:"No riders to show"}),(0,N.jsx)(x.A,{variant:"caption",sx:{color:B.textSecondary},children:ge?"Try a different keyword.":"Pick a zone or date range to load the summary."})]})})})]})]})}),we.length>0&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(S.A,{}),(0,N.jsxs)(h.A,{direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:1.5,sx:{px:2,py:1.5,background:"linear-gradient(135deg, ".concat(H(q)," 0%, ").concat(H(X)," 100%)")},children:[(0,N.jsx)(x.A,{variant:"caption",sx:{fontWeight:800,color:B.textSecondary,letterSpacing:.6,textTransform:"uppercase"},children:"Grand Total"}),(0,N.jsx)(w.A,{label:ee(Ce),sx:{fontWeight:800,fontSize:13,color:"#fff",background:"linear-gradient(135deg, ".concat(q," 0%, ").concat(X," 100%)"),boxShadow:"0 6px 16px ".concat(G(q))}})]})]})]}),(0,N.jsx)(y.A,{maxWidth:"xl",fullScreen:!0,open:ce,onClose:()=>{de(!1),he(null),pe(null)},children:(0,N.jsx)(C.A,{sx:{p:0,height:"100vh"},children:(0,N.jsx)(F,{details:xe,loading:me,riderName:null===ue||void 0===ue?void 0:ue.name,dateRange:"".concat(R()(e).format("DD/MM/YY")," \u2013 ").concat(R()(r).format("DD/MM/YY")),onClose:()=>{de(!1),he(null),pe(null)}})})}),(0,N.jsx)(I.A,{open:W,onClose:()=>L(!1),onSelect:e=>{t(e.startDate),o(e.endDate),K(e.label)}})]})}},35678:(e,t,r)=>{r.d(t,{A:()=>v});var o=r(9950),n=r(96583),i=r(40033),s=r(82053),a=r(28170),l=r(93230),c=r(82223),d=r(55916),x=r(4159),h=r.n(x),u=r(56712),p=r(81417),m=r(96600),A=r(53132),g=r(94289),f=r(57326),j=r(50624),b=r(44414);const v=e=>{let{open:t,onClose:r,onSelect:x}=e;const[v,S]=(0,o.useState)(null);return(0,b.jsxs)(n.A,{open:t,onClose:r,children:[(0,b.jsx)(i.A,{align:"left",children:(0,b.jsx)(s.A,{variant:"h4",children:"Select Filter Options"})}),(0,b.jsx)(a.A,{sx:{width:"100%"},className:"datedialog",children:(0,b.jsx)(d.U,{open:t,toggle:r,id:"daterange1",onChange:e=>{S({startDate:h()(e.startDate).format("YYYY-MM-DD"),endDate:h()(e.endDate).format("YYYY-MM-DD"),label:e.label||"custom"})},definedRanges:[{label:"Today",startDate:new Date,endDate:new Date},{label:"Yesterday",startDate:(0,u.A)(new Date,-1),endDate:(0,u.A)(new Date,-1)},{label:"Tomorrow",startDate:(0,u.A)(new Date,1),endDate:(0,u.A)(new Date,1)},{label:"This Week",startDate:(0,p.A)(new Date),endDate:(0,m.A)(new Date)},{label:"Last Week",startDate:(0,p.A)((0,A.A)(new Date,-1)),endDate:(0,m.A)((0,A.A)(new Date,-1))},{label:"Last 7 Days",startDate:(0,A.A)(new Date,-1),endDate:new Date},{label:"This Month",startDate:(0,g.A)(new Date),endDate:(0,f.A)(new Date)},{label:"Last Month",startDate:(0,g.A)((0,j.A)(new Date,-1)),endDate:(0,f.A)((0,j.A)(new Date,-1))}]})}),(0,b.jsx)(l.A,{direction:"row",justifyContent:"flex-end",sx:{width:"100%",p:2},children:(0,b.jsx)(c.A,{variant:"contained",size:"small",onClick:()=>{v?(x(v),r()):r()},children:"OK"})})]})}},46639:(e,t,r)=>{r.d(t,{A:()=>E});var o=r(57528),n=r(98587),i=r(58168),s=r(9950),a=r(72004),l=r(3484),c=r(88283),d=r(89548),x=r(18463),h=r(59254),u=r(45558),p=r(1614);function m(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,u.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var A,g,f,j,b=r(44414);const v=["className","color","disableShrink","size","style","thickness","value","variant"];let S,w,y,C;const k=44,D=(0,c.i7)(S||(S=A||(A=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),R=(0,c.i7)(w||(w=g||(g=(0,o.A)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),_=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,i.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,c.AH)(y||(y=f||(f=(0,o.A)(["\n animation: "," 1.4s linear infinite;\n "]))),D)})),P=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),I=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,i.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,c.AH)(C||(C=j||(j=(0,o.A)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),R)})),E=s.forwardRef((function(e,t){const r=(0,x.b)({props:e,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:c=!1,size:h=40,style:u,thickness:p=3.6,value:A=0,variant:g="indeterminate"}=r,f=(0,n.A)(r,v),j=(0,i.A)({},r,{color:s,disableShrink:c,size:h,thickness:p,value:A,variant:g}),S=(e=>{const{classes:t,variant:r,color:o,disableShrink:n}=e,i={root:["root",r,"color".concat((0,d.A)(o))],svg:["svg"],circle:["circle","circle".concat((0,d.A)(r)),n&&"circleDisableShrink"]};return(0,l.A)(i,m,t)})(j),w={},y={},C={};if("determinate"===g){const e=2*Math.PI*((k-p)/2);w.strokeDasharray=e.toFixed(3),C["aria-valuenow"]=Math.round(A),w.strokeDashoffset="".concat(((100-A)/100*e).toFixed(3),"px"),y.transform="rotate(-90deg)"}return(0,b.jsx)(_,(0,i.A)({className:(0,a.A)(S.root,o),style:(0,i.A)({width:h,height:h},y,u),ownerState:j,ref:t,role:"progressbar"},C,f,{children:(0,b.jsx)(P,{className:S.svg,ownerState:j,viewBox:"".concat(22," ").concat(22," ").concat(k," ").concat(k),children:(0,b.jsx)(I,{className:S.circle,style:w,ownerState:j,cx:k,cy:k,r:(k-p)/2,fill:"none",strokeWidth:p})})}))}))},56311:(e,t,r)=>{r.d(t,{A:()=>u});var o=r(89379),n=r(9950),i=r(2660),s=r(2046),a=r(83274),l=r(25333),c=r(97125),d=r(7762),x=r(52097),h=r(44414);const u=e=>{let{value:t,onChange:r,onDebouncedChange:u,debounceTime:p=500,placeholder:m="Search (ctrl+k)",sx:A}=e;const g=(0,n.useRef)(null),[f]=(0,x.d7)(t,p);return(0,n.useEffect)((()=>{u&&u(f)}),[f,u]),(0,n.useEffect)((()=>{const e=e=>{var t;"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),null===(t=g.current)||void 0===t||t.focus());"Escape"===e.key&&document.activeElement===g.current&&g.current.blur()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,h.jsx)(i.A,{sx:(0,o.A)({},A),inputRef:g,placeholder:m,autoComplete:"off",value:t,fullWidth:!0,onChange:e=>r(e.target.value),startAdornment:(0,h.jsx)(s.A,{position:"start",sx:{mr:-.5},children:(0,h.jsx)(c.A,{})}),endAdornment:(0,h.jsx)(a.A,{title:"Clear",children:(0,h.jsx)(l.A,{sx:{visibility:t?"visible":"hidden"},onClick:()=>r(""),children:(0,h.jsx)(d.A,{})})})})}},59212:(e,t,r)=>{r.d(t,{A:()=>h});var o=r(89379),n=r(9950),i=r(93230),s=r(41413),a=r(77922),l=r(29925),c=r(26910),d=r(31222),x=r(44414);const h=(0,n.forwardRef)(((e,t)=>{let{setAppId:r,setLocoName:h,setPage:u,sx:p,textfeildSx:m,textfieldSx:A,pill:g=!1,accentColor:f="#6366f1",icon:j,placeholder:b="Select Zone",paperComponent:v}=e;const[S,w]=(0,n.useState)(JSON.parse(localStorage.getItem("applocations")||"[]"));(0,n.useEffect)((()=>{0===S.length&&(async()=>{try{const e=localStorage.getItem("userid");if(!e)return;const t=await c.A.get("".concat("https://jupiter.nearle.app/live/api/v1","/partners/getlocations/?userid=").concat(e));if(t.data.status){const e=[...t.data.details,{locationname:"All",applocationid:0}];localStorage.setItem("applocations",JSON.stringify(e)),w(e)}}catch(e){console.error("Error fetching locations in LocationAutocomplete:",e)}})()}),[S.length]);const y=e=>"".concat(f).concat(e),C=y("08"),k=y("26"),D=y("55"),R=y("18"),_=g?{cursor:"pointer","& .MuiOutlinedInput-root":{borderRadius:"999px",bgcolor:C,fontWeight:600,color:"#0f172a",paddingRight:"8px",cursor:"pointer",transition:"border-color 0.15s, box-shadow 0.15s, background-color 0.2s","& fieldset":{borderColor:D,borderWidth:1.5},"&:hover fieldset":{borderColor:f},"&.Mui-focused":{boxShadow:"0 0 0 3px ".concat(k)},"&.Mui-focused fieldset":{borderColor:f,borderWidth:2}},"& .MuiAutocomplete-endAdornment .MuiSvgIcon-root":{color:f}}:{},P=g&&(0,x.jsx)(i.A,{direction:"row",alignItems:"center",spacing:.75,sx:{pl:.5,mr:.25,flexShrink:0},children:(0,x.jsx)(s.A,{sx:{width:24,height:24,bgcolor:R,color:f,transition:"background-color 0.15s, color 0.15s"},children:j||(0,x.jsx)(d.HPi,{size:14})})});return(0,x.jsx)(a.A,{id:"location-autocomplete",options:S||[],getOptionLabel:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.locationname)&&void 0!==t?t:""},PaperComponent:v,sx:(0,o.A)({},p),onChange:(e,t,o)=>{"clear"===o?(null===r||void 0===r||r(0),null===h||void 0===h||h(""),null===u||void 0===u||u(0)):t&&(null===r||void 0===r||r(t.applocationid),null===h||void 0===h||h(t.locationname),null===u||void 0===u||u(0))},renderInput:e=>g?(0,x.jsx)(l.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,placeholder:b,InputProps:(0,o.A)((0,o.A)({},e.InputProps),{},{startAdornment:P}),sx:(0,o.A)((0,o.A)({},_),A||m||{})})):(0,x.jsx)(l.A,(0,o.A)((0,o.A)({},e),{},{inputRef:t,label:"Select Zones",sx:(0,o.A)({},A||m||{})}))})}))},96646:(e,t,r)=>{r.d(t,{r:()=>l});var o=r(9213),n=r(21671),i=r(82917),s=r(93230),a=r(44414);const l=e=>{let{rowsPerPage:t=5,col:r=1}=e;return(0,a.jsx)(a.Fragment,{children:Array.from(new Array(t)).map(((e,t)=>(0,a.jsxs)(o.A,{children:[(0,a.jsx)(n.A,{children:(0,a.jsx)(i.A,{variant:"circular",width:24,height:24})}),(0,a.jsx)(n.A,{children:(0,a.jsx)(i.A,{variant:"text",width:30})}),Array.from({length:r}).map(((e,t)=>(0,a.jsx)(n.A,{children:(0,a.jsxs)(s.A,{spacing:.5,children:[(0,a.jsx)(i.A,{variant:"text",width:100}),(0,a.jsx)(i.A,{variant:"text",width:80})]})},t))),(0,a.jsx)(n.A,{children:(0,a.jsx)(i.A,{variant:"text",width:150})}),(0,a.jsx)(n.A,{children:(0,a.jsx)(i.A,{variant:"rounded",width:60,height:24})}),(0,a.jsx)(n.A,{align:"center",children:(0,a.jsxs)(s.A,{direction:"row",spacing:1,justifyContent:"flex-end",children:[(0,a.jsx)(i.A,{variant:"circular",width:28,height:28}),(0,a.jsx)(i.A,{variant:"circular",width:28,height:28})]})})]},t)))})}}}]);