PageSourceSearch

https://bbcc.ai/build/assets/omnibox-jzpR5Vfx.js

js bbcc.ai collected 2026-10-05 12:13:43 UTC 30,285 bytes, 90 lines download raw bytes

1import{r as l,b as q,j as t,H as we}from"./app-DP13319Q.js";import{F as o,h as O,k as ye,bn as Z,Z as T,ag as je,bo as Ne,bp as ve,a2 as ke,bf as _e,m as Se,K as Ce,P as J,R as ee,b as E,j as W,t as De,u as $e,a6 as Te,N as Ee,am as Re,bc as Ae,d as Fe,ak as te,aD as Ie,aF as Pe,bq as Le,q as ze,n as Ue,ai as Ke,ap as Qe}from"./index-CtyZ6W6U.js";import{M as R}from"./react-tooltip.min-DW3XhwOj.js";/* empty css            */const C=i=>i.toLowerCase().startsWith("re://")?i.replace(/^re:\/\//i,"https://"):i.startsWith("🀄://")?i.replace(/^🀄:\/\//,"https://"):i;function Ve(){const i=l.useRef(null),A=l.useRef(null),[n,j]=l.useState(""),[p,u]=l.useState(0),[h,c]=l.useState(!0),[x,w]=l.useState([]),[g,V]=l.useState([]),[d,N]=l.useState([]),[Y,F]=l.useState(!1),[v,ae]=l.useState(null),[H,se]=l.useState(""),[k,_]=l.useState(0),[re,D]=l.useState({}),[b,B]=l.useState("all"),[f,ne]=l.useState("relevance"),[I,ie]=l.useState(!1),[P,S]=l.useState({});l.useEffect(()=>{oe();const e=s=>{(s.ctrlKey||s.metaKey)&&s.key==="k"&&(s.preventDefault(),c(!0),setTimeout(()=>{i.current&&i.current.focus()},100))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);const oe=async()=>{try{const e=await q.get("/omnibox/quick-actions");V(e.data)}catch(e){console.error("Failed to load quick actions, using defaults:",e),V(le())}};l.useEffect(()=>{h&&i.current&&i.current.focus()},[h]),l.useEffect(()=>{const e=s=>{A.current&&!A.current.contains(s.target)&&c(!1)};if(h)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[h]);const le=()=>[{id:"create_funnel",title:"Create New Funnel",subtitle:"Start a new funnel",icon:"⚡",color:"indigo",url:"/home",shortcut:"⌘ F"},{id:"create_theme",title:"Create Theme",subtitle:"Design a new theme",icon:"🎨",color:"blue",url:"/home",shortcut:"⌘ T"},{id:"add_domain",title:"Add Domain",subtitle:"Register new domain",icon:"🔗",color:"emerald",url:"/home",shortcut:"⌘ D"},{id:"add_custom_domain",title:"Add Custom Domain",subtitle:"Register custom domain",icon:"🌐",color:"purple",url:"/home",shortcut:"⌘ ⇧ D"},{id:"view_dashboard",title:"Go to Dashboard",subtitle:"View analytics and stats",icon:"📊",color:"purple",url:"/dashboard",shortcut:"⌘ K"},{id:"search_hashtag",title:"Search #Hashtag",subtitle:"Find social media content",icon:"🏷️",color:"orange",action:"search_hashtag",shortcut:"#"},{id:"global_search",title:"Global Search",subtitle:"Search everything",icon:"🔍",color:"gray",action:"search_all",shortcut:"⌘ /"},{id:"view_profile",title:"View Profile",subtitle:"Your account settings",icon:"👤",color:"teal",url:"/home",shortcut:"⌘ P"},{id:"view_settings",title:"Settings",subtitle:"Configure application",icon:"⚙️",color:"gray",url:"/home",shortcut:"⌘ ,"},{id:"view_help",title:"Help & Documentation",subtitle:"Learn how to use",icon:"❓",color:"blue",url:"/home",shortcut:"⌘ ?"}],ce=e=>{const s=de(e.type);let a=e.title||"",r=e.subtitle||"",m=e.url||"";if(!a)switch(e.type){case"funnel":a=`Funnel: ${m||"Unknown"}`;break;case"field":a=`Field: ${m||"Unknown"}`,r=`${e.title||"N/A"}`;break;case"custom_domain":a=`Custom Domain: ${m||"Unknown"}`,r=`Selected: ${e.title||"N/A"}`;break;case"domain":a=`Domain: ${m||"Unknown"}`,r=`Selected: ${e.title||"N/A"}`;break;case"theme":a=`Theme: ${m||"Unknown"}`,r=`Unique ID: ${e.title||"N/A"}`;break;case"social_tumblr":a=e.title||"Tumblr Post",r=e.subtitle||"";break;case"social_youtube":a=e.title||"YouTube Video",r=e.subtitle||"";break;case"social_pinterest":a=e.title||"Pinterest Pin",r=e.subtitle||"";break;case"social_reddit":a=e.title||"Reddit Post",r=e.subtitle||"";break;default:a=`${e.type}: ${e.id}`}return m&&!m.startsWith("http")&&(m=`https://${m}`),{type:e.type,id:e.id||Date.now(),token:e.token,unique_id:e.unique_id,domain:e.domain,domainselected:e.domainselected,title:a,subtitle:r,description:e.description,url:m,edit_url:e.edit_url,preview_url:e.preview_url,color:s.color,icon:s.icon,score:e.score||50,created_at:e.created_at,user:e.user,funnel:e.funnel,action:e.action,platform:e.platform}},de=e=>({funnel:{color:"indigo",icon:"⚡"},field:{color:"blue",icon:"📝"},custom_domain:{color:"purple",icon:"🌐"},domain:{color:"emerald",icon:"🔗"},theme:{color:"amber",icon:"🎨"},url:{color:"teal",icon:"🔗"},hashtag:{color:"orange",icon:"🏷️"},web_search:{color:"green",icon:"🌍"},social_tumblr:{color:"blue",icon:"🌼"},social_youtube:{color:"red",icon:"▶️"},social_pinterest:{color:"red",icon:"📌"},social_reddit:{color:"orange",icon:"👁️"},social_search:{color:"purple",icon:"📱"},hashtag_social:{color:"purple",icon:"📱"},hashtag_web:{color:"green",icon:"🌍"},field_search:{color:"indigo",icon:"🔍"},funnel_search:{color:"amber",icon:"⚡"},id_search:{color:"orange",icon:"#️⃣"},general_search:{color:"gray",icon:"🔍"},error:{color:"red",icon:"❌"}})[e]||{color:"gray",icon:"🔍"},L=l.useCallback(async e=>{var a;if(!e.trim()){w([]),N([]),_(0),D({}),S({});return}if(C(e.trim())!==e.trim()){w([]),N([]),_(0),D({}),S({}),F(!1);return}if(!(e===H&&x.length>0)){F(!0),se(e);try{const r=await q.get("/omnibox/search",{params:{query:e,limit:20}}),m=((a=r.data.results)==null?void 0:a.map(ce))||[];w(m),N(r.data.suggestions||[]),_(r.data.total||0),D(r.data.categories||{}),S(r.data.pagination||{}),u(0),me(m)}catch(r){console.error("Search failed:",r),w([]),N([]),_(0),D({}),S({})}finally{F(!1)}}},[H,x.length]),me=l.useCallback(e=>{let s=e;b!=="all"&&(s=s.filter(a=>a.type===b)),s=[...s].sort((a,r)=>{switch(f){case"newest":return new Date(r.created_at||"").getTime()-new Date(a.created_at||"").getTime();case"oldest":return new Date(a.created_at||"").getTime()-new Date(r.created_at||"").getTime();case"relevance":default:return r.score-a.score}}),w(s)},[b,f]),xe=e=>{const s=e.target.value;j(s),u(0),v&&clearTimeout(v);const a=setTimeout(()=>{L(s)},300);
1ae(a)},z=l.useCallback(e=>{if(!h)return;const s=n.trim()?d.length>0?d.length:x.length:g.length;switch(e.key){case"Escape":e.preventDefault(),c(!1);break;case"ArrowDown":e.preventDefault(),u(a=>a<s-1?a+1:0);break;case"ArrowUp":e.preventDefault(),u(a=>a>0?a-1:s-1);break;case"Enter":e.preventDefault(),he();break;case"Tab":n.trim()&&d.length>0&&(e.preventDefault(),U(d[0]));break;case"/":i.current&&document.activeElement!==i.current&&(e.preventDefault(),i.current&&i.current.focus());break;case"#":i.current&&document.activeElement!==i.current&&(e.preventDefault(),j("#"),i.current&&i.current.focus());break}},[h,n,x,g,d,p]),he=()=>{if(n.trim()){const e=C(n.trim());if(e!==n.trim()){window.open(e,"_blank"),c(!1);return}d.length>0&&p<d.length?U(d[p]):x.length>0&&p<x.length?X(x[p]):pe()}else p<g.length&&G(g[p])},G=e=>{e.action==="search_hashtag"?(j("#"),i.current&&i.current.focus()):e.action==="search_all"?i.current&&i.current.focus():e.url&&(window.location.href=e.url,c(!1))},X=e=>{e.url?(window.open(e.url,"_blank"),c(!1)):e.edit_url?(window.open(e.edit_url,"_blank"),c(!1)):e.preview_url&&(window.open(e.preview_url,"_blank"),c(!1))},U=e=>{e.action==="navigate"&&e.url?(window.open(e.url,"_blank"),c(!1)):e.action==="social_search"||e.action==="search"||e.action==="search_all"||e.action==="search_field"||e.action==="search_funnel"||e.action==="search_id"?(j(e.query||""),L(e.query||"")):e.action==="web_search"&&e.url&&(window.open(e.url,"_blank"),c(!1))},pe=async()=>{if(!n.trim())return;const e=C(n.trim());if(e!==n.trim()){window.open(e,"_blank"),c(!1);return}try{const a=(await q.post("/omnibox/direct-action",{query:n.trim()})).data;a.action==="social_search"&&a.hashtag?L("#"+a.hashtag):a.url&&(window.open(a.url,"_blank"),c(!1))}catch{const a=n.trim();if(a.startsWith("http://")||a.startsWith("https://"))window.open(a,"_blank");else if(a.includes(".")&&!a.includes(" ")){const r=C(a);r!==a?window.open(r,"_blank"):window.open(`https://${a}`,"_blank")}else window.open(`https://www.google.com/search?q=${encodeURIComponent(a)}`,"_blank");c(!1)}},K=e=>{if(u(e),n.trim()){const s=C(n.trim());if(s!==n.trim()){window.open(s,"_blank"),c(!1);return}if(d.length>0&&e<d.length)U(d[e]);else if(e<x.length){const a=e-d.length;a>=0&&a<x.length&&X(x[a])}}else e<g.length&&G(g[e])},Q=e=>({"⚡":ee,"🎨":Qe,"🔗":Ke,"📊":Ue,"🏷️":te,"🔍":E,"🌐":W,"📝":ze,"👤":J,"⚙️":Le,"❓":Pe,"🚀":Ie,"#️⃣":te,"🌍":W,"🌼":Fe,"▶️":Ae,"📌":Re,"👁️":Ee,"📱":Te})[e]||E,y=(e,s="bg")=>{const r={indigo:"indigo",blue:"blue",emerald:"emerald",purple:"purple",orange:"orange",gray:"gray",red:"red",amber:"amber",teal:"teal",green:"green"}[e]||"gray";switch(s){case"bg":return`bg-${r}-500/20`;case"text":return`text-${r}-300`;case"border":return`border-${r}-500/30`;default:return`bg-${r}-500/20`}},M=e=>({funnel:"Funnel",field:"Field",custom_domain:"Custom Domain",domain:"Domain",theme:"Theme",url:"URL",hashtag:"Hashtag",web_search:"Web Search",field_search:"Field Search",funnel_search:"Funnel Search",id_search:"ID Search",general_search:"General Search",social_tumblr:"Tumblr",social_youtube:"YouTube",social_pinterest:"Pinterest",social_reddit:"Reddit",social_search:"Social Media",hashtag_social:"Social Search",hashtag_web:"Web Search",error:"Error"})[e]||e.replace("_"," ").toUpperCase(),ue=()=>{j(""),w([]),N([]),_(0),u(0),S({}),i.current&&i.current.focus()},ge=e=>{navigator.clipboard.writeText(e).then(()=>{console.log("Copied to clipboard:",e)})},fe=()=>b==="all"?x:x.filter(e=>e.type===b),$=()=>[...fe()].sort((s,a)=>{switch(f){case"newest":return new Date(a.created_at||"").getTime()-new Date(s.created_at||"").getTime();case"oldest":return new Date(s.created_at||"").getTime()-new Date(a.created_at||"").getTime();case"relevance":default:return a.score-s.score}}),be=e=>{switch(e){case"tumblr":return"🌼";case"youtube":return"▶️";case"pinterest":return"📌";case"reddit":return"👁️";default:return null}};return l.useEffect(()=>(h&&document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z),v&&clearTimeout(v)}),[h,z,v]),t.jsxs(t.Fragment,{children:[t.jsxs(we,{children:[t.jsx("title",{children:"Re:Box Search - aso.now"}),t.jsx("style",{children:`
2                    .glow {
3                        box-shadow: 0 0 30px rgba(99, 102, 241, 0.35);
4                    }
5                    
6                    /* Custom scrollbar */
7                    ::-webkit-scrollbar {
8                        width: 8px;
9                    }
10                    
11                    ::-webkit-scrollbar-track {
12                        background: rgba(255, 255, 255, 0.05);
13                        border-radius: 4px;
14                    }
15                    
16                    ::-webkit-scrollbar-thumb {
17                        background: rgba(255, 255, 255, 0.2);
18                        border-radius: 4px;
19                    }
20                    
21                    ::-webkit-scrollbar-thumb:hover {
22                        background: rgba(255, 255, 255, 0.3);
23                    }
24                    
25                    /* Animation for ambient orbs */
26                    @keyframes float {
27                        0%, 100% {
28                            transform: translateY(0px) scale(1);
29                        }
30                        50% {
31                            transform: translateY(-20px) scale(1.05);
32                        }
33                    }
34                    
35                    .animate-float {
36                        animation: float 6s ease-in-out infinite;
37                    }
38                    
39                    /* Pulse animation for active item */
40                    @keyframes pulse-glow {
41                        0%, 100% {
42                            box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
43                        }
44                        50% {
45                            box-shadow: 0 0 20px 0 rgba(99, 102, 241, 0.5);
46                        }
47                    }
48                    
49                    .animate-pulse-glow {
50                        animation: pulse-glow 2s ease-in-out infinite;
51                    }
52                    
53                    /* Shimmer animation */
54                    @keyframes shimmer {
55                        0% {
56                            background-position: -1000px 0;
57                        }
58                        100% {
59                            background-position: 1000px 0;
60                        }
61                    }
62                    
63                    .animate-shimmer {
64                        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
65                        background-size: 1000px 100%;
66                        animation: shimmer 2s infinite;
67                    }
68                    
69                    /* Fade in animation */
70                    @keyframes fadeIn {
71                        from { opacity: 0; transform: translateY(-10px); }
72                        to { opacity: 1; transform: translateY(0); }
73                    }
74                    
75                    .animate-fade-in {
76                        animation: fadeIn 0.3s ease-out;
77                    }
78                    
79                    /* Typewriter effect */
80                    @keyframes typewriter {
81                        from { width: 0; }
82                        to { width: 100%; }
83                    }
84                    
85                    .typewriter {
86                        overflow: hidden;
87                        white-space: nowrap;
88                        animation: typewriter 2s steps(40) 1s 1 normal both;
89                    }
90                `})]}),t.jsxs("main",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-gray-900 to-black flex items-center justify-center p-4 sm:p-6 overflow-hidden relative",children:[t.jsx("div",{className:"absolute top-16 left-16 w-64 h-64 sm:w-80 sm:h-80 bg-indigo-500/30 rounded-full blur-3xl animate-float opacity-70"}),t.jsx("div",{className:"absolute bottom-16 right-16 w-64 h-64 sm:w-80 sm:h-80 bg-fuchsia-500/30 rounded-full blur-3xl animate-float opacity-70",style:{animationDelay:"3s"}}),h&&t.jsx("button",{onClick:()=>c(!1),className:"absolute top-4 right-4 sm:top-6 sm:right-6 z-50 w-10 h-10 bg-gray-800/80 hover:bg-gray-700/80 rounded-lg flex items-center justify-center transition-all duration-200 hover:scale-110 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50","aria-label":"Close omnibox","data-tooltip-id":"omnibox-tooltip","data-tooltip-content":"Close omnibox (Esc)",children:t.jsx(o,{icon:O,className:"text-gray-300 hover:text-white text-base transition-colors"})}),t.jsxs("div",{ref:A,className:"relative z-10 w-full max-w-2xl lg:max-w-4xl animate-fade-in",children:[t.jsxs("div",{className:`glow backdrop-blur-2xl bg-white/10 border border-white/20 rounded-2xl shadow-2xl transition-all duration-300 ${h?"opacity-100 scale-100":"opacity-0 scale-95"}`,children:[t.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 px-4 sm:px-6 py-4 sm:py-5 rounded-t-2xl bg-white/5 hover:bg-white/10 transition-colors duration-200",children:[t.jsx("div",{className:"p-2 sm:p-2.5 rounded-xl bg-gradient-to-br from-indigo-500 to-purple-600 text-white shadow-lg",children:"Re:Box"}),t.jsx("input",{ref:i,type:"text",value:n,onChange:xe,placeholder:"Search funnels, fields, domains, themes, hashtags... (Ctrl+K)",className:"flex-1 bg-transparent outline-none text-white placeholder-gray-400 text-sm sm:text-lg tracking-wide focus:ring-0",autoFocus:!0,"data-tooltip-id":"omnibox-tooltip","data-tooltip-content":"Type to search across all content and social media"}),n&&t.jsx("button",{onClick:ue,className:"p-2 text-gray-400 hover:text-white transition-colors","aria-label":"Clear search",children:t.jsx(o,{icon:O,className:"w-4 h-4"})}),Y&&t.jsx("div",{className:"ml-2",children:t.jsx(o,{icon:ye,className:"text-indigo-300 text-sm animate-spin"})}),t.jsxs("kbd",{className:"hidden sm:flex items-center gap-1 text-xs text-gray-300 bg-white/10 px-3 py-1.5 rounded-lg border border-white/20 transition-colors hover:bg-white/20",children:[t.jsx(o,{icon:Z,className:"mr-1"}),"Ctrl+K"]})]}),t.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-white/20 to-transparent"}),t.jsxs("div",{className:"py-2 max-h-[70vh] overflow-y-auto",children:[n.trim()&&d.length>0&&t.jsxs("div",{className:"mb-4",children:[t.jsxs("div",{className:"px-4 sm:px-6 py-2 text-[11px] uppercase tracking-widest text-gray-400 flex items-center justify-between",children:[t.jsx("span",{children:"Smart Suggestions"}),t.jsxs("span",{className:"text-[10px] text-gray-500",children:[d.length," suggestions"]})]}),d.map((e,s)=>t.jsxs("div",{onClick:()=>K(s),className:`group flex items-center justify-between px-4 sm:px-6 py-3 sm:py-4 mx-2 rounded-xl cursor-pointer transition-all duration-200 ${p===s?"bg-white/20 animate-pulse-glow border border-white/30":"hover:bg-white/10"}`,onMouseEnter:()=>u(s),children:[t.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[t.jsx("div",{className:`w-8 h-8 sm:w-10 sm:h-10 rounded-xl flex items-center justify-center ${y(e.color,"bg")}`,children:t.jsx(o,{icon:Q(e.icon),className:`text-sm sm:text-lg ${y(e.color,"text")}`})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("div",{className:"text-white text-sm font-medium truncate",children:e.title}),t.jsx("div",{className:"text-xs text-gray-400 truncate",children:e.subt
90itle})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"hidden sm:inline text-xs text-gray-400 bg-white/5 px-2 py-1 rounded",children:M(e.type)}),e.url&&t.jsx(o,{icon:T,className:"text-xs text-gray-500 group-hover:text-indigo-400 transition-colors"})]})]},`suggestion-${s}`))]}),!n.trim()&&g.length>0&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"px-4 sm:px-6 py-2 text-[11px] uppercase tracking-widest text-gray-400 flex items-center justify-between",children:[t.jsx("span",{children:"Quick Actions"}),t.jsxs("span",{className:"text-[10px] text-gray-500",children:[g.length," actions"]})]}),g.map((e,s)=>t.jsxs("div",{onClick:()=>K(s),className:`group flex items-center justify-between px-4 sm:px-6 py-3 sm:py-4 mx-2 rounded-xl cursor-pointer transition-all duration-200 ${p===s?"bg-white/20 animate-pulse-glow border border-white/30":"hover:bg-white/10"}`,onMouseEnter:()=>u(s),children:[t.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[t.jsx("div",{className:`w-8 h-8 sm:w-10 sm:h-10 rounded-xl flex items-center justify-center ${y(e.color,"bg")}`,children:t.jsx(o,{icon:Q(e.icon),className:`text-sm sm:text-lg ${y(e.color,"text")}`})}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-white text-sm font-medium truncate",children:e.title}),t.jsx("div",{className:"text-xs text-gray-400 truncate",children:e.subt
90itle})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"hidden sm:inline text-xs text-gray-400 bg-white/5 px-2 py-1 rounded",children:e.shortcut}),e.url&&t.jsx(o,{icon:T,className:"text-xs text-gray-500 group-hover:text-indigo-400 transition-colors"})]})]},e.id))]}),n.trim()&&$().length>0&&t.jsx("div",{className:"sticky top-0 z-10 bg-gray-900/90 backdrop-blur-sm border-b border-gray-700/50",children:t.jsxs("div",{className:"px-4 sm:px-6 py-3",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:"flex items-center gap-4",children:t.jsxs("div",{children:[t.jsxs("div",{className:"text-sm font-semibold text-white",children:["Search Results",k>0&&t.jsxs("span",{className:"ml-2 text-xs font-normal text-gray-400",children:["(",k," found)"]})]}),t.jsxs("div",{className:"text-xs text-gray-400 mt-1",children:['Searching for: "',n,'"']})]})}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("button",{onClick:()=>ie(!I),className:`p-2 rounded-lg transition-colors ${I?"bg-indigo-500/20 text-indigo-300":"bg-gray-800/50 text-gray-400 hover:text-white"}`,"data-tooltip-id":"filter-tooltip","data-tooltip-content":"Toggle filters",children:t.jsx(o,{icon:je,className:"w-4 h-4"})}),t.jsx("button",{onClick:()=>ne(f==="relevance"?"newest":f==="newest"?"oldest":"relevance"),className:"p-2 rounded-lg bg-gray-800/50 text-gray-400 hover:text-white transition-colors","data-tooltip-id":"sort-tooltip","data-tooltip-content":`Sort by: ${f}`,children:t.jsx(o,{icon:f==="newest"?Ne:f==="oldest"?ve:ke,className:"w-4 h-4"})})]})]}),I&&t.jsx("div",{className:"mt-3 pt-3 border-t border-gray-700/50",children:t.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.jsxs("button",{onClick:()=>B("all"),className:`px-3 py-1.5 text-xs rounded-full transition-colors ${b==="all"?"bg-indigo-500 text-white":"bg-gray-800/50 text-gray-400 hover:text-white"}`,children:["All (",k,")"]}),Object.entries(re).map(([e,s])=>t.jsxs("button",{onClick:()=>B(e),className:`px-3 py-1.5 text-xs rounded-full transition-colors ${b===e?"bg-indigo-500 text-white":"bg-gray-800/50 text-gray-400 hover:text-white"}`,children:[M(e)," (",s,")"]},e))]})})]})}),n.trim()&&t.jsx(t.Fragment,{children:Y?t.jsxs("div",{className:"px-6 py-12 text-center text-gray-400",children:[t.jsxs("div",{className:"inline-flex items-center justify-center",children:[t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-indigo-500"}),t.jsx("span",{className:"ml-3 text-sm",children:n.startsWith("#")?`Searching social media for ${n}...`:"Searching across all content..."})]}),t.jsx("div",{className:"mt-6 w-full max-w-md mx-auto h-2 bg-gray-800/50 rounded-full overflow-hidden",children:t.jsx("div",{className:"h-full bg-gradient-to-r from-indigo-500 to-purple-600 animate-shimmer"})})]}):$().length>0?$().map((e,s)=>{const a=d.length+s;return t.jsxs("div",{className:`group flex items-center justify-between px-4 sm:px-6 py-3 sm:py-4 mx-2 rounded-xl cursor-pointer transition-all duration-200 ${p===a?"bg-white/20 animate-pulse-glow border border-white/30":"hover:bg-white/10"}`,onClick:()=>K(a),onMouseEnter:()=>u(a),children:[t.jsxs("div",{className:"flex items-start gap-3 sm:gap-4 flex-1",children:[t.jsx("div",{className:`w-8 h-8 sm:w-10 sm:h-10 rounded-xl flex items-center justify-center ${y(e.color,"bg")} flex-shrink-0`,children:t.jsx(o,{icon:Q(e.icon),className:`text-sm sm:text-lg ${y(e.color,"text")}`})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"flex-1 min-w-0",children:[e.url?t.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",onClick:r=>{r.stopPropagation(),c(!1)},className:"text-white text-sm font-medium truncate hover:text-indigo-300 transition-colors flex items-center gap-1 group/link",children:[e.title,t.jsx(o,{icon:T,className:"w-3 h-3 opacity-0 group-hover/link:opacity-100 transition-opacity"})]}):t.jsx("div",{className:"text-white text-sm font-medium truncate",children:e.title}),t.jsx("div",{className:"text-xs text-gray-400 truncate mt-1",children:e.subt
90itle}),e.description&&t.jsx("div",{className:"text-xs text-gray-500 mt-1 line-clamp-2",children:e.description})]}),t.jsxs("div",{className:"ml-2 flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[e.edit_url&&t.jsx("a",{href:e.edit_url,target:"_blank",rel:"noopener noreferrer",onClick:r=>r.stopPropagation(),className:"p-1 text-gray-400 hover:text-blue-400","data-tooltip-id":"action-tooltip","data-tooltip-content":"Edit",children:t.jsx(o,{icon:_e,className:"w-3 h-3"})}),e.preview_url&&t.jsx("a",{href:e.preview_url,target:"_blank",rel:"noopener noreferrer",onClick:r=>r.stopPropagation(),className:"p-1 text-gray-400 hover:text-green-400","data-tooltip-id":"action-tooltip","data-tooltip-content":"Preview",children:t.jsx(o,{icon:Se,className:"w-3 h-3"})}),e.url&&t.jsx("button",{onClick:r=>{r.stopPropagation(),ge(e.url||"")},className:"p-1 text-gray-400 hover:text-yellow-400","data-tooltip-id":"action-tooltip","data-tooltip-content":"Copy URL",children:t.jsx(o,{icon:Ce,className:"w-3 h-3"})})]})]}),t.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[t.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-gray-800/50 text-gray-400",children:M(e.type)}),e.platform&&t.jsxs("span",{className:"text-[10px] text-gray-500 flex items-center gap-1",children:[be(e.platform),e.platform]}),e.created_at&&t.jsx("span",{className:"text-[10px] text-gray-500",children:e.created_at}),e.user&&t.jsxs("span",{className:"text-[10px] text-gray-500 flex items-center gap-1",children:[t.jsx(o,{icon:J,className:"w-2 h-2"}),e.user.name]}),e.funnel&&t.jsxs("a",{href:e.funnel.url||`/funnels/${e.funnel.token}`,target:"_blank",rel:"noopener noreferrer",onClick:r=>r.stopPropagation(),className:"text-[10px] text-indigo-400 hover:text-indigo-300 flex items-center gap-1 transition-colors",children:[t.jsx(o,{icon:ee,className:"w-2 h-2"}),e.funnel.token]})]})]})]}),t.jsxs("div",{className:"flex items-center gap-2 ml-4",children:[t.jsxs("span",{className:"hidden sm:inline text-xs text-gray-400 bg-white/5 px-2 py-1 rounded",children:[e.score,"%"]}),e.url&&t.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",onClick:r=>{r.stopPropagation(),c(!1)},className:"text-xs text-gray-500 hover:text-indigo-400 transition-colors",children:t.jsx(o,{icon:T})})]})]},`${e.type}-${e.id}-${s}`)}):d.length===0?t.jsxs("div",{className:"px-6 py-12 text-center",children:[t.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-gray-800/50 flex items-center justify-center",children:t.jsx(o,{icon:E,className:"text-gray-500 text-2xl"})}),t.jsxs("p",{className:"text-sm text-gray-400 mb-2",children:['No results found for "',n,'"']}),t.jsx("p",{className:"text-xs text-gray-500 mb-4",children:"Try a different search term or use one of the smart suggestions above"}),t.jsxs("a",{href:`https://www.google.com/search?q=${encodeURIComponent(n)}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-indigo-500/20 text-indigo-300 rounded-lg hover:bg-indigo-500/30 transition-colors text-sm",children:[t.jsx(o,{icon:W,className:"w-4 h-4"}),'Search the web for "',n,'"']})]}):null})]}),t.jsx("div",{className:"border-t border-gray-700/50 bg-gray-900/50 rounded-b-2xl",children:t.jsx("div",{className:"px-4 sm:px-6 py-3",children:t.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-4 text-xs text-gray-500",children:[t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(o,{icon:De,className:"w-3 h-3"}),t.jsx(o,{icon:$e,className:"w-3 h-3"}),t.jsx("span",{children:"Navigate"})]}),t.jsx("span",{className:"hidden sm:inline",children:"•"}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(o,{icon:Z,className:"w-3 h-3"}),t.jsx("span",{children:"Enter Select"})]}),t.jsx("span",{className:"hidden sm:inline",children:"•"}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(o,{icon:O,className:"w-3 h-3"}),t.jsx("span",{children:"Esc Close"})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[k>0&&t.jsxs("div",{className:"text-xs text-gray-500",children:["Showing ",$().length," of ",k]}),n.startsWith("#")&&(P.tumblr_next||P.youtube_next||P.reddit_after)&&t.jsx("button",{onClick:()=>{console.log("Load more social media results")},className:"text-xs text-indigo-400 hover:text-indigo-300 px-2 py-1 bg-indigo-500/10 rounded",children:"Load more"})]})]})})})]}),!n.trim()&&t.jsx("div",{className:"mt-4 text-center",children:t.jsxs("div",{className:"inline-flex flex-wrap items-center justify-center gap-3 text-xs text-gray-500",children:[t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx("kbd",{className:"px-1.5 py-0.5 bg-gray-800/50 rounded text-[10px]",children:"F0001"}
90),t.jsx("span",{children:"Search fields"})]}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx("kbd",{className:"px-1.5 py-0.5 bg-gray-800/50 rounded text-[10px]",children:"X000001"}),t.jsx("span",{children:"Search funnels"})]}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx("kbd",{className:"px-1.5 py-0.5 bg-gray-800/50 rounded text-[10px]",children:"example.com"}),t.jsx("span",{children:"Search domains"})]}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx("kbd",{className:"px-1.5 py-0.5 bg-gray-800/50 rounded text-[10px]",children:"#hashtag"}),t.jsx("span",{children:"Search social media"})]}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx("kbd",{className:"px-1.5 py-0.5 bg-gray-800/50 rounded text-[10px]",children:"re://example.com"}),t.jsx("span",{children:"Open with re:// protocol"})]}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx("kbd",{className:"px-1.5 py-0.5 bg-gray-800/50 rounded text-[10px]",children:"🀄://example.com"}),t.jsx("span",{children:"Open with 🀄:// protocol"})]})]})})]}),!h&&t.jsx("div",{className:"fixed bottom-6 right-6 z-40",children:t.jsxs("button",{onClick:()=>{c(!0),setTimeout(()=>{i.current&&i.current.focus()},100)},className:"group w-12 h-12 bg-gradient-to-br from-indigo-500 to-purple-600 rounded-full flex items-center justify-center shadow-lg hover:shadow-xl hover:scale-110 transition-all duration-300","data-tooltip-id":"omnibox-tooltip","data-tooltip-content":"Open Omnibox (Ctrl+K)",children:[t.jsx(o,{icon:E,className:"text-white text-lg group-hover:rotate-12 transition-transform"}),t.jsx("span",{className:"absolute -top-1 -right-1 w-5 h-5 bg-red-500 rounded-full text-[10px] flex items-center justify-center text-white font-bold border-2 border-gray-900",children:"⌘K"})]})}),t.jsx(R,{id:"omnibox-tooltip",className:"!z-[99999] !opacity-100 !px-3 !py-2 !rounded-lg !bg-gray-900 !border !border-gray-700 !text-sm"}),t.jsx(R,{id:"filter-tooltip",className:"!z-[99999] !opacity-100 !px-3 !py-2 !rounded-lg !bg-gray-900 !border !border-gray-700 !text-sm"}),t.jsx(R,{id:"sort-tooltip",className:"!z-[99999] !opacity-100 !px-3 !py-2 !rounded-lg !bg-gray-900 !border !border-gray-700 !text-sm"}),t.jsx(R,{id:"action-tooltip",className:"!z-[99999] !opacity-100 !px-3 !py-2 !rounded-lg !bg-gray-900 !border !border-gray-700 !text-sm"})]})]})}export{Ve 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.