Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/static.3/js/
Upload File :
Current File : /home/infinitibizsol/.trash/static.3/js/372.dc82ad79.chunk.js

"use strict";(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[372],{6372:(e,t,i)=>{i.r(t),i.d(t,{default:()=>x});var n=i(5043),l=i(9252),o=i(8911),r=i(5865),a=i(8977),s=i(688),d=i(2143),c=(i(7643),i(3216)),u=i(9456),v=i(8288),h=(i(7858),i(5869)),p=i(9907),m=i(579);const b=[{value:"year",label:"Year: Newest First",condition:"DESC"},{value:"year",label:"Year: Oldest First",condition:"ASC"},{value:"mileage",label:"Mileage: Highest First",condition:"DESC"},{value:"mileage",label:"Mileage: Lowest First",condition:"ASC"}];function x(){(0,c.Zp)();const e=(0,u.wA)(),{state:t}=(0,c.zy)(),[i,x]=(0,n.useState)(!1),[g,j]=(0,n.useState)([]),[y,A]=(0,n.useState)(!1),[f,_]=(0,n.useState)(null),[w,C]=(0,n.useState)(""),{vehiclesData:S}=(0,u.d4)((e=>e.users)),{assignVehicleWithStatus:k}=(0,u.d4)((e=>e.users)),{userInfo:D}=(0,u.d4)((e=>e.auth));(0,n.useEffect)((()=>{e((0,p.s_)({user_id:null===D||void 0===D?void 0:D.user_id,sortBy:"year",orderDirection:"DESC"}))}),[]);return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(l.A,{children:[(0,m.jsx)(o.A,{direction:"row",alignItems:"center",justifyContent:"center",fontWeight:"bold",borderBottom:"2px solid gray",mb:3,children:(0,m.jsxs)(r.A,{variant:"h4",mb:5,pb:3,children:[null===t||void 0===t?void 0:t.startDate," - ",null===t||void 0===t?void 0:t.endDate]})}),(0,m.jsx)(o.A,{direction:"row",alignItems:"center",justifyContent:"center",mb:5,children:(0,m.jsxs)(r.A,{variant:"h5",spacing:5,children:[(0,m.jsxs)("strong",{children:[" ",null===t||void 0===t?void 0:t.name]})," - ",null===S||void 0===S?void 0:S.length," ","units"]})}),(0,m.jsx)(o.A,{direction:"row",flexWrap:"wrap-reverse",alignItems:"center",justifyContent:"space-between",sx:{mb:5},children:(0,m.jsxs)(o.A,{children:[(0,m.jsxs)(a.A,{color:"inherit",disableRipple:!0,onClick:e=>{_(e.currentTarget)},endIcon:(0,m.jsx)(h.A,{icon:f?"eva:chevron-up-fill":"eva:chevron-down-fill"}),children:["Sort By:\xa0",(0,m.jsx)(r.A,{component:"span",variant:"subtitle2",sx:{color:"text.secondary",borderBottom:"1px solid black"},children:w})]}),(0,m.jsx)(s.A,{keepMounted:!0,anchorEl:f,open:Boolean(f),onClose:()=>{_(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:b.map((t=>(0,m.jsx)(d.A,{selected:t.value,onClick:()=>{return i=t.value,n=t.condition,l=t.label,e((0,p.s_)({user_id:null===D||void 0===D?void 0:D.user_id,orderDirection:n,sortBy:i})),C(l),void _(null);var i,n,l},sx:{typography:"body2"},children:t.label},t.value+"_"+t.condition)))})]})}),(0,m.jsx)(v.A,{allVehiclesWithStatus:k,weekId:null===t||void 0===t?void 0:t.weekId,auctioneerId:null===t||void 0===t?void 0:t.auctioneerId,opportunityId:null===t||void 0===t?void 0:t.opportunity,name:null===t||void 0===t?void 0:t.name,totalUnits:null===t||void 0===t?void 0:t.totalUnits,startDate:null===t||void 0===t?void 0:t.startDate,endDate:null===t||void 0===t?void 0:t.endDate})]})})}}}]);
//# sourceMappingURL=372.dc82ad79.chunk.js.map

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists