PageSourceSearch

https://recordowl.com/build/assets/LeadContactsTab-BDZ3el1l.js

js recordowl.com collected 2026-09-28 11:17:47 UTC 3,370 bytes, 6 lines download raw bytes

1import{j as e}from"./ui-Bk7AWh7W.js";import{A as x,a as o,b as d}from"./avatar-DTczvRbQ.js";import{B as n}from"./badge-ClOJYl52.js";import{U as c}from"./users-53mbXrzI.js";import{c as h}from"./createLucideIcon-D4MjV6vP.js";import{L as f}from"./linkedin-Dc56zFmZ.js";import{M as p,P as g}from"./phone-CWPeiy6m.js";import"./vendor-DoC2WAmd.js";import"./index-B2kk_EGQ.js";/**
2 * @license lucide-react v0.513.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const j=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],N=h("user",j);function m({contact:s,type:a}){const r=s.name||"Unknown",l=a==="staff"?s.role:s.profession,t=s.email,i=a==="staff"?s.contact_number:s.phone;return e.jsxs("div",{className:"flex items-start gap-3 p-4 border rounded-lg hover:bg-gray-50 transition-colors",children:[e.jsxs(x,{className:"h-10 w-10",children:[a==="people"&&s.profile_photo_url?e.jsx(o,{src:s.profile_photo_url,alt:r}):null,e.jsx(d,{className:"bg-gray-100 text-gray-600 text-sm",children:r.charAt(0)})]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium text-gray-900 truncate",children:r}),a==="people"&&s.linkedin_url&&e.jsx("a",{href:s.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 hover:text-blue-600",children:e.jsx(f,{className:"h-3.5 w-3.5"})})]}),l&&e.jsx("div",{className:"text-xs text-gray-500 mt-0.5",children:l}),e.jsxs("div",{className:"flex items-center gap-3 mt-2 flex-wrap",children:[t&&e.jsxs("a",{href:`mailto:${t}`,className:"inline-flex items-center gap-1 text-xs text-blue-600 hover:text-blue-700",children:[e.jsx(p,{className:"h-3 w-3"}),t]}),i&&e.jsxs("a",{href:`tel:${i}`,className:"inline-flex items-center gap-1 text-xs text-blue-600 hover:text-blue-700",children:[e.jsx(g,{className:"h-3 w-3"}),i]})]})]})]})}function L({contacts:s}){const{staff:a=[],people:r=[]}=s;return a.length+r.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[e.jsx(c,{className:"h-12 w-12 text-gray-300 mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No contacts found"}),e.jsx("p",{className:"text-sm text-gray-500",children:"No contacts are available for this company."})]}):e.jsxs("div",{className:"space-y-6",children:[a.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(N,{className:"h-4 w-4 text-gray-400"}),e.jsx("h3",{className:"text-sm font-semibold text-gray-900",children:"Staff Contacts"}),e.jsx(n,{variant:"secondary",className:"text-xs",children:a.length})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:a.map(t=>e.jsx(m,{contact:t,type:"staff"},t.id))})]}),r.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(c,{className:"h-4 w-4 text-gray-400"}),e.jsx("h3",{className:"text-sm font-semibold text-gray-900",children:"People"}),e.jsx(n,{variant:"secondary",className:"text-xs",children:r.length})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:r.map(t=>e.jsx(m,{contact:t,type:"people"},t.id))})]})]})}export{L 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.