1(this["webpackJsonpclassplus-web-react"]=this["webpackJsonpclassplus-web-react"]||[]).push([[136],{3141:function(e,t,n){},3450:function(e,t,n){"use strict";n.r(t);var l=n(1),a=n.n(l),d=n(140),o=(n(3141),n(1023)),i=n.n(o),s=n(47),c=n(151),u=n(460);const r=(e,t,n)=>{((e,t)=>{const n=new Blob([e],{type:"text/csv"}),l=window.URL.createObjectURL(n),a=document.createElement("a");a.setAttribute("hidden",""),a.setAttribute("href",l),a.setAttribute("download",t+".csv"),document.body.appendChild(a),a.click(),document.body.removeChild(a)})(((e,t)=>{const n=[],l=e.map(e=>e.label);n.push(l.join(","));for(const a of t){const t=e.map(e=>`"${(""+a[e.key]).replace(/"/g,'\\"')}"`);n.push(t.join(","))}return n.join("\n")})(e,t),n)};function v(e,t){const n=Object(l.useRef)(!0);Object(l.useEffect)(()=>{if(!n.current)return e();n.current=!1},t)}var b=n(1015),m=n(253);const h=Object(l.lazy)(()=>n.e(135).then(n.bind(null,3395))),p=Object(l.lazy)(()=>n.e(154).then(n.bind(null,3465))),S=Object(l.lazy)(()=>n.e(143).then(n.bind(null,3396))),j=Object(l.lazy)(()=>n.e(144).then(n.bind(null,3466)));t.default=Object(d.connect)(null,{makeApiCall:c.b})((function(e){let{makeApiCall:t,history:n,match:d}=e;const o=Object(u.b)(),[c,f]=Object(l.useState)(),[O,E]=Object(l.useState)(),[y,k]=Object(l.useState)(0),[g,A]=Object(l.useState)(0),[w,C]=Object(l.useState)(!0),[L,P]=Object(l.useState)(),[N,I]=Object(l.useState)([]),[z,M]=Object(l.useState)(!1),B=()=>{var e;const n=o.isAgora,l=o.liveSessionId,a=null===d||void 0===d||null===(e=d.params)||void 0===e?void 0:e.id,{url:i,method:s}=Object(m.l)("getStudentAttendance",null,{downloadClicked:z,entityId:a,isAgora:n,liveSessionId:l,offset:g,search:L});t(i,s,void 0,e=>{var t,n,l,a,d,o,i;if(z)return I(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.list);0===g?(f(null===e||void 0===e?void 0:e.data),E(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.list),k(parseInt(null===e||void 0===e||null===(d=e.data)||void 0===d||null===(o=d.totalStudents)||void 0===o?void 0:o.data))):E([...O,...null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.list]);C(g+20<parseInt(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.totalStudents)||void 0===n?void 0:n.data)),A(g+20)},e=>{console.log(e,"SESSIONLIST")},!0)};Object(l.useEffect)(()=>{A(0),E([])},[L]),Object(l.useEffect)(()=>{0===g&&B()},[L,g]),v(()=>{z&&B()},[z]);const R=[null===c||void 0===c?void 0:c.className,null===c||void 0===c?void 0:c.time,null===c||void 0===c?void 0:c.faculty],x=[null===c||void 0===c?void 0:c.totalStudents,null===c||void 0===c?void 0:c.totalStudentsPresent],D=[{label:"name",key:"studentName"},{label:"number",key:"studentMobile"},{label:"isPresent",key:"isPresent"},{label:"isPurchased",key:"isPurchased"}];return v(()=>{if(N.length>0){let e=null===N||void 0===N?void 0:N.map((e,t)=>({studentName:null===e||void 0===e?void 0:e.studentName,studentMobile:null===e||void 0===e?void 0:e.studentMobile,isPresent:null!==e&&void 0!==e&&e.isPresent?"P":"A",isPurchased:null!==e&&void 0!==e&&e.isSubscribedStudent?"Y":"N"}));console.log(e,"toBeDownlaodableList"),r(D,e,"attendanceList"),I([])}M(!1)},[N]),a.a.createElement("div",{className:"LiveAttendance"},a.a.createElement(l.Suspense,{fallback:a.a.createElement("div",null,a.a.createElement(b.a,{i18nKey:"components.ContentStore.CourseHome.Attendance.SessionAttendance.loading"},"Loading..."))},a.a.createElement("div",{className:"LiveAttendance__Sheet"},a.a.createElement(h,{handleClick:()=>{n.goBack()},updateDownloadClicked:M}),a.a.createElement(i.a,{next:()=>B(),hasMore:w,dataLength:null===O||void 0===O?void 0:O.length,loader:a.a.createElement(s.k,{centered:!0},a.a.createElement(s.k.Column,{stretched:!0,width:10},a.a.createElement(s.r,{active:!0,inline:"centered"}))),height:"70vh"},a.a.createElement(p,{data:R,type:0}),a.a.createElement(p,{data:x,type:1}),a.a.createElement(S,{value:L,handleChange:P}),a.a.createElement(j,{data: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.