1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53367,e=>{"use strict";var t=e.i(43476),i=e.i(71645),n=e.i(22016);let o=[{key:"liquidCapital",label:"Liquid Capital",question:"How much liquid capital (cash) do you have available to invest?",options:[{value:"under50k",label:"Under $50K"},{value:"50k-100k",label:"$50K â $100K"},{value:"100k-250k",label:"$100K â $250K"},{value:"250k-500k",label:"$250K â $500K"},{value:"500k+",label:"$500K+"}]},{key:"netWorth",label:"Net Worth",question:"What is your estimated total net worth?",options:[{value:"under250k",label:"Under $250K"},{value:"250k-500k",label:"$250K â $500K"},{value:"500k-1m",label:"$500K â $1M"},{value:"1m-3m",label:"$1M â $3M"},{value:"3m+",label:"$3M+"}]},{key:"industries",label:"Industry",question:"What industries interest you? (Select all that apply)",multi:!0,options:[...["Food & Beverage","Home Services","Health & Fitness","Senior Care & Healthcare","Education & Tutoring","Business Services","Pet Services","Automotive","Beauty & Personal Care","Real Estate & Property","Hospitality & Travel","Retail","Child Services & Entertainment","Cleaning & Restoration","Other"].map(e=>({value:e,label:e}))]},{key:"involvement",label:"Involvement",question:"How involved do you want to be in day-to-day operations?",options:[{value:"owner-operator",label:"Full-time owner-operator"},{value:"semi-passive",label:"Semi-passive with a manager"},{value:"either",label:"Open to either"}]},{key:"states",label:"Location",question:"What states are you interested in? (Select all that apply)",multi:!0,options:[...["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"].map(e=>({value:e,label:e}))]},{key:"systemSize",label:"System Size",question:"What size franchise system are you most comfortable with?",options:[{value:"large",label:"500+ units â established and proven"},{value:"medium",label:"100+ units â growing and active"},{value:"small",label:"Under 100 units â newer brand, more opportunity"},{value:"any",label:"No preference"}]}];function a({franchises:e}){let a,l,r,s=function(){try{let e=localStorage.getItem("fo_quiz_state");if(!e)return null;return JSON.parse(e)}catch{return null}}(),[d,u]=(0,i.useState)(s?.step??0),[c,p]=(0,i.useState)(s?.answers??{liquidCapital:"",netWorth:"",industries:[],involvement:"",states:[],systemSize:""}),[h,x]=(0,i.useState)(s?.showResults??!1);(0,i.useEffect)(()=>{try{localStorage.setItem("fo_quiz_state",JSON.stringify({answers:c,showResults:h,step:d}))}catch{}},[c,h,d]);let m=o[d],y=(0,i.useMemo)(()=>h?e.filter(e=>!c.liquidCapital||"N/A"!==e.investmentLabel).map(e=>({...e,matchScore:function(e,t){let i=0,n=0,[o]=function(e){switch(e){case"under50k":return[0,5e4];case"50k-100k":return[5e4,1e5];case"100k-250k":return[1e5,25e4];case"250k-500k":return[25e4,5e5];case"500k+":return[5e5,1/0];default:return[0,1/0]}}(t.liquidCapital);e.cashRequired?(n+=25,o>=e.cashRequired?i+=25:o>=.7*e.cashRequired?i+=15:i+=5):e.investmentLow&&(n+=25,o>=.3*e.investmentLow?i+=25:o>=.15*e.investmentLow?i+=15:i+=5);let[a]=function(e){switch(e){case"under250k":return[0,25e4];case"250k-500k":return[25e4,5e5];case"500k-1m":return[5e5,1e6];case"1m-3m":return[1e6,3e6];case"3m+":return[3e6,1/0];default:return[0,1/0]}}(t.netWorth);if(e.netWorthRequired?(n+=15,a>=e.netWorthRequired?i+=15:a>=.7*e.netWorthRequired?i+=8:i+=2):(n+=15,i+=12),t.industries.length>0&&(n+=20,e.industry&&t.industries.includes(e.industry)?i+=20:i+=3),"either"!==t.involvement&&(n+=15,"owner-operator"===t.involvement&&!0===e.ownerOperator||"semi-passive"===t.involvement&&!1===e.ownerOperator?i+=15:null===e.ownerOperator?i+=10:i+=4),t.states.length>0&&(n+=10,e.state&&t.states.includes(e.state)?i+=10:i+=5),"any"!==t.systemSize){n+=15;let o=e.units||0;"large"===t.systemSize&&o>=500?i+=15:"large"===t.systemSize&&o>=200?i+=8:"medium"===t.systemSize&&o>=100&&o<500?i+=15:"medium"===t.systemSize&&o>=50?i+=10:"small"===t.systemSize&&o<100?i+=15:"small"===t.systemSize&&o<200?i+=10:i+=4}return 0===n?50:Math.round(i/n*100)}(e,c)})).filter(e=>e.matchScore>=40).sort((e,t)=>
1t.matchScore-e.matchScore).slice(0,50):[],[h,e,c]);return h?(0,t.jsxs)("div",{style:{maxWidth:"900px",margin:"0 auto",padding:"100px 24px 60px"},children:[(0,t.jsxs)("div",{style:{textAlign:"center",marginBottom:"40px"},children:[(0,t.jsx)("div",{style:{fontFamily:"monospace",fontSize:"11px",textTransform:"uppercase",letterSpacing:"2px",color:"#2563EB",marginBottom:"8px"},children:"Your Results"}),(0,t.jsxs)("h1",{style:{fontSize:"clamp(24px, 3.5vw, 36px)",fontWeight:800,color:"#0F172A",marginBottom:"10px"},children:["We found ",(0,t.jsx)("span",{style:{color:"#2563EB"},children:y.length})," matches for you"]}),(0,t.jsx)("p",{style:{fontSize:"15px",color:"#64748B"},children:"Ranked by how well each franchise fits your profile based on FDD data."}),(0,t.jsx)("button",{onClick:()=>{x(!1),u(0),p({liquidCapital:"",netWorth:"",industries:[],involvement:"",states:[],systemSize:""}),localStorage.removeItem("fo_quiz_state")},style:{marginTop:"12px",background:"none",border:"none",color:"#2563EB",fontSize:"13px",fontWeight:600,cursor:"pointer",textDecoration:"underline",fontFamily:"inherit"},children:"Retake Quiz"})]}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:y.map((e,i)=>(0,t.jsxs)(n.default,{href:`/company/${e.slug}`,style:{display:"flex",alignItems:"center",gap:"16px",padding:"16px 20px",background:"#fff",border:"1px solid #E2E8F0",borderRadius:"12px",textDecoration:"none",color:"inherit",boxShadow:"0 1px 4px rgba(0,0,0,0.04)",transition:"box-shadow 0.2s, border-color 0.2s"},children:[(0,t.jsx)("div",{style:{fontSize:"14px",fontWeight:700,color:"#94A3B8",width:"28px",textAlign:"center",flexShrink:0},children:i+1}),e.logoUrl?(0,t.jsx)("img",{src:e.logoUrl,alt:e.name,style:{width:"44px",height:"44px",borderRadius:"10px",objectFit:"contain",background:"#F8FAFC",flexShrink:0}}):(0,t.jsx)("div",{style:{width:"44px",height:"44px",borderRadius:"10px",background:"#F1F5F9",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"18px",fontWeight:700,color:"#2563EB",flexShrink:0},children:e.name.charAt(0)}),(0,t.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,t.jsx)("div",{style:{fontSize:"15px",fontWeight:700,color:"#0F172A"},children:e.name}),(0,t.jsxs)("div",{style:{fontSize:"12px",color:"#64748B",marginTop:"2px"},children:[e.investmentLabel," · ",e.royalty," royalty · ",e.units?e.units.toLocaleString()+" units":"N/A units",e.industry?` \xb7 ${e.industry}`:""]})]}),(0,t.jsxs)("div",{style:{padding:"6px 14px",borderRadius:"8px",fontSize:"14px",fontWeight:700,flexShrink:0,background:e.matchScore>=80?"#F0FDF4":e.matchScore>=60?"#FFFBEB":"#F8FAFC",color:e.matchScore>=80?"#059669":e.matchScore>=60?"#B45309":"#64748B"},children:[e.matchScore,"% match"]})]},e.id))}),0===y.length&&(0,t.jsx)("div",{style:{textAlign:"center",padding:"60px 20px",color:"#64748B"},children:"No strong matches found. Try broadening your criteria."}),(0,t.jsx)("div",{style:{textAlign:"center",marginTop:"40px"},children:(0,t.jsx)(n.default,{href:"/browse",style:{display:"inline-block",padding:"12px 32px",background:"#F1F5F9",color:"#0F172A",fontWeight:700,borderRadius:"10px",textDecoration:"none",fontSize:"14px"},children:"Browse All Franchises"})})]}):(0,t.jsxs)("div",{style:{maxWidth:"640px",margin:"0 auto",padding:"120px 24px 60px"},children:[(0,t.jsx)("div",{style:{display:"flex",gap:"6px",marginBottom:"40px"},children:o.map((e,i)=>(0,t.jsx)("div",{style:{flex:1,height:"4px",borderRadius:"2px",background:i<=d?"#2563EB":"#E2E8F0",transition:"background 0.3s"}},i))}),(0,t.jsxs)("div",{style:{fontFamily:"monospace",fontSize:"11px",textTransform:"uppercase",letterSpacing:"2px",color:"#2563EB",marginBottom:"8px"},children:["Question ",d+1," of ",o.length," · ",m.label]}),(0,t.jsx)("h1",{style:{fontSize:"clamp(22px, 3.5vw, 32px)",fontWeight:800,color:"#0F172A",lineHeight:1.2,marginBottom:"32px"},children:m.question}),(a="multi"in m&&m.multi,l=m.key,r=a?c[l]:[],(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px",maxHeight:a?"400px":void 0,overflowY:a?"auto":void 0,paddingRight:a?"4px":void 0},children:m.options.map(e=>{let i=a?r.includes(e.value):c[m.key]===e.value;return(0,t.jsxs)("button",{onClick:()=>(function(e){if("multi"in m&&m.multi){let t=m.key;p(i=>{let n=i[t],o=n.includes(e)?n.filter(t=>t!==e):[...n,e];return{...i,[t]:o}})}else p(t=>({...t,[m.key]:e})),d<o.length-1?u(d+1):x(!0)})(e.value),style:{padding:"14px 18px",background:i?"#EFF6FF":"#fff",border:i?"2px solid #2563EB":"1.5px solid #E2E8F0",borderRadius:"12px",fontSize:"15px",fontWeight:600,color:"#0F172A",cursor:"pointer",textAlign:"left",fontFamily:"inherit",transition:"all 0.15s",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.label,a&&i&&(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#2563EB",strokeWidth:"3",children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})})]},e.value)})}),a&&(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:"16px"},children:[(0,t.jsx)("span",{style:{fontSize:"13px",color:"#64748B"},children:0===r.length?"Select one or more, or skip to include all":`${r.length} selected`}),(0,t.jsx)("button",{onClick:function(){d<o.length-1?u(d+1):x(!0)},style:{padding:"12px 28px",background:"#2563EB",color:"#fff",fontWeight:700,borderRadius:"10px",border:"none",cursor:"pointer",fontSize:"14px",fontFamily:"inherit"},children:0===r.length?"Skip â":"Next â"})]})]})),d>0&&(0,t.jsx)("button",{onClick:()=>u(d-1),style:{marginTop:"20px",background:"none",border:"none",color:"#64748B",fontSize:"14px",cursor:"pointer",fontFamily:"inherit"},children:"â Back"})]})}e.s(["default",()=>a])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.