/* =========================================================== ELEVEN JERSEYS — Tweaks panel config =========================================================== */ const EJ_TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{ "accent": "classic", "grid": "cards" }/*EDITMODE-END*/; const ACCENTS = [ {id:'classic', label:'Classic Red', c:'#e1122b'}, {id:'electric', label:'Electric Blue', c:'#1a4dff'}, {id:'pitch', label:'Pitch Green', c:'#03a657'}, {id:'gold', label:'Champion Gold', c:'#cf9a14'}, {id:'mono', label:'Blackout', c:'#0d0e11'}, ]; const GRIDS = [ {id:'cards', label:'Cards'}, {id:'minimal', label:'Minimal'}, {id:'editorial', label:'Editorial'}, {id:'compact', label:'Compact'}, ]; function EJTweaks(){ const [t, setTweak] = useTweaks(EJ_TWEAK_DEFAULTS); React.useEffect(()=>{ const html = document.documentElement; if(t.accent === 'classic') html.removeAttribute('data-accent'); else html.setAttribute('data-accent', t.accent); }, [t.accent]); React.useEffect(()=>{ const html = document.documentElement; if(t.grid === 'cards') html.removeAttribute('data-grid'); else html.setAttribute('data-grid', t.grid); }, [t.grid]); const cur = ACCENTS.find(a=>a.id===t.accent) || ACCENTS[0]; return (
{ACCENTS.map(a=>(
{cur.label}
g.id)} onChange={(v)=>setTweak('grid', v)} />
Cards · bordered shop look ·   Minimal · image-led, no buttons ·   Editorial · 3-up large ·   Compact · 5-up dense
); } (function mountEJTweaks(){ if(!window.React || !window.TweaksPanel){ setTimeout(mountEJTweaks, 60); return; } let host = document.getElementById('ej-tweaks-root'); if(!host){ host = document.createElement('div'); host.id='ej-tweaks-root'; document.body.appendChild(host); } ReactDOM.createRoot(host).render(); })();