{"ast":null,"code":"'use strict';\n\nfunction _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n  subClass.__proto__ = superClass;\n}\n\nimport EventEmitter from \"../emitter/EventEmitter\";\nimport RCTDeviceEventEmitter from \"./RCTDeviceEventEmitter\";\nimport invariant from 'fbjs/lib/invariant';\n\nvar NativeEventEmitter = function (_EventEmitter) {\n  _inheritsLoose(NativeEventEmitter, _EventEmitter);\n\n  function NativeEventEmitter(nativeModule) {\n    return _EventEmitter.call(this, RCTDeviceEventEmitter.sharedSubscriber) || this;\n  }\n\n  var _proto = NativeEventEmitter.prototype;\n\n  _proto.addListener = function addListener(eventType, listener, context) {\n    if (this._nativeModule != null) {\n      this._nativeModule.addListener(eventType);\n    }\n\n    return _EventEmitter.prototype.addListener.call(this, eventType, listener, context);\n  };\n\n  _proto.removeAllListeners = function removeAllListeners(eventType) {\n    invariant(eventType, 'eventType argument is required.');\n    var count = this.listeners(eventType).length;\n\n    if (this._nativeModule != null) {\n      this._nativeModule.removeListeners(count);\n    }\n\n    _EventEmitter.prototype.removeAllListeners.call(this, eventType);\n  };\n\n  _proto.removeSubscription = function removeSubscription(subscription) {\n    if (this._nativeModule != null) {\n      this._nativeModule.removeListeners(1);\n    }\n\n    _EventEmitter.prototype.removeSubscription.call(this, subscription);\n  };\n\n  return NativeEventEmitter;\n}(EventEmitter);\n\nexport default NativeEventEmitter;","map":{"version":3,"sources":["/Users/nishan/Desktop/oss/responsive-breakpoints/example/node_modules/react-native-web/dist/vendor/react-native/NativeEventEmitter/index.js"],"names":["_inheritsLoose","subClass","superClass","prototype","Object","create","constructor","__proto__","EventEmitter","RCTDeviceEventEmitter","invariant","NativeEventEmitter","_EventEmitter","nativeModule","call","sharedSubscriber","_proto","addListener","eventType","listener","context","_nativeModule","removeAllListeners","count","listeners","length","removeListeners","removeSubscription","subscription"],"mappings":"AASA;;AAEA,SAASA,cAAT,CAAwBC,QAAxB,EAAkCC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AmCH,KAAnC;AACD;;AAEDX,IAAAA,aAAa,CAACT,SAAd,CAAwBmB,kBAAxB,CAA2CR,IAA3C,CAAgD,IAAhD,EAAsDI,SAAtD;AACD,GATD;;AAWAF,EAAAA,MAAM,CAACW,kBAAP,GAA4B,SAASA,kBAAT,CAA4BC,YAA5B,EAA0C;AACpE,QAAI,KAAKP,aAAL,IAAsB,IAA1B,EAAgC;AAC9B,WAAKA,aAAL,CAAmBK,eAAnB,CAAmC,CAAnC;AACD;;AAEDd,IAAAA,aAAa,CAACT,SAAd,CAAwBwB,kBAAxB,CAA2Cb,IAA3C,CAAgD,IAAhD,EAAsDc,YAAtD;AACD,GAND;;AAQA,SAAOjB,kBAAP;AACD,CArCD,CAqCEH,YArCF,CAFA;;AAyCA,eAAeG,kBAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * \n */\n'use strict';\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nimport EventEmitter from '../emitter/EventEmitter';\nimport RCTDeviceEventEmitter from './RCTDeviceEventEmitter';\nimport invariant from 'fbjs/lib/invariant';\n\n/**\n * Abstract base class for implementing event-emitting modules. This implements\n * a subset of the standard EventEmitter node module API.\n */\nvar NativeEventEmitter =\n/*#__PURE__*/\nfunction (_EventEmitter) {\n  _inheritsLoose(NativeEventEmitter, _EventEmitter);\n\n  function NativeEventEmitter(nativeModule) {\n    return _EventEmitter.call(this, RCTDeviceEventEmitter.sharedSubscriber) || this;\n  }\n\n  var _proto = NativeEventEmitter.prototype;\n\n  _proto.addListener = function addListener(eventType, listener, context) {\n    if (this._nativeModule != null) {\n      this._nativeModule.addListener(eventType);\n    }\n\n    return _EventEmitter.prototype.addListener.call(this, eventType, listener, context);\n  };\n\n  _proto.removeAllListeners = function removeAllListeners(eventType) {\n    invariant(eventType, 'eventType argument is required.');\n    var count = this.listeners(eventType).length;\n\n    if (this._nativeModule != null) {\n      this._nativeModule.removeListeners(count);\n    }\n\n    _EventEmitter.prototype.removeAllListeners.call(this, eventType);\n  };\n\n  _proto.removeSubscription = function removeSubscription(subscription) {\n    if (this._nativeModule != null) {\n      this._nativeModule.removeListeners(1);\n    }\n\n    _EventEmitter.prototype.removeSubscription.call(this, subscription);\n  };\n\n  return NativeEventEmitter;\n}(EventEmitter);\n\nexport default NativeEventEmitter;"]},"metadata":{},"sourceType":"module"}