/
home
/
infinitibizsol
/
.trash
/
static.1
/
js
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/static.1/js/648.ad12702e.chunk.js
"use strict";(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[648],{1648:(e,t,n)=>{n.r(t),n.d(t,{default:()=>C});var o=n(5043),r=n(9252),i=n(8911),a=n(5865),l=n(2110),s=n(8977),c=n(9650),d=n(1806),u=n(3460),h=n(8076),m=n(2420),p=n(3336),A=n(2500),v=n(7894),x=n(3216),g=n(9456),b=n(9907),f=n(7154),y=n(9588),j=n(1036),w=n(9529),S=n(5869),I=n(579);const C=()=>{const[e,t]=(0,o.useState)(!1),[n]=(0,o.useState)([{id:"brand",label:"Brand",alignRight:!1},{id:"expiry",label:"Expiry",alignRight:!1},{id:"last4",label:"Card Number",alignRight:!1},{id:""},{id:""}]),C=(0,x.Zp)(),M=(0,g.wA)(),{userInfo:_}=(0,g.d4)((e=>e.auth)),{paymentData:k}=(0,g.d4)((e=>e.users));return(0,o.useEffect)((()=>{M((0,b.DM)({email:null===_||void 0===_?void 0:_.email}))}),[]),(0,I.jsxs)(r.A,{children:[(0,I.jsx)(i.A,{direction:"column",mb:2,children:(0,I.jsx)(a.A,{variant:"h4",sx:{mb:5},children:"Payment Method"})}),(0,I.jsxs)(l.A,{children:[(0,I.jsx)(i.A,{direction:"row",alignItems:"center",justifyContent:"space-between",margin:"20px",children:(0,I.jsx)(s.A,{variant:"contained",onClick:()=>{C("/dashboard/newPaymentMehod")},children:"Add Payment Method"})}),(0,I.jsx)(A.A,{children:(0,I.jsx)(c.A,{sx:{minWidth:800},children:(0,I.jsxs)(d.A,{children:[(0,I.jsx)(v.K,{headLabel:n}),(0,I.jsxs)(u.A,{children:[null===k||void 0===k?void 0:k.map(((n,r)=>{const{card:i,payemen_method_id:a}=n,{brand:l,exp_year:s,exp_month:c,last4:d}=i;return(0,I.jsx)(o.Fragment,{children:(0,I.jsxs)(h.A,{hover:!0,tabIndex:-1,role:"checkbox",children:[(0,I.jsx)(m.A,{align:"left",children:l}),(0,I.jsx)(m.A,{align:"left",children:c+"/"+s}),(0,I.jsx)(m.A,{align:"left",children:d}),(0,I.jsx)(m.A,{align:"left",children:(0,I.jsx)(w.A,{loading:e,variant:"outlined",startIcon:(0,I.jsx)(S.A,{icon:"eva:trash-2-outline"}),onClick:()=>(async e=>{try{t(!0);const n=await f.A.post("".concat(y.VY,"/payment/detach-payment-method"),{paymentMethodId:e});200===(null===n||void 0===n?void 0:n.status)&&(j.oR.success("Payment Method Deleted"),t(!1),M((0,b.DM)({email:null===_||void 0===_?void 0:_.email})))}catch(n){t(!1),j.oR.error((null===n||void 0===n?void 0:n.message)||"Something went wrong"),console.log("[Error]",n)}})(a),children:"Delete"})})]},a)})})),!(null!==k&&void 0!==k&&k.length)>0&&(0,I.jsx)(h.A,{style:{height:265},children:(0,I.jsx)(m.A,{align:"center",colSpan:6,sx:{py:5},children:(0,I.jsx)(p.A,{sx:{textAlign:"center"},children:(0,I.jsx)(a.A,{variant:"h4",paragraph:!0,children:"No results found"})})})})]})]})})})]})]})}},7894:(e,t,n)=>{n.d(t,{K:()=>d,H:()=>C});var o=n(4882),r=n(8076),i=n(2420),a=n(8093),l=n(6446),s=n(579);const c={border:0,margin:-1,padding:0,width:"1px",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",clip:"rect(0 0 0 0)"};function d(e){let{order:t,orderBy:n,rowCount:d,headLabel:u,numSelected:h,onRequestSort:m,onSelectAllClick:p}=e;return(0,s.jsx)(o.A,{children:(0,s.jsx)(r.A,{children:u.map((e=>{return(0,s.jsx)(i.A,{align:e.alignRight?"right":"left",sortDirection:n===e.id&&t,children:(0,s.jsxs)(a.A,{hideSortIcon:!0,active:n===e.id,direction:n===e.id?t:"asc",onClick:(o=e.id,e=>{m(e,o)}),children:[e.label,n===e.id?(0,s.jsx)(l.A,{sx:{...c},children:"desc"===t?"sorted descending":"sorted ascending"}):null]})},e.id);var o}))})})}var u=n(4535),h=n(310),m=n(5263),p=n(9859),A=n(5865),v=n(5869),x=n(5043),g=n(8977),b=n(688),f=n(2143),y=n(9456),j=n(9907);const w=[{value:"auctioneer",label:"Auctioneer"},{value:"auction",label:"Auction"},{value:"condition_light",label:"Condition Light"},{value:"sale_status",label:"Sale Status"}];function S(e){let{weekId:t,userId:n}=e;const[o,r]=(0,x.useState)(null),[i,a]=(0,x.useState)("Auctioneer"),l=(0,y.wA)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.A,{color:"inherit",disableRipple:!0,onClick:e=>{r(e.currentTarget)},endIcon:(0,s.jsx)(v.A,{icon:o?"eva:chevron-up-fill":"eva:chevron-down-fill"}),children:["Filter by \xa0",(0,s.jsx)(A.A,{component:"span",variant:"subtitle2",sx:{color:"text.secondary"},children:i})]}),(0,s.jsx)(b.A,{keepMounted:!0,anchorEl:o,open:Boolean(o),onClose:()=>{r(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:w.map(((e,o)=>(0,s.jsx)(f.A,{selected:"auctioneer"===e.value,onClick:()=>{return o=e.value,i=e.label,console.log("Key",o),"auctioneer"===o?l((0,j.Np)({userId:n,weekId:t})):"auction"===o?l((0,j.x1)({user_id:n,week_id:t})):"condition_light"===o?l((0,j.S4)({user_id:n,week_id:t})):"sale_status"===o&&l((0,j.yh)({user_id:n,week_id:t})),a(i),void r(null);var o,i},sx:{typography:"body2"},children:e.label},e.value+"_"+e.label)))})]})}const I=(0,u.Ay)(m.A)((e=>{let{theme:t}=e;return{height:96,display:"flex",justifyContent:"flex-end",padding:t.spacing(0,1,0,3)}}));(0,u.Ay)(p.A)((e=>{let{theme:t}=e;return{width:240,transition:t.transitions.create(["box-shadow","width"],{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.shorter}),"&.Mui-focused":{width:320,boxShadow:t.customShadows.z8},"& fieldset":{borderWidth:"1px !important",borderColor:"".concat((0,h.X4)(t.palette.grey[500],.32)," !important")}}}));function C(e){let{numSelected:t,filterName:n,onFilterName:o,weekId:r,userId:i}=e;return(0,s.jsx)(I,{sx:{...t>0&&{color:"primary.main",bgcolor:"primary.lighter"}},children:t>0?(0,s.jsxs)(A.A,{component:"div",variant:"subtitle1",children:[t," selected"]}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(S,{weekId:r,userId:i})})})}},9650:(e,t,n)=>{n.d(t,{A:()=>v});var o=n(8168),r=n(8587),i=n(5043),a=n(9292),l=n(8606),s=n(2876),c=n(4535),d=n(7056),u=n(2400);function h(e){return(0,u.Ay)("MuiTableContainer",e)}(0,d.A)("MuiTableContainer",["root"]);var m=n(579);const p=["className","component"],A=(0,c.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),v=i.forwardRef((function(e,t){const n=(0,s.A)({props:e,name:"MuiTableContainer"}),{className:i,component:c="div"}=n,d=(0,r.A)(n,p),u=(0,o.A)({},n,{component:c}),v=(e=>{const{classes:t}=e;return(0,l.A)({root:["root"]},h,t)})(u);return(0,m.jsx)(A,(0,o.A)({ref:t,as:c,className:(0,a.A)(v.root,i),ownerState:u},d))}))},4882:(e,t,n)=>{n.d(t,{A:()=>b});var o=n(8168),r=n(8587),i=n(5043),a=n(9292),l=n(8606),s=n(1573),c=n(2876),d=n(4535),u=n(7056),h=n(2400);function m(e){return(0,h.Ay)("MuiTableHead",e)}(0,u.A)("MuiTableHead",["root"]);var p=n(579);const A=["className","component"],v=(0,d.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),x={variant:"head"},g="thead",b=i.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiTableHead"}),{className:i,component:d=g}=n,u=(0,r.A)(n,A),h=(0,o.A)({},n,{component:d}),b=(e=>{const{classes:t}=e;return(0,l.A)({root:["root"]},m,t)})(h);return(0,p.jsx)(s.A.Provider,{value:x,children:(0,p.jsx)(v,(0,o.A)({as:d,className:(0,a.A)(b.root,i),ref:t,role:d===g?null:"rowgroup",ownerState:h},u))})}))},8093:(e,t,n)=>{n.d(t,{A:()=>j});var o=n(8587),r=n(8168),i=n(8606),a=n(9292),l=n(5043),s=n(5429),c=n(9662),d=n(579);const u=(0,c.A)((0,d.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var h=n(4535),m=n(2876),p=n(6803),A=n(7056),v=n(2400);function x(e){return(0,v.Ay)("MuiTableSortLabel",e)}const g=(0,A.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),b=["active","children","className","direction","hideSortIcon","IconComponent"],f=(0,h.Ay)(s.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(g.icon)]:{opacity:.5}},["&.".concat(g.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(g.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}})),y=(0,h.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t["iconDirection".concat((0,p.A)(n.direction))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===n.direction&&{transform:"rotate(0deg)"},"asc"===n.direction&&{transform:"rotate(180deg)"})})),j=l.forwardRef((function(e,t){const n=(0,m.A)({props:e,name:"MuiTableSortLabel"}),{active:l=!1,children:s,className:c,direction:h="asc",hideSortIcon:A=!1,IconComponent:v=u}=n,g=(0,o.A)(n,b),j=(0,r.A)({},n,{active:l,direction:h,hideSortIcon:A,IconComponent:v}),w=(e=>{const{classes:t,direction:n,active:o}=e,r={root:["root",o&&"active"],icon:["icon","iconDirection".concat((0,p.A)(n))]};return(0,i.A)(r,x,t)})(j);return(0,d.jsxs)(f,(0,r.A)({className:(0,a.A)(w.root,c),component:"span",disableRipple:!0,ownerState:j,ref:t},g,{children:[s,A&&!l?null:(0,d.jsx)(y,{as:v,className:(0,a.A)(w.icon),ownerState:j})]}))}))}}]); //# sourceMappingURL=648.ad12702e.chunk.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure