PageSourceSearch

https://play.cashygame.com/static/js/2137.d53e77a1.chunk.js

js cashygame.com collected 2026-10-04 12:54:25 UTC 15,389 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="46df1496-b449-55ad-b011-1d6f597db94c")}catch(e){}}();
3(self.webpackChunkclient=self.webpackChunkclient||[]).push([[2137],{82137:function(e,r,t){t.r(r),t.d(r,{CurriculumScoresView:function(){return h}});t(88032);var n=t(10063),s=t(57178),u=t(74207),o=t(9760),c=t(14383),l=t(32117),a=t(55225),i=t(58996),d=t(5954),m=t(47872),_=t(2428);const h=()=>{var e;const{t:r}=(0,s.Bd)(),t=(0,u.Zp)(),{data:h,loading:g,error:y}=(0,a.uqO)({fetchPolicy:"cache-and-network"}),f=null!==(e=null==h?void 0:h.assignmentReports)&&void 0!==e?e:[];return(0,_.jsx)(d.L,{children:(0,_.jsxs)("div",{className:"user-dashboard",children:[(0,_.jsx)(n.m,{children:(0,_.jsx)("title",{children:r("user.curriculumScores.title")})}),(0,_.jsx)("div",{className:"dashboard-container",children:(0,_.jsxs)("div",{className:m.A.column,"data-ruler":"page",children:[(0,_.jsxs)("header",{className:m.A.header,children:[(0,_.jsx)("h1",{className:m.A.pageTitle,children:r("user.curriculumScores.title")}),(0,_.jsx)("p",{className:m.A.lede,children:r("user.curriculumScores.lede")})]}),y&&!f.length?(0,_.jsx)("p",{className:m.A.message,children:r("user.curriculumScores.loadFailed")}):null,f.length?(0,_.jsx)("div",{className:m.A.tableCard,"data-ruler":"scores-list",children:(0,_.jsx)("table",{children:(0,_.jsx)("tbody",{children:f.map(e=>(0,_.jsxs)("tr",{className:m.A.clickRow,onClick:()=>t((0,i.A3)(e.roomId)),children:[(0,_.jsx)("td",{className:m.A.strong,children:e.title}),(0,_.jsx)("td",{children:(0,i.xY)(e.startedAt)}),(0,_.jsx)("td",{children:r("user.curriculumScores.studentCount",{count:e.studentCount})}),(0,_.jsx)("td",{className:m.A.actionsCell,children:(0,_.jsx)(c.QI,{size:"sm",variant:"outline",onClick:r=>{r.stopPropagation(),t((0,i.A3)(e.roomId))},children:r("user.curriculumScores.open")})})]},e.roomId))})})}):!g&&!y&&(0,_.jsx)(l.s,{icon:(0,_.jsx)(o.A,{size:26}),title:r("user.curriculumScores.emptyTitle"),body:r("user.curriculumScores.emptyBody"),action:(0,_.jsx)(c.QI,{variant:"primary",onClick:()=>t("/dashboard/courses"),children:r("user.curriculumScores.emptyAction")}),steps:[r("user.curriculumScores.emptyStep1"),r("user.curriculumScores.emptyStep2"),r("user.curriculumScores.emptyStep3")]})]})})]})})};r.default=h},5954:function(e,r,t){t.d(r,{L:function(){return a}});var n=t(88032),s=t(74207),u=t(40180),o=t(55225),c=t(14383),l=t(2428);const a=({children:e})=>{var r,t;const a=(0,s.Zp)(),{userId:i}=(0,u.Us)(),d=null===(r=(0,o.Kht)({variables:{userId:i},fetchPolicy:"cache-first",skip:!i||"-1"===i}).data)||void 0===r||null===(t=r.getUserSettings)||void 0===t?void 0:t.role,m=d===o.gG1.CREDIT_UNION;return(0,n.useEffect)(()=>{m&&a("/dashboard/workshops",{replace:!0})},[m,a]),!d||m?null:(0,l.jsx)(c.l_,{children:e})}},58996:function(e,r,t){t.d(r,{A3:function(){return s},cv:function(){return n},f:function(){return u},xY:function(){return o}});const n="/dashboard/scores",s=e=>`${n}/${e}`,u=(e,r)=>`${s(e)}/${r}`,o=e=>{const r=new Date(e);return Number.isNaN(r.getTime())?"":r.toLocaleString(void 0,{weekday:"short",month:"short",day:"numeric",year:r.getFullYear()===(new Date).getFullYear()?void 0:"numeric",hour:"numeric",minute:"2-digit"})}},99244:function(e,r,t){t.d(r,{Q:function(){return u}});t(88032);var n={btn:"CurriculumButton_btn__tpK-p",primary:"CurriculumButton_primary__P+l7H",ghost:"CurriculumButton_ghost__y9Yg+",outline:"CurriculumButton_outline__TiZgL",sm:"CurriculumButton_sm__PYqoQ"},s=t(2428);const u=({variant:e="ghost",size:r="md",className:t,type:u="button",children:o,...c})=>(0,s.jsx)("button",{type:u,className:[n.btn,n[e],"sm"===r?n.sm:"",t].filter(Boolean).join(" "),...c,children:o})},32117:function(e,r,t){t.d(r,{s:function(){return g}});t(88032);var n="CurriculumEmptyState_card__SGpYY",s="CurriculumEmptyState_lead__go8k4",u="CurriculumEmptyState_icon__pWqpc",o="CurriculumEmptyState_text__YgjoK",c="CurriculumEmptyState_title__AxDE8",l="CurriculumEmptyState_body__T8hpK",a="CurriculumEmptyState_action__uoASM",i="CurriculumEmptyState_steps__OOwFq",d="CurriculumEmptyState_step__wjtA9",m="CurriculumEmptyState_stepNumber__sE0rj",_="CurriculumEmptyState_stepText__Bs6kr",h=t(2428);const g=({icon:e,title:r,body:t,action:g,steps:y})=>(0,h.jsxs)("section",{className:n,"data-testid":"curriculum-empty-state",children:[(0,h.jsxs)("div",{className:s,children:[(0,h.jsx)("span",{className:u,"aria-hidden":!0,
3children:e}),(0,h.jsxs)("div",{className:o,children:[(0,h.jsx)("h2",{className:c,children:r}),(0,h.jsx)("p",{className:l,children:t})]}),g?(0,h.jsx)("div",{className:a,children:g}):null]}),null!=y&&y.length?(0,h.jsx)("ol",{className:i,children:y.map((e,r)=>(0,h.jsxs)("li",{className:d,children:[(0,h.jsx)("span",{className:m,children:r+1}),(0,h.jsx)("span",{className:_,children:e})]},e))}):null]})},29837:function(e,r,t){t.d(r,{bI:function(){return s},ge:function(){return u}});const n=["devices","nodevices","selfpaced","remote"],s="devices",u=e=>n.includes(e)?e:s},14383:function(e,r,t){t.d(r,{Xs:function(){return v},QI:function(){return l.Q},l_:function(){return c},O_:function(){return g},Ye:function(){return p},xt:function(){return f.xt},yn:function(){return f.yn},R2:function(){return a},MR:function(){return w},ge:function(){return k.ge},j:function(){return f.j},nD:function(){return x},nt:function(){return f.nt},wX:function(){return f.wX},Xd:function(){return f.Xd},qW:function(){return j},z4:function(){return f.z4},yu:function(){return f.yu},Mj:function(){return f.Mj},SB:function(){return f.SB},_K:function(){return f._K}});var n=t(88032),s=t(74207),u=t(1502),o=t(2428);const c=({children:e})=>{const r=(0,s.Zp)(),t=(0,u.$)();return(0,n.useEffect)(()=>{!1===t&&r("/dashboard/workshops",{replace:!0})},[t,r]),!0!==t?null:(0,o.jsx)(o.Fragment,{children:e})};var l=t(99244);const a=()=>(0,o.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M4 20h4L19 9a2.5 2.5 0 0 0-3.5-3.5L4 16z"}),(0,o.jsx)("path",{d:"M14.5 6.5 17.5 9.5"})]});var i="CurriculumPageHeader_header__VxJyi",d="CurriculumPageHeader_titleBlock__-cw2w",m="CurriculumPageHeader_title__0DeTK",_="CurriculumPageHeader_lede__0GGIO",h="CurriculumPageHeader_actions__Pp530";const g=({title:e,lede:r,actions:t})=>(0,o.jsxs)("div",{className:i,children:[(0,o.jsxs)("div",{className:d,children:[(0,o.jsx)("h1",{className:m,children:e}),r?(0,o.jsx)("p",{className:_,children:r}):null]}),t?(0,o.jsx)("div",{className:h,children:t}):null]});var y={grid:"CurriculumWeekGrid_grid__58qFg",col:"CurriculumWeekGrid_col__qPEPM",isToday:"CurriculumWeekGrid_isToday__UCFKY",head:"CurriculumWeekGrid_head__nCa0k",day:"CurriculumWeekGrid_day__DzokL",date:"CurriculumWeekGrid_date__L58gO",isGone:"CurriculumWeekGrid_isGone__TvSFi",todayFlag:"CurriculumWeekGrid_todayFlag__tKWiv",slot:"CurriculumWeekGrid_slot__MAito",isEmpty:"CurriculumWeekGrid_isEmpty__XCNJm",slotTitle:"CurriculumWeekGrid_slotTitle__SP94g"},f=t(7689);const p=({week:e,renderCell:r,emptyLabel:t,todayLabel:n})=>{const s=new Date,u=new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime();return(0,o.jsx)("div",{className:y.grid,children:[0,1,2,3,4].map(s=>{const c=new Date(e.viewMonday.getFullYear(),e.viewMonday.getMonth(),e.viewMonday.getDate()+s),l=s===e.todayCol,a=c.getTime()<u&&!l,i=e.cells.filter(e=>e.col===s);return(0,o.jsxs)("div",{className:[y.col,l?y.isToday:"",a?y.isGone:""].filter(Boolean).join(" "),children:[(0,o.jsxs)("div",{className:y.head,children:[(0,o.jsx)("b",{className:y.day,children:f.yn[c.getDay()]}),(0,o.jsx)("span",{className:y.date,children:(0,f.wX)(c)}),l?(0,o.jsx)("em",{className:y.todayFlag,children:n}):null]}),i.length?i.map((e,t)=>(0,o.jsx)("div",{className:y.slot,children:r(e)},`${e.entry.classId}-${e.at}-${t}`)):(0,o.jsx)("div",{className:[y.slot,y.isEmpty].join(" "),children:(0,o.jsx)("span",{className:y.slotTitle,children:t})})]},s)})})};var C=t(57178),S={logo:"ShareToClassroomButton_logo__Bb+Pg",logoSm:"ShareToClassroomButton_logoSm__XQLgG",onDark:"ShareToClassroomButton_onDark__YqmXF"};const x=(e,r)=>`${e}/classroom?code=${encodeURIComponent(r)}`,j=(e,r)=>`${e}/start/join/name?gamePin=${encodeURIComponent(r)}`,v=({className:e})=>(0,o.jsx)("img",{className:[S.logo,e].filter(Boolean).join(" "),src:"https://www.gstatic.com/classroom/logo_square_48.svg",alt:"","aria-hidden":"true"}),w=({url:e,body:r,className:t,size:n,tone:s="default"})=>{const{t:u}=(0,C.Bd)(),c=()=>window.open(((e,r)=>`https://classroom.google.com/share?url=${encodeURIComponent(e)}&body=${encodeURIComponent(r)}`)(e,r),"_blank","noopener,noreferrer"),a=u("user.curriculumShared.shareToClassroom");return"onDark"===s?(0,o.jsxs)("button",{type:"button",className:[S.onDark,t].filter(
3Boolean).join(" "),onClick:c,"data-ruler":"share-to-classroom",children:[(0,o.jsx)(v,{className:S.logoSm}),a]}):(0,o.jsxs)(l.Q,{variant:"outline",size:n,className:t,onClick:c,"data-ruler":"share-to-classroom",children:[(0,o.jsx)(v,{}),a]})};var k=t(29837)},7689:function(e,r,t){t.d(r,{BW:function(){return a},Mj:function(){return _},SB:function(){return h},Xd:function(){return c},_K:function(){return y},j:function(){return d},nt:function(){return p},wW:function(){return i},wX:function(){return f},xt:function(){return s},yn:function(){return n},yu:function(){return g},z4:function(){return m}});const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=["S","M","T","W","T","F","S"],u=864e5;function o(e){const[r,t]=String(e).split(":").map(Number);return 60*r+t}function c(e){const[r,t]=String(e).split(":").map(Number),n=r>=12?"pm":"am";return(r%12==0?12:r%12)+":"+String(t).padStart(2,"0")+n}const l=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate());function a(e){const r=[];return e.forEach(e=>{(e.lessons||[]).forEach(t=>{const n=r.length+1;r.push({dayNo:n,week:Math.ceil(n/5),unit:e,lesson:t})})}),r}function i(e,r){const t=e.findIndex(e=>!r(e.lesson.id));return-1===t?e.length-1:t}function d(e){var r;const t=a(e.units);return{classId:e.classId,courseId:e.courseId,name:e.name,grade:null==e.grade?"":String(e.grade),period:null!==(r=e.period)&&void 0!==r?r:null,slots:e.slots,days:t,todayIndex:i(t,e.isTaught)}}function m(e,r,t=new Date){const n=e.days.findIndex(e=>e.lesson.id===r);if(-1===n)return null;const s=n-e.todayIndex;if(s<0)return{taught:!0};const u=function(e,r,t=new Date){if(!e.length)return[];const n=[],s=60*t.getHours()+t.getMinutes();for(let u=0;u<400&&n.length<r;u+=1){const c=new Date(t.getFullYear(),t.getMonth(),t.getDate()+u),l=c.getDay();e.filter(e=>e.day===l).sort((e,r)=>o(e.time)-o(r.time)).forEach(e=>{n.length>=r||0===u&&o(e.time)<s||n.push({date:c,time:e.time,shift:u})})}return n}(e.slots,s+1,t);return u[s]||null}function _(e,r="No timetable set"){if(!e.length)return r;const t=Array.from(new Set(e.map(e=>e.time)));return 1===t.length?e.map(e=>n[e.day]).join(", ")+" · "+c(t[0]):e.map(e=>n[e.day]+" "+c(e.time)).join(" · ")}function h(e,r,t=new Date){if(!e.length)return[];const n={},s=[],u=60*t.getHours()+t.getMinutes();for(let c=0;c<28&&s.length<r;c+=1){const l=new Date(t.getFullYear(),t.getMonth(),t.getDate()+c),a=l.getDay(),i=[];e.forEach(e=>{e.slots.forEach(r=>{r.day===a&&i.push({entry:e,slot:r})})}),i.sort((e,r)=>o(e.slot.time)-o(r.slot.time));for(const{entry:e,slot:t}of i){if(0===c&&o(t.time)<u)continue;const a=e.todayIndex+(n[e.classId]||0);if(!(a>=e.days.length)&&(s.push({entry:e,day:e.days[a],date:l,shift:c,slot:t}),n[e.classId]=(n[e.classId]||0)+1,s.length>=r))break}}return s}function g(e,r,t,n=new Date){const s=new Set,u=[];return h(e,80,n).forEach(n=>{if(u.length>=r)return;if(t(n.day.lesson.id))return;const c=n.entry.grade,a=n.entry.courseId+"::"+c+"::"+n.day.lesson.id;if(s.has(a))return;const i=e.filter(e=>{if(e.courseId!==n.entry.courseId)return!1;if(e.grade!==c)return!1;const r=e.days.findIndex(e=>e.lesson.id===n.day.lesson.id);return r>-1&&e.todayIndex>r});s.add(a),u.push({key:a,courseId:n.entry.courseId,grade:c,day:n.day,at:l(n.date).getTime()+6e4*o(n.slot.time),anchor:n.entry,ahead:i})}),u}function y(e,r=0,t=new Date){const n=r||0,s=t.getTime(),c=function(e){const r=(e.getDay()+6)%7;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-r)}(t),a=new Date(c.getFullYear(),c.getMonth(),c.getDate()+7*n),i=n<0?a:c,d=7*(Math.abs(n)+1),m=[];for(let r=0;r<d;r+=1){const t=new Date(i.getFullYear(),i.getMonth(),i.getDate()+r),n=t.getDay();0!==n&&6!==n&&e.forEach(e=>{e.slots.forEach(r=>{if(r.day!==n)return;const s=l(t).getTime()+6e4*o(r.time);m.push({entry:e,date:t,time:r.time,at:s,day:null,past:!1,before:!1,col:0})})})}m.sort((e,r)=>e.at-r.at);const _=m.findIndex(e=>e.at>=s),h=-1===_?m.length:_,g=new Map,y={};for(let e=h;e<m.length;e+=1){const r=m[e],t=y[r.entry.classId]||0;y[r.entry.classId]=t+1,g.set(r,r.entry.todayIndex+t)}const f={};for(let e=h-1;e>=0;e-=1){const r=m[e],t=(f[r.entry.classId]||0)+1;f[r.entry.classId]=t,g.set(r,r.entry.todayIndex-t)}
3m.forEach(e=>{var r;const t=null!==(r=g.get(e))&&void 0!==r?r:-1;e.day=t>=0&&t<e.entry.days.length?e.entry.days[t]:null,e.past=e.at<s,e.before=t<0,e.col=Math.round((l(e.date).getTime()-a.getTime())/u)});const p=0===n?(t.getDay()+6)%7:-1;return{viewMonday:a,todayCol:p,cells:m.filter(e=>e.col>=0&&e.col<=4)}}function f(e){return e.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function p(e,r,t){return 0===e?"Today":1===e?"Tomorrow":r.toLocaleDateString(void 0,{...t&&t.noWeekday?{}:{weekday:"short"},month:"short",day:"numeric"})}},47872:function(e,r){r.A={column:"CurriculumScores_column__9eM1C",back:"CurriculumScores_back__bJXPh",header:"CurriculumScores_header__pF5W-",pageTitle:"CurriculumScores_pageTitle__n1jpP",lede:"CurriculumScores_lede__40Afy",message:"CurriculumScores_message__hboFR",muted:"CurriculumScores_muted__r67H0",strong:"CurriculumScores_strong__FjKLr",srOnly:"CurriculumScores_srOnly__oJApT",tableCard:"CurriculumScores_tableCard__+ZC-E",clickRow:"CurriculumScores_clickRow__oYQqD",rowLink:"CurriculumScores_rowLink__3rdcO",actionsCell:"CurriculumScores_actionsCell__YxRd6",status:"CurriculumScores_status__en2DS",toGrade:"CurriculumScores_toGrade__u2flg",card:"CurriculumScores_card__ykef-",cardHead:"CurriculumScores_cardHead__YEFfl",cardTitle:"CurriculumScores_cardTitle__0Wz1X",sectionHead:"CurriculumScores_sectionHead__uB815",sectionScore:"CurriculumScores_sectionScore__BdiG2",partGroup:"CurriculumScores_partGroup__7ZOgy",partTitle:"CurriculumScores_partTitle__JCtkL",question:"CurriculumScores_question__POjWt",closedList:"CurriculumScores_closedList__FfDqx",answerCell:"CurriculumScores_answerCell__ruScg",mark:"CurriculumScores_mark__K5SFs",rightAnswer:"CurriculumScores_rightAnswer__rla10",openList:"CurriculumScores_openList__iF7I0",openItem:"CurriculumScores_openItem__BoPxl",openBody:"CurriculumScores_openBody__oG8Gu",studentText:"CurriculumScores_studentText__WUtZa",lines:"CurriculumScores_lines__IZoeE",points:"CurriculumScores_points__myhSY",totalCol:"CurriculumScores_totalCol__AQpwz",totalCard:"CurriculumScores_totalCard__2XKjJ",totalBody:"CurriculumScores_totalBody__sWTyb",totalInputs:"CurriculumScores_totalInputs__KLS-v",totalInput:"CurriculumScores_totalInput__kO7HY",pointsLarge:"CurriculumScores_pointsLarge__3KYYT"}}}]);
4//# debugId=46df1496-b449-55ad-b011-1d6f597db94c

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.