1/*! For license information please see 6981.97665964d5002e7109cf.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkLittleLit=self.webpackChunkLittleLit||[]).push([[6981],{36981(e,t,n){n.r(t),n.d(t,{default:()=>D});var r=n(96540),o=n(17302),i=n(85458),a=n(20649),u=n(4767),c=n(22979),l=n(90061),s=n(42933),f=n(74373),d=n(75827),p=n(62295),h=n(63929),v=n(31595);function y(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return g(l,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,c=e,d.n=n,a}};function p(n,r){for(u=n,c=r,t=0;!f&&l&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,h),u=s,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(d.n=-1),p(u,c)):d.n=c:d.v=c);try{if(l=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=d.n<0)?c:n.call(r,d))!==a)break}catch(t){i=e,u=1,c=t}finally{l=1}}return{value:t,done:f}}}(n,o,i),!0),l}var a={};function u(){}function c(){}function l(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(g(t={},r,function(){return this}),t),f=l.prototype=u.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,g(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,g(f,"constructor",l),g(l,"constructor",c),c.displayName="GeneratorFunction",g(l,o,"GeneratorFunction"),g(f),g(f,o,"Generator"),g(f,r,function(){return this}),g(f,"toString",function(){return"[object Generator]"}),(y=function(){return{w:i,m:d}})()}function g(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}g=function(e,t,n,r){function i(t,n){g(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},g(e,t,n,r)}function b(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}var m="littlelit:deviceId";function j(){return w.apply(this,arguments)}function w(){var e;return e=y().m(function e(){var t;return y().w(function(e){for(;;)switch(e.n){case 0:if("undefined"!=typeof localStorage){e.n=1;break}return e.a(2,"web-anonymous");case 1:return(t=localStorage.getItem(m))||(t="undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"web-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2)),localStorage.setItem(m,t)),e.a(2,t)}},e)}),w=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){b(i,r,o,a,u,"next",e)}function u(e){b(i,r,o,a,u,"throw",e)}a(void 0)})},w.apply(this,arguments)}var S=n(28807),x=n(97521),O=n(36446),T=n(23892),P=n(17560),C=n(85046),k=n(74848);function A(e){return A="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},A(e)}function G(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 I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof u?r:u,l=Object.create(c.prototype);return Z(l,"_invoke",function(n,r,o){var i,u,c,l=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,c=e,d.n=n,a}};function p(n,r){for(u=n,c=r,t=0;!f&&l&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,h=i[2];n>3?(o=h===r)&&(c=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,u=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,h),u=s,c=h;(t=u<2?e:c)||!f;){i||(u?u<3?(u>1&&(d.n=-1),p(u,c)):d.n=c:d.v=c);try{if(l=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(f=d.n<0)?c:n.call(r,d))!==a)break}catch(t){i=e,u=1,c=t}finally{l=1}}return{value:t,done:f}}}(n,o,i),!0),l}var a={};function u(){}function c(){}function l(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Z(t={},r,function(){return this}),t),f=l.prototype=u.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Z(f,"constructor",l),Z(l,"constructor",c),c.displayName="GeneratorFunction",Z(l,o,"GeneratorFunction"),Z(f),Z(f,o,"Generator"),Z(f,r,function(){return this}),Z(f,"toString",function(){return"[object Generator]"}),(F=function(){return{w:i,m:d}})()}function Z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Z=function(e,t,n,r){function i(t,n){Z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Z(e,t,n,r)}function E(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function $(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){E(i,r,o,a,u,"next",e)}function u(e){E(i,r,o,a,u,"throw",e)}a(void 0)})}}function L(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,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}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}function D(e){var t=(0,p.Z2)(),n=t.authDispatch,y=t.authState,g=(0,v.V)(),b=g.childUpdateByChild,m=g.addChildByParent,w=g.getGrade,A=e.navigation,G=e.route,_=L((0,r.useState)(!1),2),Z=_[0],E=_[1],z=L((0,r.useState)(""),2),D=z[0],N=z[1],U=L((0,r.useState)(""),2),B=U[0],M=U[1],V=L((0,r.useState)(!1),2),Q=V[0],R=V[1],W=L((0,r.useState)(!1),2),J=W[0],K=(W[1],L((0,r.useState)(""),2)),X=(K[0],K[1]),q=L((0,r.useState)(""),2),Y=q[0],ee=q[1],te=L((0,r.useState)(!1),2),ne=te[0],re=te[1],oe=L((0,r.useState)({label:"Grade 1",value:"Grade 1"}),2),ie=oe[0],ae=oe[1],ue=L((0,r.useState)("KinderGarten"),2),ce=ue[0],le=ue[1],se=L((0,r.useState)([]),2),fe=se[0],de=se[1];(0,r.useEffect)(function(){var e,t;(0,C.$Z)("AddChild....",null==G||null===(e=G.params)||void 0===e?void 0:e.isFrom),pe(),null!=(null==G||null===(t=G.params)||void 0===t?void 0:t.isFrom)?re(!0):he()},[]);
2var pe=function(){var e=$(F().m(function e(){var t,n,r,o;return F().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,w();case 1:t=e.v,(0,C.$Z)("res",t),200==t.statusCode&&((n=null==t?void 0:t.data).sort(function(e,t){return(null==e?void 0:e.order)-(null==t?void 0:t.order)}),r=null==n?void 0:n.map(function(e,t){return{label:null==e?void 0:e.name,value:null==e?void 0:e.value}}),(0,C.$Z)("getGrade=>",r),de(r)),e.n=3;break;case 2:e.p=2,o=e.v,(0,C.$Z)(o);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),he=function(){var e=$(F().m(function e(){var t,n;return F().w(function(e){for(;;)switch(e.n){case 0:t=y.child,(0,C.$Z)("prefChild==>",t),t&&(n=t,(0,C.$Z)("child==>",null==n?void 0:n.grade),X(n),N(n.nickName?n.nickName:""),M(n.age?n.age.toString():""),ee(n._id?n._id:""),E(null==n?void 0:n.neurodivergent),le(null!=n&&n.grade?null==n?void 0:n.grade:"Kindergarten"));case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),ve=function(){var e=$(F().m(function e(){var t,r,o;return F().w(function(e){for(;;)switch(e.p=e.n){case 0:if((0,C.$Z)(B),e.p=1,t="",""==D?t="Please enter the child name":""==B?t="Please enter the age":(0==B||B>18)&&(t="The child age limit 1 to 18"),""==t){e.n=2;break}return(0,O.Qg)(t),e.a(2);case 2:return R(!0),e.n=3,b({name:D,age:B,childId:Y,neurodivergent:Z,grade:ce});case 3:if(r=e.v,(0,C.$Z)("The child update response - ",r.data),R(!1),200!=r.statusCode){e.n=5;break}return n({type:d.HI.CHILD,payload:r.data}),e.n=4,(0,S.SO)(d.SM.CHILD,JSON.stringify((0,h.u)(r.data)));case 4:return A.pop(),(0,O.Te)(r.message),e.a(2);case 5:(0,O.Qg)(r.message);case 6:e.n=8;break;case 7:e.p=7,o=e.v,(0,C.$Z)("Some issue while edit child - ",o);case 8:R(!1);case 9:return e.a(2)}},e,null,[[1,7]])}));return function(){return e.apply(this,arguments)}}
2(),ye=function(){var e=$(F().m(function e(){var t,n,r,o,i,a;return F().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,t="",""==D?t="Please enter the child name":""==B?t="Please enter the age":B>18?t="The child age should be less than 18":""==ce&&(t="Please select the grade level"),""==t){e.n=1;break}return(0,O.Qg)(t),e.a(2);case 1:return R(!0),n="web",e.n=2,j();case 2:return r=e.v,e.n=3,(0,P.dG)();case 3:return o=e.v,(0,C.$Z)("token===>",o),e.n=4,m({name:D,age:B,deviceType:n,token:o,deviceId:r,neurodivergent:Z,grade:ce});case 4:if(i=e.v,(0,C.$Z)("Child Add Response->>>",i.data),R(!1),200!=i.statusCode){e.n=6;break}return e.n=5,(0,P.X9)(d.SM.CHILD,JSON.stringify((0,h.u)(i.data)));case 5:return(0,O.Te)(null==i?void 0:i.message),ge(),e.a(2);case 6:return(0,O.Qg)(null==i?void 0:i.message),e.a(2);case 7:e.n=9;break;case 8:e.p=8,a=e.v,(0,C.$Z)("Some issue while edit child - ",a);case 9:R(!1);case 10:return e.a(2)}},e,null,[[0,8]])}));return function(){return e.apply(this,arguments)}}(),ge=function(){A.pop()};return(0,k.jsxs)("div",{style:(0,x.t_)(H.container),children:[(0,k.jsxs)("div",{style:(0,x.t_)((0,x.RZ)(T.rV.settingBack,"stretch"),{width:"100%",height:"100%",minHeight:"100vh"}),children:[(0,k.jsx)(c.A,{}),(0,k.jsxs)("div",{style:(0,x.t_)(H.topView),children:[(0,k.jsx)("div",{style:{alignSelf:"flex-start"},children:(0,k.jsx)(i.A,{pressHandler:ge})}),(0,k.jsx)(f.Mg,{text:ne?"Add child's profile":"Edit child's profile",fontSize:20})]}),(0,k.jsx)(u.A,{height:3}),(0,k.jsxs)("div",{style:(0,x.t_)(H.bodyContainer),children:[(0,k.jsx)(l.A,{title:"Child's Nickname",placeHolder:"Enter Nickname",value:D,autoCapitalize:"words",borderColor:d.Tj.borderLight,onChangeText:function(e){return N(e)}}),(0,k.jsx)(u.A,{height:3}),(0,k.jsx)(l.A,{title:"Age",placeHolder:"Enter Age",value:B,borderColor:d.Tj.borderLight,keyboardType:"number-pad",maxLength:2,onChangeText:function(e){return M(e.replace(/[^0-9]/g,""))}}),(0,k.jsx)(u.A,{height:3}),(0,k.jsx)(o.Ay,{onChange:function(e){(0,C.$Z)("Gradeselected===>",e),le(null==e?void 0:e.label),ae(e)},value:ie,styles:{container:function(e){return I(I({},e),{},{minWidth:"14vw",height:"80px"})},control:function(e){return I(I({},e),{},{fontSize:"20px",fontFamily:"Ubuntu",color:"black",height:"60px"})}},options:fe,menuPortalTarget:document.body,menuPosition:"fixed"}),(0,k.jsx)(u.A,{height:3}),(0,k.jsx)("div",{style:{height:"2vh"}}),(0,k.jsx)("div",{style:{paddingTop:"2vh",alignSelf:"center",width:"100%"},children:ne?(0,k.jsx)(a.default,{width:"100%",text:"Add Child",fontSize:18,pressHandler:ye,loading:Q}):(0,k.jsx)(a.default,{width:"100%",text:"Update",fontSize:18,pressHandler:ve,loading:Q})}),(0,k.jsx)("div",{style:{paddingBottom:"2vh"}}),(0,k.jsx)(u.A,{height:3})]})]}),J&&(0,k.jsx)(s.A,{})]})}var H={container:{flex:1,alignItems:"center",minHeight:"100vh"},headTitleText:{fontSize:"var(--font-size-2xl)",fontWeight:"bold"},bodyContainer:{alignSelf:"center",width:"50%"},topView:{alignItems:"center",marginLeft:"10vh",marginRight:"10vh"},bodySection2:{flex:1},loginFormText:{fontSize:"var(--font-size-sm)",color:"#758080",paddingBottom:4},loginNewUserContainer:{paddingBottom:"1vh",alignItems:"center",justifyContent:"flex-end"},loginNewUserContainerText:{fontSize:"var(--font-size-sm)",color:"#000"},dropdownView:{width:"100%",height:"10vh",backgroundColor:"#FFF",paddingLeft:"1vw",borderWidth:1,borderColor:d.Tj.borderLight,alignItems:"flex-start",justifyContent:"center",borderRadius:"1vh"},fontFamilyText:{fontFamily:"Ubuntu",fontWeight:"700"}}}}]);
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.