/******/ (() => { // webpackBootstrap
const toggles = document.getElementsByClassName('mat-slide-toggle-input');
Array.from(toggles).forEach((el) => {
  el.addEventListener('change', (evt) => {
    if (evt.currentTarget.checked) {
      evt.currentTarget.closest('.mat-slide-toggle').classList.add('mat-checked');
    } else {
      evt.currentTarget.closest('.mat-slide-toggle').classList.remove('mat-checked');
    }
  });
  el.addEventListener('focus', (evt) => {
    evt.currentTarget.closest('.mat-slide-toggle').classList.add('cdk-focused');
    evt.currentTarget.closest('.mat-slide-toggle').classList.add('cdk-keyboard-focused');
  });
  el.addEventListener('focusout', (evt) => {
    evt.currentTarget.closest('.mat-slide-toggle').classList.remove('cdk-focused');
    evt.currentTarget.closest('.mat-slide-toggle').classList.remove('cdk-keyboard-focused');
  });
});

/******/ })()
;
//# sourceMappingURL=toggle-script.js.map