{"version":3,"file":"OC.BVG2VT9d.mjs","names":["p","useState","useCallback","useRef","_Fragment","raw","docPct","docSet","providers","activeSections"],"sources":["https:/framerusercontent.com/modules/diXCU4WsHM8BxuNvGrhv/4FL7VBXqBun3bVv2u4Kq/OC.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useRef,useEffect,useCallback}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";// Frank onboarding chatbot for the Framer site. A conversational, one-big-\n// question-at-a-time intake (Typeform / Jack & Jill style) on a dark rounded\n// stage with a white card. After the 5 qualifying questions it \"searches\" a\n// lender rate table and presents the top 5 matches with the reasons each fits.\n//\n// The current question is shown large (h2-scale, matching the talktofrank.ai\n// brand type) and is replaced by the next as the visitor answers. A progress\n// bar tracks how far through they are.\n//\n// On \"Continue\" from the results screen it stashes the answers in localStorage\n// under \"frank_widget_seed\" (the channel the live widget reads) and hands off\n// to talktofrank.ai/agent so the data arrives intact.\n//\n// NOTE: keep this file 100% ASCII. Non-ASCII glyphs are built with\n// String.fromCharCode so Framer's editor can't mangle them on paste; every\n// other symbol is inline SVG.\nconst EMDASH=String.fromCharCode(8212)// em dash\n;const HELLIP=String.fromCharCode(8230)// ellipsis\n;// The single, deterministic closing line shown once intake is complete. Frank's\n// own goodbye is model-generated (and can fire twice), so the widget collapses\n// the terminal turn to this fixed bubble instead.\nconst TERMINAL_CLOSING=\"Sounds good \"+EMDASH+\" you're all set. We'll take it from here.\";const SEED_KEY=\"frank_widget_seed\";const STORAGE_KEY=\"frank_widget_anon_token\";const OTHER_LABEL=\"Other\";// The lender database is fetched at runtime from the API\n// (apiBaseUrl + \"/api/public/sme-widget/lenders\") rather than embedded here --\n// the ~150KB literal made this file too large for Framer to paste/bundle.\n// matchRates() takes the fetched array as an argument.\n// Loan-type chip -> product tag; industry chip -> industry tag.\nconst LOAN_TYPE_TAG={\"SBA 7a\":\"7a\",\"SBA 504\":\"504\",\"Line of Credit\":\"loc\",\"Equipment Finance (Secured)\":\"eq\",\"Unsecured Business Loan\":\"term\",\"Invoice Finance\":\"invoice\",\"Asset Backed Finance\":\"abl\"};const INDUSTRY_KEY={Retail:\"retail\",\"Food & Beverage\":\"food\",Construction:\"construction\",Healthcare:\"healthcare\",\"Professional Services\":\"professional\",Manufacturing:\"manufacturing\",Transportation:\"transportation\",Technology:\"technology\"};// FICO pill label -> { num, band }. `num` is the representative cutoff used by\n// the client-side matching; `band` is the canonical string the server's\n// parseFico() (src/lib/doc-tiers.ts) maps to the SAME cutoff, so display labels\n// stay friendly while tiering is identical client- and server-side.\nconst FICO_BAND_MAP={\"720+ (Excellent)\":{num:720,band:\"720+\"},\"680 to 719 (Great)\":{num:680,band:\"680-720\"},\"600 to 679 (Good)\":{num:625,band:\"625-680\"},\"550 to 599 (OK)\":{num:550,band:\"550-625\"},\"549 or below (Not so good)\":{num:500,band:\"under 550\"}};// Read a FICO answer (pill label or free-text number) to a number for matching.\nfunction ficoNum(s){if(!s)return 0;const mapped=FICO_BAND_MAP[s];if(mapped)return mapped.num;const m=s.match(/\\d+/);return m?parseInt(m[0],10):0;}// Time-in-business chip -> conservative lower-bound months (for knockouts).\nfunction tenureToMonths(s){if(!s)return 0;const t=s.toLowerCase();if(t.indexOf(\"under\")!==-1)return 6;const m=t.match(/(\\d+)/);return m?parseInt(m[1],10)*12:0;}const INK=\"#191a1a\";const EMERALD=\"#22c55e\";// Frank's fee is ~3% of the loan amount. The borrower gets 5% of that fee back\n// -- the \"With Frank\" cash-back shown on the compare screen. So the amount back\n// = loan x FRANK_FEE_PCT x FRANK_REBATE_PCT (e.g. $10M loan -> $300k fee ->\n// $15k back).\nconst FRANK_FEE_PCT=.03;const FRANK_REBATE_PCT=.05;// The stage backdrop behind the white card. Transparent by default so the\n// widget sits flush on whatever the Framer page background is; set the\n// Background property control to override it with a flat colour.\nconst STAGE_BG=\"transparent\";// The card fills its Framer frame/section on desktop (full width + height, body\n// scrolls inside); on mobile it goes full bleed. No fixed card size any more --\n// size the widget by sizing its frame in Framer.\n// Card drop shadows: the desktop floating card, and a softer one for the mobile\n// card (only used when the mobileShadow prop is on).\nconst DESKTOP_SHADOW=\"0 24px 60px rgba(0,0,0,0.18)\";const MOBILE_SHADOW=\"0 10px 36px rgba(0,0,0,0.16)\";function parseMoney(s){if(!s)return 0;const digits=s.replace(/\\D/g,\"\");return digits?parseInt(digits,10):0;}function formatWithCommas(s){const digits=s.replace(/\\D/g,\"\");if(!digits)return\"\";return parseInt(digits,10).toLocaleString(\"en-US\");}function fmtMoney(n){return n.toLocaleString(\"en-US\",{style:\"currency\",currency:\"USD\",maximumFractionDigits:0});}// How a stored answer reads back in the saved conversation.\nfunction displayAnswer(q,raw){if(!raw)return\"\";if(q.type===\"money\")return\"$\"+formatWithCommas(raw);return raw;}function calcMonthly(principal,annualRate,months){if(months<=0)return 0;const r=annualRate/12;if(r===0)return principal/months;return principal*(r*Math.pow(1+r,months))/(Math.pow(1+r,months)-1);}const TIMELINE_DAYS={\"As soon as possible\":7,\"Within a month\":30,\"1-3 months\":90};// ===========================================================================\n// BORROWER TIER RANKING (Routing Logic spec)\n// ---------------------------------------------------------------------------\n// \"Questions drive tier. Tier drives docs.\" The 10-question Stage-1 intake\n// classifies the borrower into the HIGHEST achievable Frank routing tier; that\n// floor then gates which lenders they can actually be routed to (a Tier-3-credit\n// borrower can't reach the Tier-1 SBA banks, regardless of the numeric\n// knockouts). The tier is BACKEND/INTERNAL -- it's never shown to the borrower,\n// only used to order + filter the offer list. The server re-derives the same\n// tier from the seeded answers (src/lib/doc-tiers.ts classifyTier), so this is a\n// faithful mirror of the credit-ladder thresholds there.\n// ===========================================================================\n// Down-payment chip -> fraction of equity available.\nfunction downPct(label){const s=(label||\"\").toLowerCase();if(s.indexOf(\"20\")!==-1)return .2;if(s.indexOf(\"10\")!==-1)return .1;return 0;}// \"US citizens\" chip -> true; \"Green-card holders\" -> true (LPR); \"Neither\" ->\n// false. Unknown -> null (treated as pass, start-optimistic).\nfunction ownersCitizen(label){const s=(label||\"\").toLowerCase();if(!s)return null;if(s.indexOf(\"neither\")!==-1)return false;return true;}// Best general-ladder tier (1 best .. 5 alt) the borrower's CREDIT qualifies\n// for. Mirrors classifyTier()'s thresholds in src/lib/doc-tiers.ts. Tier 4\n// (collateral/asset finance) is NOT a credit rung -- it's reached via the use of\n// proceeds (useTrack), so it's handled separately in matchRates.\nfunction borrowerFloorTier(a){const fico=ficoNum(a.fico);const tib=tenureToMonths(a.timeInBusiness);const rev=parseMoney(a.monthlyRevenue)*12;const citizen=ownersCitizen(a.citizenship);const equity=downPct(a.downPayment);// SBA tiers (1 & 2) need a citizen/LPR majority. (An active MCA stack used to\n// block SBA here too -- the anti-MCA wedge -- but that's retired; the stack\n// is still captured for Frank's underwriting, it just no longer gates.)\nconst sbaOk=citizen!==false;if(tib>=24&&fico>=680&&rev>=25e4&&equity>=.1&&sbaOk)return 1;if(tib>=24&&fico>=660&&rev>=1e5&&sbaOk)return 2;if(tib>=12&&fico>=625&&rev>=1e5)return 3;return 5;}// The borrower's collateral / purpose track, from use-of-proceeds + loan type.\n// Used to (a) admit Tier-4 asset lenders whose `use` matches even when the\n// borrower's credit floor is higher, and (b) filter out lenders that plainly\n// don't fund this purpose. \"\" = no strong signal (don't filter on use).\nfunction useTrack(a){const t=(LOAN_TYPE_TAG[a.loanType||\"\"]||\"\").toLowerCase();if(t===\"invoice\")return\"invoice\";if(t===\"eq\")return\"equipment\";if(t===\"7a\"||t===\"504\")return\"sba\";const up=(a.useOfProceeds||\"\").toLowerCase();if(up.indexOf(\"equipment\")!==-1||up.indexOf(\"vehicle\")!==-1)return\"equipment\";if(up.indexOf(\"property\")!==-1||up.indexOf(\"real estate\")!==-1||up.indexOf(\"construction\")!==-1)return\"real-estate\";if(up.indexOf(\"working capital\")!==-1||up.indexOf(\"cash flow\")!==-1)return\"working-capital\";return\"\";}// Rank Frank's lender database against the answers: knockouts on loan size /\n// FICO / time-in-business / revenue, then the borrower's achievable tier floor\n// + use-of-proceeds track gate which lenders they can be routed to, ordered by\n// price with tier-preference weighting (Routing Logic Stages 1-4). Returns the\n// matches with human reasons + the eligible count.\nfunction matchRates(a,lenders){const amount=parseMoney(a.loanAmount);const months=parseInt(a.duration||\"\",10)||0;const fico=ficoNum(a.fico);const tib=tenureToMonths(a.timeInBusiness);const annualRev=parseMoney(a.monthlyRevenue)*12;const urgency=TIMELINE_DAYS[a.timeline||\"\"]||0;const typeTag=LOAN_TYPE_TAG[a.loanType||\"\"]||\"\";const indKey=INDUSTRY_KEY[a.industry||\"\"]||\"\";// Borrower's achievable credit tier (the floor) + collateral/purpose track.\nconst floor=borrowerFloorTier(a);const track=useTrack(a);// Only the genuine collateral tracks filter on a lender's `use` tags --\n// \"sba\"/\"working-capital\"/unknown are too broad to gate on.\nconst collateralTrack=track===\"equipment\"||track===\"real-estate\"||track===\"invoice\";// STAGE 1 -- KNOCKOUT FILTERS (numeric: loan size / FICO / TIB / revenue).\nconst passesKnockouts=L=>(!L.lo||amount===0||amount>=L.lo)&&(!L.hi||amount===0||amount<=L.hi)&&(!L.fico||fico===0||fico>=L.fico)&&(!L.tib||tib===0||tib>=L.tib)&&(!L.rev||annualRev===0||annualRev>=L.rev);// The lender funds this borrower's collateral/purpose track. Tier-4 asset\n// lenders (equipment / factoring / hard money) live or die by this.\nconst useMatch=L=>!collateralTrack||(L.use||[]).indexOf(track)!==-1;// TIER GATE -- the borrower can be routed to a lender at or below their\n// credit grade (L.t >= floor; higher number = lower grade). Tier-4 asset\n// lenders sit outside the credit ladder: they're reachable whenever the\n// collateral track matches, regardless of the credit floor.\nconst tierReachable=L=>L.t===4?collateralTrack&&useMatch(L):L.t>=floor;// A lender the borrower could actually be routed to (Stages 1-2 combined).\nconst eligible=L=>passesKnockouts(L)&&tierReachable(L)&&useMatch(L);const productMatch=L=>!typeTag||L.p.indexOf(typeTag)!==-1;const industryMatch=L=>!!indKey&&L.ind.indexOf(indKey)!==-1;const speedFits=L=>urgency>0&&L.sd>0&&L.sd<=urgency;// STAGE 3 -- TIER PREFERENCE WEIGHTING. Tier 1 (bank-rate/SBA) is the first\n// choice; each step down the ladder is discounted. Tier 4 only earns its\n// full weight when the use of proceeds is genuinely collateralized.\nconst tierMult=L=>{if(L.t===1)return 1;if(L.t===2)return .9;if(L.t===3)return .7;if(L.t===4)return collateralTrack?.9:.3;return .2// Tier 5 alt finance\n;};// STAGE 4 -- FIT SCORE: industry/product fit + speed + price, scaled by the\n// tier-preference weight. Used only as the tie-breaker behind price.\nconst score=L=>{let s=0;if(productMatch(L))s+=80;if(industryMatch(L))s+=60;else if(L.broad)s+=15;if(collateralTrack&&(L.use||[]).indexOf(track)!==-1)s+=40;if(urgency>0){if(speedFits(L))s+=50;else if(L.sd>urgency)s-=40;}if(L.apr)s+=Math.max(0,40-L.apr*100);return(s+100)*tierMult(L);};// Sort by best PRICE first (lowest APR), the weighted fit score as the\n// tie-breaker. Lenders with no published rate (\"Rate on request\") fall back.\nconst priceOf=L=>L.apr&&L.apr>0?L.apr:Infinity;const byPrice=(x,y)=>priceOf(x)-priceOf(y)||score(y)-score(x);// Every lender the borrower could be routed to is the \"of XXX offers\"\n// denominator. Relax gracefully so the list is never empty: full routing\n// first, then knockouts-only, then best-priced overall.\nlet ranked=lenders.filter(eligible).sort(byPrice);if(ranked.length===0)ranked=lenders.filter(passesKnockouts).sort(byPrice);if(ranked.length===0)ranked=lenders.slice().sort(byPrice).slice(0,5);const total=ranked.length;const termForCalc=months||60;// Map a generous window (the UI reveals these via \"See more\"); `total`\n// still reflects the full eligible count for the headline.\nconst matches=ranked.slice(0,MAX_MATCHES).map((L,i)=>({id:L.n+\"-\"+i,lender:L.n,category:L.c,tier:L.t,aprLow:L.apr,estMonthly:amount>0&&L.apr?calcMonthly(amount,L.apr,termForCalc):0,speed:L.spd||(L.sd>0?L.sd+(L.sd===1?\" day\":\" days\"):\"\"),reasons:buildReasons(L,a,{amount,fico,productMatch:productMatch(L),industryMatch:industryMatch(L),speedFits:speedFits(L)})}));return{matches,total};}// How many matches we ever materialize as cards (See more pages through these).\nconst MAX_MATCHES=30;// How many results are shown initially / per \"See more\" click.\nconst RESULTS_PAGE=5;// Max offers a visitor can select to compare side-by-side (more = unreadable).\nconst MAX_SELECT=5;const NEG_FLAG=/knockout|strict|shrunk|do not|avoid|inactive|blacklist|competitor|caution|\\bwatch\\b/i;function buildReasons(L,a,ctx){const r=[];if(ctx.productMatch&&LOAN_TYPE_TAG[a.loanType||\"\"])r.push(\"Offers \"+a.loanType.toLowerCase());if(ctx.industryMatch&&a.industry)r.push(\"Funds \"+a.industry.toLowerCase()+\" businesses\");if(ctx.speedFits)r.push(\"Funds within your timeline\");if(L.apr)r.push(\"Rates from \"+(L.apr*100).toFixed(1)+\"% APR\");if(L.lo&&L.hi&&ctx.amount>=L.lo&&ctx.amount<=L.hi)r.push(\"Funds \"+fmtMoney(L.lo)+\" \"+EMDASH+\" \"+fmtMoney(L.hi));if(L.fico&&ctx.fico&&ctx.fico>=L.fico)r.push(\"You meet the \"+L.fico+\"+ FICO\");if(L.spd&&r.length<4)r.push(L.spd);if(L.flag&&r.length<4&&!NEG_FLAG.test(L.flag))r.push(L.flag);return r.slice(0,4);}// ===========================================================================\n// EMBEDDED AGENT (Frank chat + \"Your application\" rail + documents)\n// ---------------------------------------------------------------------------\n// After results + the soft-register gate, the widget shows the Frank intake\n// agent inline -- a trimmed clone of the /sme/dashboard main card MINUS the top\n// nav. It drives the public widget endpoints with the anonToken minted on\n// Continue. Ported from framer/sme-widget.tsx; Check->RailCheck, Spinner->\n// AgentSpinner, green #10b981 -> RAIL_GREEN to avoid clashes with the flow above.\n// ===========================================================================\nconst RAIL_GREEN=\"#34d399\";// The silent first turn that kicks Frank's intake off after the two welcome\n// bubbles -- sent as the user's message but never rendered (filtered from the\n// live view and from history hydration). It tells Frank to OPEN from the first\n// genuine gap given everything already known (pre-screen answers + the uploaded\n// documents we've read), rather than a fixed opener -- so he never re-asks\n// something the documents already answered. One question at a time.\nconst AGENT_KICKOFF=\"No need to greet me or recap -- we've already said hi, you already have my pre-screen answers, and you've read the documents I uploaded. Look at what's still missing and ask me only the first thing you genuinely still need. Don't re-ask anything you already have from the pre-screen or my documents. One question at a time.\";// Agent surfaces (agent screens only): #f3f3f3 container gap, white chat/rail\n// panels floating on it, light-grey cards/bubbles/pills inside those panels.\nconst INNER_BG=\"#f2f3f5\";// The document-collection screen's upload slots (Process - Document\n// Collection). Frank reads whatever is uploaded server-side and pre-fills the\n// call sheet, so these are prompts, not strict categories -- the backend\n// classifies each file on its own. `key` is only used for per-slot UI state.\n// `cat` is the canonical attachment-category the slot maps to on the backend.\n// We send it with the upload so the file lands in the exact slot the user\n// chose -- the server trusts this over its own classifier (which otherwise\n// guessed, e.g. tagging a license BACK as a front).\nconst UPLOAD_DOCS=[{key:\"license-front\",title:\"Driver's License (front)\",hint:\"A clear photo of the front of your driver's license.\",cat:\"drivers-license-front\"},{key:\"license-back\",title:\"Driver's License (back)\",hint:\"A clear photo of the back of your driver's license.\",cat:\"drivers-license-back\"},{key:\"address\",title:\"Proof of address\",hint:\"A recent utility bill or bank statement.\",cat:\"proof-of-address\"},{key:\"bank\",title:\"Bank statements\",hint:\"We need your 3 most recent monthly statements.\",cat:\"bank-statements\"},{key:\"ein\",title:\"EIN / business tax ID\",hint:\"Your IRS EIN confirmation letter (CP-575).\",cat:\"ein-letter\"},{key:\"other\",title:\"Other documents\",hint:\"Anything else that supports your application.\",cat:\"misc\"}];const DOC_CATEGORIES=[{key:\"drivers-license-front\",title:\"Driver's License (front)\"},{key:\"drivers-license-back\",title:\"Driver's License (back)\"},{key:\"pfs\",title:\"Personal Financial Statement\"},{key:\"1919\",title:\"SBA Form 1919\"},{key:\"debt-schedule\",title:\"Debt Schedule\"},{key:\"ytd-pl\",title:\"Year-to-Date P&L\"},{key:\"ytd-bs\",title:\"Year-to-Date Balance Sheet\"},{key:\"personal-tax-returns\",title:\"Personal Tax Returns\"},{key:\"business-tax-returns\",title:\"Business Tax Returns\"},{key:\"use-of-proceeds\",title:\"Use of Proceeds\"},{key:\"resume\",title:\"Resume / Management Bio\"},{key:\"affiliate-worksheet\",title:\"Affiliate Worksheet\"},{key:\"website-overview\",title:\"Website or Company Overview\"},{key:\"bank-statements\",title:\"Bank Statements\"}];const APP_FIELDS=[{key:\"loanAmountNeeded\",label:\"Amount\",kind:\"currency\"},{key:\"loanPurpose\",label:\"Purpose\",kind:\"text\"},{key:\"companyName\",label:\"Company\",kind:\"text\"},{key:\"industry\",label:\"Industry\",kind:\"text\"},{key:\"yearsInBusiness\",label:\"Years\",kind:\"number\"},{key:\"employeeCount\",label:\"Employees\",kind:\"number\"},{key:\"annualRevenue\",label:\"Annual revenue\",kind:\"currency\"},{key:\"serviceArea\",label:\"Service area\",kind:\"text\"},{key:\"businessDescription\",label:\"Description\",kind:\"text\"}];// The deeper call-sheet sections Frank collects in chat (the loan-information\n// basics live in the APP_FIELDS profile card above). Keys + labels mirror the\n// backend CALL_SECTIONS public stack so the rail reflects what's stored.\nconst SECTIONS=[{key:\"eligibility\",title:\"Eligibility Screen\",fields:[{key:\"citizenStatus\",label:\"Immigration status\"},{key:\"ownership\",label:\"Ownership structure\"},{key:\"industryFlag\",label:\"Anything in a tricky industry? (cannabis, vape, gambling, firearms, payday, adult)\",yesno:true},{key:\"bkHistory\",label:\"Any bankruptcy, tax liens, or missed federal debt in the last 7 years?\",yesno:true},{key:\"criminal\",label:\"Anything on your record beyond traffic stuff?\",yesno:true}]},{key:\"business\",title:\"Your Business\",fields:[{key:\"entityType\",label:\"Entity type\"},{key:\"whatSell\",label:\"What do you sell?\"},{key:\"locations\",label:\"How many locations do you have?\"},{key:\"ownershipHist\",label:\"Has it always been the same business, or did it change along the way?\"},{key:\"onlinePhysical\",label:\"Is the business online or physical?\"},{key:\"seasonality\",label:\"Busy seasons - any months that carry the year?\"},{key:\"otherBiz\",label:\"Do you own a stake (20%+) in any other business?\",yesno:true}]},{key:\"useOfFunds\",title:\"Use of Funds\",fields:[{key:\"breakdown\",label:\"Walk us through the spend, dollar by dollar\"},{key:\"newLocations\",label:\"New locations - how many, where, lease or buy?\"},{key:\"realEstatePurch\",label:\"Buying property? Address, price, appraisal, timeline?\"},{key:\"buildout\",label:\"Build-out or leasehold improvements?\"},{key:\"inventory\",label:\"Stocking up on inventory - how much, and what are the supplier terms?\"},{key:\"equipment\",label:\"Equipment - POS, signage, vehicles, anything else?\"},{key:\"hiring\",label:\"Hiring or covering payroll while you ramp?\"},{key:\"marketing\",label:\"Marketing push - launch or ongoing spend?\"},{key:\"acquisition\",label:\"Buying out a competitor or store?\"},{key:\"debtRefi\",label:\"Refinancing existing debt - what rolls into this?\"}]},{key:\"collateral\",title:\"Property & Collateral\",fields:[{key:\"propertyAddr\",label:\"Business property - address and year bought\"},{key:\"purchasePrice\",label:\"What did you pay for it?\"},{key:\"appraisalVal\",label:\"What's it worth today?\"},{key:\"mortgageLender\",label:\"Mortgage details - lender, balance, payment, rate, years left\"},{key:\"equity\",label:\"Roughly how much equity is in it?\"},{key:\"ownershipEntity\",label:\"Held personally, or by the business?\"},{key:\"otherRE\",label:\"Any other property - home, rentals, investment?\"},{key:\"otherAssets\",label:\"Anything else of value - stocks, retirement, cash, vehicles?\"}]},{key:\"financials\",title:\"Financials\",fields:[{key:\"grossMargin\",label:\"Roughly what's your gross margin?\"},{key:\"ytdTrend\",label:\"Year-to-date vs last year - up, flat, or down?\"},{key:\"ownerDraw\",label:\"How do you pay yourself - owner draw or W-2?\"},{key:\"cashOnHand\",label:\"Cash on hand - business and personal\"},{key:\"inventoryVal\",label:\"How much inventory is sitting on the shelves?\"},{key:\"arAp\",label:\"AR and AP - anything aged out?\"}]},{key:\"debt\",title:\"Existing Debt\",fields:[{key:\"largestLender\",label:\"Largest debt - lender\"},{key:\"largestBalance\",label:\"Largest debt - current balance\"},{key:\"largestPayment\",label:\"Largest debt - monthly payment\"},{key:\"largestRate\",label:\"Largest debt - interest rate\"},{key:\"totalMonthly\",label:\"Total monthly debt service\"},{key:\"termLoans\",label:\"Any term loans on the business?\"},{key:\"loc\",label:\"Lines of credit - what's drawn right now?\"},{key:\"equipLease\",label:\"Equipment leases or financing?\"},{key:\"bizCards\",label:\"Business cards - total balance?\"},{key:\"floorPlan\",label:\"Floor plan or inventory financing with a distributor?\"},{key:\"uccs\",label:\"Any open liens or UCCs?\"},{key:\"personalDebt\",label:\"Personal debt - mortgage, cars, student loans, cards over 30%?\"},{key:\"taxDebt\",label:\"Any outstanding tax debt - federal, state, or sales?\"}]},{key:\"banking\",title:\"Banking\",fields:[{key:\"bankName\",label:\"Who's your business bank, and how long have you been with them?\"},{key:\"avgBalance\",label:\"Average daily balance?\"},{key:\"nsf\",label:\"Any overdrafts in the last 6 months?\",yesno:true}]},{key:\"credit\",title:\"Credit & Decision\",fields:[{key:\"priorSba\",label:\"Any prior SBA loans - current balance, still on time?\"},{key:\"fedEmployment\",label:\"Any federal employment history - you or anyone in the household?\",yesno:true},{key:\"deadline\",label:\"Hard deadline?\"},{key:\"decisionMaker\",label:\"Who makes the final call?\"}]}];function uid(){return Math.random().toString(36).slice(2)+Date.now().toString(36);}// True when a typed message is JUST a phone number (so we can quietly save it\n// after Frank offers the call-back) -- 7-15 digits and only phone characters,\n// which keeps revenue/amount figures inside a sentence from matching.\nfunction looksLikePhone(s){const t=s.trim();if(!/^[\\d\\s()+.\\-]+$/.test(t))return false;const digits=t.replace(/\\D/g,\"\").length;return digits>=7&&digits<=15;}function parseProfilePayload(prof){const fields={};if(prof&&typeof prof===\"object\"){for(const f of APP_FIELDS){const v=prof[f.key];if(v!==undefined&&v!==null&&v!==\"\"&&v!==0)fields[f.key]=v;}}let sheet={};try{const ans=prof&&prof.businessPlan&&prof.businessPlan.answers?JSON.parse(prof.businessPlan.answers):{};if(ans&&typeof ans._callSheet===\"object\"&&ans._callSheet)sheet=ans._callSheet;}catch(e){/* ignore malformed answers */}// Back-fill the \"Loan information\" card from the call-sheet loanInfo section\n// when a profile column is empty. loanInfo is where document extraction (and\n// the chat) write, so this keeps the rail aligned with what was uploaded --\n// and with the admin profile's Loan Information section.\nconst loanInfo=sheet.loanInfo||{};const LOANINFO_FALLBACK={loanAmountNeeded:\"loanAmount\",loanPurpose:\"purpose\",companyName:\"legalName\",industry:\"industry\",yearsInBusiness:\"timeInBiz\",employeeCount:\"employees\",serviceArea:\"serviceArea\",businessDescription:\"description\"};for(const f of APP_FIELDS){if(fields[f.key]!==undefined&&fields[f.key]!==\"\")continue;const src=LOANINFO_FALLBACK[f.key];const v=src?(loanInfo[src]||\"\").trim():\"\";if(v)fields[f.key]=v;}// Per-document completion % (0-100) keyed by category -- 100 once an\n// uploaded file is on file for that category.\nconst docPct=prof&&typeof prof.docCompletion===\"object\"&&prof.docCompletion?prof.docCompletion:{};// Server-driven document checklist. The backend decides which docs this\n// borrower needs and returns ONLY that list -- the classification behind\n// it (tier, rate band, routing reasons) never leaves the server, so the\n// widget has no idea any tiering exists. Falls back to the full static\n// list if the API omits it.\nlet docSet=[];if(prof&&Array.isArray(prof.docSet)){docSet=prof.docSet.map(d=>({key:String(d.key),title:String(d.title)}));}// Matched lenders, each with the documents its tier requires (rendered as a\n// checklist under that lender) plus a readiness bar. The tier behind the doc\n// list stays server-side.\nlet providers=[];if(prof&&Array.isArray(prof.providers)){providers=prof.providers.map(p=>{const docs=Array.isArray(p.docs)?p.docs.map(d=>({key:String(d.key??\"\"),title:String(d.title??\"\"),pct:Number(d.pct)||0})):[];return{lender:String(p.lender??\"\"),category:String(p.category??\"\"),docs,docTotal:Number(p.docTotal)||docs.length,docProgress:Number(p.docProgress)||0,sentAt:p.sentAt?String(p.sentAt):null};});}// Which call-sheet sections actually count for this borrower's tier. The\n// server scopes a Tier 5 (alt finance / MCA) borrower down to a handful of\n// sections, so the rail's progress + per-lender readiness should only weigh\n// those. null/absent = the full call sheet (Tiers 1-4).\nconst activeSections=prof&&Array.isArray(prof.activeSections)?prof.activeSections.map(s=>String(s)):null;const hasPhone=!!(prof&&prof.hasPhone);return{fields,sheet,docPct,docSet,providers,activeSections,hasPhone};}// Frank's opening line in the embedded agent -- recaps what onboarding already\n// captured so it's clear those questions are done and won't be re-asked.\nfunction buildAgentGreeting(a,botName){const parts=[];const amount=parseMoney(a.loanAmount);const isProduct=!!LOAN_TYPE_TAG[a.loanType||\"\"];if(amount>0){const product=isProduct?a.loanType.toLowerCase():\"financing\";parts.push(\"about \"+fmtMoney(amount)+\" in \"+product);}if(a.industry)parts.push(\"for a \"+a.industry.toLowerCase()+\" business\");const rev=parseMoney(a.monthlyRevenue);if(rev>0)parts.push(\"around \"+fmtMoney(rev)+\"/mo in revenue\");if(a.timeInBusiness)parts.push((a.timeInBusiness||\"\").toLowerCase()+\" in business\");let intro;if(!isProduct&&(a.loanType||\"\").trim()){intro=\"Got it \"+EMDASH+' you told me: \"'+a.loanType.trim()+'.\"';}else if(parts.length){intro=\"Got it \"+EMDASH+\" I've got \"+parts.join(\", \")+\".\";}else{intro=\"Hey \"+EMDASH+\" I'm \"+botName+\".\";}return intro+\" I won't re-ask those. Tell me a bit more about the deal and I'll take it from there.\";}// Freeze the page scroll while a field is focused. The widget lives in a\n// scrollable host page; when a text field is tapped, iOS/WebKit scrolls the\n// WHOLE page to bring the input \"into view\" and over-shoots, yanking the widget\n// to the top of the screen. We capture the scroll position on focusin (BEFORE\n// the browser moves anything) and force it straight back on every scroll, plus\n// a few re-asserts across the keyboard's open animation (it scrolls ~300ms in).\n// No position:fixed / height changes -- nothing that could collapse the layout.\nfunction usePinScrollOnFocus(enabled){useEffect(()=>{if(!enabled||typeof document===\"undefined\")return;let y0=0;let active=false;const timers=[];const scrollY=()=>window.scrollY||document.documentElement.scrollTop||0;const pin=()=>{if(active&&Math.abs(scrollY()-y0)>1)window.scrollTo(0,y0);};const isField=el=>{const t=el;return!!t&&(t.tagName===\"INPUT\"||t.tagName===\"TEXTAREA\");};const onFocusIn=e=>{if(!isField(e.target))return;y0=scrollY();active=true;timers.forEach(t=>window.clearTimeout(t));timers.length=0;[0,50,100,200,300,450,600].forEach(ms=>timers.push(window.setTimeout(pin,ms)));// Release the pin once the keyboard has finished opening, so the\n// borrower can scroll the chat freely while the field stays focused.\n// (Without this, the scroll listener reverts EVERY scroll and the\n// view feels frozen while typing.)\ntimers.push(window.setTimeout(()=>active=false,750));};const onFocusOut=()=>{active=false;timers.forEach(t=>window.clearTimeout(t));timers.length=0;};document.addEventListener(\"focusin\",onFocusIn);document.addEventListener(\"focusout\",onFocusOut);window.addEventListener(\"scroll\",pin,{passive:true});return()=>{document.removeEventListener(\"focusin\",onFocusIn);document.removeEventListener(\"focusout\",onFocusOut);window.removeEventListener(\"scroll\",pin);timers.forEach(t=>window.clearTimeout(t));};},[enabled]);}// Track the VISUAL viewport (height + top offset) for the mobile fullscreen\n// takeover. iOS doesn't resize the layout viewport when the keyboard opens -- it\n// just overlays it -- so a position:fixed; inset:0 layer would hide its bottom\n// input behind the keyboard. We return `top` (visualViewport.offsetTop) and\n// `bottomGap` (the px between the visual-viewport bottom and the layout-viewport\n// bottom -- i.e. the keyboard's height when open, else 0). The caller anchors the\n// fixed layer with top + bottom (NOT a viewport-unit height): both insets are\n// relative to the same containing block, so it stays correct even inside a\n// Framer wrapper that has a transform (where viewport units like 100dvh would\n// mismatch `top` and overflow the bottom). Returns null when disabled/unsupported.\nfunction useVisualViewportBox(enabled){const[box,setBox]=useState(null);useEffect(()=>{if(!enabled||typeof window===\"undefined\"){setBox(null);return;}const vv=window.visualViewport;if(!vv){setBox(null);return;}const update=()=>{const innerH=window.innerHeight||vv.height;setBox({top:vv.offsetTop,bottomGap:Math.max(0,innerH-vv.offsetTop-vv.height)});};update();vv.addEventListener(\"resize\",update);vv.addEventListener(\"scroll\",update);return()=>{vv.removeEventListener(\"resize\",update);vv.removeEventListener(\"scroll\",update);};},[enabled]);return box;}// Card drop shadow. The green/red flash-on-progress effect was removed, so this\n// just returns the static base shadow plus a no-op `flash` (kept so the call\n// sites don't need to change).\nfunction useShadowFlash(base){const flash=useCallback(_c=>{},[]);return{shadow:base,flash};}export default function FrankOnboardingChat(props){const apiBaseUrl=(props.apiBaseUrl||\"https://frank-snowy-pi.vercel.app\").replace(/\\/$/,\"\");const botName=props.botName||\"Frank\";const cardBackground=props.cardBackground||\"#ffffff\";// Empty (or unset) = the default gradient; a chosen colour overrides flat.\nconst stageBg=props.stageBackground||STAGE_BG;const accentColor=props.accentColor||INK;const fontFamily=props.fontFamily||\"'TT Commons', system-ui, -apple-system, sans-serif\";const durations=props.durations&&props.durations.length?props.durations:[12,24,36,48,60];// px reserved at the top of the mobile takeover for the site's pinned nav\n// bar. Defaults to 64 (our nav height); set the prop to 0 for full screen.\nconst mobileNavHeight=typeof props.mobileNavHeight===\"number\"&&props.mobileNavHeight>=0?props.mobileNavHeight:64;// Mobile card corner radius (desktop is always 36) + whether the mobile\n// card carries a drop shadow. Threaded into every phase's card.\nconst mobileCornerRadius=typeof props.mobileCornerRadius===\"number\"&&props.mobileCornerRadius>=0?props.mobileCornerRadius:24;const desktopCornerRadius=typeof props.desktopCornerRadius===\"number\"&&props.desktopCornerRadius>=0?props.desktopCornerRadius:36;const mobileShadow=props.mobileShadow!==false;const mobileHeight=typeof props.mobileHeight===\"number\"&&props.mobileHeight>0?props.mobileHeight:0;// z-index of the fullscreen takeover layer (kept below the site nav so the\n// main menu can open in front of it).\nconst takeoverZIndex=typeof props.takeoverZIndex===\"number\"&&props.takeoverZIndex>=0?props.takeoverZIndex:100;// The qualifying questions. Tap-to-answer (pill) questions come first, then\n// the typed inputs -- a faster, lower-friction start.\nconst QUESTIONS=[{key:\"timeInBusiness\",type:\"select\",q:\"How long have you been in business?\",sub:\"Tap an option to get matched with over 500 banks.\",options:[\"Under 1 year\",\"1-2 years\",\"2-5 years\",\"5-10 years\",\"10+ years\"]},{key:\"industry\",type:\"select\",q:\"What industry are you in?\",options:[\"Retail\",\"Food & Beverage\",\"Construction\",\"Healthcare\",\"Professional Services\",\"Manufacturing\",\"Transportation\",\"Technology\"]},{// Use of proceeds -- drives the financing track + which deal-specific\n// documents Frank asks for later (acquisition / CRE / equipment /\n// refi add-ons). Seeded into the call sheet's useOfFunds.breakdown\n// and (as the loan purpose) loanInfo.purpose. Doubles as the old\n// loanType signal now that the separate financing-type question is\n// gone -- \"Other\" lets Frank infer the product from a free-text note.\nkey:\"useOfProceeds\",type:\"select\",q:\"What's the money for?\",options:[\"Working capital / cash flow\",\"Equipment or vehicles\",\"Buying commercial property\",\"Buying a business\",\"Refinancing existing debt\",\"Construction or build-out\",\"Starting up\",\"Something else\"]},{key:\"timeline\",type:\"select\",q:\"When do you need the money?\",options:[\"As soon as possible\",\"Within a month\",\"1-3 months\"]},{key:\"duration\",type:\"select\",q:\"Over what kind of term?\",options:durations.map(d=>d+\" month\"+(d!==1?\"s\":\"\"))},{// Existing MCA / daily-or-weekly ACH stack -- knocks out SBA tiers\n// (SBA can't refi MCA, stacking is a red flag) and triggers a refi\n// pitch. Seeded to the call sheet's debt.mca field.\nkey:\"mcaStack\",type:\"select\",q:\"Any merchant cash advances or daily/weekly loan payments right now?\",options:[\"No\",\"Yes\"]},{// Citizenship of the 51%+ owners -- SBA eligibility (US citizen / LPR\n// required, strengthened 2025). Seeded to eligibility.citizenStatus\n// (\"US Citizen\" / \"Green Card Holder\" / \"Neither\").\nkey:\"citizenship\",type:\"select\",q:\"Are the majority owners US citizens or permanent residents?\",options:[\"US citizens\",\"Green-card holders\",\"Neither\"]},{key:\"fico\",type:\"select\",q:\"What's your credit score?\",sub:\"OK to guess.\",options:[\"720+ (Excellent)\",\"680 to 719 (Great)\",\"600 to 679 (Good)\",\"550 to 599 (OK)\",\"549 or below (Not so good)\"]},// --- Typed (keyboard) questions last, after all the tap-pill ones, so\n// the funnel opens with the fastest, lowest-friction taps. ---\n{key:\"loanAmount\",type:\"money\",q:\"How much are you looking to borrow?\",placeholder:\"0\",slider:{min:1e3,max:5e6,step:1e3,money:true,pivot:{value:5e5,pos:.8}},validate:v=>parseMoney(v)>0,err:\"Pop in an amount to keep going.\"},{key:\"monthlyRevenue\",type:\"money\",q:\"Roughly what's your monthly revenue?\",placeholder:\"0\",slider:{min:1e3,max:1e6,step:1e3,money:true,pivot:{value:1e5,pos:.8,step:1e5}},validate:v=>parseMoney(v)>0,err:\"A rough monthly figure is perfect.\"},{// Free-text company name -- the last question before results. Carried\n// in the seed as companyName (-> SMEProfile.companyName) and pushed to\n// HubSpot as the contact's Company.\nkey:\"companyName\",type:\"text\",q:\"What is the name of your company?\",placeholder:\"e.g. Acme Plumbing LLC\",validate:v=>v.trim().length>0,err:\"Pop in your company name to keep going.\"}];const total=QUESTIONS.length;const rootRef=useRef(null);const scrollRef=useRef(null);const timersRef=useRef([]);// Seed from the real viewport so the FIRST render is already mobile-correct\n// on a phone. Otherwise it renders the desktop layout (height:100% + filler)\n// for a frame, which collapses inside a Framer \"Height = Fit\" frame (the\n// component never recovers its proper content height).\nconst[width,setWidth]=useState(()=>typeof window!==\"undefined\"&&window.innerWidth?window.innerWidth:720);const[stepIndex,setStepIndex]=useState(0);// True until the first answer is submitted -- gates the one-time welcome\n// intro (the \"Hi, we're Frank\" headline + blurb shown above the first\n// question) and its long staggered delays, so navigating back to step 0\n// later shows the question normally without replaying the intro.\nconst[introActive,setIntroActive]=useState(true);const[answers,setAnswers]=useState({});const[draft,setDraft]=useState(\"\");const[error,setError]=useState(\"\");// Set when the visitor picks \"Other\" on a select step -> show a text field.\nconst[otherMode,setOtherMode]=useState(false);const[phase,setPhase]=useState(\"asking\");const[matches,setMatches]=useState([]);// Total eligible offers (the \"of XXX offers\" denominator); `matches` only\n// holds the materialized window the cards page through.\nconst[totalOffers,setTotalOffers]=useState(0);// Offers the visitor has tapped to apply for (by match id).\nconst[selectedIds,setSelectedIds]=useState([]);// Snapshot of the offers carried into the compare screen -- the columns are\n// stable here (selectedIds toggles which stay checked without removing a\n// column). All start checked (pre-selected on load).\nconst[compareIds,setCompareIds]=useState([]);// How many result cards are currently revealed (\"See more\" grows this).\nconst[visibleCount,setVisibleCount]=useState(RESULTS_PAGE);const[bodyH,setBodyH]=useState(0);// Anonymous account minted on Continue (seeded with the answers); the\n// embedded agent drives the public widget endpoints with this token. Seeded\n// from a prior session's token so re-entry reuses that account (the backend\n// updates it instead of minting a second \"incomplete\" one).\nconst[anonToken,setAnonToken]=useState(()=>{try{return window.localStorage.getItem(STORAGE_KEY);}catch(e){return null;}});const[seeding,setSeeding]=useState(false);const[seedError,setSeedError]=useState(\"\");// Contact captured at the soft-register gate -> prefilled into the later\n// full-claim (password) gate inside the agent.\nconst[contact,setContact]=useState({name:\"\",email:\"\"});// One-time auto-login URL returned by register (password set) -> lets the\n// agent's upload/submit steps graduate to the real workspace.\nconst[loginUrl,setLoginUrl]=useState(null);// Sign-up (soft-register) gate fields. Folded into the main render so the\n// sign-up step shares the SAME coloured stage + white card as every other\n// step (it used to be a separate RegisterGate component with its own stage,\n// which kept diverging -- the green background went missing on this step).\nconst[regFirstName,setRegFirstName]=useState(\"\");const[regLastName,setRegLastName]=useState(\"\");const[regEmail,setRegEmail]=useState(\"\");const[regPhone,setRegPhone]=useState(\"\");const[regPassword,setRegPassword]=useState(\"\");const[regConfirm,setRegConfirm]=useState(\"\");// Show/hide both password fields so the visitor can check they match.\nconst[showPw,setShowPw]=useState(false);const[regBusy,setRegBusy]=useState(false);const[regError,setRegError]=useState(null);// The sign-up gate is its own full-card step (phase \"register\"), reached\n// from the compare screen's Continue -- same size as every other step, no\n// modal / scrim.\n// Lender database, fetched from the API at runtime (no longer embedded in\n// this file -- the literal was too large for Framer to bundle).\nconst lendersRef=useRef([]);const[lenderCount,setLenderCount]=useState(0);const loadLenders=useCallback(async()=>{if(lendersRef.current.length)return lendersRef.current;try{const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/lenders\");const data=await r.json().catch(()=>null);if(Array.isArray(data)&&data.length){lendersRef.current=data;setLenderCount(data.length);return data;}}catch(e){/* ignore -- matching falls back to whatever's loaded */}return lendersRef.current;},[apiBaseUrl]);// Preload the lender DB so it's ready by the time the questions are done.\nuseEffect(()=>{void loadLenders();},[loadLenders]);const isMobile=width<560;// Card drop-shadow flash: green when the borrower moves to the next screen,\n// red on an error.\nconst{shadow:cardShadow,flash:flashCard}=useShadowFlash(isMobile?mobileShadow?MOBILE_SHADOW:\"none\":DESKTOP_SHADOW);useEffect(()=>{flashCard(\"green\");},[stepIndex,phase,flashCard]);useEffect(()=>{if(error||seedError||regError)flashCard(\"red\");},[error,seedError,regError,flashCard]);// ACTUAL phone vs. just-a-narrow-widget. `isMobile` is the component's\n// measured WIDTH and only drives responsive LAYOUT -- so a narrow embed on a\n// desktop page still gets the compact layout. The fullscreen takeover and\n// the scroll-pin below, however, must NEVER fire on desktop, so they gate on\n// `isPhone`: a small REAL viewport with a coarse (touch) pointer. A desktop\n// (fine pointer) is never locked, no matter how narrow the widget is.\nconst[isPhone,setIsPhone]=useState(()=>{if(typeof window===\"undefined\")return false;const coarse=typeof window.matchMedia===\"function\"&&window.matchMedia(\"(pointer: coarse)\").matches;return window.innerWidth<560&&coarse;});useEffect(()=>{if(typeof window===\"undefined\")return;const update=()=>{const coarse=typeof window.matchMedia===\"function\"&&window.matchMedia(\"(pointer: coarse)\").matches;setIsPhone(window.innerWidth<560&&coarse);};update();window.addEventListener(\"resize\",update);return()=>window.removeEventListener(\"resize\",update);},[]);// Phone-only fullscreen takeover: once the visitor ENGAGES (answers the\n// first question) the funnel lifts out of the page flow into a fixed\n// full-viewport layer that owns the screen until they finish. Desktop is\n// never affected (gated on isPhone) and we never lock document.body (that\n// collapsed Framer's wrappers before) -- the in-flow slot just goes to ~0\n// while the real UI floats above it.\nconst[engaged,setEngaged]=useState(false);// The visitor can minimise the fullscreen takeover (via the corner button)\n// to drop back to the inline card and scroll the page again.\nconst[minimized,setMinimized]=useState(false);// Phone-only fullscreen takeover: once the visitor answers the first\n// question (engaged) the funnel lifts into a fixed full-viewport layer that\n// owns the screen, until they minimise it. Desktop is never affected.\nconst takeover=isPhone&&engaged&&!minimized;// Fill the available height whenever we're NOT a compact inline mobile card\n// (desktop, or mobile mid-takeover). Drives height:100% vs auto throughout.\nconst fillH=!isMobile||takeover;// Fixed-size inline mobile card -- but NOT during the takeover (then it\n// fills the fullscreen layer instead of staying at mobileHeight).\nconst mobileFixed=isMobile&&mobileHeight>0&&!takeover;// In the mobile fullscreen takeover, ONLY the text/body section gets a\n// light-grey panel (not the card, progress bar, or pills) so the question\n// reads as a distinct \"active\" surface. Dark text contrasts fine on it.\nconst greyText=takeover&&(phase===\"asking\"||phase===\"searching\");const ACTIVE_GREY=\"#f2f3f5\";// Keep the fixed takeover layer glued to the visible viewport as the iOS\n// keyboard opens (so the bottom input never hides behind it).\nconst vpBox=useVisualViewportBox(takeover);// Stop the host page from yanking the widget to the top when a field is\n// focused on a phone. Not needed in takeover -- the fixed layer can't be\n// scrolled away -- and it would fight the visualViewport tracking. Phone\n// only: on desktop this would pin the page scroll and feel like a lock.\nusePinScrollOnFocus(isPhone&&!takeover);// Wrap a phase's UI in the fixed full-viewport layer while in takeover; pass\n// it through untouched otherwise. The 0-height placeholder holds the in-flow\n// slot so nothing in the host page jumps as the real UI lifts out.\nconst shell=node=>takeover?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{width:\"100%\",height:0}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",left:0,right:0,// Full-viewport takeover. Anchor top + bottom (NOT a\n    // viewport-unit height) to the visible viewport so the\n    // bottom input stays above the keyboard when it opens;\n    // both insets share the containing block, so it can't\n    // overflow even inside a transformed Framer wrapper.\n    // mobileNavHeight reserves space at the top so the\n    // takeover starts BELOW the site nav (nav stays visible +\n    // tappable, and its menu opens unobstructed). 0 = cover\n    // the whole screen.\n    top:(vpBox?vpBox.top:0)+mobileNavHeight,bottom:vpBox?vpBox.bottomGap:0,zIndex:takeoverZIndex,display:\"flex\",flexDirection:\"column\",overflow:\"hidden\",// Match the card so the takeover reads as one surface.\n    background:cardBackground,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flexShrink:0,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:12,padding:\"12px 16px\",background:cardBackground,// Divider line straight into the grey section below.\n    borderBottom:\"1px solid rgba(0,0,0,0.10)\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flexShrink:0,display:\"flex\",alignItems:\"center\",gap:8},children:[/*#__PURE__*/_jsx(FrankMark,{size:22,color:INK}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:16,letterSpacing:1.5,color:INK,fontFamily},children:\"FRANK\"})]}),(phase===\"asking\"||phase===\"searching\")&&!introActive&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:1,height:6,background:\"rgba(0,0,0,0.07)\",borderRadius:9999,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{height:\"100%\",width:progressPct+\"%\",background:accentColor,borderRadius:9999,transition:\"width 0.45s ease\"}})}),/*#__PURE__*/_jsx(\"span\",{style:{...eyebrowStyle,whiteSpace:\"nowrap\",color:\"rgba(0,0,0,0.45)\"},children:phase===\"asking\"?\"Q\"+(stepIndex+1)+\" / \"+total:\"Done\"}),phase===\"asking\"&&(stepIndex>0||otherMode)&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:goBack,style:{background:\"none\",border:\"none\",fontSize:11,fontWeight:600,letterSpacing:.6,textTransform:\"uppercase\",color:\"rgba(0,0,0,0.45)\",cursor:\"pointer\",padding:0,fontFamily:\"inherit\",whiteSpace:\"nowrap\"},children:otherMode?\"List\":\"Back\"})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setMinimized(true),\"aria-label\":\"Close\",title:\"Close\",style:{flexShrink:0,width:36,height:36,borderRadius:9999,border:\"none\",cursor:\"pointer\",background:\"rgba(0,0,0,0.06)\",color:INK,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:0},children:/*#__PURE__*/_jsx(RemoveX,{})})]}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minHeight:0,display:\"flex\"},children:node})]})]}):node;useEffect(()=>{const el=rootRef.current;if(!el)return;const ro=new ResizeObserver(entries=>{for(const e of entries)setWidth(e.contentRect.width);});ro.observe(el);setWidth(el.getBoundingClientRect().width);return()=>ro.disconnect();},[]);useEffect(()=>{return()=>{timersRef.current.forEach(t=>clearTimeout(t));timersRef.current=[];};},[]);// Track the visible body height so we can hold ~30% empty space below the\n// current question (keeps it from crowding the input as the chat grows).\nuseEffect(()=>{const el=scrollRef.current;if(!el)return;const ro=new ResizeObserver(entries=>{for(const e of entries)setBodyH(e.contentRect.height);});ro.observe(el);setBodyH(el.clientHeight);return()=>ro.disconnect();},[]);// While asking, glide the latest question to the bottom as the saved\n// conversation grows. The FIRST step (the welcome intro) stays pinned to the\n// top so it reads from \"Hi, we're Frank\" down. On searching/results, glide\n// to the top so the offers are read from the first one. Runs after paint so\n// the new content is laid out, and uses smooth scrolling so it isn't jerky.\nuseEffect(()=>{const el=scrollRef.current;if(!el)return;const id=window.requestAnimationFrame(()=>{const top=phase===\"asking\"&&stepIndex>0?el.scrollHeight:0;try{el.scrollTo({top,behavior:\"smooth\"});}catch(e){el.scrollTop=top;}});return()=>window.cancelAnimationFrame(id);},[stepIndex,phase]);// When the keyboard opens on mobile (a field is focused) glide the saved\n// conversation to the bottom so the current question sits just above the\n// input instead of being stranded above the keyboard. Re-asserts a few times\n// across the keyboard's open animation. Pre-agent steps only (this component).\nuseEffect(()=>{if(!isMobile||typeof document===\"undefined\")return;const toBottom=()=>{const el=scrollRef.current;if(!el)return;try{el.scrollTo({top:el.scrollHeight,behavior:\"smooth\"});}catch(e){el.scrollTop=el.scrollHeight;}};const onFocusIn=e=>{const t=e.target;if(!t||t.tagName!==\"INPUT\"&&t.tagName!==\"TEXTAREA\")return;[120,280,450,650].forEach(ms=>window.setTimeout(toBottom,ms));};document.addEventListener(\"focusin\",onFocusIn);return()=>document.removeEventListener(\"focusin\",onFocusIn);},[isMobile]);const current=stepIndex<total?QUESTIONS[stepIndex]:null;const buildSeed=(a,m)=>{// \"What's the money for?\" is now the single purpose signal (the separate\n// financing-type question is gone). Standard chips read as the purpose;\n// a free-text \"Something else\" answer is also carried as the business\n// description so Frank has the narrative.\nconst useProceeds=(a.useOfProceeds||\"\").trim();const isStdProceeds=[\"Working capital / cash flow\",\"Equipment or vehicles\",\"Buying commercial property\",\"Buying a business\",\"Refinancing existing debt\",\"Construction or build-out\",\"Starting up\"].indexOf(useProceeds)!==-1;return{// Canonical keys the /agent seed endpoint persists.\namountNeeded:String(parseMoney(a.loanAmount)||\"\"),// Send the canonical FICO band string so the server's parseFico maps it\n// to the same cutoff the widget used (else the pill label could mis-band).\ncreditScore:FICO_BAND_MAP[a.fico||\"\"]?.band||(a.fico||\"\").trim(),// Extras carried along intact.\nloanType:\"\",businessDescription:isStdProceeds?\"\":useProceeds,duration:a.duration||\"\",timeInBusiness:(a.timeInBusiness||\"\").trim(),companyName:(a.companyName||\"\").trim(),industry:(a.industry||\"\").trim(),revenue:String(parseMoney(a.monthlyRevenue)*12||\"\"),timeline:a.timeline||\"\",// Tier-driving Stage-1 answers -> the server re-derives the borrower's\n// tier (and thus the doc set + questions) from these. Raw chip labels;\n// the seed endpoint maps them onto the call-sheet vocabulary.\nuseOfProceeds:useProceeds,mcaStack:(a.mcaStack||\"\").trim(),citizenship:(a.citizenship||\"\").trim(),// The top lender matches Frank presented, saved as account context.\nmatches:(m||[]).map(x=>({lender:x.lender,category:x.category,tier:x.tier,aprLow:x.aprLow,estMonthly:x.estMonthly,reasons:x.reasons}))};};const startSearch=useCallback(async finalAnswers=>{setPhase(\"searching\");// Make sure the lender DB is loaded (usually already preloaded).\nconst lenders=await loadLenders();const t=window.setTimeout(()=>{const res=matchRates(finalAnswers,lenders);setMatches(res.matches);setTotalOffers(res.total);setSelectedIds([]);setVisibleCount(RESULTS_PAGE);setPhase(\"results\");},1700);timersRef.current.push(t);},[loadLenders]);const submitAnswer=useCallback(rawValue=>{if(phase!==\"asking\"||!current)return;const value=current.type===\"money\"?formatWithCommas(rawValue):rawValue.trim();if(current.validate&&!current.validate(value)){setError(current.err||\"That doesn't look right.\");return;}setError(\"\");// First answer = the visitor has engaged -> trigger the mobile\n// fullscreen takeover for the rest of the funnel, and retire the\n// one-time welcome intro.\nsetEngaged(true);setIntroActive(false);const nextAnswers={...answers,[current.key]:value};setAnswers(nextAnswers);setDraft(\"\");setOtherMode(false);const ni=stepIndex+1;if(ni<total){setStepIndex(ni);}else{setStepIndex(ni);startSearch(nextAnswers);}},[phase,current,answers,stepIndex,total,startSearch]);const goBack=useCallback(()=>{setError(\"\");// \"Other\" text entry -> step back to the option pills first.\nif(otherMode){setOtherMode(false);setDraft(\"\");return;}if(stepIndex===0)return;setStepIndex(s=>s-1);setDraft(\"\");},[stepIndex,otherMode]);// Continue from the results screen: mint the anonymous account seeded with\n// the full intake (this is what actually creates the backend record), then\n// open the soft-register gate. The seed payload is also stashed in\n// localStorage so a returning visitor on the live /agent page can reuse it.\nconst toggleSelect=useCallback(id=>{setSelectedIds(prev=>{if(prev.indexOf(id)!==-1)return prev.filter(x=>x!==id);// Cap selection -- ignore taps once the max is reached.\nif(prev.length>=MAX_SELECT)return prev;return[...prev,id];});},[]);const handleContinue=useCallback(async()=>{if(seeding)return;setSeedError(\"\");// Carry forward only the offers the visitor chose to apply for.\nconst chosen=matches.filter(m=>selectedIds.indexOf(m.id)!==-1);const seed=buildSeed(answers,chosen.length?chosen:matches);try{window.localStorage.setItem(SEED_KEY,JSON.stringify(seed));}catch(e){/* ignore */}setSeeding(true);try{const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/seed\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},// Pass any token we already hold so the backend updates that\n// anonymous account instead of creating a second one.\nbody:JSON.stringify({...seed,anonToken:anonToken||undefined})});const data=await r.json().catch(()=>null);if(!data||!data.anonToken)throw new Error(\"no token\");setAnonToken(data.anonToken);try{window.localStorage.setItem(STORAGE_KEY,data.anonToken);}catch(e){/* ignore */}// Advance to the sign-up step (a normal full-card step, not a\n// modal -- same size as every other step, no scrim).\nsetPhase(\"register\");}catch(e){setSeedError(\"We couldn't save your details just then \"+EMDASH+\" give it another go.\");}finally{setSeeding(false);}},[answers,matches,selectedIds,apiBaseUrl,seeding,anonToken]);// Submit the sign-up gate: claim the anonymous account with name/email/\n// password, then hand off to the embedded agent.\nconst submitRegister=useCallback(async()=>{setRegError(null);const fullName=(regFirstName.trim()+\" \"+regLastName.trim()).trim();if(!regFirstName.trim()||!regLastName.trim()){setRegError(\"Your first and last name, please.\");return;}if(!EMAIL_RE.test(regEmail.trim())){setRegError(\"Enter a valid email address.\");return;}if(!looksLikePhone(regPhone)){setRegError(\"Pop in a phone number we can reach you on.\");return;}if(regPassword.length<8){setRegError(\"Password must be at least 8 characters.\");return;}if(regConfirm!==regPassword){setRegError(\"Those passwords don't match.\");return;}setRegBusy(true);try{const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/identify\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({anonToken:anonToken||undefined,name:fullName,email:regEmail.trim(),phone:regPhone.trim(),password:regPassword})});const data=await r.json().catch(()=>null);if(r.ok&&data&&data.ok){setContact({name:fullName,email:regEmail.trim()});setLoginUrl(data&&data.loginUrl||null);// Advance to document upload (the thank-you confirmation comes\n// after the docs).\nsetPhase(\"documents\");return;}setRegError(data&&data.error||\"Something went wrong. Please try again.\");}catch(e){setRegError(\"Couldn't reach the server. Please try again.\");}finally{setRegBusy(false);}},[regFirstName,regLastName,regEmail,regPhone,regPassword,regConfirm,anonToken,apiBaseUrl]);const answeredCount=phase===\"asking\"?stepIndex:total;const progressPct=answeredCount/total*100;// Conversational question text sits at the H3 scale (matching the results /\n// docs titles), not the larger H2.\nconst h2Size=isMobile?20:26;const fontFace=\"@font-face{font-family:'TT Commons';src:url('\"+apiBaseUrl+\"/fonts/TTCommonsVarRoman.ttf') format('truetype');font-weight:100 900;font-display:swap;}\"+\".frank-onboard *{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,0.2) transparent;}\"+\".frank-onboard ::-webkit-scrollbar{width:8px;height:8px;}\"+\".frank-onboard ::-webkit-scrollbar-track{background:transparent;}\"+\".frank-onboard ::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.18);border-radius:8px;}\"+\".frank-onboard input::placeholder{color:rgba(0,0,0,0.3);}\"+\".frank-slider{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:9999px;outline:none;cursor:pointer;}\"+\".frank-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:26px;height:26px;border-radius:9999px;background:var(--accent,#191a1a);cursor:pointer;border:3px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.25);}\"+\".frank-slider::-moz-range-thumb{width:26px;height:26px;border-radius:9999px;background:var(--accent,#191a1a);cursor:pointer;border:3px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.25);}\"+\"@keyframes frankspin{to{transform:rotate(360deg)}}\";const eyebrowStyle={fontSize:11,fontWeight:600,letterSpacing:.6,textTransform:\"uppercase\",color:\"rgba(0,0,0,0.4)\",margin:0,lineHeight:1};const regInputStyle={width:\"100%\",boxSizing:\"border-box\",border:\"none\",borderRadius:9999,padding:\"13px 18px\",fontSize:15,fontFamily,outline:\"none\",background:\"rgba(0,0,0,0.05)\",color:INK};// ---- Embedded agent + soft-register gate (replace the old /agent redirect)\n// The standalone \"Thanks\" confirmation screen was removed -- document\n// collection now hands straight off to the agent, whose first two bubbles\n// carry the same wrap-up + \"keep going\" copy.\nif(phase===\"documents\")return shell(/*#__PURE__*/_jsx(DocumentCollection,{apiBaseUrl:apiBaseUrl,anonToken:anonToken,botName:botName,fontFamily:fontFamily,accentColor:accentColor,cardBackground:cardBackground,stageBackground:stageBg,fillH:fillH,mobileCornerRadius:mobileCornerRadius,desktopCornerRadius:desktopCornerRadius,mobileShadow:mobileShadow,mobileHeight:mobileHeight,onContinue:()=>setPhase(\"agent\")}));if(phase===\"agent\"){// Recap of everything captured before the embedded agent: the\n// onboarding Q&A (each question + its answer) plus the documents step,\n// shown as faded history at the top of the agent transcript so the\n// visitor can see what was already asked/answered before they logged in.\nconst priorHistory=[];QUESTIONS.forEach(q=>{const a=answers[q.key];if(a!==undefined&&String(a).trim()!==\"\"){priorHistory.push({id:\"pq-\"+q.key,role:\"ASSISTANT\",content:q.q});priorHistory.push({id:\"pa-\"+q.key,role:\"USER\",content:displayAnswer(q,a)});}});priorHistory.push({id:\"pq-docs\",role:\"ASSISTANT\",content:\"Upload your documents\"});priorHistory.push({id:\"pa-docs\",role:\"USER\",content:\"Documents uploaded\"});return shell(/*#__PURE__*/_jsx(AgentView,{apiBaseUrl:apiBaseUrl,fontFamily:fontFamily,anonToken:anonToken,greeting:buildAgentGreeting(answers,botName),botName:botName,contact:contact,loginUrl:loginUrl,accentColor:accentColor,stageBackground:stageBg,fill:takeover,priorHistory:priorHistory,mobileCornerRadius:mobileCornerRadius,desktopCornerRadius:desktopCornerRadius,mobileShadow:mobileShadow,mobileHeight:mobileHeight}));}return shell(/*#__PURE__*/_jsxs(motion.div,{ref:rootRef,className:\"frank-onboard\",// No page-load fade -- the widget appears immediately at every size.\n// (The welcome text still staggers in.)\nstyle:{width:\"100%\",// Inline on mobile the card sizes to its content (compact card in\n// the page) so the question sits right next to the input; in\n// takeover (and on desktop) it fills the fixed full-screen layer.\nheight:fillH?\"100%\":\"auto\",// Fill the Framer frame/section exactly -- no minimum viewport\n// height and no padding, so the card can stretch edge to edge.\nminHeight:0,boxSizing:\"border-box\",fontFamily,// Stage behind the card: the default gradient, or the colour set\n// via the Background property control.\nbackground:stageBg,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",// position:relative so the sign-up modal overlay can absolutely\n// cover the whole stage.\nposition:\"relative\",// No padding -- the card fills the whole stage/section.\npadding:0},children:[/*#__PURE__*/_jsx(\"style\",{children:fontFace}),/*#__PURE__*/_jsxs(\"div\",{style:{// The card fills the whole Framer frame/section -- full\n// width and height, no max-width cap, the body scrolls\n// inside. On phones it goes full bleed (square corners).\nwidth:\"100%\",maxWidth:undefined,height:mobileFixed?mobileHeight:fillH?\"100%\":\"auto\",minHeight:0,boxSizing:\"border-box\",// Extra breathing room inside the card on mobile (on top of\n// each region's own padding); desktop keeps its larger insets.\npadding:isMobile?16:0,display:\"flex\",flexDirection:\"column\",background:cardBackground,borderRadius:takeover?0:isMobile?mobileCornerRadius:desktopCornerRadius,overflow:\"hidden\",boxShadow:cardShadow,transition:\"box-shadow 0.45s ease\"},children:[(phase===\"asking\"||phase===\"searching\")&&(!introActive||!isMobile)&&!takeover&&/*#__PURE__*/_jsxs(\"div\",{style:{flexShrink:0,display:\"flex\",alignItems:\"center\",gap:14,padding:isMobile?\"8px 8px 0\":\"40px 44px 0\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:1,height:6,background:\"rgba(0,0,0,0.07)\",borderRadius:9999,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{height:\"100%\",width:progressPct+\"%\",background:accentColor,borderRadius:9999,transition:\"width 0.45s ease\"}})}),phase===\"asking\"&&(stepIndex>0||otherMode)&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:goBack,style:{background:\"none\",border:\"none\",fontSize:11,fontWeight:600,letterSpacing:.6,textTransform:\"uppercase\",color:\"rgba(0,0,0,0.45)\",cursor:\"pointer\",padding:0,fontFamily:\"inherit\",whiteSpace:\"nowrap\"},children:otherMode?\"List\":\"Back\"}),/*#__PURE__*/_jsx(\"span\",{style:{...eyebrowStyle,whiteSpace:\"nowrap\",color:\"rgba(0,0,0,0.45)\"},children:phase===\"asking\"?\"Q\"+(stepIndex+1)+\" / \"+total:\"Done\"})]}),/*#__PURE__*/_jsxs(\"div\",{ref:scrollRef,style:{// Fill the fixed-height card and scroll within (so the\n// card stays the same size whatever the content).\nflex:fillH||mobileFixed?1:\"0 0 auto\",maxHeight:isMobile&&!takeover&&!mobileFixed?\"62dvh\":undefined,minHeight:0,overflowY:\"auto\",scrollbarGutter:\"stable\",padding:greyText?\"28px 16px 16px\":isMobile?\"28px 8px 12px\":phase===\"compare\"?\"40px 44px 28px\":\"44px 44px 20px\",display:\"flex\",flexDirection:\"column\",// Fullscreen-takeover only: grey the text section as a\n// full-width band that runs right up under the header\n// (cancel the card's 16px padding via negative margins on\n// all sides except the bottom). No rounding.\nbackground:greyText?ACTIVE_GREY:undefined,marginLeft:greyText?-16:undefined,marginRight:greyText?-16:undefined,marginTop:greyText?-16:undefined},children:[phase===\"asking\"&&current&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:isMobile?18:24,// On mobile, sit the conversation at the BOTTOM of\n// the body so the current question is right above\n// the input (no empty gap that pushes it off-screen\n// when the field is focused). margin-top:auto keeps\n// it scrollable once the history outgrows the body.\nmarginTop:0},children:[QUESTIONS.slice(0,stepIndex).map(q=>/*#__PURE__*/_jsx(HistoryItem,{question:q.q,answer:displayAnswer(q,answers[q.key]),size:h2Size,accentColor:accentColor},q.key)),/*#__PURE__*/_jsx(motion.h2,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:introActive&&stepIndex===0?.9:1.96,ease:[.16,1,.3,1],delay:introActive&&stepIndex===0&&!otherMode?.55:.12},style:{fontSize:h2Size,fontWeight:400,lineHeight:1.2,letterSpacing:-.6,color:INK,margin:0},children:otherMode&&current.otherPrompt?current.otherPrompt:introActive&&stepIndex===0?\"Let's start the process to get you funded. \"+current.q:current.q},\"q-\"+stepIndex),!otherMode&&current.sub&&!(introActive&&stepIndex===0)&&/*#__PURE__*/_jsx(motion.h3,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:1.4,ease:[.16,1,.3,1],delay:.3},style:{fontSize:isMobile?16:19,fontWeight:400,lineHeight:1.35,letterSpacing:-.2,color:\"rgba(0,0,0,0.5)\",margin:0},children:current.sub},\"sub-\"+stepIndex)]}),phase===\"searching\"&&/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},style:{flex:1,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:18,minHeight:280},children:[/*#__PURE__*/_jsx(Spinner,{accentColor:accentColor}),/*#__PURE__*/_jsxs(\"h2\",{style:{fontSize:isMobile?22:26,fontWeight:400,letterSpacing:-.4,color:INK,margin:0,textAlign:\"center\"},children:[\"Matching you to the best rates\",HELLIP]}),/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:14,color:\"rgba(0,0,0,0.5)\",margin:0,textAlign:\"center\"},children:[\"Searching \",lenderCount||574,\" lender programs against your answers.\"]})]},\"searching\"),phase===\"results\"&&/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.96,ease:[.16,1,.3,1]},style:{display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsxs(\"p\",{style:eyebrowStyle,children:[Math.min(visibleCount,matches.length),\" \",\"best\",\" \",matches.length===1?\"match\":\"matches\",\" \",\"of \",totalOffers,\" offers\"]}),/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:isMobile?20:26,fontWeight:400,lineHeight:1.2,letterSpacing:-.6,color:INK,margin:0},children:\"Your best-fit financing options\"}),/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:14,color:\"rgba(0,0,0,0.55)\",margin:0,lineHeight:1.5},children:[\"Select the offers you'd like to apply for\",\" \",EMDASH,\" \",botName,\" will line them up and confirm the exact terms.\"]})]}),matches.slice(0,visibleCount).map((m,i)=>{const isSel=selectedIds.indexOf(m.id)!==-1;return /*#__PURE__*/_jsx(ResultCard,{match:m,rank:i+1,accentColor:accentColor,isMobile:isMobile,selected:isSel,disabled:!isSel&&selectedIds.length>=MAX_SELECT,onToggle:()=>toggleSelect(m.id)},m.id);}),selectedIds.length>=MAX_SELECT&&/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:13,color:\"rgba(0,0,0,0.5)\",margin:0,textAlign:\"center\"},children:[\"You can compare up to \",MAX_SELECT,\" offers\",\" \",EMDASH,\" deselect one to swap.\"]}),visibleCount<matches.length&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setVisibleCount(c=>c+RESULTS_PAGE),style:{alignSelf:\"center\",border:\"1px solid rgba(0,0,0,0.15)\",background:\"transparent\",borderRadius:9999,padding:\"11px 24px\",fontSize:14,color:INK,cursor:\"pointer\",fontFamily,marginTop:2},children:\"See more offers\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:11,color:\"rgba(0,0,0,0.4)\",margin:\"4px 0 0\",lineHeight:1.5},children:\"Rates are illustrative and subject to full underwriting.\"})]},\"results\"),phase===\"compare\"&&/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:[.16,1,.3,1]},style:{display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsxs(\"h2\",{style:{fontSize:h2Size,fontWeight:400,lineHeight:1.2,letterSpacing:-.6,color:INK,margin:0},children:[\"Compare your \",compareIds.length,\" \",compareIds.length===1?\"offer\":\"offers\"]}),/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:14,color:\"rgba(0,0,0,0.55)\",margin:0,lineHeight:1.5},children:[\"The cheapest is flagged. Untick any you don't want before continuing \",EMDASH,\" \",botName,\" will confirm the exact terms.\"]})]}),/*#__PURE__*/_jsx(ComparisonGrid,{matches:matches.filter(m=>compareIds.indexOf(m.id)!==-1),selectedIds:selectedIds,onToggle:toggleSelect,isMobile:isMobile,accentColor:accentColor,loanAmount:parseMoney(answers.loanAmount)})]},\"compare\"),phase===\"register\"&&/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:[.16,1,.3,1]},style:{display:\"flex\",flexDirection:\"column\",gap:12,width:\"100%\",maxWidth:460,// Center in the card (auto margins collapse to\n// 0 and fall back to scroll-from-top if the\n// form is ever taller than the card).\nmargin:\"auto\"},children:[/*#__PURE__*/_jsxs(\"h2\",{style:{fontSize:h2Size,fontWeight:400,letterSpacing:-.6,lineHeight:1.2,color:INK,margin:0},children:[\"Save your matches and keep going with \",botName]}),/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:14,color:\"rgba(0,0,0,0.55)\",lineHeight:1.5,margin:\"0 0 4px\"},children:[\"Create your account so \",botName,\" can pick up right where you left off \",EMDASH,\" you'll use this to log back in any time.\"]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:8},children:[/*#__PURE__*/_jsx(\"input\",{style:{...regInputStyle,flex:1,minWidth:0},placeholder:\"First name\",value:regFirstName,onChange:e=>setRegFirstName(e.target.value)}),/*#__PURE__*/_jsx(\"input\",{style:{...regInputStyle,flex:1,minWidth:0},placeholder:\"Last name\",value:regLastName,onChange:e=>setRegLastName(e.target.value)})]}),/*#__PURE__*/_jsx(\"input\",{style:regInputStyle,type:\"email\",placeholder:\"Email\",value:regEmail,onChange:e=>setRegEmail(e.target.value)}),/*#__PURE__*/_jsx(\"input\",{style:regInputStyle,type:\"tel\",inputMode:\"tel\",placeholder:\"Phone number\",value:regPhone,onChange:e=>setRegPhone(e.target.value)}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(\"input\",{style:{...regInputStyle,paddingRight:46},type:showPw?\"text\":\"password\",placeholder:\"Create a password (8+ characters)\",value:regPassword,onChange:e=>setRegPassword(e.target.value)}),/*#__PURE__*/_jsx(PwToggle,{shown:showPw,onToggle:()=>setShowPw(v=>!v)})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(\"input\",{style:{...regInputStyle,paddingRight:46},type:showPw?\"text\":\"password\",placeholder:\"Confirm password\",value:regConfirm,onChange:e=>setRegConfirm(e.target.value),onKeyDown:e=>{if(e.key===\"Enter\")submitRegister();}}),/*#__PURE__*/_jsx(PwToggle,{shown:showPw,onToggle:()=>setShowPw(v=>!v)})]}),regError&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13,color:\"#c0392b\",margin:0},children:regError}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:4},children:/*#__PURE__*/_jsx(PrimaryButton,{label:regBusy?\"Creating your account\"+HELLIP:\"Continue with \"+botName,accentColor:accentColor,disabled:regBusy,fullWidth:true,onClick:submitRegister})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:12,marginTop:2},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setPhase(\"compare\"),disabled:regBusy,style:{border:\"none\",background:\"transparent\",fontSize:13,color:\"rgba(0,0,0,0.45)\",cursor:regBusy?\"default\":\"pointer\",padding:0,fontFamily},children:\"Back to offers\"}),/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:13,color:\"rgba(0,0,0,0.5)\",textAlign:\"right\",margin:0},children:[\"Already have an account?\",\" \",/*#__PURE__*/_jsx(\"a\",{href:apiBaseUrl+\"/login\",style:{color:INK,textDecoration:\"underline\",textUnderlineOffset:2},children:\"Sign in\"})]})]})]},\"register\")]}),phase!==\"searching\"&&phase!==\"register\"&&/*#__PURE__*/_jsxs(\"div\",{style:{flexShrink:0,// In the takeover the pills sit below the moved-down\n// progress row (order 3), full-bleed with a 16px inset\n// so they line up with the grey box + progress, and a\n// full-width grey divider above.\norder:greyText?3:0,marginLeft:greyText?-16:undefined,marginRight:greyText?-16:undefined,// Compare: tighter top gap + no divider (the table\n// already reads as its own block).\npadding:greyText?\"16px 16px 8px\":isMobile?\"16px 8px 8px\":phase===\"compare\"?\"8px 44px 28px\":\"22px 44px 28px\",borderTop:greyText?\"1px solid rgba(0,0,0,0.10)\":phase===\"compare\"?\"none\":\"1px solid rgba(0,0,0,0.06)\"},children:[phase===\"asking\"&&current&&/*#__PURE__*/_jsxs(motion.div,{initial:introActive&&stepIndex===0?{opacity:0}:false,animate:{opacity:1},transition:{duration:.9,ease:\"easeOut\",delay:introActive&&stepIndex===0?.55:0},style:{display:\"flex\",flexDirection:\"column\",gap:12},children:[current.slider&&!otherMode?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsx(BigInput,{question:current,value:draft,onChange:setDraft,onSubmit:()=>submitAnswer(draft),accentColor:accentColor,fontFamily:fontFamily,// Don't auto-open the keyboard -- the\n// slider is the primary control.\nautoFocus:false,isMobile:isMobile},current.key),/*#__PURE__*/_jsx(SliderTrack,{cfg:current.slider,value:draft,onChange:setDraft,accentColor:accentColor},\"slider-\"+current.key)]}):current.type===\"select\"&&!otherMode?/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:12},children:(current.options||[]).map(opt=>/*#__PURE__*/_jsx(Chip,{label:opt,accentColor:accentColor,isMobile:isMobile,onClick:()=>{if(current.allowOther&&opt===(current.otherOption||OTHER_LABEL)){setDraft(\"\");setError(\"\");setOtherMode(true);}else{submitAnswer(opt);}}},opt))}):/*#__PURE__*/_jsx(BigInput,{question:current,value:draft,onChange:setDraft,onSubmit:()=>submitAnswer(draft),accentColor:accentColor,fontFamily:fontFamily,autoFocus:stepIndex>0||otherMode,isMobile:isMobile,// Nudge first-time visitors: pulse the\n// empty field on the very first step only.\npulse:stepIndex===0&&!otherMode&&draft.trim().length===0},otherMode?\"other\":current.key),error&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13,color:\"#c0392b\",margin:0},children:error})]},\"answer-\"+stepIndex),phase===\"results\"&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",gap:10},children:selectedIds.length>0&&/*#__PURE__*/_jsx(PrimaryButton,{label:\"Compare \"+selectedIds.length+\" offer\"+(selectedIds.length===1?\"\":\"s\"),accentColor:accentColor,onClick:()=>{setCompareIds(selectedIds);setPhase(\"compare\");}})}),phase===\"compare\"&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:10},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:12},children:[/*#__PURE__*/_jsx(PrimaryButton,{label:seeding?\"Saving\"+HELLIP:\"Continue with \"+selectedIds.length+\" lender\"+(selectedIds.length===1?\"\":\"s\"),accentColor:accentColor,disabled:seeding||selectedIds.length===0,onClick:handleContinue}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setPhase(\"results\"),style:{flexShrink:0,border:\"none\",background:\"transparent\",fontSize:13,color:\"rgba(0,0,0,0.45)\",cursor:\"pointer\",padding:0,fontFamily},children:\"Back to offers\"})]}),seedError&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13,color:\"#c0392b\",margin:0},children:seedError})]})]})]})]}));}// --- Sub-components -------------------------------------------------------\nfunction Chip(props){const[hover,setHover]=useState(false);return /*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:props.onClick,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{border:\"1px solid \"+(hover?props.accentColor:\"rgba(0,0,0,0.12)\"),background:hover?props.accentColor:\"#fff\",color:hover?\"#fff\":INK,borderRadius:9999,padding:props.isMobile?\"10px 18px\":\"14px 24px\",fontSize:props.isMobile?14:16,fontFamily:\"inherit\",cursor:\"pointer\",transition:\"all 0.15s\"},children:props.label});}function HistoryItem(props){return(// Static -- already-answered entries must not re-animate when the\n// active question folds into the saved conversation.\n/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsx(\"p\",{style:{fontSize:props.size,fontWeight:400,lineHeight:1.2,letterSpacing:-.6,color:\"rgba(0,0,0,0.3)\",margin:0},children:props.question}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:props.size,fontWeight:400,lineHeight:1.2,letterSpacing:-.6,color:props.accentColor,margin:0,wordBreak:\"break-word\"},children:props.answer})]}));}// A range slider that shares its value with the question's text entry (the\n// BigInput pill rendered alongside). It writes the SAME draft string the text\n// field uses (formatted with commas for money), so dragging the slider and\n// typing stay in sync. Defaults to the middle of the range the first time it\n// mounts for a question.\nfunction SliderTrack(props){const{cfg}=props;const clamp=n=>Math.min(cfg.max,Math.max(cfg.min,n));// Snap to the configured step, but coarsen at the top: a pivot's own `step`\n// applies at/above the pivot value, otherwise money sliders jump in $250k\n// increments past $1M (small steps there are pointless).\nconst snap=n=>{let step=cfg.step;if(cfg.pivot&&cfg.pivot.step&&n>=cfg.pivot.value)step=cfg.pivot.step;else if(cfg.money&&n>1e6)step=25e4;return clamp(Math.round(n/step)*step);};// Optional non-linear warp: map a fractional track position (0..1) to a\n// value and back, so a `pivot` value can sit at a chosen position. Without\n// a pivot both are plain linear. The native <input> then drives a 0..1000\n// position scale when warped, and value units otherwise.\nconst piv=cfg.pivot;const posToValue=p=>{if(piv)return p<=piv.pos?cfg.min+p/piv.pos*(piv.value-cfg.min):piv.value+(p-piv.pos)/(1-piv.pos)*(cfg.max-piv.value);return cfg.min+p*(cfg.max-cfg.min);};const valueToPos=v=>{if(piv)return v<=piv.value?piv.pos*((v-cfg.min)/(piv.value-cfg.min)):piv.pos+(1-piv.pos)*((v-piv.value)/(cfg.max-piv.value));return cfg.max>cfg.min?(v-cfg.min)/(cfg.max-cfg.min):0;};// Default thumb sits mid-TRACK: for a warped slider that's the value at\n// position 0.5 (a sensibly low figure), not the value-midpoint (which would\n// park the thumb far right). Linear sliders keep the plain value-midpoint.\nconst mid=snap(piv?posToValue(.5):Math.round((cfg.min+cfg.max)/2));const parseNum=s=>{const d=(s||\"\").replace(/[^0-9]/g,\"\");return d?parseInt(d,10):NaN;};// The answer string we write: money -> \"2,500,000\", else \"575\".\nconst fmtOut=n=>cfg.money?formatWithCommas(String(n)):String(n);const raw=parseNum(props.value);const num=isFinite(raw)?clamp(raw):mid;// Seed the middle default when this slider first appears for a question.\n// (Keyed by the caller so it remounts per question and re-seeds.)\nuseEffect(()=>{if(!props.value)props.onChange(fmtOut(mid));// eslint-disable-next-line react-hooks/exhaustive-deps\n},[]);const pct=valueToPos(num)*100;const fmtShort=n=>{if(!cfg.money)return String(n);if(n>=1e6)return\"$\"+(n/1e6).toFixed(n%1e6===0?0:1).replace(/\\.0$/,\"\")+\"M\";return\"$\"+Math.round(n/1e3)+\"k\";};return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8,padding:\"6px 8px 0\"},children:[/*#__PURE__*/_jsx(\"input\",{className:\"frank-slider\",type:\"range\",min:piv?0:cfg.min,max:piv?1e3:cfg.max,step:piv?1:cfg.step,value:piv?Math.round(valueToPos(num)*1e3):num,onChange:e=>{const raw=parseInt(e.target.value,10);const v=piv?posToValue(raw/1e3):raw;props.onChange(fmtOut(snap(v)));},style:{[\"--accent\"]:props.accentColor,background:\"linear-gradient(90deg, \"+props.accentColor+\" \"+pct+\"%, rgba(0,0,0,0.12) \"+pct+\"%)\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",fontSize:12,color:\"rgba(0,0,0,0.45)\"},children:[/*#__PURE__*/_jsx(\"span\",{children:fmtShort(cfg.min)}),/*#__PURE__*/_jsx(\"span\",{children:fmtShort(cfg.max)})]})]});}function BigInput(props){const{question,value}=props;const isMoney=question.type===\"money\";const small=!!props.isMobile;const inputRef=useRef(null);const[hover,setHover]=useState(false);const canSubmit=value.trim().length>0;// Only auto-focus once the visitor is mid-flow -- never on the first\n// question at page load (that would scroll the page down to the widget).\n// preventScroll keeps later auto-focuses from nudging the viewport either.\nuseEffect(()=>{if(!props.autoFocus)return;const t=window.setTimeout(()=>{if(inputRef.current)inputRef.current.focus({preventScroll:true});},60);return()=>clearTimeout(t);},[question.key,props.autoFocus]);return(// The field and the Continue button live in one pill with 8px of\n// padding -- the button sits inside, on the right.\n/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",alignItems:\"center\",gap:8,background:\"rgba(0,0,0,0.05)\",borderRadius:9999,padding:8,boxSizing:\"border-box\",// Hold the pill at its with-button height so it doesn't shrink\n// when Continue hides (button height + 8px padding each side).\nminHeight:small?60:68},children:[props.pulse&&/*#__PURE__*/_jsx(motion.div,{\"aria-hidden\":true,initial:{backgroundPosition:\"100% 100%\"},animate:{backgroundPosition:[\"100% 100%\",\"0% 0%\"]},transition:{duration:1.5,repeat:Infinity,repeatDelay:.5,ease:\"easeInOut\"},style:{position:\"absolute\",inset:0,borderRadius:9999,background:\"linear-gradient(135deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 65%)\",backgroundSize:\"250% 250%\",pointerEvents:\"none\"}}),props.leading,isMoney&&/*#__PURE__*/_jsx(\"span\",{style:{fontSize:small?18:22,color:value?INK:\"rgba(0,0,0,0.35)\",lineHeight:1,paddingLeft:16},children:\"$\"}),/*#__PURE__*/_jsx(\"input\",{ref:inputRef,type:\"text\",inputMode:isMoney||question.numeric?\"numeric\":undefined,value:value,placeholder:props.placeholder||question.placeholder||\"Type your answer\",onChange:e=>props.onChange(isMoney?formatWithCommas(e.target.value):e.target.value),onKeyDown:e=>{if(e.key===\"Enter\"){e.preventDefault();props.onSubmit();}},style:{flex:1,minWidth:0,border:\"none\",outline:\"none\",background:\"transparent\",fontSize:small?16:20,fontWeight:400,fontFamily:props.fontFamily,color:INK,padding:isMoney?\"0 6px\":props.leading?\"0 16px 0 6px\":\"0 16px\"}}),canSubmit&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:props.onSubmit,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{flexShrink:0,height:small?44:52,padding:small?\"0 18px\":\"0 26px\",borderRadius:9999,border:\"2px solid \"+props.accentColor,background:hover?\"#fff\":props.accentColor,color:hover?props.accentColor:\"#fff\",fontSize:small?12:13,fontWeight:600,letterSpacing:1.2,textTransform:\"uppercase\",cursor:\"pointer\",fontFamily:\"inherit\",transition:\"background 0.2s, color 0.2s\"},children:\"Continue\"})]}));}function PrimaryButton(props){const[hover,setHover]=useState(false);const enabled=!props.disabled;return /*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:props.onClick,disabled:props.disabled,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{width:props.fullWidth?\"100%\":undefined,padding:\"12px 28px\",borderRadius:9999,border:\"2px solid \"+props.accentColor,background:enabled?hover?\"#fff\":props.accentColor:\"#ccc\",color:enabled?hover?props.accentColor:\"#fff\":\"#fff\",borderColor:enabled?props.accentColor:\"transparent\",fontSize:13,fontWeight:600,letterSpacing:1.2,textTransform:\"uppercase\",cursor:enabled?\"pointer\":\"not-allowed\",fontFamily:\"inherit\",transition:\"background 0.2s, color 0.2s\"},children:props.label});}function ResultCard(props){const{match,rank,isMobile,selected,disabled,onToggle}=props;const[hover,setHover]=useState(false);const isTop=rank===1;const borderColor=selected?props.accentColor:isTop?\"rgba(34,197,94,0.35)\":hover&&!disabled?\"rgba(0,0,0,0.2)\":\"rgba(0,0,0,0.07)\";const tap=()=>{if(!disabled)onToggle();};return /*#__PURE__*/_jsxs(\"div\",{role:\"button\",tabIndex:0,\"aria-pressed\":selected,\"aria-disabled\":disabled,onClick:tap,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),onKeyDown:e=>{if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();tap();}},style:{background:selected?\"rgba(0,0,0,0.05)\":isTop?\"rgba(34,197,94,0.06)\":\"rgba(0,0,0,0.025)\",border:\"2px solid \"+borderColor,borderRadius:20,padding:18,display:\"flex\",flexDirection:\"column\",gap:12,cursor:disabled?\"not-allowed\":\"pointer\",opacity:disabled?.45:1,transition:\"border-color 0.15s, background 0.15s, opacity 0.15s\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:14},children:[/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,width:22,height:22,borderRadius:9999,marginTop:1,border:selected?\"none\":\"2px solid rgba(0,0,0,0.22)\",background:selected?props.accentColor:\"transparent\",color:\"#fff\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:selected&&/*#__PURE__*/_jsx(Check,{})}),/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0,flex:1},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,marginBottom:2},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:15,color:INK,lineHeight:1.2},children:match.lender}),isTop&&/*#__PURE__*/_jsx(\"span\",{style:{fontSize:10,fontWeight:600,letterSpacing:.4,textTransform:\"uppercase\",color:EMERALD,background:\"rgba(34,197,94,0.12)\",borderRadius:9999,padding:\"3px 8px\"},children:\"Best price\"})]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:12,color:\"rgba(0,0,0,0.5)\",margin:0},children:match.category})]}),/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"right\",flexShrink:0},children:match.aprLow?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:20,color:INK,margin:0,lineHeight:1.1,letterSpacing:-.3},children:[(match.aprLow*100).toFixed(1),\"%\"]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:11,color:\"rgba(0,0,0,0.45)\",margin:\"2px 0 0\"},children:\"from / APR\"})]}):/*#__PURE__*/_jsx(\"p\",{style:{fontSize:12,color:\"rgba(0,0,0,0.4)\",margin:0,maxWidth:92},children:\"Rate on request\"})})]}),match.estMonthly>0&&/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:15,color:\"rgba(0,0,0,0.55)\",margin:0,lineHeight:1.25},children:[\"Around\",\" \",/*#__PURE__*/_jsxs(\"span\",{style:{color:INK,fontWeight:400,fontSize:28,letterSpacing:-.5},children:[fmtMoney(match.estMonthly),\"/mo\"]}),\" \",\"at this rate\"]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:isMobile?\"1fr\":\"1fr 1fr\",columnGap:20,rowGap:8},children:match.reasons.map((r,i)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:8},children:[/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,marginTop:2,color:EMERALD},children:/*#__PURE__*/_jsx(Check,{})}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:14,color:\"rgba(0,0,0,0.7)\",lineHeight:1.4},children:r})]},i))})]});}// Side-by-side comparison of the selected offers. Row-aligned grid (label\n// column + one column per offer) so APR / monthly / type / highlights line up;\n// scrolls horizontally when the columns outgrow the card. Cheapest is flagged.\nfunction ComparisonGrid(props){const{matches,selectedIds,onToggle,accentColor,loanAmount}=props;// Cash the borrower gets back with Frank: 5% of our fee, and our fee is ~3%\n// of the loan. Loan-based, so it's the same across every offer column.\nconst frankBack=Math.round((loanAmount||0)*FRANK_FEE_PCT*FRANK_REBATE_PCT);const prices=matches.map(m=>m.aprLow&&m.aprLow>0?m.aprLow:Infinity);const minPrice=Math.min.apply(null,prices);const cheapestIdx=minPrice===Infinity?-1:prices.indexOf(minPrice);const labelColW=props.isMobile?112:104;const colMin=props.isMobile?156:158;const cell={padding:\"10px 14px\",borderBottom:\"1px solid rgba(0,0,0,0.06)\"};const labelCell={...cell,fontSize:12,color:\"rgba(0,0,0,0.45)\",display:\"flex\",alignItems:\"center\"};const colBg=i=>i===cheapestIdx?\"rgba(34,197,94,0.06)\":\"transparent\";const isSel=i=>selectedIds.indexOf(matches[i].id)!==-1;// Dim columns the visitor has unticked (they stay visible for comparison).\nconst colStyle=i=>({background:colBg(i),opacity:isSel(i)?1:.4,transition:\"opacity 0.15s\"});// Subtle highlight behind the \"With Frank\" row (emerald = money back).\nconst WF_TINT=\"rgba(34,197,94,0.12)\";return /*#__PURE__*/_jsx(\"div\",{style:{overflowX:\"auto\",paddingBottom:4},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gridTemplateColumns:labelColW+\"px repeat(\"+matches.length+\", minmax(\"+colMin+\"px, 1fr))\",minWidth:labelColW+matches.length*colMin,borderRadius:16,overflow:\"hidden\",background:\"rgba(0,0,0,0.025)\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{...cell,borderBottom:\"1px solid rgba(0,0,0,0.1)\"}}),matches.map((m,i)=>/*#__PURE__*/_jsxs(\"div\",{role:\"button\",tabIndex:0,\"aria-pressed\":isSel(i),onClick:()=>onToggle(m.id),onKeyDown:e=>{if(e.key===\"Enter\"||e.key===\" \"){e.preventDefault();onToggle(m.id);}},style:{...cell,background:colBg(i),borderBottom:\"1px solid rgba(0,0,0,0.1)\",display:\"flex\",flexDirection:\"column\",gap:6,cursor:\"pointer\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:8,opacity:isSel(i)?1:.4,transition:\"opacity 0.15s\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,width:20,height:20,borderRadius:9999,border:isSel(i)?\"none\":\"2px solid rgba(0,0,0,0.25)\",background:isSel(i)?accentColor:\"transparent\",color:\"#fff\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:isSel(i)&&/*#__PURE__*/_jsx(Check,{})}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:15,color:INK,lineHeight:1.2},children:m.lender})]}),i===cheapestIdx&&/*#__PURE__*/_jsx(\"span\",{style:{alignSelf:\"flex-start\",fontSize:10,fontWeight:600,letterSpacing:.4,textTransform:\"uppercase\",color:EMERALD,background:\"rgba(34,197,94,0.12)\",borderRadius:9999,padding:\"3px 8px\",opacity:isSel(i)?1:.4},children:\"Best price\"})]},m.id)),/*#__PURE__*/_jsxs(\"div\",{style:{...labelCell,background:WF_TINT,color:INK,flexDirection:\"column\",alignItems:\"flex-start\",justifyContent:\"center\",gap:2},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:600},children:\"With Frank\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:10,color:\"rgba(0,0,0,0.45)\",lineHeight:1.3},children:\"5% of our fee, back to you\"})]}),matches.map((m,i)=>/*#__PURE__*/_jsx(\"div\",{style:{...cell,...colStyle(i),background:WF_TINT},children:frankBack>0?/*#__PURE__*/_jsx(\"span\",{style:{fontSize:20,color:EMERALD,letterSpacing:-.3},children:fmtMoney(frankBack)}):/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,color:\"rgba(0,0,0,0.4)\"},children:EMDASH})},m.id)),/*#__PURE__*/_jsx(\"div\",{style:labelCell,children:\"APR from\"}),matches.map((m,i)=>/*#__PURE__*/_jsx(\"div\",{style:{...cell,...colStyle(i)},children:m.aprLow?/*#__PURE__*/_jsxs(\"span\",{style:{fontSize:20,color:INK,letterSpacing:-.3},children:[(m.aprLow*100).toFixed(1),\"%\"]}):/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,color:\"rgba(0,0,0,0.4)\"},children:\"On request\"})},m.id)),/*#__PURE__*/_jsx(\"div\",{style:labelCell,children:\"Est. monthly\"}),matches.map((m,i)=>/*#__PURE__*/_jsx(\"div\",{style:{...cell,...colStyle(i)},children:/*#__PURE__*/_jsx(\"span\",{style:{fontSize:15,color:INK},children:m.estMonthly>0?fmtMoney(m.estMonthly)+\"/mo\":EMDASH})},m.id)),/*#__PURE__*/_jsx(\"div\",{style:labelCell,children:\"Time to fund\"}),matches.map((m,i)=>/*#__PURE__*/_jsx(\"div\",{style:{...cell,...colStyle(i)},children:/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,color:\"rgba(0,0,0,0.6)\",lineHeight:1.3},children:m.speed||EMDASH})},m.id)),/*#__PURE__*/_jsx(\"div\",{style:labelCell,children:\"Type\"}),matches.map((m,i)=>/*#__PURE__*/_jsx(\"div\",{style:{...cell,...colStyle(i)},children:/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,color:\"rgba(0,0,0,0.6)\",lineHeight:1.3},children:m.category})},m.id)),/*#__PURE__*/_jsx(\"div\",{style:labelCell,children:\"Highlights\"}),matches.map((m,i)=>/*#__PURE__*/_jsx(\"div\",{style:{...cell,...colStyle(i)},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:6},children:m.reasons.map((r,ri)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:6,alignItems:\"flex-start\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,marginTop:2,color:EMERALD},children:/*#__PURE__*/_jsx(Check,{})}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,color:\"rgba(0,0,0,0.7)\",lineHeight:1.35},children:r})]},ri))})},m.id))]})});}function Check(){return /*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"polyline\",{points:\"20 6 9 17 4 12\"})});}// Show/hide toggle button for a password field (eye / eye-off).\nfunction PwToggle(props){return /*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:props.onToggle,\"aria-label\":props.shown?\"Hide password\":\"Show password\",style:{position:\"absolute\",right:14,top:\"50%\",transform:\"translateY(-50%)\",background:\"none\",border:\"none\",padding:0,margin:0,cursor:\"pointer\",color:\"rgba(0,0,0,0.4)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:props.shown?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"1\",y1:\"1\",x2:\"23\",y2:\"23\"})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"3\"})]})})});}// The Frank loading mark: the six dots of the logo fading in/out in a fixed\n// staggered order (opacity only). Replaces the old rotating-circle spinners.\nfunction FrankSpinner(props){const size=props.size??18;const color=props.color??INK;const dots=[{cx:7.5,cy:7.5},{cx:7.5,cy:30},{cx:7.5,cy:52.5},{cx:30,cy:7.5},{cx:30,cy:30},{cx:52.5,cy:7.5}];const dur=1.4;const order=[0,3,1,5,2,4];return /*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 60 60\",role:\"img\",\"aria-label\":\"Loading\",children:[/*#__PURE__*/_jsx(\"style\",{children:\"@keyframes frankpulse{0%,100%{opacity:0.18}50%{opacity:1}}\"}),dots.map((d,i)=>/*#__PURE__*/_jsx(\"circle\",{cx:d.cx,cy:d.cy,r:7.5,fill:color,style:{animation:\"frankpulse \"+dur+\"s ease-in-out \"+order[i]/dots.length*dur+\"s infinite\"}},i))]});}function Spinner(props){return /*#__PURE__*/_jsx(FrankSpinner,{size:40,color:props.accentColor});}// Static Frank logo mark (the six dots), used in the takeover's top header.\nfunction FrankMark(props){const size=props.size??22;const color=props.color??INK;const dots=[{cx:7.5,cy:7.5},{cx:7.5,cy:30},{cx:7.5,cy:52.5},{cx:30,cy:7.5},{cx:30,cy:30},{cx:52.5,cy:7.5}];return /*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 60 60\",role:\"img\",\"aria-label\":\"Frank\",children:dots.map((d,i)=>/*#__PURE__*/_jsx(\"circle\",{cx:d.cx,cy:d.cy,r:7.5,fill:color},i))});}// Email validation for the sign-up step (folded into the main render above).\nconst EMAIL_RE=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;function FilePreview(props){const{file}=props;const isImage=(file.contentType||\"\").indexOf(\"image/\")===0||/\\.(png|jpe?g|gif|webp|heic|heif)$/i.test(file.name);return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:10,padding:\"8px 10px\",borderRadius:10,background:\"#ffffff\",border:\"1px solid rgba(0,0,0,0.06)\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,width:40,height:40,borderRadius:8,overflow:\"hidden\",background:\"rgba(0,0,0,0.06)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"rgba(0,0,0,0.45)\"},children:isImage&&file.url?/*#__PURE__*/_jsx(\"img\",{src:file.url,alt:file.name,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}}):/*#__PURE__*/_jsx(FileGlyph,{})}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1,minWidth:0,fontSize:13,color:\"rgba(0,0,0,0.7)\",overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},children:file.name}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:e=>{// The card is a <label>, so prevent the click from also\n// opening the file picker, and don't let it bubble.\ne.preventDefault();e.stopPropagation();props.onRemove();},disabled:props.busy,\"aria-label\":\"Remove \"+file.name,title:\"Remove\",style:{flexShrink:0,height:28,width:28,borderRadius:9999,border:\"none\",cursor:props.busy?\"default\":\"pointer\",background:\"rgba(0,0,0,0.06)\",color:\"rgba(0,0,0,0.55)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",opacity:props.busy?.5:1},children:props.busy?/*#__PURE__*/_jsx(FrankSpinner,{size:14,color:\"rgba(0,0,0,0.55)\"}):/*#__PURE__*/_jsx(RemoveX,{})})]});}function FileGlyph(){return /*#__PURE__*/_jsxs(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"14 2 14 8 20 8\"})]});}function RemoveX(){return /*#__PURE__*/_jsxs(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"18\",y1:\"6\",x2:\"6\",y2:\"18\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"6\",y1:\"6\",x2:\"18\",y2:\"18\"})]});}function DocumentCollection(props){const{apiBaseUrl,anonToken,botName,fontFamily,accentColor,cardBackground,fillH}=props;const stageBg=props.stageBackground||STAGE_BG;const mobileCornerRadius=typeof props.mobileCornerRadius===\"number\"?props.mobileCornerRadius:24;const desktopCornerRadius=typeof props.desktopCornerRadius===\"number\"?props.desktopCornerRadius:36;const mobileShadow=props.mobileShadow!==false;const mobileHeight=typeof props.mobileHeight===\"number\"&&props.mobileHeight>0?props.mobileHeight:0;// Measure our own width -- this screen is a separate early return, so the\n// parent's isMobile can be stale here (mirrors AgentView's self-measure).\nconst rootRef=useRef(null);const[width,setWidth]=useState(()=>typeof window!==\"undefined\"&&window.innerWidth?window.innerWidth:720);useEffect(()=>{const el=rootRef.current;if(!el)return;const ro=new ResizeObserver(entries=>{for(const e of entries)setWidth(e.contentRect.width);});ro.observe(el);setWidth(el.getBoundingClientRect().width);return()=>ro.disconnect();},[]);const isMobile=width<560;// No fixed height during the parent's fullscreen takeover (fillH true on\n// mobile means takeover) -- the card fills the layer instead.\nconst mobileFixed=isMobile&&mobileHeight>0&&!fillH;// Card drop-shadow flash: green when this screen appears, red on an error.\nconst{shadow:cardShadow,flash:flashCard}=useShadowFlash(isMobile?mobileShadow?MOBILE_SHADOW:\"none\":DESKTOP_SHADOW);useEffect(()=>{flashCard(\"green\");},[flashCard]);// Uploaded files per slot (id + name + url + type) so each can show a\n// preview and be removed individually.\nconst[uploaded,setUploaded]=useState({});// Which slots are mid-upload (per-slot, so uploads to different cards run\n// independently and one never silently blocks another).\nconst[busySlots,setBusySlots]=useState({});const anyBusy=Object.values(busySlots).some(Boolean);const[extracted,setExtracted]=useState(0);// Per-slot upload errors, so a failure shows inside the slot it belongs to.\nconst[errors,setErrors]=useState({});// documentId currently being removed (disables its remove button).\nconst[removing,setRemoving]=useState(null);const totalUploaded=Object.keys(uploaded).reduce((a,k)=>a+uploaded[k].length,0);// Extraction is async/background, so after an upload we poll /profile for\n// the running count of facts Frank has read out of the documents.\nconst pollExtracted=()=>{if(!anonToken)return;let tries=0;const tick=async()=>{tries++;try{const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/profile?anonToken=\"+encodeURIComponent(anonToken));const prof=await r.json().catch(()=>null);if(prof&&typeof prof.docDetailCount===\"number\"){setExtracted(prof.docDetailCount);}}catch(e){/* ignore */}if(tries<6)window.setTimeout(tick,2e3);};window.setTimeout(tick,1500);};const upload=async(slotKey,files)=>{if(!files||!files.length||busySlots[slotKey])return;const setSlotError=msg=>{setErrors(p=>({...p,[slotKey]:msg}));if(msg)flashCard(\"red\");};setSlotError(\"\");setBusySlots(p=>({...p,[slotKey]:true}));try{const form=new FormData;if(anonToken)form.append(\"anonToken\",anonToken);const slotCat=UPLOAD_DOCS.find(s=>s.key===slotKey)?.cat;if(slotCat)form.append(\"category\",slotCat);Array.from(files).forEach(f=>form.append(\"file\",f));const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/upload\",{method:\"POST\",body:form});const data=await r.json().catch(()=>null);const savedFiles=data&&Array.isArray(data.saved)?data.saved.map(s=>({id:String(s.id||\"\"),name:String(s.name||\"file\"),url:String(s.url||\"\"),contentType:s.contentType?String(s.contentType):null})):[];if(savedFiles.length>0){setUploaded(p=>({...p,[slotKey]:[...p[slotKey]||[],...savedFiles]}));// Extraction runs in the background, so poll /profile for the\n// running count of facts Frank has read from the documents.\npollExtracted();}if(data&&Array.isArray(data.rejected)&&data.rejected.length){setSlotError(data.rejected.length+\" file\"+(data.rejected.length===1?\"\":\"s\")+\" couldn't be added (type or size).\");}else if(savedFiles.length===0){setSlotError(\"That upload didn't go through \"+EMDASH+\" give it another go.\");}}catch(e){setSlotError(\"Couldn't reach the server \"+EMDASH+\" give it another go.\");}finally{setBusySlots(p=>({...p,[slotKey]:false}));}};// Remove an attached file: delete it server-side (scoped to this account),\n// then drop it from the slot. Optimistic only on a confirmed OK.\nconst removeFile=async(slotKey,id)=>{if(!id||removing)return;setRemoving(id);setErrors(p=>({...p,[slotKey]:\"\"}));try{const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/delete-document\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({anonToken:anonToken||undefined,documentId:id})});if(r.ok){setUploaded(p=>({...p,[slotKey]:(p[slotKey]||[]).filter(f=>f.id!==id)}));}else{setErrors(p=>({...p,[slotKey]:\"Couldn't remove that just then \"+EMDASH+\" try again.\"}));flashCard(\"red\");}}catch(e){setErrors(p=>({...p,[slotKey]:\"Couldn't reach the server \"+EMDASH+\" try again.\"}));flashCard(\"red\");}finally{setRemoving(null);}};const h2Size=isMobile?22:40;const fontFace=\"@font-face{font-family:'TT Commons';src:url('\"+apiBaseUrl+\"/fonts/TTCommonsVarRoman.ttf') format('truetype');font-weight:100 900;font-display:swap;}\"+\".frank-docs *{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,0.2) transparent;}\"+\".frank-docs ::-webkit-scrollbar{width:8px;height:8px;}\"+\".frank-docs ::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.18);border-radius:8px;}\";return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,className:\"frank-docs\",style:{width:\"100%\",height:fillH?\"100%\":\"auto\",// Fill the viewport on desktop so the content-sized card centers\n// vertically in the screen (the frame's own height may be\n// content-sized, so a % wouldn't give us room to center).\nminHeight:0,boxSizing:\"border-box\",fontFamily,background:stageBg,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:0},children:[/*#__PURE__*/_jsx(\"style\",{children:fontFace}),/*#__PURE__*/_jsxs(motion.div,{style:{width:\"100%\",// Fill the frame the same as every other step. (No `layout`\n// here -- it snapshotted the card to its content height and\n// made this screen shorter than the rest.)\nmaxWidth:undefined,height:mobileFixed?mobileHeight:fillH?\"100%\":\"auto\",minHeight:0,boxSizing:\"border-box\",// Extra breathing room inside the card on mobile (on top of\n// each region's own padding); desktop keeps its larger insets.\npadding:isMobile?16:0,display:\"flex\",flexDirection:\"column\",background:cardBackground,borderRadius:isMobile&&fillH?0:isMobile?mobileCornerRadius:desktopCornerRadius,overflow:\"hidden\",boxShadow:cardShadow,transition:\"box-shadow 0.45s ease\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{// Fill the card on desktop so the strip can center in the\n// space between the title and the bottom button bar.\nflex:fillH||mobileFixed?1:\"0 0 auto\",maxHeight:isMobile&&!mobileFixed?\"70dvh\":undefined,minHeight:0,overflowY:\"auto\",padding:isMobile?\"28px 20px 12px\":\"44px 44px 20px\",display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:isMobile?20:26,fontWeight:400,lineHeight:1.25,letterSpacing:-.4,color:INK,margin:0},children:\"Upload documents\"}),/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:isMobile?15:17,color:\"rgba(0,0,0,0.55)\",margin:0,lineHeight:1.5},children:[botName,\" can do a lot of the heavy lifting by reading your documents. You don't have to upload them all, but the more you do, the quicker we can help out.\"]}),extracted>0&&/*#__PURE__*/_jsxs(\"p\",{style:{fontSize:14,color:EMERALD,margin:\"2px 0 0\",lineHeight:1.4},children:[botName,\" pulled \",extracted,\" detail\",extracted===1?\"\":\"s\",\" from your documents so far.\"]})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:14,overflowX:\"auto\",overflowY:\"hidden\",paddingBottom:8,scrollSnapType:\"x proximity\",// Center the strip vertically in the space below the\n// title (the auto margins absorb the free space).\nflexShrink:0,marginTop:\"auto\",marginBottom:\"auto\"},children:UPLOAD_DOCS.map(slot=>{const files=uploaded[slot.key]||[];const n=files.length;const busy=!!busySlots[slot.key];return(// A native <label> so tapping the card opens the\n// file picker reliably (a programmatic .click()\n// on a hidden input is silently ignored by iOS).\n/*#__PURE__*/_jsxs(\"label\",{style:{position:\"relative\",flexShrink:0,width:isMobile?172:200,height:isMobile?248:280,display:\"flex\",flexDirection:\"column\",gap:8,padding:16,borderRadius:14,background:\"#f4f4f5\",border:\"1px solid \"+(n>0?\"rgba(34,197,94,0.45)\":\"rgba(0,0,0,0.08)\"),cursor:busy?\"default\":\"pointer\",boxSizing:\"border-box\",scrollSnapAlign:\"start\",// Block re-triggering while this card uploads.\npointerEvents:busy?\"none\":\"auto\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"file\",multiple:true,style:{display:\"none\"},onChange:e=>{upload(slot.key,e.target.files);e.currentTarget.value=\"\";}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:6},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:1,minWidth:0,fontSize:15,color:INK,lineHeight:1.25},children:slot.title}),n>0&&/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,color:EMERALD,display:\"flex\",marginTop:2},children:/*#__PURE__*/_jsx(Check,{})})]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:12,color:\"rgba(0,0,0,0.5)\",margin:0,lineHeight:1.35},children:slot.hint}),n===0?/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:10,borderRadius:16,border:\"1.5px dashed rgba(0,0,0,0.15)\",color:\"rgba(0,0,0,0.4)\",textAlign:\"center\",padding:12},children:[busy?/*#__PURE__*/_jsx(FrankSpinner,{size:22,color:\"rgba(0,0,0,0.4)\"}):/*#__PURE__*/_jsx(Upload,{color:\"rgba(0,0,0,0.4)\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,lineHeight:1.4,color:busy?\"rgba(0,0,0,0.4)\":accentColor},children:busy?\"Reading\"+HELLIP:\"Tap to upload\"})]}):/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minHeight:0,overflowY:\"auto\",display:\"flex\",flexDirection:\"column\",gap:8},children:[files.map(f=>/*#__PURE__*/_jsx(FilePreview,{file:f,busy:removing===f.id,onRemove:()=>removeFile(slot.key,f.id)},f.id||f.name)),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:12,color:\"rgba(0,0,0,0.4)\",textAlign:\"center\",paddingTop:2},children:busy?\"Reading\"+HELLIP:\"Tap to add more\"})]}),errors[slot.key]&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:12,color:\"#c0392b\",margin:0,lineHeight:1.35},children:errors[slot.key]})]},slot.key));})})]}),/*#__PURE__*/_jsxs(\"div\",{style:{flexShrink:0,padding:isMobile?\"16px 20px 24px\":\"20px 44px 32px\",borderTop:\"1px solid rgba(0,0,0,0.06)\",display:\"flex\",flexDirection:isMobile?\"column\":\"row\",alignItems:isMobile?\"stretch\":\"center\",gap:16},children:[/*#__PURE__*/_jsx(PrimaryButton,{label:totalUploaded>0?\"Continue\":\"Continue without documents\",accentColor:accentColor,disabled:anyBusy,fullWidth:isMobile,onClick:props.onContinue}),/*#__PURE__*/_jsx(\"p\",{style:{flex:1,fontSize:12,color:\"rgba(0,0,0,0.4)\",lineHeight:1.5,margin:0},children:\"Your documents stay private and attached to your application. You can always add more later.\"})]})]})]});}// --- Embedded agent (chat + application rail, no nav) ----------------------\nfunction AgentView(props){const{apiBaseUrl,fontFamily}=props;const accent=props.accentColor||INK;const stageBg=props.stageBackground||STAGE_BG;const botName=props.botName||\"Frank\";const mobileCornerRadius=typeof props.mobileCornerRadius===\"number\"?props.mobileCornerRadius:24;const desktopCornerRadius=typeof props.desktopCornerRadius===\"number\"?props.desktopCornerRadius:36;const mobileShadow=props.mobileShadow!==false;const mobileHeight=typeof props.mobileHeight===\"number\"&&props.mobileHeight>0?props.mobileHeight:0;// Image shown on the left of the final thank-you modal. Resized WebP (~68KB)\n// of public/login.jpg.\nconst heroSrc=apiBaseUrl+\"/hero-login.webp\";const rootRef=useRef(null);const scrollRef=useRef(null);// Seed from the viewport so the FIRST paint already knows mobile vs desktop\n// (otherwise the agent flashes the desktop side-rail before the drawer on\n// phones). The ResizeObserver corrects to the real component width on mount.\nconst[width,setWidth]=useState(()=>typeof window!==\"undefined\"&&window.innerWidth?window.innerWidth:1100);const[anonToken,setAnonToken]=useState(props.anonToken);const[messages,setMessages]=useState([]);const[appFields,setAppFields]=useState({});const[callSheet,setCallSheet]=useState({});const[docPct,setDocPct]=useState({});const[docSet,setDocSet]=useState([]);const[providers,setProviders]=useState([]);// Call-sheet sections that count for this borrower's tier (server-scoped).\n// null = the full call sheet; a Tier 5 borrower comes back scoped to just a\n// couple, so the rail's progress + readiness math weighs only those.\nconst[activeSections,setActiveSections]=useState(null);// Server-computed pre-screening progress (0-100) for THIS borrower's tier --\n// reflects the actual number of steps their tier needs, so the bar fills to\n// 100% when the (few) Tier 5 items are done. -1 until the first profile load.\nconst[serverProgress,setServerProgress]=useState(-1);// Lenders flagged ready since this session began (optimistic), keyed to their\n// sent timestamp; merged with each provider's server-side `sentAt`.\nconst[justSent,setJustSent]=useState({});const[sendingLender,setSendingLender]=useState(null);const[draft,setDraft]=useState(\"\");const[sending,setSending]=useState(false);const[gate,setGate]=useState(null);// Terminal upload + submit step. Once pre-screening (the full call sheet) is\n// complete the server sends preScreeningMet -> the composer is replaced by an\n// Upload (multi-file) button + a Submit button. Submit fires the modal.\nconst[uploadPhase,setUploadPhase]=useState(false);const[uploadedCount,setUploadedCount]=useState(0);const[uploading,setUploading]=useState(false);const[submitting,setSubmitting]=useState(false);const[submitDone,setSubmitDone]=useState(false);const[uploadError,setUploadError]=useState(\"\");const fileInputRef=useRef(null);// Documents popup (replaces the old always-on side rail). Opened from the\n// attach icon in the composer; holds the required-documents checklist + the\n// apply / send-to-Frank actions, in the onboarding visual style.\nconst[docsOpen,setDocsOpen]=useState(false);const docsFileInputRef=useRef(null);// Intro gate: on load we show only Frank (centered) + the first welcome\n// bubble. \"Let's go\" flips `started`, which slides the rail in beside the\n// chat on desktop (or makes the Progress drawer reachable on mobile) and\n// reveals the second welcome bubble. `menuOpen` drives the mobile drawer.\n// Auto-start: the agent now lands directly in the chat (no \"Let's go\"\n// gate), matching the other onboarding screens.\nconst[started,setStarted]=useState(true);const[menuOpen,setMenuOpen]=useState(false);// The 2nd welcome bubble holds back until the rail cards have fully revealed.\nconst[showWelcome2,setShowWelcome2]=useState(false);// Guards the one-time kickoff turn that opens Frank's intake.\nconst kickedRef=useRef(false);// Live mirror of messages.length, so the delayed kickoff can skip itself if\n// the borrower already started typing during the reveal.\nconst msgLenRef=useRef(0);// True while the in-chat \"Apply now\" is firing applications to every lender\n// the borrower is ready for.\nconst[applyingAll,setApplyingAll]=useState(false);// Wrap-up rescue: the intake is long, so if the borrower goes idle OR Frank\n// ends up repeating a question, we surface a reassuring \"we've got your\n// details, we'll take it to the lenders\" dialogue instead of letting them\n// stall. `endSubmitted` flips once they've confirmed (or we've flagged the\n// matched lenders for the Frank team).\nconst[ended,setEnded]=useState(false);const[endBusy,setEndBusy]=useState(false);const[endSubmitted,setEndSubmitted]=useState(false);// Last assistant message we've checked for repetition, so dismissing the\n// dialogue (\"keep going\") doesn't immediately re-trigger on the same message.\nconst lastCheckedMsgRef=useRef(null);// The auto (idle / repetition) trigger fires at most ONCE per session -- once\n// the borrower has seen and dismissed it, we don't keep nagging; the manual\n// \"Send my progress to Frank\" control is always there if they want it.\nconst autoEndUsedRef=useRef(false);useEffect(()=>{const el=rootRef.current;if(!el)return;const ro=new ResizeObserver(entries=>{for(const e of entries)setWidth(e.contentRect.width);});ro.observe(el);setWidth(el.getBoundingClientRect().width);return()=>ro.disconnect();},[]);// Hydrate the rail (and any prior transcript) from the seeded account.\nuseEffect(()=>{const tok=props.anonToken;if(!tok)return;(async()=>{try{const[hRes,pRes]=await Promise.all([fetch(apiBaseUrl+\"/api/public/sme-widget/history?anonToken=\"+encodeURIComponent(tok)),fetch(apiBaseUrl+\"/api/public/sme-widget/profile?anonToken=\"+encodeURIComponent(tok))]);const hist=await hRes.json().catch(()=>null);const prof=await pRes.json().catch(()=>null);if(hist&&Array.isArray(hist.messages)&&hist.messages.length){const hydrated=hist.messages.filter(m=>!(m.role===\"USER\"&&m.content===AGENT_KICKOFF)).map(m=>({id:m.id,role:m.role===\"USER\"?\"USER\":\"ASSISTANT\",content:m.content,suggestions:Array.isArray(m.suggestions)?m.suggestions:[],quickReplies:Array.isArray(m.quickReplies)?m.quickReplies:[],pageActions:Array.isArray(m.pageActions)?m.pageActions:[]}));if(hydrated.length){setMessages(hydrated);// Returning visitor with a transcript -- skip the intro\n// gate (welcomes stay pinned above their history).\nsetStarted(true);}}if(prof){const{fields,sheet,docPct,docSet,providers,activeSections}=parseProfilePayload(prof);setAppFields(fields);setCallSheet(sheet);setDocPct(docPct);setDocSet(docSet);setProviders(providers);setActiveSections(activeSections);if(typeof prof.preScreeningPct===\"number\")setServerProgress(prof.preScreeningPct);// Returning visitor who already finished pre-screening -> land\n// straight on the upload + submit terminal.\nif(prof.preScreeningMet)setUploadPhase(true);if(prof.submittedAt)setUploadedCount(c=>c||1);}}catch(e){/* ignore hydrate errors -- start fresh */}})();},[apiBaseUrl,props.anonToken]);const refreshProfile=useCallback(async tok=>{if(!tok)return;try{const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/profile?anonToken=\"+encodeURIComponent(tok));const prof=await r.json().catch(()=>null);if(prof){const{fields,sheet,docPct,docSet,providers,activeSections}=parseProfilePayload(prof);setAppFields(fields);setCallSheet(sheet);setDocPct(docPct);setDocSet(docSet);setProviders(providers);setActiveSections(activeSections);if(typeof prof.preScreeningPct===\"number\")setServerProgress(prof.preScreeningPct);}}catch(e){/* ignore */}},[apiBaseUrl]);useEffect(()=>{const el=scrollRef.current;if(el)el.scrollTop=el.scrollHeight;},[messages,sending,gate,started,showWelcome2]);const sendMessage=useCallback(async(text,startInlineForm,hideUser)=>{const trimmed=text.trim();if(!trimmed||sending)return;setDraft(\"\");// The kickoff turn is sent to Frank but never shown (hideUser) -- it\n// just makes him open with his first question.\nif(!hideUser){setMessages(prev=>[...prev,{id:uid(),role:\"USER\",content:trimmed}]);}setSending(true);try{const res=await fetch(apiBaseUrl+\"/api/public/sme-widget/chat\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({anonToken:anonToken||undefined,message:trimmed,startInlineForm:startInlineForm===true})});const data=await res.json().catch(()=>null);if(data&&data.anonToken&&data.anonToken!==anonToken){setAnonToken(data.anonToken);try{window.localStorage.setItem(STORAGE_KEY,data.anonToken);}catch(e){/* ignore */}}if(data&&data.gated){setGate(\"account\");return;}// Terminal step. Frank's closing is model-generated and can fire\n// twice (once before the gate flips, once after), so detect it\n// deterministically: the gate is met, OR his reply doesn't end in\n// a question (every non-terminal reply must). When terminal, show\n// ONE fixed closing line + lock the composer to a single button\n// (handled below) -- no duplicate goodbye, no documents popup.\nconst replyText=data&&typeof data.reply===\"string\"?data.reply:\"\";const looksClosing=replyText.trim().length>0&&!replyText.trim().endsWith(\"?\");const entersUpload=data&&data.preScreeningMet===true||looksClosing;if(entersUpload)setUploadPhase(true);if(data&&typeof data.reply===\"string\"){if(entersUpload){// Collapse to a single deterministic closing bubble; never\n// append it twice if a premature goodbye already showed.\nsetMessages(prev=>{const lastMsg=prev[prev.length-1];if(lastMsg&&lastMsg.content===TERMINAL_CLOSING)return prev;return[...prev,{id:uid(),role:\"ASSISTANT\",content:TERMINAL_CLOSING,suggestions:[],quickReplies:[],pageActions:[]}];});}else{setMessages(prev=>[...prev,{id:uid(),role:\"ASSISTANT\",content:data.reply,suggestions:Array.isArray(data.suggestedDocs)?data.suggestedDocs:[],quickReplies:Array.isArray(data.quickReplies)?data.quickReplies:[],pageActions:Array.isArray(data.pageActions)?data.pageActions:[]}]);}if(data.extracted&&typeof data.extracted===\"object\"){setAppFields(prev=>{const merged={...prev};for(const k of Object.keys(data.extracted)){const v=data.extracted[k];if(v!==undefined&&v!==null&&v!==\"\"&&v!==0)merged[k]=v;}return merged;});}void refreshProfile(data.anonToken||anonToken);}else{setMessages(prev=>[...prev,{id:uid(),role:\"ASSISTANT\",content:\"Sorry, I hit a snag there. Mind trying that again?\"}]);}}catch(e){setMessages(prev=>[...prev,{id:uid(),role:\"ASSISTANT\",content:\"I couldn't reach the server just then. Give it another go in a moment.\"}]);}finally{setSending(false);}},[apiBaseUrl,anonToken,sending,refreshProfile]);// Single entry point for a borrower answer (typed OR a quick-reply tap).\n// Phone is now captured up front on the registration screen, so there's no\n// longer an in-chat phone step to interleave here.\nconst answer=raw=>{const text=raw.trim();if(!text||sending)return;void sendMessage(text);};// Terminal-step file upload: send the chosen files (multi) straight to the\n// borrower's profile via the anonToken. No claim/gate -- by this point they\n// have registered, so the token maps to their own account.\nconst onPickFiles=useCallback(async files=>{if(!files||!files.length||uploading)return;setUploadError(\"\");setUploading(true);try{const form=new FormData;if(anonToken)form.append(\"anonToken\",anonToken);Array.from(files).forEach(f=>form.append(\"file\",f));const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/upload\",{method:\"POST\",body:form});const data=await r.json().catch(()=>null);const n=data&&Array.isArray(data.saved)?data.saved.length:0;if(n>0)setUploadedCount(c=>c+n);if(data&&Array.isArray(data.rejected)&&data.rejected.length){setUploadError(data.rejected.length+\" file\"+(data.rejected.length===1?\"\":\"s\")+\" couldn't be added (type or size).\");}else if(n===0){setUploadError(\"Upload didn't go through \"+EMDASH+\" try again.\");}}catch(e){setUploadError(\"Couldn't reach the server \"+EMDASH+\" try again.\");}finally{setUploading(false);}},[apiBaseUrl,anonToken,uploading]);// Final submit: flag the application + notify the Frank team, then show the\n// confirmation modal.\nconst submitApplication=useCallback(async()=>{if(submitting)return;setSubmitting(true);try{await fetch(apiBaseUrl+\"/api/public/sme-widget/submit\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({anonToken:anonToken||undefined})});}catch(e){/* show the confirmation regardless -- submit is best-effort */}finally{setSubmitting(false);setSubmitDone(true);}},[apiBaseUrl,anonToken,submitting]);// Flag a provider's application ready to send. Optimistically marks it sent,\n// POSTs the flag (creates the team notification + email server-side), then\n// re-pulls the profile so the persisted `sentAt` sticks across reloads.\nconst sendApplication=useCallback(async lender=>{if(!anonToken||sendingLender)return;setSendingLender(lender);const stamp=new Date().toISOString();try{const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/send-application\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({anonToken,lender})});if(r.ok){setJustSent(prev=>({...prev,[lender]:stamp}));void refreshProfile(anonToken);}}catch(e){/* ignore -- the bar stays ready, they can retry */}finally{setSendingLender(null);}},[anonToken,sendingLender,apiBaseUrl,refreshProfile]);const wide=width>=1024;const isMobile=width<768;// Green shadow flash when the agent screen appears.\nconst{shadow:cardShadow,flash:flashCard}=useShadowFlash(isMobile?mobileShadow?MOBILE_SHADOW:\"none\":DESKTOP_SHADOW);useEffect(()=>{flashCard(\"green\");},[flashCard]);// Fill the parent height on desktop, or on mobile while the fullscreen\n// takeover owns the screen; only an inline mobile agent sizes to content.\nconst fill=props.fill||!isMobile;// No fixed height during the fullscreen takeover (fill true on mobile means\n// takeover) -- the card fills the layer instead.\nconst mobileFixed=isMobile&&mobileHeight>0&&!fill;// A drawer only exists on mobile; if the viewport grows to a desktop width\n// (the rail becomes an inline panel) make sure a left-open drawer can't\n// linger off-screen capturing nothing.\nuseEffect(()=>{if(!isMobile&&menuOpen)setMenuOpen(false);},[isMobile,menuOpen]);// Two-part welcome shown before Frank's first real reply.\n// The old standalone \"Thanks\" confirmation screen was removed; its wrap-up\n// copy now opens the agent conversation as the first two bubbles.\nconst welcome1=\"We've saved your details, your matches, and any documents you uploaded. A member of \"+botName+\"'s team will be in touch within 24 hours.\";const welcome2=\"Want things to move faster? Keep going with \"+botName+\" now. Answer a few more questions and we can get you in front of lenders sooner.\";// Welcome bubbles stay pinned at the top of the transcript; Frank's real\n// conversation (kicked off after \"Let's go\") appends beneath them. The\n// pre-login recap (onboarding Q&A + documents step) sits above everything.\nconst displayMessages=[...props.priorHistory||[],{id:\"greeting-1\",role:\"ASSISTANT\",content:welcome1},...showWelcome2?[{id:\"greeting-2\",role:\"ASSISTANT\",content:welcome2}]:[],...messages];const last=displayMessages[displayMessages.length-1];const showQuickReplies=!gate&&!draft.trim()&&!!last&&last.role===\"ASSISTANT\"&&Array.isArray(last.quickReplies)&&last.quickReplies.length>0;const basicsFilled=APP_FIELDS.filter(f=>{const v=appFields[f.key];return v!==undefined&&v!==null&&v!==\"\"&&v!==0;}).length;const basicsTotal=APP_FIELDS.length;// Only the sections the server says count for this borrower's tier. A Tier 5\n// borrower is scoped to a couple of sections, so the rest must drop out of\n// the progress + readiness math or \"ready to apply\" would never reach 100%\n// waiting on sections the agent never asks about. null = full call sheet.\nconst scopedSections=activeSections?SECTIONS.filter(s=>activeSections.includes(s.key)):SECTIONS;const sectionsTotal=scopedSections.reduce((a,s)=>a+s.fields.length,0);const sectionsFilled=scopedSections.reduce((a,s)=>{const d=callSheet[s.key]||{};return a+s.fields.filter(f=>String(d[f.key]??\"\").trim().length>0).length;},0);const appFilled=basicsFilled+sectionsFilled;const appTotal=basicsTotal+sectionsTotal;// Per-section completion for the header progress bar (one segment per\n// section). currentSection = the first section not yet complete.\nconst sectionProgressList=scopedSections.map(s=>{const d=callSheet[s.key]||{};const total=s.fields.length;const filled=s.fields.filter(f=>String(d[f.key]??\"\").trim().length>0).length;return{key:s.key,title:s.title,pct:total?filled/total:0};});const currentSection=sectionProgressList.find(s=>s.pct<1);// Per-doc completion reflects uploaded files on file. Show live per-doc\n// completion so the panel visibly fills as documents come in; the bar is\n// the fractional sum so partial progress is reflected.\nconst docValue=key=>Math.max(0,Math.min(100,docPct[key]??0));// Render the server-resolved tier doc set when present; fall back to the\n// full static catalog before the first profile load.\nconst activeDocs=docSet.length?docSet:DOC_CATEGORIES;const docsValue=activeDocs.reduce((a,c)=>a+docValue(c.key)/100,0);// Per-provider readiness. A provider is \"ready to send\" once every shared\n// application field AND every document ITS tier requires is complete. Higher\n// tiers ask for more docs, so the same borrower can be ready for one lender\n// while still mid-package for another.\nconst providerState=providers.map(p=>{const filled=appFilled+p.docProgress;const totalItems=appTotal+p.docTotal;const pct=totalItems>0?filled/totalItems*100:0;const complete=totalItems>0&&filled>=totalItems-.01;const sentAt=justSent[p.lender]||p.sentAt||null;return{...p,pct,complete,sentAt};});const providersSent=providerState.filter(p=>p.sentAt).length;// Lenders the borrower is ready to apply to (complete + not yet sent). When\n// there's at least one, an \"Apply now\" CTA shows in the chat composer; one\n// tap flags every ready lender.\nconst readyLenders=providerState.filter(p=>p.complete&&!p.sentAt).map(p=>p.lender);const showApplyNow=started&&!gate&&readyLenders.length>0;const applyReady=async()=>{if(applyingAll||!anonToken||readyLenders.length===0)return;setApplyingAll(true);const applied=[];try{// This does NOT contact any lender -- it flags the application for the\n// Frank team to vet, then we tell the borrower it's been sent.\nfor(const lender of readyLenders){const stamp=new Date().toISOString();try{const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/send-application\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({anonToken,lender})});if(r.ok){setJustSent(prev=>({...prev,[lender]:stamp}));applied.push(lender);}}catch(e){/* ignore one; keep going */}}void refreshProfile(anonToken);if(applied.length){const phrase=applied.length===1?applied[0]:applied.slice(0,-1).join(\", \")+\" and \"+applied[applied.length-1];setMessages(prev=>[...prev,{id:uid(),role:\"ASSISTANT\",content:\"All set \"+EMDASH+\" your application to \"+phrase+\" has been sent. The Frank team will be in touch as soon as we hear back.\"}]);}}finally{setApplyingAll(false);}};// Confirm the wrap-up: flag every matched lender not already sent so the\n// Frank team picks the lead up (best-effort; the account + phone + answers\n// are already persisted, so nothing is lost even if a flag misfires).\nconst confirmWrapUp=useCallback(async()=>{if(endBusy)return;setEndBusy(true);const pending=providerState.filter(p=>!p.sentAt).map(p=>p.lender);try{for(const lender of pending){const stamp=new Date().toISOString();try{const r=await fetch(apiBaseUrl+\"/api/public/sme-widget/send-application\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({anonToken,lender})});if(r.ok)setJustSent(prev=>({...prev,[lender]:stamp}));}catch(e){/* ignore one; keep going */}}void refreshProfile(anonToken);}finally{setEndBusy(false);// Show the standard \"we've got your application\" confirmation modal\n// (the old wrap-up dialogue has been retired).\nsetSubmitDone(true);}},[endBusy,providerState,apiBaseUrl,anonToken,refreshProfile]);// ---- Intro reveal geometry ------------------------------------------------\n// Desktop wide: before \"Let's go\" the chat is a centered column and the rail\n// is clipped to 0 width; after, they split 50/50 (justify-center keeps the\n// pair centred so the chat appears to glide left as the rail grows in). The\n// rail's inner content is pinned to its final half-width and the outer motion\n// wrapper clips it, so it reveals cleanly instead of squishing mid-animation.\nconst halfW=Math.round(width/2);const chatW=wide?started?halfW:Math.min(680,width):undefined;const railW=wide?started?halfW:0:undefined;// How the rail animates + whether it accepts input, per surface.\nconst railInitial=isMobile?false:wide?false:{opacity:0,y:10};const railAnimate=isMobile?{x:menuOpen?\"0%\":\"100%\"}:wide?{width:railW,opacity:started?1:0}:{opacity:1,y:0};const railInteractive=isMobile?menuOpen:wide?started:true;// On wide screens the rail's WIDTH grows in step with the chat sliding left\n// (0.55s) -- that IS the movement. Its content opacity then fades in only\n// AFTER that movement completes (delay 0.55s), over 1.3s.\nconst railTransition=isMobile?{duration:.42,ease:[.16,1,.3,1]}:wide?{width:{duration:1,ease:\"easeInOut\"},opacity:{duration:1.3,delay:1,ease:\"easeOut\"}}:{opacity:{duration:1.3,ease:\"easeOut\"},y:{duration:.6,ease:[.16,1,.3,1]}};// After the rail card has fully faded in (~2.3s = 1.0 delay + 1.3 fade) the\n// panels' inner elements cascade in -- a waterfall, each over 750ms, ~120ms\n// apart. Wide screens only (where the slide+fade happens); on mobile/stacked\n// the elements just render. Spread onto a motion element via {...cascade(i)}.\nconst RAIL_REVEAL_AT=2.3;const cascade=i=>wide?{initial:false,animate:started?{opacity:1,y:0}:{opacity:0,y:8},transition:{duration:.75,delay:started?RAIL_REVEAL_AT+i*.12:0,ease:\"easeOut\"}}:{};// When the whole waterfall finishes: rail fade (RAIL_REVEAL_AT) + the last\n// cascaded element's delay + its 0.75s fade. Card 1 (no header now) tops out\n// at the last call-sheet section (index SECTIONS.length+1); card 2 at the\n// last lender. That's when bubble 2 is allowed to appear.\nconst maxCascadeIdx=Math.max(SECTIONS.length+1,providerState.length,1);const CARDS_REVEALED_AT=RAIL_REVEAL_AT+maxCascadeIdx*.12+.75;useEffect(()=>{msgLenRef.current=messages.length;},[messages.length]);// Sequence after \"Let's go\": the rail cards reveal, THEN the 2nd welcome\n// bubble appears, THEN Frank opens his intake (3rd bubble). Returning\n// visitors with a transcript show bubble 2 at once and skip the kickoff.\n// Mobile has no rail reveal to wait on, so it runs fast.\n// eslint-disable-next-line react-hooks/exhaustive-deps\nuseEffect(()=>{if(!started||kickedRef.current)return;kickedRef.current=true;if(messages.length>0){setShowWelcome2(true);return;}// The rail no longer slides/cascades in, so open the chat promptly.\nconst revealMs=isMobile?250:400;const t1=window.setTimeout(()=>setShowWelcome2(true),revealMs);const t2=window.setTimeout(()=>{if(msgLenRef.current===0)void sendMessage(AGENT_KICKOFF,false,true);},revealMs+800);return()=>{window.clearTimeout(t1);window.clearTimeout(t2);};},[started]);const fontFace=\"@font-face{font-family:'TT Commons';src:url('\"+apiBaseUrl+\"/fonts/TTCommonsVarRoman.ttf') format('truetype');font-weight:100 900;font-display:swap;}\"+\".frank-agent *{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,0.2) transparent;}\"+\".frank-agent ::-webkit-scrollbar{width:8px;height:8px;}\"+\".frank-agent ::-webkit-scrollbar-track{background:transparent;border:none;box-shadow:none;}\"+\".frank-agent ::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.2);border-radius:8px;border:none;}\"+\"@keyframes frankspin{to{transform:rotate(360deg)}}\";// --- Derived view state for the onboarding-style render --------------\n// Conversation type sits at the H3 scale, matching the onboarding questions.\nconst h2Size=isMobile?20:26;// Progress bar reflects the server's tier-scoped pre-screening completion\n// (so it actually reaches 100% when the borrower's few required steps are\n// done) -- once pre-screening is met it's full. Falls back to the local\n// basics+sections estimate until the first profile load arrives.\nconst localProgress=appTotal>0?Math.min(100,Math.round(appFilled/appTotal*100)):0;const progressPct=uploadPhase?100:serverProgress>=0?serverProgress:localProgress;// The conversation read as a scroll of big questions/answers: every entry\n// but the last is faded history; the last assistant line is the live\n// question (matching the onboarding \"one question at a time\" flow).\nconst flow=displayMessages;const activeMsg=flow.length?flow[flow.length-1]:null;const historyMsgs=flow.slice(0,Math.max(0,flow.length-1));const docsReady=readyLenders.length>0;const openDocs=()=>setDocsOpen(true);const pickDocsFiles=()=>{if(docsFileInputRef.current)docsFileInputRef.current.click();};// A synthetic Question so the shared BigInput pill drives the free-text answer.\nconst answerQuestion={key:\"agent-answer\",type:\"text\",q:\"\",placeholder:\"Type your answer\"+HELLIP};// The attach control -- a pill with the paperclip that opens the documents\n// popup. A circular paperclip icon button that sits INSIDE the answer pill\n// on the left (passed to BigInput's `leading` slot), like the old composer.\n// Carries a green dot when a lender is ready to apply to.\nconst attachButton=/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:openDocs,\"aria-label\":\"Documents\",title:\"Documents\",style:{position:\"relative\",flexShrink:0,height:isMobile?44:52,width:isMobile?44:52,borderRadius:9999,border:\"none\",background:\"rgba(0,0,0,0.05)\",color:\"rgba(0,0,0,0.55)\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsx(Paperclip,{}),docsReady&&/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",top:isMobile?7:9,right:isMobile?7:9,width:8,height:8,borderRadius:9999,background:RAIL_GREEN,border:\"2px solid rgba(245,245,245,1)\"}})]});return /*#__PURE__*/_jsxs(motion.div,{ref:rootRef,className:\"frank-agent\",style:{width:\"100%\",height:fill?\"100%\":\"auto\",minHeight:0,boxSizing:\"border-box\",fontFamily,background:stageBg,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:0,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"style\",{children:fontFace}),/*#__PURE__*/_jsx(\"input\",{ref:docsFileInputRef,type:\"file\",multiple:true,onChange:e=>{onPickFiles(e.target.files);e.currentTarget.value=\"\";},style:{display:\"none\"}}),/*#__PURE__*/_jsx(AnimatePresence,{children:docsOpen&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},onClick:()=>setDocsOpen(false),style:{position:\"absolute\",inset:0,zIndex:90,background:\"rgba(0,0,0,0.45)\",// Match the card's rounded corners (card fills frame).\nborderRadius:isMobile&&fill?0:isMobile?mobileCornerRadius:desktopCornerRadius,display:\"flex\",alignItems:isMobile?\"flex-end\":\"center\",justifyContent:\"center\",padding:isMobile?0:24},children:/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:isMobile?40:16,scale:isMobile?1:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:isMobile?40:8},transition:{duration:.3,ease:[.16,1,.3,1]},onClick:e=>e.stopPropagation(),style:{width:\"100%\",maxWidth:isMobile?undefined:480,maxHeight:isMobile?\"86dvh\":\"80vh\",display:\"flex\",flexDirection:\"column\",background:\"#fff\",borderRadius:isMobile?\"28px 28px 0 0\":28,overflow:\"hidden\",boxShadow:\"0 24px 60px rgba(0,0,0,0.25)\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flexShrink:0,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:12,padding:\"20px 24px 14px\"},children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h2\",{style:{fontSize:isMobile?22:26,fontWeight:400,letterSpacing:-.4,color:INK,margin:0,lineHeight:1.2},children:\"Your documents\"}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:14,color:\"rgba(0,0,0,0.5)\",margin:\"4px 0 0\",lineHeight:1.4},children:\"Upload what each lender needs, then apply.\"})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setDocsOpen(false),\"aria-label\":\"Close\",style:{flexShrink:0,height:34,width:34,borderRadius:9999,border:\"none\",cursor:\"pointer\",background:INNER_BG,color:INK,fontSize:18,lineHeight:1,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:String.fromCharCode(215)})]}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minHeight:0,overflowY:\"auto\",padding:\"0 16px 8px\",display:\"flex\",flexDirection:\"column\",gap:2},children:activeDocs.length===0?/*#__PURE__*/_jsx(\"p\",{style:{fontSize:14,color:\"rgba(0,0,0,0.4)\",margin:0,padding:\"8px 8px 16px\",lineHeight:1.5},children:\"We'll list the documents you need here as we go.\"}):activeDocs.map(d=>/*#__PURE__*/_jsx(DocRow,{title:d.title,pct:docValue(d.key),onUpload:pickDocsFiles},d.key))}),/*#__PURE__*/_jsxs(\"div\",{style:{flexShrink:0,display:\"flex\",flexDirection:\"column\",gap:10,padding:isMobile?\"14px 20px 22px\":\"16px 24px 22px\",borderTop:\"1px solid rgba(0,0,0,0.06)\"},children:[uploadError&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13,color:\"#c0392b\",margin:0,textAlign:\"center\"},children:uploadError}),/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:pickDocsFiles,disabled:uploading,style:{height:46,borderRadius:9999,border:\"1px solid rgba(0,0,0,0.12)\",background:\"#fff\",color:INK,fontSize:14,fontFamily,cursor:uploading?\"default\":\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:8},children:[/*#__PURE__*/_jsx(Upload,{color:\"rgba(0,0,0,0.55)\"}),uploading?\"Uploading\"+HELLIP:\"Upload documents\"]}),docsReady&&/*#__PURE__*/_jsx(PrimaryButton,{label:applyingAll?\"Applying\"+HELLIP:readyLenders.length>1?\"Apply now to \"+readyLenders.length+\" lenders\":\"Apply now\",accentColor:accent,fullWidth:true,disabled:applyingAll,onClick:()=>void applyReady()}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>void confirmWrapUp(),disabled:endBusy,style:{height:44,borderRadius:9999,border:\"none\",background:\"transparent\",color:\"rgba(0,0,0,0.5)\",fontSize:14,fontFamily,cursor:endBusy?\"default\":\"pointer\"},children:endBusy?\"Sending\"+HELLIP:\"Send my file to Frank\"})]})]})},\"docs-popup\")}),/*#__PURE__*/_jsx(AnimatePresence,{children:submitDone&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},onClick:()=>setSubmitDone(false),style:{position:\"absolute\",inset:0,zIndex:1e3,background:\"rgba(0,0,0,0.8)\",// Match the card's rounded corners (card fills frame).\nborderRadius:isMobile&&fill?0:isMobile?mobileCornerRadius:desktopCornerRadius,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:24,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(motion.div,{initial:{scale:.96,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.96,opacity:0},transition:{duration:.25,ease:[.16,1,.3,1]},onClick:e=>e.stopPropagation(),style:{position:\"relative\",width:\"100%\",maxWidth:isMobile?504:912,background:\"#fff\",borderRadius:28,overflow:\"hidden\",display:\"flex\",flexDirection:isMobile?\"column\":\"row\",boxShadow:\"0 30px 80px rgba(0,0,0,0.4)\"},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setSubmitDone(false),\"aria-label\":\"Close\",style:{position:\"absolute\",top:14,right:14,zIndex:2,width:34,height:34,borderRadius:9999,border:\"none\",cursor:\"pointer\",background:\"rgba(255,255,255,0.85)\",color:INK,fontSize:18,lineHeight:\"34px\",fontFamily,padding:0},children:String.fromCharCode(215)}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:isMobile?\"none\":\"1 1 50%\",padding:isMobile?\"28px 26px\":44,display:\"flex\",flexDirection:\"column\",gap:16,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:44,height:44,borderRadius:9999,background:\"rgba(52,211,153,0.15)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:RAIL_GREEN},children:/*#__PURE__*/_jsx(RailCheck,{color:RAIL_GREEN})}),/*#__PURE__*/_jsxs(\"h2\",{style:{fontSize:26,fontWeight:400,letterSpacing:-.5,lineHeight:1.15,color:INK,margin:0},children:[\"Thanks \",EMDASH,\" we've got it\"]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:15,lineHeight:1.5,color:\"rgba(0,0,0,0.55)\",margin:0},children:\"Your application is in and we'll be in touch within 24 hours. Want to talk it through sooner? Give us a call or book a time that suits you.\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:10,marginTop:\"auto\"},children:[/*#__PURE__*/_jsx(\"a\",{href:\"tel:+13185208749\",style:{flex:1,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",height:48,borderRadius:9999,background:accent,color:\"#fff\",fontSize:15,fontFamily,textDecoration:\"none\"},children:\"Call us now\"}),/*#__PURE__*/_jsx(\"a\",{href:\"https://calendly.com/loans-talktofrank\",target:\"_blank\",rel:\"noopener noreferrer\",style:{flex:1,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",height:48,borderRadius:9999,background:\"rgba(0,0,0,0.05)\",color:INK,fontSize:15,fontFamily,textDecoration:\"none\"},children:\"Book a meeting\"})]})]}),/*#__PURE__*/_jsx(\"div\",{style:{flex:isMobile?\"none\":\"0 0 50%\",width:isMobile?\"100%\":\"50%\",order:isMobile?-1:0,height:isMobile?192:\"auto\",minHeight:isMobile?192:432,backgroundImage:\"url(\"+heroSrc+\")\",backgroundSize:\"cover\",backgroundPosition:\"center\",backgroundColor:\"rgba(0,0,0,0.05)\"}})]})},\"submit-modal\")}),/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:undefined,// Same fixed size as every step; the chat scrolls inside.\nheight:mobileFixed?mobileHeight:fill?\"100%\":\"auto\",minHeight:0,boxSizing:\"border-box\",// Extra breathing room inside the card on mobile (on top of\n// each region's own padding); desktop keeps its larger insets.\npadding:isMobile?16:0,display:\"flex\",flexDirection:\"column\",background:\"#fff\",borderRadius:isMobile&&fill?0:isMobile?mobileCornerRadius:desktopCornerRadius,overflow:\"hidden\",boxShadow:cardShadow,transition:\"box-shadow 0.45s ease\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flexShrink:0,display:\"flex\",alignItems:\"center\",gap:14,padding:isMobile?\"16px 8px 16px\":\"20px 44px 20px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:1,height:6,background:\"rgba(0,0,0,0.07)\",borderRadius:9999,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{height:\"100%\",width:progressPct+\"%\",background:accent,borderRadius:9999,transition:\"width 0.45s ease\"}})}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:11,fontWeight:600,letterSpacing:.6,textTransform:\"uppercase\",color:\"rgba(0,0,0,0.45)\",whiteSpace:\"nowrap\"},children:\"Progress\"})]}),/*#__PURE__*/_jsx(\"div\",{ref:scrollRef,style:{flex:fill||mobileFixed?1:\"0 0 auto\",maxHeight:isMobile&&!fill&&!mobileFixed?\"62dvh\":undefined,minHeight:0,overflowY:\"auto\",scrollbarGutter:\"stable\",padding:isMobile?\"28px 8px 12px\":\"44px 44px 20px\",display:\"flex\",flexDirection:\"column\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:isMobile?18:24,marginTop:0},children:[historyMsgs.map(m=>/*#__PURE__*/_jsx(\"p\",{style:{fontSize:h2Size,fontWeight:400,lineHeight:1.2,letterSpacing:-.6,color:m.role===\"ASSISTANT\"?\"rgba(0,0,0,0.3)\":accent,margin:0,wordBreak:\"break-word\"},children:m.content},m.id)),activeMsg&&(activeMsg.role===\"ASSISTANT\"?/*#__PURE__*/_jsx(motion.h2,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.4,ease:[.16,1,.3,1],delay:.08},style:{fontSize:h2Size,fontWeight:400,lineHeight:1.2,letterSpacing:-.6,color:INK,margin:0,wordBreak:\"break-word\"},children:activeMsg.content},activeMsg.id):/*#__PURE__*/_jsx(\"p\",{style:{fontSize:h2Size,fontWeight:400,lineHeight:1.2,letterSpacing:-.6,color:accent,margin:0,wordBreak:\"break-word\"},children:activeMsg.content})),sending&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:10,fontSize:14,color:\"rgba(0,0,0,0.45)\"},children:[/*#__PURE__*/_jsx(AgentSpinner,{}),\"Frank is thinking\",HELLIP]})]})}),/*#__PURE__*/_jsx(\"div\",{style:{flexShrink:0,padding:isMobile?\"16px 8px 24px\":\"22px 44px 40px\",borderTop:\"1px solid rgba(0,0,0,0.06)\"},children:gate?/*#__PURE__*/_jsx(GateCard,{reason:gate,apiBaseUrl:apiBaseUrl,anonToken:anonToken,fontFamily:fontFamily,initialName:props.contact.name,initialEmail:props.contact.email,onDismiss:()=>setGate(null)}):uploadPhase?// Terminal step: a single button only -- no text entry,\n// no documents popup. Tapping it submits and shows the\n// thank-you modal.\n/*#__PURE__*/_jsx(PrimaryButton,{label:submitting?\"Submitting\"+HELLIP:\"Submit application\",accentColor:accent,fullWidth:true,disabled:submitting,onClick:()=>void submitApplication()}):/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:12},children:[showQuickReplies&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:12},children:last.quickReplies.map(label=>/*#__PURE__*/_jsx(Chip,{label:label,accentColor:accent,isMobile:isMobile,onClick:()=>answer(label)},label))}),/*#__PURE__*/_jsx(BigInput,{question:answerQuestion,value:draft,onChange:setDraft,onSubmit:()=>answer(draft),accentColor:accent,fontFamily:fontFamily,autoFocus:started,isMobile:isMobile,leading:attachButton})]})})]})]});}function DocRow(props){const[hover,setHover]=useState(false);const pct=Math.max(0,Math.min(100,Math.round(props.pct??0)));// Done = an uploaded file is on file for this category. Uploaded docs come\n// back at pct 100 from the server.\nconst done=pct>=100;const started=done;return /*#__PURE__*/_jsxs(\"div\",{onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{display:\"flex\",alignItems:\"center\",gap:10,paddingTop:8,paddingBottom:8,paddingLeft:16,paddingRight:16,borderRadius:9999,// Dark overlay (not INNER_BG) so the hover stays visible whether\n// the row sits on white or on the grey Documents card.\nbackground:hover?\"rgba(0,0,0,0.05)\":\"transparent\",transition:\"background 0.15s\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{flexShrink:0,width:16,height:16,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:done?/*#__PURE__*/_jsx(RailCheck,{color:RAIL_GREEN}):/*#__PURE__*/_jsx(Upload,{color:\"rgba(0,0,0,0.3)\",small:true})}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1,minWidth:0,fontSize:14,color:started?INK:\"rgba(0,0,0,0.45)\",overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},children:props.title}),!done&&/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:props.onUpload,title:\"Upload \"+props.title.toLowerCase(),style:{flexShrink:0,display:\"inline-flex\",alignItems:\"center\",gap:6,height:28,paddingLeft:hover?12:8,paddingRight:hover?12:8,borderRadius:9999,border:hover?\"1px solid rgba(0,0,0,0.10)\":\"1px solid transparent\",background:hover?\"#ffffff\":\"transparent\",color:hover?INK:\"rgba(0,0,0,0.55)\",fontSize:11,cursor:\"pointer\",fontFamily:\"inherit\",transition:\"all 0.15s\"},children:[hover&&/*#__PURE__*/_jsx(\"span\",{children:\"Upload\"}),/*#__PURE__*/_jsx(Upload,{color:\"currentColor\",small:true})]})]});}function GateCard(props){const[name,setName]=useState(props.initialName||\"\");const[email,setEmail]=useState(props.initialEmail||\"\");const[password,setPassword]=useState(\"\");const[busy,setBusy]=useState(false);const[error,setError]=useState(null);const headline=props.reason===\"upload\"?\"Set a password to upload\":\"Set a password to save your workspace\";const sub=props.reason===\"upload\"?\"Your documents stay private and attached to your application.\":\"Add a password so you can log back in to your full Frank workspace.\";const submit=async()=>{setError(null);if(!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.trim())){setError(\"Enter a valid email address.\");return;}if(password.length<8){setError(\"Password must be at least 8 characters.\");return;}setBusy(true);try{const res=await fetch(props.apiBaseUrl+\"/api/public/sme-widget/claim\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({anonToken:props.anonToken||undefined,name:name.trim(),email:email.trim(),password})});const data=await res.json().catch(()=>null);if(res.ok&&data&&data.loginUrl){window.location.assign(data.loginUrl);return;}setError(data&&data.error||\"Something went wrong. Please try again.\");}catch(e){setError(\"Couldn't reach the server. Please try again.\");}finally{setBusy(false);}};const inputStyle={width:\"100%\",boxSizing:\"border-box\",border:\"none\",borderRadius:9999,paddingLeft:16,paddingRight:16,paddingTop:11,paddingBottom:11,fontSize:14,fontFamily:props.fontFamily,outline:\"none\",background:\"rgba(0,0,0,0.04)\",color:INK};return /*#__PURE__*/_jsx(\"div\",{style:{paddingTop:16},children:/*#__PURE__*/_jsxs(\"div\",{style:{background:INNER_BG,borderRadius:28,padding:20,display:\"flex\",flexDirection:\"column\",gap:10},children:[/*#__PURE__*/_jsx(\"p\",{style:{fontSize:15,color:INK,margin:0},children:headline}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:13,color:\"rgba(0,0,0,0.55)\",margin:\"0 0 4px\",lineHeight:1.5},children:sub}),/*#__PURE__*/_jsx(\"input\",{style:inputStyle,placeholder:\"Your name\",value:name,onChange:e=>setName(e.target.value)}),/*#__PURE__*/_jsx(\"input\",{style:inputStyle,type:\"email\",placeholder:\"Email\",value:email,onChange:e=>setEmail(e.target.value)}),/*#__PURE__*/_jsx(\"input\",{style:inputStyle,type:\"password\",placeholder:\"Password (8+ characters)\",value:password,onChange:e=>setPassword(e.target.value),onKeyDown:e=>{if(e.key===\"Enter\")submit();}}),error&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:12,color:\"#b91c1c\",margin:0},children:error}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:submit,disabled:busy,style:{width:\"100%\",border:\"none\",borderRadius:9999,paddingTop:12,paddingBottom:12,fontSize:14,cursor:busy?\"default\":\"pointer\",background:INK,color:\"#fff\",opacity:busy?.5:1,fontFamily:props.fontFamily},children:busy?\"Saving\"+HELLIP:\"Save & continue\"}),props.onDismiss&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:props.onDismiss,style:{width:\"100%\",border:\"none\",background:\"transparent\",fontSize:13,color:\"rgba(0,0,0,0.45)\",cursor:\"pointer\",padding:0,fontFamily:props.fontFamily},children:\"Not now\"})]})});}// --- Agent icons ----------------------------------------------------------\nfunction AgentSpinner(){return /*#__PURE__*/_jsx(FrankSpinner,{size:18,color:\"rgba(0,0,0,0.55)\"});}function RailCheck(props){return /*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:props.color||\"currentColor\",strokeWidth:\"2.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"polyline\",{points:\"20 6 9 17 4 12\"})});}function Paperclip(){return /*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48\"})});}function Upload(props){const s=props.small?12:14;return /*#__PURE__*/_jsxs(\"svg\",{width:s,height:s,viewBox:\"0 0 24 24\",fill:\"none\",stroke:props.color||\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"17 8 12 3 7 8\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"3\",x2:\"12\",y2:\"15\"})]});}// --- Framer property controls --------------------------------------------\nFrankOnboardingChat.defaultProps={apiBaseUrl:\"https://frank-snowy-pi.vercel.app\",botName:\"Frank\",cardBackground:\"#ffffff\",stageBackground:\"\",accentColor:INK,fontFamily:\"\",durations:[12,24,36,48,60],mobileNavHeight:0,mobileCornerRadius:24,desktopCornerRadius:36,mobileShadow:true,mobileHeight:600,takeoverZIndex:100};addPropertyControls(FrankOnboardingChat,{apiBaseUrl:{type:ControlType.String,title:\"API base URL\",defaultValue:\"https://frank-snowy-pi.vercel.app\"},botName:{type:ControlType.String,title:\"Bot name\",defaultValue:\"Frank\"},cardBackground:{type:ControlType.Color,title:\"Card bg\",defaultValue:\"#ffffff\"},stageBackground:{type:ControlType.Color,title:\"Background\",defaultValue:\"\",description:\"Stage behind the card. Leave empty for the default white-to-grey gradient.\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:INK},fontFamily:{type:ControlType.String,title:\"Font family\",defaultValue:\"\"},durations:{type:ControlType.Array,title:\"Durations (months)\",control:{type:ControlType.Number},defaultValue:[12,24,36,48,60]},mobileNavHeight:{type:ControlType.Number,title:\"Mobile nav height\",defaultValue:0,min:0,max:200,step:1,unit:\"px\",description:\"Reserve space at the top of the mobile fullscreen takeover for a pinned site nav. 0 = cover the whole screen (the takeover shows its own Frank header).\"},mobileCornerRadius:{type:ControlType.Number,title:\"Mobile corners\",defaultValue:24,min:0,max:60,step:1,unit:\"px\",description:\"Corner radius of the card on mobile. 0 = square.\"},desktopCornerRadius:{type:ControlType.Number,title:\"Desktop corners\",defaultValue:36,min:0,max:60,step:1,unit:\"px\",description:\"Corner radius of the card on desktop. 0 = square.\"},mobileShadow:{type:ControlType.Boolean,title:\"Mobile shadow\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Drop shadow on the card on mobile.\"},mobileHeight:{type:ControlType.Number,title:\"Mobile height\",defaultValue:600,min:0,max:1200,step:10,unit:\"px\",description:\"Fixed card height on mobile so every step is the same size (body scrolls inside). 0 = size to content.\"},takeoverZIndex:{type:ControlType.Number,title:\"Takeover z-index\",defaultValue:100,min:0,max:2147483e3,step:1,description:\"Stacking order of the mobile fullscreen takeover. Keep it below your site nav / main-menu z-index so the menu opens in front of it.\"}})/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FrankOnboardingChat\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OC.map"],"mappings":"8QA+BA,SAAS,EAAQ,EAAE,CAAC,GAAG,CAAC,EAAE,MAAO,GAAE,IAAM,EAAO,GAAc,GAAG,GAAG,EAAO,OAAO,EAAO,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