{"version":3,"sources":["node_modules\\animated\\lib\\AnimatedInterpolation.js"],"names":["_createClass","defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","Constructor","protoProps","staticProps","prototype","_classCallCheck","instance","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_inherits","subClass","superClass","create","constructor","value","setPrototypeOf","__proto__","Animated","require","AnimatedWithChildren","invariant","Interpolation","guid","AnimatedInterpolation","_AnimatedWithChildren","parent","interpolation","_this","getPrototypeOf","_parent","_interpolation","_listeners","__getValue","parentValue","addListener","callback","_this2","_parentListener","id","removeListener","interpolate","config","__attach","__addChild","__detach","__removeChild","module","exports"],"mappings":";;;;;;;;;;AAUA,aAAa,GAAIA,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,CAAyBC,OAAOC,cAAP,CAAsBT,MAAtB,CAA6BI,WAAWM,GAAxC,CAA4CN,UAA5C,EAAyD,CAAC,OAAO,UAASO,WAAT,CAAqBC,UAArB,CAAgCC,WAAhC,CAA4C,CAAC,GAAGD,UAAH,CAAcb,iBAAiBY,YAAYG,SAA7B,CAAuCF,UAAvC,EAAmD,GAAGC,WAAH,CAAed,iBAAiBY,WAAjB,CAA6BE,WAA7B,EAA0C,MAAOF,YAAP,CAAoB,CAAlM,CAAoM,CAA1e,EAAjB,CAA8f,QAASI,gBAAT,CAAyBC,QAAzB,CAAkCL,WAAlC,CAA8C,CAAC,GAAG,EAAEK,mBAAoBL,YAAtB,CAAH,CAAsC,CAAC,KAAM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MAF4B,CAErB;AACP,MAAO,IAAIlB,sBAAJ,CAA0B,IAA1B,CAA+BF,cAAcT,MAAd,CAAqB6B,MAArB,CAA/B,CAAP;AACC,CAJE,CA1BiC,CA8BjC,CAAC5C,IAAI,UAAL,CAAgBiB,MAAM,QAAS4B,SAAT;;AAEzB;AACA,KAAKb,OAAL,CAAac,UAAb,CAAwB,IAAxB;AACC,CAJE,CA9BiC,CAkCjC,CAAC9C,IAAI,UAAL,CAAgBiB,MAAM,QAAS8B,SAAT;;AAEzB;AACA,KAAKf,OAAL,CAAagB,aAAb,CAA2B,IAA3B;AACA,KAAKR,eAAL,CAAqB,KAAKR,OAAL,CAAaU,cAAb,CAA4B,KAAKF,eAAjC,CAArB;AACC,CALE,CAlCiC,CAAnC,EAuCI,MAAOd,sBAAP,CAA8B,CAlDb,CAkDcJ,oBAlDd,CAJK;;;AAyD3B2B,OAAOC,OAAP,CAAexB,qBAAf","file":"AnimatedInterpolation.js","sourceRoot":"d:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["\n\n\n\n\n\n\n\n\n\n'use strict';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;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\"Cannot call a class as a function\");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");}return call&&(typeof call===\"object\"||typeof call===\"function\")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!==\"function\"&&superClass!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}\n\nvar Animated=require('./Animated');\nvar AnimatedWithChildren=require('./AnimatedWithChildren');\nvar invariant=require('invariant');\nvar Interpolation=require('./Interpolation');\nvar guid=require('./guid');var\n\n\n\nAnimatedInterpolation=function(_AnimatedWithChildren){_inherits(AnimatedInterpolation,_AnimatedWithChildren);\n\n\n\n\n\nfunction AnimatedInterpolation(parent,interpolation){_classCallCheck(this,AnimatedInterpolation);var _this=_possibleConstructorReturn(this,(AnimatedInterpolation.__proto__||Object.getPrototypeOf(AnimatedInterpolation)).call(this));\n\n_this._parent=parent;\n_this._interpolation=interpolation;\n_this._listeners={};return _this;\n}_createClass(AnimatedInterpolation,[{key:'__getValue',value:function __getValue()\n\n{\nvar parentValue=this._parent.__getValue();\ninvariant(\ntypeof parentValue==='number',\n'Cannot interpolate an input which is not a number.');\n\nreturn this._interpolation(parentValue);\n}},{key:'addListener',value:function addListener(\n\ncallback){var _this2=this;\nif(!this._parentListener){\nthis._parentListener=this._parent.addListener(function(){\nfor(var key in _this2._listeners){\n_this2._listeners[key]({value:_this2.__getValue()});\n}\n});\n}\nvar id=guid();\nthis._listeners[id]=callback;\nreturn id;\n}},{key:'removeListener',value:function removeListener(\n\nid){\ndelete this._listeners[id];\n}},{key:'interpolate',value:function interpolate(\n\nconfig){\nreturn new AnimatedInterpolation(this,Interpolation.create(config));\n}},{key:'__attach',value:function __attach()\n\n{\nthis._parent.__addChild(this);\n}},{key:'__detach',value:function __detach()\n\n{\nthis._parent.__removeChild(this);\nthis._parentListener=this._parent.removeListener(this._parentListener);\n}}]);return AnimatedInterpolation;}(AnimatedWithChildren);\n\n\nmodule.exports=AnimatedInterpolation;"]}