1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="ace4ccea-3292-40b9-9ff5-c695280cc904",e._sentryDebugIdIdentifier="sentry-dbid-ace4ccea-3292-40b9-9ff5-c695280cc904")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74264,81510],{5999:(e,r,t)=>{t.d(r,{Ye:()=>n,g$:()=>l,tr:()=>i});let o=[["searched_at",e=>e.created_at],["type",e=>"lo"===e.pro_type?"loan officer":"realtor"],["name",e=>e.profile.name],["title",e=>e.profile.title],["company",e=>e.profile.company],["nmls",e=>e.profile.nmlsId],["email",e=>e.profile.email],["phone_cell",e=>e.profile.phoneCell],["phone_office",e=>e.profile.phoneOffice],["street",e=>{var r,t;return null!=(t=null==(r=e.profile.address)?void 0:r.street)?t:null}],["city",e=>{var r,t;return null!=(t=null==(r=e.profile.address)?void 0:r.city)?t:null}],["state",e=>{var r,t,o;return null!=(o=null==(r=e.profile.address)?void 0:r.state)?o:String(null!=(t=e.query.state)?t:"")}],["zip",e=>{var r,t;return null!=(t=null==(r=e.profile.address)?void 0:r.zip)?t:null}],["states_licensed",e=>e.profile.statesLicensed.join(" ")],["licenses",e=>e.profile.licenses.map(e=>{var r;return"".concat(e.state,":").concat(null!=(r=e.license)?r:"")}).join(" ")],["rating",e=>e.profile.rating],["reviews",e=>e.profile.reviewCount],["active_listings",e=>e.profile.activeListingCount],["sales_stats",e=>e.profile.salesStats.join("; ")],["website",e=>e.profile.socials.website],["linkedin",e=>e.profile.socials.linkedin],["instagram",e=>e.profile.socials.instagram],["facebook",e=>e.profile.socials.facebook],["youtube",e=>e.profile.socials.youtube],["tiktok",e=>e.profile.socials.tiktok],["state_rank_volume_ytd",e=>{var r,t;return null!=(t=null==(r=e.profile.rankings.find(e=>"YTD"===e.dateRange))?void 0:r.stateRankVolume)?t:null}],["us_rank_volume_ytd",e=>{var r,t;return null!=(t=null==(r=e.profile.rankings.find(e=>"YTD"===e.dateRange))?void 0:r.rankVolume)?t:null}],["us_rank_purchase_ytd",e=>{var r,t;return null!=(t=null==(r=e.profile.rankings.find(e=>"YTD"===e.dateRange))?void 0:r.rankPurchase)?t:null}],["us_rank_va_ytd",e=>{var r,t;return null!=(t=null==(r=e.profile.rankings.find(e=>"YTD"===e.dateRange))?void 0:r.rankVA)?t:null}],["us_rank_fha_ytd",e=>{var r,t;return null!=(t=null==(r=e.profile.rankings.find(e=>"YTD"===e.dateRange))?void 0:r.rankFHA)?t:null}]];function l(e){if(null==e)return"";let r=String(e);return/^[=+\-@\t\r]/.test(r)&&(r="'".concat(r)),/[",\n\r]/.test(r)?'"'.concat(r.replace(/"/g,'""'),'"'):r}function n(e){return[o.map(e=>{let[r]=e;return r}).join(","),...e.map(e=>o.map(r=>{let[,t]=r;return l(t(e))}).join(","))].join("\r\n")}function i(e,r){let t=new Blob([e],{type:"text/csv;charset=utf-8"}),o=URL.createObjectURL(t),l=document.createElement("a");l.href=o,l.download=r,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)}},63170:(e,r,t)=>{t.d(r,{y:()=>d});var o=t(95155),l=t(12115),n=t(62489),i=t(8898),a=t(11856),s=t(76150);let c={AK:[0,0],ME:[0,10],VT:[1,9],NH:[1,10],WA:[2,0],ID:[2,1],MT:[2,2],ND:[2,3],MN:[2,4],WI:[2,5],MI:[2,7],NY:[2,8],MA:[2,9],RI:[2,10],OR:[3,0],NV:[3,1],WY:[3,2],SD:[3,3],IA:[3,4],IL:[3,5],IN:[3,6],OH:[3,7],PA:[3,8],NJ:[3,9],CT:[3,10],CA:[4,0],UT:[4,1],CO:[4,2],NE:[4,3],MO:[4,4],KY:[4,5],WV:[4,6],VA:[4,7],MD:[4,8],DE:[4,9],AZ:[5,1],NM:[5,2],KS:[5,3],AR:[5,4],TN:[5,5],NC:[5,6],SC:[5,7],DC:[5,8],OK:[6,3],LA:[6,4],MS:[6,5],AL:[6,6],GA:[6,7],HI:[7,0],TX:[7,3],FL:[7,8]};function d(e){let{activeStates:r,accentColor:t="#6B46C1",stateDetails:d=[],selectedState:p,onStateSelect:u}=e,x=new Set(r.map(e=>e.toUpperCase())),h=new Map(d.map(e=>[e.code.toUpperCase(),e])),[g,f]=(0,l.useState)(null);return(0,o.jsx)(n.Grid,{templateColumns:"repeat(11, 1fr)",gap:"4px",maxW:"480px",overflow:"visible",children:Object.entries(c).map(e=>{var r,l;let[n,[c,d]]=e,b=x.has(n),m=(null==p?void 0:p.toUpperCase())===n,j=h.get(n),S=g===n;return(0,o.jsxs)(i.Box,{as:"button",gridRow:c+1,gridColumn:d+1,aspectRatio:1,position:"relative",borderRadius:"7px",bg:b?t:"gray.100",display:"flex",alignItems:"center",justifyContent:"center",title:n,cursor:u&&b?"pointer":"default",borderWidth:"1px",borderColor:m?"purple.900":b?"transparent":"gray.200",boxShadow:m?"0 0 0 3px rgba(120,40,250,0.18), 0 7px 16px rgba(120,40,250,0.20)":"none",transform:m?"translateY(-2px)":"none",transition:"all 0.15s",zIndex:S?3:m?2:1,_hover:{transform:"translateY(-2px)",boxShadow:b?"0 7px 16px rgba(120,40,250,0.20)":"0 5px 12px rgba(17,24,39,0.08)",borderColor:b?"purple.300":"gray.300"},_focusVisible:{outline:"3px solid rgba(120,40,250,0.20)",outlineOffset:"2px"},onMouseEnter:()=>f(n),onMouseLeave:()=>f(null),onFocus:()=>f(n),onBlur:()=>f(null),onClick:e=>{e.preventDefault(),b&&(null==u||u(n))},children:[(0,o.jsx)(a.Text,{fontSize:"2xs",fontWeight:b?"bold":"medium",color:b?"white":"gray.400",lineHeight:1,children:n}),S&&(0,o.jsxs)(i.Box,{position:"absolute",bottom:"calc(100% + 8px)",...d<=1?{left:0}:d>=9?{right:0}:{left:"50%",transform:"translateX(-50%)"},w:"170px",p:3,borderRadius:"12px",bg:"gray.950",color:"white",textAlign:"left",boxShadow:"0 12px 28px rgba(17,24,39,0.24)",pointerEvents:"none",children:[(0,o.jsx)(a.Text,{fontSize:"xs",fontWeight:"bold",children:null!=(r=null==j?void 0:j.label)?r:n}),j?(0,o.jsxs)(s.HStack,{justify:"space-between",mt:1.5,gap:3,children:[(0,o.jsxs)(a.Text,{fontSize:"2xs",color:"gray.300",children:[j.units.toLocaleStr
1ing()," units"]}),(0,o.jsx)(a.Text,{fontSize:"2xs",color:"purple.200",fontWeight:"bold",children:(l=j.volume)>=1e9?"$".concat((l/1e9).toFixed(1),"B"):l>=1e6?"$".concat((l/1e6).toFixed(1),"M"):l>=1e3?"$".concat(Math.round(l/1e3),"K"):"$".concat(Math.round(l))})]}):(0,o.jsx)(a.Text,{fontSize:"2xs",color:"gray.300",mt:1,children:"No recorded production"}),(0,o.jsx)(i.Box,{position:"absolute",top:"100%",left:d<=1?"18px":d>=9?"auto":"50%",right:d>=9?"18px":"auto",transform:d>1&&d<9?"translateX(-50%)":void 0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"6px solid",borderTopColor:"gray.950"})]})]},n)})})}},74264:(e,r,t)=>{t.d(r,{$m:()=>u,aF:()=>d,cw:()=>h,jl:()=>g,mH:()=>p,rQ:()=>x,s_:()=>f});var o=t(95155),l=t(12115),n=t(58579),i=t(8898),a=t(66255),s=t(28122);let c={sm:"400px",md:"600px",lg:"800px",xl:"1000px","2xl":"1200px","3xl":"1400px","4xl":"1600px"},d=e=>{let{isOpen:r,onClose:t,children:d,size:p="2xl",title:u,appearance:x="default"}=e,h="homeai"===x;return((0,l.useEffect)(()=>{if(!r)return;let e=document.body;return e.classList.add("modal-open"),()=>{e.classList.remove("modal-open")}},[r]),r)?(0,o.jsxs)(n.Portal,{children:[(0,o.jsx)(i.Box,{position:"fixed",top:0,left:0,right:0,bottom:0,bg:"rgba(0, 0, 0, 0.4)",zIndex:1e3,onClick:t}),(0,o.jsx)(i.Box,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1001,display:"flex",alignItems:"center",justifyContent:"center",children:(0,o.jsxs)(i.Box,{position:"relative",maxW:c[p]||p,w:"90%",maxH:"90vh",overflowY:"auto",bg:"surfaceElevated",borderRadius:h?"12px":"2xl",boxShadow:h?{base:"0 24px 64px rgba(15, 23, 42, 0.18)",_dark:"0 24px 64px rgba(0, 0, 0, 0.52)"}:"0 20px 60px -10px rgba(120, 40, 250, 0.3)",border:"1px solid",borderColor:h?"border":"rgba(120, 40, 250, 0.1)",pointerEvents:"auto",onClick:e=>e.stopPropagation(),children:[(0,o.jsx)(a.IconButton,{position:"absolute",top:4,right:4,size:"sm",variant:"ghost",borderRadius:h?"8px":"full",onClick:t,"aria-label":"Close modal",color:h?"ink.medium":"gray.600",_hover:{bg:"surfaceMuted",color:h?"ink.strong":"gray.800"},zIndex:1,children:(0,o.jsx)(s.yGN,{})}),u&&(0,o.jsx)(i.Box,{fontSize:"2xl",fontWeight:"bold",color:h?"ink.strong":"purple.800",p:6,pb:2,children:u}),(0,o.jsx)(i.Box,{p:6,pt:u?4:6,children:d})]})})]}):null},p=e=>{let{bg:r="blackAlpha.400",backdropFilter:t,onClick:l,zIndex:n=1e3}=e;return(0,o.jsx)(i.Box,{position:"fixed",top:0,left:0,right:0,bottom:0,bg:r,...t&&{backdropFilter:t},zIndex:n,onClick:l})},u=e=>{let{children:r,maxW:t="2xl",maxH:l="90vh",overflow:n="auto",bg:a="surfaceElevated",borderRadius:s="2xl",boxShadow:c="0 20px 60px -10px rgba(120, 40, 250, 0.3)",appearance:d="default"}=e,p="homeai"===d;return(0,o.jsx)(i.Box,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1001,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",children:(0,o.jsx)(i.Box,{position:"relative",maxW:t,w:"90%",maxH:l,overflowY:n,bg:a,borderRadius:s,boxShadow:c,border:"1px solid",borderColor:p?"border":"rgba(120, 40, 250, 0.1)",pointerEvents:"auto",onClick:e=>e.stopPropagation(),_before:p?void 0:{content:'""',position:"absolute",inset:0,borderRadius:"2xl",padding:"2px",background:"linear-gradient(135deg, purple.400, purple.700)",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"exclude",opacity:.15,zIndex:-1},children:r})})},x=e=>{let{children:r,pt:t=6,pb:l=2}=e;return(0,o.jsx)(i.Box,{fontSize:"2xl",fontWeight:"bold",color:"purple.800",p:6,pt:t,pb:l,children:r})},h=e=>{let{children:r,px:t=6,py:l=4,overflow:n,maxH:a}=e;return(0,o.jsx)(i.Box,{px:t,py:l,overflow:n,maxH:a,children:r})},g=e=>{let{children:r,px:t=6,pb:l}=e;return(0,o.jsx)(i.Box,{p:6,px:t,pb:void 0!==l?l:6,pt:4,borderTop:"1px solid",borderColor:"border.DEFAULT",bg:"primaryMuted",borderBottomRadius:"2xl",children:r})},f=e=>{let{onClick:r,borderRadius:t="full",appearance:l="default"}=e;return(0,o.jsx)(a.IconButton,{position:"absolute",top:4,right:4,size:"sm",variant:"ghost",borderRadius:t,onClick:r,"aria-label":"Close modal",color:"homeai"===l?"ink.medium":"gray.600",_hover:{bg:"surfaceMuted",color:"homeai"===l?"ink.strong":"gray.800"},children:(0,o.jsx)(s.yGN,{})})}},81510:(e,r,t)=>{t.r(r),t.d(r,{ProFinderWidget:()=>M});var o=t(95155),l=t(12115),n=t(20063),i=t(17943),a=t(59964),s=t(76150),c=t(71123),d=t(70735),p=t(11856),u=t(86555),x=t(8898),h=t(28122),g=t(95911),f=t(21863),b=t(92091),m=t(53687),j=t(54515),S=t(35761),y=t(57465),k=t(33828),v=t(74264),C=t(5999),T=t(63170);function w(e){let{src:r,name:t,size:l}=e;return r?(0,o.jsx)(f.Image,{src:r,alt:t,boxSize:l,borderRadius:"full",objectFit:"cover",flexShrink:0}):(0,o.jsx)(x.Box,{boxSize:l,borderRadius:"full",bg:"purple.100",color:"purple.700",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:(0,o.jsx)(b.Icon,{as:h.JXP,boxSize:"45%"})})}let z="#6B46C1";function I(e){let{profile:r,accent:t}=e,l=function(e){var r,t,o,l,n,i,a,s;let c=e.find(e=>"YTD"===e.dateRange),d=e.find(e=>"3"===e.dateRange);if(!c)return[];let p=[];return c.stateRankVolume&&p.push({label:"".concat(c.state," Volume"),scope:"state",value:c.stateRankVolume,threeMonth:null!=(r=null==d?void 0:d.stateRankVolume)?r:null,best:!1}),c.stateRankUnits&&p.push({label:"".concat(c.state," Units"),scope:"state",value:c.stateRankUnits,threeMonth:null!=(t=null==d?void 0:d.stateRankUnits)?t:null,best:!1}),[...p,...[["Volume",c.rankVolume,null!=(o=null==d?void 0:d.rankVolume)?o:null],["Purchase",c.rankPurchase,null!=(l=null==d?void 0:d.rankPurchase)?l:null],["VA",c.rankVA,null!=(n=null==d?void 0:d.rankVA)?n:null],["FHA",c.rank
1FHA,null!=(i=null==d?void 0:d.rankFHA)?i:null],["Refi",c.rankRefi,null!=(a=null==d?void 0:d.rankRefi)?a:null],["Conventional",c.rankConv,null!=(s=null==d?void 0:d.rankConv)?s:null]].filter(e=>null!==e[1]).sort((e,r)=>e[1]-r[1]).slice(0,4).map((e,r)=>{let[t,o,l]=e;return{label:"US ".concat(t),scope:"national",value:o,threeMonth:l,best:0===r}})]}(r.rankings);return 0===l.length?null:(0,o.jsxs)(a.VStack,{align:"stretch",gap:2,children:[(0,o.jsxs)(s.HStack,{justify:"space-between",align:"baseline",children:[(0,o.jsx)(p.Text,{fontSize:"xs",textTransform:"uppercase",letterSpacing:"wide",color:"gray.500",fontWeight:"semibold",children:"Origination rankings"}),(0,o.jsx)(p.Text,{fontSize:"2xs",color:"gray.400",children:"Year to date \xb7 all U.S. loan officers"})]}),(0,o.jsx)(m.SimpleGrid,{columns:{base:2,md:3},gap:2,children:l.map(e=>{let r=null!==e.threeMonth&&e.threeMonth<e.value;return(0,o.jsxs)(x.Box,{p:2.5,borderRadius:"lg",border:"1px solid",borderColor:e.best?t:"gray.200",bg:e.best?"".concat(t,"14"):"white",position:"relative",children:[e.best&&(0,o.jsx)(j.Badge,{position:"absolute",top:1.5,right:1.5,bg:t,color:"white",fontSize:"2xs",borderRadius:"full",px:1.5,children:"Best"}),(0,o.jsx)(p.Text,{fontSize:"2xs",color:"gray.500",textTransform:"uppercase",letterSpacing:"wide",children:e.label}),(0,o.jsx)(s.HStack,{gap:1,align:"baseline",children:(0,o.jsxs)(p.Text,{fontSize:"xl",fontWeight:"bold",color:"gray.800",lineHeight:"short",children:["#",e.value.toLocaleString()]})}),null!==e.threeMonth&&(0,o.jsxs)(s.HStack,{gap:.5,mt:.5,children:[r&&(0,o.jsx)(b.Icon,{as:h.qdV,color:t,boxSize:3}),(0,o.jsxs)(p.Text,{fontSize:"2xs",color:r?t:"gray.500",children:["#",e.threeMonth.toLocaleString()," last 3 mo"]})]})]},e.label)})})]})}let R=[{key:"website",icon:h.VeH,label:"Website",color:"purple.600"},{key:"linkedin",icon:k.QEs,label:"LinkedIn",color:"#0A66C2"},{key:"instagram",icon:k.ao$,label:"Instagram",color:"#E4405F"},{key:"facebook",icon:k.iYk,label:"Facebook",color:"#1877F2"},{key:"youtube",icon:k.Vk6,label:"YouTube",color:"#FF0000"},{key:"tiktok",icon:k.kkU,label:"TikTok",color:"gray.900"}];function B(e){let{phone:r}=e,[t,n]=(0,l.useState)(null),i=(0,l.useRef)(null);return((0,l.useEffect)(()=>{if(i.current===r)return;i.current=r,n(null);let e=new AbortController;return fetch("/api/dnc/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:r}),signal:e.signal}).then(e=>e.ok?e.json():null).then(e=>{var r,t;let o=null==e||null==(t=e.results)||null==(r=t[0])?void 0:r.onDnc;"boolean"==typeof o&&n(o)}).catch(()=>{}),()=>e.abort()},[r]),null===t)?null:(0,o.jsx)(j.Badge,{bg:t?"red.100":"green.100",color:t?"red.700":"green.700",fontSize:"2xs",children:t?"On DNC registry":"Not on DNC"})}function _(e){let{listings:r,accent:t}=e;return 0===r.length?null:(0,o.jsxs)(a.VStack,{align:"stretch",gap:1.5,children:[(0,o.jsx)(p.Text,{fontSize:"xs",textTransform:"uppercase",letterSpacing:"wide",color:"gray.500",fontWeight:"semibold",children:"Active listings"}),(0,o.jsx)(s.HStack,{gap:2,overflowX:"auto",pb:1.5,css:{scrollbarWidth:"thin"},children:r.map(e=>(0,o.jsxs)(x.Box,{minW:"150px",maxW:"150px",border:"1px solid",borderColor:"gray.200",borderRadius:"lg",overflow:"hidden",cursor:"pointer",_hover:{borderColor:t,shadow:"sm"},onClick:()=>window.open("/homes?property=".concat(encodeURIComponent(e.id)),"_blank","noopener"),children:[e.photoUrl?(0,o.jsx)(f.Image,{src:e.photoUrl,alt:e.address,w:"150px",h:"84px",objectFit:"cover"}):(0,o.jsx)(x.Box,{w:"150px",h:"84px",bg:"gray.100"}),(0,o.jsxs)(x.Box,{p:1.5,children:[null!==e.price&&(0,o.jsxs)(p.Text,{fontSize:"sm",fontWeight:"bold",color:"gray.800",children:["$",e.price.toLocaleString()]}),(0,o.jsx)(p.Text,{fontSize:"2xs",color:"gray.600",lineClamp:1,children:[[e.beds?"".concat(e.beds," bd"):null,e.baths?"".concat(e.baths," ba"):null].filter(Boolean).join(" \xb7 "),e.address].filter(Boolean).join(" \xb7 ")})]})]},e.id))})]})}function H(e){var r,t;let{profile:l}=e,n=l.address,i=n?[n.street,[n.city,n.state].filter(Boolean).join(", "),n.zip].filter(Boolean).join(" \xb7 "):null,c=R.filter(e=>{let{key:r}=e;return l.socials[r]}
1);return(0,o.jsxs)(a.VStack,{align:"stretch",gap:4,children:[(0,o.jsxs)(s.HStack,{gap:4,align:"flex-start",children:[(0,o.jsx)(w,{src:l.photoUrl,name:l.name,size:"72px"}),(0,o.jsxs)(a.VStack,{align:"stretch",gap:.5,flex:1,minW:0,children:[(0,o.jsx)(p.Text,{fontSize:"xl",fontWeight:"bold",color:"gray.800",children:l.name}),l.title&&(0,o.jsx)(p.Text,{fontSize:"sm",color:"gray.600",children:l.title}),l.company&&(0,o.jsx)(p.Text,{fontSize:"sm",color:"gray.600",fontWeight:"medium",children:l.company}),(0,o.jsxs)(S.Wrap,{gap:1.5,mt:1,children:[l.nmlsId&&(0,o.jsxs)(j.Badge,{bg:"gray.100",color:"gray.700",children:["NMLS #",l.nmlsId]}),null!==l.rating&&l.reviewCount>0&&(0,o.jsxs)(j.Badge,{bg:"yellow.100",color:"yellow.800",children:["â
",l.rating.toFixed(1)," (",l.reviewCount,")"]}),null!==l.activeListingCount&&l.activeListingCount>0&&(0,o.jsxs)(j.Badge,{bg:"blue.100",color:"blue.800",children:[l.activeListingCount," active listings"]})]})]}),l.companyLogoUrl&&(0,o.jsx)(f.Image,{src:l.companyLogoUrl,alt:null!=(r=l.company)?r:"Company logo",boxSize:"44px",borderRadius:"md",objectFit:"contain",flexShrink:0,bg:"white",border:"1px solid",borderColor:"gray.100",p:1})]}),(0,o.jsxs)(a.VStack,{align:"stretch",gap:1.5,children:[l.email&&(0,o.jsxs)(s.HStack,{gap:2,children:[(0,o.jsx)(b.Icon,{as:h.pHD,color:z,boxSize:4}),(0,o.jsx)(y.Link,{href:"mailto:".concat(l.email),fontSize:"sm",color:z,fontWeight:"medium",children:l.email})]}),l.phoneCell&&(0,o.jsxs)(s.HStack,{gap:2,children:[(0,o.jsx)(b.Icon,{as:h.QFc,color:z,boxSize:4}),(0,o.jsx)(p.Text,{fontSize:"sm",children:l.phoneCell}),(0,o.jsx)(p.Text,{fontSize:"xs",color:"gray.500",children:"cell"}),(0,o.jsx)(B,{phone:l.phoneCell})]}),l.phoneOffice&&l.phoneOffice!==l.phoneCell&&(0,o.jsxs)(s.HStack,{gap:2,children:[(0,o.jsx)(b.Icon,{as:h.QFc,color:z,boxSize:4}),(0,o.jsx)(p.Text,{fontSize:"sm",children:l.phoneOffice}),(0,o.jsx)(p.Text,{fontSize:"xs",color:"gray.500",children:"office"}),!l.phoneCell&&(0,o.jsx)(B,{phone:l.phoneOffice})]}),i&&(0,o.jsxs)(s.HStack,{gap:2,children:[(0,o.jsx)(b.Icon,{as:h.HzC,color:z,boxSize:4}),(0,o.jsx)(p.Text,{fontSize:"sm",children:i})]}),!l.email&&!l.phoneCell&&!l.phoneOffice&&(0,o.jsx)(p.Text,{fontSize:"sm",color:"gray.500",children:"No direct contact details found."})]}),c.length>0&&(0,o.jsx)(s.HStack,{gap:2,children:c.map(e=>{var r;let{key:t,icon:n,label:i,color:a}=e;return(0,o.jsx)(y.Link,{href:null!=(r=l.socials[t])?r:void 0,target:"_blank",rel:"noopener noreferrer","aria-label":i,title:i,children:(0,o.jsx)(x.Box,{boxSize:"36px",borderRadius:"full",bg:"gray.50",border:"1px solid",borderColor:"gray.200",display:"flex",alignItems:"center",justifyContent:"center",_hover:{bg:"gray.100",borderColor:"gray.300"},children:(0,o.jsx)(b.Icon,{as:n,color:"website"===t?z:a,boxSize:"18px"})})},t)})}),"lo"===l.proType&&l.statesLicensed.length>0&&(0,o.jsxs)(a.VStack,{align:"stretch",gap:1.5,children:[(0,o.jsxs)(p.Text,{fontSize:"xs",textTransform:"uppercase",letterSpacing:"wide",color:"gray.500",fontWeight:"semibold",children:["Licensed in ",l.statesLicensed.length," ",1===l.statesLicensed.length?"state":"states"]}),(0,o.jsx)(T.y,{activeStates:l.statesLicensed,accentColor:z})]}),"realtor"===l.proType&&l.licenses.length>0&&(0,o.jsxs)(a.VStack,{align:"stretch",gap:1,children:[(0,o.jsx)(p.Text,{fontSize:"xs",textTransform:"uppercase",letterSpacing:"wide",color:"gray.500",fontWeight:"semibold",children:"License"}),l.licenses.map(e=>(0,o.jsxs)(p.Text,{fontSize:"sm",color:"gray.700",children:[e.state," #",e.license,e.status?" \xb7 ".concat(e.status):"",e.expiration?" \xb7 expires ".concat(e.expiration):""]},"".concat(e.state,"-").concat(e.license)))]}),(0,o.jsx)(_,{listings:null!=(t=l.activeListings)?t:[],accent:z}),l.salesStats.length>0&&(0,o.jsxs)(a.VStack,{align:"stretch",gap:1,children:[(0,o.jsx)(p.Text,{fontSize:"xs",textTransform:"uppercase",letterSpacing:"wide",color:"gray.500",fontWeight:"semibold",children:"Recent activity"}),l.salesStats.map(e=>(0,o.jsx)(p.Text,{fontSize:"sm",color:"gray.700",children:e},e))]}),(0,o.jsx)(I,{profile:l,accent:z}),l.bio&&(0,o.jsxs)(a.VStack,{align:"stretch",gap:1,children:[(0,o.jsx)(p.Text,{fontSize:"xs",textTransform:"uppercase",letterSpacing:"wide",color:"gray.500",fontWeight:"semibold",children:"About"}),(0,o.jsx)(p.Text,{fontSize:"sm",color:"gray.700",lineClamp:5,whiteSpace:"pre-line",children:l.bio})]})]})}function N(e){let{profile:r,lookupId:t,query:n}=e,[d,x]=(0,l.useState)("idle"),[g,f]=(0,l.useState)(void 0),[m,j]=(0,l.useState)(""),[S,y]=(0,l.useState)(null),k=async()=>
1{if(void 0!==g)return g;try{var e;let r=await fetch("/api/pro-finder/webhook"),t=await r.json(),o=r.ok&&null!=(e=t.url)?e:null;return f(o),o}catch(e){return f(null),null}},v=async()=>{if(t){x("pushing"),y(null);try{let e=await fetch("/api/pro-finder/push",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t})}),r=await e.json();if(!e.ok){y(r.error||"Push failed"),x("error");return}x("pushed")}catch(e){y("Network error"),x("error")}}},T=async()=>{if(y(null),!await k())return void x("need-url");await v()},w=async()=>{x("saving"),y(null);try{let e=await fetch("/api/pro-finder/webhook",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:m})}),r=await e.json();if(!e.ok){y(r.error||"Could not save webhook"),x("need-url");return}f(r.url),await v()}catch(e){y("Network error"),x("need-url")}};return(0,o.jsxs)(a.VStack,{align:"stretch",gap:2,pt:1,borderTop:"1px solid",borderColor:"gray.100",children:[(0,o.jsxs)(s.HStack,{gap:2,children:[(0,o.jsxs)(i.Button,{size:"sm",variant:"outline",borderColor:z,color:z,_hover:{opacity:.85},onClick:()=>{let e=(0,C.Ye)([{pro_type:r.proType,query:{...n},profile:r,created_at:new Date().toISOString()}]),t=r.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");(0,C.tr)(e,"pro-finder-".concat(t||"profile",".csv"))},flex:1,children:[(0,o.jsx)(b.Icon,{as:h.a4x,mr:1.5,boxSize:3.5})," Export CSV"]}),(0,o.jsx)(i.Button,{size:"sm",bg:"pushed"===d?"green.500":z,color:"white",_hover:{opacity:"pushed"===d?1:.9},onClick:T,disabled:!t||"pushing"===d||"pushed"===d||"saving"===d,flex:1,children:"pushing"===d||"saving"===d?(0,o.jsx)(u.Spinner,{size:"xs"}):"pushed"===d?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b.Icon,{as:h.YrT,mr:1.5,boxSize:3.5})," Sent to CRM"]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b.Icon,{as:h.kGk,mr:1.5,boxSize:3.5})," Push to CRM"]})})]}),"need-url"===d&&(0,o.jsxs)(a.VStack,{align:"stretch",gap:1.5,children:[(0,o.jsx)(p.Text,{fontSize:"xs",color:"gray.600",children:"Paste your CRM webhook URL. Every push sends this profile as JSON to that endpoint, and the URL is saved for next time."}),(0,o.jsxs)(s.HStack,{gap:1.5,children:[(0,o.jsx)(c.Input,{size:"sm",placeholder:"https://your-crm.com/webhooks/pro-finder",value:m,onChange:e=>j(e.target.value)}),(0,o.jsx)(i.Button,{size:"sm",bg:z,color:"white",_hover:{opacity:.9},onClick:w,disabled:!m.trim(),children:"Save & Push"})]})]}),S&&(0,o.jsx)(p.Text,{fontSize:"xs",color:"red.500",children:S})]})}function V(e){let{isOpen:r,onClose:t,query:n,candidates:c,replayProfile:d,replayId:x}=e,[g,f]=(0,l.useState)(d?"profile":c.length>0?"pick":"loading"),[m,S]=(0,l.useState)(d),[y,k]=(0,l.useState)(x),[C,T]=(0,l.useState)(null),z=(0,l.useRef)(!1),I=(0,l.useCallback)(async e=>{f("loading"),T(null);try{var r;let t=await fetch("/api/pro-finder/profile",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,detailKey:null==e?void 0:e.detailKey,candidateToken:null==e?void 0:e.candidateToken})}),o=await t.json();if(!t.ok){T(o.error||"Profile lookup failed"),f("error");return}S(o.profile),k(null!=(r=o.id)?r:null),f("profile")}catch(e){T("Network error"),f("error")}},[n]);(0,l.useEffect)(()=>{!r||d||c.length>0||z.current||(z.current=!0,I())},[r,d,c.length,I]);let R="lo"===n.proType?"Loan Officer":"Realtor";return(0,o.jsx)(v.aF,{isOpen:r,onClose:t,size:"lg",children:(0,o.jsxs)(a.VStack,{align:"stretch",gap:4,children:[(0,o.jsxs)(a.VStack,{align:"stretch",gap:.5,children:[(0,o.jsxs)(p.Text,{fontSize:"xs",textTransform:"uppercase",letterSpacing:"wide",color:"purple.500",fontWeight:"semibold",children:["Pro Search \xb7 ",R]}),(0,o.jsxs)(p.Text,{fontSize:"lg",fontWeight:"bold",color:"gray.800",children:[n.name," \xb7 ",n.state]})]}),"pick"===g&&(0,o.jsxs)(a.VStack,{align:"stretch",gap:2,children:[(0,o.jsx)(p.Text,{fontSize:"sm",color:"gray.600",children:"Select the right person to build their full profile:"}),(0,o.jsx)(a.VStack,{align:"stretch",gap:1.5,maxH:"55vh",overflowY:"auto",children:c.map(e=>(0,o.jsxs)(s.HStack,{gap:3,p:2.5,border:"1px solid",borderColor:"gray.200",borderRadius:"lg",_hover:{borderColor:"purple.400",bg
1:"purple.50",cursor:"pointer"},onClick:()=>I(e),children:[(0,o.jsx)(w,{src:e.photoUrl,name:e.name,size:"40px"}),(0,o.jsxs)(a.VStack,{align:"stretch",gap:0,flex:1,minW:0,children:[(0,o.jsx)(p.Text,{fontSize:"sm",fontWeight:"semibold",lineClamp:1,children:e.name}),(0,o.jsx)(p.Text,{fontSize:"xs",color:"gray.600",lineClamp:1,children:[e.company,e.meta].filter(Boolean).join(" \xb7 ")||"No details listed"})]}),null!==e.rating&&e.reviewCount>0&&(0,o.jsxs)(j.Badge,{bg:"yellow.100",color:"yellow.800",flexShrink:0,children:["â
",e.rating.toFixed(1)," (",e.reviewCount,")"]})]},e.detailKey))}),(0,o.jsxs)(i.Button,{size:"sm",variant:"outline",borderColor:"purple.300",color:"purple.700",_hover:{bg:"purple.50"},onClick:()=>I(),children:[(0,o.jsx)(b.Icon,{as:h.CKj,mr:1.5,boxSize:3.5}),"None of these? Search the web instead"]})]}),"loading"===g&&(0,o.jsxs)(a.VStack,{py:10,gap:3,children:[(0,o.jsx)(u.Spinner,{size:"lg",color:"purple.500"}),(0,o.jsx)(p.Text,{fontSize:"sm",color:"gray.600",children:"Building profile from public sourcesâ¦"}),(0,o.jsx)(p.Text,{fontSize:"xs",color:"gray.400",children:"This can take up to 30 seconds."})]}),"error"===g&&(0,o.jsxs)(a.VStack,{py:8,gap:3,children:[(0,o.jsx)(p.Text,{fontSize:"sm",color:"red.500",children:C}),(0,o.jsx)(i.Button,{size:"sm",variant:"outline",onClick:()=>I(),children:"Try again"})]}),"profile"===g&&m&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(H,{profile:m}),(0,o.jsx)(N,{profile:m,lookupId:y,query:n})]})]})})}var L=t(94111);function O(e){let{isOpen:r,onClose:t,onOpenResult:n}=e,[c,d]=(0,l.useState)(!1),[g,f]=(0,l.useState)([]),[m,S]=(0,l.useState)(null),[y,k]=(0,l.useState)(null),T=(0,l.useCallback)(async()=>{d(!0),S(null);try{var e;let r=await fetch("/api/pro-finder/history"),t=await r.json();if(!r.ok)return void S(t.error||"Failed to load history");f(null!=(e=t.lookups)?e:[])}catch(e){S("Network error")}finally{d(!1)}},[]);(0,l.useEffect)(()=>{r&&T()},[r,T]);let w=async e=>{k(e),f(r=>r.filter(r=>r.id!==e));try{let r=await fetch("/api/pro-finder/history?id=".concat(encodeURIComponent(e)),{method:"DELETE"});if(!r.ok){f(g);let e=await r.json().catch(()=>({}));S(e.error||"Failed to delete")}}catch(e){f(g),S("Network error")}finally{k(null)}};return(0,o.jsx)(v.aF,{isOpen:r,onClose:t,size:"3xl",children:(0,o.jsxs)(a.VStack,{gap:5,align:"stretch",children:[(0,o.jsxs)(a.VStack,{align:"stretch",gap:1,children:[(0,o.jsx)(p.Text,{fontSize:"xs",textTransform:"uppercase",letterSpacing:"wide",color:"purple.500",fontWeight:"semibold",children:"Pro Search \xb7 history"}),(0,o.jsxs)(s.HStack,{justify:"space-between",align:"center",children:[(0,o.jsx)(p.Text,{fontSize:"lg",fontWeight:"bold",color:"gray.800",children:"Past Searches"}),(0,o.jsxs)(s.HStack,{gap:2,children:[(0,o.jsxs)(j.Badge,{bg:"purple.100",color:"purple.800",px:3,py:1,borderRadius:"full",children:[g.length," ",1===g.length?"search":"searches"]}),(0,o.jsxs)(i.Button,{size:"xs",variant:"outline",borderColor:"purple.300",color:"purple.700",_hover:{bg:"purple.50"},onClick:()=>{let e=(0,C.Ye)(g);(0,C.tr)(e,"pro-finder-searches-".concat(new Date().toISOString().slice(0,10),".csv"))},disabled:0===g.length,children:[(0,o.jsx)(b.Icon,{as:h.a4x,mr:1,boxSize:3})," Export CSV"]})]})]}),(0,o.jsxs)(p.Text,{fontSize:"xs",color:"gray.500",children:["Your last ",Math.min(g.length,50)," lookups. Click a row to re-open the profile without re-running the search."]})]}),m&&(0,o.jsx)(p.Text,{fontSize:"sm",color:"red.500",children:m}),c?(0,o.jsx)(s.HStack,{justify:"center",py:8,children:(0,o.jsx)(u.Spinner,{size:"sm",color:"purple.500"})}):0===g.length?(0,o.jsx)(x.Box,{py:10,textAlign:"center",children:(0,o.jsx)(p.Text,{color:"gray.500",children:"No past searches yet."})}):(0,o.jsx)(x.Box,{border:"1px solid",borderColor:"purple.100",borderRadius:"lg",maxH:"60vh",overflowY:"auto",children:(0,o.jsxs)(L.TableRoot,{variant:"outline",size:"sm",children:[(0,o.jsx)(L.TableHeader,{position:"sticky",top:0,bg:"primaryMuted",zIndex:1,children:(0,o.jsxs)(L.TableRow,{children:[(0,o.jsx)(L.TableColumnHeader,{color:"purple.800",children:"When"}),(0,o.jsx)(L.TableColumnHeader,{color:"purple.800",children:"Type"}),(0,o.jsx)(L.TableColumnHeader,{color:"purple.800",children:"Name"}),(0,o.jsx)(L.TableColumnHeader,{color:"purple.800",children:"Email"}),(0,o.jsx)(L.TableColumnHeader,{color:"purple.800"})]})}),(0,o.jsx)(L.TableBody,{children:g.map(e=>{var r;return(0,o.jsxs)(L.TableRow,{_hover:{bg:"purple.50",cursor:"pointer"},onClick:()=>n(e),children:[(0,o.jsx)(L.TableCell,{children:(0,o.jsxs)(s.HStack,{gap:1,children:[(0,o.jsx)(b.Icon,{as:h.Ohp,color:"gray.400",boxSize:3}),(0,o.jsx)(p.Text,{fontSize:"sm",children:(e=>{let r=new Date(e).getTime(),t=Math.floor((Date.now()-r)/1e3);return t<60?"just now":t<3600?"".concat(Math.floor(t/60),"m ago"):t<86400?"".concat(Math.floor(t/3600),"h ago"):new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})})(e.created_at)})]})}),(0,o.jsx)(L.TableCell,{children:(0,o.jsx)(j.Badge,{bg:"lo"===e.pro_type?"blue.100":"green.100",color:"lo"===e.pro_type?"blue.800":"green.800",children:"lo"===e.pro_type?"LO":"Realtor"})}),(0,o.jsx)(L.TableCell,{children:(0,o.jsxs)(p.Text,{fontSize:"sm",fontWeight:"medium",lineClamp:1,children:[e.profile.name,e.profile.company?" \xb7 ".concat(e.profile.company):""]})}),(0,o.jsx)(L.TableCell,{children:(0,o.jsx)(p.Text,{fontSize:"sm",lineClamp:1,color:e.profile.email?"purple.700":"gray.400",children:null!=(r=e.profile.email)?r:"not found"})}),(0,o.jsx)(L.TableCell,{onClick:e=>e.stopPropagation(),children:(0,o.jsxs)(s.HStack,{gap:1,children:[(0,o.jsxs)(i.Button,{size:"xs",variant:"ghost",color:"purple.600",onClick:()=>n(e),children:[(0,o.jsx)(b.Icon,{as:h.CKj,mr:1,boxSize:3})," Open"]}),(0,o.jsx)(i.Button,{size:"xs",variant:"ghost",color:"red.500",disabled:y===e.id,onClick:()=>w(e.id),children:(0,o.jsx)(b.Icon,{as:h.IXo,boxSize:3})})]})})]},e.id)})})]})})]})})}let W=["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"];function M(){let e=(0,n.useRouter)(),r=(0,n.usePathname)(),[t,f]=(0,l.useState)("lo"),[b,m]=(0,l.useState)(!1);(0,l.useEffect)(()=>
1{if(null==r?void 0:r.startsWith("/tools/pro-finder"))return;let e=!1;return fetch("/api/pro-finder/tool-enabled").then(e=>e.ok?e.json():{enabled:!1}).then(r=>{e||m((null==r?void 0:r.enabled)===!0)}).catch(()=>{}),()=>{e=!0}},[r]);let[j,S]=(0,l.useState)(""),[y,k]=(0,l.useState)(""),[v,C]=(0,l.useState)(""),[T,w]=(0,l.useState)(""),[z,I]=(0,l.useState)(!1),[R,B]=(0,l.useState)(null),[_,H]=(0,l.useState)(null),[N,L]=(0,l.useState)([]),[M,A]=(0,l.useState)(null),[F,D]=(0,l.useState)(null),[E,P]=(0,l.useState)(!1),[U,Y]=(0,l.useState)(!1),K=async()=>{if(B(null),j.trim().length<3)return void B("Enter the professional's full name");if(!y)return void B("Select a state");let e={proType:t,name:j.trim(),state:y,company:v.trim()||void 0,nmls:"lo"===t&&/^\d{4,10}$/.test(T.trim())?T.trim():void 0};I(!0);try{var r;let t=await fetch("/api/pro-finder/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),o=await t.json();if(!t.ok)return void B(o.error||"Search failed");H(e),L(null!=(r=o.candidates)?r:[]),A(null),D(null),P(!0)}catch(e){B("Network error")}finally{I(!1)}},q=(e,r)=>(0,o.jsx)(i.Button,{size:"xs",variant:t===e?"solid":"outline",bg:t===e?"purple.600":"transparent",color:t===e?"white":"purple.700",borderColor:"purple.300",_hover:t===e?{bg:"purple.700"}:{bg:"purple.50"},onClick:()=>{f(e),B(null)},flex:1,children:r},e);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.F,{title:"Pro Search",icon:h.p45,color:"purple.600",children:(0,o.jsxs)(a.VStack,{gap:2,align:"stretch",children:[(0,o.jsxs)(s.HStack,{gap:1,children:[q("lo","Loan Officer"),q("realtor","Realtor")]}),(0,o.jsx)(c.Input,{size:"sm",placeholder:"Full name (e.g., Jane Smith)",value:j,onChange:e=>S(e.target.value),disabled:z}),(0,o.jsxs)(s.HStack,{gap:1.5,children:[(0,o.jsxs)(d.NativeSelectRoot,{size:"sm",flex:"0 0 90px",disabled:z,children:[(0,o.jsxs)(d.NativeSelectField,{value:y,onChange:e=>k(e.target.value),children:[(0,o.jsx)("option",{value:"",children:"State"}),W.map(e=>(0,o.jsx)("option",{value:e,children:e},e))]}),(0,o.jsx)(d.NativeSelectIndicator,{})]}),(0,o.jsx)(c.Input,{size:"sm",placeholder:"Company (optional)",value:v,onChange:e=>C(e.target.value),disabled:z,flex:1})]}),"lo"===t&&(0,o.jsx)(c.Input,{size:"sm",placeholder:"NMLS # (optional)",value:T,onChange:e=>w(e.target.value.replace(/[^0-9]/g,"")),disabled:z}),R&&(0,o.jsx)(p.Text,{fontSize:"xs",color:"red.500",children:R}),(0,o.jsxs)(s.HStack,{gap:2,children:[(0,o.jsx)(i.Button,{size:"sm",bg:"purple.600",color:"white",_hover:{bg:"purple.700"},onClick:K,disabled:z,flex:1,children:z?(0,o.jsx)(u.Spinner,{size:"xs"}):"Find Pro"}),(0,o.jsx)(i.Button,{size:"sm",variant:"outline",borderColor:"purple.300",color:"purple.700",_hover:{bg:"purple.50"},onClick:()=>Y(!0),disabled:z,children:(0,o.jsxs)(x.Box,{as:"span",display:"inline-flex",alignItems:"center",gap:1,children:[(0,o.jsx)(h.Ohp,{})," Past"]})})]}),b&&(0,o.jsx)(i.Button,{size:"xs",variant:"ghost",color:"purple.700",_hover:{bg:"purple.50"},onClick:()=>e.push("/tools/pro-finder"),children:(0,o.jsxs)(x.Box,{as:"span",display:"inline-flex",alignItems:"center",gap:1,children:["Open Production IQ ",(0,o.jsx)(h.qdV,{})]})})]})}),E&&_&&(0,o.jsx)(V,{isOpen:E,onClose:()=>P(!1),query:_,candidates:N,replayProfile:M,replayId:F}),(0,o.jsx)(O,{isOpen:U,onClose:()=>Y(!1),onOpenResult:e=>{var r,t;H({proType:e.pro_type,name:String(null!=(r=e.query.name)?r:""),state:String(null!=(t=e.query.state)?t:""),company:e.query.company?String(e.query.company):void 0,nmls:e.query.nmls?String(e.query.nmls):void 0}),L([]),A(e.profile),D(e.id),Y(!1),P(!0)}})]})}},95911:(e,r,t)=>{t.d(r,{F:()=>h});var o=t(95155),l=t(8898),n=t(59964),i=t(76150),a=t(56579),s=t(92091),c=t(27565),d=t(11856),p=t(86555),u=t(28122),x=t(20063);function h(e){let{title:r,icon:t,color:h="purple.600",children:g,href:f,onClick:b,loading:m,error:j}=e,S=(0,x.useRouter)();return(0,o.jsxs)(l.Box,{h:"full",backdropFilter:"auto",backdropBlur:"lg",bg:"surfaceAlpha",_before:{content:'""',position:"absolute",inset:0,borderRadius:"2xl",padding:"2px",background:"linear-gradient(135deg, purple.400, purple.700)",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"exclude",opacity:.2,transition:"opacity 1s",zIndex:-1},border:"1px solid",borderColor:"rgba(255, 255, 255, 0.18)",borderRadius:"2xl",p:5,boxSh
1adow:"lg",position:"relative",overflow:"hidden",children:[(0,o.jsx)(l.Box,{position:"absolute",top:"-50%",right:"-50%",w:"200px",h:"200px",bg:h,borderRadius:"full",filter:"blur(100px)",opacity:.2}),(0,o.jsxs)(n.VStack,{align:"stretch",gap:3,position:"relative",h:"full",children:[(0,o.jsxs)(i.HStack,{justify:"space-between",align:"center",children:[(0,o.jsxs)(i.HStack,{gap:3,children:[(0,o.jsx)(a.Flex,{w:"40px",h:"40px",borderRadius:"lg",bg:h,bgGradient:"linear(135deg, ".concat(h," 0%, purple.900 100%)"),align:"center",justify:"center",boxShadow:"md",children:(0,o.jsx)(s.Icon,{color:"white",fontSize:"18px",children:(0,o.jsx)(t,{})})}),(0,o.jsx)(c.Heading,{size:"sm",color:"text.primary",fontWeight:"bold",children:r})]}),(f||b)&&(0,o.jsxs)(l.Box,{as:"button",onClick:b||(f?()=>S.push(f):void 0),color:{base:"purple.500",_dark:"purple.300"},_hover:{color:"purple.700"},cursor:"pointer",display:"flex",alignItems:"center",gap:1,fontSize:"xs",fontWeight:"medium",children:[(0,o.jsx)(d.Text,{children:"View All"}),(0,o.jsx)(u.dyV,{size:12})]})]}),m?(0,o.jsx)(a.Flex,{justify:"center",align:"center",flex:1,minH:"80px",children:(0,o.jsx)(p.Spinner,{size:"sm",color:{base:"purple.500",_dark:"purple.300"}})}):j?(0,o.jsx)(a.Flex,{justify:"center",align:"center",flex:1,minH:"80px",children:(0,o.jsx)(d.Text,{fontSize:"sm",color:"red.500",children:j})}):(0,o.jsx)(l.Box,{flex:1,children:g})]})]})}}}]);
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.