frontend/.pnpm-store/v3/files/14/2bd41c6412d196b45271fadd5cf37d0e355e6d1643af870a8aa380854a62a32b8555d40e7a52d256144a5b0f7b9729c82ace9718104fca0367a9bd5878501d

34 lines
1.2 KiB
Plaintext

/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
import * as tslib_1 from "tslib";
import { Subscriber } from '../Subscriber';
export function isEmpty() {
return function (source) { return source.lift(new IsEmptyOperator()); };
}
var IsEmptyOperator = /*@__PURE__*/ (function () {
function IsEmptyOperator() {
}
IsEmptyOperator.prototype.call = function (observer, source) {
return source.subscribe(new IsEmptySubscriber(observer));
};
return IsEmptyOperator;
}());
var IsEmptySubscriber = /*@__PURE__*/ (function (_super) {
tslib_1.__extends(IsEmptySubscriber, _super);
function IsEmptySubscriber(destination) {
return _super.call(this, destination) || this;
}
IsEmptySubscriber.prototype.notifyComplete = function (isEmpty) {
var destination = this.destination;
destination.next(isEmpty);
destination.complete();
};
IsEmptySubscriber.prototype._next = function (value) {
this.notifyComplete(false);
};
IsEmptySubscriber.prototype._complete = function () {
this.notifyComplete(true);
};
return IsEmptySubscriber;
}(Subscriber));
//# sourceMappingURL=isEmpty.js.map