/
home
/
infinitibizsol
/
.trash
/
static.2
/
js
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/static.2/js/728.91a778b1.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),l=o(9650),s=o(1806),d=o(3460),u=o(8076),h=o(2420),p=o(3217),v=o(8977),A=o(3336),m=o(8903),b=o(2500),f=o(7894),x=o(3216),g=o(9456),y=o(9907),k=o(7154),w=o(9588),j=o(1036),S=o(2812),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:"Select",label:"Select",alignRight:!1},,{id:"action",label:"Action",alignRight:!1},,]),_=(0,x.Zp)(),z=(0,g.wA)(),{userInfo:M}=(0,g.d4)((e=>e.auth)),[N,F]=(0,n.useState)([]),[L,B]=(0,n.useState)([]),{state:T}=(0,x.zy)(),P=async()=>{try{var e;const t=await k.A.post("".concat(w.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&&B(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)(l.A,{sx:{minWidth:800},children:(0,I.jsxs)(s.A,{children:[(0,I.jsx)(f.K,{headLabel:R}),(0,I.jsxs)(d.A,{children:[null===L||void 0===L?void 0:L.map(((o,r)=>{const{auctioneer_id:i,first_name:a,opportunity_status:c,status:l}=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:!l||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:l?(0,I.jsx)(S.A,{loading:e,type:"submit",variant:"contained",onClick:()=>(async e=>{try{t(!0);const o=await k.A.post("".concat(w.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)},r)})),!(null!==L&&void 0!==L&&L.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)(A.A,{sx:{textAlign:"center"},children:(0,I.jsx)(a.A,{variant:"h4",paragraph:!0,children:"No results found"})})})})]})]})})})}),(0,I.jsx)(m.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 k.A.post("".concat(w.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:"".concat(null===T||void 0===T?void 0:T.startDate," - ").concat(null===T||void 0===T?void 0:T.endDate)});200===(null===e||void 0===e?void 0:e.status)&&(C(!1),F([]),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}))),_(-1)}catch(e){C(!1),j.oR.error("Error while updating Auctioneer!")}},children:"Add"})})]})})}},7894:(e,t,o)=>{o.d(t,{K:()=>d,H:()=>j});var n=o(4882),r=o(8076),i=o(2420),a=o(8093),c=o(6446),l=o(579);const s={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,l.jsx)(n.A,{children:(0,l.jsx)(r.A,{children:u.map(((e,n)=>{return(0,l.jsx)(i.A,{align:e.alignRight?"right":"left",sortDirection:o===e.id&&t,children:(0,l.jsxs)(a.A,{hideSortIcon:!0,active:o===e.id,direction:o===e.id?t:"asc",onClick:(r=e.id,e=>{p(e,r)}),children:[e.label,o===e.id?(0,l.jsx)(c.A,{sx:{...s},children:"desc"===t?"sorted descending":"sorted ascending"}):null]})},n);var r}))})})}var u=o(4535),h=o(5263),p=o(5865),v=o(5869),A=o(5043),m=o(8977),b=o(688),f=o(2143),x=o(9456),g=o(9907);const y=[{value:"auctioneer",label:"Auctioneer"},{value:"auction",label:"Auction"},{value:"condition_light",label:"Condition Light"},{value:"sale_status",label:"Sale Status"}];function k(e){let{weekId:t,userId:o,setLoader:n}=e;const[r,i]=(0,A.useState)(null),[a,c]=(0,A.useState)("auctioneer"),s=(0,x.wA)(),{filterType:d}=(0,x.d4)((e=>e.users)),u=(e,r)=>{n(!0),"auctioneer"===e?s((0,g.Np)({userId:o,weekId:t})).finally((()=>n(!1))):"auction"===e?s((0,g.x1)({user_id:o,week_id:t})).finally((()=>n(!1))):"condition_light"===e?s((0,g.S4)({user_id:o,week_id:t})).finally((()=>n(!1))):"sale_status"===e&&s((0,g.yh)({user_id:o,week_id:t})).finally((()=>n(!1))),c(r||e),i(null)};(0,A.useEffect)((()=>{u(d||"auctioneer")}),[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(m.A,{color:"inherit",disableRipple:!0,onClick:e=>{i(e.currentTarget)},endIcon:(0,l.jsx)(v.A,{icon:r?"eva:chevron-up-fill":"eva:chevron-down-fill"}),children:["Filter by \xa0",(0,l.jsx)(p.A,{component:"span",variant:"subtitle2",sx:{color:"text.secondary"},children:a})]}),(0,l.jsx)(b.A,{keepMounted:!0,anchorEl:r,open:Boolean(r),onClose:()=>{i(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:y.map((e=>(0,l.jsx)(f.A,{selected:e.value===a,onClick:()=>u(e.value,e.label),sx:{typography:"body2"},children:e.label},e.value+"_"+e.label)))})]})}const w=(0,u.Ay)(h.A)((e=>{let{theme:t}=e;return{height:96,display:"flex",justifyContent:"flex-end",padding:t.spacing(0,1,0,3)}}));function j(e){let{numSelected:t,filterName:o,onFilterName:n,weekId:r,userId:i,setLoader:a}=e;return(0,l.jsx)(w,{sx:{...t>0&&{color:"primary.main",bgcolor:"primary.lighter"}},children:t>0?(0,l.jsxs)(p.A,{component:"div",variant:"subtitle1",children:[t," selected"]}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(k,{weekId:r,userId:i,setLoader:a})})})}},3217:(e,t,o)=>{o.d(t,{A:()=>L});var n=o(8587),r=o(8168),i=o(5043),a=o(9292),c=o(8606),l=o(7266),s=o(6803),d=o(4535),u=o(4516),h=o(5213),p=o(5429),v=o(7056),A=o(2400);function m(e){return(0,A.Ay)("PrivateSwitchBase",e)}(0,v.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var b=o(579);const f=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],x=(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:l,className:d,defaultChecked:p,disabled:v,disableFocusRipple:A=!1,edge:y=!1,icon:k,id:w,inputProps:j,inputRef:S,name:I,onBlur:C,onChange:R,onFocus:_,readOnly:z,required:M=!1,tabIndex:N,type:F,value:L}=e,B=(0,n.A)(e,f),[T,P]=(0,u.A)({controlled:i,default:Boolean(p),name:"SwitchBase",state:"checked"}),D=(0,h.A)();let E=v;D&&"undefined"===typeof E&&(E=D.disabled);const H="checkbox"===F||"radio"===F,O=(0,r.A)({},e,{checked:T,disabled:E,disableFocusRipple:A,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,s.A)(r))],input:["input"]};return(0,c.A)(i,m,t)})(O);return(0,b.jsxs)(x,(0,r.A)({component:"span",className:(0,a.A)(V.root,d),centerRipple:!0,focusRipple:!A,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{_&&_(e),D&&D.onFocus&&D.onFocus(e)},onBlur:e=>{C&&C(e),D&&D.onBlur&&D.onBlur(e)},ownerState:O,ref:t},B,{children:[(0,b.jsx)(g,(0,r.A)({autoFocus:o,checked:i,defaultChecked:p,className:V.input,disabled:E,id:H?w: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===L?{}:{value:L},j)),T?l:k]}))}));var k=o(9662);const w=(0,k.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,k.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,k.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,A.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,s.A)(o.size))],"default"!==o.color&&t["color".concat((0,s.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,l.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)(w,{}),F=(0,b.jsx)(S,{}),L=i.forwardRef((function(e,t){var o,l;const d=(0,I.A)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=M,color:h="primary",icon:p=N,indeterminate:v=!1,indeterminateIcon:A=F,inputProps:m,size:f="medium",className:x}=d,g=(0,n.A)(d,_),y=v?A:p,k=v?A:u,w=(0,r.A)({},d,{color:h,indeterminate:v,size:f}),j=(e=>{const{classes:t,indeterminate:o,color:n,size:i}=e,a={root:["root",o&&"indeterminate","color".concat((0,s.A)(n)),"size".concat((0,s.A)(i))]},l=(0,c.A)(a,C,t);return(0,r.A)({},t,l)})(w);return(0,b.jsx)(z,(0,r.A)({type:"checkbox",inputProps:(0,r.A)({"data-indeterminate":v},m),icon:i.cloneElement(y,{fontSize:null!=(o=y.props.fontSize)?o:f}),checkedIcon:i.cloneElement(k,{fontSize:null!=(l=k.props.fontSize)?l:f}),ownerState:w,ref:t,className:(0,a.A)(j.root,x)},g,{classes:j}))}))},9650:(e,t,o)=>{o.d(t,{A:()=>m});var n=o(8168),r=o(8587),i=o(5043),a=o(9292),c=o(8606),l=o(2876),s=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"],A=(0,s.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),m=i.forwardRef((function(e,t){const o=(0,l.A)({props:e,name:"MuiTableContainer"}),{className:i,component:s="div"}=o,d=(0,r.A)(o,v),u=(0,n.A)({},o,{component:s}),m=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},h,t)})(u);return(0,p.jsx)(A,(0,n.A)({ref:t,as:s,className:(0,a.A)(m.root,i),ownerState:u},d))}))},4882:(e,t,o)=>{o.d(t,{A:()=>x});var n=o(8168),r=o(8587),i=o(5043),a=o(9292),c=o(8606),l=o(1573),s=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 A=["className","component"],m=(0,d.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),b={variant:"head"},f="thead",x=i.forwardRef((function(e,t){const o=(0,s.A)({props:e,name:"MuiTableHead"}),{className:i,component:d=f}=o,u=(0,r.A)(o,A),h=(0,n.A)({},o,{component:d}),x=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"]},p,t)})(h);return(0,v.jsx)(l.A.Provider,{value:b,children:(0,v.jsx)(m,(0,n.A)({as:d,className:(0,a.A)(x.root,i),ref:t,role:d===f?null:"rowgroup",ownerState:h},u))})}))},8093:(e,t,o)=>{o.d(t,{A:()=>k});var n=o(8587),r=o(8168),i=o(8606),a=o(9292),c=o(5043),l=o(5429),s=o(9662),d=o(579);const u=(0,s.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),A=o(7056),m=o(2400);function b(e){return(0,m.Ay)("MuiTableSortLabel",e)}const f=(0,A.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),x=["active","children","className","direction","hideSortIcon","IconComponent"],g=(0,h.Ay)(l.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(f.icon)]:{opacity:.5}},["&.".concat(f.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(f.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)"})})),k=c.forwardRef((function(e,t){const o=(0,p.A)({props:e,name:"MuiTableSortLabel"}),{active:c=!1,children:l,className:s,direction:h="asc",hideSortIcon:A=!1,IconComponent:m=u}=o,f=(0,n.A)(o,x),k=(0,r.A)({},o,{active:c,direction:h,hideSortIcon:A,IconComponent:m}),w=(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)})(k);return(0,d.jsxs)(g,(0,r.A)({className:(0,a.A)(w.root,s),component:"span",disableRipple:!0,ownerState:k,ref:t},f,{children:[l,A&&!c?null:(0,d.jsx)(y,{as:m,className:(0,a.A)(w.icon),ownerState:k})]}))}))}}]); //# sourceMappingURL=728.91a778b1.chunk.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure