Sindbad~EG File Manager

Current Path : /home/infinitibizsol/www/auction-flow.com/static/js/
Upload File :
Current File : /home/infinitibizsol/www/auction-flow.com/static/js/643.b6a6491a.chunk.js

"use strict";(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[643],{6657:(e,t,i)=>{i(579);i(5869);i(5043)},7550:(e,t,i)=>{i(5043);var o=i(4535),l=i(310),n=i(6446);(0,o.Ay)(n.A)((e=>{let{theme:t,ownerState:i}=e;const o="light"===t.palette.mode,n="filled"===i.variant,a="outlined"===i.variant,r="soft"===i.variant,d={..."default"===i.color&&{...a&&{backgroundColor:"transparent",color:t.palette.text.primary,border:"1px solid ".concat((0,l.X4)(t.palette.grey[500],.32))},...r&&{color:o?t.palette.text.primary:t.palette.common.white,backgroundColor:(0,l.X4)(t.palette.grey[500],.16)}}},s={..."default"!==i.color&&{...n&&{color:t.palette[i.color].contrastText,backgroundColor:t.palette[i.color].main},...a&&{backgroundColor:"transparent",color:t.palette[i.color].main,border:"1px solid ".concat(t.palette[i.color].main)},...r&&{color:t.palette[i.color][o?"dark":"light"],backgroundColor:(0,l.X4)(t.palette[i.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,...d}}));i(579)},7643:(e,t,i)=>{i.d(t,{EL:()=>W,Eh:()=>E});var o=i(5043),l=i(1551),n=i(4535),a=(i(3338),i(7550),i(6657),i(3568)),r=i(1036),d=i(9456),s=i(579);(0,n.Ay)("img")({top:"10%",width:"100%",height:"100%",objectFit:"contain",position:"absolute"}),(0,n.Ay)("img")({top:"50%",width:"100%",height:"100%",objectFit:"contain",position:"absolute"}),(0,l.A)({root:{minWidth:400,maxWidth:1e3}});var c=i(6187),u=i(8534),h=i(8903),p=i(9650),v=i(1806),x=i(3460),g=i(8076),m=i(2420),b=i(8185),y=i(7625),A=i(6446),f=i(8911),j=i(3216),k=i(3383),w=i(9588),_=i(9907),C=i(7894),S=i(5565);const I=(0,n.Ay)("img")({height:50,objectFit:"contain"}),F={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",border:"2px solid black",borderRadius:2,boxShadow:24,p:4};function W(e){let{productsData:t,weekId:i,auctioneerId:n,opportunityId:_,name:W,totalUnits:D,startDate:L,endDate:T,filterValue:B,loading:O,...R}=e;const E=(0,l.A)((e=>({root:{minWidth:400,..."auctioneer"===B&&{maxWidth:1e3},..."auctioneer"!==B&&{maxWidth:1500}}}))),z=(0,j.Zp)(),[N,M]=(E(),(0,o.useState)(!1)),Z=()=>M(!1),[H,V]=(0,o.useState)([]),[Y,U]=(0,o.useState)(null),{userInfo:X}=((0,d.wA)(),(0,d.d4)((e=>e.auth)));(0,o.useEffect)((()=>{V([{id:"image",label:"Image"},{id:"title",label:"Title"},{id:"sale_status",label:"Sale Status"},{id:"vin",label:"VIN"},{id:"condition_light",label:"Condition"},{id:"auction",label:"Auction"},{id:"lane",label:"Lane"},{id:"run_no",label:"Run"},{id:"action",label:"Action"}])}),[]);return!(null!==t&&void 0!==t&&t.length)>0&&!O?(0,s.jsx)("h1",{style:{marginTop:"100px"},children:"No results were found!"}):(0,s.jsxs)(h.Ay,{container:!0,...R,children:[(0,s.jsxs)(p.A,{children:[(0,s.jsx)("style",{children:"\n        .css-u4myg0-MuiTableCell-root{\n            padding-top: 0px !important;\n            padding-bottom:0px !important;\n        }\n    "}),(0,s.jsxs)(v.A,{stickyHeader:!0,size:"small",children:[(0,s.jsx)(C.K,{headLabel:H}),O?(0,s.jsx)(x.A,{children:[...Array(3)].map(((e,t)=>(0,s.jsx)(g.A,{children:null===H||void 0===H?void 0:H.map(((e,t)=>(0,s.jsx)(m.A,{children:(0,s.jsx)(b.A,{variant:"text",sx:{fontSize:"2.1rem",borderRadius:"10px"}})},t)))},t)))}):(0,s.jsx)(x.A,{children:(0,s.jsx)(o.Fragment,{children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,s.jsxs)(g.A,{children:[(0,s.jsx)(m.A,{children:(0,s.jsx)("img",{src:"".concat(w.Jz,"/").concat(null===e||void 0===e?void 0:e.imageUrl),height:40,width:40,alt:"",style:{objectFit:"contain"}})}),(0,s.jsx)(m.A,{children:(0,s.jsx)(c.A,{style:{display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical",overflow:"hidden",fontWeight:"bold",cursor:"pointer",width:"180px"},onClick:()=>z("/dashboard/opportunities/users/cars/preview",{state:{product:e,auctioneerId:"auctioneer"===B?n:null===e||void 0===e?void 0:e.auctioneer_id}}),children:"".concat((null===e||void 0===e?void 0:e.year)||""," ").concat((null===e||void 0===e?void 0:e.make)||""," ").concat((null===e||void 0===e?void 0:e.model)||""," ").concat((null===e||void 0===e?void 0:e.trim)||"")})}),(0,s.jsx)(m.A,{style:{minWidth:"120px",color:!0===(null===e||void 0===e?void 0:e.sale_status)?"#008000":"#C70039"},children:!0===(null===e||void 0===e?void 0:e.sale_status)?"SOLD":"NOT SOLD"}),(0,s.jsx)(m.A,{style:{minWidth:160},children:(null===e||void 0===e?void 0:e.vin)||""}),(0,s.jsx)(m.A,{style:{width:"60px"},children:(0,s.jsx)(k.A,{style:{color:1===(null===e||void 0===e?void 0:e.condition_light)?"#FF0000":2===(null===e||void 0===e?void 0:e.condition_light)?"#FFBF00":3===(null===e||void 0===e?void 0:e.condition_light)?"#008000":"transparent",fontSize:"30px"}})}),(0,s.jsx)(m.A,{style:{display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",overflow:"hidden",width:80},children:"".concat((null===e||void 0===e?void 0:e.auction_name)||"")}),(0,s.jsx)(m.A,{style:{width:100},children:"".concat((null===e||void 0===e?void 0:e.lane_name)||"")}),(0,s.jsx)(m.A,{style:{width:100},children:"".concat((null===e||void 0===e?void 0:e.run_no)||"")}),(0,s.jsx)(m.A,{children:(0,s.jsx)(I,{style:{cursor:"pointer"},alt:null===e||void 0===e?void 0:e.make,src:a,onClick:()=>{M(!0),U(null===e||void 0===e?void 0:e.vehicle_id)}})})]},t)))})})]})]}),(0,s.jsx)(y.A,{open:N,onClose:Z,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,s.jsxs)(A.A,{sx:F,children:[(0,s.jsx)(c.A,{id:"modal-modal-title",variant:"h6",component:"h2",sx:{mb:1,textAlign:"center"},children:"Are you sure you want to Unassign"}),(0,s.jsx)(c.A,{id:"modal-modal-description",variant:"h6",component:"h2",align:"center",children:"this vehicle?"}),(0,s.jsxs)(f.A,{spacing:2,direction:"row",justifyContent:"center",alignItems:"flex-end",sx:{mt:2},children:[(0,s.jsx)(u.A,{variant:"contained",style:{width:"150px",backgroundColor:"#4CAF50",borderRadius:"30px",color:"white",marginRight:"8px",fontWeight:"bold"},onClick:()=>{(async()=>{try{const e=await S.A.patch("".concat(w.VY,"/vehicle/remove-vehicle-from-auctioneer"),{carIds:[Y]});200===e.status?(r.oR.success("Vehicle unassigned successfully"),M(!1),z(0)):(M(!1),console.log("Failed to unassign vehicle. Status: ".concat(e.status)))}catch(e){console.error("Error unassigning vehicle",e),M(!1)}})()},children:"Yes"}),(0,s.jsx)(u.A,{variant:"contained",style:{width:"150px",backgroundColor:"#E53935",borderRadius:"30px",color:"white",fontWeight:"bold"},onClick:Z,children:"No"})]})]})})]})}var D=i(8977),L=i(5865),T=i(688),B=i(2143),O=i(5869);const R=[{value:"name",label:"ASC: (A TO Z)",condition:"ASC"},{value:"name",label:"DESC: (Z TO A)",condition:"DESC"},{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 E(e){let{weekId:t,filterName:i,filterId:l,filterData:n,setLoading:a}=e;const[r,c]=(0,o.useState)(null),[u,h]=(0,o.useState)("ASC: (A TO Z)"),p=(0,d.wA)(),{userInfo:v}=(0,d.d4)((e=>e.auth));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(D.A,{color:"inherit",disableRipple:!0,onClick:e=>{c(e.currentTarget)},endIcon:(0,s.jsx)(O.A,{icon:r?"eva:chevron-up-fill":"eva:chevron-down-fill"}),children:["Sort By:\xa0",(0,s.jsx)(L.A,{component:"span",variant:"subtitle2",sx:{color:"text.secondary"},children:u})]}),(0,s.jsx)(T.A,{keepMounted:!0,anchorEl:r,open:Boolean(r),onClose:()=>{c(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:R.map(((e,o)=>(0,s.jsx)(B.A,{selected:u===e.label,onClick:()=>((e,o,r)=>{a(!0),c(null),"auctioneer"===i?p((0,_.e2)({user_id:null===v||void 0===v?void 0:v.user_id,opportunity_id:l,weekId:t,sortBy:e,orderDirection:o})).finally((()=>a(!1))):"auction"===i?p((0,_.oB)({user_id:null===v||void 0===v?void 0:v.user_id,week_id:t,auction_id:l,sortBy:e,orderDirection:o})).finally((()=>a(!1))):"saleStatus"===i?p((0,_.FZ)({user_id:null===v||void 0===v?void 0:v.user_id,week_id:t,sale_status:n,sortBy:e,orderDirection:o})).finally((()=>a(!1))):"conditonLight"===i&&p((0,_.P9)({condition_light:n,user_id:null===v||void 0===v?void 0:v.user_id,week_id:t,sortBy:e,orderDirection:o})).finally((()=>a(!1))),h(r)})(e.value,e.condition,e.label),sx:{typography:"body2"},children:e.label},o)))})]})}i(2500)},7894:(e,t,i)=>{i.d(t,{K:()=>r,H:()=>j});var o=i(4882),l=i(8076),n=i(2420),a=i(579);function r(e){let{order:t,orderBy:i,rowCount:r,headLabel:d,numSelected:s,onRequestSort:c,onSelectAllClick:u}=e;return(0,a.jsx)(o.A,{children:(0,a.jsx)(l.A,{children:d.map(((e,o)=>(0,a.jsx)(n.A,{align:e.alignRight?"right":"left",sortDirection:i===e.id&&t,children:e.label},o)))})})}var d=i(4535),s=i(5263),c=i(5865),u=i(5869),h=i(5043),p=i(8977),v=i(688),x=i(2143),g=i(9456),m=i(9907),b=i(3178);const y=[{value:"auctioneer",label:"Auctioneer"},{value:"auction",label:"Auction"},{value:"condition_light",label:"Condition Light"},{value:"sale_status",label:"Sale Status"}];function A(e){let{weekId:t,userId:i,setLoader:o}=e;const[l,n]=(0,h.useState)(null),[r,d]=(0,h.useState)("auctioneer"),s=(0,g.wA)(),{filterType:A}=(0,g.d4)((e=>e.users)),f=(e,l)=>{o(!0),"auctioneer"===e?s((0,m.Np)({userId:i,weekId:t})).finally((()=>o(!1))):"auction"===e?s((0,m.x1)({user_id:i,week_id:t})).finally((()=>o(!1))):"condition_light"===e?s((0,m.S4)({user_id:i,week_id:t})).finally((()=>o(!1))):"sale_status"===e&&s((0,m.yh)({user_id:i,week_id:t})).finally((()=>o(!1))),d(l),s((0,b.T)(e)),n(null)};(0,h.useEffect)((()=>{const e=y.find((e=>e.value===A)),t=e?e.label:"Auctioneer";f(A||"auctioneer",t)}),[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(p.A,{color:"inherit",disableRipple:!0,onClick:e=>{n(e.currentTarget)},endIcon:(0,a.jsx)(u.A,{icon:l?"eva:chevron-up-fill":"eva:chevron-down-fill"}),children:["Filter by \xa0",(0,a.jsx)(c.A,{component:"span",variant:"subtitle2",sx:{color:"text.secondary"},children:r})]}),(0,a.jsx)(v.A,{keepMounted:!0,anchorEl:l,open:Boolean(l),onClose:()=>{n(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:y.map((e=>(0,a.jsx)(x.A,{selected:e.value===r,onClick:()=>f(e.value,e.label),sx:{typography:"body2"},children:e.label},e.value)))})]})}const f=(0,d.Ay)(s.A)((e=>{let{theme:t}=e;return{height:60,display:"flex",justifyContent:"flex-end",padding:t.spacing(0,1,0,3)}}));function j(e){let{numSelected:t,weekId:i,userId:o,setLoader:l}=e;return(0,a.jsx)(f,{sx:{...t>0&&{color:"primary.main",bgcolor:"primary.lighter"}},children:t>0?(0,a.jsxs)(c.A,{component:"div",variant:"subtitle1",children:[t," selected"]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(A,{weekId:i,userId:o,setLoader:l})})})}},3568:(e,t,i)=>{e.exports=i.p+"static/media/trash.5795bffc2e3ba17cfc33.png"}}]);
//# sourceMappingURL=643.b6a6491a.chunk.js.map

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