import{r as e}from"./rolldown-runtime-hePW80VL.js";import{o as t}from"./vendor-forms-yQg41KHz.js";import{t as n}from"./vendor-react-CAGJwf-T.js";import{n as r,t as i}from"./EligibilityResultCard-DxMASHZ-.js";import{t as a}from"./rotate-ccw-DxwMb1G3.js";import{D as o}from"./index-Z_bdWDpJ.js";import{t as s}from"./PageHeader-UI75nV23.js";import{n as c}from"./eligibilityRtkApi-DkYI0_6i.js";var l=e(t(),1),u=n();function d(){let{data:e}=c(),t=e?.eligibility.require_consent??!0,n=e?.eligibility.internal_default_outcome??`lead`,[d,f]=(0,l.useState)(null);return(0,u.jsxs)(`div`,{children:[(0,u.jsx)(s,{title:`Loan Eligibility`,description:`Run a quick eligibility check for an applicant and convert eligible results into a lead or application.`,actions:d?(0,u.jsxs)(o,{variant:`outline`,size:`sm`,onClick:()=>f(null),className:`gap-1.5`,children:[(0,u.jsx)(a,{className:`w-3.5 h-3.5`}),`New Check`]}):void 0}),d?(0,u.jsx)(`div`,{className:`max-w-3xl`,children:(0,u.jsx)(i,{check:d,defaultOutcome:n})}):(0,u.jsx)(`div`,{className:`max-w-[1500px]`,children:(0,u.jsx)(r,{requireConsent:t,aadhaarEnabled:e?.surepass?.aadhaar_otp_enabled??!1,panAutofillEnabled:e?.surepass?.pan_autofill_enabled??!1,mobilePrefillEnabled:e?.surepass?.mobile_prefill_enabled??!1,onResult:f})})]})}export{d as default};