1import{c as ml,j as t}from"./vendor-react-core-C1Dw5D_W.js";import{u as ll}from"./vendor-query-DrkdRe4t.js";import{v as _l,T as il,aI as rl,bd as d,bc as m,d4 as al,bv as Ms,d5 as Bs,cf as Hs,b7 as ht,aC as jt,m as Nl,cK as yl,s as Zs,bU as vl}from"./seo-leaves-BMSG-wqE.js";import{d as L,b as P,T as f,c as n,e as $,a}from"./table-D7PYtuvh.js";import{R as qs,A as Sl,C as Ks,X as Vs,Y as xt,T as Ys,L as Xs,a as nl,b as cl,c as ft}from"./vendor-charts-CGymVFIl.js";import{L as Cl}from"./vendor-router-aghDRLMw.js";import"./vendor-supabase-Ds0jIvEe.js";import"./vendor-utils-DRU7gPsF.js";import"./vendor-motion-QAyZxYtn.js";async function wl(){const{data:{session:e}}=await Zs.auth.getSession();if(!e?.access_token)throw new Error("Sesiune expiratÄ â reconecteazÄ-te.");const l=await fetch("/api/seo-monitor/snapshot.json",{headers:{Authorization:`Bearer ${e.access_token}`}});if(!l.ok){const r=await l.text().catch(()=>"");throw new Error(r.slice(0,200)||`HTTP ${l.status}`)}return l.json()}function A(e){return e==null?0:Number(e)}async function kl(){const[e,l]=await Promise.all([Zs.rpc("get_organic_revenue_summary"),Zs.rpc("get_revenue_by_first_touch_channel_monthly",{p_months_back:6})]);if(e.error)throw new Error(e.error.message);if(l.error)throw new Error(l.error.message);const r=e.data?.[0]??null,o=r?{last_month:String(r.last_month??""),organic_revenue_last_month:A(r.organic_revenue_last_month),organic_orders_last_month:A(r.organic_orders_last_month),total_revenue_last_month:A(r.total_revenue_last_month),organic_share_pct_last_month:r.organic_share_pct_last_month==null?null:A(r.organic_share_pct_last_month),organic_revenue_mtd:A(r.organic_revenue_mtd),organic_orders_mtd:A(r.organic_orders_mtd),organic_revenue_6mo:A(r.organic_revenue_6mo),organic_orders_6mo:A(r.organic_orders_6mo)}:null,x=(l.data??[]).map(h=>({month:String(h.month??""),channel:String(h.channel??"Direct / Unknown"),medium:String(h.medium??"none"),is_organic:!!h.is_organic,orders:A(h.orders),revenue_eur:A(h.revenue_eur),customers:A(h.customers)}));return{summary:o,channels:x}}function gt(e){return e==null?"â":`â¬${e.toLocaleString("ro-RO",{minimumFractionDigits:0,maximumFractionDigits:0})}`}const Rl={},Il={},Ll={},Pl={},$l={},Al={lcp:{good:2500,ni:4e3},inp:{good:200,ni:500},cls:{good:.1,ni:.25}};function H(e,l){if(l==null)return null;const r=Al[e];return l<=r.good?"good":l<=r.ni?"ni":"poor"}const xl={good:"border-emerald-300 bg-emerald-50 text-emerald-900",ni:"border-amber-300 bg-amber-50 text-amber-900",poor:"border-rose-300 bg-rose-50 text-rose-900"},hl={good:"Good",ni:"Needs work",poor:"Poor"},ol={poor:0,ni:1,good:2};function ds(e){return e==null?"â":`${Math.round(e)}ms`}function pl(e){return e==null?"â":e.toFixed(3)}function j(e){return e==null?"â":new Intl.NumberFormat("en-US").format(e)}function dl(e){return e==null?"â":`${(e*(e<1?100:1)).toFixed(2)}%`}function Qs(e){if(!e)return"unknown";const l=new Date(e).getTime(),r=Date.now(),o=Math.floor((r-l)/(1e3*60*60));return o<1?"less than 1h ago":o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function Js(e,l=""){return e>0?{label:`+${j(e)}${l}`,color:"text-emerald-700",Icon:jt}:e<0?{label:`${j(e)}${l}`,color:"text-rose-700",Icon:yl}:{label:`0${l}`,color:"text-slate-500",Icon:jt}}function T(e){return e?e.replace(/^https?:\/\/[^/]+/,"")||"/":"â"}function Gl(e,l,r){const o=[];let x="green";e.status==="warning"&&(o.push("Bing API warning"),x="yellow");const h=e.crawl?.crawl_errors??0,N=e.crawl?.crawled_pages??1,C=h/Math.max(N,1);C>.2?(o.push(`${h} crawl errors Bing`),x="red"):C>.1&&(o.push(`${h} crawl errors Bing`),x==="green"&&(x="yellow"));const p=(l.statuses||[]).filter(s=>s.status==="FAIL").length,c=(l.statuses||[]).filter(s=>s.status==="WARN").length;p>0?(o.push(`${p} CF FAIL`),x="red"):c>0&&(o.push(`${c} CF WARN`),x==="green"&&(x="yellow"));const u=r.totals?.delta_7d?.clicks??0;return u<=-30?(o.push(`GSC clicks Î7d ${u}`),x="red"):u<=-10&&(o.push(`GSC clicks Î7d ${u}`),x==="green"&&(x="yellow")),{status:x,label:{green:"SÄnÄtos",yellow:"AtenÈie",red:"NecesitÄ acÈiune"}[x],reason:o.length?o.join(" · "):"Toate sistemele OK"}}function Tl(e,l,r){const o=[],x=(r.url_inspections||[]).filter(i=>i.coverage_state==="URL is unknown to Google");x.length>0&&o.push({severity:"high",title:`${x.length}
1 cornerstone URLs unknown to Google`,detail:x.map(i=>T(i.url)).join(` 2`),action:"GSC â URL Inspection â Request Indexing pentru fiecare URL. Aceasta accelereazÄ discovery cu 24-72h vs sitemap-only."});const h=(r.url_inspections||[]).filter(i=>i.verdict==="FAIL"||i.indexing_state==="INDEXING_DISALLOWED"||i.coverage_state&&i.coverage_state.toLowerCase().includes("error"));h.length>0&&o.push({severity:"high",title:`${h.length} cornerstone URLs cu probleme de indexare`,detail:h.map(i=>`${T(i.url)} â ${i.coverage_state||i.verdict}`).join(` 3`),action:"GSC â URL Inspection â Test live + verificÄ robots, canonical, noindex."});const N=(r.sitemap_status||[]).filter(i=>(i.errors??0)>0||(i.warnings??0)>10);N.length>0&&o.push({severity:N.some(i=>(i.errors??0)>0)?"high":"medium",title:`${N.length} sitemap(uri) cu erori/warning-uri`,detail:N.map(i=>`${i.path} â ${i.errors??0} erori, ${i.warnings??0} warning-uri, ${i.submitted_urls??0} URL-uri trimise`).join(` 4`),action:"GSC â Sitemaps â click pe sitemap â vezi detalii erori."});const C=(r.sitemap_status||[]).filter(i=>i.path&&/\?/.test(i.path));C.length>0&&o.push({severity:"medium",title:`Sitemap submis cu query string vechi (${C.length})`,detail:C.map(i=>i.path||"").join(` 5`),action:"GSC â Sitemaps â Èterge submisia veche + re-submite https://english-ease.eu/sitemap.xml"});const p=r.discovery_gap;p&&(p.gap_count??0)>200&&o.push({severity:"medium",title:`${p.gap_count} URL-uri în sitemap cu 0 impresii în 90d`,detail:`Din ${p.sitemap_urls} URL-uri în sitemap, doar ${p.seen_in_gsc_90d} au primit cel puÈin o impresie GSC în ultimele 90 de zile.`,action:"InvestigheazÄ exemple în secÈiunea 'Discovery gap' de mai jos. Multe sunt pagini noi / long-tail â verificÄ dacÄ lipsesc internal links sau dacÄ conÈinutul e prea slab."});const c=r.top_losers_28d||[];c.length>0&&(c.reduce((i,g)=>i+Math.abs(g.delta),0),o.push({severity:c.length>5?"high":"medium",title:`${c.length} pagini GSC au pierdut â¥30 impresii (28d vs prev 28d)`,detail:c.slice(0,5).map(i=>`${T(i.page)} â ${i.imp_prev} â ${i.imp_now} (Î ${i.delta})`).join(` 6`),action:"InvestigheazÄ pagini cu drop > 50% â verificÄ rank-drop pe queries cheie în GSC"}));const u=r.ctr_opportunities_28d||[];if(u.length>0){const i=u.reduce((g,z)=>g+z.impressions,0);o.push({severity:"high",title:`${u.length} pagini GSC cu CTR â¤2% Èi impresii â¥20`,detail:u.slice(0,5).map(g=>`${T(g.page)} â ${g.impressions} imp @ pos ${g.position} · CTR ${(g.ctr*100).toFixed(2)}%`).join(` 7`),action:`${i} impresii la risc. CTR sprint: rescrie title + meta description.`})}const b=(e.top_pages||[]).filter(i=>(i.impressions??0)>=10&&(i.clicks??0)===0&&(i.avg_impression_position??99)<=15).sort((i,g)=>(g.impressions??0)-(i.impressions??0)).slice(0,5);b.length>0&&o.push({severity:"medium",title:`${b.length} pagini Bing cu impresii dar zero clicuri (pos â¤15)`,detail:b.map(i=>`${T(i.page)} â ${i.impressions} imp @ pos ${i.avg_impression_position?.toFixed(1)}`).join(` 8`),action:"Suprapune cu CTR ops GSC â dacÄ apar Èi acolo, prioritizeazÄ"});const s=e.crawl?.crawl_errors??0,v=e.crawl?.code_4xx??0,y=e.crawl?.code_5xx??0;y>0?o.push({severity:"high",title:`${y} erori 5xx server Bing`,detail:"Erori la nivel server â pagini care rÄspund 5xx la Bing crawl. ATENÈIE: poate indica downtime sau bug recent.",action:"Bing Webmaster Tools â Reports â Crawl errors â filter 5xx"}):s>300&&v>200&&o.push({severity:"low",title:`${s} crawl 4xx Bing (sub baseline-ul de redirect)`,detail:`${v} de 4xx, 0 de 5xx, ${e.crawl?.blocked_by_robots??0} blocate. Majoritatea sunt URL-uri vechi care 301-redirecteazÄ â noise informaÈional.`,action:"VerificÄ doar dacÄ numÄrul creÈte brusc faÈÄ de baseline."});const w=(l.statuses||[]).filter(i=>i.status==="FAIL"||i.status==="WARN");return w.length>0&&o.push({severity:w.some(i=>i.status==="FAIL")?"high":"medium",title:`${w.length} probleme Cloudflare`,detail:w.map(i=>`${i.label}: ${i.detail||"â"}`).join(` 9`),action:"Cloudflare dashboard â Security & Bot Management"}),o}function ui(){const e=ml.c(320);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={queryKey:["seo-monitor-snapsh
9ot"],queryFn:wl,staleTime:3e5,refetchOnWindowFocus:!1},e[0]=l):l=e[0];const{data:r,isLoading:o,error:x,dataUpdatedAt:h,refetch:N}=ll(l);let C;e[1]===Symbol.for("react.memo_cache_sentinel")?(C={queryKey:["seo-monitor-organic-revenue"],queryFn:kl,staleTime:6e5,refetchOnWindowFocus:!1},e[1]=C):C=e[1];const{data:p}=ll(C);if(o){let _;return e[2]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("div",{className:"flex min-h-[60vh] items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-3 text-slate-600",children:[t.jsx(Nl,{className:"h-8 w-8 animate-spin"}),t.jsx("p",{className:"text-sm",children:"Se încarcÄ raportul SEOâ¦"})]})}),e[2]=_):_=e[2],_}if(x||!r){let _;e[3]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs("div",{className:"flex items-center gap-2 text-rose-900",children:[t.jsx(rl,{className:"h-5 w-5"}),t.jsx("h2",{className:"text-lg font-semibold",children:"Nu pot încÄrca raportul SEO"})]}),e[3]=_):_=e[3];const k=x instanceof Error?x.message:"Eroare necunoscutÄ la /api/seo-monitor/snapshot.json";let R;e[4]!==k?(R=t.jsx("p",{className:"text-sm text-rose-800",children:k}),e[4]=k,e[5]=R):R=e[5];let S;e[6]!==N?(S=t.jsx("button",{type:"button",onClick:()=>N(),className:"rounded-md bg-rose-900 px-4 py-2 text-sm font-medium text-white hover:bg-rose-800",children:"ÃncearcÄ din nou"}),e[6]=N,e[7]=S):S=e[7];let B;return e[8]!==R||e[9]!==S?(B=t.jsx("div",{className:"mx-auto max-w-2xl p-8",children:t.jsx(d,{className:"border-rose-200 bg-rose-50",children:t.jsxs(m,{className:"space-y-3 p-6",children:[_,R,S]})})}),e[8]=R,e[9]=S,e[10]=B):B=e[10],B}const c=r.bing??Rl,u=r.cloudflare??Il,b=r.cfAiBot??Ll,s=r.gsc??Pl,v=r.cfRum??$l,y=v.siteWide;let w,i,g,z,q,F,U,E,D,O,W,M;if(e[11]!==c||e[12]!==v.error||e[13]!==v.paths||e[14]!==v.windowHours||e[15]!==y?.clsP75||e[16]!==y?.inpP75||e[17]!==y?.lcpP75||e[18]!==y?.views||e[19]!==u||e[20]!==h||e[21]!==s||e[22]!==p||e[23]!==N||e[24]!==r.cruxHistory){const _=(v.paths||[]).slice().sort(ri);let k;e[37]!==r.cruxHistory?(k=(r.cruxHistory||[]).filter(ii).sort(li).slice(-8).map(si),e[37]=r.cruxHistory,e[38]=k):k=e[38];const R=k;let S;e[39]!==c.generated_at||e[40]!==u.generated_at||e[41]!==s.generated_at?(S=[c.generated_at,u.generated_at,s.generated_at].filter(ti).map(ei).reduce(Zl,0),e[39]=c.generated_at,e[40]=u.generated_at,e[41]=s.generated_at,e[42]=S):S=e[42];const B=S,Yt=B>0?(Date.now()-B)/36e5:1/0,Ns=Yt>26;let Xt;e[43]!==c||e[44]!==u||e[45]!==s?(Xt=Gl(c,u,s),e[43]=c,e[44]=u,e[45]=s,e[46]=Xt):Xt=e[46];const G=Xt,ys=Tl(c,u,s);let Qt;e[47]!==u.statuses?(Qt=u.statuses||[],e[47]=u.statuses,e[48]=Qt):Qt=e[48],w=Qt;const ul=G.status==="green"?"bg-emerald-50 border-emerald-200 text-emerald-900":G.status==="yellow"?"bg-amber-50 border-amber-200 text-amber-900":"bg-rose-50 border-rose-200 text-rose-900",vs=G.status==="green"?_l:G.status==="yellow"?il:rl,I=s.totals?.delta_7d,Ss=I?.clicks??0;let Jt;e[49]!==Ss?(Jt=Js(Ss),e[49]=Ss,e[50]=Jt):Jt=e[50];const pt=Jt,Cs=I?.impressions??0;let Zt;e[51]!==Cs?(Zt=Js(Cs),e[51]=Cs,e[52]=Zt):Zt=e[52];const ut=Zt,ws=-(I?.position??0);let es;e[53]!==ws?(es=Js(ws),e[53]=ws,e[54]=es):es=e[54];const el=es,ks=pt.Icon,Rs=ut.Icon,Is=el.Icon;q="container mx-auto max-w-7xl space-y-6 p-4 md:p-6";let ts;e[55]===Symbol.for("react.memo_cache_sentinel")?(ts=t.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900",children:"SEO Monitoring"}),e[55]=ts):ts=e[55];let Le;e[56]!==s.generated_at?(Le=Qs(s.generated_at),e[56]=s.generated_at,e[57]=Le):Le=e[57];let Pe;e[58]!==Le?(Pe=t.jsx("time",{children:Le}),e[58]=Le,e[59]=Pe):Pe=e[59];let $e;e[60]!==c.generated_at?($e=Qs(c.generated_at),e[60]=c.generated_at,e[61]=$e):$e=e[61];let Ae;e[62]!==$e?(Ae=t.jsx("time",{children:$e}),e[62]=$e,e[63]=Ae):Ae=e[63];let Ge;e[64]!==u.generated_at?(Ge=Qs(u.generated_at),e[64]=u.generated_at,e[65]=Ge):Ge=e[65];let Te;e[66]!==Ge?(Te=t.jsx("time",{children:Ge}),e[66]=Ge,e[67]=Te):Te=e[67];let ze;e[68]!==Pe||e[69]!==Ae||e[70]!==Te?(ze=t.jsxs("span",{children:["GSC: ",Pe," · Bing:"," ",Ae," · Cloudflare:"," ",Te]}),e[68]=Pe,e[69]=Ae,e[70]=Te,e[71]=ze):ze=e[71];let Fe;e[72]!==N?(Fe=()=>N(),e[72]=N,e[73]=Fe):Fe=e[73];let ss;e[74]!==h?(ss=new Date(h).toISOString(),e[74]=h,e[75]=ss):ss=e[75];const Ls=`Last fetched ${ss}`;let Ue;e[76]!==Fe||e[77]!==Ls?(Ue=t.jsx("button",{type:"button",onClick:Fe,className:"rounded-md border border-slate-200 px-2 py-1 text-xs font-medium text-slate-700 hover:bg-slate-50",title:Ls,children:"Refresh"}),e[76]=Fe,e[77]=Ls,e[78]=Ue):Ue=e[78],e[79]!==ze||e[80]!==Ue?(F=t.jsxs("header",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[ts,t.jsxs("div",{className:"flex items-center gap-3 text-sm text-slate-500",children:[ze,Ue]})]}),e[79]=ze,e[80]=Ue,e[81]=F):F=e[81],e[82]!==Yt||e[83]!==Ns?(U=Ns&&t.jsx(d,{className:"border-amber-300 bg-amber-50",children:t.jsxs(m,{className:"flex items-start gap-3 p-4 text-sm text-amber-900",children:[t.jsx(il,{className:"h-5 w-5 shrink-0 mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("p",{className:"font-semibold",children:"Date învechite â cron-ul SEO nu a rulat în ultimele 26h"}
9),t.jsxs("p",{className:"opacity-90",children:["Cea mai recentÄ capturÄ este de acum ",t.jsxs("strong",{children:[Math.round(Yt),"h"]}),". Cronul ruleazÄ zilnic la 05:20 UTC din ",t.jsx("code",{children:".github/workflows/seo-monitoring-cron.yml"}),". VerificÄ ultimele rulÄri în Actions Èi inspecteazÄ runner-ul ch2 dacÄ mai multe zile lipsesc."]})]})]})}),e[82]=Yt,e[83]=Ns,e[84]=U):U=e[84];const Ps=`border-2 ${ul}`;let Ee;e[85]!==vs?(Ee=t.jsx(vs,{className:"h-8 w-8 shrink-0"}),e[85]=vs,e[86]=Ee):Ee=e[86];let De;e[87]!==G.label?(De=t.jsxs("p",{className:"text-lg font-semibold",children:["SEO health: ",G.label]}),e[87]=G.label,e[88]=De):De=e[88];let Oe;e[89]!==G.reason?(Oe=t.jsx("p",{className:"text-sm opacity-90",children:G.reason}),e[89]=G.reason,e[90]=Oe):Oe=e[90];let We;e[91]!==De||e[92]!==Oe?(We=t.jsxs("div",{className:"min-w-0 flex-1",children:[De,Oe]}),e[91]=De,e[92]=Oe,e[93]=We):We=e[93];let Me;e[94]!==Ee||e[95]!==We?(Me=t.jsxs(m,{className:"flex items-center gap-3 p-4",children:[Ee,We]}),e[94]=Ee,e[95]=We,e[96]=Me):Me=e[96],e[97]!==Ps||e[98]!==Me?(E=t.jsx(d,{className:Ps,children:Me}),e[97]=Ps,e[98]=Me,e[99]=E):E=e[99],e[100]!==c.error||e[101]!==c.status||e[102]!==s.error||e[103]!==s.status?(D=(c.status==="warning"||s.status==="warning")&&t.jsx(d,{className:"border-amber-300 bg-amber-50",children:t.jsxs(m,{className:"space-y-1 p-4 text-sm text-amber-900",children:[t.jsx("p",{className:"font-semibold",children:"Date indisponibile pentru anumite surse"}),c.status==="warning"&&t.jsxs("p",{className:"break-all opacity-90",children:["Bing: ",c.error]}),s.status==="warning"&&t.jsxs("p",{className:"break-all opacity-90",children:["GSC: ",s.error]})]})}),e[100]=c.error,e[101]=c.status,e[102]=s.error,e[103]=s.status,e[104]=D):D=e[104],e[105]!==p?(O=p?.summary&&t.jsxs("section",{children:[t.jsxs("div",{className:"mb-3 flex items-baseline justify-between gap-2",children:[t.jsxs("h2",{className:"text-lg font-semibold text-slate-900",children:["Venit din organic ",t.jsx("span",{className:"text-slate-400",children:"·"})," atribuire first-touch"]}),t.jsxs("span",{className:"text-xs text-slate-500",children:["LunÄ completÄ: ",p.summary.last_month," · net de refund · pe data plÄÈii"]})]}),t.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[t.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500",children:"Organic â luna trecutÄ"}),t.jsx("p",{className:"mt-1 text-2xl font-bold text-emerald-700",children:gt(p.summary.organic_revenue_last_month)}),t.jsxs("p",{className:"mt-1 text-xs text-slate-500",children:[p.summary.organic_orders_last_month," comenzi"]})]})}),t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[t.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500",children:"CotÄ organic din venit"}),t.jsx("p",{className:"mt-1 text-2xl font-bold text-slate-900",children:p.summary.organic_share_pct_last_month==null?"â":`${p.summary.organic_share_pct_last_month}%`}),t.jsxs("p",{className:"mt-1 text-xs text-slate-500",children:["din ",gt(p.summary.total_revenue_last_month)," total atribuit"]})]})}),t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[t.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500",children:"Organic â luna curentÄ (MTD)"}),t.jsx("p",{className:"mt-1 text-2xl font-bold text-slate-900",children:gt(p.summary.organic_revenue_mtd)}),t.jsxs("p",{className:"mt-1 text-xs text-slate-500",children:[p.summary.organic_orders_mtd," comenzi"]})]})}),t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[t.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-slate-500",children:"Organic â 6 luni"}),t.jsx("p",{className:"mt-1 text-2xl font-bold text-slate-900",children:gt(p.summary.organic_revenue_6mo)}),t.jsxs("p",{className:"mt-1 text-xs text-slate-500",children:[p.summary.organic_orders_6mo," comenzi"]})]})})]}),p.channels.length>0&&t.jsx(d,{className:"mt-3",children:t.jsx(m,{className:"p-0",children:t.jsx("div",{className:"overflow-x-auto",children:t.jsxs(L,{children:[t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"LunÄ"}),t.jsx(n,{children:"Canal first-touch"}),t.jsx(n,{children:"Mediu"}),t.jsx(n,{className:"text-right",children:"Comenzi"}),t.jsx(n,{className:"text-right",children:"Venit"})]})}),t.jsx($,{children:p.channels.slice(0,24).map(Jl)})]})})})}),t.jsxs("p",{className:"mt-2 text-xs text-slate-400",children:["SursÄ: ",t.jsx("code",{children:"get_organic_revenue_summary"})," + ",t.jsx("code",{children:"get_revenue_by_first_touch_channel_monthly"})," ",'(CQRS, read-only). âOrganic" = referrer motor de cÄutare (original_medium=organic / *_organic).']})]}),e[105]=p,e[106]=O):O=e[106];let ls;e[107]===Symbol.for("react.memo_cache_sentinel")?(ls=t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"Google Search Console (7 zile)"}),e[107]=ls):ls=e[107];let is;e[108]===Symbol.for("react.memo_cache_sentinel")?(is=t.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[t.jsx(Bs,{className:"h-4 w-4"})," GSC clicuri (7d)"]}),e[108]=is):is=e[108];const $s=s.totals?.last7?.clicks;let Be;e[109]!==$s?(Be=j($s),e[109]=$s,e[110]=Be):Be=e[110];let He;e[111]!==Be?(He=t.jsx("p",{className:"mt-2 text-2xl font-bold text-slate-900",children:Be}),e[111]=Be,e[112]=He):He=e[112];const As=`mt-0.5 flex items-center gap-1 text-xs ${pt.color}`;let qe;e[113]!==ks?(qe=t.jsx(ks,{className:"h-3 w-3"}),e[113]=ks,e[114]=qe):qe=e[114];let Ke;e[115]!==pt.label||e[116]!==As||e[117]!==qe?(Ke=t.jsxs("p",{className:As,children:[qe,pt.label," vs prev 7d"]}),e[115]=pt.label,e[116]=As,e[117]=qe,e[118]=Ke):Ke=e[118];let Ve;e[119]!==He||e[120]!==Ke?(Ve=t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[is,He,Ke]})}),e[119]=He,e[120]=Ke,e[121]=Ve):Ve=e[121];let rs;e[122]===Symbol.for("react.memo_cache_sentinel")?(rs=t.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[t.jsx(Ms,{className:"h-4 w-4"})," GSC impresii (7d)"]}),e[122]=rs):rs=e[122];const Gs=s.totals?.last7?.impressions;let Ye;e[123]!==Gs?(Ye=j(Gs),e[123]=Gs,e[124]=Ye):Ye=e[124];let Xe;e[125]!==Ye?(Xe=t.jsx("p",{className:"mt-2 text-2xl font-bold text-slate-900",children:Ye}),e[125]=Ye,e[126]=Xe):Xe=e[126];const Ts=`mt-0.5 flex items-center gap-1 text-xs ${ut.color}`;let Qe;e[127]!==Rs?(Qe=t.jsx(Rs,{className:"h-3 w-3"}),e[127]=Rs,e[128]=Qe):Qe=e[128];let Je;e[129]!==ut.label||e[130]!==Ts||e[131]!==Qe?(Je=t.jsxs("p",{className:Ts,children:[Qe,ut.label," vs prev 7d"]}),e[129]=ut.label,e[130]=Ts,e[131]=Qe,e[132]=Je):Je=e[132];let Ze;e[133]!==Xe||e[134]!==Je?(Ze=t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[rs,Xe,Je]})}),e[133]=Xe,e[134]=Je,e[135]=Ze):Ze=e[135];let as;e[136]===Symbol.for("react.memo_cache_sentinel")?(as=t.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[t.jsx(Hs,{className:"h-4 w-4"})," GSC CTR (7d)"]}),e[136]=as):as=e[136];const zs=s.totals?.last7?.ctr;let et;e[137]!==zs?(et=dl(zs),e[137]=zs,e[138]=et):et=e[138];let tt;e[139]!==et?(tt=t.jsx("p",{className:"mt-2 text-2xl font-bold text-slate-900",children:et}),e[139]=et,e[140]=tt):tt=e[140];const Fs=(I?.ctr_pct_points??0)>=0?"+":"";let st;e[141]!==I?.ctr_pct_points?(st=I?.ctr_pct_points?.toFixed(2),e[141]=I?.ctr_pct_points,e[142]=st):st=e[142];let lt;e[143]!==Fs||e[144]!==st?(lt=t.jsxs("p",{className:"mt-0.5 text-xs text-slate-500",children:["Î ",Fs,st," pp vs prev 7d"]}),e[143]=Fs,e[144]=st,e[145]=lt):lt=e[145];let it;e[146]!==tt||e[147]!==lt?(it=t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[as,tt,lt]})}),e[146]=tt,e[147]=lt,e[148]=it):it=e[148];let ns;e[149]===Symbol.for("react.memo_cache_sentinel")?(ns=t.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[t.jsx(jt,{className:"h-4 w-4"})," GSC poziÈie medie (7d)"]}
9),e[149]=ns):ns=e[149];let rt;e[150]!==s.totals?.last7?.position?(rt=s.totals?.last7?.position?.toFixed(1)??"â",e[150]=s.totals?.last7?.position,e[151]=rt):rt=e[151];let at;e[152]!==rt?(at=t.jsx("p",{className:"mt-2 text-2xl font-bold text-slate-900",children:rt}),e[152]=rt,e[153]=at):at=e[153];const Us=`mt-0.5 flex items-center gap-1 text-xs ${el.color}`;let nt;e[154]!==Is?(nt=t.jsx(Is,{className:"h-3 w-3"}),e[154]=Is,e[155]=nt):nt=e[155];const Es=(I?.position??0)>=0?"+":"";let ct;e[156]!==I?.position?(ct=I?.position?.toFixed(2),e[156]=I?.position,e[157]=ct):ct=e[157];let ot;e[158]!==Us||e[159]!==nt||e[160]!==Es||e[161]!==ct?(ot=t.jsxs("p",{className:Us,children:[nt,Es,ct," vs prev 7d"]}),e[158]=Us,e[159]=nt,e[160]=Es,e[161]=ct,e[162]=ot):ot=e[162];let dt;e[163]!==at||e[164]!==ot?(dt=t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[ns,at,ot]})}),e[163]=at,e[164]=ot,e[165]=dt):dt=e[165],e[166]!==Ve||e[167]!==Ze||e[168]!==it||e[169]!==dt?(W=t.jsxs("section",{children:[ls,t.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[Ve,Ze,it,dt]})]}),e[166]=Ve,e[167]=Ze,e[168]=it,e[169]=dt,e[170]=W):W=e[170],e[171]!==s.timeseries_28d?(M=s.timeseries_28d&&s.timeseries_28d.length>0&&t.jsxs("section",{children:[t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"GSC trend 28 zile"}),t.jsx(d,{children:t.jsx(m,{className:"p-4",children:t.jsx(qs,{width:"100%",height:260,children:t.jsxs(Sl,{data:s.timeseries_28d,children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"impGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.4}),t.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]}),t.jsxs("linearGradient",{id:"clickGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"5%",stopColor:"#10b981",stopOpacity:.4}),t.jsx("stop",{offset:"95%",stopColor:"#10b981",stopOpacity:0})]})]}),t.jsx(Ks,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),t.jsx(Vs,{dataKey:"date",tickFormatter:Ql,fontSize:11,stroke:"#64748b"}),t.jsx(xt,{yAxisId:"imp",orientation:"left",stroke:"#6366f1",fontSize:11}),t.jsx(xt,{yAxisId:"click",orientation:"right",stroke:"#10b981",fontSize:11}),t.jsx(Ys,{contentStyle:{fontSize:12,borderRadius:8},labelStyle:{fontWeight:600}}),t.jsx(Xs,{wrapperStyle:{fontSize:12}}),t.jsx(nl,{yAxisId:"imp",type:"monotone",dataKey:"impressions",stroke:"#6366f1",fill:"url(#impGrad)",name:"Impresii"}),t.jsx(nl,{yAxisId:"click",type:"monotone",dataKey:"clicks",stroke:"#10b981",fill:"url(#clickGrad)",name:"Clicuri"})]})})})})]}),e[171]=s.timeseries_28d,e[172]=M):M=e[172],e[173]!==s.timeseries_28d?(i=s.timeseries_28d&&s.timeseries_28d.length>0&&t.jsxs("section",{children:[t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"GSC CTR & poziÈie medie"}),t.jsx(d,{children:t.jsx(m,{className:"p-4",children:t.jsx(qs,{width:"100%",height:220,children:t.jsxs(cl,{data:s.timeseries_28d.map(Xl),children:[t.jsx(Ks,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),t.jsx(Vs,{dataKey:"date",tickFormatter:Yl,fontSize:11,stroke:"#64748b"}),t.jsx(xt,{yAxisId:"ctr",orientation:"left",stroke:"#f59e0b",fontSize:11,unit:"%"}),t.jsx(xt,{yAxisId:"pos",orientation:"right",stroke:"#ec4899",fontSize:11,reversed:!0}),t.jsx(Ys,{contentStyle:{fontSize:12,borderRadius:8},labelStyle:{fontWeight:600}}),t.jsx(Xs,{wrapperStyle:{fontSize:12}}),t.jsx(ft,{yAxisId:"ctr",type:"monotone",dataKey:"ctrPct",stroke:"#f59e0b",strokeWidth:2,dot:!1,name:"CTR %"}),t.jsx(ft,{yAxisId:"pos",type:"monotone",dataKey:"position",stroke:"#ec4899",strokeWidth:2,dot:!1,name:"PoziÈie (inv.)"})]})})})})]}),e[173]=s.timeseries_28d,e[174]=i):i=e[174];let cs;e[175]===Symbol.for("react.memo_cache_sentinel")?(cs=t.jsx("h2",{className:"mb-1 text-lg font-semibold text-slate-900",children:"Core Web Vitals (field)"}),e[175]=cs):cs=e[175];const Ds=v.windowHours??24;let mt;e[176]!==Ds?(mt=t.jsxs("p",{className:"mb-3 text-xs text-slate-500",children:["Real-user P75 din Cloudflare RUM (ultimele ",Ds,"h, full per-path coverage) + trend origine CrUX (P75 28d rolling, PHONE). LCP good â¤2500ms · INP good â¤200ms · CLS good â¤0.1."]}
9),e[176]=Ds,e[177]=mt):mt=e[177];const Os=v.error?t.jsx(d,{children:t.jsx(m,{className:"p-4",children:t.jsxs("div",{className:"flex items-start gap-2 text-sm text-slate-600",children:[t.jsx(al,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-600"}),t.jsxs("p",{children:["CF RUM CWV indisponibil: ",v.error,". NecesitÄ secretul GitHub"," ",t.jsx("code",{children:"CF_API_key"})," (scope Account â Account Analytics â Read). Se populeazÄ la urmÄtoarea rulare a cron-ului (daily 05:20 UTC)."]})]})})}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:[{key:"lcp",label:"LCP p75",value:y?.lcpP75,fmt:ds,Icon:Ms},{key:"inp",label:"INP p75",value:y?.inpP75,fmt:ds,Icon:Bs},{key:"cls",label:"CLS p75",value:y?.clsP75,fmt:pl,Icon:Hs}].map(fl=>{const{key:tl,label:gl,value:sl,fmt:jl,Icon:bl}=fl,Ws=H(tl,sl);return t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[t.jsx(bl,{className:"h-4 w-4"})," ",gl," (field)"]}),Ws&&t.jsx(ht,{variant:"outline",className:xl[Ws],children:hl[Ws]})]}),t.jsx("p",{className:"mt-2 text-2xl font-bold text-slate-900",children:jl(sl)}),t.jsxs("p",{className:"mt-0.5 text-xs text-slate-500",children:[j(y?.views)," vizite (CF RUM)"]})]})},tl)})}),R.length>0&&t.jsx(d,{className:"mt-3",children:t.jsxs(m,{className:"p-4",children:[t.jsxs("div",{className:"mb-2 flex items-center gap-2 text-xs font-semibold uppercase tracking-wide text-slate-600",children:[t.jsx(jt,{className:"h-4 w-4"})," CrUX origin trend (PHONE, P75 28d rolling)"]}),t.jsx(qs,{width:"100%",height:180,children:t.jsxs(cl,{data:R,children:[t.jsx(Ks,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),t.jsx(Vs,{dataKey:"date",tickFormatter:Vl,fontSize:11,stroke:"#64748b"}),t.jsx(xt,{yAxisId:"ms",orientation:"left",stroke:"#6366f1",fontSize:11,unit:"ms"}),t.jsx(xt,{yAxisId:"cls",orientation:"right",stroke:"#ec4899",fontSize:11}),t.jsx(Ys,{contentStyle:{fontSize:12,borderRadius:8},labelStyle:{fontWeight:600}}),t.jsx(Xs,{wrapperStyle:{fontSize:12}}),t.jsx(ft,{yAxisId:"ms",type:"monotone",dataKey:"lcp",stroke:"#6366f1",strokeWidth:2,dot:!1,name:"LCP ms",connectNulls:!0}),t.jsx(ft,{yAxisId:"ms",type:"monotone",dataKey:"inp",stroke:"#10b981",strokeWidth:2,dot:!1,name:"INP ms",connectNulls:!0}),t.jsx(ft,{yAxisId:"cls",type:"monotone",dataKey:"cls",stroke:"#ec4899",strokeWidth:2,dot:!1,name:"CLS",connectNulls:!0})]})})]})}),t.jsx(d,{className:"mt-3",children:t.jsx(m,{className:"p-0",children:t.jsxs(L,{children:[t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"PaginÄ"}),t.jsx(n,{className:"text-right",children:"Vizite"}),t.jsx(n,{className:"text-right",children:"LCP"}),t.jsx(n,{className:"text-right",children:"INP"}),t.jsx(n,{className:"text-right",children:"CLS"}),t.jsx(n,{children:"Status"})]})}),t.jsxs($,{children:[_.length===0&&t.jsx(f,{children:t.jsx(a,{colSpan:6,className:"text-center text-sm text-slate-500",children:"Niciun path în fereastra RUM încÄ â aÈteaptÄ prima rulare a cron-ului."})}),_.map(Kl)]})]})})}),t.jsxs("p",{className:"mt-2 text-xs text-slate-500",children:["Source: Cloudflare GraphQL ",t.jsx("code",{children:"rumWebVitalsEventsAdaptiveGroups"})," (timpii în ms, CLS unscaled), actualizat zilnic via ",t.jsx("code",{children:"scripts/cf-rum-monitor.ts"}),". GSC CWV URL-group counts nu sunt încÄ Ã®n pipeline â CF RUM + CrUX acoperÄ semnalul de field."]})]});e[178]!==mt||e[179]!==Os?(g=t.jsxs("section",{children:[cs,mt,Os]}),e[178]=mt,e[179]=Os,e[180]=g):g=e[180],z=ys.length>0&&t.jsxs("section",{children:[t.jsxs("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:["Ce trebuie sÄ faci (",ys.length,")"]}),t.jsx("div",{className:"space-y-2",children:ys.map(ql)})]}),e[11]=c,e[12]=v.error,e[13]=v.paths,e[14]=v.windowHours,e[15]=y?.clsP75,e[16]=y?.inpP75,e[17]=y?.lcpP75,e[18]=y?.views,e[19]=u,e[20]=h,e[21]=s,e[22]=p,e[23]=N,e[24]=r.cruxHistory,e[25]=w,e[26]=i,e[27]=g,e[28]=z,e[29]=q,e[30]=F,e[31]=U,e[32]=E,e[33]=D,e[34]=O,e[35]=W,e[36]=M}else w=e[25],i=e[26],g=e[27],z=e[28],q=e[29],F=e[30],U=e[31],E=e[32],D=e[33],O=e[34],W=e[35],M=e[36];let bt;e[181]===Symbol.for("react.memo_cache_sentinel")?(bt=t.jsx("h2",{className:"mb-3 text-lg font-semibold text-rose-900",children:"Top losers (Î impresii 28d)"}),e[181]=bt):bt=e[181];let _t;
9e[182]===Symbol.for("react.memo_cache_sentinel")?(_t=t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"PaginÄ"}),t.jsx(n,{className:"text-right",children:"Î imp"}),t.jsx(n,{className:"text-right",children:"Imp acum"})]})}),e[182]=_t):_t=e[182];let K;e[183]!==s.top_losers_28d?(K=(s.top_losers_28d||[]).slice(0,8).map(Hl),e[183]=s.top_losers_28d,e[184]=K):K=e[184];let V;e[185]!==s.top_losers_28d?(V=(s.top_losers_28d||[]).length===0&&t.jsx(f,{children:t.jsx(a,{colSpan:3,className:"text-center text-sm text-slate-500",children:"Niciun loser semnificativ (drop â¥30 imp)"})}),e[185]=s.top_losers_28d,e[186]=V):V=e[186];let Y;e[187]!==K||e[188]!==V?(Y=t.jsxs("div",{children:[bt,t.jsx(d,{children:t.jsx(m,{className:"p-0",children:t.jsxs(L,{children:[_t,t.jsxs($,{children:[K,V]})]})})})]}),e[187]=K,e[188]=V,e[189]=Y):Y=e[189];let Nt;e[190]===Symbol.for("react.memo_cache_sentinel")?(Nt=t.jsx("h2",{className:"mb-3 text-lg font-semibold text-emerald-900",children:"Top gainers (Î impresii 28d)"}),e[190]=Nt):Nt=e[190];let yt;e[191]===Symbol.for("react.memo_cache_sentinel")?(yt=t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"PaginÄ"}),t.jsx(n,{className:"text-right",children:"Î imp"}),t.jsx(n,{className:"text-right",children:"Imp acum"})]})}),e[191]=yt):yt=e[191];let X;e[192]!==s.top_gainers_28d?(X=(s.top_gainers_28d||[]).slice(0,8).map(Bl),e[192]=s.top_gainers_28d,e[193]=X):X=e[193];let Q;e[194]!==s.top_gainers_28d?(Q=(s.top_gainers_28d||[]).length===0&&t.jsx(f,{children:t.jsx(a,{colSpan:3,className:"text-center text-sm text-slate-500",children:"Niciun gainer semnificativ"})}),e[194]=s.top_gainers_28d,e[195]=Q):Q=e[195];let J;e[196]!==X||e[197]!==Q?(J=t.jsxs("div",{children:[Nt,t.jsx(d,{children:t.jsx(m,{className:"p-0",children:t.jsxs(L,{children:[yt,t.jsxs($,{children:[X,Q]})]})})})]}),e[196]=X,e[197]=Q,e[198]=J):J=e[198];let Z;e[199]!==Y||e[200]!==J?(Z=t.jsxs("section",{className:"grid gap-4 lg:grid-cols-2",children:[Y,J]}),e[199]=Y,e[200]=J,e[201]=Z):Z=e[201];let ee;e[202]!==s.ctr_opportunities_28d?(ee=(s.ctr_opportunities_28d||[]).length>0&&t.jsxs("section",{children:[t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"CTR opportunities GSC (impresii â¥20 · CTR â¤2% · pos â¤15)"}),t.jsx(d,{children:t.jsx(m,{className:"p-0",children:t.jsxs(L,{children:[t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"PaginÄ"}),t.jsx(n,{className:"text-right",children:"Imp"}),t.jsx(n,{className:"text-right",children:"CTR"}),t.jsx(n,{className:"text-right",children:"Pos"})]})}),t.jsx($,{children:s.ctr_opportunities_28d.map(Ml)})]})})})]}),e[202]=s.ctr_opportunities_28d,e[203]=ee):ee=e[203];let te;e[204]!==s.top_queries_28d?(te=(s.top_queries_28d||[]).length>0&&t.jsxs("section",{children:[t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"Top query-uri GSC (28d)"}),t.jsx(d,{children:t.jsx(m,{className:"p-0",children:t.jsxs(L,{children:[t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"Query"}),t.jsx(n,{className:"text-right",children:"Imp"}),t.jsx(n,{className:"text-right",children:"Clicuri"}),t.jsx(n,{className:"text-right",children:"CTR"}),t.jsx(n,{className:"text-right",children:"Pos"})]})}),t.jsx($,{children:s.top_queries_28d.slice(0,15).map(Wl)})]})})})]}),e[204]=s.top_queries_28d,e[205]=te):te=e[205];let vt;e[206]===Symbol.for("react.memo_cache_sentinel")?(vt=t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"Bing Webmaster (30 zile)"}),e[206]=vt):vt=e[206];let St;e[207]===Symbol.for("react.memo_cache_sentinel")?(St=t.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[t.jsx(Ms,{className:"h-4 w-4"})," Bing impresii"]}),e[207]=St):St=e[207];const ms=c.traffic?.impressions;let se;e[208]!==ms?(se=j(ms),e[208]=ms,e[209]=se):se=e[209];let le;e[210]!==se?(le=t.jsx("p",{className:"mt-2 text-2xl font-bold text-slate-900",children:se}),e[210]=se,e[211]=le):le=e[211];const xs=c.traffic?.days??30;let ie;e[212]!==xs?(ie=t.jsxs("p",{className:"mt-0.5 text-xs text-slate-500",children:[xs," zile"]}),e[212]=xs,e[213]=ie):ie=e[213];let re;e[214]!==le||e[215]!==ie?(re=t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[St,le,ie]})}),e[214]=le,e[215]=ie,e[216]=re):re=e[216];let Ct;e[217]===Symbol.for("react.memo_cache_sentinel")?(Ct=t.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[t.jsx(Bs,{className:"h-4 w-4"})," Bing clicuri"]}),e[217]=Ct):Ct=e[217];const hs=c.traffic?.clicks;let ae;e[218]!==hs?(ae=j(hs),e[218]=hs,e[219]=ae):ae=e[219];let ne;e[220]!==ae?(ne=t.jsx("p",{className:"mt-2 text-2xl font-bold text-slate-900",children:ae}
9),e[220]=ae,e[221]=ne):ne=e[221];const ps=c.traffic?.ctr;let ce;e[222]!==ps?(ce=dl(ps),e[222]=ps,e[223]=ce):ce=e[223];let oe;e[224]!==ce?(oe=t.jsxs("p",{className:"mt-0.5 text-xs text-slate-500",children:["CTR ",ce]}),e[224]=ce,e[225]=oe):oe=e[225];let de;e[226]!==ne||e[227]!==oe?(de=t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[Ct,ne,oe]})}),e[226]=ne,e[227]=oe,e[228]=de):de=e[228];let wt;e[229]===Symbol.for("react.memo_cache_sentinel")?(wt=t.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[t.jsx(Hs,{className:"h-4 w-4"})," Crawl errors"]}),e[229]=wt):wt=e[229];const us=`mt-2 text-2xl font-bold ${(c.crawl?.code_4xx??0)>100?"text-rose-700":"text-slate-900"}`,fs=c.crawl?.crawl_errors;let me;e[230]!==fs?(me=j(fs),e[230]=fs,e[231]=me):me=e[231];let xe;e[232]!==us||e[233]!==me?(xe=t.jsx("p",{className:us,children:me}),e[232]=us,e[233]=me,e[234]=xe):xe=e[234];const gs=c.crawl?.code_4xx;let he;e[235]!==gs?(he=j(gs),e[235]=gs,e[236]=he):he=e[236];const js=c.crawl?.code_5xx;let pe;e[237]!==js?(pe=j(js),e[237]=js,e[238]=pe):pe=e[238];let ue;e[239]!==he||e[240]!==pe?(ue=t.jsxs("p",{className:"mt-0.5 text-xs text-slate-500",children:[he," de 4xx ·"," ",pe," de 5xx"]}),e[239]=he,e[240]=pe,e[241]=ue):ue=e[241];let fe;e[242]!==xe||e[243]!==ue?(fe=t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[wt,xe,ue]})}),e[242]=xe,e[243]=ue,e[244]=fe):fe=e[244];let kt;e[245]===Symbol.for("react.memo_cache_sentinel")?(kt=t.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[t.jsx(jt,{className:"h-4 w-4"})," Pagini indexate"]}),e[245]=kt):kt=e[245];const bs=c.crawl?.in_index;let ge;e[246]!==bs?(ge=j(bs),e[246]=bs,e[247]=ge):ge=e[247];let je;e[248]!==ge?(je=t.jsx("p",{className:"mt-2 text-2xl font-bold text-slate-900",children:ge}),e[248]=ge,e[249]=je):je=e[249];const _s=c.crawl?.crawled_pages;let be;e[250]!==_s?(be=j(_s),e[250]=_s,e[251]=be):be=e[251];let _e;e[252]!==be?(_e=t.jsxs("p",{className:"mt-0.5 text-xs text-slate-500",children:[be," crawled"]}),e[252]=be,e[253]=_e):_e=e[253];let Ne;e[254]!==je||e[255]!==_e?(Ne=t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[kt,je,_e]})}),e[254]=je,e[255]=_e,e[256]=Ne):Ne=e[256];let ye;e[257]!==re||e[258]!==de||e[259]!==fe||e[260]!==Ne?(ye=t.jsxs("section",{children:[vt,t.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[re,de,fe,Ne]})]}),e[257]=re,e[258]=de,e[259]=fe,e[260]=Ne,e[261]=ye):ye=e[261];let Rt;e[262]===Symbol.for("react.memo_cache_sentinel")?(Rt=t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"Cloudflare audit"}),e[262]=Rt):Rt=e[262];let It;e[263]===Symbol.for("react.memo_cache_sentinel")?(It=t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"Check"}),t.jsx(n,{children:"Status"}),t.jsx(n,{children:"Detail"})]})}),e[263]=It):It=e[263];let ve;e[264]!==w?(ve=w.map(Ol),e[264]=w,e[265]=ve):ve=e[265];let Se;e[266]!==ve?(Se=t.jsxs("section",{children:[Rt,t.jsx(d,{children:t.jsx(m,{className:"p-0",children:t.jsxs(L,{children:[It,t.jsx($,{children:ve})]})})})]}),e[266]=ve,e[267]=Se):Se=e[267];let Lt;e[268]===Symbol.for("react.memo_cache_sentinel")?(Lt=t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"AI bot crawl (7d)"}),e[268]=Lt):Lt=e[268];let Ce;e[269]!==b.by_class||e[270]!==b.error||e[271]!==b.headline?(Ce=t.jsxs("section",{children:[Lt,b.headline?.total_ai_bots!=null?t.jsx(d,{children:t.jsxs(m,{className:"space-y-4 p-4",children:[t.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3",children:[t.jsxs("div",{className:"rounded-lg border border-indigo-200 bg-indigo-50 p-3",children:[t.jsx("div",{className:"text-xs font-medium uppercase tracking-wide text-indigo-700",children:"Total AI bot hits (7d)"}),t.jsx("div",{className:"mt-1 text-2xl font-bold text-indigo-900",children:b.headline.total_ai_bots.toLocaleString()}),t.jsx("div",{className:"mt-1 text-xs text-indigo-700",children:"Retrieval + live + training crawlers"})]}),t.jsxs("div",{className:"rounded-lg border border-slate-200 bg-slate-50 p-3",children:[t.jsx("div",{className:"text-xs font-medium uppercase tracking-wide text-slate-600",children:"Dominant AI bot"}),t.jsx("div",{className:"mt-1 text-2xl font-bold text-slate-900",children:b.headline.dominant_ai_bot||"â"}),t.jsx("div",{className:"mt-1 text-xs text-slate-500",children:"Highe
9st single-bot count"})]}),t.jsxs("div",{className:"rounded-lg border border-emerald-200 bg-emerald-50 p-3",children:[t.jsx("div",{className:"text-xs font-medium uppercase tracking-wide text-emerald-700",children:"Search bots (7d, reference)"}),t.jsx("div",{className:"mt-1 text-2xl font-bold text-emerald-900",children:(b.headline.total_search_bots||0).toLocaleString()}),t.jsx("div",{className:"mt-1 text-xs text-emerald-700",children:"Googlebot · bingbot · YandexBot"})]})]}),t.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:["retrieval","live","training","search"].map(_=>{const k=b.by_class?.[_]||[];if(k.length===0)return null;const R={retrieval:"Retrieval (citation-bound)",live:"Live (user-triggered)",training:"Training corpus",search:"Search index (reference)"}[_],S={retrieval:"border-indigo-200 bg-indigo-50/30",live:"border-rose-200 bg-rose-50/30",training:"border-amber-200 bg-amber-50/30",search:"border-slate-200 bg-slate-50/40"}[_];return t.jsx(d,{className:S,children:t.jsxs(m,{className:"p-3",children:[t.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-slate-700",children:R}),t.jsxs(L,{children:[t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"Bot"}),t.jsx(n,{className:"text-right",children:"7d hits"}),t.jsx(n,{className:"text-right",children:"/day"})]})}),t.jsx($,{children:k.slice(0,8).map(Dl)})]})]})},_)})}),t.jsxs("p",{className:"text-xs text-slate-500",children:["Source: Cloudflare GraphQL ",t.jsx("code",{children:"httpRequestsAdaptiveGroups"}),", queried per-day for the last 7 days (Free plan caps queries at 1d windows). Updated daily via ",t.jsx("code",{children:"scripts/cf-ai-bot-snapshot.ts"}),"."]})]})}):t.jsx(d,{children:t.jsx(m,{className:"p-4",children:t.jsx("p",{className:"text-sm text-slate-600",children:b.error?`Snapshot warning: ${b.error}`:"AÈteaptÄ urmÄtoarea rulare a cron-ului (daily 05:20 UTC). NecesitÄ secretul GitHub CF_API_Key2 cu permisiunea Account â Account Analytics â Read."})})})]}),e[269]=b.by_class,e[270]=b.error,e[271]=b.headline,e[272]=Ce):Ce=e[272];let Pt;e[273]===Symbol.for("react.memo_cache_sentinel")?(Pt=t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"/glosar discovery"}),e[273]=Pt):Pt=e[273];let we;e[274]!==s.glosar_pages_28d?(we=t.jsxs("section",{children:[Pt,t.jsx(d,{children:t.jsx(m,{className:"p-4",children:(s.glosar_pages_28d||[]).length===0?t.jsxs("div",{className:"flex items-start gap-2 text-sm text-slate-600",children:[t.jsx(al,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-600"}),t.jsxs("div",{children:[t.jsx("p",{children:"Nicio paginÄ /glosar/* nu apare încÄ Ã®n GSC. AÈteaptÄ 7-14 zile dupÄ IndexNow submission."}),t.jsx("p",{className:"mt-1 text-xs",children:"AccelereazÄ manual: GSC â URL Inspection â Request Indexing pentru pagini cornerstone."})]})]}):t.jsxs(L,{children:[t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"PaginÄ /glosar"}),t.jsx(n,{className:"text-right",children:"Imp"}),t.jsx(n,{className:"text-right",children:"Clicuri"}),t.jsx(n,{className:"text-right",children:"Pos"})]})}),t.jsx($,{children:s.glosar_pages_28d.map(El)})]})})})]}),e[274]=s.glosar_pages_28d,e[275]=we):we=e[275];let ke;e[276]!==s.url_inspections?(ke=(s.url_inspections||[]).length>0&&t.jsxs("section",{children:[t.jsxs("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:["URL Inspection â cornerstone URLs (",s.url_inspections.length,")"]}),t.jsx(d,{children:t.jsx(m,{className:"p-0",children:t.jsxs(L,{children:[t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"URL"}),t.jsx(n,{children:"Verdict"}),t.jsx(n,{children:"Coverage"}),t.jsx(n,{children:"Last crawl"})]})}),t.jsx($,{children:s.url_inspections.map(Ul)})]})})})]}),e[276]=s.url_inspections,e[277]=ke):ke=e[277];let Re;e[278]!==s.sitemap_status?(Re=(s.sitemap_status||[]).length>0&&t.jsxs("section",{children:[t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"Sitemap status (GSC)"}),t.jsx(d,{children:t.jsx(m,{className:"p-0",children:t.jsxs(L,{children:[t.jsx(P,{children:t.jsxs(f,{children:[t.jsx(n,{children:"Path"}),t.jsx(n,{className:"text-right",children:"URL-uri"}),t.jsx(n,{className:"text-right",children:"Coverage"}),t.jsx(n,{className:"text-right",children:"Erori"}),t.jsx(n,{className:"text-right",children:"Warning-uri"}),t.jsx(n,{children:"Last downloaded"})]})}),t.jsx($,{children:s.sitemap_status.map(Fl)})]})})})]}),e[278]=s.sitemap_status,e[279]=Re):Re=e[279];let Ie;e[280]!==s.discovery_gap?(Ie=s.discovery_gap&&(s.discovery_gap.sitemap_urls??0)>0&&t.jsxs("section",{children:[t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"Discovery gap (90d)"}),t.jsx(d,{children:t.jsxs(m,{className:"p-4",children:[t.jsxs("div",{className:"grid gap-3 sm:grid-cols-3",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-slate-500",children:"Sitemap URLs"}),t.jsx("p",{className:"mt-1 text-2xl font-bold text-slate-900",children:j(s.discovery_gap.sitemap_urls)})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-slate-500",children:"VÄzute în GSC 90d"}),t.jsx("p",{className:"mt-1 text-2xl font-bold text-emerald-700",children:j(s.discovery_gap.seen_in_gsc_90d)})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium text-slate-500",children:"Gap (zero impresii 90d)"}),t.jsx("p",{className:"mt-1 text-2xl font-bold text-rose-700",children:j(s.discovery_gap.gap_count)})]})]}),(s.discovery_gap.sample_gap_urls||[]).length>0&&t.jsxs("div",{className:"mt-4",children:[t.jsxs("p",{className:"mb-2 text-xs font-medium text-slate-500",children:["Primele 30 URL-uri din gap (din ",s.discovery_gap.gap_count,"):"]}),t.jsx("ul",{className:"space-y-1 text-xs",children:s.discovery_gap.sample_gap_urls.slice(0,30).map(zl)})]})]})})]}),e[280]=s.discovery_gap,e[281]=Ie):Ie=e[281];let $t;e[282]===Symbol.for("react.memo_cache_sentinel")?($t=t.jsx("h2",{className:"mb-3 text-lg font-semibold text-slate-900",children:"Indexing coverage notes"}),e[282]=$t):$t=e[282];let At;e[283]===Symbol.for("react.memo_cache_sentinel")?(At=t.jsx("p",{className:"font-semibold text-slate-900",children:'âPage with redirect" în GSC = normal, nu e problemÄ'}),e[283]=At):At=e[283];let Gt;e[284]===Symbol.for("react.memo_cache_sentinel")?(Gt=t.jsx("code",{children:" ?__ee_reload="}),e[284]=Gt):Gt=e[284];let Tt,zt;e[285]===Symbol.for("react.memo_cache_sentinel")?(Tt=t.jsxs("div",{children:[At,t.jsxs("p",{className:"mt-1 leading-6",children:["Google gÄseÈte vechi URL-uri (lessons renamed, query strings,",Gt," cache-bust) Èi verificÄ cÄ redirecteazÄ corect. Toate cele 257 URL-uri din raport 301-redirecteazÄ la canonical. Singura acÈiune: click ",t.jsx("em",{children:'"Validate fix"'})," în GSC, apoi Google le retrage natural în 4-12 sÄptÄmâni."]})]}),zt=t.jsx("p",{className:"font-semibold text-slate-900",children:"Fix-uri aplicate (commit-uri recente)"}),e[285]=Tt,e[286]=zt):(Tt=e[285],zt=e[286]);let Ft;e[287]===Symbol.for("react.memo_cache_sentinel")?(Ft=t.jsx("code",{children:"robots.txt"}),e[287]=Ft):Ft=e[287];let Ut;e[288]===Symbol.for("react.memo_cache_sentinel")?(Ut=t.jsxs("li",{children:[Ft," blocheazÄ ",t.jsx("code",{children:"?__ee_reload=*"})," query strings â stop la viitoare descoperiri de URL-uri cu cache-bust."]}),e[288]=Ut):Ut=e[288];let Et;e[289]===Symbol.for("react.memo_cache_sentinel")?(Et=t.jsx("code",{children:"public/_redirects"}),e[289]=Et):Et=e[289];let Dt,Ot;e[290]===Symbol.for("react.memo_cache_sentinel")?(Dt=t.jsxs("div",{children:[zt,t.jsxs("ul",{className:"ml-4 mt-1 list-disc space-y-1",children:[Ut,t.jsxs("li",{children:["Sitemap-ul exclude automat orice path din ",Et," Èi pagini cu ",t.jsx("code",{children:"robots_meta noindex"}),"."]}),t.jsx("li",{children:"/glosar (60 URL-uri noi) trimis prin IndexNow azi â aÈteaptÄ 7-14 zile."})]})]}),Ot=t.jsx("p",{className:"font-semibold text-slate-900",children:"Ce sÄ verifici lunar"}),e[290]=Dt,e[291]=Ot):(Dt=e[290],Ot=e[291]);let Wt;e[292]===Symbol.for("react.memo_cache_sentinel")?(Wt=t.jsx("em",{children:" Crawled - currently not indexed"}),e[292]=Wt):Wt=e[292];let Mt;e[293]===Symbol.for("react.memo_cache_sentinel")?(Mt=t.jsx("em",{children:"Discovered - currently not indexed"}),e[293]=Mt):Mt=e[293];let Bt;e[294]===Symbol.for("react.memo_cache_sentinel")?(Bt=t.jsxs("section",{children:[$t,t.jsx(d,{className:"border-slate-200",children:t.jsxs(m,{className:"space-y-3 p-4 text-sm text-slate-700",children:[Tt,Dt,t.jsxs("div",{children:[Ot,t.jsxs("ul",{className:"ml-4 mt-1 list-disc space-y-1",children:[t.jsxs("li",{children:['GSC â Indexing â Pages â "Not indexed" â categoriile care conteazÄ:',Wt,","," ",Mt,", ",t.jsx("em",{children:"Soft 404"}),"."]}),t.jsx("li",{children:'"Page with redirect" Èi "Alternate page with proper canonical tag" = ignorÄ, sunt aÈteptate.'}),t.jsx("li",{children:'"Server error (5xx)" Èi "Submitted URL not found (404)" = P0 fix imediat.'})]})]})]})})]}),e[294]=Bt):Bt=e[294];let Ht;e[295]===Symbol.for("react.memo_cache_sentinel")?(Ht=t.jsxs("section",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-4",children:[t.jsx(os,{href:"https://search.google.com/search-console",label:"Google Search Console"}),t.jsx(os,{href:"https://www.bing.com/webmasters",label:"Bing Webmaster Tools"}),t.jsx(os,{href:"https://dash.cloudflare.com/3204f0b920597823ec51cf70c39648a1/english-ease.eu",label:"Cloudflare Dashboard"}),t.jsx(os,{href:"https://github.com/englishease/English-Ease/actions/workflows/seo-monitoring-cron.yml",label:"Workflow runs"})]}),e[295]=Ht):Ht=e[295];let qt;e[296]===Symbol.for("react.memo_cache_sentinel")?(qt=t.jsx(Cl,{to:"/admin",className:"text-indigo-600 hover:underline",children:"SEO Monitoring Cron"}),e[296]=qt):qt=e[296];let Kt;e[297]===Symbol.for("react.memo_cache_sentinel")?(Kt=t.jsxs("footer",{className:"border-t border-slate-200 pt-4 text-xs text-slate-500",children:["Data refresh: daily ~05:20 UTC via"," ",qt,". Snapshots auto-committed to ",t.jsx("code",{children:"docs/seo-audit/"}),"."]}),e[297]=Kt):Kt=e[297];let Vt;return e[298]!==i||e[299]!==g||e[300]!==z||e[301]!==q||e[302]!==Z||e[303]!==ee||e[304]!==te||e[305]!==F||e[306]!==U||e[307]!==E||e[308]!==D||e[309]!==ye||e[310]!==Se||e[311]!==Ce||e[312]!==we||e[313]!==O||e[314]!==ke||e[315]!==Re||e[316]!==Ie||e[317]!==W||e[318]!==M?(Vt=t.jsxs("div",{className:q,children:[F,U,E,D,O,W,M,i,g,z,Z,ee,te,ye,Se,Ce,we,ke,Re,Ie,Bt,Ht,Kt]}
9),e[298]=i,e[299]=g,e[300]=z,e[301]=q,e[302]=Z,e[303]=ee,e[304]=te,e[305]=F,e[306]=U,e[307]=E,e[308]=D,e[309]=ye,e[310]=Se,e[311]=Ce,e[312]=we,e[313]=O,e[314]=ke,e[315]=Re,e[316]=Ie,e[317]=W,e[318]=M,e[319]=Vt):Vt=e[319],Vt}function zl(e,l){return t.jsx("li",{children:t.jsx("a",{href:`https://english-ease.eu${e}`,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-indigo-700 hover:underline",children:e})},l)}function Fl(e,l){const r=e.path&&/\?/.test(e.path);return t.jsxs(f,{className:r?"bg-amber-50/40":"",children:[t.jsx(a,{className:"max-w-md truncate font-mono text-xs",children:e.path}),t.jsx(a,{className:"text-right font-mono",children:j(e.submitted_urls)}),t.jsx(a,{className:"text-right font-mono",children:e.coverage_pct==null?"â":`${e.coverage_pct}%`}),t.jsx(a,{className:`text-right font-mono ${(e.errors??0)>0?"font-bold text-rose-700":""}`,children:j(e.errors)}),t.jsx(a,{className:`text-right font-mono ${(e.warnings??0)>0?"text-amber-700":""}`,children:j(e.warnings)}),t.jsx(a,{className:"text-xs text-slate-500",children:e.last_downloaded?new Date(e.last_downloaded).toLocaleDateString("ro-RO"):"â"})]},l)}function Ul(e,l){const r=e.verdict==="FAIL"||e.coverage_state==="URL is unknown to Google"||e.coverage_state&&e.coverage_state.toLowerCase().includes("error"),o=e.verdict==="NEUTRAL"&&!r;return t.jsxs(f,{children:[t.jsx(a,{className:"max-w-md truncate",children:t.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"text-indigo-700 hover:underline",children:T(e.url)})}),t.jsx(a,{children:t.jsx(ht,{variant:"outline",className:e.verdict==="PASS"?"border-emerald-300 bg-emerald-50 text-emerald-900":r?"border-rose-300 bg-rose-50 text-rose-900":o?"border-amber-300 bg-amber-50 text-amber-900":"border-slate-300 bg-slate-100 text-slate-700",children:e.verdict||"â"})}),t.jsx(a,{className:"text-sm text-slate-700",children:e.coverage_state||e.error||"â"}),t.jsx(a,{className:"text-xs text-slate-500",children:e.last_crawl_time?new Date(e.last_crawl_time).toLocaleDateString("ro-RO"):"â"})]},l)}function El(e,l){return t.jsxs(f,{children:[t.jsx(a,{className:"max-w-md truncate",children:T(e.page)}),t.jsx(a,{className:"text-right font-mono",children:e.impressions}),t.jsx(a,{className:"text-right font-mono",children:e.clicks}),t.jsx(a,{className:"text-right font-mono",children:e.position.toFixed(1)})]},l)}function Dl(e){return t.jsxs(f,{children:[t.jsx(a,{className:"font-mono text-xs",children:e.bot}),t.jsx(a,{className:"text-right tabular-nums",children:e.count.toLocaleString()}),t.jsx(a,{className:"text-right tabular-nums text-slate-500",children:Math.round(e.count/7).toLocaleString()})]},e.bot)}function Ol(e,l){return t.jsxs(f,{children:[t.jsx(a,{className:"font-medium",children:e.label}),t.jsx(a,{children:t.jsx(ht,{variant:"outline",className:e.status==="PASS"?"border-emerald-300 bg-emerald-50 text-emerald-900":e.status==="INFO"?"border-slate-300 bg-slate-100 text-slate-700":e.status==="WARN"?"border-amber-300 bg-amber-50 text-amber-900":"border-rose-300 bg-rose-50 text-rose-900",children:e.status})}),t.jsx(a,{className:"text-sm text-slate-600",children:e.detail})]},l)}function Wl(e,l){return t.jsxs(f,{children:[t.jsx(a,{className:"max-w-md truncate",children:e.query}),t.jsx(a,{className:"text-right font-mono",children:e.impressions}),t.jsx(a,{className:"text-right font-mono",children:e.clicks}),t.jsxs(a,{className:"text-right font-mono",children:[(e.ctr*100).toFixed(2),"%"]}),t.jsx(a,{className:"text-right font-mono",children:e.position.toFixed(1)})]},l)}function Ml(e,l){return t.jsxs(f,{children:[t.jsx(a,{className:"max-w-md truncate",children:t.jsx("a",{href:e.page,target:"_blank",rel:"noopener noreferrer",className:"text-indigo-700 hover:underline",children:T(e.page)})}),t.jsx(a,{className:"text-right font-mono",children:e.impressions}),t.jsxs(a,{className:"text-right font-mono",children:[(e.ctr*100).toFixed(2),"%"]}),t.jsx(a,{className:"text-right font-mono",children:e.position.toFixed(1)})]},l)}function Bl(e,l){return t.jsxs(f,{children:[t.jsx(a,{className:"max-w-xs truncate",children:t.jsx("a",{href:e.page,target:"_blank",rel:"noopener noreferrer",className:"text-indigo-700 hover:underline",children:T(e.page)})}),t.jsxs(a,{className:"text-right font-mono text-emerald-700",children:["+",e.delta]}),t.jsx(a,{className:"text-right font-mono",children:e.imp_now})]},l)}function Hl(e,l){return t.jsxs(f,{children:[t.jsx(a,{className:"max-w-xs truncate",children:t.jsx("a",{href:e.page,target:"_blank",rel:"noopener noreferrer",className:"text-indigo-700 hover:underline",children:T(e.page)})}),t.jsx(a,{className:"text-right font-mono text-rose-700",children:e.delta}),t.jsx(a,{className:"text-right font-mono",children:e.imp_now})]},l)}function ql(e,l){return t.jsx(d,{className:e.severity==="high"?"border-rose-200 bg-rose-50/40":e.severity==="medium"?"border-amber-200 bg-amber-50/40":"border-slate-200",children:t.jsx(m,{className:"p-4",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx(ht,{variant:"outline",className:e.severity==="high"?"border-rose-300 bg-rose-100 text-rose-900":e.severity==="medium"?"border-amber-300 bg-amber-100 text-amber-900":"border-slate-300 bg-slate-100 text-slate-700",children:e.severity==="high"?"P0":e.severity==="medium"?"P1":"P2"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"font-semibold text-slate-900",children:e.title}),t.jsx("pre",{className:"mt-1 whitespace-pre-wrap break-words text-xs text-slate-700",children:e.detail}),t.jsxs("p",{className:"mt-2 text-xs italic text-slate-500",children:["â ",e.action]})]})]})})},l)}function Kl(e){return t.jsxs(f,{className:e.status==="poor"?"bg-rose-50/40":e.status==="ni"?"bg-amber-50/30":"",children:[t.jsx(a,{className:"max-w-md truncate",children:t.jsx("a",{href:`https://english-ease.eu${e.path}`,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-xs text-indigo-700 hover:underline",children:e.path})}),t.jsx(a,{className:"text-right font-mono tabular-nums",children:j(e.views)}),t.jsx(a,{className:`text-right font-mono tabular-nums ${H("lcp",e.lcpP75)==="poor"?"font-bold text-rose-700":H("lcp",e.lcpP75)==="ni"?"text-amber-700":""}`,children:ds(e.lcpP75)}),t.jsx(a,{className:`text-right font-mono tabular-nums ${H("inp",e.inpP75)==="poor"?"font-bold text-rose-700":H("inp",e.inpP75)==="ni"?"text-amber-700":""}`,children:ds(e.inpP75)}),t.jsx(a,{className:`text-right font-mono tabular-nums ${H("cls",e.clsP75)==="poor"?"font-bold text-rose-700":H("cls",e.clsP75)==="ni"?"text-amber-700":""}`,children:pl(e.clsP75)}),t.jsx(a,{children:t.jsx(ht,{variant:"outline",className:xl[e.status],children:hl[e.status]})})]},e.path)}function Vl(e){return String(e).slice(5)}function Yl(e){return e.slice(5)}function Xl(e){return{...e,ctrPct:e.ctr*100}}function Ql(e){return e.slice(5)}function Jl(e,l){return t.jsxs(f,{children:[t.jsx(a,{className:"whitespace-nowrap font-mono text-xs text-slate-600",children:e.month}),t.jsxs(a,{className:"whitespace-nowrap",children:[e.channel,e.is_organic&&t.jsx(ht,{className:"ml-2 bg-emerald-100 text-emerald-800",children:"organic"})]}),t.jsx(a,{className:"whitespace-nowrap text-slate-500",children:e.medium}),t.jsx(a,{className:"text-right tabular-nums",children:e.orders}),t.jsx(a,{className:"text-right font-medium tabular-nums",children:gt(e.revenue_eur)})]},`${e.month}-${e.channel}-${e.medium}-${l}`)}function Zl(e,l){return l>e?l:e}function ei(e){return new Date(e).getTime()}function ti(e){return typeof e=="string"}function si(e){return{date:e.date||"",lcp:e.lcp_p75??null,inp:e.inp_p75??null,cls:e.cls_p75!=null?Math.round(e.cls_p75*1e3)/1e3:null}}function li(e,l){return(e.date||"").localeCompare(l.date||"")}function ii(e){return e.scope==="origin"&&e.formFactor==="PHONE"}
9function ri(e,l){return ol[e.status]-ol[l.status]||(l.views||0)-(e.views||0)}function os(e){const l=ml.c(4),{href:r,label:o}=e;let x;l[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(vl,{className:"h-4 w-4 text-slate-400"}),l[0]=x):x=l[0];let h;return l[1]!==r||l[2]!==o?(h=t.jsxs("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between rounded-lg border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:border-indigo-300 hover:bg-indigo-50",children:[o,x]}),l[1]=r,l[2]=o,l[3]=h):h=l[3],h}export{ui 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.