PageSourceSearch

https://www.projectread.ai/_next/static/chunks/pages/dev/playground/roster-sync-82814882016330b7.js

js projectread.ai collected 2026-09-24 10:36:34 UTC 7,146 bytes, 1 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="da26342b-c77a-47fc-8a3c-4a511b51ba56",t._sentryDebugIdIdentifier="sentry-dbid-da26342b-c77a-47fc-8a3c-4a511b51ba56")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([["7249"],{78303:function(t,e,n){t=n.nmd(t),(window.__NEXT_P=window.__NEXT_P||[]).push(["/dev/playground/roster-sync",function(){return n(82857)}]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push(["/dev/playground/roster-sync"])})},36769:function(t,e,n){"use strict";n.d(e,{Ji:()=>a,Q1:()=>c,bb:()=>d});var r=n(97496),o=n(8401),i=n(78090);let a=t=>{let{value:e,formatter:n,...i}=t,a=(0,o.k)();if(!e)return(0,r.tZ)("time",{...i,children:"Never"});let d=a?n(e):e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",timeZone:"America/New_York"});return(0,r.tZ)("time",{dateTime:e.toISOString(),title:a?e.toLocaleString("en-US",{formatMatcher:"best fit"}):"",...i,children:d})},d=t=>(0,r.tZ)(a,{formatter:i.Sy,...t}),c=t=>(0,r.tZ)(a,{formatter:i.o2,...t})},25791:function(t,e,n){"use strict";n.d(e,{Z:()=>i});var r=n(97496),o=n(11823);let i=t=>{let{as:e,title:n,titleElement:i="h1",pad:a,max:d,children:c,...s}=t,l="boolean"==typeof a&&a?{"--cardPadding":"32px",[o.r.mobile]:{"--cardPadding":"24px"},[o.r.mobileSmall]:{"--cardPadding":"16px"}}:{"--cardPadding":"".concat(a||0,"px")};return(0,r.BX)(null!=e?e:"div",{css:{...l,marginInline:"auto",maxWidth:"min(100%, calc(100vw - 40px), ".concat(null!=d?d:720,"px)"),color:o.r.colors.n70,background:o.r.colors.n10,borderRadius:10,boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.025)",padding:"var(--cardPadding)"},...s,children:[n&&(0,r.tZ)(i,{css:{...o.r.titleM,fontSize:20,color:o.r.colors.n80,paddingBottom:12,borderBottom:"1px solid ".concat(o.r.colors.n30),marginBottom:24},children:n}),c]})}},88591:function(t,e,n){"use strict";n.d(e,{f:()=>d});var r=n(97496),o=n(99168),i=n(31756);let a=(0,i.tX)({description:"sync district roster",request:{method:"post",path:"/api/playground/roster-sync"},effects:{success:[{effect:"toast",message:"Roster sync completed successfully"},{effect:"refresh"}]}}),d=t=>{let{districtId:e,size:n,level:d}=t,c=(0,i.lM)(a);return(0,r.tZ)(o.zx,{size:n,level:d,loading:c.loading,loadingLabel:"Syncing roster",onClick:()=>{c.dispatch({districtId:e})},children:"Sync now"})}},8401:function(t,e,n){"use strict";n.d(e,{k:()=>i});var r=n(95931);let o=!1,i=()=>{let[t,e]=(0,r.useState)(o);return(0,r.useEffect)(()=>{t||(e(!0),o=!0)},[]),t}},97451:function(t,e,n){"use strict";n.d(e,{d:()=>s});var r=n(97496),o=n(16024),i=n.n(o),a=n(12122),d=n(75619),c=n(24829);let s=t=>{let{title:e,description:n,noIndex:o,canonicalUrl:s,image:l}=t,u=e.includes("Project Read")?e:"".concat(e," \xb7 Project Read");(null==s?void 0:s.startsWith("/"))&&(s=new URL(s,d._n).toString());let y=l&&"string"!=typeof l?(0,a.ZA)({...c.dJ.parse(l),baseUrl:d.NZ,width:1200,height:800}):{src:null!=l?l:"".concat(d._n,"og-image.jpg"),width:void 0,height:void 0};return(0,r.BX)(i(),{children:[(0,r.tZ)("title",{children:u}),(0,r.tZ)("meta",{name:"og:title",content:u}),n&&(0,r.tZ)("meta",{name:"description",content:n}),n&&(0,r.tZ)("meta",{name:"og:description",content:n}),(0,r.tZ)("meta",{property:"og:image",content:y.src}),y.width&&(0,r.tZ)("meta",{property:"og:image:width",content:"".concat(y.width)},"width"),y.height&&(0,r.tZ)("meta",{property:"og:image:height",content:"".concat(y.height)},"height"),o&&(0,r.tZ)("meta",{name:"robots",content:"noindex"}),s&&(0,r.tZ)("link",{rel:"canonical",content:s})]})}},78090:function(t,e,n){"use strict";n.d(e,{Sy:()=>h,Zh:()=>g,ie:()=>b,k3:()=>y,ku:()=>u,o2:()=>l,tC:()=>f,tt:()=>m,xk:()=>p});var r=n(23750),o=n(84080),i=n(85025),a=n(31069),d=n(7115),c=n(8331),s=n(70227);let l=t=>{let e=new Date;return((0,o.K)(t,e)?"Today":(0,i.g)(t)?"Yesterday":(0,a.P)(t)?"Tomorrow":6>=Math.abs(Math.floor((t.getTime()-e.getTime())/864e5))?(0,d.WU)(t,"E"):(0,c.F)(t,e)?(0,d.WU)(t,"MMM d"):(0,d.WU)(t,"MMM d, yyyy"))+", "+(0,d.WU)(t,"h:mm a")},u=t=>{let e=new Date;return(0,o.K)(t,e)?"Today":(0,i.g)(t)?"Yesterday":(0,a.P)(t)?"Tomorrow":6>
1=Math.abs(Math.floor((t.getTime()-e.getTime())/864e5))?(0,d.WU)(t,"EEEE"):(0,c.F)(t,e)?(0,d.WU)(t,"MMM d"):(0,d.WU)(t,"MMM d, yyyy")},y=t=>(0,d.WU)(t,"MMMM d, yyyy"),g=t=>(0,d.WU)(t,"MMM d"),h=(t,e)=>(0,s.D)(t,null!=e?e:{addSuffix:!0}),f=t=>t.toLocaleDateString("en-CA"),m=()=>f(new Date),p=t=>{let[e,n,o]=t.split("-");return new r.eJ(Number(e),Number(n)-1,Number(o))},b=(t,e)=>(0,d.WU)(p(t),e)},82857:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:()=>y,default:()=>g});var r=n(97496),o=n(40006),i=n(20178),a=n.n(i),d=n(36769),c=n(25791),s=n(88591),l=n(97451),u=n(11823),y=!0;let g=(0,o.j5)(t=>{let{districts:e}=t;return(0,r.BX)(r.HY,{children:[(0,r.tZ)(l.d,{title:"Roster Sync \xb7 Playground",noIndex:!0}),(0,r.tZ)("div",{css:{maxWidth:720,margin:"50px auto 8px"},children:(0,r.BX)(a(),{href:"/dev/playground",css:{transition:"transform 0.2s ease-out",":hover":{transform:"translateY(-1px)"}},children:["← ",(0,r.tZ)("small",{children:"Back to the playground"})]})}),(0,r.BX)(c.Z,{title:"Roster Sync",pad:!0,css:{marginTop:0},children:[(0,r.tZ)("p",{css:{marginBottom:24},children:"Manage roster syncing for districts. Districts with roster sync enabled can be manually synced here."}),(0,r.BX)("div",{css:{display:"flex",flexDirection:"column",gap:16},children:[e.map(t=>(0,r.BX)("div",{css:{padding:16,border:"1px solid ".concat(u.r.colors.n30),borderRadius:8,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:t.rosterSyncEnabled?u.r.colors.n0:u.r.colors.n10},children:[(0,r.BX)("div",{children:[(0,r.tZ)("h3",{css:{margin:0,marginBottom:4},children:t.name}),(0,r.tZ)("div",{css:{fontSize:14,color:u.r.colors.n50},children:t.rosterSyncEnabled?(0,r.BX)(r.HY,{children:["Roster sync enabled • Last synced:"," ",(0,r.tZ)(d.bb,{value:t.rosterSyncLastRunAt})]}):"Roster sync disabled"})]}),t.rosterSyncEnabled&&(0,r.tZ)(s.f,{districtId:t.id})]},t.id)),0===e.length&&(0,r.tZ)("p",{css:{textAlign:"center",color:u.r.colors.n50},children:"No districts found"})]})]})]})})},24829:function(t,e,n){"use strict";n.d(e,{CN:()=>d,KM:()=>i,cN:()=>u,dJ:()=>l,sm:()=>y,x4:()=>o});var r=n(49677);let o=r.Ry({_key:r.Z_(),_type:r.Z_()}),i=t=>void 0,a=r.IX(r.Ry({_type:r.Z_()})),d=r.PG(t=>a.parse(t));r.Z_().regex(/^file(?:-[\da-z]+){2}$/);let c=r.Z_().regex(/^image-[\da-z]+-\d+x\d+-[\da-z]+$/),s=r.Ry({asset:r.Ry({_id:c}).or(r.Ry({_ref:c})),crop:r.Ry({bottom:r.Rx(),left:r.Rx(),right:r.Rx(),top:r.Rx()}).optional(),hotspot:r.Ry({x:r.Rx(),y:r.Rx()}).optional()}),l=s.transform(t=>{let{asset:e,...n}=t;return{...n,id:"_id"in e?e._id:e._ref}}),u=s.extend({altText:r.Z_().default("")}).transform(t=>{let{asset:e,altText:n,...r}=t;return{alt:n,...r,id:"_id"in e?e._id:e._ref}}),y=r.Ry({text:r.Z_(),url:r.Z_(),newTab:r.O7().default(!0)})}},function(t){t.O(0,["2203","344","4202","6909","8280","8808","9174","968"],function(){return t(t.s=78303)}),_N_E=t.O()}]);

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.