GSI - Employe Self Service Mobile
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
3.2 KiB

2 months ago
  1. 'use strict';
  2. var firebase = require('@firebase/app-compat');
  3. var component = require('@firebase/component');
  4. var performance = require('@firebase/performance');
  5. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  6. var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
  7. /**
  8. * @license
  9. * Copyright 2020 Google LLC
  10. *
  11. * Licensed under the Apache License, Version 2.0 (the "License");
  12. * you may not use this file except in compliance with the License.
  13. * You may obtain a copy of the License at
  14. *
  15. * http://www.apache.org/licenses/LICENSE-2.0
  16. *
  17. * Unless required by applicable law or agreed to in writing, software
  18. * distributed under the License is distributed on an "AS IS" BASIS,
  19. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  20. * See the License for the specific language governing permissions and
  21. * limitations under the License.
  22. */
  23. var PerformanceCompatImpl = /** @class */ (function () {
  24. function PerformanceCompatImpl(app, _delegate) {
  25. this.app = app;
  26. this._delegate = _delegate;
  27. }
  28. Object.defineProperty(PerformanceCompatImpl.prototype, "instrumentationEnabled", {
  29. get: function () {
  30. return this._delegate.instrumentationEnabled;
  31. },
  32. set: function (val) {
  33. this._delegate.instrumentationEnabled = val;
  34. },
  35. enumerable: false,
  36. configurable: true
  37. });
  38. Object.defineProperty(PerformanceCompatImpl.prototype, "dataCollectionEnabled", {
  39. get: function () {
  40. return this._delegate.dataCollectionEnabled;
  41. },
  42. set: function (val) {
  43. this._delegate.dataCollectionEnabled = val;
  44. },
  45. enumerable: false,
  46. configurable: true
  47. });
  48. PerformanceCompatImpl.prototype.trace = function (traceName) {
  49. return performance.trace(this._delegate, traceName);
  50. };
  51. return PerformanceCompatImpl;
  52. }());
  53. var name = "@firebase/performance-compat";
  54. var version = "0.2.1";
  55. /**
  56. * @license
  57. * Copyright 2020 Google LLC
  58. *
  59. * Licensed under the Apache License, Version 2.0 (the "License");
  60. * you may not use this file except in compliance with the License.
  61. * You may obtain a copy of the License at
  62. *
  63. * http://www.apache.org/licenses/LICENSE-2.0
  64. *
  65. * Unless required by applicable law or agreed to in writing, software
  66. * distributed under the License is distributed on an "AS IS" BASIS,
  67. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  68. * See the License for the specific language governing permissions and
  69. * limitations under the License.
  70. */
  71. function registerPerformanceCompat(firebaseInstance) {
  72. firebaseInstance.INTERNAL.registerComponent(new component.Component('performance-compat', performanceFactory, "PUBLIC" /* ComponentType.PUBLIC */));
  73. firebaseInstance.registerVersion(name, version);
  74. }
  75. function performanceFactory(container) {
  76. var app = container.getProvider('app-compat').getImmediate();
  77. // The following call will always succeed.
  78. var performance = container.getProvider('performance').getImmediate();
  79. return new PerformanceCompatImpl(app, performance);
  80. }
  81. registerPerformanceCompat(firebase__default["default"]);
  82. //# sourceMappingURL=index.cjs.js.map