/
home
/
infinitibizsol
/
.trash
/
static.1
/
js
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/static.1/js/203.d0054d0f.chunk.js
"use strict";(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[203],{6657:(e,t,n)=>{n(579);n(5869);n(5043)},7550:(e,t,n)=>{n(5043);var r=n(4535),o=n(310),a=n(6446);(0,r.Ay)(a.A)((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,a="filled"===n.variant,i="outlined"===n.variant,c="soft"===n.variant,l={..."default"===n.color&&{...i&&{backgroundColor:"transparent",color:t.palette.text.primary,border:"1px solid ".concat((0,o.X4)(t.palette.grey[500],.32))},...c&&{color:r?t.palette.text.primary:t.palette.common.white,backgroundColor:(0,o.X4)(t.palette.grey[500],.16)}}},s={..."default"!==n.color&&{...a&&{color:t.palette[n.color].contrastText,backgroundColor:t.palette[n.color].main},...i&&{backgroundColor:"transparent",color:t.palette[n.color].main,border:"1px solid ".concat(t.palette[n.color].main)},...c&&{color:t.palette[n.color][r?"dark":"light"],backgroundColor:(0,o.X4)(t.palette[n.color].main,.16)}}};return{height:24,minWidth:22,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",textTransform:"capitalize",padding:t.spacing(0,1),color:t.palette.grey[800],fontSize:t.typography.pxToRem(12),fontFamily:t.typography.fontFamily,backgroundColor:t.palette.grey[300],fontWeight:t.typography.fontWeightBold,...s,...l}}));n(579)},8203:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var r=n(5043),o=n(9252),a=n(8911),i=n(5865),c=n(8977),l=n(5869),s=n(3216),d=n(9456),u=n(8903),p=(n(1036),n(1551)),h=n(5660),m=n(6187),A=n(4535),g=n(6446),f=n(8446),x=(n(3338),n(7550),n(6657),n(3383)),v=n(9588),y=n(579);const j=(0,A.Ay)("img")({top:0,width:"100%",height:"100%",objectFit:"contain",position:"absolute"}),b=(0,p.A)({root:{minWidth:500}});function w(e){let{product:t,onNavigate:n,onEditNavigate:r,onDeleteNavigate:o}=e;(0,s.Zp)();const{make:i,mileage:c,model:l,color:d,color_name:p,year:A,sold_price:w,imageUrl:C,sale_status:_,auction_name:k,lane_name:S,vin:I,announcements:F,auction_fee:D,run_no:N,condition_light:W}=t,z=b();return(0,y.jsx)(h.A,{className:z.root,children:(0,y.jsxs)(u.Ay,{container:!0,sx:{cursor:"pointer"},onClick:()=>n(),children:[(0,y.jsx)(u.Ay,{item:!0,xs:4,sm:4,children:(0,y.jsx)(g.A,{sx:{pt:"53%",position:"relative",cursor:"pointer"},children:(0,y.jsx)(j,{alt:i,src:"".concat(v.Jz,"/").concat(C)})})}),(0,y.jsx)(u.Ay,{item:!0,xs:8,sm:8,children:(0,y.jsxs)(a.A,{spacing:4,p:3,children:[(0,y.jsxs)(a.A,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,y.jsx)(f.A,{color:"inherit",underline:"hover",children:(0,y.jsx)(g.A,{sx:{fontWeight:"bold",fontSize:"22px"},children:"".concat(A," ").concat(i," ").concat(l)})}),(0,y.jsx)(g.A,{sx:{fontWeight:"bold",fontSize:"18px",color:!0===_?"#023020":"#C70039"},children:!0===_?"SOLD":"NOT SOLD"})]}),(0,y.jsxs)(a.A,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,y.jsx)(m.A,{variant:"subtitle4",noWrap:!0,children:I}),0!==W&&(0,y.jsx)(x.A,{style:{color:1===W?"#FF0000":2===W?"#FFFF00":3===W?"#008000":"",fontSize:"30px"}}),(0,y.jsx)(m.A,{variant:"subtitle4",noWrap:!0,children:c?"".concat(c," mileage"):""})]}),(0,y.jsxs)(a.A,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,y.jsx)(m.A,{variant:"subtitle4",children:k||""}),(0,y.jsx)(m.A,{variant:"subtitle4",children:S?"Lane: ".concat(S):""}),(0,y.jsx)(m.A,{variant:"subtitle4",children:N?"Run # ".concat(N):""})]})]})})]})})}function C(e){let{productsData:t,auctioneerId:n,...r}=e;const o=(0,s.Zp)();(0,d.wA)();return(0,y.jsx)(u.Ay,{container:!0,spacing:3,...r,children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,y.jsx)(u.Ay,{item:!0,xs:12,sm:12,md:12,children:(0,y.jsx)(w,{product:e,onNavigate:()=>o("/dashboard/app/users/cars/preview",{state:{product:e,auctioneerId:n}}),onEditNavigate:()=>o("/dashboard/products/edit/".concat(null===e||void 0===e?void 0:e._id),{state:{product:e}}),onDeleteNavigate:async()=>{console.log("delete message")}})},t)))})}var _=n(7858);function k(){const e=(0,s.Zp)(),t=(0,d.wA)(),{state:n}=(0,s.zy)(),[u,p]=(0,r.useState)(!1),[h,m]=(0,r.useState)([]),[A,g]=(0,r.useState)(null),[f,x]=(0,r.useState)(null),[v,j]=(0,r.useState)("Current week"),[b,w]=(0,r.useState)(""),[k,S]=(0,r.useState)("currentweek"),[I,F]=(0,r.useState)("ASC"),{InventoryData:D}=(0,d.d4)((e=>e.inventory)),{userInfo:N}=(0,d.d4)((e=>e.auth));(0,r.useEffect)((()=>{t((0,_.M)({timeRange:k,orderDirection:I,sortBy:b,userId:null===N||void 0===N?void 0:N.user_id}))}),[]);return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(o.A,{children:[(0,y.jsx)(a.A,{direction:"row",alignItems:"center",justifyContent:"space-between",my:5,children:(0,y.jsx)(i.A,{variant:"h4",sx:{my:5},children:"Add Auctioneer"})}),(0,y.jsx)(C,{inventoryData:D}),(0,y.jsx)(a.A,{direction:"row",alignItems:"center",justifyContent:"space-between",my:5,children:(0,y.jsx)(c.A,{variant:"contained",startIcon:(0,y.jsx)(l.A,{icon:"eva:plus-fill"}),onClick:()=>e("/dashboard/inventory/newVehicle"),children:"Add Auctioneer"})})]})})}},3338:(e,t,n)=>{n.d(t,{Rn:()=>a});var r=n(9328),o=n.n(r);function a(e){return i(e||0===e?o()(e).format("0.00a"):"",".00")}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".00";return e.includes(t)?e.replace(t,""):e}},3383:(e,t,n)=>{var r=n(4994);t.A=void 0;var o=r(n(39)),a=n(579);t.A=(0,o.default)((0,a.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord")},39:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(1715)},1715:(e,t,n)=>{n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>a,createSvgIcon:()=>i.A,debounce:()=>c.A,deprecatedPropType:()=>l,isMuiElement:()=>s.A,ownerDocument:()=>d.A,ownerWindow:()=>u.A,requirePropFactory:()=>p,setRef:()=>h,unstable_ClassNameGenerator:()=>j,unstable_useEnhancedEffect:()=>m.A,unstable_useId:()=>A.A,unsupportedProp:()=>g,useControlled:()=>f.A,useEventCallback:()=>x.A,useForkRef:()=>v.A,useIsFocusVisible:()=>y.A});var r=n(5430),o=n(6803);const a=n(4708).A;var i=n(9662),c=n(950);const l=function(e,t){return()=>null};var s=n(154),d=n(2427),u=n(6078);n(8168);const p=function(e,t){return()=>null};const h=n(9184).A;var m=n(5013),A=n(5879);const g=function(e,t,n,r,o){return null};var f=n(4516),x=n(3319),v=n(5849),y=n(2191);const j={configure:e=>{r.A.configure(e)}}}}]); //# sourceMappingURL=203.d0054d0f.chunk.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure