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