text: /**
   * @license
   * Copyright (c) 2021 Vaadin Ltd.
   * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
   */
  import { FieldObserver } from './vaadin-field-observer.js';
  
  export class RadioGroupObserver extends FieldObserver {
    getFields() {
      return this.component.__radioButtons;
    }
  
    getFocusTarget(event) {
      const fields = this.getFields();
      return Array.from(event.composedPath()).filter((node) => fields.indexOf(node) !== -1)[0];
    }
  }
  