PageSourceSearch

https://app.mpowerfinancing.com/assets/additional-scholarshipAndGrants-Wwmw5faV.js

js mpowerfinancing.com collected 2026-09-24 20:52:31 UTC 4,354 bytes, 2 lines download raw bytes

1import{r as o,j as e,R as I}from"./index-Bd4jFswG.js";import{C as k,G as p,e as l,D as f,x as w,H as B,S as T,l as W}from"./ui.es-Cg0F-lM5.js";import{z as a}from"./index-CAzNPGFk.js";import{Y as _,S as G}from"./common-C_8jkX4q.js";import{u as H}from"./useLoaderActionData-BClSnrKp.js";import{c as P}from"./clientValidation-B-VpovC8.js";import{p as C}from"./preventNonNumericalInput-BQRhyT4l.js";import{b as L,u as Y,a as q}from"./index-CBbPfAgL.js";import{a as z}from"./components-BTmg3ErY.js";import{F as D}from"./index-DnRH55ZI.js";import"./_commonjsHelpers-BosuxZz1.js";import"./dayjs.min-DnLU8EWa.js";import"./dashboard-O2JJL0uQ.js";import"./router-PiR6N9ym.js";import"./single-fetch-CQRnmu8J.js";const K=a.object({type:a.string({required_error:"Please select an option."}),amount:a.string().nonempty("Please enter amount."),additional:a.string().optional(),fundingsources:a.string().array().optional(),fundType:a.string().optional()});function ae(){var S,v,F,N,b,O;const n=H(),[r,c]=o.useState(n),d=L(),E=d.state==="submitting"||d.state==="loading"&&!!d.formAction,m=Y(),u=q(),i=z(),[h,g]=o.useState(!1),[t,y]=o.useState((S=n==null?void 0:n.fields)==null?void 0:S.fundingsources),[x,j]=o.useState(""),R=s=>{if(s==="Yes")g(!0);else return m("/id-verification/additionalfundings")};return o.useEffect(()=>{n!=null&&n.status&&(j(x===""?" ":""),g(!1),y(t?s=>[...s,i==null?void 0:i.data]:[i==null?void 0:i.data]))},[i]),o.useEffect(()=>{c(n)},[n==null?void 0:n.fields]),e.jsx(e.Fragment,{children:e.jsx(k,{size:"lg",py:50,children:e.jsxs(D,{method:"post",onChange:P(K,r,c),autoComplete:"off",children:[e.jsxs(p,{gutter:"xl",children:[e.jsx(p.Col,{span:{sm:12,md:3},children:e.jsx(l,{className:"displayInline",order:2,variant:"yellow",fontWeight:"700",children:"Scholarship and grants"})}),e.jsxs(p.Col,{span:{sm:12,md:9},className:"desktopRightContainer",children:[t&&(t==null?void 0:t.filter(s=>s.type==="Scholarships and grants"&&s.amount>0&&s.Deleted==!1).length)>0?e.jsxs(e.Fragment,{children:[t.filter(s=>s.type==="Scholarships and grants"&&s.amount>0&&s.Deleted==!1).map((s,V)=>e.jsx(I.Fragment,{children:!s.Deleted&&e.jsxs(e.Fragment,{children:[e.jsxs(l,{className:"displayInline",order:6,variant:"blue",fontWeight:"400",children:["Funding type: ",s.provider]}),e.jsx(f,{id:s.uniq,defaultValue:s.amount,error:r==null?void 0:r.errors,type:"number",keyPress:C,readOnly:!0,showDollar:!0,className:"paddingRemove"})]})},V)),e.jsx(l,{className:"displayInline",order:6,variant:"blue",fontWeight:"400",children:"Do you have additional scholarship and grants to enter?"}),e.jsx(w,{error:r==null?void 0:r.errors,id:"additional",getOptions:()=>_,updatedValue:R,defaultValue:x})]}):null,h||t===void 0||t&&(t==null?void 0:t.filter(s=>s.type==="Scholarships and grants"&&s.amount>0&&s.Deleted==!1).length)===0?e.jsxs(e.Fragment,{children:[e.jsx(l,{className:"displayInline",order:6,variant:"blue",fontWeight:"400",children:"Funding type"}),e.jsx(w,{id:"type",getOptions:()=>G,error:r==null?void 0:r.errors}),e.jsx(l,{className:"displayInline",order:6,fontWeight:"400",children:"Amount"}),e.jsx(f,{id:"amount",placeholder:"Enter an amount in U.S. dollars",error:r==null?void 0:r.errors,type:"number",showDollar:!0,keyPress:C,className:"paddingRemove"}),e.jsx(f,{id:"fundType",defaultValue:"Scholarships and grants",error:r==null?void 0:r.errors,readOnly:!0,style:{display:"none"},showDollar:!0,className:"paddingRemove"}),e.jsx(B,{id:"tip",children:"Enter the total amount of money you're receiving for each individual scholarship. For example, if you get $12K a year for two years, enter $24K. Enter scholarships from different sources separately."})]}):null]})]}),e.jsx(T,{h:30}),e.jsx(W,{backButtonId:"back",id:"next",outlineButtonOnClick:()=>m("/id-verification/additionalfundings"),showOutlineButton:!0,showFilledButton:h||((v=n==null?void 0:n.fields)==null?void 0:v.fundingsources)===void 0||(F=n==null?void 0:n.fields)!=null&&F.fundingsources&&((b=(N=n==null?void 0:n.fields)==null?void 0:N.fundingsources)==null?void 0:b.filter(s=>s.type==="Scholarships and grants"&&s.amount>0&&s.Deleted==!1).length)===0?!0:(O=u==null?void 0:u.state)!=null&&O.edit?null:!1,uppercase:!0,filledButtonText:"add funding",loading:E,customVariant:"secondary",footerBack:!0}
1)]})})})}export{ae as default};
2//# sourceMappingURL=additional-scholarshipAndGrants-Wwmw5faV.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.