PageSourceSearch

https://the-fidi-application-portal.onrender.com/assets/PrepareDocuments-BBZb7o-W.js

js the-fidi-application-portal.onrender.com collected 2026-10-03 11:43:23 UTC 3,622 bytes, 1 lines download raw bytes

1import{a as e}from"./rolldown-runtime-z4PIMsjO.js";import{c as s}from"./form-vendor-DwbCh3z6.js";import{H as t,N as i,u as a}from"./react-vendor-CNX4PIKS.js";import{r}from"./index-l5WLNj7B.js";import{t as l}from"./ui-vendor-DGFEQoJM.js";var d=e(s(),1),o=i(),c=["resume","coverLetter","degree","headshot"],n=[{id:"resume",label:"Resume/CV",required:!0},{id:"coverLetter",label:"Cover Letter",required:!0},{id:"ncaAssessment",label:"NCA Assessment (if applicable)",required:!1},{id:"degree",label:"Law Degree or Transcripts",required:!0},{id:"licenses",label:"Legal Certifications or Licenses (if applicable)",required:!1},{id:"recommendations",label:"Letters of Recommendation",required:!1},{id:"certificates",label:"Additional Certificates",required:!1},{id:"headshot",label:"A Professional Headshot",required:!0}],m=()=>{const e=t(),{application:s,saveApplication:i}=r(),[m,u]=(0,d.useState)({});(0,d.useEffect)(()=>{s?.prepareDocumentsData?.checkedItems&&u(s.prepareDocumentsData.checkedItems)},[s]);const p=c.every(e=>m[e]);return(0,o.jsxs)(l.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-8",children:[(0,o.jsxs)("header",{children:[(0,o.jsx)("h1",{className:"text-3xl font-bold text-white",children:"Prepare Your Documents"}),(0,o.jsx)("p",{className:"mt-2 text-gray-400",children:"Submitted"===s?.status?"Your document checklist (Read-Only).":"Please gather the following documents before proceeding to the submission step. Use this as your personal checklist."})]}),(0,o.jsxs)("div",{className:"space-y-6",children:[(0,o.jsxs)("div",{className:"bg-fidi-dark-light p-6 rounded-lg border-l-4 border-fidi-gold",children:[(0,o.jsx)("h2",{className:"text-xl font-semibold text-white mb-4",children:"Document Checklist"}),(0,o.jsx)("ul",{className:"space-y-4",children:n.map(({id:e,label:t,required:i})=>(0,o.jsx)("li",{className:"flex items-center",children:(0,o.jsxs)("label",{className:"flex items-center text-lg "+("Submitted"===s?.status?"cursor-default":"cursor-pointer"),children:[(0,o.jsx)("input",{type:"checkbox",checked:!!m[e],onChange:()=>"Submitted"!==s?.status&&(e=>{u(s=>({...s,[e]:!s[e]}))})(e),disabled:"Submitted"===s?.status,className:"h-5 w-5 rounded form-checkbox bg-gray-700 border-gray-600 text-fidi-gold focus:ring-fidi-gold-dark disabled:opacity-50"}),(0,o.jsx)("span",{className:"ml-3 text-gray-200",children:t}),i&&(0,o.jsx)("span",{className:"ml-2 text-xs text-fidi-gold font-bold",children:"(Required)"})]})},e))})]}),"Submitted"!==s?.status&&(0,o.jsxs)("div",{className:"bg-fidi-dark-light/80 text-fidi-gold p-4 rounded-lg",children:[(0,o.jsx)("h3",{className:"font-bold",children:"Pro Tip:"}),(0,o.jsx)("p",{className:"text-white",children:"We recommend saving all documents in PDF format. Please label your files clearly (e.g., 'FirstName_LastName_Resume.pdf')."})]}),(0,o.jsx)("div",{className:"flex justify-end pt-4",children:"Submitted"===s?.status?(0,o.jsx)("button",{onClick:()=>e("/submit-application"),className:"bg-fidi-gold hover:bg-fidi-gold-dark text-black font-bold py-3 px-6 rounded-lg transition-colors",children:"Next: View Application"}):(0,o.jsx)("button",{onClick:async()=>{const s=a.loading("Saving progress...");try{await i({prepareDocumentsData:{checkedItems:m},progressStep:2}),a.success("Progress saved!",{id:s}),e("/submit-application")}catch(t){a.error(t.message||"Could not save progress.",{id:s})}},disabled:!p,className:"bg-fidi-gold hover:bg-fidi-gold-dark text-black font-bold py-3 px-6 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Next: Submit Application"})})]})]})};export{m 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.