import{c as Ct,b as J,r,d as qt,j as t,u as It,P,e as S,f as O,g as ot,h as Pt,i as _t,k as zt,l as et,C as E,m as D,n as $,a as T,B as Et,t as tt}from"./index-DdrMvM2x.js";import{u as Dt,F as Tt,a as u,b as d,c,d as p,e as f,T as at,t as Gt,o as $t,s as A,f as H}from"./textarea-Befwi7Pr.js";import{I as w}from"./input-DTSCX7ya.js";import{u as nt}from"./index-BscZTFRR.js";import{u as Bt,S as Ot,a as Mt,b as Vt,c as Kt,d as _}from"./select-B4QwJGcf.js";import{S as Yt}from"./SEO-Eni3cDPa.js";import{B as Ht}from"./Breadcrumb-BAiGR1_g.js";import{S as z}from"./skeleton-CzP5chay.js";/**
 * @license lucide-react v0.507.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ut=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Wt=Ct("circle",Ut);var U="rovingFocusGroup.onEntryFocus",Jt={bubbles:!1,cancelable:!0},G="RovingFocusGroup",[W,st,Qt]=qt(G),[Xt,rt]=J(G,[Qt]),[Zt,ta]=Xt(G),it=r.forwardRef((e,n)=>t.jsx(W.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(W.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(aa,{...e,ref:n})})}));it.displayName=G;var aa=r.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:o,orientation:s,loop:a=!1,dir:i,currentTabStopId:m,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:g,onEntryFocus:j,preventScrollOnEntryFocus:x=!1,...F}=e,L=r.useRef(null),h=O(n,L),y=nt(i),[k,l]=ot({prop:m,defaultProp:b??null,onChange:g,caller:G}),[R,V]=r.useState(!1),N=Pt(j),C=st(o),K=r.useRef(!1),[wt,X]=r.useState(0);return r.useEffect(()=>{const v=L.current;if(v)return v.addEventListener(U,N),()=>v.removeEventListener(U,N)},[N]),t.jsx(Zt,{scope:o,orientation:s,dir:y,loop:a,currentTabStopId:k,onItemFocus:r.useCallback(v=>l(v),[l]),onItemShiftTab:r.useCallback(()=>V(!0),[]),onFocusableItemAdd:r.useCallback(()=>X(v=>v+1),[]),onFocusableItemRemove:r.useCallback(()=>X(v=>v-1),[]),children:t.jsx(P.div,{tabIndex:R||wt===0?-1:0,"data-orientation":s,...F,ref:h,style:{outline:"none",...e.style},onMouseDown:S(e.onMouseDown,()=>{K.current=!0}),onFocus:S(e.onFocus,v=>{const kt=!K.current;if(v.target===v.currentTarget&&kt&&!R){const Z=new CustomEvent(U,Jt);if(v.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const Y=C().filter(q=>q.focusable),Nt=Y.find(q=>q.active),St=Y.find(q=>q.id===k),Rt=[Nt,St,...Y].filter(Boolean).map(q=>q.ref.current);pt(Rt,x)}}K.current=!1}),onBlur:S(e.onBlur,()=>V(!1))})})}),dt="RovingFocusGroupItem",ct=r.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:o,focusable:s=!0,active:a=!1,tabStopId:i,children:m,...b}=e,g=It(),j=i||g,x=ta(dt,o),F=x.currentTabStopId===j,L=st(o),{onFocusableItemAdd:h,onFocusableItemRemove:y,currentTabStopId:k}=x;return r.useEffect(()=>{if(s)return h(),()=>y()},[s,h,y]),t.jsx(W.ItemSlot,{scope:o,id:j,focusable:s,active:a,children:t.jsx(P.span,{tabIndex:F?0:-1,"data-orientation":x.orientation,...b,ref:n,onMouseDown:S(e.onMouseDown,l=>{s?x.onItemFocus(j):l.preventDefault()}),onFocus:S(e.onFocus,()=>x.onItemFocus(j)),onKeyDown:S(e.onKeyDown,l=>{if(l.key==="Tab"&&l.shiftKey){x.onItemShiftTab();return}if(l.target!==l.currentTarget)return;const R=na(l,x.orientation,x.dir);if(R!==void 0){if(l.metaKey||l.ctrlKey||l.altKey||l.shiftKey)return;l.preventDefault();let N=L().filter(C=>C.focusable).map(C=>C.ref.current);if(R==="last")N.reverse();else if(R==="prev"||R==="next"){R==="prev"&&N.reverse();const C=N.indexOf(l.currentTarget);N=x.loop?sa(N,C+1):N.slice(C+1)}setTimeout(()=>pt(N))}}),children:typeof m=="function"?m({isCurrentTabStop:F,hasTabStop:k!=null}):m})})});ct.displayName=dt;var oa={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ea(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function na(e,n,o){const s=ea(e.key,o);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return oa[s]}function pt(e,n=!1){const o=document.activeElement;for(const s of e)if(s===o||(s.focus({preventScroll:n}),document.activeElement!==o))return}function sa(e,n){return e.map((o,s)=>e[(n+s)%e.length])}var ra=it,ia=ct,Q="Radio",[da,lt]=J(Q),[ca,pa]=da(Q),mt=r.forwardRef((e,n)=>{const{__scopeRadio:o,name:s,checked:a=!1,required:i,disabled:m,value:b="on",onCheck:g,form:j,...x}=e,[F,L]=r.useState(null),h=O(n,l=>L(l)),y=r.useRef(!1),k=F?j||!!F.closest("form"):!0;return t.jsxs(ca,{scope:o,checked:a,disabled:m,children:[t.jsx(P.button,{type:"button",role:"radio","aria-checked":a,"data-state":ft(a),"data-disabled":m?"":void 0,disabled:m,value:b,...x,ref:h,onClick:S(e.onClick,l=>{a||g==null||g(),k&&(y.current=l.isPropagationStopped(),y.current||l.stopPropagation())})}),k&&t.jsx(ut,{control:F,bubbles:!y.current,name:s,value:b,checked:a,required:i,disabled:m,form:j,style:{transform:"translateX(-100%)"}})]})});mt.displayName=Q;var xt="RadioIndicator",ht=r.forwardRef((e,n)=>{const{__scopeRadio:o,forceMount:s,...a}=e,i=pa(xt,o);return t.jsx(_t,{present:s||i.checked,children:t.jsx(P.span,{"data-state":ft(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:n})})});ht.displayName=xt;var la="RadioBubbleInput",ut=r.forwardRef(({__scopeRadio:e,control:n,checked:o,bubbles:s=!0,...a},i)=>{const m=r.useRef(null),b=O(m,i),g=Bt(o),j=zt(n);return r.useEffect(()=>{const x=m.current;if(!x)return;const F=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(F,"checked").set;if(g!==o&&h){const y=new Event("click",{bubbles:s});h.call(x,o),x.dispatchEvent(y)}},[g,o,s]),t.jsx(P.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...a,tabIndex:-1,ref:b,style:{...a.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ut.displayName=la;function ft(e){return e?"checked":"unchecked"}var ma=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],M="RadioGroup",[xa]=J(M,[rt,lt]),bt=rt(),jt=lt(),[ha,ua]=xa(M),yt=r.forwardRef((e,n)=>{const{__scopeRadioGroup:o,name:s,defaultValue:a,value:i,required:m=!1,disabled:b=!1,orientation:g,dir:j,loop:x=!0,onValueChange:F,...L}=e,h=bt(o),y=nt(j),[k,l]=ot({prop:i,defaultProp:a??null,onChange:F,caller:M});return t.jsx(ha,{scope:o,name:s,required:m,disabled:b,value:k,onValueChange:l,children:t.jsx(ra,{asChild:!0,...h,orientation:g,dir:y,loop:x,children:t.jsx(P.div,{role:"radiogroup","aria-required":m,"aria-orientation":g,"data-disabled":b?"":void 0,dir:y,...L,ref:n})})})});yt.displayName=M;var gt="RadioGroupItem",Ft=r.forwardRef((e,n)=>{const{__scopeRadioGroup:o,disabled:s,...a}=e,i=ua(gt,o),m=i.disabled||s,b=bt(o),g=jt(o),j=r.useRef(null),x=O(n,j),F=i.value===a.value,L=r.useRef(!1);return r.useEffect(()=>{const h=k=>{ma.includes(k.key)&&(L.current=!0)},y=()=>L.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",y)}},[]),t.jsx(ia,{asChild:!0,...b,focusable:!m,active:F,children:t.jsx(mt,{disabled:m,required:i.required,checked:F,...g,...a,name:i.name,ref:x,onCheck:()=>i.onValueChange(a.value),onKeyDown:S(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:S(a.onFocus,()=>{var h;L.current&&((h=j.current)==null||h.click())})})})});Ft.displayName=gt;var fa="RadioGroupIndicator",At=r.forwardRef((e,n)=>{const{__scopeRadioGroup:o,...s}=e,a=jt(o);return t.jsx(ht,{...a,...s,ref:n})});At.displayName=fa;var Lt=yt,vt=Ft,ba=At;const B=r.forwardRef(({className:e,...n},o)=>t.jsx(Lt,{className:et("grid gap-2",e),...n,ref:o}));B.displayName=Lt.displayName;const I=r.forwardRef(({className:e,...n},o)=>t.jsx(vt,{ref:o,className:et("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:t.jsx(ba,{className:"flex items-center justify-center",children:t.jsx(Wt,{className:"h-3.5 w-3.5 fill-primary"})})}));I.displayName=vt.displayName;const ja=$t({fullName:A().min(2,"Full name is required"),email:A().email("Valid email is required"),phoneNumber:A().min(10,"Valid phone number is required"),projectType:A().min(1,"Project type is required"),constructionCosts:A().min(1,"Construction costs are required"),buildDate:A().min(1,"Build date is required"),hasPlans:H(["yes","no"],{required_error:"Please select an option"}),ownsLand:H(["yes","no"],{required_error:"Please select an option"}),hasBuilder:H(["yes","no"],{required_error:"Please select an option"}),propertyBalance:A().min(1,"Property balance is required"),loanAmountDesired:A().min(1,"Loan amount desired is required"),finishValueOfProject:A().min(1,"Finish value of project is required"),monthlyIncome:A().min(1,"Monthly income is required"),monthlyDebt:A().min(1,"Monthly debt is required"),liquidAssets:A().min(1,"Liquid assets are required"),creditScore:A().min(1,"Credit score is required"),specificRequirements:A().min(10,"Please provide specific requirements (minimum 10 characters)"),projectGoals:A().min(10,"Please provide project goals (minimum 10 characters)")});function ya(){const[e,n]=r.useState(!1),o=Dt({resolver:Gt(ja),defaultValues:{fullName:"",email:"",phoneNumber:"",projectType:"",constructionCosts:"",buildDate:"",hasPlans:void 0,ownsLand:void 0,hasBuilder:void 0,propertyBalance:"",loanAmountDesired:"",finishValueOfProject:"",monthlyIncome:"",monthlyDebt:"",liquidAssets:"",creditScore:"",specificRequirements:"",projectGoals:""}}),s=async a=>{n(!0);try{const{error:i}=await window.ezsite.apis.tableCreate(70616,{full_name:a.fullName,email:a.email,phone_number:a.phoneNumber,project_type:a.projectType,construction_costs:parseFloat(a.constructionCosts),build_date:a.buildDate,has_plans:a.hasPlans==="yes",owns_land:a.ownsLand==="yes",has_builder:a.hasBuilder==="yes",property_balance:parseFloat(a.propertyBalance),loan_amount_desired:parseFloat(a.loanAmountDesired),finish_value_of_project:parseFloat(a.finishValueOfProject),monthly_income:parseFloat(a.monthlyIncome),monthly_debt:parseFloat(a.monthlyDebt),liquid_assets:parseFloat(a.liquidAssets),credit_score:parseInt(a.creditScore),specific_requirements:a.specificRequirements,project_goals:a.projectGoals});if(i)throw new Error(i);const m=`
        <div style="font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; background-color: #f9fafb;">
          <div style="background-color: #ffffff; border-radius: 8px; padding: 30px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
            <h1 style="color: #1f2937; margin-bottom: 20px; border-bottom: 3px solid #3b82f6; padding-bottom: 10px;">New Loan Application Submitted</h1>
            
            <div style="margin-bottom: 30px;">
              <h2 style="color: #3b82f6; font-size: 18px; margin-bottom: 15px;">Contact Information</h2>
              <table style="width: 100%; border-collapse: collapse;">
                <tr style="background-color: #f3f4f6;">
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold; width: 40%;">Full Name:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">${a.fullName}</td>
                </tr>
                <tr>
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Email:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">${a.email}</td>
                </tr>
                <tr style="background-color: #f3f4f6;">
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Phone Number:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">${a.phoneNumber}</td>
                </tr>
              </table>
            </div>

            <div style="margin-bottom: 30px;">
              <h2 style="color: #3b82f6; font-size: 18px; margin-bottom: 15px;">Construction Project Details</h2>
              <table style="width: 100%; border-collapse: collapse;">
                <tr style="background-color: #f3f4f6;">
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold; width: 40%;">Project Type:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">${a.projectType}</td>
                </tr>
                <tr>
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Construction Costs:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">$${parseFloat(a.constructionCosts).toLocaleString()}</td>
                </tr>
                <tr style="background-color: #f3f4f6;">
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Build Date:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">${a.buildDate}</td>
                </tr>
                <tr>
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Property Balance:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">$${parseFloat(a.propertyBalance).toLocaleString()}</td>
                </tr>
                <tr style="background-color: #f3f4f6;">
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Loan Amount Desired:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">$${parseFloat(a.loanAmountDesired).toLocaleString()}</td>
                </tr>
                <tr>
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Finish Value of Project:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">$${parseFloat(a.finishValueOfProject).toLocaleString()}</td>
                </tr>
                <tr style="background-color: #f3f4f6;">
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Has House Plans:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">${a.hasPlans==="yes"?"Yes":"No"}</td>
                </tr>
                <tr>
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Owns Land:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">${a.ownsLand==="yes"?"Yes":"No"}</td>
                </tr>
                <tr style="background-color: #f3f4f6;">
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Has Builder:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">${a.hasBuilder==="yes"?"Yes":"No"}</td>
                </tr>
              </table>
            </div>

            <div style="margin-bottom: 30px;">
              <h2 style="color: #3b82f6; font-size: 18px; margin-bottom: 15px;">Financial Information</h2>
              <table style="width: 100%; border-collapse: collapse;">
                <tr style="background-color: #f3f4f6;">
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold; width: 40%;">Monthly Income:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">$${parseFloat(a.monthlyIncome).toLocaleString()}</td>
                </tr>
                <tr>
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Monthly Debt:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">$${parseFloat(a.monthlyDebt).toLocaleString()}</td>
                </tr>
                <tr style="background-color: #f3f4f6;">
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Liquid Assets:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">$${parseFloat(a.liquidAssets).toLocaleString()}</td>
                </tr>
                <tr>
                  <td style="padding: 10px; border: 1px solid #e5e7eb; font-weight: bold;">Credit Score:</td>
                  <td style="padding: 10px; border: 1px solid #e5e7eb;">${a.creditScore}</td>
                </tr>
              </table>
            </div>

            <div style="margin-bottom: 30px;">
              <h2 style="color: #3b82f6; font-size: 18px; margin-bottom: 15px;">Additional Information</h2>
              <div style="margin-bottom: 20px;">
                <h3 style="color: #374151; font-size: 16px; margin-bottom: 8px;">Specific Requirements:</h3>
                <p style="color: #4b5563; background-color: #f9fafb; padding: 15px; border-radius: 4px; border-left: 4px solid #3b82f6; margin: 0;">${a.specificRequirements}</p>
              </div>
              <div>
                <h3 style="color: #374151; font-size: 16px; margin-bottom: 8px;">Project Goals:</h3>
                <p style="color: #4b5563; background-color: #f9fafb; padding: 15px; border-radius: 4px; border-left: 4px solid #3b82f6; margin: 0;">${a.projectGoals}</p>
              </div>
            </div>

            <div style="margin-top: 30px; padding-top: 20px; border-top: 2px solid #e5e7eb; text-align: center; color: #6b7280; font-size: 14px;">
              <p>Submitted on ${new Date().toLocaleString()}</p>
            </div>
          </div>
        </div>
      `,{error:b}=await window.ezsite.apis.sendEmail({from:"Jumbo Construction Loans <noreply@jumboconstructionloans.com>",to:["rgomez@jumboconstructionloans.com"],subject:"New Loan Application Submission",html:m});b&&console.error("Error sending email notification:",b),tt({title:"Application Submitted Successfully!",description:"We will review your application and contact you soon."}),o.reset()}catch(i){console.error("Error submitting application:",i),tt({title:"Submission Failed",description:i instanceof Error?i.message:"Please try again later.",variant:"destructive"})}finally{n(!1)}};return t.jsx(Tt,{...o,"data-id":"7xiuwk745","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsxs("form",{onSubmit:o.handleSubmit(s),className:"space-y-8 max-w-4xl mx-auto","aria-label":"Construction loan application form","data-id":"8byf4ufem","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsxs(E,{"data-id":"g0wyzfb3g","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(D,{"data-id":"jd5de84nr","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx($,{className:"text-2xl","data-id":"lhegz8utv","data-path":"src/components/LoanApplicationForm.tsx",children:"Contact Information"})}),t.jsxs(T,{className:"space-y-4","data-id":"g3yt15n3b","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(u,{control:o.control,name:"fullName",render:({field:a})=>t.jsxs(d,{"data-id":"7zbvykvt7","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"g7pmsfxxu","data-path":"src/components/LoanApplicationForm.tsx",children:"Full Name *"}),t.jsx(p,{"data-id":"txyu0qeup","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{placeholder:"John Doe",...a,"data-id":"hoblp85wh","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"b1ffppgxy","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"irin3z45h","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4","data-id":"gul6x6iyt","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(u,{control:o.control,name:"email",render:({field:a})=>t.jsxs(d,{"data-id":"9x7itiwkc","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"1oofiq3bk","data-path":"src/components/LoanApplicationForm.tsx",children:"Email Address *"}),t.jsx(p,{"data-id":"9tm3w7ctm","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"email",placeholder:"john@example.com",...a,"data-id":"5pdc9y0v4","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"amax1xtmy","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"bkao72crx","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsx(u,{control:o.control,name:"phoneNumber",render:({field:a})=>t.jsxs(d,{"data-id":"jt8iar3fo","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"dtfl198my","data-path":"src/components/LoanApplicationForm.tsx",children:"Phone Number *"}),t.jsx(p,{"data-id":"9xkot3m1t","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"tel",placeholder:"(555) 123-4567",...a,"data-id":"e0a2rxvem","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"zsddf4wry","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"g79gs8vgm","data-path":"src/components/LoanApplicationForm.tsx"})]})]})]}),t.jsxs(E,{"data-id":"c2jxk0dn5","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(D,{"data-id":"lbyosu9fr","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx($,{className:"text-2xl","data-id":"bz5ejj5x4","data-path":"src/components/LoanApplicationForm.tsx",children:"Construction Project Details"})}),t.jsxs(T,{className:"space-y-4","data-id":"o5pxks2v1","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4","data-id":"0hfe9tbw0","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(u,{control:o.control,name:"projectType",render:({field:a})=>t.jsxs(d,{"data-id":"au6d7ozp0","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"pdpkyk1ce","data-path":"src/components/LoanApplicationForm.tsx",children:"Project Type *"}),t.jsxs(Ot,{onValueChange:a.onChange,defaultValue:a.value,"data-id":"whjnzdoi4","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(p,{"data-id":"ngdxuuckq","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(Mt,{"data-id":"unzi1sdfh","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(Vt,{placeholder:"Select project type","data-id":"4m0kcaym4","data-path":"src/components/LoanApplicationForm.tsx"})})}),t.jsxs(Kt,{"data-id":"x5m7yh23e","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(_,{value:"single-family","data-id":"djnh5cvzd","data-path":"src/components/LoanApplicationForm.tsx",children:"Single Family Home"}),t.jsx(_,{value:"multi-family","data-id":"yeqtt3opp","data-path":"src/components/LoanApplicationForm.tsx",children:"Multi-Family Home"}),t.jsx(_,{value:"renovation","data-id":"2i0d2obi0","data-path":"src/components/LoanApplicationForm.tsx",children:"Renovation"}),t.jsx(_,{value:"land-loans","data-id":"karyw01lx","data-path":"src/components/LoanApplicationForm.tsx",children:"Land Loans"}),t.jsx(_,{value:"custom","data-id":"fdxb2n1cz","data-path":"src/components/LoanApplicationForm.tsx",children:"Custom Build"})]})]}),t.jsx(f,{"data-id":"x3saono3k","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"5v9n47ly6","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsx(u,{control:o.control,name:"constructionCosts",render:({field:a})=>t.jsxs(d,{"data-id":"7fhmwex99","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"84pepwsk6","data-path":"src/components/LoanApplicationForm.tsx",children:"Construction Costs ($) *"}),t.jsx(p,{"data-id":"en659c8fk","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"number",placeholder:"250000",min:"0",step:"1000",...a,"data-id":"8xzxrdblr","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"m5xnbkwh6","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"cyb4sd2y7","data-path":"src/components/LoanApplicationForm.tsx"})]}),t.jsx(u,{control:o.control,name:"buildDate",render:({field:a})=>t.jsxs(d,{"data-id":"87svcsdy5","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"a9n2acr1f","data-path":"src/components/LoanApplicationForm.tsx",children:"When Do You Plan to Build? *"}),t.jsx(p,{"data-id":"a0ytvkt14","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"date",...a,"data-id":"iuuk768ur","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"txex3qwh7","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"ojfsfcsh5","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4","data-id":"l0darge6f","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(u,{control:o.control,name:"propertyBalance",render:({field:a})=>t.jsxs(d,{"data-id":"izk51j878","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"txxr9mxmv","data-path":"src/components/LoanApplicationForm.tsx",children:"Property Balance ($) *"}),t.jsx(p,{"data-id":"2hkrsenc8","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"number",placeholder:"150000",min:"0",step:"1000",...a,"data-id":"3dcy5qo84","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"d02uh3jzm","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"90b6nli1r","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsx(u,{control:o.control,name:"loanAmountDesired",render:({field:a})=>t.jsxs(d,{"data-id":"0v0hu3yrx","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"0vunj09sg","data-path":"src/components/LoanApplicationForm.tsx",children:"Loan Amount Desired ($) *"}),t.jsx(p,{"data-id":"rqfckypqk","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"number",placeholder:"200000",min:"0",step:"1000",...a,"data-id":"nrcck9weh","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"rmrdeh0au","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"ujbrmqxsg","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsx(u,{control:o.control,name:"finishValueOfProject",render:({field:a})=>t.jsxs(d,{"data-id":"gglwf32lb","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"4ls9c9a6e","data-path":"src/components/LoanApplicationForm.tsx",children:"Finish Value of Project ($) *"}),t.jsx(p,{"data-id":"fad6j3djo","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"number",placeholder:"500000",min:"0",step:"1000",...a,"data-id":"ab1m65k4t","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"3xihpb31f","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"dg7ff1x1f","data-path":"src/components/LoanApplicationForm.tsx"})]}),t.jsxs("div",{className:"space-y-4","data-id":"oo6kohcef","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(u,{control:o.control,name:"hasPlans",render:({field:a})=>t.jsxs(d,{className:"space-y-3","data-id":"dfmvjqn73","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"n8uwo77g0","data-path":"src/components/LoanApplicationForm.tsx",children:"Do You Have House Plans? *"}),t.jsx(p,{"data-id":"o32eh9qqc","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsxs(B,{onValueChange:a.onChange,defaultValue:a.value,className:"flex space-x-4","data-id":"9fropkkmw","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsxs(d,{className:"flex items-center space-x-2 space-y-0","data-id":"oltmacjgm","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(p,{"data-id":"jfrrk1g69","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(I,{value:"yes","data-id":"8weck25ez","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(c,{className:"font-normal cursor-pointer","data-id":"955uqjjyl","data-path":"src/components/LoanApplicationForm.tsx",children:"Yes"})]}),t.jsxs(d,{className:"flex items-center space-x-2 space-y-0","data-id":"0wjg244n4","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(p,{"data-id":"mvhowet1i","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(I,{value:"no","data-id":"0hp0lgndx","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(c,{className:"font-normal cursor-pointer","data-id":"97qfa38sv","data-path":"src/components/LoanApplicationForm.tsx",children:"No"})]})]})}),t.jsx(f,{"data-id":"fjpirz7zx","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"yglwvtwax","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsx(u,{control:o.control,name:"ownsLand",render:({field:a})=>t.jsxs(d,{className:"space-y-3","data-id":"qvhxsxpuj","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"k3xzm8faz","data-path":"src/components/LoanApplicationForm.tsx",children:"Do You Own Land? *"}),t.jsx(p,{"data-id":"6k5dlywwy","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsxs(B,{onValueChange:a.onChange,defaultValue:a.value,className:"flex space-x-4","data-id":"tmetaks68","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsxs(d,{className:"flex items-center space-x-2 space-y-0","data-id":"mqjdr564e","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(p,{"data-id":"uwgvgirhn","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(I,{value:"yes","data-id":"nnqtzg0j8","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(c,{className:"font-normal cursor-pointer","data-id":"goh6je42i","data-path":"src/components/LoanApplicationForm.tsx",children:"Yes"})]}),t.jsxs(d,{className:"flex items-center space-x-2 space-y-0","data-id":"rdnpscf6b","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(p,{"data-id":"srfht8qnp","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(I,{value:"no","data-id":"cceg2bb1z","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(c,{className:"font-normal cursor-pointer","data-id":"n1e8e7waw","data-path":"src/components/LoanApplicationForm.tsx",children:"No"})]})]})}),t.jsx(f,{"data-id":"vz8nthywi","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"85r1lmuwx","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsx(u,{control:o.control,name:"hasBuilder",render:({field:a})=>t.jsxs(d,{className:"space-y-3","data-id":"tzix7zn9s","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"45d12rxm1","data-path":"src/components/LoanApplicationForm.tsx",children:"Do You Have a Builder? *"}),t.jsx(p,{"data-id":"fvoddp43b","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsxs(B,{onValueChange:a.onChange,defaultValue:a.value,className:"flex space-x-4","data-id":"nliwbzmqg","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsxs(d,{className:"flex items-center space-x-2 space-y-0","data-id":"aj7ktqjij","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(p,{"data-id":"4u2n7k9a8","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(I,{value:"yes","data-id":"f2g2pn7bc","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(c,{className:"font-normal cursor-pointer","data-id":"h37chz6ve","data-path":"src/components/LoanApplicationForm.tsx",children:"Yes"})]}),t.jsxs(d,{className:"flex items-center space-x-2 space-y-0","data-id":"8vfn5uai7","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(p,{"data-id":"oruvebdt1","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(I,{value:"no","data-id":"iqiscd8bf","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(c,{className:"font-normal cursor-pointer","data-id":"tyehpfv9d","data-path":"src/components/LoanApplicationForm.tsx",children:"No"})]})]})}),t.jsx(f,{"data-id":"oo60ux2dj","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"14wonib5r","data-path":"src/components/LoanApplicationForm.tsx"})]})]})]}),t.jsxs(E,{"data-id":"4adrqrj93","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(D,{"data-id":"gvimdrhiz","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx($,{className:"text-2xl","data-id":"4k4rddgko","data-path":"src/components/LoanApplicationForm.tsx",children:"Financial Information"})}),t.jsxs(T,{className:"space-y-4","data-id":"zx281a2u8","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4","data-id":"o2t8c1hyi","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(u,{control:o.control,name:"monthlyIncome",render:({field:a})=>t.jsxs(d,{"data-id":"1nfo4gxq3","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"k4l9s1seo","data-path":"src/components/LoanApplicationForm.tsx",children:"Family Monthly Income ($) *"}),t.jsx(p,{"data-id":"vgfbkik57","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"number",placeholder:"8000",min:"0",step:"100",...a,"data-id":"aducod75p","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"d0y2fi15v","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"lp47caozd","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsx(u,{control:o.control,name:"monthlyDebt",render:({field:a})=>t.jsxs(d,{"data-id":"b527c5iqh","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"2xr986ebv","data-path":"src/components/LoanApplicationForm.tsx",children:"Family Monthly Debt ($) *"}),t.jsx(p,{"data-id":"dcmi5b1qx","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"number",placeholder:"2000",min:"0",step:"100",...a,"data-id":"jrkh2pp9g","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"nlm3lhaoa","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"exqgpzvav","data-path":"src/components/LoanApplicationForm.tsx"})]}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4","data-id":"7xqjood6m","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(u,{control:o.control,name:"liquidAssets",render:({field:a})=>t.jsxs(d,{"data-id":"emophpz9w","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"dmxx9xlis","data-path":"src/components/LoanApplicationForm.tsx",children:"Family Estimated Liquid Assets ($) *"}),t.jsx(p,{"data-id":"sum14fnft","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"number",placeholder:"50000",min:"0",step:"1000",...a,"data-id":"k27mwlr50","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"vvd629pcf","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"a9v67lq6q","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsx(u,{control:o.control,name:"creditScore",render:({field:a})=>t.jsxs(d,{"data-id":"eyzg9xteg","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"j53mj918q","data-path":"src/components/LoanApplicationForm.tsx",children:"Credit Score *"}),t.jsx(p,{"data-id":"pk4tgcp32","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(w,{type:"number",placeholder:"720",min:"300",max:"850",...a,"data-id":"5unrxzoct","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"yyddh51pz","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"o1b4sw20r","data-path":"src/components/LoanApplicationForm.tsx"})]})]})]}),t.jsxs(E,{"data-id":"u3yi23i5p","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(D,{"data-id":"eilhyaqoh","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx($,{className:"text-2xl","data-id":"o93g1v0l2","data-path":"src/components/LoanApplicationForm.tsx",children:"Additional Information"})}),t.jsxs(T,{className:"space-y-4","data-id":"mk30q9tgg","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(u,{control:o.control,name:"specificRequirements",render:({field:a})=>t.jsxs(d,{"data-id":"k5gn6lned","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"2fmzsmh2n","data-path":"src/components/LoanApplicationForm.tsx",children:"Specific Requirements *"}),t.jsx(p,{"data-id":"ty2kb0eku","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(at,{placeholder:"Please describe any specific requirements for your construction loan...",className:"min-h-[120px]",...a,"data-id":"xyvwro1e4","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"7sfs4zzhb","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"wzn1zk875","data-path":"src/components/LoanApplicationForm.tsx"}),t.jsx(u,{control:o.control,name:"projectGoals",render:({field:a})=>t.jsxs(d,{"data-id":"9sony5494","data-path":"src/components/LoanApplicationForm.tsx",children:[t.jsx(c,{"data-id":"wllfu076u","data-path":"src/components/LoanApplicationForm.tsx",children:"Project Goals *"}),t.jsx(p,{"data-id":"6u7mly3g1","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(at,{placeholder:"Please describe your project goals and vision...",className:"min-h-[120px]",...a,"data-id":"kngoe8ydm","data-path":"src/components/LoanApplicationForm.tsx"})}),t.jsx(f,{"data-id":"54byqy6c7","data-path":"src/components/LoanApplicationForm.tsx"})]}),"data-id":"e98hqm3dx","data-path":"src/components/LoanApplicationForm.tsx"})]})]}),t.jsx("div",{className:"flex justify-center","data-id":"xryyvhxen","data-path":"src/components/LoanApplicationForm.tsx",children:t.jsx(Et,{type:"submit",size:"lg",disabled:e,className:"w-full md:w-auto px-12","data-id":"4v5s8a7ta","data-path":"src/components/LoanApplicationForm.tsx",children:e?"Submitting...":"Submit Application"})})]})})}const ga=()=>t.jsxs(E,{className:"max-w-2xl mx-auto","data-id":"kcwz8af0i","data-path":"src/components/FormSkeleton.tsx",children:[t.jsxs(D,{"data-id":"yek45ezla","data-path":"src/components/FormSkeleton.tsx",children:[t.jsx(z,{className:"h-8 w-1/2","data-id":"6rc55q3oo","data-path":"src/components/FormSkeleton.tsx"}),t.jsx(z,{className:"h-4 w-3/4 mt-2","data-id":"dk7uyyuzc","data-path":"src/components/FormSkeleton.tsx"})]}),t.jsxs(T,{className:"space-y-6","data-id":"bbv2dvqd3","data-path":"src/components/FormSkeleton.tsx",children:[[1,2,3,4,5].map(e=>t.jsxs("div",{className:"space-y-2","data-id":"xifk1swlj","data-path":"src/components/FormSkeleton.tsx",children:[t.jsx(z,{className:"h-4 w-1/4","data-id":"q7webue2y","data-path":"src/components/FormSkeleton.tsx"}),t.jsx(z,{className:"h-10 w-full","data-id":"ikvf2mgj8","data-path":"src/components/FormSkeleton.tsx"})]},e)),t.jsx(z,{className:"h-10 w-full mt-6","data-id":"3z5tw2751","data-path":"src/components/FormSkeleton.tsx"})]})]});function Ca(){return t.jsxs(t.Fragment,{children:[t.jsx(Yt,{title:"Apply for a Construction Loan | Premier Construction Loans",description:"Start your construction loan application today. Get pre-qualified for residential construction financing with competitive rates. Fast approval process with expert guidance.",keywords:"construction loan application, apply for construction loan, construction loan pre-qualification, home construction financing application, loan application form",ogType:"website","data-id":"1wk2zhcff","data-path":"src/pages/LoanApplicationPage.tsx"}),t.jsxs("main",{id:"main-content",className:"min-h-screen bg-gradient-to-b from-slate-50 to-white py-12 px-4","data-id":"7zz40sjoq","data-path":"src/pages/LoanApplicationPage.tsx",children:[t.jsx("div",{className:"container mx-auto px-4 pt-8","data-id":"6k0ww8boi","data-path":"src/pages/LoanApplicationPage.tsx",children:t.jsx(Ht,{items:[{label:"Loan Application",path:"/loan-application"}],"data-id":"648furres","data-path":"src/pages/LoanApplicationPage.tsx"})}),t.jsxs("div",{className:"max-w-5xl mx-auto","data-id":"vij6raduj","data-path":"src/pages/LoanApplicationPage.tsx",children:[t.jsxs("div",{className:"text-center mb-12","data-id":"ahb4f9n41","data-path":"src/pages/LoanApplicationPage.tsx",children:[t.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-slate-900 mb-4","data-id":"84pnkxkdy","data-path":"src/pages/LoanApplicationPage.tsx",children:"Pre-Qualify Application"}),t.jsx("p",{className:"text-lg text-slate-600 max-w-2xl mx-auto","data-id":"6z88vprbz","data-path":"src/pages/LoanApplicationPage.tsx",children:"Complete the form below to start your application process. All fields are required to help us better understand your project needs."})]}),t.jsx(r.Suspense,{fallback:t.jsx(ga,{"data-id":"1vumqq458","data-path":"src/pages/LoanApplicationPage.tsx"}),"data-id":"x9xq8jczw","data-path":"src/pages/LoanApplicationPage.tsx",children:t.jsx(ya,{"data-id":"q1myn36an","data-path":"src/pages/LoanApplicationPage.tsx"})})]})]})]})}export{Ca as default};