PageSourceSearch

https://teklens.ai/assets/admin-CHWFmAg_.js

js teklens.ai collected 2026-10-05 13:53:52 UTC 11,584 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AdminCommandPalette-CGLixFRW.js","assets/index-Dnerfepu.js","assets/useServerFn-BGeOpvRa.js","assets/useQuery-DLxEJ27a.js","assets/index-RkyEqdxr.js","assets/index-BBw2oN-D.js","assets/index-B-UaYdHi.js","assets/index-DdxFbPDj.js","assets/button-CJy0b8Kc.js","assets/index-LHNt3CwB.js","assets/utils-BQHNewu7.js","assets/dialog-DdbXDgHW.js","assets/search-C0Ub4GwM.js","assets/useDebouncedValue-1JeJU2l3.js","assets/building-2-DjvtYaYz.js","assets/user-DhnZ1B_0.js","assets/ui-gqo8gQ5l.js","assets/arrow-left-Cw3BF4nY.js","assets/info-C-GhPHjg.js","assets/teklens-logomark.svg.asset-62B-rbWG.js","assets/inbox-BBViXHQz.js","assets/users-BMYtpqif.js","assets/waypoints-CQVL-jhl.js","assets/flag-CFsTqsT_.js","assets/presentation-B0-lh4-O.js","assets/clipboard-list-1_-Qg-Ha.js","assets/plug-vuj-M9hk.js","assets/calendar-Ct4wSU9k.js","assets/database-zap-DmX2IKyX.js","assets/file-text-D_VSYKVN.js","assets/ConfirmDialog-CDyIE9fC.js","assets/adminLayout-DgIt8ZWa.js"])))=>i.map(i=>d[i]);
2import{q as g,j as t,X as S,s as j,v as M,w as L,x as W,y as _,S as P,z,M as A,L as O,B as x,C as I,r as i,D,E,_ as T}from"./index-Dnerfepu.js";import{I as F}from"./ui-gqo8gQ5l.js";import{l as K,P as $,a as R}from"./teklens-logomark.svg.asset-62B-rbWG.js";import{S as B}from"./search-C0Ub4GwM.js";import{I as q}from"./inbox-BBViXHQz.js";import{U}from"./users-BMYtpqif.js";import{B as V}from"./building-2-DjvtYaYz.js";import{W as H}from"./waypoints-CQVL-jhl.js";import{F as Z}from"./flag-CFsTqsT_.js";import{P as G}from"./presentation-B0-lh4-O.js";import{C as X}from"./clipboard-list-1_-Qg-Ha.js";import{P as J}from"./plug-vuj-M9hk.js";import{C as Q}from"./calendar-Ct4wSU9k.js";import{D as Y}from"./database-zap-DmX2IKyX.js";import{F as ee}from"./file-text-D_VSYKVN.js";import{C as te}from"./ConfirmDialog-CDyIE9fC.js";import{u as ae}from"./adminLayout-DgIt8ZWa.js";const re=[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]],se=g("clapperboard",re);const oe=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],ne=g("radar",oe);const ie=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],le=g("receipt",ie),ce=[{label:"Today",items:[{label:"Inbox",to:"/admin/inbox",icon:q,match:e=>e==="/admin"||e.startsWith("/admin/inbox")||e.startsWith("/admin/chats")}]},{label:"CRM",items:[{label:"Contacts",to:"/admin/contacts",icon:U,match:e=>e.startsWith("/admin/contacts")},{label:"Companies",to:"/admin/companies",icon:V,match:e=>e.startsWith("/admin/companies")||e.startsWith("/admin/accounts")},{label:"Network",to:"/admin/network",icon:H,match:e=>e.startsWith("/admin/network")}]},{label:"Prospecting",items:[{label:"Prospecting",to:"/admin/prospecting",icon:ne,match:e=>e.startsWith("/admin/prospecting")||e.startsWith("/admin/leadfinder")},{label:"AM04 audit",to:"/admin/campaign-audit",icon:Z,match:e=>e.startsWith("/admin/campaign-audit")}]},{label:"Sales assets",items:[{label:"Decks",to:"/admin/decks",icon:G,match:e=>e.startsWith("/admin/decks")},{label:"Offers",to:"/admin/offers",icon:le,match:e=>e.startsWith("/admin/offers")},{label:"Surveys",to:"/admin/surveys",icon:X,match:e=>e.startsWith("/admin/surveys")}]},{label:"Marketing",items:[{label:"Videos",to:"/admin/videos",icon:se,match:e=>e.startsWith("/admin/videos")},{label:"Topic Finder",to:"/admin/topics",icon:P,match:e=>e.startsWith("/admin/topics")}]},{label:"Settings",items:[{label:"Connectors",to:"/admin/connectors",icon:J,match:e=>e.startsWith("/admin/connectors")},{label:"Calendars",to:"/admin/calendars",icon:Q,match:e=>e.startsWith("/admin/calendars")},{label:"Data jobs",to:"/admin/settings/jobs",icon:Y,match:e=>e.startsWith("/admin/settings/jobs")},{label:"Context",to:"/admin/context",icon:ee,match:e=>e.startsWith("/admin/context")}]}];function de({item:e,active:s,collapsed:a,onNavigate:o}){const l=e.icon;return t.jsxs(I,{to:e.to,onClick:o,title:a?e.label:void 0,"aria-label":a?e.label:void 0,"aria-current":s?"page":void 0,className:`relative flex items-center rounded-md text-[13px] font-medium transition-colors ${a?"justify-center px-0 py-2":"gap-2.5 px-2.5 py-1.5"} ${s?"bg-[color:var(--bg-selected)] text-[color:var(--text-primary)]":"text-[color:var(--text-secondary)] hover:bg-[color:var(--bg-hover)] hover:text-[color:var(--text-primary)]"}`,children:[s?t.jsx("span",{className:"absolute left-0 top-1/2 h-4 w-0.5 -translate-y-1/2 roun
2ded-full bg-[color:var(--accent-primary)]"}):null,t.jsx(l,{className:"h-4 w-4 shrink-0"}),!a&&t.jsx("span",{className:"flex-1",children:e.label})]})}function v({collapsed:e,icon:s,label:a,onClick:o}){return t.jsxs("button",{type:"button",onClick:o,title:e?a:void 0,"aria-label":e?a:void 0,className:`flex w-full items-center rounded-md text-[13px] font-medium text-[color:var(--text-secondary)] transition-colors hover:bg-[color:var(--bg-hover)] hover:text-[color:var(--text-primary)] ${e?"justify-center px-0 py-2":"gap-2.5 px-2.5 py-1.5"}`,children:[t.jsx(s,{className:"h-4 w-4 shrink-0"}),!e&&t.jsx("span",{children:a})]})}function y({collapsed:e=!1,onNavigate:s,onOpenSearch:a,onToggleCollapse:o}){const l=j(),p=M({select:c=>c.location.pathname}),{resolved:m,toggle:b}=L();return t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsx("div",{className:`flex items-center py-4 ${e?"justify-center px-2":"gap-2 px-4"}`,children:e?t.jsx("img",{src:K.url,alt:"Teklens logo",className:"h-7 w-7 shrink-0"}):t.jsxs("div",{className:"leading-tight",children:[t.jsx("img",{src:W.url,alt:"Teklens logo",width:900,height:135,className:"logo-light h-5 w-auto"}),t.jsx("img",{src:_.url,alt:"","aria-hidden":"true",width:900,height:135,className:"logo-dark h-5 w-auto"})]})}),t.jsx("div",{className:"px-2 pb-1",children:t.jsxs("button",{type:"button",onClick:()=>{s?.(),a?.()},title:e?"Search (⌘K)":void 0,"aria-label":e?"Search (⌘K)":void 0,className:`flex w-full items-center rounded-md border border-[color:var(--border-default)] bg-[color:var(--bg-primary)] text-[13px] text-[color:var(--text-tertiary)] transition-colors hover:border-[color:var(--accent-primary)] ${e?"justify-center px-0 py-2":"gap-2 px-2.5 py-1.5"}`,children:[t.jsx(B,{className:"h-3.5 w-3.5 shrink-0"}),!e&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"flex-1 text-left",children:"Search…"}),t.jsx("kbd",{className:"rounded border border-[color:var(--border-default)] px-1 text-[10px] text-[color:var(--text-tertiary)]",children:"⌘K"})]})]})}),t.jsx("nav",{"aria-label":"Admin",className:"flex-1 space-y-4 overflow-y-auto px-2 py-2",children:ce.map((c,u)=>t.jsxs("div",{className:"space-y-0.5",children:[e?u>0?t.jsx("div",{className:"mx-2 mb-1 border-t border-[color:var(--border-subtle)]"}):null:t.jsx("div",{className:"tk-text-micro px-2.5 pb-1 font-semibold uppercase tracking-wider text-[color:var(--text-tertiary)]",children:c.label}),c.items.map(h=>t.jsx(de,{item:h,active:h.match(p),collapsed:e,onNavigate:s},h.to))]},c.label))}),t.jsxs("div",{className:"mt-auto border-t border-[color:var(--border-subtle)] p-2",children:[t.jsx(v,{collapsed:e,icon:m==="dark"?z:A,label:m==="dark"?"Light mode":"Dark mode",onClick:b}),t.jsx(v,{collapsed:e,icon:O,label:"Sign out",onClick:async()=>{await x.auth.signOut(),l({to:"/login",replace:!0})}}),o?t.jsx(v,{collapsed:e,icon:e?$:R,label:e?"Expand":"Collapse",onClick:o}):null]})]})}function me({collapsed:e=!1,mobileOpen:s,onClose:a,onOpenSearch:o,onToggleCollapse:l}){return t.jsxs(t.Fragment,{children:[t.jsx("aside",{className:`hidden shrink-0 border-r border-[color:var(--border-default)] bg-[color:var(--bg-elevated)] transition-[width] duration-200 ease-out md:flex md:flex-col ${e?"w-14":"w-60"}`,children:t.jsx(y,{collapsed:e,onOpenSearch:o,onToggleCollapse:l})}),s?t.jsxs("div",{className:"fixed inset-0 z-50 md:hidden",children:[t.jsx("button",{type:"button","aria-label":"Close menu",onClick:a,className:"absolute inset-0 bg-[color:var(--overlay)]"}),t.jsxs("aside",{className:"absolute inset-y-0 left-0 flex w-[264px] flex-col border-r border-[color:var(--border-default)] bg-[color:var(--bg-elevated)]",children:[t.jsx(F,{label:"Close menu",icon:t.jsx(S,{className:"h-4 w-4"}),onClick:a,className:"absolute right-2 top-3"}),t.jsx(y,{onNavigate:a,onOpenSearch:o})]})]}):null]})}const he=i.lazy(()=>T(()=>import("./AdminCommandPalette-CGLixFRW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])).then(e=>({default:e.AdminCommandPalette})));function ue(){const e=j(),[s,a]=i.useState(!1),[o,l]=i.useState(!1),[p,m]=i.useState(!1),[b,c]=i.useState(!1),u=ae(1024),[h,k]=i.useState(()=>{try{const r=localStorage.getItem("admin-sidebar");
2if(r==="auto"||r==="collapsed"||r==="expanded")return r}catch{}return"auto"}),N=h==="auto"?u:h==="collapsed",f=i.useCallback(()=>{k(r=>{const d=(r==="auto"?u:r==="collapsed")?"expanded":"collapsed";try{localStorage.setItem("admin-sidebar",d)}catch{}return d})},[u]);return i.useEffect(()=>{let r=!0;x.auth.getSession().then(({data:d})=>{if(r){if(!d.session){e({to:"/login",replace:!0});return}a(!0),x.auth.getUser().then(({data:w,error:C})=>{r&&(C||!w.user)&&e({to:"/login",replace:!0})})}});const{data:n}=x.auth.onAuthStateChange(d=>{d==="SIGNED_OUT"&&e({to:"/login",replace:!0})});return()=>{r=!1,n.subscription.unsubscribe()}},[e]),i.useEffect(()=>{const r=n=>{(n.metaKey||n.ctrlKey)&&n.key.toLowerCase()==="k"?(n.preventDefault(),c(!0),m(d=>!d)):(n.metaKey||n.ctrlKey)&&n.key==="\\"&&(n.preventDefault(),f())};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[f]),s?t.jsx(te,{children:t.jsxs("div",{"data-admin-scale":!0,className:"flex h-screen overflow-hidden bg-[color:var(--bg-primary)] text-[color:var(--text-primary)]",children:[t.jsx(me,{collapsed:N,mobileOpen:o,onClose:()=>l(!1),onOpenSearch:()=>{c(!0),m(!0)},onToggleCollapse:f}),t.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[t.jsxs("header",{className:"flex items-center gap-3 border-b border-[color:var(--border-default)] bg-[color:var(--bg-elevated)] px-4 py-3 md:hidden",children:[t.jsx("button",{type:"button",onClick:()=>l(!0),"aria-label":"Open menu",className:"grid h-8 w-8 place-items-center rounded-md text-[color:var(--text-secondary)] hover:bg-[color:var(--bg-hover)]",children:t.jsx(D,{className:"h-5 w-5"})}),t.jsx("span",{className:"text-sm font-semibold",children:"Teklens · Lead Management"})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsx(E,{})})]}),b?t.jsx(i.Suspense,{fallback:null,children:t.jsx(he,{open:p,onOpenChange:m})}):null]})}):t.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[color:var(--bg-primary)] text-sm text-[color:var(--text-tertiary)]",children:"Loading…"})}const Pe=Object.freeze(Object.defineProperty({__proto__:null,component:ue},Symbol.toStringTag,{value:"Module"}));export{ce as A,Pe as 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.