'use strict';

var breakpoints_subject = require('./breakpoints.subject-0PA4L0XN.js');
var listener = require('./listener-BUV5GkH6.js');
var index = require('./index-DQjemDtV.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;
