import { B as BalWindowResizeListener } from './breakpoints.subject-BP3AOB_O.js';
import { a as SingleSubject } from './listener-Cwtj-tmC.js';
import { a as balBrowser } from './index-DGWPFpP6.js';

class BalWindowResizeSubject extends SingleSubject {
    constructor() {
        super((observer, _data) => {
            observer.windowResizeListener();
        });
        this.listener = new BalWindowResizeListener();
    }
    attach(observer) {
        super.attach(observer);
        if (balBrowser.hasWindow) {
            this.listener.connect(window);
            this.listener.add(() => super.notify());
        }
    }
    detach() {
        super.detach();
        this.listener.disconnect();
    }
}
new BalWindowResizeSubject();

export { BalWindowResizeSubject as B };
