Sindbad~EG File Manager
"use strict";(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[288],{288:(e,t,a)=>{a.r(t),a.d(t,{default:()=>S});var r=a(4535),o=a(9252),s=a(8903),d=a(8911),n=a(5865),i=a(8390),l=a(7857),c=a(1525),u=a.n(c),m=a(4908),h=a(8065),y=a.n(h),p=a(4576),k=a(5043),x=a(8421),b=a(3216),D=a(9456),g=a(3178),w=a(579);y().extend(u());const f=(0,r.Ay)(l.a,{shouldForwardProp:e=>"isSelected"!==e&&"isHovered"!==e})((e=>{let{theme:t,isSelected:a,isHovered:r,day:o}=e;return{borderRadius:0,...a&&{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover, &:focus":{backgroundColor:t.palette.primary.main}},...r&&{backgroundColor:t.palette.primary[t.palette.mode],"&:hover, &:focus":{backgroundColor:t.palette.primary[t.palette.mode]}},...0===o.day()&&{borderTopLeftRadius:"50%",borderBottomLeftRadius:"50%"},...6===o.day()&&{borderTopRightRadius:"50%",borderBottomRightRadius:"50%"}}})),v=(e,t)=>null!=t&&e.isSame(t,"week");function j(e){const{day:t,selectedDay:a,hoveredDay:r,...o}=e;return(0,w.jsx)(f,{...o,day:t,sx:{px:2.5},disableMargin:!0,selected:!1,isSelected:v(t,a),isHovered:v(t,r)})}const S=()=>{const[e,t]=(0,k.useState)(null),a=(0,b.Zp)(),r=(0,D.wA)(),[l,c]=(0,k.useState)(null),{userInfo:u}=(0,D.d4)((e=>e.auth));return(0,k.useEffect)((()=>{if(e){const t=e.toDate(),o=(0,x.tq)(t),{day:s,week:d,year:n}=o,i=new Date(n,0,7*d),l=i.getDay();i.setDate(i.getDate()-(0===l?6:l-1));const c=new Date(i);c.setDate(c.getDate()+6);const u=i.toLocaleDateString("en-US",{month:"short",day:"numeric"}),m=c.toLocaleDateString("en-US",{month:"short",day:"numeric"});o.week&&(r((0,g.T)("auctioneer")),a("/dashboard/opportunities/users",{state:{week:o.week,startDate:u,endDate:m}}))}}),[e,u]),(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(o.A,{maxWidth:"xl",children:(0,w.jsxs)(s.Ay,{item:!0,xs:12,md:12,lg:12,children:[(0,w.jsx)(d.A,{direction:"row",alignItems:"center",justifyContent:"space-between",mb:5,children:(0,w.jsx)(n.A,{variant:"h4",children:"Opportunity"})}),(0,w.jsx)("div",{style:{width:"100%"},children:(0,w.jsx)(i.$,{dateAdapter:p.R,style:{width:"100%"},children:(0,w.jsx)(m.x,{value:e,onChange:e=>{t(e)},localetext:{calendarWeekNumberHeaderText:"Week",calendarWeekNumberText:e=>"Week ".concat(e)},showDaysOutsideCurrentMonth:!0,displayWeekNumber:!0,slots:{day:j},slotProps:{day:t=>({selectedDay:e,hoveredDay:l})}})})})]})})})}}}]);
//# sourceMappingURL=288.6b8fb97b.chunk.js.map
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists