1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5387],{97786:function(e,t,n){var r=n(71811),o=n(40327);e.exports=function(e,t){for(var n=0,u=(t=r(t,e)).length;null!=e&&n<u;)e=e[o(t[n++])];return n&&n==u?e:void 0}},27361:function(e,t,n){var r=n(97786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},95904:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var r=n(26042),o=n(69396),u=n(85893),a=n(67294),s=n(18636),i=n(90948),c=n(5152),l=n.n(c),d=n(11163),f=n(47568),p=n(97582),h=n(9669),v=n.n(h),_=n(68390),g=n(64487),k=n(13135),m=n(25707),w=l()((function(){return n.e(9934).then(n.bind(n,89934))}),{loadableGenerated:{webpack:function(){return[89934]}},ssr:!1}),b=l()((function(){return Promise.all([n.e(5675),n.e(151)]).then(n.bind(n,40151))}),{loadableGenerated:{webpack:function(){return[40151]}}}),y=(0,s.q)(i.n,(function(e){return function(t){var n=t.loadingStudent,s=t.student,i=(0,a.useState)({}),c=i[0],l=i[1],h=(0,a.useState)(!0),b=h[0],y=h[1],S=(0,a.useState)(null),Z=S[0],j=S[1],x=(0,a.useState)(null),E=x[0],q=x[1],P=(0,d.useRouter)(),R=(0,_.nn)().insertLog;function T(){return T=(0,f.Z)((function(){var e,t,n;return(0,p.__generator)(this,(function(r){switch(r.label){case 0:return e={data:{user_id:s?String(null===s||void 0===s?void 0:s.id):null,type:"imc"}},[4,v().post("".concat("https://api.eu.mathai.ai/test/ts","/v3/personalizedLearning/getUserWorksheetProgress"),e).cat
1ch((function(t){R({type:"imc worksheets report",msg:"Failed to fetch imc worksheets report",payload:e,error:t}),q(t),(0,g.Tb)(t)}))];case 1:return(t=r.sent())?(n=t.data,R({type:"imc worksheets report",msg:"Fetched imc worksheets report",payload:e,data:n}),l(n.data),n.success&&q(n.message),y(!1),j((function(e){var t,n;return clearTimeout(e),null===(t=window.localStorage)||void 0===t||null===(n=t.setItem)||void 0===n||n.call(t,"page_loading_auto_reload_report","false"),null})),[2]):[2]}}))})),T.apply(this,arguments)}return(0,a.useEffect)((function(){Z||j(setTimeout((function(){m.j.track("page_loading_bottleneck",(0,o.Z)((0,r.Z)({},P.query),{api:"/getUserWorksheetProgress",delay:k.h_}))}),k.h_))}),[]),(0,a.useEffect)((function(){n||function(){T.apply(this,arguments)}()}),[n]),E?(0,u.jsx)(w,{isWorksheet:!0,worksheetId:"",error:E}):(0,u.jsx)(e,(0,r.Z)({loadingReport:b,report:c},t))}}))((function(e){var t=e.student,n=e.loadingStudent,s=(0,d.useRouter)(),i=s.query.worksheet;return(0,a.useEffect)((function(){var e,u="direct";("true"===i&&(u="worksheet_home"),n)||m.j.track("imc_report_opened",(0,o.Z)((0,r.Z)({opened_via:u},t||{}),{utm_source:null===(e=s.query)||void 0===e?void 0:e.utm_source}))}),[n]),(0,u.jsx)(b,(0,r.Z)({},e))})),S=function(e){return(0,u.jsx)(y,(0,r.Z)({},e))}}}]); 2//# sourceMappingURL=5387.c2738feccdaad939.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.