PageSourceSearch

https://user.flexischools.com/assets/AddStudentScreenRebuilt-B7n83S40.js

js flexischools.com collected 2026-10-02 00:17:01 UTC 2,211 bytes, 1 lines download raw bytes

1import{a as C,u as j,bH as w,b as E,j as e,aM as a,cX as F,cU as y,A as H,cV as R,ai as U}from"./index-BZAaBzkS.js";import{u as L,S as n,a as d,O as P}from"./usePostStudentFormData-DAihypnn.js";import{A}from"./AppShellWrapper-Bd2Oyv7n.js";import{g as I}from"./useStudentDetailsData-tZ2jNC-r.js";import"./StudentsQueries-B3XkAEVg.js";import{H as O}from"./Helmet-Bd3kEmBI.js";import"./httpClients-Bm2oLk4H.js";import"./AccountQueries-B_uLnNXZ.js";import"./useQuery-zQBOn3mQ.js";import"./FlxQueries-gQOFLa3V.js";import"./flx-logo-BzQXSPHe.js";import"./FeatureFlagList-D9OsNZ-V.js";import"./Portal-D2rZj_Ae.js";import"./useLazyQuery-B5nuih9K.js";import"./useIsomorphicLayoutEffect-BgcqTBKd.js";import"./SlideInModal-CVygqgVD.js";import"./useMutation-Rq5Lo8x3.js";import"./useClearableState-BUA-gs_c.js";import"./faChevronRight-Bs7taHS-.js";import"./index.esm-B-xIoWWs.js";import"./zod-DY6IdoX3.js";import"./AppShell-DhREaT-D.js";import"./useGetUserProfile-sRaZlBSY.js";import"./OpenInApp-qQVY2utg.js";import"./faTimes-BnpiXKKO.js";import"./faUserCircle-HNqAqIh5.js";import"./useQuery-DjyDcgfd.js";const m=I("add");function ce({isRegoForm:t,onAddStudentAfterRego:o}){const u=C(),c=j(),l=w(),p=new URLSearchParams(c.search).get("goToPreviousRoute")==="true",{brandConfiguration:{name:S}}=E(),{postAddStudentData:f,isSubmitting:r}=L();async function s(g){const{didError:h,didSucceed:x,errorMessage:v,addStudentResponse:b}=await f(g);if(h&&new a().show({title:"Error",message:v,shouldHideCancelBtn:!0}),x){F();const i=await y();l.removeQueries({queryKey:["partnersOffers",H.offersListUrl]}),R(i)&&U.postMessageToWebView("REFRESH_SCHOOL_FEES_TILE"),t&&o?o():p?window.location.assign(P.addStudentStudentsSelectionScreen):new a().show({title:"Success",message:"Student added successfully.",shouldHideCancelBtn:!0})&&u(`/student/${b.studentKey}`)}}return e.jsx(e.Fragment,{children:t?e.jsx(n,{mode:"add",initialFormValues:m,children:e.jsx(d,{onSubmit:s,isSubmitting:r,isRegoForm:!0})}):e.jsx(A,{children:e.jsxs(e.Fragment,{children:[e.jsx(O,{children:e.jsxs("title",{children:[S," - Student Details"]})}),e.jsx(n,{mode:"add",initialFormValues:m,children:e.jsx(d,{onSubmit:s,isSubmitting:r})})]})})})}export{ce as default};

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.