PageSourceSearch

https://slugish.ai/build/assets/PublicAIHistory-BFTfzu8H.js

js slugish.ai collected 2026-10-05 12:39:33 UTC 36,786 bytes, 71 lines download raw bytes

1import{r as i,b as be,a as ye,j as e,H as we,L as se}from"./app-DP13319Q.js";import{D as je}from"./DraggableMenu-Bk7Spryo.js";import{M as G}from"./react-tooltip.min-DW3XhwOj.js";import{F as l,e as Ne,ah as ae,N as ne,M as ve,g as ie,am as I,b as ke,h as re,an as Ce,ao as $e,f as u,P as _e,ak as le,j as Le,Z as Se}from"./index-CtyZ6W6U.js";/* empty css            */import"./index-DQkUn08L.js";const Fe={en:"English",zh:"中文",ja:"日本語",ko:"한국어",ar:"العربية"},Q=s=>{if(s==null)return"0.0000";const c=Number(s);return isNaN(c)?"0.0000":c.toFixed(4)},oe=s=>Fe[s]||s,Me=s=>{if(!s)return"";const[c,f]=s.split("@");if(c&&f){const L=c.substring(0,2),v=f.substring(f.length-3);return`${L}${"*".repeat(3)}@${"*".repeat(3)}${v}`}return s},de=s=>s.hashtag?Array.isArray(s.hashtag)?s.hashtag.map(c=>String(c).replace(/^#/,"").trim()).filter(Boolean):typeof s.hashtag=="string"&&s.hashtag?s.hashtag.split(/[, ]+/).map(c=>c.replace(/^#/,"").trim()).filter(Boolean):[]:[],Te=({size:s=20})=>e.jsx("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"animate-spin text-yellow-400",children:e.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})});function He({conversations:s,totalConversations:c,currentPage:f,lastPage:L,perPage:v,auth:B={user:null}}){const[b,E]=i.useState([]),[k,r]=i.useState(!1),[p,ce]=i.useState(f<L),[X,xe]=i.useState(f),[w,j]=i.useState(""),[R,Y]=i.useState([]),[me,ze]=i.useState(!0),[U,he]=i.useState(()=>{if(typeof window<"u"){const t=localStorage.getItem("public_ai_history_view_mode");if(t==="row"||t==="column")return t}return"column"}),Z=t=>{he(t),typeof window<"u"&&localStorage.setItem("public_ai_history_view_mode",t)},[x,J]=i.useState({isOpen:!1,feature:"",description:"",iconColor:"",icon:null}),V=i.useRef(null),pe=i.useRef(null);i.useEffect(()=>{if(typeof window<"u"){const t=new URLSearchParams(window.location.search),a=t.get("searchhashtag")||t.get("hashtag")||t.get("search")||t.get("tag")||t.get("q");a&&j(a)}},[]),i.useEffect(()=>{const t=(s==null?void 0:s.data)||[];E(t)},[s]),i.useEffect(()=>{if(w.trim()==="")Y(b);else{const t=w.trim().toLowerCase(),a=t.replace(/^https?:\/\//,"").replace(/^www\./,"").replace(/^ez\.wiki\//,"").replace(/^\/x\//,"").replace(/^x\//,"").replace(/^[@#/]/,"").trim(),F=[...b.filter(o=>{var H,W,K,ee,te;if((H=o.conversation_title)!=null&&H.toLowerCase().includes(t)||(W=o.query
1)!=null&&W.toLowerCase().includes(t)||(K=o.response_preview)!=null&&K.toLowerCase().includes(t)||(ee=o.conversation_id)!=null&&ee.toLowerCase().includes(t)||(te=o.model)!=null&&te.toLowerCase().includes(t)||o.user_email&&o.user_email.toLowerCase().includes(t))return!0;const N=de(o);if(N.length>0&&N.some(h=>{const d=h.toLowerCase();return d.includes(t)||`#${d}`.includes(t)||a&&(d.includes(a)||a.includes(d))}))return!0;if(o.slug){const m=o.slug.toLowerCase(),h=`/x/${m}`;if(m.includes(t)||h.includes(t)||a&&(m.includes(a)||a.includes(m)))return!0}if(o.ezFunnelToken){const m=o.ezFunnelToken.toLowerCase(),h=`https://ez.wiki/${m}`,d=`ez.wiki/${m}`;if(m.includes(t)||h.includes(t)||d.includes(t)||a&&(m.includes(a)||a.includes(m)))return!0}return!!(o.ezFunnelId&&String(o.ezFunnelId).toLowerCase().includes(t)||o.customDomains&&Array.isArray(o.customDomains)&&o.customDomains.some(h=>{var T,z,P;const d=((T=h.domain)==null?void 0:T.toLowerCase())||"",C=((z=h.domainselected)==null?void 0:z.toLowerCase())||"",$=`${C}/${d}`.toLowerCase(),_=`${d}.${C}`.toLowerCase(),M=((P=h.hashtag)==null?void 0:P.toLowerCase())||"",O=`https://${$}`,q=`https://${_}`;return d.includes(t)||C.includes(t)||$.includes(t)||_.includes(t)||O.includes(t)||q.includes(t)||M.includes(t)||a&&(d.includes(a)||$.includes(a)||_.includes(a)||M.includes(a))})||o.handleDomains&&Array.isArray(o.handleDomains)&&o.handleDomains.some(h=>{var T,z,P;const d=((T=h.domain)==null?void 0:T.toLowerCase())||"",C=((z=h.domainselected)==null?void 0:z.toLowerCase())||"",$=`${C}/${d}`.toLowerCase(),_=`${d}.${C}`.toLowerCase(),M=((P=h.hashtag)==null?void 0:P.toLowerCase())||"",O=`https://${$}`,q=`https://${_}`;return d.includes(t)||C.includes(t)||$.includes(t)||_.includes(t)||O.includes(t)||q.includes(t)||M.includes(t)||a&&(d.includes(a)||$.includes(a)||_.includes(a)||M.includes(a))}))})].sort((o,N)=>{if(o.pinned&&!N.pinned)return-1;if(!o.pinned&&N.pinned)return 1;if(o.pinned&&N.pinned){const H=o.pinned_order??999999,W=N.pinned_order??999999;return H-W}return new Date(N.created_at).getTime()-new Date(o.created_at).getTime()});Y(F)}},[w,b]),i.useEffect(()=>{const t=new IntersectionObserver(a=>{a[0].isIntersecting&&p&&!k&&ue()},{threshold:.5});return V.current&&t.observe(V.current),()=>t.disconnect()},[p,k]);const ue=i.useCallback(async()=>{if(!(k||!p)){r(!0);try{const t=await be.get("/public/ai/history/load-more",{params:{page:X+1,per_page:v}});if(t.data.success){const a=t.data.data;E(n=>[...n,...a]),xe(t.data.meta.current_page),ce(t.data.meta.current_page<t.data.meta.last_page)}}catch(t){console.error("Failed to load more conversations:",t)}finally{r(!1)}}},[k,p,X,v]);i.useCallback(()=>{ye.get("/")},[]),i.useCallback((t,a,n,F)=>{J({isOpen:!0,feature:t,description:a,iconColor:n,icon:F})},[]);const D=i.useCallback(()=>{J(t=>({...t,isOpen:!1}))},[]),ge=b.reduce((t,a)=>{const n=a.conversation_cost!==void 0&&a.conversation_cost!==null?Number(a.conversation_cost):0;return t+(isNaN(n)?0:n)},0),fe=b.reduce((t,a)=>t+(a.message_count||0),0),g=R.filter(t=>t.pinned).sort((t,a)=>{const n=t.pinned_order??999999,F=a.pinned_order??999999;return n-F}),y=R.filter(t=>!t.pinned),S=t=>{window.open(t,"_blank","noopener,noreferrer")};return e.jsxs(e.Fragment,{children:[e.jsx(we,{title:"Slug Wall - All Slugs"}),e.jsx("style",{children:`
2                .react-tooltip {
3                    z-index: 99999 !important;
4                    opacity: 1 !important;
5                    font-size: 12px;
6                    padding: 4px 8px;
7                }
8                
9                @keyframes fade-in {
10                    from { opacity: 0; }
11                    to { opacity: 1; }
12                }
13                
14                @keyframes slide-in-from-bottom-2 {
15                    from { transform: translateY(0.5rem); opacity: 0; }
16                    to { transform: translateY(0); opacity: 1; }
17                }
18                
19                @keyframes pulse-slow {
20                    0%, 100% {
21                        box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.3);
22                    }
23                    50% {
24                        box-shadow: 0 20px 30px -5px rgba(251, 191, 36, 0.5);
25                    }
26                }
27                
28                .animate-in {
29                    animation-duration: 0.3s;
30                    animation-fill-mode: both;
31                }
32                
33                .fade-in {
34                    animation-name: fade-in;
35                }
36                
37                .slide-in-from-bottom-2 {
38                    animation-name: slide-in-from-bottom-2;
39                }
40                
41                .animate-pulse-slow {
42                    animation: pulse-slow 2s infinite;
43                }
44                
45                .conversation-card:hover {
46                    border-color: #fbbf24;
47                    box-shadow: 0 8px 20px -6px rgba(251, 191, 36, 0.15);
48                }
49                
50                .custom-scrollbar::-webkit-scrollbar {
51                    width: 5px;
52                }
53                
54                .custom-scrollbar::-webkit-scrollbar-track {
55                    background: #1f2937;
56                    border-radius: 20px;
57                }
58                
59                .custom-scrollbar::-webkit-scrollbar-thumb {
60                    background: #4b5563;
61                    border-radius: 20px;
62                }
63                
64                .custom-scrollbar::-webkit-scrollbar-thumb:hover {
65                    background: #6b7280;
66                }
67                
68                button, .card-transition {
69                    transition: all 0.15s ease;
70                }
71            `}),e.jsx(G,{id:"main-tooltip",place:"top",className:"!bg-gray-800 !text-white !text-xs !px-3 !py-2 !rounded-lg !z-[100] !shadow-xl border !border-gray-700",effect:"solid"}),e.jsx(G,{id:"action-tooltip"}),e.jsx(G,{id:"dashboard-tooltip"}),e.jsx("div",{"data-tooltip-id":"action-tooltip","data-tooltip-content":"Drag to move the main menu",children:e.jsx(je,{auth:B})}),e.jsx("main",{className:"relative flex justify-end p-4 min-h-screen overflow-hidden",children:me&&e.jsx("div",{className:"relative mt-4 mx-auto bottom-4 z-50 backdrop-blur-sm p-4 rounded-xl border border-white/20 overflow-y-auto shadow-2xl w-full bg-gray-900/80","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":"This panel displays the Slug Wall",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(l,{icon:Ne,className:"text-yellow-400 text-2xl"}),e.jsx("h1",{className:"text-2xl font-bold text-white",children:"Slug Wall"})]}),e.jsx("p",{className:"text-sm text-gray-400 mt-2",children:"Browse the Slug Wall. Each card links to a unique slug."})]}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(se,{href:"/",className:"group relative inline-flex items-center gap-2.5 bg-gradient-to-r from-yellow-400 via-yellow-500 to-amber-500 text-black font-semibold py-2.5 px-5 rounded-xl shadow-lg shadow-yellow-500/30 hover:shadow-xl hover:shadow-yellow-500/40 hover:-translate-y-0.5 transition-all duration-200 overflow-hidden","data-tooltip-id":"main-tooltip","data-tooltip-content":"Go to home page to start a new conversation",children:[e.jsx("span",{className:"absolute inset-0 w-full h-full bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-700"}),e.jsx(l,{icon:ae,className:"relative"}),e.jsx("span",{className:"relative",children:"New Conversation"})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mt-6",children:[e.jsx("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1.5 border border-gray-700",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-400 font-medium text-sm uppercase tracking-wide",children:"Total Conversations"}),e.jsx("h3",{className:"text-3xl font-bold text-white mt-1",children:c})]}),e.jsx("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-yellow-500 to-amber-600 flex items-center justify-center text-white shadow-md",children:e.jsx(l,{icon:ne,className:"text-2xl"})})]})}),e.jsx("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1.5 border border-gray-700",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-400 font-medium text-sm uppercase tracking-wide",children:"Total Messages"}),e.jsx("h3",{className:"text-3xl font-bold text-white mt-1",children:fe})]}),e.jsx("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center text-white shadow-md",children:e.jsx(l,{icon:ve,className:"text-2xl"})})]})}),e.jsx("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1.5 border border-gray-700",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-400 font-medium text-sm uppercase tracking-wide",children:"Total Cost"}),e.jsxs("h3",{className:"text-3xl font-bold text-white mt-1",children:["$",Q(ge)]})]}
71),e.jsx("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-emerald-500 to-green-600 flex items-center justify-center text-white shadow-md",children:e.jsx(l,{icon:ie,className:"text-2xl"})})]})}),e.jsx("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1.5 border border-gray-700",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-400 font-medium text-sm uppercase tracking-wide",children:"Pinned"}),e.jsx("h3",{className:"text-3xl font-bold text-white mt-1",children:b.filter(t=>t.pinned).length})]}),e.jsx("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-purple-500 to-purple-700 flex items-center justify-center text-white shadow-md",children:e.jsx(l,{icon:I,className:"text-2xl"})})]})})]}),e.jsxs("div",{className:"mt-6 relative group",children:[e.jsx("input",{ref:pe,type:"text",value:w,onChange:t=>j(t.target.value),placeholder:"Search by title, query, #hashtag, slug, X0000 handle, domain, or email...",className:"w-full pl-12 pr-12 py-3.5 bg-gray-800/80 backdrop-blur-sm border-2 border-gray-700 rounded-xl focus:outline-none focus:ring-2 focus:ring-yellow-400/30 focus:border-yellow-400/50 transition-all duration-300 text-white placeholder-gray-500 shadow-sm hover:shadow-md","data-tooltip-id":"main-tooltip","data-tooltip-content":"Type to filter conversations by title, content, hashtag, slug, X0000 handle, domain, or email"}),e.jsx(l,{icon:ke,className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-500 group-focus-within:text-yellow-400 transition-colors duration-300"}),w&&e.jsx("button",{onClick:()=>j(""),className:"absolute right-4 top-1/2 transform -translate-y-1/2 p-1 hover:bg-gray-700 rounded-full transition-colors text-gray-400 hover:text-white","data-tooltip-id":"main-tooltip","data-tooltip-content":"Clear search",children:e.jsx(l,{icon:re,className:"text-sm"})})]})]}),R.length===0?e.jsxs("div",{className:"text-center py-20 bg-gray-800/80 backdrop-blur-sm rounded-3xl border-2 border-gray-700 shadow-sm",children:[e.jsx("div",{className:"w-24 h-24 mx-auto mb-6 bg-gradient-to-br from-gray-700 to-gray-600 rounded-full flex items-center justify-center",children:e.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#9ca3af",strokeWidth:"1.5",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 16v-4M12 8h.01"})]})}),e.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:w?"No matches found":"No conversations yet"}),e.jsx("p",{className:"text-gray-400 mb-8 max-w-md mx-auto",children:w?`No conversations match "${w}". Try different keywords.`:"Be the first to start a conversation!"}),e.jsxs(se,{href:"/",className:"inline-flex items-center px-6 py-3 bg-gradient-to-r from-yellow-400 to-amber-500 hover:from-yellow-500 hover:to-amber-600 text-black rounded-xl text-sm font-bold transition shadow-lg shadow-yellow-400/20 hover:shadow-xl hover:shadow-yellow-400/30 hover:-translate-y-0.5 duration-200","data-tooltip-id":"main-tooltip","data-tooltip-content":"Go to home page to start a new conversation",children:[e.jsx(l,{icon:ae,className:"mr-2"}),"Start a Conversation"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between flex-wrap gap-3",children:[e.jsx("div",{className:"flex items-center flex-wrap gap-2",children:e.jsxs("p",{className:"text-sm text-gray-500",children:["Showing ",e.jsx("span",{className:"font-medium text-gray-300",children:R.length})," of"," ",e.jsx("span",{className:"font-medium text-gray-300",children:c})," conversations",g.length>0&&e.jsxs("span",{className:"ml-2 text-xs bg-yellow-400/20 text-yellow-400 px-2 py-0.5 rounded-full border border-yellow-400/30",children:[e.jsx(l,{icon:I,className:"mr-1 text-xs"}),g.length," pinned"]})]})}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("div",{className:"flex items-center bg-gray-800/90 border border-gray-700 p-1 rounded-xl shadow-inner",children:[e.jsxs("button",{onClick:()=>Z("column"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all ${U==="column"?"bg-yellow-400 text-black font-bold shadow-sm":"text-gray-400 hover:text-white hover:bg-gray-700/50"}`,"data-tooltip-id":"main-tooltip","data-tooltip-content":"Column Mode (1st column pinned, 2nd & 3rd non-pinned)","aria-label":"Column Mode",children:[e.jsx(l,{icon:Ce,className:"text-xs"}),e.jsx("span",{children:"Columns"})]}),e.jsxs("button",{onClick:()=>Z("row"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all ${U==="row"?"bg-yellow-400 text-black font-bold shadow-sm":"text-gray-400 hover:text-white hover:bg-gray-700/50"}`,"data-tooltip-id":"main-tooltip","data-tooltip-content":"Row Mode (Full-width row layout)","aria-label":"Row Mode",children:[e.jsx(l,{icon:$e,className:"text-xs"}),e.jsx("span",{children:"Rows"})]})]}),e.jsxs("div",{className:"hidden sm:flex items-center space-x-1.5",children:[e.jsx("span",{className:"text-xs text-gray-500",children:"Slug:"}),e.jsx("span",{className:"text-xs bg-gray-700/50 px-2 py-1 rounded-md text-gray-400 border border-gray-600 font-mono","data-tooltip-id":"main-tooltip","data-tooltip-content":"Each conversation has a unique URL slug",children:"/X/your-slug"})]})]})]}),U==="column"?g.length>0?e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 items-start",children:[e.jsxs("div",{className:"lg:col-span-1 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-gray-800",children:[e.jsx(l,{icon:I,className:"text-yellow-400"}),e.jsx("h2",{className:"text-sm font-semibold text-yellow-400",children:"Pinned Conversations"}),e.jsx("span",{className:"text-xs bg-yellow-400/20 text-yellow-400 px-2 py-0.5 rounded-full border border-yellow-400/30",children:g.length})]}),e.jsx("div",{className:"flex flex-col space-y-6",children:g.map((t,a)=>e.jsx(A,{conversation:t,index:a,isPinned:!0,onOpenInNewTab:S,onHashtagClick:n=>j(`#${n}`)},t.conversation_id))})]}),e.jsx("div",{className:"lg:col-span-2 space-y-4",children:y.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-gray-800",children:[e.jsx("h2",{className:"text-sm font-semibold text-gray-400",children:"All Conversations"}),e.jsx("span",{className:"text-xs bg-gray-700/50 text-gray-400 px-2 py-0.5 rounded-full border border-gray-600",children:y.length})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:y.map((t,a)=>e.jsx(A,{conversation:t,index:g.length+a,isPinned:!1,onOpenInNewTab:S,onHashtagClick:n=>j(`#${n}`)},t.conversation_id))})]})})]}):e.jsx("div",{className:"space-y-4",children:y.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b border-gray-800",children:[e.jsx("h2",{className:"text-sm font-semibold text-gray-400",children:"All Conversations"}),e.jsx("span",{className:"text-xs bg-gray-700/50 text-gray-400 px-2 py-0.5 rounded-full border border-gray-600",children:y.length})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:y.map((t,a)=>e.jsx(A,{conversation:t,index:a,isPinned:!1,onOpenInNewTab:S,onHashtagClick:n=>j(`#${n}`)},t.conversation_id))})]})}):e.jsxs("div",{className:"space-y-8",children:[g.length>0&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2",children:[e.jsx(l,{icon:I,className:"text-yellow-400 text-sm"}),e.jsx("h2",{className:"text-base font-bold text-yellow-400",children:"Pinned Conversations"}),e.jsx("span",{className:"w-5 h-5 rounded-full bg-yellow-400/20 text-yellow-400 text-xs font-bold flex items-center justify-center border border-yellow-400/30",children:g.length})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:g.map((t,a)=>e.jsx(A,{conversation:t,index:a,isPinned:!0,onOpenInNewTab:S,onHashtagClick:n=>j(`#${n}`)},t.conversation_id))})]}),y.length>0&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-2",children:[e.jsx("h2",{className:"text-base font-semibold text-gray-400",children:"All Conversations"}),e.jsx("span",{className:"text-xs bg-gray-700/50 text-gray-400 px-2.5 py-0.5 rounded-full border border-gray-600",children:y.length})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:y.map((t,a)=>e.jsx(A,{conversation:t,index:g.length+a,isPinned:!1,onOpenInNewTab:S,onHashtagClick:n=>j(`#${n}`)},t.conversation_id))})]})]})]}),e.jsxs("div",{ref:V,className:"py-12 text-center",children:[k&&e.jsxs("div",{className:"inline-flex items-center gap-3 px-6 py-3 bg-gray-800/80 backdrop-blur-sm border-2 border-gray-700 rounded-2xl shadow-sm",children:[e.jsx(Te,{size:22}),e.jsx("span",{className:"text-sm font-medium text-gray-300",children:"Loading more conversations..."})]}),!p&&b.length>0&&e.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-gray-500",children:[e.jsx("div",{className:"w-12 h-px bg-gradient-to-r from-transparent to-gray-600"}),e.jsx("span",{children:"You've reached the end"}),e.jsx("div",{className:"w-12 h-px bg-gradient-to-l from-transparent to-gray-600"})]})]}),e.jsx("div",{className:"mt-8 text-center text-xs text-gray-500 border-t border-gray-700 pt-8",children:e.jsxs("p",{children:["Showing Slug Wall. Total slugs available: ",c]})})]})})}),x.isOpen&&e.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/70 backdrop-blur-sm p-4",children:e.jsxs("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 border border-gray-700 rounded-2xl shadow-2xl max-w-md w-full transform transition-all duration-300 scale-100 opacity-100 animate-in fade-in slide-in-from-bottom-2 duration-300",children:[e.jsx("div",{className:`px-6 py-5 rounded-t-2xl bg-gradient-to-r ${x.iconColor==="purple"?"from-purple-600 to-purple-700":x.iconColor==="blue"?"from-blue-600 to-blue-700":x.iconColor==="green"?"from-green-600 to-green-700":"from-yellow-500 to-amber-600"}`,children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3 min-w-0",children:[e.jsx("div",{className:"w-14 h-14 roun
71ded-xl bg-white/20 backdrop-blur-sm flex items-center justify-center flex-shrink-0",children:x.icon}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"text-xl font-bold text-white truncate",children:x.feature}),e.jsxs("div",{className:"flex items-center space-x-2 mt-1 flex-wrap",children:[e.jsx("span",{className:"px-2 py-0.5 bg-white/30 rounded-full text-xs font-semibold text-white whitespace-nowrap",children:"Coming Soon"}),e.jsx("span",{className:"text-white/80 text-xs whitespace-nowrap",children:"• Pre-alpha"})]})]})]}),e.jsx("button",{onClick:D,className:"text-white/80 hover:text-white transition-colors p-2 hover:bg-white/10 rounded-lg flex-shrink-0","aria-label":"Close modal","data-tooltip-id":"main-tooltip","data-tooltip-content":"Close modal",children:e.jsx(l,{icon:re,className:"text-xl"})})]})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h4",{className:"text-sm font-semibold text-yellow-400 mb-2",children:"✨ What's coming?"}),e.jsx("p",{className:"text-gray-300 leading-relaxed break-words",children:x.description})]}),e.jsxs("div",{className:"bg-gray-700/30 rounded-xl p-4 mb-6 border border-gray-600",children:[e.jsx("h4",{className:"text-xs font-semibold text-yellow-400 uppercase tracking-wider mb-3",children:"Early Preview"}),e.jsxs("div",{className:"space-y-2",children:[x.feature==="Analytics"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Real-time click tracking and analytics"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Geographic heatmaps and device insights"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Custom reports and exportable data"})]})]}),x.feature==="Collections"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Create and organize custom collections"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Add notes, tags, and custom metadata"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Share collections with team members"})]})]}),x.feature==="Bookmarks"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Save and organize favorite links"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Cross-device synchronization"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Folder organization and search"})]})]}),x.feature==="QR Scanner"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Scan QR codes directly from your browser"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Generate and share QR codes instantly"})]}),e.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-300",children:[e.jsx(l,{icon:u,className:"text-yellow-400"}),e.jsx("span",{children:"Scan history and quick access"})]})]})]})]}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("button",{onClick:()=>{D(),setTimeout(()=>{alert(`You'll be notified when ${x.feature} launches!`)},100)},className:`flex-1 px-4 py-3 ${x.iconColor==="purple"?"bg-purple-500 hover:bg-purple-600":x.iconColor==="blue"?"bg-blue-500 hover:bg-blue-600":x.iconColor==="green"?"bg-green-500 hover:bg-green-600":"bg-yellow-400 hover:bg-yellow-500"} text-black font-bold rounded-xl transition-colors flex items-center justify-center space-x-2`,"data-tooltip-id":"main-tooltip","data-tooltip-content":"Get notified when this feature launches",children:[e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:e.jsx("path",{d:"M22 2 11 13M22 2l-7 20-4-9-9-4 20-7z"})}),e.jsx("span",{children:"Notify Me"})]}),e.jsx("button",{onClick:D,className:"flex-1 px-4 py-3 bg-gray-700 hover:bg-gray-600 text-gray-300 font-medium rounded-xl transition-colors border border-gray-600","data-tooltip-id":"main-tooltip","data-tooltip-content":"Close this modal",children:"Maybe Later"})]})]}),e.jsx("div",{className:"px-6 py-3 bg-gray-700/30 border-t border-gray-600 rounded-b-2xl",children:e.jsxs("p",{className:"text-xs text-gray-500 text-center flex items-center justify-center space-x-1",children:[e.jsx("span",{children:"🚧"}),e.jsx("span",{children:"We're working hard to bring you this feature. Stay tuned for updates!"})]})})]})})]})}const A=({conversation:s,index:c,isPinned:f,onOpenInNewTab:L,onHashtagClick:v})=>{const B=de(s),b=r=>{r.preventDefault(),L(`/X/${s.slug}`)},E=r=>{r.preventDefault(),r.stopPropagation(),L(`/X/${s.slug}`)},k=r=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"})});return e.jsxs("div",{className:`group bg-[#182234] border-2 rounded-2xl transition-all duration-300 transform hover:-translate-y-1.5 hover:shadow-xl animate-in fade-in slide-in-from-bottom-3 relative cursor-pointer flex flex-col justify-between ${f?"border-yellow-500/70 hover:border-yellow-400 shadow-lg shadow-yellow-400/10 hover:shadow-yellow-400/20":"border-gray-700 hover:border-yellow-400/40 shadow-sm hover:shadow-lg hover:shadow-yellow-400/5"} p-5 sm:p-6`,style:{animationDelay:`${c*40}ms`},onClick:b,children:[e.jsxs("div",{children:[f&&e.jsx("div",{className:"mb-3",children:e.jsx("div",{className:"w-7 h-7 rounded-full bg-yellow-400/20 text-yellow-400 flex items-center justify-center border border-yellow-400/30 shadow-sm","data-tooltip-id":"main-tooltip","data-tooltip-content":`Pinned conversation ${s.pinned_order?`#${s.pinned_order}`:""}`,children:e.jsx(l,{icon:I,className:"text-xs"})})}),e.jsxs("div",{className:"flex items-start space-x-3.5 mb-3.5",children:[e.jsx("div",{className:"flex-shrink-0 bg-gray-800/90 border border-gray-700/70 rounded-xl w-10 h-10 flex items-center justify-center group-hover:scale-105 transition-transform duration-300 text-yellow-400 shadow-inner","data-tooltip-id":"main-tooltip","data-tooltip-content":`Model: ${s.model}`,children:k(s.model)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"text-base font-bold text-white truncate group-hover:text-yellow-400 transition-colors leading-snug","data-tooltip-id":"main-tooltip","data-tooltip-content":s.conversation_title||"Untitled Conversation",children:s.conversation_title||"Untitled Conversation"}),e.jsxs("div",{className:"flex items-center gap-1.5 mt-1 text-xs text-gray-500 flex-wrap",children:[e.jsx("span",{children:s.created_at_formatted}),s.user_email&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"·"}),e.jsxs("span",{className:"flex items-center gap-1 text-gray-400",children:[e.jsx(l,{icon:_e,className:"text-xs"}),Me(s.user_email)]})]})]})]})]}),e.jsx("div",{className:"text-gray-300 text-sm leading-relaxed mb-3.5 min-h-[44px] font-normal","data-tooltip-id":"main-tooltip","data-tooltip-content":s.query,children:e.jsx("p",{className:"line-clamp-4",children:s.query})}),B.length>0&&e.jsx("div",{className:"flex flex-wrap items-center gap-1.5 mb-3.5",children:B.map(r=>e.jsxs("a",{href:`/public/ai/history?searchhashtag=%23${encodeURIComponent(r)}`,onClick:p=>{p.preventDefault(),p.stopPropagation(),v&&v(r)},className:"inline-flex items-center gap-1 text-xs bg-yellow-400/10 hover:bg-yellow-400/20 text-yellow-400 border border-yellow-400/30 hover:border-yellow-400/50 px-2.5 py-1 rounded-full font-medium transition-colors cursor-pointer group/tag","data-tooltip-id":"main-tooltip","data-tooltip-content":`Filter by hashtag #${r}`,children:[e.jsx(l,{icon:le,className:"text-[10px] text-yellow-400/70 group-hover/tag:text-yellow-400"}),e.jsx("span",{children:r})]},r))}),(s.ezFunnelToken||s.customDomains&&s.customDomains.length>0||s.handleDomains&&s.handleDomains.length>0)&&e.jsxs("div",{className:"space-y-1.5 mb-4",children:[s.ezFunnelToken&&e.jsxs("a",{href:`https://ez.wiki/${s.ezFunnelToken}`,target:"_blank",rel:"noopener noreferrer",className:"bg-gradient-to-r from-yellow-500/10 to-amber-500/10 rounded-lg px-2.5 py-1.5 border border-yellow-500/30 text-xs font-mono text-yellow-400 hover:text-yellow-300 truncate flex items-center gap-1.5 transition-colors group/link",title:`Click to open https://ez.wiki/${s.ezFunnelToken} in new tab`,onClick:r=>r.stopPropagation(),children:[e.jsx("span",{className:"text-yellow-400 text-xs",children:"✨"}),e.jsxs("span",{className:"truncate font-semibold flex-1",children:["ez.wiki/",s.ezFunnelToken]}),e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"opacity-70 group-hover/link:opacity-100 transition-opacity text-yellow-400 flex-shrink-0",children:[e.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),e.jsx("polyline",{points:"15 3 21 3 21 9"}),e.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})]}),s.customDomains&&s.customDomains.map(r=>e.jsxs("a",{href:`https://${r.domainselected}/${r.domain}`,target:"_blank",rel:"noopener noreferrer",className:"bg-gradient-to-r from-blue-500/10 to-indigo-500/10 rounded-lg px-2.5 py-1.5 border border-blue-500/30 text-xs font-mono text-blue-400 hover:text-blue-300 truncate flex items-center gap-1.5 transition-colors group/link",title:`Click to open https://${r.domainselected}/${r.domain} in new tab`,onClick:p=>p.stopPropagation(),children:[e.jsx("span",{className:"text-blue-400 text-xs",children:"🌐"}),e.jsxs("span",{className:"truncate font-semibold flex-1",children:[r.domainselected,"/",r.domain]}),e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"opacity-70 group-hover/link:opacity-100 transition-opacity text-blue-400 flex-shrink-0",children:[e.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),e.jsx("polyline",{points:"15 3 21 3 21 9"}),e.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})]},r.id||`${r.domainselected}-${r.domain}`)),s.handleDomains&&s.handleDomains.map(r=>e.jsxs("a",{href:`https://${r.domain}.${r.domainselected}`,target:"_blank",rel:"noopener noreferrer",className:"bg-gradient-to-r from-purple-500/10 to-pink-500/10 rounded-lg px-2.5 py-1.5 border border-purple-500/30 text-xs font-mono text-purple-400 hover:text-purple-300 truncate flex items-center gap-1.5 transition-colors group/link",title:`Click to open https://${r.domain}.${r.domainselected} in new tab`,onClick:p=>p.stopPropagation(),children:[e.jsx("span",{className:"text-purple-400 text-xs",children:"🔗"}),e.jsxs("span",{className:"truncate font-semibold flex-1",children:[r.domain,".",r.domainselected]}),e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"opacity-70 group-hover/link:opacity-100 transition-opacity text-purple-400 flex-shrink-0",children:[e.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),e.jsx("polyline",{points:"15 3 21 3 21 9"}),e.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})]},r.id||`${r.domain}.${r.domainselected}`))]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-3.5",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 bg-gray-800/90 rounded-lg text-gray-300 px-2.5 py-1 text-xs border border-gray-700","data-tooltip-id":"main-tooltip","data-tooltip-content":`${s.message_count} messages in this conversation`,children:[e.jsx(l,{icon:ne,className:"text-xs"}),e.jsxs("span",{children:[s.message_count," msg"]})]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 bg-yellow-400/10 rounded-lg text-yellow-400 px-2.5 py-1 text-xs border border-yellow-400/30 font-medium","data-tooltip-id":"main-tooltip","data-tooltip-content":`Cost: $${Q(s.conversation_cost)}`,children:[e.jsx(l,{icon:ie,className:"text-xs"}
71),e.jsxs("span",{children:["$",Q(s.conversation_cost)]})]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 bg-blue-500/10 rounded-lg text-blue-400 px-2.5 py-1 text-xs border border-blue-500/30 font-medium","data-tooltip-id":"main-tooltip","data-tooltip-content":`Language: ${oe(s.language)}`,children:[e.jsx(l,{icon:Le,className:"text-xs"}),e.jsx("span",{children:oe(s.language)})]})]}),e.jsxs("div",{className:"pt-3 border-t border-gray-700/70 flex items-center justify-between",children:[e.jsxs("span",{className:"text-gray-500 flex items-center gap-1 text-xs font-mono truncate max-w-[200px]","data-tooltip-id":"main-tooltip","data-tooltip-content":`Full slug: /X/${s.slug}`,children:[e.jsx(l,{icon:le,className:"text-xs text-gray-500"}),e.jsxs("span",{children:["/X/",s.slug.length>20?`${s.slug.substring(0,18)}...`:s.slug]})]}),e.jsxs("button",{onClick:E,className:"font-medium text-yellow-400 inline-flex items-center gap-1.5 group-hover:text-yellow-300 transition-all duration-200 text-xs hover:underline flex-shrink-0","data-tooltip-id":"main-tooltip","data-tooltip-content":"View full conversation (opens in new tab)",children:[e.jsx("span",{children:"View"}),e.jsx(l,{icon:Se,className:"text-xs"})]})]})]})]})};export{He 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.