/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/

(function (Drupal) {
  Drupal.behaviors.focusFirstTest = {
    attach: function attach() {
      once('focusin', document.body).forEach(function (element) {
        element.addEventListener('focusin', function (e) {
          document.querySelectorAll('[data-has-focus]').forEach(function (wasFocused) {
            wasFocused.removeAttribute('data-has-focus');
          });
          e.target.setAttribute('data-has-focus', true);
        });
      });
    }
  };
})(Drupal, once);