{"ast":null,"code":"'use strict';\n\nfunction _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n\n  _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n    o.__proto__ = p;\n    return o;\n  };\n\n  return _setPrototypeOf(o, p);\n}\n\nimport AnimatedInterpolation from \"./AnimatedInterpolation\";\nimport AnimatedNode from \"./AnimatedNode\";\nimport AnimatedWithChildren from \"./AnimatedWithChildren\";\n\nvar AnimatedDiffClamp = function (_AnimatedWithChildren) {\n  _inheritsLoose(AnimatedDiffClamp, _AnimatedWithChildren);\n\n  function AnimatedDiffClamp(a, min, max) {\n    var _this;\n\n    _this = _AnimatedWithChildren.call(this) || this;\n    _this._a = a;\n    _this._min = min;\n    _this._max = max;\n    _this._value = _this._lastValue = _this._a.__getValue();\n    return _this;\n  }\n\n  var _proto = AnimatedDiffClamp.prototype;\n\n  _proto.__makeNative = function __makeNative() {\n    this._a.__makeNative();\n\n    _AnimatedWithChildren.prototype.__makeNative.call(this);\n  };\n\n  _proto.interpolate = function interpolate(config) {\n    return new AnimatedInterpolation(this, config);\n  };\n\n  _proto.__getValue = function __getValue() {\n    var value = this._a.__getValue();\n\n    var diff = value - this._lastValue;\n    this._lastValue = value;\n    this._value = Math.min(Math.max(this._value + diff, this._min), this._max);\n    return this._value;\n  };\n\n  _proto.__attach = function __attach() {\n    this._a.__addChild(this);\n  };\n\n  _proto.__detach = function __detach() {\n    this._a.__removeChild(this);\n\n    _AnimatedWithChildren.prototype.__detach.call(this);\n  };\n\n  _proto.__getNativeConfig = function __getNativeConfig() {\n    return {\n      type: 'diffclamp',\n      input: this._a.__getNativeTag(),\n      min: this._min,\n      max: this._max\n    };\n  };\n\n  return AnimatedDiffClamp;\n}(AnimatedWithChildren);\n\nexport default AnimatedDiffClamp;","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-web/dist/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js"],"names":["_inheritsLoose","subClass","superClass","prototype","Object","create","constructor","_setPrototypeOf","o","p","setPrototypeOf","__proto__","AnimatedInterpolation","AnimatedNode","AnimatedWithChildren","AnimatedDiffClamp","_AnimatedWithChildren","a","min","max","_this","call","_a","_min","_max","_value","_lastValue","__getValue","_proto","__makeNative","interpolate","config","value","diff","Math","__attach","__addChild","__detach","__removeChild","__getNativeConfig","type","input","__getNativeTag"],"mappings":"AASA;;AAEA,SAASA,cAAT,CAAwBC,QAAxB,EAAkCC,UAAlC,EAA8C;AAAED,EAAAA,QAAQ,CAACE,SAAT,GAAqBC,MAAM,CAACC,MAAP,CAAcH,UAAU,CAACC,SAAzB,CAArB;AAA0DF,EAAAA,QAAQ,CAACE,SAAT,CAAmBG,WAAnB,GAAiCL,QAAjC;;AAA2CM,EAAAA,eAAe,CAACN,QAAD,EAAWC,UAAX,CAAf;AAAwC;;AAE7L,SAASK,eAAT,CAAyBC,CAAzB,EAA4BC,CAA5B,EAA+B;AAAEF,EAAAA,eAAe,GAAGH,MAAM,CAACM,cAAP,IAAyB,SAASH,eAAT,CAAyBC,CAAzB,EAA4BC,CAA5B,EAA+B;AAAED,IAAAA,CAAC,CAACG,SAAF,GAAcF,CAAd;AAAiB,WAAOD,CAAP;AAAW,GAAxG;;AAA0G,SAAOD,eAAe,CAACC,CAAD,EAAIC,CAAJ,CAAtB;AAA+B;;AAE1K,OAAOG,qBAAP;AACA,OAAOC,YAAP;AACA,OAAOC,oBAAP;;AAEA,IAAIC,iBAAiB,GAAgB,UAAUC,qBAAV,EAAiC;AACpEhB,EAAAA,cAAc,CAACe,iBAAD,EAAoBC,qBAApB,CAAd;;AAEA,WAASD,iBAAT,CAA2BE,CAA3B,EAA8BC,GAA9B,EAAmCC,GAAnC,EAAwC;AACtC,QAAIC,KAAJ;;AAEAA,IAAAA,KAAK,GAAGJ,q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A,MAAM,CAACS,QAAP,GAAkB,SAASA,QAAT,GAAoB;AACpC,SAAKf,EAAL,CAAQgB,aAAR,CAAsB,IAAtB;;AAEAtB,IAAAA,qBAAqB,CAACb,SAAtB,CAAgCkC,QAAhC,CAAyChB,IAAzC,CAA8C,IAA9C;AACD,GAJD;;AAMAO,EAAAA,MAAM,CAACW,iBAAP,GAA2B,SAASA,iBAAT,GAA6B;AACtD,WAAO;AACLC,MAAAA,IAAI,EAAE,WADD;AAELC,MAAAA,KAAK,EAAE,KAAKnB,EAAL,CAAQoB,cAAR,EAFF;AAGLxB,MAAAA,GAAG,EAAE,KAAKK,IAHL;AAILJ,MAAAA,GAAG,EAAE,KAAKK;AAJL,KAAP;AAMD,GAPD;;AASA,SAAOT,iBAAP;AACD,CAvDoC,CAuDnCD,oBAvDmC,CAArC;;AAyDA,eAAeC,iBAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its 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'use strict';\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nimport AnimatedInterpolation from './AnimatedInterpolation';\nimport AnimatedNode from './AnimatedNode';\nimport AnimatedWithChildren from './AnimatedWithChildren';\n\nvar AnimatedDiffClamp = /*#__PURE__*/function (_AnimatedWithChildren) {\n  _inheritsLoose(AnimatedDiffClamp, _AnimatedWithChildren);\n\n  function AnimatedDiffClamp(a, min, max) {\n    var _this;\n\n    _this = _AnimatedWithChildren.call(this) || this;\n    _this._a = a;\n    _this._min = min;\n    _this._max = max;\n    _this._value = _this._lastValue = _this._a.__getValue();\n    return _this;\n  }\n\n  var _proto = AnimatedDiffClamp.prototype;\n\n  _proto.__makeNative = function __makeNative() {\n    this._a.__makeNative();\n\n    _AnimatedWithChildren.prototype.__makeNative.call(this);\n  };\n\n  _proto.interpolate = function interpolate(config) {\n    return new AnimatedInterpolation(this, config);\n  };\n\n  _proto.__getValue = function __getValue() {\n    var value = this._a.__getValue();\n\n    var diff = value - this._lastValue;\n    this._lastValue = value;\n    this._value = Math.min(Math.max(this._value + diff, this._min), this._max);\n    return this._value;\n  };\n\n  _proto.__attach = function __attach() {\n    this._a.__addChild(this);\n  };\n\n  _proto.__detach = function __detach() {\n    this._a.__removeChild(this);\n\n    _AnimatedWithChildren.prototype.__detach.call(this);\n  };\n\n  _proto.__getNativeConfig = function __getNativeConfig() {\n    return {\n      type: 'diffclamp',\n      input: this._a.__getNativeTag(),\n      min: this._min,\n      max: this._max\n    };\n  };\n\n  return AnimatedDiffClamp;\n}(AnimatedWithChildren);\n\nexport default AnimatedDiffClamp;"]},"metadata":{},"sourceType":"module"}