f291e8663f1932b2c1b3706b63e476c5.json
10.4 KB
{"ast":null,"code":"'use strict';var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _AnimatedNode=_interopRequireDefault(require(\"./AnimatedNode\"));var _AnimatedWithChildren2=_interopRequireDefault(require(\"./AnimatedWithChildren\"));var _NativeAnimatedHelper=_interopRequireDefault(require(\"../NativeAnimatedHelper\"));function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}var AnimatedTransform=function(_AnimatedWithChildren){_inheritsLoose(AnimatedTransform,_AnimatedWithChildren);function AnimatedTransform(transforms){var _this;_this=_AnimatedWithChildren.call(this)||this;_this._transforms=transforms;return _this;}var _proto=AnimatedTransform.prototype;_proto.__makeNative=function __makeNative(){_AnimatedWithChildren.prototype.__makeNative.call(this);this._transforms.forEach(function(transform){for(var key in transform){var value=transform[key];if(value instanceof _AnimatedNode.default){value.__makeNative();}}});};_proto.__getValue=function __getValue(){return this._transforms.map(function(transform){var result={};for(var key in transform){var value=transform[key];if(value instanceof _AnimatedNode.default){result[key]=value.__getValue();}else{result[key]=value;}}return result;});};_proto.__getAnimatedValue=function __getAnimatedValue(){return this._transforms.map(function(transform){var result={};for(var key in transform){var value=transform[key];if(value instanceof _AnimatedNode.default){result[key]=value.__getAnimatedValue();}else{result[key]=value;}}return result;});};_proto.__attach=function __attach(){var _this2=this;this._transforms.forEach(function(transform){for(var key in transform){var value=transform[key];if(value instanceof _AnimatedNode.default){value.__addChild(_this2);}}});};_proto.__detach=function __detach(){var _this3=this;this._transforms.forEach(function(transform){for(var key in transform){var value=transform[key];if(value instanceof _AnimatedNode.default){value.__removeChild(_this3);}}});_AnimatedWithChildren.prototype.__detach.call(this);};_proto.__getNativeConfig=function __getNativeConfig(){var transConfigs=[];this._transforms.forEach(function(transform){for(var key in transform){var value=transform[key];if(value instanceof _AnimatedNode.default){transConfigs.push({type:'animated',property:key,nodeTag:value.__getNativeTag()});}else{transConfigs.push({type:'static',property:key,value:value});}}});_NativeAnimatedHelper.default.validateTransform(transConfigs);return{type:'transform',transforms:transConfigs};};return AnimatedTransform;}(_AnimatedWithChildren2.default);var _default=AnimatedTransform;exports.default=_default;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/dist/vendor/react-native/Animated/nodes/AnimatedTransform.js"],"names":["_inheritsLoose","subClass","superClass","prototype","Object","create","constructor","__proto__","AnimatedTransform","_AnimatedWithChildren","transforms","_this","call","_transforms","_proto","__makeNative","forEach","transform","key","value","AnimatedNode","__getValue","map","result","__getAnimatedValue","__attach","_this2","__addChild","__detach","_this3","__removeChild","__getNativeConfig","transConfigs","push","type","property","nodeTag","__getNativeTag","NativeAnimatedHelper","validateTransform","AnimatedWithChildren"],"mappings":"AASA,a,mKAIA,oEACA,qFACA,qFAJA,QAASA,CAAAA,cAAT,CAAwBC,QAAxB,CAAkCC,UAAlC,CAA8C,CAAED,QAAQ,CAACE,SAAT,CAAqBC,MAAM,CAACC,MAAP,CAAcH,UAAU,CAACC,SAAzB,CAArB,CAA0DF,QAAQ,CAACE,SAAT,CAAmBG,WAAnB,CAAiCL,QAAjC,CAA2CA,QAAQ,CAACM,SAAT,CAAqBL,UAArB,CAAkC,CAMvL,GAAIM,CAAAA,iBAAiB,CAErB,SAAUC,qBAAV,CAAiC,CAC/BT,cAAc,CAACQ,iBAAD,CAAoBC,qBAApB,CAAd,CAEA,QAASD,CAAAA,iBAAT,CAA2BE,UAA3B,CAAuC,CACrC,GAAIC,CAAAA,KAAJ,CAEAA,KAAK,CAAGF,qBAAqB,CAACG,IAAtB,CAA2B,IAA3B,GAAoC,IAA5C,CACAD,KAAK,CAACE,WAAN,CAAoBH,UAApB,CACA,MAAOC,CAAAA,KAAP,CACD,CAED,GAAIG,CAAAA,MAAM,CAAGN,iBAAiB,CAACL,SAA/B,CAEAW,MA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,SAAV,CAAqB,CAC5C,IAAK,GAAIC,CAAAA,GAAT,GAAgBD,CAAAA,SAAhB,CAA2B,CACzB,GAAIE,CAAAA,KAAK,CAAGF,SAAS,CAACC,GAAD,CAArB,CAEA,GAAIC,KAAK,WAAYC,sBAArB,CAAmC,CACjCY,YAAY,CAACC,IAAb,CAAkB,CAChBC,IAAI,CAAE,UADU,CAEhBC,QAAQ,CAAEjB,GAFM,CAGhBkB,OAAO,CAAEjB,KAAK,CAACkB,cAAN,EAHO,CAAlB,EAKD,CAND,IAMO,CACLL,YAAY,CAACC,IAAb,CAAkB,CAChBC,IAAI,CAAE,QADU,CAEhBC,QAAQ,CAAEjB,GAFM,CAGhBC,KAAK,CAAEA,KAHS,CAAlB,EAKD,CACF,CACF,CAlBD,EAoBAmB,8BAAqBC,iBAArB,CAAuCP,YAAvC,EACA,MAAO,CACLE,IAAI,CAAE,WADD,CAELxB,UAAU,CAAEsB,YAFP,CAAP,CAID,CA5BD,CA8BA,MAAOxB,CAAAA,iBAAP,CACD,CA7HD,CA6HEgC,8BA7HF,CAFA,C,aAiIehC,iB","sourcesContent":["/**\n * Copyright (c) 2015-present, Facebook, Inc.\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 * \n * @format\n */\n'use strict';\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nimport AnimatedNode from './AnimatedNode';\nimport AnimatedWithChildren from './AnimatedWithChildren';\nimport NativeAnimatedHelper from '../NativeAnimatedHelper';\n\nvar AnimatedTransform =\n/*#__PURE__*/\nfunction (_AnimatedWithChildren) {\n _inheritsLoose(AnimatedTransform, _AnimatedWithChildren);\n\n function AnimatedTransform(transforms) {\n var _this;\n\n _this = _AnimatedWithChildren.call(this) || this;\n _this._transforms = transforms;\n return _this;\n }\n\n var _proto = AnimatedTransform.prototype;\n\n _proto.__makeNative = function __makeNative() {\n _AnimatedWithChildren.prototype.__makeNative.call(this);\n\n this._transforms.forEach(function (transform) {\n for (var key in transform) {\n var value = transform[key];\n\n if (value instanceof AnimatedNode) {\n value.__makeNative();\n }\n }\n });\n };\n\n _proto.__getValue = function __getValue() {\n return this._transforms.map(function (transform) {\n var result = {};\n\n for (var key in transform) {\n var value = transform[key];\n\n if (value instanceof AnimatedNode) {\n result[key] = value.__getValue();\n } else {\n result[key] = value;\n }\n }\n\n return result;\n });\n };\n\n _proto.__getAnimatedValue = function __getAnimatedValue() {\n return this._transforms.map(function (transform) {\n var result = {};\n\n for (var key in transform) {\n var value = transform[key];\n\n if (value instanceof AnimatedNode) {\n result[key] = value.__getAnimatedValue();\n } else {\n // All transform components needed to recompose matrix\n result[key] = value;\n }\n }\n\n return result;\n });\n };\n\n _proto.__attach = function __attach() {\n var _this2 = this;\n\n this._transforms.forEach(function (transform) {\n for (var key in transform) {\n var value = transform[key];\n\n if (value instanceof AnimatedNode) {\n value.__addChild(_this2);\n }\n }\n });\n };\n\n _proto.__detach = function __detach() {\n var _this3 = this;\n\n this._transforms.forEach(function (transform) {\n for (var key in transform) {\n var value = transform[key];\n\n if (value instanceof AnimatedNode) {\n value.__removeChild(_this3);\n }\n }\n });\n\n _AnimatedWithChildren.prototype.__detach.call(this);\n };\n\n _proto.__getNativeConfig = function __getNativeConfig() {\n var transConfigs = [];\n\n this._transforms.forEach(function (transform) {\n for (var key in transform) {\n var value = transform[key];\n\n if (value instanceof AnimatedNode) {\n transConfigs.push({\n type: 'animated',\n property: key,\n nodeTag: value.__getNativeTag()\n });\n } else {\n transConfigs.push({\n type: 'static',\n property: key,\n value: value\n });\n }\n }\n });\n\n NativeAnimatedHelper.validateTransform(transConfigs);\n return {\n type: 'transform',\n transforms: transConfigs\n };\n };\n\n return AnimatedTransform;\n}(AnimatedWithChildren);\n\nexport default AnimatedTransform;"]},"metadata":{},"sourceType":"script"}