{"ast":null,"code":"'use strict';\n\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport AnimatedValue from \"./AnimatedValue\";\nimport AnimatedNode from \"./AnimatedNode\";\nimport { generateNewAnimationId, shouldUseNativeDriver } from \"../NativeAnimatedHelper\";\nvar AnimatedTracking = function (_AnimatedNode) {\n  function AnimatedTracking(value, parent, animationClass, animationConfig, callback) {\n    var _this;\n    _classCallCheck(this, AnimatedTracking);\n    _this = _callSuper(this, AnimatedTracking);\n    _this._value = value;\n    _this._parent = parent;\n    _this._animationClass = animationClass;\n    _this._animationConfig = animationConfig;\n    _this._useNativeDriver = shouldUseNativeDriver(animationConfig);\n    _this._callback = callback;\n    _this.__attach();\n    return _this;\n  }\n  _inherits(AnimatedTracking, _AnimatedNode);\n  return _createClass(AnimatedTracking, [{\n    key: \"__makeNative\",\n    value: function __makeNative() {\n      this.__isNative = true;\n      this._parent.__makeNative();\n      _superPropGet(AnimatedTracking, \"__makeNative\", this, 3)([]);\n      this._value.__makeNative();\n    }\n  }, {\n    key: \"__getValue\",\n    value: function __getValue() {\n      return this._parent.__getValue();\n    }\n  }, {\n    key: \"__attach\",\n    value: function __attach() {\n      this._parent.__addChild(this);\n      if (this._useNativeDriver) {\n        this.__makeNative();\n      }\n    }\n  }, {\n    key: \"__detach\",\n    value: function __detach() {\n      this._parent.__removeChild(this);\n      _superPropGet(AnimatedTracking, \"__detach\", this, 3)([]);\n    }\n  }, {\n    key: \"update\",\n    value: function update() {\n      this._value.animate(new this._animationClass(_objectSpread(_objectSpread({}, this._animationConfig), {}, {\n        toValue: this._animationConfig.toValue.__getValue()\n      })), this._callback);\n    }\n  }, {\n    key: \"__getNativeConfig\",\n    value: function __getNativeConfig() {\n      var animation = new this._animationClass(_objectSpread(_objectSpread({}, this._animationConfig), {}, {\n        toValue: undefined\n      }));\n      var animationConfig = animation.__getNativeAnimationConfig();\n      return {\n        type: 'tracking',\n        animationId: generateNewAnimationId(),\n        animationConfig: animationConfig,\n        toValue: this._parent.__getNativeTag(),\n        value: this._value.__getNativeTag()\n      };\n    }\n  }]);\n}(AnimatedNode);\nexport default AnimatedTracking;","map":{"version":3,"names":["_classCallCheck","_createClass","_possibleConstructorReturn","_getPrototypeOf","_get","_inherits","_callSuper","t","o","e","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","_superPropGet","r","p","_objectSpread","AnimatedValue","AnimatedNode","generateNewAnimationId","shouldUseNativeDriver","AnimatedTracking","_AnimatedNode","value","parent","animationClass","animationConfig","callback","_this","_value","_parent","_animationClass","_animationConfig","_useNativeDriver","_callback","__attach","key","__makeNative","__isNative","__getValue","__addChild","__detach","__removeChild","update","animate","toValue","__getNativeConfig","animation","undefined","__getNativeAnimationConfig","type","animationId","__getNativeTag"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-web/dist/vendor/react-native/Animated/nodes/AnimatedTracking.js"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and 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 * \n * @format\n */\n\n'use strict';\n\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nimport AnimatedValue from './AnimatedValue';\nimport AnimatedNode from './AnimatedNode';\nimport { generateNewAnimationId, shouldUseNativeDriver } from '../NativeAnimatedHelper';\nclass AnimatedTracking extends AnimatedNode {\n  constructor(value, parent, animationClass, animationConfig, callback) {\n    super();\n    this._value = value;\n    this._parent = parent;\n    this._animationClass = animationClass;\n    this._animationConfig = animationConfig;\n    this._useNativeDriver = shouldUseNativeDriver(animationConfig);\n    this._callback = callback;\n    this.__attach();\n  }\n  __makeNative() {\n    this.__isNative = true;\n    this._parent.__makeNative();\n    super.__makeNative();\n    this._value.__makeNative();\n  }\n  __getValue() {\n    return this._parent.__getValue();\n  }\n  __attach() {\n    this._parent.__addChild(this);\n    if (this._useNativeDriver) {\n      // when the tracking starts we need to convert this node to a \"native node\"\n      // so that the parent node will be made \"native\" too. This is necessary as\n      // if we don't do this `update` method will get called. At that point it\n      // may be too late as it would mean the JS driver has already started\n      // updating node values\n      this.__makeNative();\n    }\n  }\n  __detach() {\n    this._parent.__removeChild(this);\n    super.__detach();\n  }\n  update() {\n    this._value.animate(new this._animationClass(_objectSpread(_objectSpread({}, this._animationConfig), {}, {\n      toValue: this._animationConfig.toValue.__getValue()\n    })), this._callback);\n  }\n  __getNativeConfig() {\n    var animation = new this._animationClass(_objectSpread(_objectSpread({}, this._animationConfig), {}, {\n      // remove toValue from the config as it's a ref to Animated.Value\n      toValue: undefined\n    }));\n    var animationConfig = animation.__getNativeAnimationConfig();\n    return {\n      type: 'tracking',\n      animationId: generateNewAnimationId(),\n      animationConfig,\n      toValue: this._parent.__getNativeTag(),\n      value: this._value.__getNativeTag()\n    };\n  }\n}\nexport default AnimatedTracking;"],"mappings":"AAUA,YAAY;;AAAC,OAAAA,eAAA;AAAA,OAAAC,YAAA;AAAA,OAAAC,0BAAA;AAAA,O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