{"version":3,"sources":["node_modules\\react-native-on-web\\lib\\components\\Navigator\\lib\\emitter\\EventSubscriptionVendor.js"],"names":["Object","defineProperty","exports","value","_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","key","Constructor","protoProps","staticProps","prototype","_invariant","require","_invariant2","_interopRequireDefault","obj","__esModule","default","_classCallCheck","instance","TypeError","EventSubscriptionVendor","_subscriptionsForType","_currentSubscription","addSubscription","eventType","subscription","subscriber","push","removeAllSubscriptions","removeSubscription","subscriptionsForType","getSubscriptionsForType"],"mappings":"AAAA,aAAaA,OAAOC,cAAP,CAAsBC,OAAtB,CAA8B,YAA9B,CAA2C,CAACC,MAAM,IAAP,CAA3C,EAAyD,GAAIC,cAAa,UAAU,CAAC,QAASC,iBAAT,CAA0BC,MAA1B,CAAiCC,KAAjC,CAAuC,CAAC,IAAI,GAAIC,GAAE,CAAV,CAAYA,EAAED,MAAME,MAApB,CAA2BD,GAA3B,CAA+B,CAAC,GAAIE,YAAWH,MAAMC,CAAN,CAAf,CAAwBE,WAAWC,UAAX,CAAsBD,WAAWC,UAAX,EAAuB,KAA7C,CAAmDD,WAAWE,YAAX,CAAwB,IAAxB,CAA6B,GAAG,SAAUF,WAAb,CAAwBA,WAAWG,QAAX,CAAoB,IAApB,CAAyBb,OAAOC,cAAP,CAAsBK,MAAtB,CAA6BI,WAAWI,GAAxC,CAA4CJ,UAA5C,EAAyD,CAAC,OAAO,UAASK,WAAT,CAAqBC,UAArB,CAAgCC,WAAhC,CAA4C,CAAC,GAAGD,UAAH,CAAcX,iBAAiBU,YAAYG,SAA7B,CAAuCF,UAAvC,EAAmD,GAAGC,WAAH,CAAeZ,iBAAiBU,WAAjB,CAA6BE,WAA7B,EAA0C,MAAOF,YAAP,CAAoB,CAAlM,CAAoM,CAA1e,EAAjB;;AAEtE,GAAII,YAAWC,QAAQ,cAAR,CAAf,CAAuC,GAAIC,aAAYC,uBAAuBH,UAAvB,CAAhB,CAAmD,QAASG,uBAAT,CAAgCC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P;AACC;AACA,CAdE,CArBmC,CAmCnC,CAACnB,IAAI,oBAAL,CAA0BX,MAAM,QAASmC,mBAAT;;;;;;;;AAQnCJ,YARmC,CAQtB;AACb,GAAID,WAAUC,aAAaD,SAA3B;AACA,GAAInB,KAAIoB,aAAapB,GAArB;;AAEA,GAAIyB,sBAAqB,KAAKT,qBAAL,CAA2BG,SAA3B,CAAzB;AACA,GAAGM,oBAAH,CAAwB;AACxB,MAAOA,sBAAqBzB,GAArB,CAAP;AACC;AACA,CAhBE,CAnCmC,CAmDnC,CAACA,IAAI,yBAAL,CAA+BX,MAAM,QAASqC,wBAAT;;;;;;;;;;;;;;AAcxCP,SAdwC,CAc9B;AACV,MAAO,MAAKH,qBAAL,CAA2BG,SAA3B,CAAP;AACC,CAhBE,CAnDmC,CAArC,EAmEI,MAAOJ,wBAAP,CAAgC,CAxEb,EANsS,CA8EtR3B,QAAQuB,OAAR;;;AAGxCI,uBAHwC","file":"EventSubscriptionVendor.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if(\"value\"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();\n\nvar _invariant=require('../invariant');var _invariant2=_interopRequireDefault(_invariant);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\"Cannot call a class as a function\");}}var\n\n\n\n\n\nEventSubscriptionVendor=function(){\n\nfunction EventSubscriptionVendor(){_classCallCheck(this,EventSubscriptionVendor);\nthis._subscriptionsForType={};\nthis._currentSubscription=null;\n}_createClass(EventSubscriptionVendor,[{key:'addSubscription',value:function addSubscription(\n\n\n\n\n\n\n\neventType,subscription){\n(0,_invariant2.default)(\nsubscription.subscriber===this,\n'The subscriber of the subscription is incorrectly set.');\n\nif(!this._subscriptionsForType[eventType]){\nthis._subscriptionsForType[eventType]=[];\n}\nvar key=this._subscriptionsForType[eventType].length;\nthis._subscriptionsForType[eventType].push(subscription);\nsubscription.eventType=eventType;\nsubscription.key=key;\nreturn subscription;\n}},{key:'removeAllSubscriptions',value:function removeAllSubscriptions(\n\n\n\n\n\n\n\neventType){\nif(typeof eventType==='undefined'){\nthis._subscriptionsForType={};\n}else{\ndelete this._subscriptionsForType[eventType];\n}\n}},{key:'removeSubscription',value:function removeSubscription(\n\n\n\n\n\n\n\nsubscription){\nvar eventType=subscription.eventType;\nvar key=subscription.key;\n\nvar subscriptionsForType=this._subscriptionsForType[eventType];\nif(subscriptionsForType){\ndelete subscriptionsForType[key];\n}\n}},{key:'getSubscriptionsForType',value:function getSubscriptionsForType(\n\n\n\n\n\n\n\n\n\n\n\n\n\neventType){\nreturn this._subscriptionsForType[eventType];\n}}]);return EventSubscriptionVendor;}();exports.default=\n\n\nEventSubscriptionVendor;"]}