import { B as BalWindowResizeListener } from './breakpoints.subject-6_C91cCn.js';
import { a as SingleSubject } from './listener-DAmzgERU.js';
import { a as balBrowser } from './index-PmQf2Yvi.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 };
