function __cfHardenFn(fn: Function) { Object.freeze(fn); const prototype = fn.prototype; if (prototype && typeof prototype === "object") { Object.freeze(prototype); } return fn; } import { __cfHelpers } from "commonfabric"; import { pattern, UI } from "commonfabric"; const define = undefined; const runtimeDeps = undefined; const __cfAmdHooks = undefined; type SelectedScopes = { gmail: boolean; calendar: boolean; }; const SCOPE_DESCRIPTIONS = __cfHelpers.__cf_data({ gmail: "Gmail", calendar: "Calendar", } as const); interface Input { selectedScopes: SelectedScopes; } // FIXTURE: map-plain-array-dynamic-checkbox // Verifies: plain-array callback roots stay plain while dynamic JSX bindings still lower to a lift-applied computation // Object.entries(...).map(fn) -> plain .map() remains plain // selectedScopes[key as keyof SelectedScopes] -> lift-applied binding with selectedScopes and key captures // Context: Dynamic property access in a plain array callback used as a cf-checkbox binding export default pattern((__cf_pattern_input) => { const selectedScopes = __cf_pattern_input.key("selectedScopes"); return { [UI]: (