Sindbad~EG File Manager

Current Path : /home/infinitibizsol/public_html/auction-flow.com/static/js/
Upload File :
Current File : /home/infinitibizsol/public_html/auction-flow.com/static/js/648.31e72995.chunk.js

"use strict";(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[648],{1648:(e,n,t)=>{t.r(n),t.d(n,{default:()=>C});var a=t(5043),l=t(9252),r=t(8911),i=t(5865),o=t(2110),s=t(8977),d=t(9650),c=t(1806),u=t(3460),h=t(8076),m=t(2420),A=t(3336),x=t(2500),p=t(7894),v=t(3216),g=t(9456),b=t(9907),f=t(9588),j=t(1036),y=t(2812),w=t(5869),_=t(5565),k=t(579);const C=()=>{const[e,n]=(0,a.useState)(!1),[t]=(0,a.useState)([{id:"brand",label:"Brand",alignRight:!1},{id:"expiry",label:"Expiry",alignRight:!1},{id:"last4",label:"Card Number",alignRight:!1},{id:"action",label:"Action",alignRight:!1}]),C=(0,v.Zp)(),M=(0,g.wA)(),{userInfo:R}=(0,g.d4)((e=>e.auth)),{paymentData:S}=(0,g.d4)((e=>e.users));return(0,a.useEffect)((()=>{M((0,b.DM)({email:null===R||void 0===R?void 0:R.business_email}))}),[]),(0,k.jsxs)(l.A,{children:[(0,k.jsx)(r.A,{direction:"column",mb:2,children:(0,k.jsx)(i.A,{variant:"h4",sx:{mb:5},children:"Payment Method"})}),(0,k.jsxs)(o.A,{children:[(0,k.jsx)(r.A,{direction:"row",alignItems:"center",justifyContent:"space-between",margin:"20px",children:(0,k.jsx)(s.A,{variant:"contained",onClick:()=>{C("/dashboard/newPaymentMehod")},children:"Add Payment Method"})}),(0,k.jsx)(x.A,{children:(0,k.jsx)(d.A,{sx:{minWidth:800},children:(0,k.jsxs)(c.A,{children:[(0,k.jsx)(p.K,{headLabel:t}),(0,k.jsxs)(u.A,{children:[null===S||void 0===S?void 0:S.map(((t,l)=>{const{card:r,payemen_method_id:i}=t,{brand:o,exp_year:s,exp_month:d,last4:c}=r;return(0,k.jsx)(a.Fragment,{children:(0,k.jsxs)(h.A,{hover:!0,tabIndex:-1,role:"checkbox",children:[(0,k.jsx)(m.A,{align:"left",children:o}),(0,k.jsx)(m.A,{align:"left",children:d+"/"+s}),(0,k.jsx)(m.A,{align:"left",children:c}),(0,k.jsx)(m.A,{align:"left",children:(0,k.jsx)(y.A,{loading:e,variant:"outlined",startIcon:(0,k.jsx)(w.A,{icon:"eva:trash-2-outline"}),onClick:()=>(async e=>{try{n(!0);const t=await _.A.post("".concat(f.VY,"/payment/detach-payment-method"),{paymentMethodId:e});200===(null===t||void 0===t?void 0:t.status)&&(j.oR.success("Payment Method Deleted"),n(!1),M((0,b.DM)({email:null===R||void 0===R?void 0:R.business_email})))}catch(t){n(!1),j.oR.error((null===t||void 0===t?void 0:t.message)||"Something went wrong"),console.log("[Error]",t)}})(i),children:"Delete"})})]})},i)})),!(null!==S&&void 0!==S&&S.length)>0&&(0,k.jsx)(h.A,{style:{height:265},children:(0,k.jsx)(m.A,{align:"center",colSpan:6,sx:{py:5},children:(0,k.jsx)(A.A,{sx:{textAlign:"center"},children:(0,k.jsx)(i.A,{variant:"h4",paragraph:!0,children:"No results found"})})})})]})]})})})]})]})}},7894:(e,n,t)=>{t.d(n,{K:()=>o,H:()=>y});var a=t(4882),l=t(8076),r=t(2420),i=t(579);function o(e){let{order:n,orderBy:t,rowCount:o,headLabel:s,numSelected:d,onRequestSort:c,onSelectAllClick:u}=e;return(0,i.jsx)(a.A,{children:(0,i.jsx)(l.A,{children:s.map(((e,a)=>(0,i.jsx)(r.A,{align:e.alignRight?"right":"left",sortDirection:t===e.id&&n,children:e.label},a)))})})}var s=t(4535),d=t(5263),c=t(5865),u=t(5869),h=t(5043),m=t(8977),A=t(688),x=t(2143),p=t(9456),v=t(9907),g=t(3178);const b=[{value:"auctioneer",label:"Auctioneer"},{value:"auction",label:"Auction"},{value:"condition_light",label:"Condition Light"},{value:"sale_status",label:"Sale Status"}];function f(e){let{weekId:n,userId:t,setLoader:a}=e;const[l,r]=(0,h.useState)(null),[o,s]=(0,h.useState)("auctioneer"),d=(0,p.wA)(),{filterType:f}=(0,p.d4)((e=>e.users)),j=(e,l)=>{a(!0),"auctioneer"===e?d((0,v.Np)({userId:t,weekId:n})).finally((()=>a(!1))):"auction"===e?d((0,v.x1)({user_id:t,week_id:n})).finally((()=>a(!1))):"condition_light"===e?d((0,v.S4)({user_id:t,week_id:n})).finally((()=>a(!1))):"sale_status"===e&&d((0,v.yh)({user_id:t,week_id:n})).finally((()=>a(!1))),s(l),d((0,g.T)(e)),r(null)};(0,h.useEffect)((()=>{const e=b.find((e=>e.value===f)),n=e?e.label:"Auctioneer";j(f||"auctioneer",n)}),[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(m.A,{color:"inherit",disableRipple:!0,onClick:e=>{r(e.currentTarget)},endIcon:(0,i.jsx)(u.A,{icon:l?"eva:chevron-up-fill":"eva:chevron-down-fill"}),children:["Filter by \xa0",(0,i.jsx)(c.A,{component:"span",variant:"subtitle2",sx:{color:"text.secondary"},children:o})]}),(0,i.jsx)(A.A,{keepMounted:!0,anchorEl:l,open:Boolean(l),onClose:()=>{r(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:b.map((e=>(0,i.jsx)(x.A,{selected:e.value===o,onClick:()=>j(e.value,e.label),sx:{typography:"body2"},children:e.label},e.value)))})]})}const j=(0,s.Ay)(d.A)((e=>{let{theme:n}=e;return{height:60,display:"flex",justifyContent:"flex-end",padding:n.spacing(0,1,0,3)}}));function y(e){let{numSelected:n,weekId:t,userId:a,setLoader:l}=e;return(0,i.jsx)(j,{sx:{...n>0&&{color:"primary.main",bgcolor:"primary.lighter"}},children:n>0?(0,i.jsxs)(c.A,{component:"div",variant:"subtitle1",children:[n," selected"]}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(f,{weekId:t,userId:a,setLoader:l})})})}},9650:(e,n,t)=>{t.d(n,{A:()=>p});var a=t(8168),l=t(8587),r=t(5043),i=t(9292),o=t(8606),s=t(2876),d=t(4535),c=t(7056),u=t(2400);function h(e){return(0,u.Ay)("MuiTableContainer",e)}(0,c.A)("MuiTableContainer",["root"]);var m=t(579);const A=["className","component"],x=(0,d.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,n)=>n.root})({width:"100%",overflowX:"auto"}),p=r.forwardRef((function(e,n){const t=(0,s.A)({props:e,name:"MuiTableContainer"}),{className:r,component:d="div"}=t,c=(0,l.A)(t,A),u=(0,a.A)({},t,{component:d}),p=(e=>{const{classes:n}=e;return(0,o.A)({root:["root"]},h,n)})(u);return(0,m.jsx)(x,(0,a.A)({ref:n,as:d,className:(0,i.A)(p.root,r),ownerState:u},c))}))},4882:(e,n,t)=>{t.d(n,{A:()=>b});var a=t(8168),l=t(8587),r=t(5043),i=t(9292),o=t(8606),s=t(1573),d=t(2876),c=t(4535),u=t(7056),h=t(2400);function m(e){return(0,h.Ay)("MuiTableHead",e)}(0,u.A)("MuiTableHead",["root"]);var A=t(579);const x=["className","component"],p=(0,c.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,n)=>n.root})({display:"table-header-group"}),v={variant:"head"},g="thead",b=r.forwardRef((function(e,n){const t=(0,d.A)({props:e,name:"MuiTableHead"}),{className:r,component:c=g}=t,u=(0,l.A)(t,x),h=(0,a.A)({},t,{component:c}),b=(e=>{const{classes:n}=e;return(0,o.A)({root:["root"]},m,n)})(h);return(0,A.jsx)(s.A.Provider,{value:v,children:(0,A.jsx)(p,(0,a.A)({as:c,className:(0,i.A)(b.root,r),ref:n,role:c===g?null:"rowgroup",ownerState:h},u))})}))}}]);
//# sourceMappingURL=648.31e72995.chunk.js.map

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