PageSourceSearch

https://toguzkumalak.com/assets/WeaknessRadar-GQY_8eaa.js

js toguzkumalak.com collected 2026-10-03 02:43:10 UTC 7,244 bytes, 1 lines download raw bytes

1import{r as N,j as e}from"./react-vendor-DVl_j3ZO.js";import{t as n,e as S}from"./index-DOARK-DV.js";import{u as $}from"./useLocale-C-pPUmlD.js";import"./preload-helper-BXtGQ0on.js";import"./vendor-D0IlVHJ8.js";import"./state-vendor-B2bKdg16.js";import"./style-utils-vendor-CZ__NpDL.js";import"./ui-vendor-BK1JzGH1.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="954c0fe3-ad49-40bb-92a9-49a44b7a6d24",a._sentryDebugIdIdentifier="sentry-dbid-954c0fe3-ad49-40bb-92a9-49a44b7a6d24")}catch{}})();const b=["tactical_discipline","tuzduk_awareness","capture_judgment","initiative_stability","endgame_conversion"],j={tactical_discipline:"trainer.axis_tactical",tuzduk_awareness:"trainer.axis_tuzduk",capture_judgment:"trainer.axis_capture",initiative_stability:"trainer.axis_initiative",endgame_conversion:"trainer.axis_endgame"},f=200,v=185,g=136,I="0 0 400 410",C=[25,50,75,100];function p(a,i){const c=(a-90)*Math.PI/180;return[f+i*Math.cos(c),v+i*Math.sin(c)]}function X({weaknessMap:a,onReviewCTA:i,onAxisFocus:c,focusedAxis:d}){$();const[k,x]=N.useState(null);if(a.insufficient_data)return e.jsxs("div",{className:"flex flex-col items-center justify-center rounded-[32px] bg-[#100916] px-5 py-10 text-center shadow-[0_24px_70px_rgba(5,3,10,0.38)]",children:[e.jsx("div",{className:"mb-5 flex h-24 w-24 items-center justify-center rounded-3xl bg-white/[0.04]",children:e.jsx("span",{className:"text-3xl",children:"📊"})}),e.jsx("p",{className:"mb-1 text-sm font-black uppercase tracking-wide text-white",children:n("trainer.radar_title")}),e.jsx("p",{className:"mb-4 max-w-[280px] text-xs leading-relaxed text-gray-500",children:S("trainer.review_games_to_unlock",{count:a.min_games_required})}),i&&e.jsx("button",{onClick:i,className:"h-10 rounded-2xl border border-transparent bg-nitro-violet px-5 text-[10px] font-black uppercase tracking-[0.22em] text-white transition-all hover:bg-nitro-violet/90",children:n("trainer.review_a_game")})]});const m=b.map((t,r)=>{const l=a.axes.find(h=>h.key===t),s=l?.value??0;return{key:t,angle:360/b.length*r,label:n(j[t]),value:s,isNull:l?.value===null,lowConfidence:l?.low_confidence??!1}}),y=m.filter(t=>!t.isNull).sort((t,r)=>(t.value??100)-(r.value??100)),u=y[0]||null,o=k??d,w=m.map(t=>p(t.angle,(t.value??0)/100*g).join(",")).join(" ");return e.jsxs("section",{className:"rounded-[32px] bg-[#100916] px-5 py-5 shadow-[0_24px_70px_rgba(5,3,10,0.38)] md:px-6 md:py-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.24em] text-gray-500",children:n("trainer.radar_title")}),e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-end lg:justify-between",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-2xl font-black tracking-tight text-white md:text-3xl",children:u?.label?`${n("trainer.weakest_area")}: ${u.label}`:n("trainer.radar_title")}),e.jsx("p",{className:"max-w-xl text-sm leading-relaxed text-gray-400",children:n("trainer.radar_desc")})]}),d&&e.jsx("button",{onClick:()=>c?.(d),className:"inline-flex h-11 items-center justify-center rounded-2xl border border-transparent bg-[#171120] px-4 text-[10px] font-black uppercase tracking-[0.22em] text-gray-200 transition-all hover:bg-[#20172c]",children:n("trainer.axis_focus_cta").replace("{{label}}",n(j[d]||d))})]})]}),e.jsxs("div",{className:"mt-5 grid gap-3 md:grid-cols-3",children:[e.jsx(_,{label:n("trainer.review_coverage"),value:`${Math.round((a.secondary_insights.recent_review_coverage||0)*100)}%`}),e.jsx(_,{label:n("trainer.games_analyzed"),value:String(a.games_analyzed)}),e.jsx(_,{label:n("trainer.timeouts"),value:String(a.secondary_insights.timeouts_last_30)})]}),e.jsxs("div",{className:"mt-6 grid gap-6 xl:grid-cols-[1.05fr_0.95fr] xl:items-center",children:[e.jsx("div",{className:"mx-auto w-full max-w-[500px] rounded-[34px] bg-[radial-gradient(circle_at_top,rgba(168,85,247,0.12),transparent_56%),#14101b] p-6 md:p-7",children:e.jsxs("svg",{viewBox:I,className:"w-full",style:{aspectRatio:"400/380"},children:[C.map(t=>{const r=Array.from({length:b.length},(l,s)=>p(360/b.length*s,t/100*g).join(",")).join(" ");return e.jsx("polygon",{points:r,fill:"none",stroke:"rgba(139,92,246,0.08)",strokeWidth:1},t)}
1),m.map(t=>{const[r,l]=p(t.angle,g),s=o===t.key;return e.jsx("line",{x1:f,y1:v,x2:r,y2:l,stroke:s?"rgba(216,180,254,0.46)":"rgba(139,92,246,0.06)",strokeWidth:s?1.5:1},`${t.key}-spoke`)}),e.jsx("polygon",{points:w,fill:o?"rgba(139,92,246,0.16)":"rgba(139,92,246,0.10)",stroke:o?"rgba(216,180,254,0.96)":"rgba(168,85,247,0.92)",strokeWidth:o?2.4:2,strokeLinejoin:"round"}),m.map(t=>{const[r,l]=p(t.angle,(t.value??0)/100*g),s=o===t.key;return e.jsxs("g",{onMouseEnter:()=>x(t.key),onMouseLeave:()=>x(null),onClick:()=>c?.(t.key),style:{cursor:"pointer"},children:[s&&e.jsx("circle",{cx:r,cy:l,r:16,fill:"rgba(168,85,247,0.16)"}),e.jsx("circle",{cx:r,cy:l,r:s?7:4.5,fill:s?"#f5f3ff":"#a855f7",stroke:"#0f0818",strokeWidth:2})]},`${t.key}-dot`)}),m.map(t=>{const[r,l]=p(t.angle,g+40),s=r<f-20?"end":r>f+20?"start":"middle",h=o===t.key;return e.jsxs("g",{onMouseEnter:()=>x(t.key),onMouseLeave:()=>x(null),onClick:()=>c?.(t.key),style:{cursor:"pointer"},children:[e.jsx("circle",{cx:r,cy:l-4,r:20,fill:"transparent"}),e.jsx("text",{x:r,y:l,textAnchor:s,fill:h?"#f5d0fe":"#9ca3af",fontSize:h?12.5:11,fontWeight:800,letterSpacing:"0.4",children:t.label})]},`${t.key}-label`)})]})}),e.jsx("div",{className:"space-y-3",children:y.map(t=>{const r=o===t.key;return e.jsxs("button",{onClick:()=>c?.(t.key),onMouseEnter:()=>x(t.key),onMouseLeave:()=>x(null),className:`w-full rounded-[24px] border border-transparent px-4 py-3.5 text-left transition-all ${r?"bg-[#1c1428] shadow-[0_0_0_1px_rgba(168,85,247,0.18),0_0_32px_rgba(168,85,247,0.18)]":"bg-white/[0.04] hover:bg-white/[0.07] hover:shadow-[0_0_24px_rgba(168,85,247,0.12)]"}`,children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-bold text-white",children:t.label}),t.lowConfidence&&e.jsx("p",{className:"mt-0.5 text-[10px] text-gray-500",children:n("trainer.low_confidence")})]}),e.jsx("span",{className:`text-sm font-black ${t===u?"text-nitro-magenta":"text-white"}`,children:t.value})]}),e.jsx("div",{className:"mt-3 h-2 overflow-hidden rounded-full bg-white/[0.04]",children:e.jsx("div",{className:`h-full rounded-full transition-all duration-300 ${t===u?"bg-gradient-to-r from-nitro-magenta to-nitro-violet":"bg-gradient-to-r from-nitro-violet/80 to-nitro-magenta/80"}`,style:{width:`${Math.max(6,t.value)}%`}})})]},t.key)})})]}),c&&!d&&e.jsx("p",{className:"mt-4 text-center text-[10px] italic text-gray-500",children:n("trainer.radar_click_hint")})]})}function _({label:a,value:i}){return e.jsxs("div",{className:"rounded-[20px] bg-[#14101b] px-4 py-3",children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-[0.22em] text-gray-500",children:a}),e.jsx("p",{className:"mt-2 text-lg font-black text-white",children:i})]})}export{X 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.