{"version":3,"sources":["node_modules\\animated\\lib\\AnimatedStyle.js"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","_createClass","defineProperties","props","descriptor","enumerable","configurable","writable","defineProperty","Constructor","protoProps","staticProps","_classCallCheck","instance","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","create","constructor","value","setPrototypeOf","__proto__","Animated","require","AnimatedWithChildren","AnimatedTransform","FlattenStyle","AnimatedStyle","_AnimatedWithChildren","style","_this","getPrototypeOf","current","transform","_style","__getValue","__getAnimatedValue","__attach","__addChild","__detach","__removeChild","module","exports"],"mappings":";;;;;;;;;;AAUA,aAAa,GAAIA,UAASC,OAAOC,MAAP,EAAe,SAASC,MAAT,CAAgB,CAAC,IAAI,GAAIC,GAAE,CAAV,CAAYA,EAAEC,UAAUC,MAAxB,CAA+BF,GAA/B,CAAmC,CAAC,GAAIG,QAAOF,UAAUD,CAAV,CAAX,CAAwB,IAAI,GAAII,IAAR,GAAeD,OAAf,CAAsB,CAAC,GAAGN,OAAOQ,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCJ,MAArC,CAA4CC,GAA5C,CAAH,CAAoD,CAACL,OAAOK,GAAP,EAAYD,OAAOC,GAAP,CAAZ,CAAyB,CAAC,CAAC,OAAOL,OAAP,CAAe,CAA/N,CAAgO,GAAIS,cAAa,UAAU,CAAC,QAASC,iBAAT,CAA0BV,MAA1B,CAAiCW,KAAjC,CAAuC,CAAC,IAAI,GAAIV,GAAE,CAAV,CAAYA,EAAEU,MAAMR,MAApB,CAA2BF,GAA3B,CAA+B,CAAC,GAAIW,YAAWD,MAAMV,CAAN,CAAf,CAAwBW,WAAWC,UAAX,CAAsBD,WAAWC,UAAX,EAAuB,KAA7C,CAAmDD,WAAWE,YAAX,CAAwB,IAAxB,CAA6B,GAAG,SAAUF,WAAb,CAAwBA,WAAWG,QAAX,CAAoB,IAApB,CAAyBjB,OAAOkB,cAAP,CAAsBhB,MAAtB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I,oBAAL,CAA0B0B,MAAM,QAASiB,mBAAT;;AAEnC;AACA,GAAIP,OAAM,EAAV;AACA,IAAI,GAAIpC,IAAR,GAAe,MAAKyC,MAApB,CAA2B;AAC3B,GAAIf,OAAM,KAAKe,MAAL,CAAYzC,GAAZ,CAAV;AACA,GAAG0B,gBAAiBG,SAApB,CAA6B;AAC7BO,MAAMpC,GAAN,EAAW0B,MAAMiB,kBAAN,EAAX;AACC;AACA;AACD,MAAOP,MAAP;AACC,CAXE,CAbyB,CAwBzB,CAACpC,IAAI,UAAL,CAAgB0B,MAAM,QAASkB,SAAT;;AAEzB;AACA,IAAI,GAAI5C,IAAR,GAAe,MAAKyC,MAApB,CAA2B;AAC3B,GAAIf,OAAM,KAAKe,MAAL,CAAYzC,GAAZ,CAAV;AACA,GAAG0B,gBAAiBG,SAApB,CAA6B;AAC7BH,MAAMmB,UAAN,CAAiB,IAAjB;AACC;AACA;AACA,CATE,CAxByB,CAiCzB,CAAC7C,IAAI,UAAL,CAAgB0B,MAAM,QAASoB,SAAT;;AAEzB;AACA,IAAI,GAAI9C,IAAR,GAAe,MAAKyC,MAApB,CAA2B;AAC3B,GAAIf,OAAM,KAAKe,MAAL,CAAYzC,GAAZ,CAAV;AACA,GAAG0B,gBAAiBG,SAApB,CAA6B;AAC7BH,MAAMqB,aAAN,CAAoB,IAApB;AACC;AACA;AACA,CATE,CAjCyB,CAA3B,EA0CI,MAAOb,cAAP,CAAsB,CAvDb,CAuDcH,oBAvDd,CAFwC;;;AA4DtDiB,OAAOC,OAAP,CAAef,aAAf","file":"AnimatedStyle.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 _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};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 AnimatedTransform=require('./AnimatedTransform');\nvar FlattenStyle=require('./injectable/FlattenStyle');var\n\nAnimatedStyle=function(_AnimatedWithChildren){_inherits(AnimatedStyle,_AnimatedWithChildren);\n\n\nfunction AnimatedStyle(style){_classCallCheck(this,AnimatedStyle);var _this=_possibleConstructorReturn(this,(AnimatedStyle.__proto__||Object.getPrototypeOf(AnimatedStyle)).call(this));\n\nstyle=FlattenStyle.current(style)||{};\nif(style.transform&&!(style.transform instanceof Animated)){\nstyle=_extends({},\nstyle,{\ntransform:new AnimatedTransform(style.transform)});\n\n}\n_this._style=style;return _this;\n}_createClass(AnimatedStyle,[{key:'__getValue',value:function __getValue()\n\n{\nvar style={};\nfor(var key in this._style){\nvar value=this._style[key];\nif(value instanceof Animated){\nstyle[key]=value.__getValue();\n}else{\nstyle[key]=value;\n}\n}\nreturn style;\n}},{key:'__getAnimatedValue',value:function __getAnimatedValue()\n\n{\nvar style={};\nfor(var key in this._style){\nvar value=this._style[key];\nif(value instanceof Animated){\nstyle[key]=value.__getAnimatedValue();\n}\n}\nreturn style;\n}},{key:'__attach',value:function __attach()\n\n{\nfor(var key in this._style){\nvar value=this._style[key];\nif(value instanceof Animated){\nvalue.__addChild(this);\n}\n}\n}},{key:'__detach',value:function __detach()\n\n{\nfor(var key in this._style){\nvar value=this._style[key];\nif(value instanceof Animated){\nvalue.__removeChild(this);\n}\n}\n}}]);return AnimatedStyle;}(AnimatedWithChildren);\n\n\nmodule.exports=AnimatedStyle;"]}