vendor: 4,346 bytes, lines 1-2
1/*! For license information please see 4105.419967893f11e27e0313.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkLittleLit=self.webpackChunkLittleLit||[]).push([[4105],{84105(e,t,n){n.r(t),n.d(t,{default:()=>$});var r=n(96540),i=n.n(r),o=n(97521),l=n(73946),u=n(361),a=n(4767),c=n(42933),d=n(74373),s=(n(28579),n(75827)),v=n(32469),f=n(70330),h=n(15283),p=n(99964),m=n(22591),g=n(66824),b=n(23892),y=n(50834),w=n(17560),j=n(37451),x=n(85046),C=n(40874),k=n(74848);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==S(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var a=r&&r.prototype instanceof u?r:u,c=Object.create(a.prototype);return P(c,"_invoke",function(n,r,i){var o,u,a,c=0,d=i||[],s=!1,v={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,u=0,a=e,v.n=n,l}};function f(n,r){for(u=n,a=r,t=0;!s&&c&&!i&&t<d.length;t++){var i,o=d[t],f=v.p,h=o[2];n>3?(i=h===r)&&(a=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&f<o[1])?(u=0,v.v=r,v.n=o[1]):f<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,v.n=h,u=0))}if(i||n>1)return l;throw s=!0,r}return function(i,d,h){if(c>1)throw TypeError("Generator is already running");for(s&&1===d&&f(d,h),u=d,a=h;(t=u<2?e:a)||!s;){o||(u?u<3?(u>1&&(v.n=-1),f(u,a)):v.n=a:v.v=a);try{if(c=2,o){if(u||(i="next"),t=o[i]){if(!(t=t.call(o,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,u<2&&(u=0)}else 1===u&&(t=o.return)&&t.call(o),u<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=e}else if((t=(s=v.n<0)?a:n.call(r,v))!==l)break}catch(t){o=e,u=1,a=t}finally{c=1}}return{value:t,done:s}}}(n,i,o),!0),c}var l={};function u(){}function a(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(P(t={},r,function(){return this}),t),s=c.prototype=u.prototype=Object.create(d);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,P(e,i,"GeneratorFunction")),e.prototype=Object.create(s),e}return a.prototype=c,P(s,"constructor",c),P(c,"constructor",a),a.displayName="GeneratorFunction",P(c,i,"GeneratorFunction"),P(s),P(s,i,"Generator"),P(s,r,function(){return this}),P(s,"toString",function(){return"[object Generator]"}),(T=function(){return{w:o,m:v}})()}function P(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}P=function(e,t,n,r){function o(t,n){P(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},P(e,t,n,r)}function I(e,t,n,r,i,o,l){try{var u=e[o](l),a=u.value}catch(e){return void n(e)}u.done?t(a):Promise.resolve(a).then(r,i)}function E(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function l(e){I(o,r,i,l,u,"next",e)}function u(e){I(o,r,i,l,u,"throw",e)}l(void 0)})}}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,l,u=[],a=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;
2!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw i}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}"undefined"!=typeof window&&window.innerWidth;function $(e){f.BR;var t=f.i0,n=h.Di,S=v.IN,_=(0,m.SU)(),O=_.currentAppUser,P=_.userProfile,I=e.navigation,Z=e.route,$=null==Z?void 0:Z.params,G=$.isFrom,L=(void 0===G&&s.ql.ThemeGames,$.menuSelect,(0,r.useRef)(null)),W=(x.z9,s.cO.LITTO,s.cO.PROJECT,s.cO.DESIGN,[{id:"ELA",name:"ELA",backgroundColor:s.Tj.storyGreenBack},{id:"math",name:"MATH",backgroundColor:"#FCC0C5"},{id:"science",name:"SCIENCE",backgroundColor:"#FFE89A"},{id:"socialStudies",name:"SOCIAL SCIENCE",backgroundColor:"#FFEB5B"}]),z=R((0,r.useState)(W[0]),2),D=z[0],V=z[1],F=R((0,r.useState)(!1),2),M=F[0],B=F[1],H=R((0,r.useState)(""),2),U=H[0],q=(H[1],R((0,r.useState)([]),2)),J=q[0],X=q[1],K=R((0,r.useState)([]),2),Y=K[0],Q=K[1],ee=R((0,r.useState)(null),2),te=ee[0],ne=ee[1],re=R((0,r.useState)("0"),2),ie=re[0];re[1];(0,r.useEffect)(function(){return(0,x.$Z)("AI tutor Report screen..."),oe(),function(){}},[]),(0,l.xK)(i().useCallback(function(){return(0,x.Em)(),(0,x.$Z)("AIReport Screen is userProfile",P),function(){(0,j.Sp)(),(0,j.FJ)(),(0,y.jX)(),(0,x.$Z)("AIReport Screen is unfocused")}},[]));var oe=function(){var e=E(T().m(function e(){return T().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,ue();case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),le=function(){setTimeout(function(){var e;null==L||null===(e=L.current)||void 0===e||e.bounce(1500),le()},5e3)};(0,r.useEffect)(function(){return(0,x.$Z)("selectedChild==",te),te&&le(),function(){}},[te]);var ue=function(){var e=E(T().m(function e(){var r,i,o,l,u,a,c,d,v,f,h,m,g,b,y,j,C;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:if(O!=s.lt.parentAdmin&&O!=s.lt.appParent){e.n=6;break}return e.n=1,(0,w.dG)();case 1:return r=e.v,(0,x.$Z)("getToken",r),e.p=2,e.n=3,t({token:r});case 3:i=e.v,(0,x.$Z)("get chilrden",i),o=[],200==i.statusCode&&(u=null==i?void 0:i.data,o=null==u?void 0:u.map(function(e,t){return{_id:null==e?void 0:e._id,childName:null==e?void 0:e.nickName,childGrade:null==e?void 0:e.grade}}),Q(o),(null===(l=o)||void 0===l?void 0:l.length)>0&&(ne(o[0]),ae("ELA",o[0]))),e.n=5;break;case 4:e.p=4,j=e.v,(0,x.$Z)("getAllChildren",j);case 5:e.n=14;break;case 6:if(e.p=6,d={},(0,x.$Z)("currentAppUser",O),O!=s.lt.schoolAdmin){e.n=8;break}return e.n=7,n(null==P||null===(v=P.user)||void 0===v||null===(v=v.org)||void 0===v?void 0:v._id,"child");case 7:d=e.v,e.n=12;break;case 8:if(O!=s.lt.schoolTeacher&&O!=s.lt.coAdmin){e.n=10;break}return e.n=9,(0,p.qo)(null==P||null===(f=P.user)||void 0===f||null===(f=f.org)||void 0===f?void 0:f._id,null==P||null===(h=P.user)||void 0===h?void 0:h._id,"teacher");case 9:d=e.v,e.n=12;break;case 10:if(O!=s.lt.schoolParent){e.n=12;break}return e.n=11,(0,p.qo)(null==P||null===(m=P.user)||void 0===m||null===(m=m.org)||void 0===m?void 0:m._id,null==P||null===(g=P.user)||void 0===g?void 0:g._id,"parent");case 11:d=e.v;case 12:(0,x.$Z)("res=====>",d),[],y=null===(a=d)||void 0===a||null===(a=a.data)||void 0===a?void 0:a.docs,(b=null==y?void 0:y.map(function(e,t){var n,r,i;return{_id:null==e||null===(n=e.userId)||void 0===n?void 0:n._id,childName:null==e||null===(r=e.userId)||void 0===r?void 0:r.fullName,childGrade:null==e||null===(i=e.userId)||void 0===i?void 0:i.grade}}))&&(null===(c=b)||void 0===c?void 0:c.length)>0&&(Q(b),ne(b[0]),ae("ELA",b[0])),(0,x.$Z)("res",d),B(!1),e.n=14;break;case 13:e.p=13,C=e.v,B(!1),(0,x.$Z)("Error",C);case 14:return e.a(2)}},e,null,[[6,13],[2,4]])}));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=E(T().m(function e(t,n){var r,i,o,l,u,a,c,d;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,B(!0),r=null==n?void 0:n._id,i=null==n?void 0:n.childGrade,"3",o=s.A0[i]||"3",l={grade:o,subject:t,childId:r},(0,x.$Z)("object==>",l),e.n=1,S(l);case 1:u=e.v,(0,x.$Z)("Topic res==>",u),200==u.statusCode&&(a=null==u?void 0:u.data,c=ce(a),(0,x.$Z)("groupingList..",c),X(c)),B(!1),e.n=3;break;case 2:e.p=2,d=e.v,B(!1),(0,x.$Z)("Error PromptAPI",d);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t,n){return e.apply(this,arguments)}}(),ce=function(e){var t={};return e.forEach(function(e){var n=e.overallUnit,r=e.subunit,i=e._id,o=e.isCompleted;(0,x.$Z)("isCompleted..",o),t[n]||(t[n]=[]),t[n].push({topic:r,_id:i,isCompleted:o})}),Object.keys(t).map(function(e){return{overallUnit:e,subunits:t[e]}})},de=(0,r.useMemo)(function(){var e,t,n,r,i,l,u,c,v,f,h,p,m;return(0,k.jsxs)("div",{style:(0,o.t_)({justifyContent:"center",width:(0,o.vw)(98),marginBottom:(0,o.vh)(1)}),children:[(0,k.jsxs)("div",{style:(0,o.t_)({flexDirection:"row",flexWrap:"wrap"}),children:[((null==P||null===(e=P.user)||void 0===e?void 0:e.accessRoles)==s.lt.schoolAdmin||(null==P||null===(t=P.user)||void 0===t?void 0:t.accessRoles)==s.lt.schoolTeacher||(null==P||null===(n=P.user)||void 0===n?void 0:n.accessRoles)==s.lt.coAdmin)&&(0,k.jsx)("div",{style:(0,o.t_)({width:(0,o.vw)(18),height:(0,o.vh)(10),marginLeft:10}),children:(0,k.jsx)("button",{type:"button",style:(0,o.i9)(A(A({},N.childrenView),{},{width:(0,o.vw)(18),height:(0,o.vh)(10),borderWidth:(null==te?void 0:te._id)==(null==P||null===(r=P.user)||void 0===r?void 0:r._id)?(0,o.vh)(1):0})),onClick:function(){if((0,x.$Z)("userProfile",P),O!=s.lt.appParent){var e,t,n,r={_id:null==P||null===(e=P.user)||void 0===e?void 0:e._id,childName:null==P||null===(t=P.user)||void 0===t?void 0:t.fullName,childGrade:"Grade 8",userType:s.lt.schoolAdmin};(0,x.$Z)("admin_id",null==P||null===(n=P.user)||void 0===n?void 0:n._id),ne(r)}}
2,children:(0,k.jsx)(d.Mg,{fontSize:10,color:s.Tj.blackColor,fontWeight:"500",text:(null==P||null===(i=P.user)||void 0===i?void 0:i.accessRoles)==s.lt.schoolAdmin?"Admin:\n"+(null==P||null===(l=P.user)||void 0===l?void 0:l.fullName):(null==P||null===(u=P.user)||void 0===u?void 0:u.accessRoles)==s.lt.coAdmin?"Co-Admin:\n"+(null==P||null===(c=P.user)||void 0===c?void 0:c.fullName):(null==P||null===(v=P.user)||void 0===v?void 0:v.accessRoles)==s.lt.schoolTeacher?"Teacher:\n"+(null==P||null===(f=P.user)||void 0===f?void 0:f.fullName):(null==P||null===(h=P.user)||void 0===h?void 0:h.accessRoles)==s.lt.schoolParent?"Parent:\n"+(null==P||null===(p=P.user)||void 0===p?void 0:p.fullName):"Parent:\n"+(null==P||null===(m=P.user)||void 0===m?void 0:m.fullName)})})}),(0,k.jsx)("div",{style:(0,o.t_)({flexWrap:"wrap",flexDirection:"row",height:(0,o.vh)(30),width:(0,o.vw)(80)}),children:Y.map(function(e){var t;return(0,k.jsx)("button",{type:"button",style:(0,o.i9)(A(A({},N.childrenView),{},{width:(0,o.vw)(18),height:(0,o.vh)(10),marginLeft:15,borderWidth:(null==te?void 0:te._id)===(null==e?void 0:e._id)?6:0})),onClick:function(){ne(e)},children:(0,k.jsx)(d.Mg,{fontSize:12,color:s.Tj.blackColor,fontWeight:"500",text:null==e?void 0:e.childName})},null==e||null===(t=e._id)||void 0===t?void 0:t.toString())})}),(0,k.jsx)(a.A,{height:1})]}),(0,k.jsx)("img",{src:(0,o.AW)(b.rV.portDivided),alt:"",style:{width:"100%",objectFit:"contain"}})]})},[U,D,ie,te]),se=(0,r.useMemo)(function(){return(0,k.jsx)("div",{style:(0,o.t_)({height:(0,o.vh)(45),width:(0,o.vw)(98),borderRadius:(0,o.vh)(1),alignItems:"center",justifyContent:"center",backgroundColor:s.Tj.whiteOffStuff}),children:(0,k.jsx)(d.Mg,{fontSize:12,text:s.U4.asSoonAsCreate})})},[D]);return(0,k.jsxs)("div",{style:(0,o.t_)((0,o.RZ)("assets/background/home_main.webp","stretch"),g.A.screenFullSize),children:[(0,k.jsx)(C.A,{measurementId:(0,x.E0)()}),(0,k.jsxs)("div",{style:(0,o.t_)(N.topView),children:[(0,k.jsx)("div",{}),(0,k.jsx)("div",{style:(0,o.t_)({alignSelf:"center",margin:10,paddingHorizontal:20,paddingVertical:5,backgroundColor:"white",borderRadius:10}),children:(0,k.jsx)(d.Mg,{text:"AI Tutor Report",fontSize:18,fontWeight:"600"})}),(0,k.jsx)(u.A,{navigation:I,color:s.Tj.homeColor,screens:1})]}),(0,k.jsxs)("div",{style:(0,o.t_)({overflowY:"auto",flex:1,width:"100%"}),children:[de,(0,k.jsx)("div",{style:(0,o.t_)(A(A({},N.menuView),{},{width:(0,o.vw)(98),overflowX:"auto",flexDirection:"row",paddingHorizontal:(0,o.vh)(2)})),children:W.map(function(e){return(0,k.jsx)("button",{type:"button",style:(0,o.i9)({marginLeft:(0,o.vw)(2)}),onClick:function(){(0,j.A)("card_sound.mp3"),(0,j.Sp)(),ae(null==e?void 0:e.id,te),V(e)},children:(0,k.jsx)("div",{style:(0,o.t_)(A(A({},N.circleItem),{},{borderWidth:e.id==(null==D?void 0:D.id)?5:0,backgroundColor:null==e?void 0:e.backgroundColor})),children:(0,k.jsx)(d.Mg,{text:null==e?void 0:e.name,fontWeight:"400",fontSize:7})})},e.id)})}),0===(null==J?void 0:J.length)?se():null,null==J?void 0:J.map(function(e,t){return(0,k.jsxs)("div",{style:(0,o.t_)({backgroundColor:"white",borderRadius:10,padding:10,margin:15}),children:[(0,k.jsx)("div",{style:(0,o.t_)({margin:10,alignItems:"flex-start"}),children:(0,k.jsx)(d.rT,{color:"black",text:null==e?void 0:e.overallUnit,fontSize:18,fontWeight:600})}),(0,k.jsx)("div",{style:(0,o.t_)({flexWrap:"wrap",flexDirection:"row",paddingHorizontal:5,paddingVertical:8}),children:((null==e?void 0:e.subunits)||[]).map(function(e){return(0,k.jsx)("div",{style:(0,o.t_)({flex:"1 1 30%",margin:5,paddingVertical:15,paddingHorizontal:10,borderRadius:10,alignItems:"center",borderColor:s.Tj.greenDark,borderWidth:2,backgroundColor:null!=e&&e.isCompleted?s.Tj.darkGreen:"white"}),children:(0,k.jsx)(d.rT,{text:e.topic,color:null!=e&&e.isCompleted?"white":"black"})},e._id)})})]},t)})]}),(0,k.jsx)("div",{style:{height:30}}),(0,k.jsx)(a.A,{height:3}),M&&(0,k.jsx)(c.A,{})]})}var N={container:{width:"100%",height:"100%"},topView:{width:"100%",height:(0,o.vh)(10),marginTop:"1%",paddingHorizontal:(0,o.vw)(2),marginBottom:(0,o.vh)(1),alignItems:"center",justifyContent:"space-between",flexDirection:"row"},childrenRowView:{height:"20%",width:"100%",marginLeft:5,paddingHorizontal:10},childrenView:{alignSelf:"center",alignItems:"center",borderRadius:(0,o.vh)(2),marginRight:"1%",height:"100%",
2justifyContent:"center",backgroundColor:"white",borderColor:s.Tj.storyGreenBack},period:{marginLeft:(0,o.vw)(1),padding:(0,o.vh)(1),backgroundColor:"#91dbe0",borderRadius:5,minWidth:(0,o.vw)(14),minHeight:(0,o.vh)(9),alignItems:"center",justifyContent:"center"},circleItem:{width:100,height:100,alignItems:"center",justifyContent:"center",borderRadius:50,padding:(0,o.vh)(1),borderColor:s.Tj.blackColor},menuView:{paddingVertical:(0,o.vh)(2),borderRadius:(0,o.vh)(1),alignSelf:"center",backgroundColor:s.Tj.skyBlueLight}}}}]);
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.