PageSourceSearch

https://taalimiapp.com/_expo/static/js/web/add-child-0e15d7b57782b3995c42f4ae15e1c635.js

js taalimiapp.com collected 2026-10-02 01:46:34 UTC 8,570 bytes, 3 lines download raw bytes

1var _sentryDebugIds,_sentryDebugIdIdentifier;void 0===_sentryDebugIds&&(_sentryDebugIds={});try{var stack=(new Error).stack;stack&&(_sentryDebugIds[stack]="dbf5cfe5-e9bd-4b23-8860-382a2fca318d",_sentryDebugIdIdentifier="sentry-dbid-dbf5cfe5-e9bd-4b23-8860-382a2fca318d")}catch(e){}
2var SENTRY_RELEASE;SENTRY_RELEASE={name: "Taalimi", version: "1.1.9"};
3__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var t=r(d[0]),l=r(d[1]),s=e(r(d[2])),n=e(r(d[3])),o=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),h=e(r(d[7]));r(d[8]);var b=e(r(d[9])),f=r(d[10]),x=r(d[11]),_=r(d[12]),p=r(d[13]),A=r(d[14]),S=r(d[15]),y=r(d[16]),N=r(d[17]),I=r(d[18]),j=r(d[19]),C=r(d[20]),T=r(d[21]),R=r(d[22]);function v(e){const l=(0,t.c)(16),{label:o,options:u,selected:h,onSelect:b}=e;let f,x,_,p;if(l[0]!==o?(f=(0,R.jsx)(n.default,{className:"text-center font-sans-semibold text-sm text-ink-dark",children:o}),l[0]=o,l[1]=f):f=l[1],l[2]!==o||l[3]!==b||l[4]!==u||l[5]!==h){let e;l[7]!==o||l[8]!==b||l[9]!==h?(e=e=>(0,R.jsxs)(c.default,{accessibilityRole:"button",accessibilityLabel:`${o}: ${e.label}`,accessibilityState:{selected:h===e.value},className:"flex-row items-center gap-3 rounded-[14px] px-5 py-4",style:h===e.value?{borderWidth:1.5,borderColor:C.TAALIMI_MASCOT_GREEN_BORDER,backgroundColor:C.TAALIMI_MASCOT_GREEN_SOFT}:{borderWidth:1.5,borderColor:C.TAALIMI_INK_BORDER,backgroundColor:C.TAALIMI_WARM_SURFACE},onPress:()=>b(e.value),children:[(0,R.jsx)(s.default,{className:"h-5 w-5 items-center justify-center rounded-full border-2",style:h===e.value?{borderColor:C.TAALIMI_MASCOT_GREEN,backgroundColor:C.TAALIMI_MASCOT_GREEN}:{borderColor:C.TAALIMI_INK,backgroundColor:"transparent"},children:h===e.value?(0,R.jsx)(s.default,{className:"h-2 w-2 rounded-full bg-white"}):null}),(0,R.jsx)(n.default,{className:"flex-1 font-sans text-sm text-text",children:e.label})]},e.value),l[7]=o,l[8]=b,l[9]=h,l[10]=e):e=l[10],x=u.map(e),l[2]=o,l[3]=b,l[4]=u,l[5]=h,l[6]=x}else x=l[6];return l[11]!==x?(_=(0,R.jsx)(s.default,{className:"gap-2",children:x}),l[11]=x,l[12]=_):_=l[12],l[13]!==f||l[14]!==_?(p=(0,R.jsxs)(s.default,{className:"gap-3",children:[f,_]}),l[13]=f,l[14]=_,l[15]=p):p=l[15],p}function E(){const e=(0,t.c)(63),b=(0,f.useRouter)(),E=(0,f.useLocalSearchParams)(),{parent:L}=(0,y.useAuthStore)(),{children:w}=(0,N.useChildStore)(),[k,O]=(0,l.useState)(""),[P,B]=(0,l.useState)(S.AVATAR_OPTIONS[0]?.id??S.DEFAULT_AVATAR_ID),[D,G]=(0,l.useState)("developing"),[H,K]=(0,l.useState)("some"),[W,F]=(0,l.useState)(!1),[z,V]=(0,l.useState)(null);let U,X;if(e[0]!==b?(U=()=>(b.back(),!0),e[0]=b,e[1]=U):U=e[1],(0,T.useAndroidBackPress)(U),!(0,j.canAddAnotherChild)(w.length,L?.subscriptionTier)){let t;return e[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,R.jsx)(f.Redirect,{href:{pathname:"/paywall",params:{reason:"second_child"}}}),e[2]=t):t=e[2],t}e[3]!==P||e[4]!==W||e[5]!==k||e[6]!==E||e[7]!==H||e[8]!==D||e[9]!==b?(X=function(){const e=(0,I.normalizeChildName)(k),t=(0,I.validateChildName)(e);t?V(t):(V(null),b.push({pathname:"/onboarding/placement",params:{name:e,avatarId:P,readingComfort:D,priorKnowledge:H,learnsIndependently:W?"1":"0",returnTo:E.returnTo??""}}))},e[3]=P,e[4]=W,e[5]=k,e[6]=E,e[7]=H,e[8]=D,e[9]=b,e[10]=X):X=e[10];const $=X;let J,Q,q,Y,Z,ee,te,le,ae,se,ne,oe,re,ce,ie,de,me,ue,he,be,fe,xe;e[11]===Symbol.for("react.memo_cache_sentinel")?(J={paddingBottom:40},e[11]=J):J=e[11],e[12]!==b?(Q=()=>b.back(),e[12]=b,e[13]=Q):Q=e[13],e[14]===Symbol.for("react.memo_cache_sentinel")?(q=(0,R.jsx)(x.Ionicons,{name:"arrow-back",size:24,color:C.TAALIMI_TEXT}),e[14]=q):q=e[14],e[15]!==Q?(Y=(0,R.jsx)(s.default,{className:"flex-row items-center",children:(0,R.jsx)(c.default,{accessibilityRole:"button",accessibilityLabel:"Back to setup",className:"min-h-[44px] min-w-[44px] items-center justify-center self-start",hitSlop:10,onPress:Q,children:q})}),e[15]=Q,e[16]=Y):Y=e[16],e[17]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,R.jsx)(s.default,{className:"items-center",children:(0,R.jsx)(_.CatMascot,{mood:"welcome",width:100,height:130})}),ee=(0,R.jsx)(n.default,{className:"text-center font-arabic-bold text-2xl text-text",children:"Add a Child"}),e[17]=Z,e[18]=ee):(Z=e[17],ee=e[18]),e[19]===Symbol.for("react.memo_cache_sentinel")?(te=(0,R.jsx)(n.default,{className:"text-center font-sans-semibold text-sm text-ink-dark",children:"Child's name"}),e[19]=te):te=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(le={borderWidth:1.5,borderColor:C.TAALIMI_INK_BORDER,paddingHorizontal:18},e[20]=le):le=e[20],e[21]!==z?(ae=e=>{O(e),z&&V((0,I.validateChildName)(e))},e[21]=z,e[22]=ae):ae=e[22],e[23]!==k||e[24]!==ae?(se=(0,R.jsx)(o.default,{className:"rounded-[12px] bg-parchment px-4 py-3 font-sans text-base text-text",style:le,placeholder:"Enter name",value:k,maxLength:I.MAX_CHILD_NAME_LENGTH,onChangeText:ae,placeholderTextColor:C.TAALIMI_PLACEHOLDER,accessibilityLabel:"Child's name",returnKeyType:"done",onSubmitEditing:M}),e[23]=k,e[24]=ae,e[25]=se):se=e[25],e[26]!==z?(ne=z?(0,R.jsx)(n.default,{className:"font-sans text-sm text-wrong",children:z}
3):null,e[26]=z,e[27]=ne):ne=e[27],e[28]!==se||e[29]!==ne?(oe=(0,R.jsxs)(s.default,{className:"gap-2",children:[te,se,ne]}),e[28]=se,e[29]=ne,e[30]=oe):oe=e[30],e[31]===Symbol.for("react.memo_cache_sentinel")?(re=(0,R.jsx)(n.default,{className:"text-center font-sans-semibold text-sm text-ink-dark",children:"Pick an avatar"}),e[31]=re):re=e[31],e[32]!==P?(ce=S.AVATAR_OPTIONS.map(e=>(0,R.jsx)(c.default,{accessibilityRole:"button",accessibilityLabel:(0,S.getAvatarSelectionAccessibilityLabel)(e.id),accessibilityHint:"Sets the child's avatar",accessibilityState:{selected:P===e.id},className:"h-[72px] w-[72px] items-center justify-center rounded-[12px]",style:P===e.id?{borderWidth:1.5,borderColor:C.TAALIMI_MASCOT_GREEN_BORDER,backgroundColor:C.TAALIMI_MASCOT_GREEN_SOFT}:{borderWidth:1.5,borderColor:C.TAALIMI_INK_BORDER,backgroundColor:C.TAALIMI_WARM_SURFACE},onPress:()=>B(e.id),children:(0,R.jsx)(n.default,{accessibilityElementsHidden:!0,className:"text-2xl",children:e.id})},e.id)),e[32]=P,e[33]=ce):ce=e[33],e[34]!==ce?(ie=(0,R.jsxs)(s.default,{className:"gap-2",children:[re,(0,R.jsx)(s.default,{className:"flex-row flex-wrap justify-center gap-3",children:ce})]}),e[34]=ce,e[35]=ie):ie=e[35],e[36]===Symbol.for("react.memo_cache_sentinel")?(de=[{value:"emerging",label:"Just starting"},{value:"developing",label:"Getting there"},{value:"confident",label:"Reads well"}],e[36]=de):de=e[36],e[37]===Symbol.for("react.memo_cache_sentinel")?(me=e=>G(e),e[37]=me):me=e[37],e[38]!==D?(ue=(0,R.jsx)(v,{label:"How comfortable is this child with reading?",options:de,selected:D,onSelect:me}),e[38]=D,e[39]=ue):ue=e[39],e[40]===Symbol.for("react.memo_cache_sentinel")?(he=[{value:"new",label:"Brand new"},{value:"some",label:"Knows basics"},{value:"familiar",label:"Quite familiar"}],e[40]=he):he=e[40],e[41]===Symbol.for("react.memo_cache_sentinel")?(be=e=>K(e),e[41]=be):be=e[41],e[42]!==H?(fe=(0,R.jsx)(v,{label:"How much Islamic knowledge do they have?",options:he,selected:H,onSelect:be}),e[42]=H,e[43]=fe):fe=e[43],e[44]===Symbol.for("react.memo_cache_sentinel")?(xe=[{value:"0",label:"Needs help"},{value:"1",label:"Independent"}],e[44]=xe):xe=e[44];const pe=W?"1":"0";let Ae,Se,ye,Ne;e[45]===Symbol.for("react.memo_cache_sentinel")?(Ae=e=>F("1"===e),e[45]=Ae):Ae=e[45],e[46]!==pe?(Se=(0,R.jsx)(v,{label:"Can they use the app on their own?",options:xe,selected:pe,onSelect:Ae}),e[46]=pe,e[47]=Se):Se=e[47],e[48]!==oe||e[49]!==ie||e[50]!==ue||e[51]!==fe||e[52]!==Se||e[53]!==Y?(ye=(0,R.jsx)(u.default,{className:"flex-1 px-6",keyboardShouldPersistTaps:"handled",contentContainerStyle:J,children:(0,R.jsxs)(s.default,{className:"gap-6 pt-6",children:[Y,Z,ee,oe,ie,ue,fe,Se]})}),e[48]=oe,e[49]=ie,e[50]=ue,e[51]=fe,e[52]=Se,e[53]=Y,e[54]=ye):ye=e[54],e[55]!==k?(Ne=(0,I.normalizeChildName)(k),e[55]=k,e[56]=Ne):Ne=e[56];const Ie=!Ne;let je,Ce;return e[57]!==$||e[58]!==Ie?(je=(0,R.jsx)(s.default,{className:"px-6 pb-8",children:(0,R.jsx)(A.Button,{title:"Next",onPress:$,disabled:Ie})}),e[57]=$,e[58]=Ie,e[59]=je):je=e[59],e[60]!==ye||e[61]!==je?(Ce=(0,R.jsx)(p.SafeView,{children:(0,R.jsxs)(h.default,{className:"flex-1",behavior:void 0,children:[ye,je]})}),e[60]=ye,e[61]=je,e[62]=Ce):Ce=e[62],Ce}function M(){return b.default.dismiss()}},745,[765,12,427,132,569,552,777,874,124,346,766,767,801,780,779,792,787,788,939,790,768,853,6]);

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.