/* * scouting-form.jsx — The opponent scouting form. * * Contains collapsible sections for each phase of play: * build-up, progression, pressing, defensive block, * positive/negative transitions, and set pieces. * * ── DEPENDS ON (from app.jsx, loaded before this file) ── * Globals: C * Components: Field, ToggleGroup, Section, Label, Spacer * React hooks: useState * * ── EXPORTS (to global scope) ── * ScoutingForm — used by App in app.jsx */ function ScoutingForm(_ref) { var data = _ref.data, matchInfo = _ref.matchInfo, onUpdateMatch = _ref.onUpdateMatch, onUpdateSection = _ref.onUpdateSection, onUpdateSetPieces = _ref.onUpdateSetPieces; var _s = useState("buildUp"), openSection = _s[0], setOpenSection = _s[1]; var toggle = function (id) { setOpenSection(function (p) { return p === id ? null : id; }); }; var s = data; var upd = function (section, key, val) { onUpdateSection(section, { ...s[section], [key]: val }); }; return (