1import{j as e}from"./ui-components-CrH3hhmI.js";import{r as d}from"./react-core-Df-1f7lZ.js";import{o as re,I as ae,ce as F,$ as de,bf as D,f as z,bq as le,U as ne,bg as ie,bh as oe,E as ce,bi as xe,bj as me,be as T,N as he,a1 as V,Z as ue,bc as fe,bs as ge}from"./index-baCrhAE7.js";import{S as be,a as je,c as pe,d as ve}from"./select-Ble92Qbb.js";import{S as U}from"./switch-ChDQayde.js";import{R as Ne,A as ye,X as we,Y as ke,T as Se,g as Ce}from"./charts-DACaTPEh.js";import{C as Pe}from"./circle-alert-COyT09MS.js";import{A as Ae}from"./arrow-up-down-DkF5DC5S.js";import{L as De}from"./link-Bl1fAUvs.js";import{R as Te}from"./rss-CoZzJvEb.js";import{F as K}from"./flame-PxDddfp_.js";import"./utils-BZSOOpUI.js";import"./editor-wwdhYSyT.js";function Me({data:i,keyword:g,onPriceHover:b}){const[o,h]=d.useState([]);if(d.useEffect(()=>{if(i.length===0&&g){const n=Date.now(),r=Math.random()*50+10,l=Array.from({length:20},(v,u)=>{const N=n-(19-u)*3e4,c=r*.1,S=Math.sin(u*.3)*c*.5,a=(Math.random()-.5)*c*.3,w=Math.max(r+S+a,1);return{time:new Date(N).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),value:+w.toFixed(2),timestamp:N}});h(l)}else if(i.length>0){const n=i.map(r=>({time:new Date(r.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),value:r.predictedPrice,timestamp:r.timestamp,confidence:r.confidenceScore}));h(n)}else h([])},[i,g]),o.length===0)return e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsxs("div",{className:"text-muted-foreground text-center",children:[e.jsx("div",{className:"w-16 h-16 border-4 border-border border-t-blue-500 rounded-full animate-spin mx-auto mb-4"}),e.jsx("div",{children:"Loading chart data..."})]})});const j=o.length>1,p=(j?o[o.length-1].value>=o[0].value:!0)?"#10b981":"#ef4444",k=({active:n,payload:r,label:l})=>
1{if(n&&r&&r.length){const v=r[0].value;return e.jsxs("div",{className:"bg-background border border-border rounded-lg p-3 shadow-lg",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:`Time: ${l}`}),e.jsx("p",{className:"text-foreground font-semibold",children:`Value: ${v.toFixed(2)} SAR`}),r[0].payload.confidence&&e.jsx("p",{className:"text-blue-400 text-sm",children:`Confidence: ${r[0].payload.confidence}%`})]})}return null},y=n=>{if(n&&n.activePayload&&n.activePayload.length>0&&b){const r=n.activePayload[0].value;b(r)}};return e.jsxs("div",{className:"w-full h-full relative",children:[e.jsx(Ne,{width:"100%",height:"100%",children:e.jsxs(ye,{data:o,margin:{top:20,right:30,left:20,bottom:20},onMouseMove:y,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"chartGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:p,stopOpacity:.4}),e.jsx("stop",{offset:"100%",stopColor:p,stopOpacity:.1})]})}),e.jsx(we,{dataKey:"time",axisLine:!1,tickLine:!1,tick:{fill:"#6b7280",fontSize:12},interval:"preserveStartEnd"}),e.jsx(ke,{domain:j?["dataMin - 1","dataMax + 1"]:[0,20],axisLine:!1,tickLine:!1,tick:{fill:"#6b7280",fontSize:12}}),e.jsx(Se,{content:e.jsx(k,{})}),e.jsx(Ce,{type:"monotone",dataKey:"value",stroke:p,strokeWidth:3,fill:"url(#chartGradient)",dot:!1,activeDot:{r:6,fill:p,stroke:"#fff",strokeWidth:2}})]})}),!j&&g===""&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsxs("div",{className:"text-muted-foreground text-center",children:[e.jsx("div",{className:"text-lg font-semibold mb-2",children:"Start typing to see real-time data"}),e.jsx("div",{className:"text-sm",children:"Keyword valuation will appear here"})]})})]})}
1const M=[{code:"SAR",name:"Saudi Riyal",symbol:"ï·¼",flag:"ð¸ð¦",countryCode:"SA"},{code:"USD",name:"US Dollar",symbol:"$",flag:"ðºð¸",countryCode:"US"},{code:"EUR",name:"Euro",symbol:"â¬",flag:"ðªðº",countryCode:"EU"},{code:"GBP",name:"British Pound",symbol:"£",flag:"ð¬ð§",countryCode:"GB"},{code:"AED",name:"UAE Dirham",symbol:"د.Ø¥",flag:"ð¦ðª",countryCode:"AE"},{code:"KWD",name:"Kuwaiti Dinar",symbol:"د.Ù",flag:"ð°ð¼",countryCode:"KW"},{code:"QAR",name:"Qatari Riyal",symbol:"ر.Ù",flag:"ð¶ð¦",countryCode:"QA"},{code:"BHD",name:"Bahraini Dinar",symbol:".د.ب",flag:"ð§ð",countryCode:"BH"}];function Re(){const[i,g]=d.useState(""),[b,o]=d.useState(!1),[h,j]=d.useState([]),[f,p]=d.useState(null),[k,y]=d.useState(!0),[n,r]=d.useState(17),[l,v]=d.useState(null),[u,N]=d.useState([]),[c,S]=d.useState("SAR"),[a,w]=d.useState(null),[C,O]=d.useState(!1),[I,Q]=d.useState(!1),[G,R]=d.useState(null),H={links:1247,redditMentions:89,youtubeVideos:156,rssPings:23,competitiveness:78,similarBrands:["Nike","Adidas","Puma","Under Armour","Reebok"],topSites:["amazon.com","ebay.com","nike.com","adidas.com","footlocker.com","zappos.com"],trendinessScore:85,socialPosts:[{platform:"YouTube",title:"Best Running Shoes 2024 Review",author:"TechReviewer",engagement:12500,time:"2h ago",thumbnail:"/placeholder.svg?height=60&width=80&text=Video",logo:"ð¥",url:"https://youtube.com"},{platform:"TikTok",title:"Sneaker Collection Tour",author:"@sneakerhead",engagement:8900,time:"4h ago",thumbnail:"/placeholder.svg?height=60&width=80&text=TikTok",logo:"ðµ",url:"https://tiktok.com"},{platform:"Pinterest",title:"Athletic Shoe Style Guide",author:"FashionPins",engagement:3400,time:"6h ago",thumbnail:"/placeholder.svg?height=60&width=80&text=Style",logo:"ð",url:"https://pinterest.com"},{platform:"Reddit",title:"r/running shoe recommendations",author:"u/runner123",engagement:245,time:"8h ago",thumbnail:"/placeholder.svg?height=60&width=80&text=Reddit",logo:"ð´",url:"https://reddit.com"}],topDomains:[{domain:"nike.com",title:"Nike Official Store",authority:95,backlinks:24e5,thumbnail:"/placeholder.svg?height=60&width=80&text=Nike",favicon:"ð"},{domain:"footlocker.com",title:"Foot Locker Athletic Shoes",authority:87,backlinks:89e4,thumbnail:"/placeholder.svg?height=60&width=80&text=FL",favicon:"ðª"},{domain:"zappos.com",title:"Zappos Shoe Store",authority:82,backlinks:65e4,thumbnail:"/placeholder.svg?height=60&width=80&text=Zappos",favicon:"ð"}]},B=d.useCallback(Be(async s=>{if(!s.trim()){v(null),y(!0),j([]),N([]),w(null);return}o(!0),y(!1);try{const t=Math.random()*50+10,m=Math.floor(Math.random()*30)+70,X={keyword:s,predictedPrice:t,currency:c,confidenceScore:m,timestamp:Date.now()};v(X),w(H);const $=t,_=Array.from({length:20},(Ee,E)=>{const q=Date.now()-(19-E)*3e4,L=$*.1,ee=Math.sin(E*.3)*L*.5,se=(Math.random()-.5)*L*.3,te=Math.max($+ee+se,1);return{keyword:s,predictedPrice:+te.toFixed(2),currency:c,confidenceScore:m,timestamp:q}});N(_);const J=[{id:"1",provider:"SEO Pro",model:"Dynamic Forecast",predictedPrice:t,currency:c,confidenceScore:m,features:{},isBestOffer:!0,type:"floating"},{id:"2",provider:"AdWords AI",model:"Fixed Rate",predictedPrice:t*.92,currency:c,confidenceScore:m-5,features:{},type:"fixed"},{id:"3",provider:"Market Intel",model:"Competitive Analysis",predictedPrice:t*1.15,currency:c,confidenceScore:m+3,features:{},type:"floating"}];j(J),r(17)}catch(t){console.error("Analysis failed:",t)}finally{o(!1)}},800),[c]);d.useEffect(()=>{B(i)},[i,B]),d.useEffect(()=>{if(h.length>0&&n>0){const s=setTimeout(()=>r(n-1),1e3);return()=>clearTimeout(s)}},[n,h.length]);const W=s=>{const t=Math.floor(s/60),m=s%60;return`${t.toString().padStart(2,"0")}:${m.toString().padStart(2,"0")}`},P=u.length>=2?u[u.length-1].predictedPrice-u[0].predictedPrice:0,Y=u.length>=2?P/u[0].predictedPrice*100:0,A=P>=0,x=M.find(s=>s.code===c)||M[0],Z=()=>{R(null)};return e.jsxs("div",{className:"min-h-screen bg-white dark:bg-black text-gray-900 dark:text-white overflow-hidden w-full",children:[e.jsx("div",{className:"border-b border-gray-200 dark:border-gray-800 bg-gradient-to-r from-blue-500/5 to-purple-500/5",children:e.jsxs("div",{className:"flex items-center justify-between px-6 py-4",children:[e.jsxs("div",{className:"flex items-center space-x-8",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("div",{className:"w-1 h-6 bg-gradient-to-b from-blue-500 to-purple-500 rounded-full"}),e.jsx("span",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Valuation"})]}),e.jsx("span",{className:"text-gray-500 dark:text-gray-400 text-lg",children:"History"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{className:"text-gray-500 dark:text-gray-400 text-sm",children:"Hide Banner"}),e.jsx(U,{checked:I,onCheckedChange:Q})]})]})}),e.jsxs("div",{className:"flex h-[calc(100vh-73px)] w-full",children:[e.jsxs("div",{className:"w-1/2 p-6 overflow-y-auto flex flex-col",children:[e.jsxs("div",{className:"bg-gray-100/60 dark:bg-gray-900/60 rounded-2xl border border-gray-200 dark:border-gray-800 relative backdrop-blur-sm",children:[e.jsxs("div",{className:"p-6 ",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("span",{className:"text-gray-500 dark:text-gray-400 text-lg",children:"Analyze"}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{className:"text-gray-500 dark:text-gray-400 text-sm",children:"Credits: 1,247 KWD"}),e.jsx("span",{className:"bg-gradient-to-r from-blue-600 to-purple-600 text-white text-xs px-3 py-1 rounded-full font-semibold border border-blue-500/30",children:"MAX"})]})]}),e.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-muted rounded-full flex items-center justify-center",children:e.jsx(re,{className:"w-6 h-6 text-muted-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-foreground text-xl font-semibold",children:"Keyword"}),e.jsx("div",{className:"text-muted-foreground text-sm",children:"SEO Analysis"})]}),e.jsxs("div",{className:"text-right",children:[e.jsx(ae,{value:i,onChange:s=>g(s.target.value),placeholder:"Enter keyword...",className:"bg-background/30 border border-border text-foreground text-2xl font-bold text-right placeholder:text-muted-foreground px-4 py-3 h-auto focus-visible:ring-2 focus-visible:ring-blue-500/50 focus-visible:border-blue-500/50 w-64 roun
1ded-xl backdrop-blur-sm hover:border-border/60 transition-all duration-200"}),e.jsx("div",{className:"text-muted-foreground text-sm mt-2",children:l?`${x.symbol}${(l.predictedPrice*3.75).toFixed(2)}`:`${x.symbol}0.00`})]})]}),b&&e.jsxs("div",{className:"flex items-center space-x-2 text-blue-400",children:[e.jsx("div",{className:"w-4 h-4 border-2 border-blue-400 border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"text-sm",children:"Analyzing keyword value..."})]}),l&&l.confidenceScore<70&&e.jsxs("div",{className:"flex items-center space-x-2 text-red-400 mt-2",children:[e.jsx(Pe,{className:"w-4 h-4"}),e.jsx("span",{className:"text-sm",children:"Low confidence score, consider alternative keywords."})]})]}),e.jsx("div",{className:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 z-10",children:e.jsx("div",{className:"w-12 h-12 bg-background rounded-full flex items-center justify-center border border-border",children:e.jsx(Ae,{className:"w-5 h-5 text-muted-foreground"})})}),e.jsxs("div",{className:"p-6",children:[e.jsx("span",{className:"text-muted-foreground text-lg mb-4 block",children:"Valuation"}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-green-600 to-emerald-700 rounded-full flex items-center justify-center border border-green-500/30",children:e.jsx(F,{countryCode:x.countryCode,svg:!0,style:{width:"1.5em",height:"1.5em"}})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs(be,{value:c,onValueChange:S,children:[e.jsxs(je,{className:"bg-transparent border-none text-foreground text-xl font-semibold p-0 h-auto focus:ring-0 w-auto",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{children:x.code}),e.jsxs("span",{className:"text-muted-foreground text-sm",children:["(",x.name,")"]})]}),e.jsx(de,{className:"w-4 h-4 ml-2"})]}),e.jsx(pe,{className:"bg-background border-border",children:M.map(s=>e.jsx(ve,{value:s.code,className:"text-foreground hover:bg-muted",children:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(F,{countryCode:s.countryCode,svg:!0,style:{width:"1.5em",height:"1.5em"}}),e.jsx("span",{children:s.code}),e.jsxs("span",{className:"text-muted-foreground text-sm",children:["(",s.symbol,")"]})]})},s.code))})]}),e.jsx("div",{className:"text-muted-foreground text-sm",children:"Market Value"})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-foreground text-3xl font-bold",children:l?`${x.symbol}${l.predictedPrice.toFixed(2)}`:`${x.symbol}0.00`}),e.jsx("div",{className:"text-muted-foreground text-sm",children:l?`$${(l.predictedPrice*3.75).toFixed(2)} USD`:"$0.00 USD"})]})]})]})]}),h.length>0&&!f&&e.jsx("div",{className:"text-center py-6",children:e.jsx("span",{className:"text-muted-foreground text-lg",children:"Click on a quote to continue"})}),h.length>0&&e.jsx("div",{className:"space-y-3 mt-6",children:h.map(s=>e.jsxs("div",{onClick:()=>p(s),className:`bg-card/40 rounded-2xl border cursor-pointer transition-all duration-200 p-4 backdrop-blur-sm relative ${f?.id===s.id?"border-blue-500/50 bg-blue-900/10":"border-border/30 hover:border-border/50"} ${s.isBestOffer?"border-gradient-to-r from-blue-500/50 to-purple-500/50":""}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-blue-500 to-purple-600 rounded-full flex items-center justify-center",children:e.jsx("span",{className:"text-white font-bold text-xs",children:s.provider.split(" ").map(t=>t[0]).join("")})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-foreground font-semibold text-sm",children:s.provider}),e.jsx("div",{className:"text-muted-foreground text-xs",children:s.model})]})]}),e.jsxs("div",{className:"text-right",children:[e.jsxs("div",{className:"text-foreground font-bold",children:["~",x.symbol,s.predictedPrice.toFixed(2)]}),e.jsxs("div",{className:"text-muted-foreground text-xs",children:["$",(s.predictedPrice*3.75).toFixed(2)," USD"]})]})]}),e.jsxs("div",{className:"flex items-center justify-between mt-3 text-xs",children:[e.jsx("span",{className:"text-muted-foreground",children:"Confidence Score"}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxs("span",{className:"text-foreground",children:[s.confidenceScore,"%"]}),s.isBestOffer&&e.jsx(D,{className:"bg-gradient-to-r from-blue-600 to-purple-600 text-white text-xs border border-blue-500/30",children:"Recommended"})]})]})]},s.id))}),l&&l.confidenceScore<70&&e.jsx("div",{className:"bg-red-900/30 rounded-2xl border border-red-700/50 p-4 mt-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-red-400 font-semibold",children:"Low confidence keyword"}),e.jsxs("div",{className:"text-red-300 text-sm",children:["This keyword has ",l.confidenceScore,"% confidence. Consider alternatives."]})]}),e.jsx(z,{className:"bg-red-600 hover:bg-red-700 text-white rounded-full px-6",children:"Find Better Keywords"})]})}),a&&e.jsxs("div",{className:"mt-6 space-y-4",children:[e.jsxs("div",{className:"bg-card/40 rounded-xl border border-border/30 p-4",children:[e.jsx("h4",{className:"text-foreground font-semibold mb-4",children:"Analysis Metrics"}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"bg-muted/50 rounded-lg p-3 border border-border/30",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(De,{className:"w-4 h-4 text-blue-400"}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"Links"})]}),e.jsx("div",{className:"text-foreground font-bold text-lg",children:"0"})]}),e.jsxs("div",{className:"bg-muted/50 rounded-lg p-3 border border-border/30",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(le,{className:"w-4 h-4 text-orange-400"}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"Reddit"})]}),e.jsx("div",{className:"text-foreground font-bold text-lg",children:a.redditMentions})]}),e.jsxs("div",{className:"bg-muted/50 rounded-lg p-3 border border-border/30",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(ne,{className:"w-4 h-4 text-red-400"}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"YouTube"})]}),e.jsx("div",{className:"text-foreground font-bold text-lg",children:a.youtubeVideos})]}),e.jsxs("div",{className:"bg-muted/50 rounded-lg p-3 border border-border/30",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Te,{className:"w-4 h-4 text-green-400"}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"RSS"})]}),e.jsx("div",{className:"text-foreground font-bold text-lg",children:a.rssPings})]})]})]}),e.jsxs("div",{className:"bg-card/40 rounded-xl border border-border/30 p-4",children:[e.jsx("h4",{className:"text-foreground font-semibold mb-4",children:"Market Analysis"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"bg-muted/50 rounded-lg p-3 border border-border/30",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-muted-foreground text-sm",children:"Competitiveness"}),e.jsxs("span",{className:"text-foreground font-bold",children:[a.competitiveness,"%"]})]}),e.jsx("div",{className:"w-full bg-muted rounded-full h-2 mt-2",children:e.jsx("div",{className:"bg-gradient-to-r from-blue-500 to-purple-500 h-2 rounded-full",style:{width:`${a.competitiveness}%`}})})]}),e.jsxs("div",{className:"bg-muted/50 rounded-lg p-3 border border-border/30",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"text-muted-foreground text-sm",children:"Similar Brands"}),e.jsxs(ie,{children:[e.jsx(oe,{asChild:!0,children:e.jsx(z,{variant:"ghost",size:"sm",className:"text-blue-400 hover:text-blue-300",children:e.jsx(ce,{className:"w-4 h-4"})})}),e.jsx(xe,{className:"bg-background border-border",children:e.jsxs("div",{className:"p-2",children:[e.jsx("div",{className:"text-foreground font-semibold mb-2",children:"Top Sites:"}),a.topSites.map((s,t)=>e.jsx(me,{className:"text-muted-foreground hover:bg-muted",children:s},t))]})})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1",children:[a.similarBrands.slice(0,3).map((s,t)=>e.jsx(D,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:s},t)),a.similarBrands.length>3&&e.jsxs(D,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:["+",a.similarBrands.length-3]})]})]}),e.jsx("div",{className:"bg-muted/50 rounded-lg p-3 border border-border/30",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(U,{checked:C,onCheckedChange:O}),e.jsx("span",{className:"text-muted-foreground text-sm",children:"Trendiness Score"})]}),C&&e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(K,{className:"w-4 h-4 text-orange-500"}),e.jsxs("span",{className:"text-foreground font-bold",children:[a.trendinessScore,"%"]})]})]})})]})]})]})]}),e.jsx("div",{className:"w-1/2 p-6 overflow-hidden",children:k&&h.length===0?e.jsxs("div",{className:"space-y-8 h-full flex flex-col justify-center",children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsxs("h2",{className:"text-3xl font-bold text-foreground",children:["Introducing the new",e.jsx("br",{}),"valuation experience"]}),e.jsxs("div",{className:"flex justify-center space-x-3 py-6",children:[e.jsx("div",{className:"w-12 h-12 bg-red-500 rounded-full flex items-center justify-center",children:e.jsx(T,{className:"w-6 h-6 text-white"})}),e.jsx("div",{className:"w-12 h-12 bg-orange-500 rounded-full flex items-center justify-center",children:e.jsx(he,{className:"w-6 h-6 text-white"})}),e.jsx("div",{className:"w-12 h-12 bg-blue-500 rounded-full flex items-center justify-center",children:e.jsx(V,{className:"w-6 h-6 text-white"})}),e.jsx("div",{className:"w-12 h-12 bg-purple-500 rounded-full flex items-center justify-center",children:e.jsx(ue,{className:"w-6 h-6 text-white"})}),e.jsx("div",{className:"w-12 h-12 bg-green-500 rounded-full flex items-center justify-center",children:e.jsx(fe,{className:"w-6 h-6 text-white"})})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("div",{className:"w-8 h-8 bg-blue-500/20 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(T,{className:"w-4 h-4 text-blue-400"})}),e.jsx("div",{children:e.jsx("div",{className:"text-foreground font-semibold text-lg",children:"Analyze keywords effortlessly across multiple valuation models."})})]}),e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("div",{className:"w-8 h-8 bg-green-500/20 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(V,{className:"w-4 h-4 text-green-400"})}),e.jsx("div",{children:e.jsx("div",{className:"text-foreground font-semibold text-lg",children:"Explore, compare, and choose the right provider for your strategy."})})]}),e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-500/20 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(ge,{className:"w-4 h-4 text-purple-400"})}),e.jsx("div",{children:e.jsx("div",{className:"text-foreground font-semibold text-lg",children:"Experience secure analysis with real-time confidence scoring."})})]})]})]}):e.jsxs("div",{className:"h-full flex flex-col space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between flex-shrink-0",children:[e.jsx("h3",{className:"text-xl font-semibold text-foreground",children:"Real-time Analysis"}),e.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[e.jsx("div",{className:"w-6 h-6 bg-foreground rounded-full flex items-center justify-center",children:e.jsx("div",{className:"w-2 h-2 bg-background rounded-full"})}),e.jsxs("span",{className:"text-sm",children:["Update in: ",W(n)]})]})]}),e.jsxs("div",{className:"bg-card/60 rounded-2xl border border-border overflow-hidden flex-1 flex flex-col backdrop-blur-sm",children:[e.jsx("div",{className:"p-6 border-b border-border/30 flex-shrink-0",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(T,{className:"w-6 h-6 text-blue-400"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-foreground font-semibold text-xl",children:i||"Enter keyword to analyze"}),e.jsx("div",{className:"text-muted-foreground text-sm",children:"Real-time keyword valuation"})]})]}),l&&e.jsxs("div",{className:"text-right",children:[e.jsxs("div",{className:"flex items-center justify-end space-x-2 mb-1",children:[e.jsx("span",{className:"text-2xl",children:x.flag}),e.jsxs("div",{className:"text-3xl font-bold text-foreground",children:[x.symbol,(G||l.predictedPrice).toFixed(2)]})]}),e.jsxs("div",{className:`text-lg ${A?"text-green-400":"text-red-400"}`,children:[A?"+":"",Y.toFixed(2),"% (",A?"+":"",P.toFixed(2),")"]}),C&&a&&e.jsxs("div",{className:"flex items-center justify-end space-x-2 mt-2",children:[e.jsx(K,{className:"w-4 h-4 text-orange-500"}),e.jsxs("span",{className:"text-orange-400 font-semibold text-sm",children:["Trend: ",a.trendinessScore,"%"]})]})]})]})}),e.jsx("div",{className:"flex-1 p-4 min-h-[300px]",onMouseLeave:Z,children:e.jsx(Me,{data:u,keyword:i,onPriceHover:R})})]}),f&&e.jsxs("div",{className:"bg-card/60 rounded-2xl border border-border/30 p-6 flex-shrink-0 backdrop-blur-sm",children:[e.jsx("h4",{className:"text-lg font-semibold text-foreground mb-4",children:"Selected Quote Details"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"Provider"}),e.jsx("span",{className:"text-foreground font-semibold",children:f.provider})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"Model"}),e.jsx("span",{className:"text-foreground",children:f.model})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"Predicted Value"}),e.jsxs("span",{className:"text-foreground font-bold",children:[x.symbol,f.predictedPrice.toFixed(2)]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"Confidence"}),e.jsxs("span",{className:"text-green-400 font-semibold",children:[f.confidenceScore,"%"]})]})]})]})]})})]}),a&&e.jsx("div",{className:"bg-background border-t border-border p-6",children:e.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-card/40 rounded-xl border border-border/30 p-4",children:[e.jsxs("h4",{className:"text-foreground font-semibold mb-4 flex items-center space-x-2",children:[e.jsx("span",{className:"text-xl",children:"ð"}),e.jsx("span",{children:"Recent Social Posts"})]}),e.jsx("div",{className:"space-y-3",children:a.socialPosts.map((s,t)=>e.jsxs("div",{className:"flex items-center space-x-3 p-3 bg-muted/30 rounded-lg border border-border/20 hover:bg-muted/50 transition-colors cursor-pointer",children:[e.jsx("div",{className:"relative",children:e.jsx("img",{src:`https://www.google.com/s2/favicons?domain=${s.platform.toLowerCase()}.com&sz=32`,alt:s.platform,className:"w-10 h-10 rounded-lg object-cover",onError:m=>{m.currentTarget.src="/placeholder.svg?height=40&width=40&text="+s.logo}})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-foreground font-medium text-sm truncate",children:s.title}),e.jsxs("div",{className:"text-muted-foreground text-xs",children:[s.author," ⢠",s.platform]}),e.jsxs("div",{className:"flex items-center space-x-3 text-xs text-muted-foreground mt-1",children:[e.jsxs("span",{children:["ð ",s.engagement.toLocaleStr
1ing()]}),e.jsx("span",{children:s.time})]})]})]},t))})]}),e.jsxs("div",{className:"bg-card/40 rounded-xl border border-border/30 p-4",children:[e.jsxs("h4",{className:"text-foreground font-semibold mb-4 flex items-center space-x-2",children:[e.jsx("span",{className:"text-xl",children:"ð"}),e.jsx("span",{children:"Top Linking Domains"})]}),e.jsx("div",{className:"space-y-3",children:a.topDomains.map((s,t)=>e.jsxs("div",{className:"flex items-center space-x-3 p-3 bg-muted/30 rounded-lg border border-border/20 hover:bg-muted/50 transition-colors cursor-pointer",children:[e.jsx("div",{className:"relative",children:e.jsx("img",{src:`https://www.google.com/s2/favicons?domain=${s.domain}&sz=32`,alt:s.domain,className:"w-10 h-10 rounded-lg object-cover",onError:m=>{m.currentTarget.src="/placeholder.svg?height=40&width=40&text="+s.favicon}})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-foreground font-medium text-sm",children:s.domain}),e.jsx("div",{className:"text-foreground text-xs truncate",children:s.title}),e.jsxs("div",{className:"flex items-center space-x-3 text-xs text-muted-foreground mt-1",children:[e.jsxs("span",{children:["Authority: ",s.authority]}),e.jsxs("span",{children:["Links: ",s.backlinks.toLocaleString()]})]})]})]},t))})]})]})})]})}function Be(i,g){let b;return(...o)=>{clearTimeout(b),b=setTimeout(()=>i.apply(null,o),g)}}function $e(){return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsx(Re,{})})}function Ze(){return e.jsx($e,{})}export{Ze 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.