import{__extends}from"tslib";import{B as BalWindowResizeListener}from"./breakpoints.subject-C88ansfI.js";import{a as SingleSubject}from"./listener-CRr0Q2i3.js";import{a as balBrowser}from"./index-CklISCW5.js";var BalWindowResizeSubject=function(i){__extends(e,i);function e(){var e=i.call(this,(function(i,e){i.windowResizeListener()}))||this;e.listener=new BalWindowResizeListener;return e}e.prototype.attach=function(e){var t=this;i.prototype.attach.call(this,e);if(balBrowser.hasWindow){this.listener.connect(window);this.listener.add((function(){return i.prototype.notify.call(t)}))}};e.prototype.detach=function(){i.prototype.detach.call(this);this.listener.disconnect()};return e}(SingleSubject);new BalWindowResizeSubject;export{BalWindowResizeSubject as B};