PageSourceSearch

https://istanbulfintechweek.com/assets/Networking-BOZF1Jc4.js

js istanbulfintechweek.com collected 2026-09-30 10:35:04 UTC 17,162 bytes, 1 lines download raw bytes

1import{z as D,k as W,r as l,a9 as A,j as e,L,p as F,U as q,G as I,at as $,au as M}from"./index-sg1QXStc.js";import{M as P}from"./MemberLayout-DpY6Pilu.js";import{s as O,S as U,a as _,b as B,P as w}from"./PassBadge-UeokbwzR.js";import{H as C}from"./handshake-v5ElPvcb.js";import{S as R}from"./search-DWg8uJS4.js";import{L as V}from"./list-C7yqHVhS.js";import{M as k}from"./map-pin-Lypj2MWY.js";import{E as z}from"./external-link-CbE-Dy77.js";import{L as K}from"./lock-M8un-eVu.js";import{C as Q}from"./check-CO-duti4.js";import"./index-BqgxQn0Z.js";import"./message-square-UWTlzToj.js";import"./ban-nk1SAz-i.js";import"./layout-dashboard-DseMIJLG.js";import"./formatDistanceToNow-5vrp8xtd.js";import"./member-gates-BjpDN-W9.js";import"./calendar-days-B_lteXP-.js";import"./ticket-CkWwPDSl.js";import"./shield-check-DDswEpVM.js";import"./crown-Bq8RDqdW.js";const H=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],G=D("layout-grid",H),d=a=>({fintech:"FINTECH",bank:"BANK",vc:"VC",startup:"STARTUP",other:"OTHER"})[a??""]??null;function h(a){return a.displayName||a.fullName||"IFW Member"}const S=["#0A66C2","#7C5CFF","#0E9F68","#E5484D","#B8860B","#0A1B2E"];function X(a){let n=0;for(let o=0;o<a.length;o++)n=n*31+a.charCodeAt(o)>>>0;return S[n%S.length]}function E({p:a,size:n=48}){const o=h(a),c=B[a.accessLevel].ring;return e.jsx("div",{className:`rounded-full grid place-items-center overflow-hidden text-white ma-grotesk font-bold flex-shrink-0 ${c}`,style:{width:n,height:n,background:X(a.userId),fontSize:n*.31},children:a.avatarUrl?e.jsx("img",{src:a.avatarUrl,alt:"",className:"w-full h-full object-cover"}):o.split(" ").map(u=>u[0]).slice(0,2).join("").toUpperCase()})}function Ne(){const{hasTicket:a}=W(),[n,o]=l.useState(""),[c,u]=l.useState(""),[t,x]=l.useState(null),[f,j]=l.useState("grid"),[g,b]=l.useState("tier"),[i,N]=l.useState("");l.useEffect(()=>{const s=setTimeout(()=>N(n.trim()),300);return()=>clearTimeout(s)},[n]);const r=new URLSearchParams;i&&r.set("q",i),c&&r.set("pass",c);const{data:v=[],isLoading:T}=A({queryKey:["/api/members",i,c],queryFn:async()=>{const s=await fetch(`/api/members?${r.toString()}`,{credentials:"include"});if(!s.ok)throw new Error("Failed to load directory");return s.json()},enabled:a}),{data:m}=A({queryKey:["/api/members",t?.userId],queryFn:async()=>{const s=await fetch(`/api/members/${t.userId}`,{credentials:"include"});if(!s.ok)throw new Error("Failed to load profile");return s.json()},enabled:!!t,staleTime:6e4}),y=l.useMemo(()=>O(v,g,s=>({name:h(s),accessLevel:s.accessLevel})),[v,g]);return e.jsx(P,{title:"Networking",children:e.jsxs("div",{className:"ma-fade",children:[e.jsx("div",{className:"ma-card px-6 py-5 mb-4",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h2",{className:"ma-grotesk font-semibold text-base mb-1",children:"Everyone attending IFW 2026 powered by BEX Digital Wallet"}),e.jsx("p",{className:"text-[13px] text-[#5B7186]",children:"Search by name or company, narrow by pass, then open a profile to send a meeting request."})]}),e.jsxs(L,{href:"/b2b-platform/meetings",className:"inline-flex items-center gap-2 bg-[#0A1B2E] text-white font-semibold text-[13px] px-[18px] py-2.5 rounded-[10px] hover:bg-[#0C2B44] transition-colors flex-shrink-0 hover:no-underline",children:[e.jsx(C,{className:"w-4 h-4",strokeWidth:1.8})," Your meetings ",e.jsx(F,{className:"w-4 h-4",strokeWidth:1.8})]})]})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[e.jsxs("div",{className:"relative w-full sm:flex-1 sm:min-w-[220px]",children:[e.jsx(R,{className:"w-4 h-4 text-[#8296A8] absolute left-3.5 top-1/2 -translate-y-1/2",strokeWidth:1.8}),e.jsx("input",{value:n,onChange:s=>o(s.target.value),placeholder:"Search by name or company…",className:"w-full pl-10 pr-3 py-[11px] rounded-[10px] border border-[#DBE3EA] bg-white text-sm text-[#0A1B2E] placeholder:text-[#8296A8] focus:outline-none focus:border-[#16C784] focus:ring-2 focus:ring-[#16C784]/20"})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 w-full sm:w-auto",children:[e.jsx("select",{value:g,onChange:s=>b(s.target.value),"aria-label":"Sort attendees",className:"flex-1 min-w-[136px] sm:flex-none rounded-[10px] border border-[#DBE3EA] bg-white px-3 py-[11px] text-sm text-[#0A1B2E] focus:outline-none focus:border-[#16C784]",children:U.map(s=>e.jsxs("option",{value:s.value,children:["Sort: ",s.label]},s.value))}),e.jsxs("div",{className:"inline-flex flex-shrink-0 ml-auto sm:ml-0 rounded-[10px] bg-white border border-[#DBE3EA] p-1",children:[e.jsxs("button",{onClick:()=>j("grid"),title:"Card view",className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[12.5px] font-semibold transition-colors ${f==="grid"?"bg-[#0A1B2E] text-white":"text-[#5B7186] hover:bg-[#F4F7F9]"}`,children:[e.jsx(G,{className:"w-4 h-4",strokeWidth:1.8})," ",e.jsx("span",{className:"hidden sm:inline",children:"Cards"})]}),e.jsxs("button",{onClick:()=>j("list"),title:"List view",className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[12.5px] font-semibold transition-colors ${f==="list"?"bg-[#0A1B2E] text-white":"text-[#5B7186] hover:bg-[#F4F7F9]"}`,children:[e.jsx(V,{className:"w-4 h-4",strokeWidth:1.8})," ",e.jsx("span",{className:"hidden sm:inline",children:"List"})]})]})]})]}),e.jsx("div",{className:"flex flex-nowrap gap-2 mb-5 overflow-x-auto -mx-1 px-1",children:_.map(s=>{const p=c===s.value;return e.jsxs("button",{onClick:()=>
1u(s.value),className:`flex-shrink-0 whitespace-nowrap px-3.5 py-[9px] rounded-full text-[12.5px] font-semibold transition-colors border ${p?"bg-[#0A1B2E] text-white border-[#0A1B2E]":"bg-white text-[#5B7186] border-[#DBE3EA] hover:bg-[#F4F7F9]"}`,children:[e.jsx("span",{className:"sm:hidden",children:s.short}),e.jsx("span",{className:"hidden sm:inline",children:s.label})]},s.value)})}),T?e.jsx("div",{className:"text-[#5B7186]",children:"Loading…"}):y.length===0?e.jsxs("div",{className:"ma-card p-8 text-center",children:[e.jsx(q,{className:"w-10 h-10 text-[#C6D2DC] mx-auto mb-3",strokeWidth:1.8}),e.jsx("p",{className:"ma-grotesk font-semibold text-[#0A1B2E] mb-1",children:"No members found"}),e.jsx("p",{className:"text-sm text-[#8296A8]",children:"Try adjusting your filters."})]}):f==="grid"?e.jsx("div",{className:"grid gap-3.5 grid-cols-1 md:grid-cols-[repeat(auto-fill,minmax(272px,1fr))]",children:y.map(s=>{const p=B[s.accessLevel];return e.jsxs("article",{className:"ma-card relative overflow-hidden flex flex-col h-full",children:[e.jsx("span",{"aria-hidden":!0,className:`absolute inset-y-0 left-0 w-[3px] ${p.rail}`}),p.wash&&e.jsx("span",{"aria-hidden":!0,className:`absolute inset-x-0 top-0 h-20 pointer-events-none ${p.wash}`}),e.jsxs("div",{className:"relative flex flex-col h-full gap-3 p-4 pl-[19px]",children:[e.jsxs("div",{className:"flex items-start gap-3.5",children:[e.jsx(E,{p:s,size:52}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h3",{className:"ma-grotesk font-bold text-[17px] leading-[1.22] tracking-[-0.01em] text-[#0A1B2E] line-clamp-2",children:h(s)}),s.jobTitle&&e.jsx("p",{className:"text-[13.5px] leading-[1.35] text-[#33506B] mt-[5px] line-clamp-2",children:s.jobTitle}),s.company&&e.jsx("p",{className:"text-[13px] leading-[1.35] font-medium text-[#5B7186] mt-[3px] line-clamp-2",children:s.company}),!s.jobTitle&&!s.company&&e.jsx("p",{className:"text-[13px] text-[#8296A8] mt-[5px]",children:"—"})]})]}),e.jsxs("div",{className:"mt-auto pt-3 border-t border-[#EDF1F5] flex flex-col gap-2.5",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx(w,{level:s.accessLevel,contactable:s.contactable}),(s.country||d(s.category))&&e.jsxs("span",{className:"flex items-center gap-1.5 text-[11.5px] text-[#8296A8] min-w-0",children:[s.country&&e.jsxs("span",{className:"inline-flex items-center gap-1 min-w-0",children:[e.jsx(k,{className:"w-3 h-3 flex-shrink-0",strokeWidth:1.8}),e.jsx("span",{className:"truncate",children:s.country})]}),s.country&&d(s.category)&&e.jsx("span",{"aria-hidden":!0,children:"·"}),d(s.category)&&e.jsx("span",{className:"ma-mono font-semibold tracking-[0.05em] flex-shrink-0",children:d(s.category)})]})]}),e.jsxs("button",{onClick:()=>x(s),"aria-label":`View ${h(s)}'s profile`,className:"self-end inline-flex items-center gap-1 border border-[#DBE3EA] bg-[#F4F7F9] text-[#33506B] font-semibold text-[11.5px] leading-none px-[11px] py-[7px] rounded-[7px] hover:bg-[#EAF0F5] hover:border-[#C6D2DC] hover:text-[#0A1B2E] transition-colors",children:["View profile ",e.jsx(F,{className:"w-3 h-3",strokeWidth:2})]})]})]})]},s.userId)})}):e.jsxs("div",{className:"ma-card divide-y divide-[#EDF1F5] overflow-hidden",children:[e.jsxs("div",{"aria-hidden":!0,className:"hidden sm:flex items-center gap-4 pl-[19px] pr-6 py-2.5 bg-[#F8FAFB]",children:[e.jsx("span",{className:"w-11 flex-shrink-0"}),e.jsxs("div",{className:"min-w-0 flex-1 flex items-center gap-4 ma-mono text-[10px] font-semibold uppercase tracking-[0.07em] text-[#8296A8]",children:[e.jsx("span",{className:"min-w-0 w-[30%]",children:"Name"}),e.jsx("span",{className:"min-w-0 w-[36%]",children:"Title"}),e.jsx("span",{className:"min-w-0 w-[34%]",children:"Company"})]}),e.jsx("span",{className:"flex-shrink-0 ma-mono text-[10px] font-semibold uppercase tracking-[0.07em] text-[#8296A8]",children:"Pass"})]}),y.map(s=>{const p=B[s.accessLevel];return e.jsxs("button",{onClick:()=>x(s),className:"relative w-full text-left flex items-center gap-3 sm:gap-4 pl-[19px] pr-4 sm:pr-6 py-3.5 hover:bg-[#F4F7F9] transition-colors",children:[e.jsx("span",{"aria-hidden":!0,
1className:`absolute inset-y-0 left-0 w-[3px] ${p.rail}`}),e.jsx(E,{p:s,size:44}),e.jsxs("div",{className:"min-w-0 flex-1 flex flex-col sm:flex-row sm:items-center sm:gap-4",children:[e.jsx("div",{className:"min-w-0 sm:w-[30%]",children:e.jsx("p",{className:"ma-grotesk font-bold text-[15px] leading-[1.25] text-[#0A1B2E] truncate",children:h(s)})}),e.jsx("div",{className:"min-w-0 sm:w-[36%]",children:e.jsx("p",{className:"text-[12.5px] leading-[1.35] text-[#33506B] truncate",children:s.jobTitle||"—"})}),e.jsx("div",{className:"min-w-0 sm:w-[34%]",children:e.jsx("p",{className:"text-[12.5px] leading-[1.35] text-[#5B7186] truncate",children:s.company||"—"})}),e.jsx("div",{className:"sm:hidden mt-2",children:e.jsx(w,{level:s.accessLevel,contactable:s.contactable,size:"sm"})})]}),e.jsxs("div",{className:"hidden xl:flex items-center gap-3 text-xs text-[#5B7186] flex-shrink-0",children:[s.country&&e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(k,{className:"w-3.5 h-3.5 text-[#8296A8]",strokeWidth:1.8})," ",s.country]}),d(s.category)&&e.jsx("span",{className:"ma-mono font-semibold text-[10.5px] tracking-[0.06em] border border-[#DBE3EA] px-2.5 py-1 rounded-full",children:d(s.category)})]}),e.jsx("div",{className:"hidden sm:block flex-shrink-0",children:e.jsx(w,{level:s.accessLevel,contactable:s.contactable})})]},s.userId)})]}),t&&e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-4 bg-[#0A1B2E]/50",onClick:()=>x(null),children:e.jsxs("div",{className:"bg-white rounded-2xl shadow-[0_12px_32px_rgba(10,27,46,.12)] max-w-md w-full p-6 relative ma-archivo ma-fade",onClick:s=>s.stopPropagation(),children:[e.jsx("button",{onClick:()=>x(null),className:"absolute top-4 right-4 text-[#8296A8] hover:text-[#0A1B2E]",children:e.jsx(I,{className:"w-5 h-5",strokeWidth:1.8})}),e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx(E,{p:t,size:64}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"ma-grotesk font-semibold text-lg text-[#0A1B2E]",children:h(t)}),t.jobTitle&&e.jsx("p",{className:"text-sm text-[#5B7186]",children:t.jobTitle}),t.company&&e.jsx("p",{className:"text-sm text-[#8296A8]",children:t.company}),e.jsx("div",{className:"mt-1.5",children:e.jsx(w,{level:t.accessLevel,contactable:t.contactable})})]})]}),e.jsxs("div",{className:"space-y-2 text-sm text-[#5B7186]",children:[t.country&&e.jsxs("p",{className:"flex items-center gap-1.5",children:[e.jsx(k,{className:"w-4 h-4 text-[#8296A8]",strokeWidth:1.8})," ",t.country]}),d(t.category)&&e.jsx("span",{className:"inline-block ma-mono font-semibold text-[10.5px] tracking-[0.06em] border border-[#DBE3EA] px-2.5 py-1 rounded-full",children:d(t.category)}),m?.bio&&e.jsx("p",{className:"leading-relaxed pt-1",children:m.bio}),m?.interests&&m.interests.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1.5 pt-1",children:m.interests.map(s=>e.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full bg-[#EEF2F5] text-[#0A1B2E]",children:s},s))})]}),m?.linkedinUrl&&e.jsxs("a",{href:m.linkedinUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-4 text-sm font-semibold text-[#0E9F68] hover:underline",children:["LinkedIn ",e.jsx(z,{className:"w-3.5 h-3.5",strokeWidth:1.8})]}),e.jsx("div",{className:"mt-5 pt-5 border-t border-[#EDF1F5]",children:t.contactable?e.jsx(Z,{toUserId:t.userId,name:h(t),onDone:()=>x(null)}):e.jsxs("div",{className:"rounded-xl bg-[#FBF7E8] border border-[#F4D35E]/50 p-4 flex items-start gap-3",children:[e.jsx(K,{className:"w-5 h-5 text-[#8a6d0f] shrink-0 mt-0.5",strokeWidth:1.8}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-[#8a6d0f]",children:"Not accepting requests"}),e.jsx("p",{className:"text-sm text-[#5B7186] mt-0.5",children:"This member can't receive meeting requests right now. Try again later, or find them at the event."})]})]})})]})})]})})}const Y=["pending","accepted","confirmed"],J={pending:"requests",accepted:"scheduling",confirmed:"confirmed"};function Z({toUserId:a,name:n,onDone:o}){const[c,u]=l.useState(!1),[t,x]=l.useState(""),[f,j]=l.useState(""),{data:g=[]}=A({queryKey:["/api/meetings"],queryFn:async()=>{const r=await fetch("/api/meetings",{credentials:"include"});if(!r.ok)throw new Error("Failed to load meetings");return r.json()}}),b=g.find(r=>Y.includes(r.status)&&(r.fromUserId===a||r.toUserId===a)),i=$({mutationFn:async()=>{const r=await fetch("/api/meetings",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({toUserId:a,message:t.trim()||void 0,location:f.trim()||void 0})});if(!r.ok){const v=await r.json().catch(()=>({message:"Failed"}));throw new Error(v.message||"Failed")}},onSuccess:()=>{M.invalidateQueries({queryKey:["/api/meetings"]})}});if(b&&!i.isSuccess)return e.jsxs("div",{className:"rounded-[10px] bg-[#F4F7F9] border border-[#DBE3EA] px-3.5 py-3",children:[e.jsx("p",{className:"text-[13px] text-[#33506B]",children:b.status==="pending"?`There's already a meeting request between you and ${n}.`:`You already have a meeting with ${n}.`}),e.jsxs(L,{href:`/b2b-platform/meetings?tab=${J[b.status]}`,className:"inline-flex items-center gap-1.5 mt-2 text-[13px] font-semibold text-[#0A1B2E] hover:underline",children:["Open in Meetings ",e.jsx(F,{className:"w-4 h-4",strokeWidth:1.8})]})]});if(i.isSuccess)return e.jsxs("p",{className:"text-sm text-[#0E9F68] font-semibold flex items-center gap-1.5",children:[e.jsx(Q,{className:"w-4 h-4",strokeWidth:2.5})," Meeting request sent to ",n,"."]});if(!c)return e.jsxs("button",{onClick:()=>u(!0),className:"inline-flex items-center gap-2 w-full justify-center px-4 py-[11px] rounded-[9px] bg-[#0A1B2E] text-white text-[13px] font-semibold hover:bg-[#0C2B44] transition-colors",children:[e.jsx(C,{className:"w-4 h-4",strokeWidth:1.8})," Request meeting"]});const N="rounded-[10px] border border-[#DBE3EA] px-3 py-2.5 text-sm text-[#0A1B2E] placeholder:text-[#8296A8] focus:outline-none focus:border-[#16C784] focus:ring-2 focus:ring-[#16C784]/20";return e.jsxs("div",{className:"space-y-3",children:[e.jsx("textarea",{className:`${N} w-full min-h-[70px]`,placeholder:`Message to ${n}…`,value:t,onChange:r=>x(r.target.value),maxLength:500}),e.jsx("input",{className:`${N} w-full`,placeholder:"Suggested location (optional)",value:f,onChange:r=>j(r.target.value)}),e.jsxs("p",{className:"text-xs text-[#8296A8]",children:["Once ",n," accepts, you'll agree a time together and we'll book the B2B meeting room."]}
1),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{onClick:()=>i.mutate(),disabled:i.isPending,className:"inline-flex items-center gap-1.5 px-4 py-[9px] rounded-[9px] bg-[#16C784] text-[#07131F] text-[12.5px] font-semibold hover:bg-[#13b476] disabled:opacity-60 transition-colors",children:[e.jsx(C,{className:"w-4 h-4",strokeWidth:1.8})," ",i.isPending?"Sending…":"Send request"]}),e.jsx("button",{onClick:()=>u(!1),className:"px-3.5 py-[9px] rounded-[9px] border border-[#DBE3EA] bg-white text-[#5B7186] text-[12.5px] font-semibold hover:bg-[#F4F7F9] transition-colors",children:"Cancel"})]}),i.isError&&e.jsx("p",{className:"text-sm text-[#E5484D]",children:i.error.message})]})}export{X as avatarColor,Ne as default};

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.