PageSourceSearch

https://yoron.lovable.app/assets/embed.chat._slug-Dt3KxGS0.js

js yoron.lovable.app collected 2026-10-03 03:49:56 UTC 2,937 bytes, 1 lines download raw bytes

1import{d4 as b,s as i,j as t}from"./index-tp3ZBVoO.js";import{b as r}from"./recharts-D0niEN4L.js";import{C as y}from"./ChatWidget-CUfZ4ZWA.js";import{A as N}from"./AiTransparantieCompact-Cp0BbnlR.js";import"./DruppelLoader-BZpWpeAq.js";import"./LeadForm-DdfmDAGy.js";import"./message-circle-BmKJYWJi.js";import"./search-F2k5SEC8.js";import"./index-B6JVz7iM.js";import"./rotate-ccw-DStGrL0z.js";import"./square-y2Ie5DRb.js";function B(){const{slug:s}=b.useParams(),[m,d]=r.useState(),[e,u]=r.useState(null),[h,p]=r.useState(!0),[f,g]=r.useState(!1),[x,k]=r.useState(),[w,j]=r.useState(null);return r.useEffect(()=>{const l=new URLSearchParams(window.location.search);k(l.get("source")||document.referrer||void 0);const o=l.get("thema");o&&["verzekeringen","hypotheek","pensioen","inkomen","vermogen","erfrecht","bedrijfsfinanciering"].includes(o)&&j(o),(async()=>{const[{data:v},{data:c}]=await Promise.all([i.rpc("get_assistant_welkomstbericht",{_type:"financieel"}),i.rpc("get_kantoor_chat_public",{_slug:s})]);d(v??void 0);const a=Array.isArray(c)?c[0]:null,n=a&&a.id&&a.naam?{id:a.id,naam:a.naam,logo_url:a.logo_url,primaire_kleur:a.primaire_kleur??"#0066cc",telefoon:a.telefoon??null,email:a.email??null,whatsapp:a.whatsapp??null,signal:a.signal??null}:null;if(u(n),n){const{data:_}=await i.rpc("kantoor_tool_actief",{_kantoor_id:n.id,_tool_slug:"adviseur"});p(_!==!1)}g(!0)})()},[s]),f?e?h?t.jsxs("div",{className:"h-[100dvh] w-screen bg-card flex flex-col",style:{"--primary":e.primaire_kleur},children:[t.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 text-white",style:{background:e.primaire_kleur},children:[e.logo_url?t.jsx("img",{src:e.logo_url,alt:e.naam,className:"h-9 w-9 rounded bg-white/10 object-contain p-1"}):t.jsx("div",{className:"h-9 w-9 rounded bg-white/15 flex items-center justify-center",children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}),t.jsxs("div",{className:"leading-tight",children:[t.jsx("div",{className:"font-semibold text-sm",children:e.naam}),t.jsx(N,{kantoorNaam:e.naam})]})]}),t.jsx("div",{className:"flex-1 min-h-0",children:t.jsx(y,{welkomstbericht:m,lockedThema:w,kantoorId:e.id,kantoorSlug:s,bronUrl:x,kantoorContact:{naam:e.naam,telefoon:e.telefoon,email:e.email,whatsapp:e.whatsapp,signal:e.signal}})})]}):t.jsx("div",{className:"flex h-[100dvh] w-screen items-center justify-center bg-card p-6 text-center text-sm text-muted-foreground",children:"Deze chat is op dit moment niet beschikbaar."}):t.jsx("div",{className:"flex h-[100dvh] w-screen items-center justify-center bg-card p-6 text-center text-sm text-muted-foreground",children:"Kantoor niet gevonden."}):t.jsx("div",{className:"h-[100dvh] w-screen bg-card"})}export{B as component};

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.