Sindbad~EG File Manager

Current Path : /home/infinitibizsol/public_html/auction-sync.com/static/js/
Upload File :
Current File : /home/infinitibizsol/public_html/auction-sync.com/static/js/579.dbe17fec.chunk.js

"use strict";(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[579],{3579:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Z});var i=n(2791),a=n(7047),r=n(3609),o=n(3967),s=n(1614),l=n(4554),d=n(890),c=n(3767),h=n(4518),u=n(1715),m=n(3786),v=n(1889),g=n(6426),f=n(9113),p=n(9434),x=n(3240),b=n(5985),w=n(184);const k=[{value:"currentweek",label:"Current week"},{value:"lastweek",label:"Last week"},{value:"last4weeks",label:"Last 4 weeks"},{value:"last12weeks",label:"Last 12 weeks"}];function Z(){(0,o.Z)();const[e,t]=(0,i.useState)({}),[n,Z]=(0,i.useState)(!0),[j,C]=(0,i.useState)(null),[y,S]=(0,i.useState)("Current week"),[_,R]=(0,i.useState)("currentweek"),{userInfo:P}=(0,p.v9)((e=>e.auth));return(0,i.useEffect)((()=>{(async()=>{Z(!0);try{const n=await x.Z.post("".concat(f.v,"/auctioneer/auctioneer-stats"),{auctioneer_id:null===P||void 0===P?void 0:P.user_id,timeRange:_});var e;200==(null===n||void 0===n?void 0:n.status)&&(t(null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.data),Z(!1))}catch(n){Z(!1),b.Am.error("Error while getting statistics")}})()}),[_]),(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(s.Z,{maxWidth:"xl",style:{paddingTop:"70px"},children:[(0,w.jsxs)(l.Z,{display:"flex",flexDirection:"column",alignItems:"center",mb:5,sx:{"@media (min-width:600px)":{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}},children:[(0,w.jsxs)(d.Z,{variant:"h4",sx:{mb:5},children:["Hi, Welcome back ",(null===P||void 0===P?void 0:P.firstname)||""," ",(null===P||void 0===P?void 0:P.lastname)||""]}),(0,w.jsxs)(c.Z,{direction:"row",alignItems:"center",justifyContent:"end",mb:5,children:[(0,w.jsx)(h.Z,{color:"inherit",disableRipple:!0,onClick:e=>{C(e.currentTarget)},endIcon:(0,w.jsx)(r.Z,{icon:j?"eva:chevron-up-fill":"eva:chevron-down-fill"}),children:(0,w.jsx)(d.Z,{component:"span",variant:"subtitle2",sx:{borderBottom:"1px solid black"},children:y})}),(0,w.jsx)(u.Z,{keepMounted:!0,anchorEl:j,open:Boolean(j),onClose:()=>{C(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:k.map((e=>(0,w.jsx)(m.Z,{selected:"currentweek"===e.value,onClick:()=>{return t=e.value,n=e.label,console.log(t,n),R(t),S(n),void C(null);var t,n},sx:{typography:"body2"},children:e.label},e.value+"_"+(null===e||void 0===e?void 0:e.condition))))})]})]}),(0,w.jsx)(v.ZP,{container:!0,spacing:3,children:n?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(v.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,w.jsx)(a.Z,{variant:"rectangular",width:"100%",height:150,sx:{bgcolor:"#ededed"}})}),(0,w.jsx)(v.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,w.jsx)(a.Z,{variant:"rectangular",width:"100%",height:150,sx:{bgcolor:"#ededed"}})}),(0,w.jsx)(v.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,w.jsx)(a.Z,{variant:"rectangular",width:"100%",height:150,sx:{bgcolor:"#ededed"}})})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(v.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,w.jsx)(g.xq,{title:"Total Sale",price:null===e||void 0===e?void 0:e.total_sales,style:{backgroundColor:"#ffffff"}})}),(0,w.jsx)(v.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,w.jsx)(g.xq,{title:"Net Proceeds",price:null===e||void 0===e?void 0:e.net_proceeds,style:{backgroundColor:"#ffffff"}})}),(0,w.jsx)(v.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,w.jsx)(g.xq,{title:"Units Sold",total:null===e||void 0===e?void 0:e.sold_units,style:{backgroundColor:"#ffffff"}})})]})})]})})}},7047:(e,t,n)=>{n.d(t,{Z:()=>M});var i=n(168),a=n(3366),r=n(7462),o=n(2791),s=n(8182),l=n(2554),d=n(838);function c(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function h(e){return parseFloat(e)}var u=n(2065),m=n(6934),v=n(1402),g=n(9703),f=n(4657);function p(e){return(0,f.ZP)("MuiSkeleton",e)}(0,g.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var x,b,w,k,Z=n(184);const j=["animation","className","component","height","style","variant","width"];let C,y,S,_;const R=(0,l.F4)(C||(C=x||(x=(0,i.Z)(["\n  0% {\n    opacity: 1;\n  }\n\n  50% {\n    opacity: 0.4;\n  }\n\n  100% {\n    opacity: 1;\n  }\n"])))),P=(0,l.F4)(y||(y=b||(b=(0,i.Z)(["\n  0% {\n    transform: translateX(-100%);\n  }\n\n  50% {\n    /* +0.5s of delay between each loop */\n    transform: translateX(100%);\n  }\n\n  100% {\n    transform: translateX(100%);\n  }\n"])))),F=(0,m.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:n}=e;const i=c(t.shape.borderRadius)||"px",a=h(t.shape.borderRadius);return(0,r.Z)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,u.Fq)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(i,"/").concat(Math.round(a/.6*10)/10).concat(i),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,l.iv)(S||(S=w||(w=(0,i.Z)(["\n      animation: "," 1.5s ease-in-out 0.5s infinite;\n    "]))),R)}),(e=>{let{ownerState:t,theme:n}=e;return"wave"===t.animation&&(0,l.iv)(_||(_=k||(k=(0,i.Z)(["\n      position: relative;\n      overflow: hidden;\n\n      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n      -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n      &::after {\n        animation: "," 1.6s linear 0.5s infinite;\n        background: linear-gradient(\n          90deg,\n          transparent,\n          ",",\n          transparent\n        );\n        content: '';\n        position: absolute;\n        transform: translateX(-100%); /* Avoid flash during server-side hydration */\n        bottom: 0;\n        left: 0;\n        right: 0;\n        top: 0;\n      }\n    "]))),P,(n.vars||n).palette.action.hover)})),M=o.forwardRef((function(e,t){const n=(0,v.Z)({props:e,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:l="span",height:c,style:h,variant:u="text",width:m}=n,g=(0,a.Z)(n,j),f=(0,r.Z)({},n,{animation:i,component:l,variant:u,hasChildren:Boolean(g.children)}),x=(e=>{const{classes:t,variant:n,animation:i,hasChildren:a,width:r,height:o}=e,s={root:["root",n,i,a&&"withChildren",a&&!r&&"fitContent",a&&!o&&"heightAuto"]};return(0,d.Z)(s,p,t)})(f);return(0,Z.jsx)(F,(0,r.Z)({as:l,ref:t,className:(0,s.Z)(x.root,o),ownerState:f},g,{style:(0,r.Z)({width:m,height:c},h)}))}))}}]);
//# sourceMappingURL=579.dbe17fec.chunk.js.map

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