1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2586],{15369:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});class n extends Error{name="PageError";statusCode=400}class s extends n{name="PageNotFoundError";statusCode=404;constructor(e="Oh no! This page does not exist."){super(e)}}},21537:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>O,default:()=>R});var n=r(18153),s=r(42720),l=r(99407),i=r(2665),a=r(64435),o=r(39955),c=r(76032),d=r(38993),u=r(89099),h=r(91383),m=r(10359),p=r(10686),_=r(73123),f=r(55720),y=r(4724),A=r(54443),v=r(75292),w=r(15369),S=r(78919),g=r(61110),x=r(1533),T=r(46304),Y=r(77489),b=r(45514),N=r(74086),C=r(65082),E=r(49783),k=r(45895),I=r(71908),j=r(91760),F=r(92231);let $=(0,g.A)(function(){let e=(0,u.useRouter)(),t=(0,A.I)(),r=(0,v.Jd)(),g=(0,y.U)(),$=(0,I.h)(),O=Number.parseInt(`${e.query.user}`,10),R=t.one(f.Ay.where({id:O,paranoid:!1}))(f.Ay.id),D=t.one(_.A.where({userId:O})),q=D(_.A.auditor_level)??x.JL.Flagged,P=D(_.A.getSlackUserId())??"",U=D(_.A.getSlackEmail()),X=t.many(m.Ay.getMarchSATActiveLearningInterventionArms({userId:O})),B={Hosted:(0,S.Xs)`${p.A.attempted_hosting} = TRUE`,Past:(0,S.Xs)`${p.A.start_date} <= NOW()`,Future:(0,S.Xs)`${p.A.start_date} > NOW()`},L=(0,j.y)(B,"filter"),V={"Session Date (descending)":(0,S.Xs)`${p.A.start_date} DESC`,"Session Date (ascending)":(0,S.Xs)`${p.A.start_date} ASC`},M=(0,j.y)(V,"sort"),z=p.A.where({tutor:O,include:[{association:"User",required:!0}]},L),H=t.many`${z} ORDER BY ${M} LIMIT ${k.T0} OFFSET ${$}`,K=t`COUNT(*) ${z}`??0;if(!g.dryRun&&null==R)throw new w.A("Oh no! This user account does not exist.");return(0,n.Y)(E.A,{title:`User#${R}`,children:(0,n.FD)(s.m,{children:[(0,n.Y)(C.A,{queryUserId:O,currentTab:"Tutor"}),(0,n.Y)(b.A,{title:"Overview",body:()=>(0,n.FD)(l.X,{css:(0,d.AH)("td:nth-child(1),td:nth-child(3){font-weight:600;}"),children:[(0,n.FD)(i.Tr,{children:[(0,n.Y)(a.Td,{children:"Slack Profile URL"}),(0,n.Y)(a.Td,{children:(0,T.Ukm)(P)}),(0,n.Y)(a.Td,{children:"Slack Email"}),(0,n.Y)(a.Td,{children:U??"None"})]}),(0,n.FD)(i.Tr,{children:[(0,n.Y)(a.Td,{children:"Peer Reviewer Level"}),(0,n.Y)(a.Td,{children:(0,n.Y)(o.a,{children:(0,n.Y)(F.A,{tutorAuditorLevel:q})})}),(0,n.Y)(a.Td,{children:"SAT Bootcamp Intervention Arms"}),(0,n.Y)(a.Td,{children:X.map(e=>e(h.A.name)).join(",")})]})]})}),(0,n.Y)(b.A,{title:"Sessions",body:()=>(0,n.FD)(o.a,{children:[(0,n.FD)(c.B,{direction:"row",justify:"flex-end",spacing:4,my:6,children:[(0,n.Y)(j.V,{sorts:B,queryKey:"filter",text:"Filter"}),(0,n.Y)(j.V,{sorts:V,queryKey:"sort",text:"Sort",width:"250px"})]}),(0,n.Y)(o.a,{overflowX:"scroll",children:(0,n.Y)(N.A,{showAuditorCols:!0,showMentorCols:(0,Y.OK)(r,"admin:mentor"),sessions:H})}),(0,n.Y)(I.A,{scheme:"url",totalItemsCount:K})]}),collapsible:!0})]})})},{authScopes:["admin:users:read"]});var O=!0;let R=$},28512:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/user/[user]/tutor",function(){return r(21537)}])},45755:(e,t,r)=>{"use strict";function n(e){return e.toLowerCase().replace(/[^a-z0-9|-]/g,"")}function s(e,t){let r=t[e];return null==r||""===r?null:`${r}`}r.d(t,{T:()=>s,Z:()=>n})},83328:(e,t,r)=>{"use strict";r.d(t,{C:()=>c});var n=r(37876),s=r(29185),l=r(75255),i=r(11842),a=r(66394),o=r(85696);let c=(0,i.R)(function(e,t){let r=(0,a.V)("Code",e),{className:i,...c}=(0,s.M)(e);return(0,n.jsx)(o.B.code,{ref:t,className:(0,l.cx)("chakra-code",e.className),...c,__css:{display:"inline-block",...r}})});c.displayName="Code"},84878:(e,t,r)=>{"use strict";r.d(t,{l:()=>_});var n=r(37876),s=r(29185),l=r(33527),i=r(46396),a=r(71851),o=r(14232),c=r(75255),d=r(11842),u=r(85696);let h=(0,d.R)(function(e,t){let{children:r,placeholder:s,className:l,...i}=e;return(0,n.jsxs)(u.B.select,{...i,ref:t,className:(0,c.cx)("chakra-select",l),children:[s&&(0,n.jsx)("option",{value:"",children:s}),r]})});h.displayName="SelectField";var m=r(70667),p=r(66394);let _=(0,d.R)((e,t)=>{let r=(0,p.o)("Select",e),{rootProps:o,placeholder:c,icon:d,color:_,height:f,h:y,minH:v,minHeight:w,iconColor:S,iconSize:g,...x}=(0,s.M)(e),[T,Y]=(0,i.l)(x,l.GF),b=(0,m.t)(Y),N={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...r.field?._focus}};return(0,n.jsxs)(u.B.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:_},...T,...o,children:[(0,n.jsx)(h,{ref:t,height:y??f,minH:v??w,placeholder:c,...b,__css:N,children:e.children}),(0,n.jsx)(A,{"data-disabled":(0,a.s)(b.disabled),...(S||_)&&{color:S||_},__css:r.icon,...g&&{fontSize:g},children:d})]})});_.displayName="Select";let f=e=>(0,n.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),y=(0,u.B)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),A=e=>{let{children:t=(0,n.jsx)(f,{}),...r}=e,s=(0,o.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,n.jsx)(y,{...r,className:"chakra-select__icon-wrapper",children:(0,o.isValidElement)(t)?s:null})};A.displayName="SelectIcon"},91760:(e,t,r)=>{"use strict";r.d(t,{V:()=>m,y:()=>p});var n=r(18153),s=r(59803),l=r(39955),i=r(89099),a=r(14232),o=r(74175),c=r(85279),d=r
1(47808),u=r(45895),h=r(45755);function m({sorts:e,queryKey:t="sort",zIndex:r="auto",width:p="15rem",text:_="Sort by",defaultSortKey:f,menuPortalTargetRef:y,tooltipText:A}){let v=(0,i.useRouter)(),w=`${v.query[t]}`,S=Object.keys(e).map(e=>({label:e,inputValue:e,value:(0,h.Z)(e)})),g=S.find(e=>e.value===w),x=S.find(e=>e.value===f),T=S?.[0],[Y,b]=(0,a.useState)(null),N=v.query[u.nw],[C]=(0,o.A)(async e=>{if(null==e)return;b(e);let r=null!=N?{[u.nw]:1}:{};await v.replace({query:{...v.query,[t]:e.value,...r}}),b(null)},[N,t,v],"Process Sort Value change");return(0,n.FD)(s.s,{align:"center",children:[(0,n.Y)(d.A,{content:A,disabled:null==A,children:(0,n.Y)(l.a,{fontWeight:"bold",mr:2,flexShrink:0,children:_})}),(0,n.Y)(l.a,{width:p,zIndex:r,children:(0,n.Y)(c.A,{instanceId:t,name:t,options:S,value:Y??g??x??T,onChange:C,isSearchable:!0,isClearable:!1,components:{IndicatorSeparator:()=>null},menuPortalTarget:y?.current})})]})}function p(e,t="sort"){let r=(0,i.useRouter)(),n=`${r.query[t]}`,s=Object.entries(e).find(([e])=>(0,h.Z)(e)===n);return s?s[1]:Object.values(e)[0]}}},e=>{e.O(0,[8828,6425,3916,2035,8113,4086,636,6593,8792],()=>e(e.s=28512)),_N_E=e.O()}]); 2//# sourceMappingURL=tutor-ca1168e9bcc9115c.js.map
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.