Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/static/js/
Upload File :
Current File : /home/infinitibizsol/.trash/static/js/453.03ce48a6.chunk.js

(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[453],{34:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return $}});var l=n(4165),t=n(3433),o=n(5861),d=n(1413),r=n(9439),a=n(763),s=n(2791),u=n(890),c=n(4518),v=n(1614),h=n(3767),x=n(7621),f=n(9281),g=n(9836),p=n(3382),Z=n(5855),j=n(3994),m=n(5527),_=n(6812),w=n(9617),b=n(3786),y=n(3609),S=n(163),k=n(6890),C=n(720),I=n(4554),F=n(184),U={border:0,margin:-1,padding:0,width:"1px",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",clip:"rect(0 0 0 0)"};function z(e){var i=e.order,n=e.orderBy,l=(e.rowCount,e.headLabel),t=(e.numSelected,e.onRequestSort);e.onSelectAllClick;return(0,F.jsx)(k.Z,{children:(0,F.jsx)(Z.Z,{children:l.map((function(e){return(0,F.jsx)(j.Z,{align:e.alignRight?"right":"left",sortDirection:n===e.id&&i,children:(0,F.jsxs)(C.Z,{hideSortIcon:!0,active:n===e.id,direction:n===e.id?i:"asc",onClick:(l=e.id,function(e){t(e,l)}),children:[e.label,n===e.id?(0,F.jsx)(I.Z,{sx:(0,d.Z)({},U),children:"desc"===i?"sorted descending":"sorted ascending"}):null]})},e.id);var l}))})})}var R=n(6934),L=n(2065),V=n(4663),N=n(8029),D=n(3466),P=n(1715),O=n(9434),A=n(8400),T=[{value:"user",label:"Wholesalers"},{value:"auction",label:"Auction"},{value:"condition_light",label:"Condition Light"},{value:"sale_status",label:"Sale Status"}];function W(e){var i=e.weekId,n=e.auctioneerId,l=(0,s.useState)(null),t=(0,r.Z)(l,2),o=t[0],d=t[1],a=(0,s.useState)("Wholesalers"),v=(0,r.Z)(a,2),h=v[0],x=v[1],f=(0,O.I0)();return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(c.Z,{color:"inherit",disableRipple:!0,onClick:function(e){d(e.currentTarget)},endIcon:(0,F.jsx)(y.Z,{icon:o?"eva:chevron-up-fill":"eva:chevron-down-fill"}),children:["Filter by \xa0",(0,F.jsx)(u.Z,{component:"span",variant:"subtitle2",sx:{color:"text.secondary"},children:h})]}),(0,F.jsx)(P.Z,{keepMounted:!0,anchorEl:o,open:Boolean(o),onClose:function(){d(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:T.map((function(e){return(0,F.jsx)(b.Z,{selected:"auctioneer"===e.value,onClick:function(){return l=e.value,t=e.label,"sale_status"===l?f((0,A.im)({auctioneerId:n,weekId:i})):"condition_light"===l?f((0,A.Ow)({auctioneerId:n,weekId:i})):"user"===l?f((0,A.v6)({auctioneerId:n,weekId:i})):"auction"===l&&f((0,A.fp)({auctioneerId:n,weekId:i})),x(t),void d(null);var l,t},sx:{typography:"body2"},children:e.label},e.value+"_"+e.label)}))})]})}var E=(0,R.ZP)(V.Z)((function(e){return{height:96,display:"flex",justifyContent:"space-between",padding:e.theme.spacing(0,1,0,3)}})),M=(0,R.ZP)(N.Z)((function(e){var i=e.theme;return{width:240,transition:i.transitions.create(["box-shadow","width"],{easing:i.transitions.easing.easeInOut,duration:i.transitions.duration.shorter}),"&.Mui-focused":{width:320,boxShadow:i.customShadows.z8},"& fieldset":{borderWidth:"1px !important",borderColor:"".concat((0,L.Fq)(i.palette.grey[500],.32)," !important")}}}));function B(e){var i=e.numSelected,n=e.filterName,l=e.searchValue,t=e.weekId,o=e.auctioneerId;return(0,F.jsx)(E,{sx:(0,d.Z)({},i>0&&{color:"primary.main",bgcolor:"primary.lighter"}),children:i>0?(0,F.jsxs)(u.Z,{component:"div",variant:"subtitle1",children:[i," selected"]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(M,{value:n,onChange:l,placeholder:"Search ...",startAdornment:(0,F.jsx)(D.Z,{position:"start",children:(0,F.jsx)(y.Z,{icon:"eva:search-fill",sx:{color:"text.disabled",width:20,height:20}})})}),(0,F.jsx)(W,{weekId:t,auctioneerId:o})]})})}var q=n(7689),Y=n(4802),G=n(9851),H=n.n(G),J=n(7267);function K(e,i,n){return i[n]<e[n]?-1:i[n]>e[n]?1:0}function Q(e,i){return"desc"===e?function(e,n){return K(e,n,i)}:function(e,n){return-K(e,n,i)}}function X(e,i,n){var l=null===e||void 0===e?void 0:e.map((function(e,i){return[e,i]}));return null===l||void 0===l||l.sort((function(e,n){var l=i(e[0],n[0]);return 0!==l?l:e[1]-n[1]})),n?(0,a.filter)(e,(function(e){var i;return-1!==(null===e||void 0===e||null===(i=e.first_name)||void 0===i?void 0:i.toLowerCase().indexOf(n.toLowerCase()))})):null===l||void 0===l?void 0:l.map((function(e){return e[0]}))}var $=function(){var e,i,n,a,k,C,I,U,R,L,V,N,D,P,A,T,W,E,M,G,K,$,ee,ie=(0,s.useState)(""),ne=(0,r.Z)(ie,2),le=(ne[0],ne[1],(0,s.useState)([])),te=(0,r.Z)(le,2),oe=te[0],de=te[1],re=(0,s.useState)([]),ae=(0,r.Z)(re,2),se=ae[0],ue=ae[1],ce=(0,s.useState)({}),ve=(0,r.Z)(ce,2),he=ve[0],xe=ve[1],fe=(0,s.useState)({}),ge=(0,r.Z)(fe,2),pe=ge[0],Ze=ge[1],je=(0,q.s0)(),me=((0,O.I0)(),(0,O.v9)((function(e){return e.auth}))),_e=me.userInfo,we=(0,O.v9)((function(e){return e.users})),be=we.userData,ye=(0,s.useState)(""),Se=(0,r.Z)(ye,2),ke=Se[0],Ce=Se[1],Ie=(0,s.useState)(""),Fe=(0,r.Z)(Ie,2),Ue=Fe[0],ze=Fe[1],Re=(0,q.TH)().state;(0,s.useEffect)((function(){Re||je("/dashboard/app");var e=[],i={},n={};if(ue(X(null===be||void 0===be?void 0:be.data,Q(qe,$e),ke)),"whole_saler"===(null===be||void 0===be?void 0:be.filter_type)&&(e=[{id:"id",label:"ID",alignRight:!1},{id:"firstName",label:"First Name",alignRight:!1},{id:"lastName",label:"Last Name",alignRight:!1},{id:"vehicles",label:"Vehicles",alignRight:!1},{id:"inventory",label:"Inventory",alignRight:!1},{id:""}]),"condition_light"===(null===be||void 0===be?void 0:be.filter_type)){var l,t={redUnits:0,yellowUnits:0,greenUnits:0,uncategorizedUnits:0};null===be||void 0===be||null===(l=be.data)||void 0===l||l.map((function(e){1===(null===e||void 0===e?void 0:e.condition_light)&&(t.redUnits=null===e||void 0===e?void 0:e.units),2===(null===e||void 0===e?void 0:e.condition_light)&&(t.yellowUnits=null===e||void 0===e?void 0:e.units),3===(null===e||void 0===e?void 0:e.condition_light)&&(t.greenUnits=null===e||void 0===e?void 0:e.units)})),n={red:{id:"red",label:(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,F.jsx)(J.Z,{style:{color:"#FF0000",fontSize:"30px",marginRight:"5px"}}),(0,F.jsx)(u.Z,{sx:{color:"#FF0000",fontWeight:"bold"},children:"Red Status"})]}),units:null===t||void 0===t?void 0:t.redUnits,view:(0,F.jsx)("div",{children:(0,F.jsx)(c.Z,{disabled:!t.redUnits>0,variant:"contained",onClick:function(){return Le({filter:"condition_light",condition_light:1,auctioneer_id:null===_e||void 0===_e?void 0:_e.user_id,week_id:Re.week})},children:"View"})})},yellow:{id:"yellow",label:(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,F.jsx)(J.Z,{style:{color:"#FFFF00",fontSize:"30px",marginRight:"5px"}}),(0,F.jsx)(u.Z,{sx:{color:"#FFFF00",fontWeight:"bold"},children:"Yellow Status"})]}),units:t.yellowUnits,view:(0,F.jsx)("div",{children:(0,F.jsx)(c.Z,{disabled:!t.yellowUnits>0,variant:"contained",onClick:function(){return Le({filter:"condition_light",condition_light:2,auctioneer_id:null===_e||void 0===_e?void 0:_e.user_id,week_id:Re.week})},children:"View"})})},green:{id:"green",label:(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,F.jsx)(J.Z,{style:{color:"#008000",fontSize:"30px",marginRight:"5px"}}),(0,F.jsx)(u.Z,{sx:{color:"#008000",fontWeight:"bold"},children:"Green Status"})]}),units:t.greenUnits,view:(0,F.jsx)("div",{children:(0,F.jsx)(c.Z,{disabled:!t.greenUnits>0,variant:"contained",onClick:function(){return Le({filter:"condition_light",condition_light:3,auctioneer_id:null===_e||void 0===_e?void 0:_e.user_id,week_id:Re.week})},children:"View"})})},uncategorized:{id:"uncategorized",label:(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,F.jsx)(J.Z,{style:{color:"gray",fontSize:"30px",marginRight:"5px"}}),(0,F.jsx)(u.Z,{sx:{color:"gray",fontWeight:"bold"},children:"Uncategorized"})]}),units:t.uncategorizedUnits,view:(0,F.jsx)("div",{children:(0,F.jsx)(c.Z,{disabled:!t.uncategorizedUnits>0,variant:"contained",onClick:function(){return Le("Uncategorized Light")},children:"View"})})}},e=[{id:"conditionLight",label:"Conditon Light"},{id:"conditionLightUnits",label:"Units"},{id:"viewConditionLight",label:"View"}]}if("auction"===(null===be||void 0===be?void 0:be.filter_type)&&(e=[{id:"name",label:"Name"},{id:"units",label:"Units"},{id:"viewAuction",label:"View"}]),"sale_status"===(null===be||void 0===be?void 0:be.filter_type)){var o="true"===(null===be||void 0===be?void 0:be.data[0].sale_status)?null===be||void 0===be?void 0:be.data[0].units:null===be||void 0===be?void 0:be.data[1].units,d="false"===(null===be||void 0===be?void 0:be.data[0].sale_status)?null===be||void 0===be?void 0:be.data[0].units:null===be||void 0===be?void 0:be.data[1].units;i={sold:{id:"sold",label:(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,F.jsx)(J.Z,{style:{color:"#008000",fontSize:"30px",marginRight:"5px"}}),(0,F.jsx)(u.Z,{sx:{color:"#008000",fontWeight:"bold"},children:"Sold"})]}),units:o,view:(0,F.jsx)("div",{children:(0,F.jsx)(c.Z,{disabled:!o>0,variant:"contained",onClick:function(){return Le({filter:"sales_status",sale_status:1,auctioneer_id:null===_e||void 0===_e?void 0:_e.user_id,week_id:Re.week,viewType:"Sold"})},children:"View"})})},notSold:{id:"notSold",label:(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,F.jsx)(J.Z,{style:{color:"#FF0000",fontSize:"30px",marginRight:"5px"}}),(0,F.jsx)(u.Z,{sx:{color:"#FF0000",fontWeight:"bold"},children:"Not Sold"})]}),units:d,view:(0,F.jsx)("div",{children:(0,F.jsx)(c.Z,{disabled:!d>0,variant:"contained",onClick:function(){return Le({filter:"sales_status",sale_status:0,auctioneer_id:null===_e||void 0===_e?void 0:_e.user_id,week_id:Re.week,viewType:"Not Sold"})},children:"View"})})}},e=[{id:"saleStatus",label:"Sale Status"},{id:"saleUnits",label:"Units"},{id:"viewSale",label:"View"}]}(null===be||void 0===be?void 0:be.filter_type)&&ze(null===be||void 0===be?void 0:be.filter_type),de(e),xe(i),Ze(n)}),[be]);var Le=function(e){je("/dashboard/app/users/cars",{state:(0,d.Z)((0,d.Z)({},e),{},{startDate:null===Re||void 0===Re?void 0:Re.startDate,endDate:null===Re||void 0===Re?void 0:Re.endDate})})},Ve=function(){var e=(0,o.Z)((0,l.Z)().mark((function e(){var i,n,o,d,r,a,s,u,c;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(console.log(Ue),"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8",".xlsx","Users and Cars Data",n=H().utils.book_new(),(o=[]).push(["First Name","Last Name"].concat(["Vin","Year","Make","Model","Color","Trim","Mileage","Reserve","Sale Status","Sale Price","Condition Light","Auction Name","Auction Fee","Lane","Run #","Announcements"])),null===be||void 0===be||null===(i=be.data)||void 0===i||i.forEach((function(e){var i=[];null!==e&&void 0!==e&&e.tblVehicles?i.push.apply(i,(0,t.Z)(e.tblVehicles)):null!==e&&void 0!==e&&e.sold_vehicles||null!==e&&void 0!==e&&e.not_sold_vehicles?i.push.apply(i,(0,t.Z)(e.sold_vehicles).concat((0,t.Z)(e.not_sold_vehicles))):(null!==e&&void 0!==e&&e.red_vehicles||null!==e&&void 0!==e&&e.yellow_vehicles||null!==e&&void 0!==e&&e.green_vehicles)&&i.push.apply(i,(0,t.Z)(e.red_vehicles).concat((0,t.Z)(e.yellow_vehicles),(0,t.Z)(e.green_vehicles))),i&&i.forEach((function(i){var n=[e.first_name,e.last_name,i.vin,i.year,i.make,i.model,i.color_name,i.trim,i.mileage,i.reserve,!0===i.sale_status?"SOLD":"NOT SOLD",i.sale_price,1===i.condition_light?"Red":2===i.condition_light?"Yellow":3===i.condition_light?"Green":"",i.auction_name,i.auction_fee,i.lane_name,i.run_no,i.announcements];o.push(n)}))})),d=H().utils.aoa_to_sheet(o),r=0;r<o[0].length;r++)a=H().utils.encode_cell({c:r,r:0}),d[a].s={font:{name:"Calibri",bold:!0,sz:12}};s=o[0].map((function(e,i){return{wch:e.length+10}})),d["!cols"]=s,H().utils.book_append_sheet(n,d,"Sheet1"),u=H().write(n,{bookType:"xlsx",type:"array"}),c=new Blob([u],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"}),Y.saveAs(c,"Users and Cars Data.xlsx");case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ne=(0,s.useState)(null),De=(0,r.Z)(Ne,2),Pe=De[0],Oe=De[1],Ae=(0,s.useState)(0),Te=(0,r.Z)(Ae,2),We=Te[0],Ee=Te[1],Me=(0,s.useState)("asc"),Be=(0,r.Z)(Me,2),qe=Be[0],Ye=Be[1],Ge=(0,s.useState)([]),He=(0,r.Z)(Ge,2),Je=He[0],Ke=He[1],Qe=(0,s.useState)("name"),Xe=(0,r.Z)(Qe,2),$e=Xe[0],ei=Xe[1],ii=(0,s.useState)(5),ni=(0,r.Z)(ii,2),li=ni[0],ti=ni[1],oi=(0,s.useState)(null),di=(0,r.Z)(oi,2),ri=(di[0],di[1],function(){var e=(0,o.Z)((0,l.Z)().mark((function e(){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),ai=We>0?Math.max(0,(1+We)*li-(null===be||void 0===be||null===(e=be.data)||void 0===e?void 0:e.length)):0,si=!(null!==se&&void 0!==se&&se.length)&&!!ke;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(v.Z,{children:[(0,F.jsxs)(h.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",mb:5,children:[(0,F.jsxs)(u.Z,{variant:"h4",sx:{mb:5},children:[null===Re||void 0===Re?void 0:Re.startDate," - ",null===Re||void 0===Re?void 0:Re.endDate]}),(0,F.jsx)(c.Z,{variant:"contained",color:"info",onClick:Ve,children:"Export To Excel"})]}),(0,F.jsxs)(x.Z,{children:[(0,F.jsx)(B,{numSelected:null===Je||void 0===Je?void 0:Je.length,filterName:ke,searchValue:function(e){var i=e.target.value;if(Ce(i),"whole_saler"===(null===be||void 0===be?void 0:be.filter_type)){var n=null===be||void 0===be?void 0:be.data.filter((function(e){var n,l;return null===e||void 0===e||null===(n=e.first_name)||void 0===n||null===(l=n.trim())||void 0===l?void 0:l.toLowerCase().includes(i.toLowerCase())}));ue(X(n,Q(qe,$e),i))}},weekId:null===Re||void 0===Re?void 0:Re.week,auctioneerId:null===_e||void 0===_e?void 0:_e.user_id}),(0,F.jsx)(S.Z,{children:(0,F.jsx)(f.Z,{sx:{minWidth:800},children:(0,F.jsxs)(g.Z,{children:[(0,F.jsx)(z,{order:qe,orderBy:$e,headLabel:oe,rowCount:null===be||void 0===be||null===(i=be.data)||void 0===i?void 0:i.length,numSelected:Je.length,onRequestSort:function(e,i){Ye($e===i&&"asc"===qe?"desc":"asc"),ei(i)},onSelectAllClick:function(e){if(e.target.checked){var i,n=null===be||void 0===be||null===(i=be.data)||void 0===i?void 0:i.map((function(e){return null===e||void 0===e?void 0:e._id}));Ke(n)}else Ke([])}}),(0,F.jsxs)(p.Z,{children:["whole_saler"===(null===be||void 0===be?void 0:be.filter_type)?null===se||void 0===se?void 0:se.slice(We*li,We*li+li).map((function(e,i){var n=e.user_id,l=e.first_name,t=e.last_name,o=e.tblVehicles,d=i+1,r=-1!==Je.indexOf(n);return(0,F.jsx)(s.Fragment,{children:(0,F.jsxs)(Z.Z,{hover:!0,tabIndex:-1,role:"checkbox",selected:r,children:[(0,F.jsx)(j.Z,{align:"left",children:d}),(0,F.jsx)(j.Z,{align:"left",children:l}),(0,F.jsx)(j.Z,{align:"left",children:t}),(0,F.jsx)(j.Z,{align:"left",children:null===o||void 0===o?void 0:o.length}),(0,F.jsxs)(j.Z,{align:"left",children:[(0,F.jsx)(c.Z,{disabled:!(null!==o&&void 0!==o&&o.length)>0,variant:"contained",onClick:function(){return Le({filter:"users",user_id:n,auctioneer_id:null===_e||void 0===_e?void 0:_e.user_id,week_id:Re.week})},children:"View"})," "]})]},n)},i)})):"condition_light"===(null===be||void 0===be?void 0:be.filter_type)?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Z.Z,{children:[(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(n=pe.red)||void 0===n?void 0:n.label}),(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(a=pe.red)||void 0===a?void 0:a.units}),(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(k=pe.red)||void 0===k?void 0:k.view})]}),(0,F.jsxs)(Z.Z,{children:[(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(C=pe.yellow)||void 0===C?void 0:C.label}),(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(I=pe.yellow)||void 0===I?void 0:I.units}),(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(U=pe.yellow)||void 0===U?void 0:U.view})]}),(0,F.jsxs)(Z.Z,{children:[(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(R=pe.green)||void 0===R?void 0:R.label}),(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(L=pe.green)||void 0===L?void 0:L.units}),(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(V=pe.green)||void 0===V?void 0:V.view})]}),(0,F.jsxs)(Z.Z,{children:[(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(N=pe.uncategorized)||void 0===N?void 0:N.label}),(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(D=pe.uncategorized)||void 0===D?void 0:D.units}),(0,F.jsx)(j.Z,{align:"left",children:null===pe||void 0===pe||null===(P=pe.uncategorized)||void 0===P?void 0:P.view})]})]}):"sale_status"===(null===be||void 0===be?void 0:be.filter_type)?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Z.Z,{children:[(0,F.jsx)(j.Z,{align:"left",children:null===he||void 0===he||null===(A=he.sold)||void 0===A?void 0:A.label}),(0,F.jsx)(j.Z,{align:"left",children:null===he||void 0===he||null===(T=he.sold)||void 0===T?void 0:T.units}),(0,F.jsx)(j.Z,{align:"left",children:null===he||void 0===he||null===(W=he.sold)||void 0===W?void 0:W.view})]}),(0,F.jsxs)(Z.Z,{children:[(0,F.jsx)(j.Z,{align:"left",children:null===he||void 0===he||null===(E=he.notSold)||void 0===E?void 0:E.label}),(0,F.jsx)(j.Z,{align:"left",children:null===he||void 0===he||null===(M=he.notSold)||void 0===M?void 0:M.units}),(0,F.jsx)(j.Z,{align:"left",children:null===he||void 0===he||null===(G=he.notSold)||void 0===G?void 0:G.view})]})]}):"auction"===(null===be||void 0===be?void 0:be.filter_type)?(0,F.jsx)(F.Fragment,{children:null===be||void 0===be||null===(K=be.data)||void 0===K?void 0:K.map((function(e){return(0,F.jsxs)(Z.Z,{children:[(0,F.jsx)(j.Z,{align:"left",children:null===e||void 0===e?void 0:e.name}),(0,F.jsx)(j.Z,{align:"left",children:null===e||void 0===e?void 0:e.units}),(0,F.jsx)(j.Z,{align:"left",children:(0,F.jsx)(c.Z,{disabled:!(null!==e&&void 0!==e&&e.units)>0,variant:"contained",onClick:function(){return Le({filter:"auction",auction_id:null===e||void 0===e?void 0:e.auction_id,week_id:Re.week})},children:"View"})})]})}))}):null,!(null!==be&&void 0!==be&&null!==($=be.data)&&void 0!==$&&$.length)>0&&(0,F.jsx)(Z.Z,{style:{height:53*ai},children:(0,F.jsx)(j.Z,{align:"center",colSpan:6,sx:{py:5},children:(0,F.jsx)(m.Z,{sx:{textAlign:"center"},children:(0,F.jsx)(u.Z,{variant:"h4",paragraph:!0,children:"No results found"})})})})]}),si&&(0,F.jsx)(p.Z,{children:(0,F.jsx)(Z.Z,{children:(0,F.jsx)(j.Z,{align:"center",colSpan:6,sx:{py:3},children:(0,F.jsxs)(m.Z,{sx:{textAlign:"center"},children:[(0,F.jsx)(u.Z,{variant:"h6",paragraph:!0,children:"Not found"}),(0,F.jsxs)(u.Z,{variant:"body2",children:["No results found for \xa0",(0,F.jsxs)("strong",{children:['"',ke,'"']}),".",(0,F.jsx)("br",{})," Try checking for typos or using complete words."]})]})})})})]})})}),(0,F.jsx)(_.Z,{rowsPerPageOptions:[5,10,25],component:"div",count:null===be||void 0===be||null===(ee=be.data)||void 0===ee?void 0:ee.length,rowsPerPage:li,page:We,onPageChange:function(e,i){Ee(i)},onRowsPerPageChange:function(e){Ee(0),ti(parseInt(e.target.value,10))}})]})]}),(0,F.jsxs)(w.ZP,{open:Boolean(Pe),anchorEl:Pe,onClose:function(){Oe(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{p:1,width:140,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75}}},children:[(0,F.jsxs)(b.Z,{onClick:function(){},children:[(0,F.jsx)(y.Z,{icon:"eva:edit-fill",sx:{mr:2}}),"Edit"]}),(0,F.jsxs)(b.Z,{onClick:function(){return ri()},sx:{color:"error.main"},children:[(0,F.jsx)(y.Z,{icon:"eva:trash-2-outline",sx:{mr:2}}),"Delete"]})]})]})}},5234:function(){},3659:function(){}}]);
//# sourceMappingURL=453.03ce48a6.chunk.js.map

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