PageSourceSearch

https://webapp.education.doctustech.com/_next/static/chunks/6283.48c3a22729d164b0.js

js doctustech.com collected 2026-10-04 02:42:49 UTC 24,239 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dfc73520-12b8-47ce-9e42-b4de77b8cbac",e._sentryDebugIdIdentifier="sentry-dbid-dfc73520-12b8-47ce-9e42-b4de77b8cbac")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6283],{30:(e,t,n)=>{var i=n(24994);t.A=void 0;var o=i(n(44888)),r=n(74848);t.A=(0,o.default)((0,r.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew")},93286:(e,t,n)=>{var i=n(24994);t.A=void 0;var o=i(n(44888)),r=n(74848);t.A=(0,o.default)((0,r.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos")},58707:(e,t,n)=>{var i=n(24994);t.A=void 0;var o=i(n(44888)),r=n(74848);t.A=(0,o.default)((0,r.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},21829:(e,t,n)=>{n.d(t,{A:()=>A});var i=n(58168),o=n(98587),r=n(96540),l=n(34164),a=n(75659),s=n(45793),d=n(38413),c=n(31609);function x(e){return(0,c.Ay)("MuiRadioGroup",e)}(0,d.A)("MuiRadioGroup",["root","row","error"]);var u=n(13372),h=n(19439),p=n(90654),g=n(12876),m=n(74848);let v=["actions","children","className","defaultValue","name","onChange","value"],f=e=>{let{classes:t,row:n,error:i}=e;return(0,a.A)({root:["root",n&&"row",i&&"error"]},x,t)},A=r.forwardRef(function(e,t){let{actions:n,children:a,className:d,defaultValue:c,name:x,onChange:A,value:j}=e,b=(0,o.A)(e,v),y=r.useRef(null),w=f(e),[k,C]=(0,h.A)({controlled:j,default:c,name:"RadioGroup"});r.useImperativeHandle(n,()=>({focus:()=>{let e=y.current.querySelector("input:not(:disabled):checked");e||(e=y.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);let _=(0,u.A)(t,y),F=(0,g.A)(x),S=r.useMemo(()=>({name:F,onChange(e){C(e.target.value),A&&A(e,e.target.value)},value:k}),[F,A,C,k]);return(0,m.jsx)(p.A.Provider,{value:S,children:(0,m.jsx)(s.A,(0,i.A)({role:"radiogroup",ref:_,className:(0,l.A)(w.root,d)},b,{children:a}))})})}
1,26029:(e,t,n)=>{n.d(t,{A:()=>l});var i=n(74848),o=n(34215),r=n(43763);let l=(0,n(79369).A)(e=>{let{className:t,...n}=e;return(0,i.jsx)(o.A,{slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-14]}}]}},...n,classes:{popper:t},arrow:!0,enterTouchDelay:0,leaveTouchDelay:15e3})})(()=>({["& .".concat(r.A.tooltip)]:{backgroundColor:"#0D426A",color:"#fff",fontSize:"14px",fontWeight:400},["& .".concat(r.A.arrow)]:{color:"#0D426A"}}))},6283:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ee});var i=n(74848),o=n(96540),r=n(18826),l=n(36277),a=n(58707),s=n(4743),d=n(87093),c=n(42413),x=n(41917),u=n(82163),h=n(21829),p=n(12832),g=n(78463),m=n(53384),v=n(14818),f=n(29382),A=n(32608),j=n(28781);let b=(0,r.n9)()(()=>({banner:{width:"100%",padding:"25px 30px",borderRadius:"10px",background:"url(/images/leaderboard-banner.svg) no-repeat right #E5F8FF",backgroundSize:"contain"},bannerTitle:{color:"#000000",fontSize:"24px",fontWeight:700,lineHeight:"32px",textAlign:"left"},bannerSubtitle:{color:"#242629",fontSize:"16px",fontWeight:400,lineHeight:"24px",textAlign:"left"},datesContainer:{border:"1px solid #BED8E2",boxShadow:"0px 3px 0px 0px #BED8E2",backgroundColor:"#BED8E2",width:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",borderRadius:"8px",gap:"1px"},dates:{padding:"12px 16px",backgroundColor:"#EFFBFF",display:"flex",flexDirection:"column",gap:"4px"},dateTitle:{color:"#5C6469",fontSize:"10px",lineHeight:"10px",fontWeight:500},dateStat:{color:"#000000BA",fontWeight:700,fontSize:"14px",lineHeight:"14px"},tournamentDetail:{display:"flex",flexDirection:"column",gap:"2px"},tournamentHeading:{display:"flex",gap:"4px"},tournamentPages:{display:"flex",justifyContent:"space-between",width:"90vw",maxWidth:"500px"}}));var y=n(30),w=n(93286),k=n(29965),C=n.n(k),_=n(26029),F=n(18151);let S={ORG:"Organization",GROUP:"User Group",CLINIC:"Clinic"},N=(0,l.PA)(e=>{var t,n,r,l;let{onTournamentChange:k,onIndexChange:N,onFilterChange:R}=e,{classes:T}=b(),{tournamentStore:z}=(0,A.gy)(),{activeTournament:I,tournamentLoading:E,contest_assignment_types:D}=z,[W,B]=(0,o.useState)(0),H=(null==z?void 0:null===(t=z.activeTournament)||void 0===t?void 0:t[W])||null,[P,M]=(0,o.useState)(null),[O,U]=(0,o.useState)("");(0,o.useEffect)(()=>{if(D&&D.length>0&&!O){let e=D[0];U(e),R&&R([e])}},[D,O,R]),(0,o.useEffect)(()=>{(null==H?void 0:H.tournament_id)&&k&&k(H.tournament_id)},[null==H?void 0:H.tournament_id,k]);let G=()=>{M(null)},L=e=>{U(e),R&&(R([e]),"Organization"===O?(0,F.$z_)(null==H?void 0:H.tournament_id,e):"User Group"===O?(0,F.Dtp)(null==H?void 0:H.tournament_id,e):(0,F.l_2)(null==H?void 0:H.tournament_id,e)),G()},q=!!P;if(E)return(0,i.jsx)("div",{className:T.banner,children:(0,i.jsx)(s.A,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",children:(0,i.jsx)(d.A,{})})});if(!I||0===I.length)return(0,i.jsx)("div",{className:T.banner,children:(0,i.jsx)(c.A,{children:"No active tournament found"})});let{currentWeek:V,totalWeeks:$}=(0,j.Ge)(null==I?void 0:I[W].start_date,I[W].end_date);return(0,i.jsxs)("div",{className:T.banner,style:{position:"relative"},children:[D&&D.length>0&&(0,i.jsxs)(s.A,{sx:{position:"absolute",top:"16px",right:"16px",zIndex:10},children:[(0,i.jsxs)(x.A,{onClick:e=>{M(e.currentTarget)},sx:{width:"80px",backgroundColor:"transparent",border:"1px solid #000000","&:hover":{backgroundColor:"transparent"}},children:[(0,i.jsx)(C(),{src:"/images/dt-icon-tube.svg",alt:"filter",height:24,width:24}),(0,i.jsx)(c.A,{sx:{fontSize:"14px",color:"#5C6469",marginLeft:"4px"},children:"Filter"})]}),(0,i.jsx)(u.Ay,{id:q?"filter-popover":void 0,open:q,anchorEl:P,onClose:G,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,i.jsxs)(s.A,{sx:{p:2,minWidth:"200px"},children:[(0,i.jsx)(c.A,{sx:{fontSize:"14px",fontWeight:600,marginBottom:"12px",color:"#000000"},children:"Filter by Type"}),(0,i.jsx)(h.A,{value:O,onChange:e=>L(e.target.value),children:D.map(e=>(0,i.jsx)(p.A,{value:e,control:(0,i.jsx)(g.A,{size:"small"}),label:(0,i.jsx)(c.A,{sx:{fontSize:"14px"},children:S[e]||e}),sx:{display:"flex",marginBottom:"4px"}},e))})]})})]}),(0,i.jsxs)(m.A,{direction:"column",gap:"12px",children:[(0,i.jsxs)(m.A,{direction:"column",gap:"4px",children:[(0,i.jsx)("div",{className:T.bannerTitle,children:v.P.leaderboard.banner.title}),(0,i.jsx)("div",{className:T.bannerSubtitle,children:v.P.leaderboard.banner.subtitle})]}),H&&(0,i.jsxs)(s.A,{className:T.tournamentDetail,children:[(0,i.jsxs)(s.A,{className:T.tournamentPages,children:[(0,i.jsxs)(s.A,{className:T.tournamentHeading,children:[(0,i.jsx)(_.A,{sx:{mt:"5px"},title:(0,i.jsx)(c.A,{variant:"subtitle2",sx:{mt:.5},children:"This Displays the total number of active tournaments"}),arrow:!0,children:(0,i.jsx)(a.A,{sx:{width:"16px",height:"16px",color:"#5C6469",mt:"3px"}})}),(0,i.jsx)(s.A,{sx:{color:"#5C6469",fontSize:"14px",fontWeight:600},children:"TOURNAMENT"})]}),(0,i.jsxs)(s.A,{sx:{display:"flex",alignItems:"center",gap:"8px",marginTop:"5px"},children:[(0,i.jsx)(s.A,{onClick:()=>{W>0&&(B(e=>e-1),N&&N(W-1),z.clearTournamentLeaderBoard(),(0,F.exo)(null==H?void 0:H.tournament_id,O))},sx:{display:"flex",alignItems:"center",cursor:W>0?"pointer":"not-allowed",opacity:W>0?1:.5}
1,children:(0,i.jsx)(y.A,{sx:{fontSize:"16px",color:"#000000"}})}),(0,i.jsxs)(c.A,{sx:{color:"#000000",fontSize:"14px",fontWeight:600},children:[W+1," / ",(null==z?void 0:null===(n=z.activeTournament)||void 0===n?void 0:n.length)||0]}),(0,i.jsx)(s.A,{onClick:()=>{var e;W<((null==z?void 0:null===(e=z.activeTournament)||void 0===e?void 0:e.length)||0)-1&&(B(e=>e+1),N&&N(W+1),z.clearTournamentLeaderBoard(),(0,F.c4h)(null==H?void 0:H.tournament_id,O))},sx:{display:"flex",alignItems:"center",cursor:W<((null==z?void 0:null===(r=z.activeTournament)||void 0===r?void 0:r.length)||0)-1?"pointer":"not-allowed",opacity:W<((null==z?void 0:null===(l=z.activeTournament)||void 0===l?void 0:l.length)||0)-1?1:.5},children:(0,i.jsx)(w.A,{sx:{fontSize:"16px",color:"#000000"}})})]})]}),(0,i.jsx)(c.A,{sx:{color:"#000000",fontSize:"18px",fontWeight:"bold",marginTop:"-5px"},children:H.name}),(0,i.jsxs)(s.A,{className:T.datesContainer,children:[(0,i.jsxs)(s.A,{className:T.dates,sx:{borderRadius:"8px 0px 0px 8px"},children:[(0,i.jsx)("div",{className:T.dateTitle,children:"STARTED ON:"}),(0,i.jsx)("div",{className:T.dateStat,children:(0,f.GP)(new Date(null==H?void 0:H.start_date),"dd MMM, yyyy")})]}),(0,i.jsxs)(s.A,{className:T.dates,children:[(0,i.jsx)("div",{className:T.dateTitle,children:"CLOSE ON:"}),(0,i.jsx)("div",{className:T.dateStat,children:(0,f.GP)(new Date(null==H?void 0:H.end_date),"dd MMM, yyyy")})]}),(0,i.jsxs)(s.A,{className:T.dates,sx:{borderRadius:"0px 8px 8px 0px"},children:[(0,i.jsx)("div",{className:T.dateTitle,children:"CURRENT PROGRESS"}),(0,i.jsx)("div",{className:T.dateStat,children:"Week ".concat(V," of ").concat($)})]})]})]}),(0,i.jsxs)(s.A,{alignItems:"center",display:"flex",gap:"5px",children:[(0,i.jsx)(a.A,{height:1,width:1,fontSize:"inherit"}),(0,i.jsx)(c.A,{fontSize:12,fontWeight:400,children:"Note: This configuration dates are managed by org admins"})]})]})]})});var R=n(2424),T=n(20044),z=n(34544),I=n(1771),E=n(77568),D=n(78036),W=n(70258),B=n(39990),H=n(62322),P=n(68647),M=n(45277),O=n(85692),U=n(92616),G=n(58349),L=n(3508),q=n(84389),V=n(72665);let $=(0,r.n9)()(()=>({paper:{maxWidth:"unset",width:"fit-content",height:"fit-content"},root:{minWidth:"600px",minHeight:"620px",width:"fit-content",padding:"20px",display:"flex",flexDirection:"column",gap:"5px",position:"relative"},formTitle:{fontSize:"18px",fontWeight:700,lineHeight:"26px",color:"#242629"},rankName:{fontSize:"14px",fontWeight:700,lineHeight:"14px",color:"#202020"},close:{position:"absolute",top:"15px",right:"15px",cursor:"pointer"},tab:{minWidth:"92px",minHeight:"32px",padding:"8px 5px"}})),Y=(0,l.PA)(e=>{var t,n,r,l;let{onClose:a,rank:d,tournamentId:c,assignmentType:x}=e,{classes:u}=$(),{tournamentStore:h,userStore:p}=(0,A.gy)(),[g,v]=(0,O.Wx)(),[f,j]=o.useState("All"),b=p.currentUser,y=null!==(n=null==b?void 0:b.organization)&&void 0!==n?n:void 0,w=null!==(r=null==b?void 0:null===(t=b.clinic)||void 0===t?void 0:t.name)&&void 0!==r?r:void 0,k=null!==(l=null==b?void 0:b.user_id)&&void 0!==l?l:void 0,{tournamentReactionDetailLoading:_,tournamentReactionDetail:S,tournamentReactionDetailCount:N}=h;(0,o.useEffect)(()=>{(0,F.wF)(y,k,w,c,x)},[]);let R=()=>{(0,F.Yzz)(y,k,w,c,x),a()};return(0,o.useEffect)(()=>{let e="All"===f?void 0:f;h.setTournamentState("tournamentReactionDetail",null),h.setTournamentState("tournamentReactionDetailCount",0),h.fetchTournamentRankReactionDetail({rank_id:d.rank_id,reaction:e})},[h,f,d.rank_id]),(0,o.useEffect)(()=>{if(!v||!S||(null==S?void 0:S.length)>=N)return;(0,F.x0o)(y,k,w,c,x);let e="All"===f?void 0:f,t=S?Math.floor((null==S?void 0:S.length)/10)+1:1;h.fetchTournamentRankReactionDetail({rank_id:d.rank_id,reaction:e,page:t})},[h,v,d.rank_id,S,N,f,y,k,w]),(0,i.jsx)(L.A,{open:!0,onClose:R,classes:{paper:u.paper},children:(0,i.jsxs)("div",{className:u.root,children:[(0,i.jsxs)(m.A,{direction:"row",justifyContent:"space-between",children:[(0,i.jsx)("div",{className:u.formTitle,children:"Reactions"}),(0,i.jsx)(G.A,{className:u.close,onClick:R})]}),(0,i.jsxs)(m.A,{gap:"16px",direction:"column",children:[(0,i.jsx)(s.A,{sx:{borderBottom:1,borderColor:"#F4F4F4",boxShadow:"0px 1px 0px 0px #2ABDF026"},children:(0,i.jsx)(q.A,{indicatorColor:"primary",value:f,onChange:(e,t)=>
1{j(t),(0,F.pRU)(y,k,w,c,x)},children:["All",...Object.keys(M.q)].map((e,t)=>{var n,o,r;return(null===(n=d.total_reactions)||void 0===n?void 0:n.get(e))===0?null:(0,i.jsx)(V.A,{className:u.tab,value:e,iconPosition:"start",icon:"All"===e?(0,i.jsx)(C(),{width:20,height:20,src:"/images/Icons/All.svg",alt:e}):(0,i.jsx)(C(),{width:20,height:20,src:M.q[e],alt:e}),label:(0,i.jsx)("span",{style:{color:"#5C6469",fontSize:"12px",fontWeight:400,lineHeight:"12px"},children:"All"===e?"(".concat(Array.from((null===(o=d.total_reactions)||void 0===o?void 0:o.values())||[]).reduce((e,t)=>e+t,0),")"):"(".concat((null===(r=d.total_reactions)||void 0===r?void 0:r.get(e))||0,")")})},t)})})}),(0,i.jsx)(m.A,{direction:"column",gap:"12px",sx:{overflow:"auto",maxHeight:"600px"},children:(0,i.jsx)(i.Fragment,{children:S&&S.length>0?null==S?void 0:S.filter(e=>"All"===f||e.reaction===f).map((e,t)=>(0,i.jsxs)(m.A,{ref:(null==S?void 0:S.length)-1===t?g:null,direction:"row",justifyContent:"space-between",gap:"12px",children:[(0,i.jsxs)(m.A,{direction:"row",alignItems:"center",gap:"12px",children:[(0,i.jsx)(H.A,{sx:{width:"44px",height:"44px"},alt:"row",src:e.user.profile_image||""}),(0,i.jsx)("div",{className:u.rankName,children:"".concat(e.user.first_name," ").concat(e.user.last_name)})]}),(0,i.jsx)(m.A,{justifyContent:"center",alignItems:"center",children:(0,i.jsx)(C(),{width:16,height:16,src:M.q[e.reaction],alt:e.reaction})})]},t)):(0,i.jsx)(i.Fragment,{children:_&&(0,i.jsx)(i.Fragment,{children:Array.from({length:5}).map((e,t)=>(0,i.jsx)(P.A,{variant:"rectangular",width:"100%",height:50},t))})})})})]})]})})}),Z=(0,r.n9)()(()=>({tableContainer:{border:"1px  solid #B1C6E2",boxShadow:"unset",minHeight:"400px",maxHeight:"525px"},tableHeader:{backgroundColor:"#EBF4FF",color:"#000000",fontWeight:700,fontSize:"14px",lineHeight:"14px"},headerCell:{borderRight:"1px solid #B1C6E2",backgroundColor:"#EBF4FF",color:"#000000",fontWeight:700,fontSize:"14px",lineHeight:"14px"},tableRow:{backgroundColor:"#FFFFFF",color:"#000000",fontWeight:400,fontSize:"14px",lineHeight:"14px",".MuiTableCell-root":{borderRight:"1px solid #B1C6E2"}},reactPopover:{"& .MuiPopover-paper":{borderRadius:"8px",border:"1px solid #ABE2F6",boxShadow:"2px 2px 2px 0px #2ABDF026",backgroundColor:"#F8FDFF",padding:"8px"}},selectedReaction:{border:"1px solid #70DAFF",backgroundColor:"#E5F8FF",borderRadius:"30px",padding:"4px"},rank:{width:"24px",height:"24px",backgroundColor:"#D3DDE9",fontSize:"12px",fontWeight:700,lineHeight:"15px",color:"#536F92",textAlign:"center",borderRadius:"50%",padding:"5px",margin:"auto",display:"flex",alignItems:"center",justifyContent:"center"},rankName:{fontSize:"15px",fontWeight:500,lineHeight:"20px",color:"#101828"},ranknumber:{fontSize:"14px",fontWeight:600,color:"#242629"},rankPts:{fontSize:"14px",fontWeight:400,color:"#242629"},notFoundTitle:{color:"#242629",fontWeight:700,size:"16px",lineHeight:"24px"},notFoundText:{color:"#5C6469",fontWeight:400,size:"16px",lineHeight:"24px"},reactionBtn:{"&:hover":{transform:"scale(1.3)"}}})),J=(0,l.PA)(e=>{var t,n,r,l,a,d;let{index:c,activeFilter:x}=e,{classes:h,cx:p}=Z(),{tournamentStore:g,userStore:v}=(0,A.gy)(),[f,j]=(0,O.Wx)(),[b,y]=(0,o.useState)(null),[w,k]=(0,o.useState)(!1),_=v.currentUser,S=null!==(l=null==_?void 0:_.organization)&&void 0!==l?l:void 0,N=null!==(a=null==_?void 0:null===(t=_.clinic)||void 0===t?void 0:t.name)&&void 0!==a?a:void 0,G=null!==(d=null==_?void 0:_.user_id)&&void 0!==d?d:void 0,{currentTournamentLeaderBoard:L,currentTournamentLeaderBoardLoading:q,currentTournamentRankCount:V,activeTournament:$}=g,J=null==$?void 0:null===(n=$[c])||void 0===n?void 0:n.tournament_id;(0,o.useEffect)(()=>{if(!J||!x||q)return;let e=(null==L?void 0:L.length)||0;if(j&&e>0&&e<V){let t=Math.floor(e/10)+1;g.fetchTournamentLeaderBoard({assignment_type:[x],tournament_id:J,page:t})}},[c,j,q,J,x,null==L?void 0:L.length,V]);let K=()=>{x&&g.refreshTournamentLeaderBoard({assignment_type:[x],tournament_id:J||""})},Q=(e,t)=>{y(e.currentTarget),g.setSelectedRank(t),(0,F.w4P)(S,G,N,J,g.contest_assignment_types[0])},X=()=>{y(null),g.setSelectedRank(null),(0,F.LT7)(S,G,N,J,g.contest_assignment_types[0])},ee=!!b,et=ee?"rank-react-popover-".concat(null===(r=g.selectedTournamentRank)||void 0===r?void 0:r.rank_id):void 0;(0,o.useEffect)(()=>{(0,F.NvM)(S,G,N,J,g.contest_assignment_types[0])},[S,G,N,J,g.contest_assignment_types[0]]);let en=e=>{var t,n;let i=g.selectedTournamentRank;if(!i)return;let o=null===(t=i.my_reactions)||void 0===t?void 0:t.slice().includes(e);(0,F.UmZ)(S,G,N,J,g.contest_assignment_types[0]),(0,F.tBE)(S,G,N,J,g.contest_assignment_types[0]),null===(n=g.selectedTournamentRank)||void 0===n||n.addReaction(e),X(),o?(0,U.AR)({rank_id:i.rank_id,reaction:e}).then(()=>{K()}):(0,U.tA)({rank_id:i.rank_id,reaction:e}).then(()=>{K()})},ei=e=>{y(null),k(!0),g.setSelectedRank(e)};return(0,i.jsxs)(i.Fragment,{children:[w&&g.selectedTournamentRank&&(0,i.jsx)(Y,{onClose:()=>{k(!1),g.setSelectedRank(null)},rank:g.selectedTournamentRank,tournamentId:J||"",assignmentType:g.contest_assignment_types[0]}),g.selectedTournamentRank&&ee&&(0,i.jsx)(u.Ay,{id:et,open:ee,anchorEl:b,onClose:X,className:h.reactPopover,anchorOrigin:{vertical:"top",horizontal:"right"},children:(0,i.jsx)(m.A,{direction:"row",gap:"8px",justifyContent:"center",alignItems:"center",children:Object.entries(M.q).map(e=>{var t;let[n,o]=e;return(0,i.jsx)(R.A,{onClick:()=>en(n),className:p(h.reactionBtn,{[h.selectedReaction]:(null===(t=g.selectedTournamentRank)||void 0===t?void 0:t.my_reactions)&&g.selectedTournamentRank.my_reactions.includes(n)}),children:(0,i.jsx)(C(),{src:o,alt:"react",width:24,height:24})},n)})})}),(0,i.jsx)(T.A,{className:h.tableContainer,component:z.A,children:(0,i.jsxs)(I.A,{stickyHeader:!0,children:[(0,i.jsx)(E.A,{className:h.tableHeader,children:(0,i.jsxs)(D.A,{children:[(0,i.jsx)(W.A,{className:h.headerCell,sx:{width:"80px"},children:"# Rank"}),(0,i.jsx)(W.A,{className:h.headerCell,align:"left",children:"Name"}),(0,i.jsx)(W.A,{className:h.headerCell,align:"left",sx:{width:"386px"},children:"Reaction"}),(0,i.jsx)(W.A,{align:"left",className:h.headerCell,sx:{width:"220px"},children:"Total Points"})]})}),(0,i.jsx)(B.A,{children:L&&L.length>0?null==L?void 0:L.map((e,t)=>(0,i.jsxs)(D.A,{className:h.tableRow,ref:L.length-4===t?f:null,children:[(0,i.jsx)(W.A,{align:"center",children:[1,2,3].includes(e.rank)?(0,i.jsx)(m.A,{direction:"row",gap:"4px",alignItems:"center",justifyContent:"center",children:(0,i.jsx)(C(),{src:"/images/Icons/".concat(e.rank,"-pos-coin.svg"),alt:"react",width:24,height:24})}):(0,i.jsx)(s.A,{className:h.rank,children:(0,i.jsx)("p",{children:e.rank})})}),(0,i.jsx)(W.A,{align:"left",children:(0,i.jsxs)(m.A,{direction:"row",alignItems:"center",gap:"12px",children:[(0,i.jsx)(H.A,{sx:{width:"40px",height:"40px"},alt:"row",src:e.user.profile_image||""}),(0,i.jsx)("div",{className:h.rankName,children:"".concat(e.user.first_name," ").concat(e.user.last_name)})]})}),(0,i.jsx)(W.A,{align:"left",children:(0,i.jsxs)(m.A,{direction:"row",alignItems:"center",gap:"12px",children:[(0,i.jsx)(R.A,{"aria-describedby":et,onClick:t=>Q(t,e),children:(0,i.jsx)(C(),{src:"/images/Icons/dt-emoji-outline.svg",alt:"react",width:24,height:22})}),Object.entries(M.q).map(t=>{var n;let[o,r]=t,l=(null===(n=e.total_reactions)||void 0===n?void 0:n.get(o))||0;return l>0?(0,i.jsxs)(m.A,{direction:"row",gap:"4px",sx:{cursor:"pointer"},onClick:()=>ei(e),children:[(0,i.jsx)(C(),{src:r,alt:"react",width:20,height:20}),(0,i.jsx)("div",{className:h.ranknumber,children:l})]},o):null})]})}),(0,i.jsx)(W.A,{align:"left",children:(0,i.jsxs)(m.A,{direction:"row",gap:"12px",alignItems:"center",children:[(0,i.jsx)(C(),{src:"/images/Icons/tournament-points.svg",alt:"react",width:24,height:24}),(0,i.jsx)("div",{className:h.rankPts,children:"".concat(e.assignment_score," Pts")})]})})]},e.rank_id)):q?(0,i.jsx)(i.Fragment,{children:Array.from({length:10}).map((e,t)=>(0,i.jsx)(D.A,{children:(0,i.jsx)(W.A,{colSpan:4,children:(0,i.jsx)(P.A,{})})},t))}):(0,i.jsx)(i.Fragment,{children:(null===L||0===L.length)&&(0,i.jsx)(D.A,{children:(0,i.jsx)(W.A,{sx:{borderBottom:"none"},rowSpan:1,colSpan:4,align:"center",children:(0,i.jsxs)(m.A,{gap:"20px",direction:"column",justifyContent:"center",alignItems:"center",children:[(0,i.jsx)(C(),{width:240,height:189,src:"/images/no-data-2.svg",alt:"No Data"}),(0,i.jsxs)(m.A,{width:420,gap:"4px",children:[(0,i.jsx)("div",{className:h.notFoundTitle,children:"Leaderboard Unavailable"}),(0,i.jsx)("div",{className:h.notFoundText,children:"No Contest Assignment Available for ".concat("ORG"===g.contest_assignment_types[0]?"Organization":"GROUP"===g.contest_assignment_types[0]?"User Group":"Clinic",", Please update the filter for the same.")})]})]})})})})})]})})]})}),K=(0,r.n9)()(()=>({root:{width:"100%",height:"100%"},title:{fontSize:"22px",fontWeight:700,lineHeight:"30px",textAlign:"left"},buttonNavigation:{backgroundColor:"#F2F2F2",borderRadius:"8px",padding:"6px",color:"#86888A","& .MuiButtonBase-root":{borderRadius:"6px",padding:"12px",minWidth:"fit-content","&.MuiBottomN
1avigationAction-root":{"&.Mui-selected":{backgroundColor:"#FFFFFF"}}},"& .MuiBottomNavigationAction-label":{fontSize:"14px",fontWeight:700,lineHeight:"20px",color:"#86888A","&.Mui-selected":{color:"#19161D"}}}})),Q=(0,l.PA)(e=>{let{index:t,activeFilter:n}=e,{classes:o}=K();return(0,i.jsx)(m.A,{direction:"column",gap:"18px",className:o.root,children:(0,i.jsx)(J,{index:t,activeFilter:n})})}),X=(0,r.n9)()(()=>({root:{height:"100%",padding:"30px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",gap:"30px",overflowY:"auto"}})),ee=(0,l.PA)(e=>{var t,n,r,l;let{onTournamentChange:a,onFilterChange:s,selectedTournamentId:d,selectedFilters:c}=e,{classes:x}=X(),[u,h]=(0,o.useState)(0),[p,g]=(0,o.useState)(""),{userStore:m}=(0,A.gy)(),v=m.currentUser,f=null!==(n=null==v?void 0:v.organization)&&void 0!==n?n:void 0,j=null!==(r=null==v?void 0:null===(t=v.clinic)||void 0===t?void 0:t.name)&&void 0!==r?r:void 0,b=null!==(l=null==v?void 0:v.user_id)&&void 0!==l?l:void 0;return(0,o.useEffect)(()=>{d&&c&&(0,F.iiP)(f,b,j,d,c[0])},[]),(0,i.jsxs)("div",{className:x.root,children:[(0,i.jsx)(N,{onTournamentChange:a,onIndexChange:h,onFilterChange:e=>{e.length>0&&g(e[0]),s&&s(e)}}),(0,i.jsx)(Q,{index:u,activeFilter:p})]})})},45277:(e,t,n)=>{n.d(t,{q:()=>i});let i={"U+2764 + U+FE0F":"/images/Icons/dt-icon-Heart.svg","U+1F917":"/images/Icons/dt-icon-Handshake.svg","U+1F389":"/images/Icons/dt-icon-Confetti.svg","U+1F44D":"/images/Icons/dt-icon-ThumbsUp.svg","U+1F525":"/images/Icons/dt-icon-Fire.svg"}},85692:(e,t,n)=>{n.d(t,{Wx:()=>d});var i=n(96540),o=Object.defineProperty,r=new Map,l=new WeakMap,a=0,s=void 0;function d({threshold:e,delay:t,trackVisibility:n,rootMargin:o,root:c,triggerOnce:x,skip:u,initialInView:h,fallbackInView:p,onChange:g}={}){var m;let[v,f]=i.useState(null),A=i.useRef(),[j,b]=i.useState({inView:!!h,entry:void 0});A.current=g,i.useEffect(()=>{let i;if(!u&&v)return i=function(e,t,n={},i=s){if(void 0===window.IntersectionObserver&&void 0!==i){let o=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}let{id:o,observer:d,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(l.has(n)||(a+=1,l.set(n,a.toString())),l.get(n)):"0":e[t]}`}).toString(),n=r.get(t);if(!n){let i;let o=new Map,l=new IntersectionObserver(t=>{t.forEach(t=>{var n;let r=t.isIntersecting&&i.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null==(n=o.get(t.target))||n.forEach(e=>{e(r,t)})})},e);i=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:l,elements:o},r.set(t,n)}return n}(n),x=c.get(e)||[];return c.has(e)||c.set(e,x),x.push(t),d.observe(e),function(){x.splice(x.indexOf(t),1),0===x.length&&(c.delete(e),d.unobserve(e)),0===c.size&&(d.disconnect(),r.delete(o))}}(v,(e,t)=>{b({inView:e,entry:t}),A.current&&A.current(e,t),t.isIntersecting&&x&&i&&(i(),i=void 0)},{root:c,rootMargin:o,threshold:e,trackVisibility:n,delay:t},p),()=>{i&&i()}},[Array.isArray(e)?e.toString():e,v,c,o,x,u,n,p,t]);let y=null==(m=j.entry)?void 0:m.target,w=i.useRef();v||!y||x||u||w.current===y||(w.current=y,b({inView:!!h,entry:void 0}));let k=[f,j.inView,j.entry];return k.ref=k[0],k.inView=k[1],k.entry=k[2],k}i.Component}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.