"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

var _app = _interopRequireDefault(require("firebase/compat/app"));

require("firebase/compat/firestore");

var _lodash = _interopRequireDefault(require("lodash"));

var _indexModule = _interopRequireDefault(require("../../../index.module.d"));

var Firestore =
/**
 * @param {Object} config
 * @return firebase.firestore.Firestore
 */
function Firestore(config) {
  (0, _classCallCheck2["default"])(this, Firestore);
  this.config = _lodash["default"].extend(_indexModule["default"].config.FirebaseConfig, config);

  var app = _app["default"].initializeApp(this.config);

  return app.firestore();
};

var _default = Firestore;
exports["default"] = _default;
//# sourceMappingURL=index.js.map