'use strict';

var breakpoints_subject = require('./breakpoints.subject-CTL2jyPW.js');
var listener = require('./listener-eTGFjyDz.js');
var index = require('./index-CP3lGz14.js');

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

exports.BalWindowResizeSubject = BalWindowResizeSubject;
