/
home
/
infinitibizsol
/
.trash
/
static.1
/
js
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/static.1/js/728.cc56cb9d.chunk.js
"use strict";(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[728],{3728:(e,t,o)=>{o.r(t),o.d(t,{default:()=>C});var n=o(5043),r=o(9252),i=o(8911),a=o(5865),c=o(2110),s=o(9650),l=o(1806),d=o(3460),u=o(8076),h=o(2420),p=o(3217),v=o(8977),m=o(3336),A=o(8903),b=o(2500),x=o(7894),f=o(3216),g=o(9456),y=o(9907),w=o(7154),k=o(9588),j=o(1036),S=o(9529),I=o(579);const C=()=>{const[e,t]=(0,n.useState)(!1),[o,C]=(0,n.useState)(!1),[R]=(0,n.useState)([{id:"auctioneer",label:"Name",alignRight:!1},{id:""}]),_=(0,f.Zp)(),z=(0,g.wA)(),{userInfo:M}=(0,g.d4)((e=>e.auth)),[N,F]=(0,n.useState)([]),[B,L]=(0,n.useState)([]),{state:T}=(0,f.zy)(),P=async()=>{try{var e;const t=await w.A.post("".concat(k.VY,"/subscribe/subscribed-auctioneer-list"),{userId:null===M||void 0===M?void 0:M.user_id,weekId:null===T||void 0===T?void 0:T.weekId});200===t.status&&L(null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.data)}catch(t){j.oR.error("Error while Fetching Auctioneer!")}};return(0,n.useEffect)((()=>{P()}),[T]),(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(r.A,{children:[(0,I.jsx)(i.A,{direction:"row",alignItems:"center",justifyContent:"space-between",mb:5,children:(0,I.jsx)(a.A,{variant:"h4",sx:{mb:5},children:"Add Auctioneer"})}),(0,I.jsx)(c.A,{children:(0,I.jsx)(b.A,{children:(0,I.jsx)(s.A,{sx:{minWidth:800},children:(0,I.jsxs)(l.A,{children:[(0,I.jsx)(x.K,{headLabel:R}),(0,I.jsxs)(d.A,{children:[null===B||void 0===B?void 0:B.map(((o,r)=>{const{auctioneer_id:i,first_name:a,opportunity_status:c,status:s}=o;return(0,I.jsx)(n.Fragment,{children:(0,I.jsxs)(u.A,{hover:!0,tabIndex:-1,role:"checkbox",children:[(0,I.jsx)(h.A,{align:"left",children:a}),(0,I.jsx)(h.A,{align:"left",children:(0,I.jsx)(p.A,{defaultChecked:c,disabled:!s||c,onChange:()=>{return e=i,void F((t=>t.includes(e)?t.filter((t=>t!==e)):[...t,e]));var e}})}),(0,I.jsx)(h.A,{align:"left",children:s?(0,I.jsx)(S.A,{loading:e,type:"submit",variant:"contained",onClick:()=>(async e=>{try{t(!0);const o=await w.A.post("".concat(k.VY,"/subscribe/unsubscribe-auctioneer"),{user_id:null===M||void 0===M?void 0:M.user_id,auctioneer_id:e});t(!1),200===(null===o||void 0===o?void 0:o.status)&&(j.oR.success("Auctioneer Unsubscribed"),P())}catch(o){t(!1),j.oR.error((null===o||void 0===o?void 0:o.message)||"Somthing Went Wrong"),console.log("[Error]",o)}})(i),children:"Unsubscribe"}):(0,I.jsx)(v.A,{variant:"contained",onClick:()=>((e,t)=>{z((0,y.DM)({email:null===M||void 0===M?void 0:M.email})),_("/dashboard/app/subscribe",{state:{auctioneerId:e,first_name:t}})})(i,a),children:"Subscribe"})})]},i)})})),!(null!==B&&void 0!==B&&B.length)>0&&(0,I.jsx)(u.A,{style:{height:265},children:(0,I.jsx)(h.A,{align:"center",colSpan:6,sx:{py:5},children:(0,I.jsx)(m.A,{sx:{textAlign:"center"},children:(0,I.jsx)(a.A,{variant:"h4",paragraph:!0,children:"No results found"})})})})]})]})})})}),(0,I.jsx)(A.Ay,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",my:4,children:(0,I.jsx)(S.A,{loading:o,size:"large",type:"submit",variant:"contained",onClick:async()=>{if(!(null!==N&&void 0!==N&&N.length)>0)return j.oR.error("Please select an Auctioneer!");C(!0);try{const e=await w.A.post("".concat(k.VY,"/user/add-auctioneer-to-opportunity"),{userId:null===M||void 0===M?void 0:M.user_id,auctioneer_ids:N,weekId:null===T||void 0===T?void 0:T.weekId,date:"November 11-17"});200===(null===e||void 0===e?void 0:e.status)&&(C(!1),j.oR.success("Auctioneer Added successfully!"),P(),z((0,y.Np)({userId:null===M||void 0===M?void 0:M.user_id,weekId:null===T||void 0===T?void 0:T.weekId})))}catch(e){C(!1),j.oR.error("Error while updating Auctioneer!")}},children:"Add"})})]})})}},7894:(e,t,o)=>{o.d(t,{K:()=>d,H:()=>I});var n=o(4882),r=o(8076),i=o(2420),a=o(8093),c=o(6446),s=o(579);const l={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:o,rowCount:d,headLabel:u,numSelected:h,onRequestSort:p,onSelectAllClick:v}=e;return(0,s.jsx)(n.A,{children:(0,s.jsx)(r.A,{children:u.map((e=>{return(0,s.jsx)(i.A,{align:e.alignRight?"right":"left",sortDirection:o===e.id&&t,children:(0,s.jsxs)(a.A,{hideSortIcon:!0,active:o===e.id,direction:o===e.id?t:"asc",onClick:(n=e.id,e=>{p(e,n)}),children:[e.label,o===e.id?(0,s.jsx)(c.A,{sx:{...l},children:"desc"===t?"sorted descending":"sorted ascending"}):null]})},e.id);var n}))})})}var u=o(4535),h=o(310),p=o(5263),v=o(9859),m=o(5865),A=o(5869),b=o(5043),x=o(8977),f=o(688),g=o(2143),y=o(9456),w=o(9907);const k=[{value:"auctioneer",label:"Auctioneer"},{value:"auction",label:"Auction"},{value:"condition_light",label:"Condition Light"},{value:"sale_status",label:"Sale Status"}];function j(e){let{weekId:t,userId:o}=e;const[n,r]=(0,b.useState)(null),[i,a]=(0,b.useState)("Auctioneer"),c=(0,y.wA)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(x.A,{color:"inherit",disableRipple:!0,onClick:e=>{r(e.currentTarget)},endIcon:(0,s.jsx)(A.A,{icon:n?"eva:chevron-up-fill":"eva:chevron-down-fill"}),children:["Filter by \xa0",(0,s.jsx)(m.A,{component:"span",variant:"subtitle2",sx:{color:"text.secondary"},children:i})]}),(0,s.jsx)(f.A,{keepMounted:!0,anchorEl:n,open:Boolean(n),onClose:()=>{r(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:k.map(((e,n)=>(0,s.jsx)(g.A,{selected:"auctioneer"===e.value,onClick:()=>{return n=e.value,i=e.label,console.log("Key",n),"auctioneer"===n?c((0,w.Np)({userId:o,weekId:t})):"auction"===n?c((0,w.x1)({user_id:o,week_id:t})):"condition_light"===n?c((0,w.S4)({user_id:o,week_id:t})):"sale_status"===n&&c((0,w.yh)({user_id:o,week_id:t})),a(i),void r(null);var n,i},sx:{typography:"body2"},children:e.label},e.value+"_"+e.label)))})]})}const S=(0,u.Ay)(p.A)((e=>{let{theme:t}=e;return{height:96,display:"flex",justifyContent:"flex-end",padding:t.spacing(0,1,0,3)}}));(0,u.Ay)(v.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 I(e){let{numSelected:t,filterName:o,onFilterName:n,weekId:r,userId:i}=e;return(0,s.jsx)(S,{sx:{...t>0&&{color:"primary.main",bgcolor:"primary.lighter"}},children:t>0?(0,s.jsxs)(m.A,{component:"div",variant:"subtitle1",children:[t," selected"]}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(j,{weekId:r,userId:i})})})}},3217:(e,t,o)=>{o.d(t,{A:()=>B});var n=o(8587),r=o(8168),i=o(5043),a=o(9292),c=o(8606),s=o(7266),l=o(6803),d=o(4535),u=o(4516),h=o(5213),p=o(5429),v=o(7056),m=o(2400);function A(e){return(0,m.Ay)("PrivateSwitchBase",e)}(0,v.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var b=o(579);const x=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],f=(0,d.Ay)(p.A)((e=>{let{ownerState:t}=e;return(0,r.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),g=(0,d.Ay)("input",{shouldForwardProp:d.ep})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),y=i.forwardRef((function(e,t){const{autoFocus:o,checked:i,checkedIcon:s,className:d,defaultChecked:p,disabled:v,disableFocusRipple:m=!1,edge:y=!1,icon:w,id:k,inputProps:j,inputRef:S,name:I,onBlur:C,onChange:R,onFocus:_,readOnly:z,required:M=!1,tabIndex:N,type:F,value:B}=e,L=(0,n.A)(e,x),[T,P]=(0,u.A)({controlled:i,default:Boolean(p),name:"SwitchBase",state:"checked"}),H=(0,h.A)();let D=v;H&&"undefined"===typeof D&&(D=H.disabled);const E="checkbox"===F||"radio"===F,O=(0,r.A)({},e,{checked:T,disabled:D,disableFocusRipple:m,edge:y}),V=(e=>{const{classes:t,checked:o,disabled:n,edge:r}=e,i={root:["root",o&&"checked",n&&"disabled",r&&"edge".concat((0,l.A)(r))],input:["input"]};return(0,c.A)(i,A,t)})(O);return(0,b.jsxs)(f,(0,r.A)({component:"span",className:(0,a.A)(V.root,d),centerRipple:!0,focusRipple:!m,disabled:D,tabIndex:null,role:void 0,onFocus:e=>{_&&_(e),H&&H.onFocus&&H.onFocus(e)},onBlur:e=>{C&&C(e),H&&H.onBlur&&H.onBlur(e)},ownerState:O,ref:t},L,{children:[(0,b.jsx)(g,(0,r.A)({autoFocus:o,checked:i,defaultChecked:p,className:V.input,disabled:D,id:E?k:void 0,name:I,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;P(t),R&&R(e,t)},readOnly:z,ref:S,required:M,ownerState:O,tabIndex:N,type:F},"checkbox"===F&&void 0===B?{}:{value:B},j)),T?s:w]}))}));var w=o(9662);const k=(0,w.A)((0,b.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),j=(0,w.A)((0,b.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),S=(0,w.A)((0,b.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var I=o(2876);function C(e){return(0,m.Ay)("MuiCheckbox",e)}const R=(0,v.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],z=(0,d.Ay)(y,{shouldForwardProp:e=>(0,d.ep)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t["size".concat((0,l.A)(o.size))],"default"!==o.color&&t["color".concat((0,l.A)(o.color))]]}})((e=>{let{theme:t,ownerState:o}=e;return(0,r.A)({color:(t.vars||t).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===o.color?t.vars.palette.action.activeChannel:t.vars.palette[o.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.X4)("default"===o.color?t.palette.action.active:t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==o.color&&{["&.".concat(R.checked,", &.").concat(R.indeterminate)]:{color:(t.vars||t).palette[o.color].main},["&.".concat(R.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),M=(0,b.jsx)(j,{}),N=(0,b.jsx)(k,{}),F=(0,b.jsx)(S,{}),B=i.forwardRef((function(e,t){var o,s;const d=(0,I.A)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=M,color:h="primary",icon:p=N,indeterminate:v=!1,indeterminateIcon:m=F,inputProps:A,size:x="medium",className:f}=d,g=(0,n.A)(d,_),y=v?m:p,w=v?m:u,k=(0,r.A)({},d,{color:h,indeterminate:v,size:x}),j=(e=>{const{classes:t,indeterminate:o,color:n,size:i}=e,a={root:["root",o&&"indeterminate","color".concat((0,l.A)(n)),"size".concat((0,l.A)(i))]},s=(0,c.A)(a,C,t);return(0,r.A)({},t,s)})(k);return(0,b.jsx)(z,(0,r.A)({type:"checkbox",inputProps:(0,r.A)({"data-indeterminate":v},A),icon:i.cloneElement(y,{fontSize:null!=(o=y.props.fontSize)?o:x}),checkedIcon:i.cloneElement(w,{fontSize:null!=(s=w.props.fontSize)?s:x}),ownerState:k,ref:t,className:(0,a.A)(j.root,f)},g,{classes:j}))}))},9650:(e,t,o)=>{o.d(t,{A:()=>A});var n=o(8168),r=o(8587),i=o(5043),a=o(9292),c=o(8606),s=o(2876),l=o(4535),d=o(7056),u=o(2400);function h(e){return(0,u.Ay)("MuiTableContainer",e)}(0,d.A)("MuiTableContainer",["root"]);var p=o(579);const v=["className","component"],m=(0,l.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),A=i.forwardRef((function(e,t){const o=(0,s.A)({props:e,name:"MuiTableContainer"}),{className:i,component:l="div"}=o,d=(0,r.A)(o,v),u=(0,n.A)({},o,{component:l}),A=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},h,t)})(u);return(0,p.jsx)(m,(0,n.A)({ref:t,as:l,className:(0,a.A)(A.root,i),ownerState:u},d))}))},4882:(e,t,o)=>{o.d(t,{A:()=>f});var n=o(8168),r=o(8587),i=o(5043),a=o(9292),c=o(8606),s=o(1573),l=o(2876),d=o(4535),u=o(7056),h=o(2400);function p(e){return(0,h.Ay)("MuiTableHead",e)}(0,u.A)("MuiTableHead",["root"]);var v=o(579);const m=["className","component"],A=(0,d.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),b={variant:"head"},x="thead",f=i.forwardRef((function(e,t){const o=(0,l.A)({props:e,name:"MuiTableHead"}),{className:i,component:d=x}=o,u=(0,r.A)(o,m),h=(0,n.A)({},o,{component:d}),f=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},p,t)})(h);return(0,v.jsx)(s.A.Provider,{value:b,children:(0,v.jsx)(A,(0,n.A)({as:d,className:(0,a.A)(f.root,i),ref:t,role:d===x?null:"rowgroup",ownerState:h},u))})}))},8093:(e,t,o)=>{o.d(t,{A:()=>w});var n=o(8587),r=o(8168),i=o(8606),a=o(9292),c=o(5043),s=o(5429),l=o(9662),d=o(579);const u=(0,l.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=o(4535),p=o(2876),v=o(6803),m=o(7056),A=o(2400);function b(e){return(0,A.Ay)("MuiTableSortLabel",e)}const x=(0,m.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),f=["active","children","className","direction","hideSortIcon","IconComponent"],g=(0,h.Ay)(s.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.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(x.icon)]:{opacity:.5}},["&.".concat(x.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(x.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}})),y=(0,h.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t["iconDirection".concat((0,v.A)(o.direction))]]}})((e=>{let{theme:t,ownerState:o}=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"===o.direction&&{transform:"rotate(0deg)"},"asc"===o.direction&&{transform:"rotate(180deg)"})})),w=c.forwardRef((function(e,t){const o=(0,p.A)({props:e,name:"MuiTableSortLabel"}),{active:c=!1,children:s,className:l,direction:h="asc",hideSortIcon:m=!1,IconComponent:A=u}=o,x=(0,n.A)(o,f),w=(0,r.A)({},o,{active:c,direction:h,hideSortIcon:m,IconComponent:A}),k=(e=>{const{classes:t,direction:o,active:n}=e,r={root:["root",n&&"active"],icon:["icon","iconDirection".concat((0,v.A)(o))]};return(0,i.A)(r,b,t)})(w);return(0,d.jsxs)(g,(0,r.A)({className:(0,a.A)(k.root,l),component:"span",disableRipple:!0,ownerState:w,ref:t},x,{children:[s,m&&!c?null:(0,d.jsx)(y,{as:A,className:(0,a.A)(k.icon),ownerState:w})]}))}))}}]); //# sourceMappingURL=728.cc56cb9d.chunk.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure