(function (global, factory) {
  if (typeof define === "function" && define.amd) {
    define(["exports", "rxjs/operators", "../internals/actions"], factory);
  } else if (typeof exports !== "undefined") {
    factory(exports, require("rxjs/operators"), require("../internals/actions"));
  } else {
    var mod = {
      exports: {}
    };
    factory(mod.exports, global.operators, global.actions);
    global.connections = mod.exports;
  }
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _operators, _actions) {
  "use strict";

  Object.defineProperty(_exports, "__esModule", {
    value: true
  });
  _exports.default = void 0;

  const connections = function connections() {
    return source$ => source$.pipe((0, _operators.map)(([, action]) => action), (0, _operators.filter)(action => [_actions.CONNECT, _actions.RECONNECT_DONE].indexOf(action.type) > -1), (0, _operators.map)(action => action.data));
  };

  var _default = connections;
  _exports.default = _default;
});
//# sourceMappingURL=connections.js.map