{"ast":null,"code":"'use strict';\n\nfunction _createForOfIteratorHelperLoose(o, allowArrayLike) {\n  var it;\n\n  if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) {\n    if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n      if (it) o = it;\n      var i = 0;\n      return function () {\n        if (i >= o.length) return {\n          done: true\n        };\n        return {\n          done: false,\n          value: o[i++]\n        };\n      };\n    }\n\n    throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n  }\n\n  it = o[Symbol.iterator]();\n  return it.next.bind(it);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n  if (!o) return;\n  if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n  var n = Object.prototype.toString.call(o).slice(8, -1);\n  if (n === \"Object\" && o.constructor) n = o.constructor.name;\n  if (n === \"Map\" || n === \"Set\") return Array.from(o);\n  if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n  if (len == null || len > arr.length) len = arr.length;\n\n  for (var i = 0, arr2 = new Array(len); i < len; i++) {\n    arr2[i] = arr[i];\n  }\n\n  return arr2;\n}\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 AnimatedNode from \"./AnimatedNode\";\nimport NativeAnimatedHelper from \"../NativeAnimatedHelper\";\n\nvar AnimatedWithChildren = function (_AnimatedNode) {\n  _inheritsLoose(AnimatedWithChildren, _AnimatedNode);\n\n  function AnimatedWithChildren() {\n    var _this;\n\n    _this = _AnimatedNode.call(this) || this;\n    _this._children = [];\n    return _this;\n  }\n\n  var _proto = AnimatedWithChildren.prototype;\n\n  _proto.__makeNative = function __makeNative() {\n    if (!this.__isNative) {\n      this.__isNative = true;\n\n      for (var _iterator = _createForOfIteratorHelperLoose(this._children), _step; !(_step = _iterator()).done;) {\n        var child = _step.value;\n\n        child.__makeNative();\n\n        NativeAnimatedHelper.API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag());\n      }\n    }\n\n    _AnimatedNode.prototype.__makeNative.call(this);\n  };\n\n  _proto.__addChild = function __addChild(child) {\n    if (this._children.length === 0) {\n      this.__attach();\n    }\n\n    this._children.push(child);\n\n    if (this.__isNative) {\n      child.__makeNative();\n\n      NativeAnimatedHelper.API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag());\n    }\n  };\n\n  _proto.__removeChild = function __removeChild(child) {\n    var index = this._children.indexOf(child);\n\n    if (index === -1) {\n      console.warn(\"Trying to remove a child that doesn't exist\");\n      return;\n    }\n\n    if (this.__isNative && child.__isNative) {\n      NativeAnimatedHelper.API.disconnectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag());\n    }\n\n    this._children.splice(index, 1);\n\n    if (this._children.length === 0) {\n      this.__detach();\n    }\n  };\n\n  _proto.__getChildren = function __getChildren() {\n    return this._children;\n  };\n\n  _proto.__callListeners = function __callListeners(value) {\n    _AnimatedNode.prototype.__callListeners.call(this, value);\n\n    if (!this.__isNative) {\n      for (var _iterator2 = _createForOfIteratorHelperLoose(this._children), _step2; !(_step2 = _iterator2()).done;) {\n        var child = _step2.value;\n\n        if (child.__getValue) {\n          child.__callListeners(child.__getValue());\n        }\n      }\n    }\n  };\n\n  return AnimatedWithChildren;\n}(AnimatedNode);\n\nexport default AnimatedWithChildren;","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-web/dist/vendor/react-native/Animated/nodes/AnimatedWithChildren.js"],"names":["_createForOfIteratorHelperLoose","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","done","value","TypeError","next","bind","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","from","test","arr","len","arr2","_inheritsLoose","subClass","superClass","create","_setPrototypeOf","p","setPrototypeOf","__proto__","AnimatedNode","NativeAnimatedHelper","AnimatedWithChildren","_AnimatedNode","_this","_children","_proto","__makeNative","__isNative","_iterator","_step","child","API","connectAnimatedNodes","__getNativeTag","__addChild","__attach","push","__removeChild","index","indexOf","console","warn","disconnectAnimatedNodes","splice","__detach","__getChildren","__callListeners","_iterator2","_step2","__getValue"],"mappings":"AASA;;AAEA,SAASA,+BAAT,CAAyCC,CAAzC,EAA4CC,cAA5C,EAA4D;AAAE,MAAIC,EAAJ;;AAAQ,MAAI,OAAOC,MAAP,KAAkB,WAAlB,IAAiCH,CAAC,CAACG,MAAM,CAACC,QAAR,CAAD,IAAsB,IAA3D,EAAiE;AAAE,QAAIC,KAAK,CAACC,OAAN,CAAcN,CAAd,MAAqBE,EAAE,GAAGK,2BAA2B,CAACP,CAAD,CAArD,KAA6DC,cAAc,IAAID,CAAlB,IAAuB,OAAOA,CAAC,CAACQ,MAAT,KAAoB,QAA5G,EAAsH;AAAE,UAAIN,EAAJ,EAAQF,CAAC,GAAGE,EAAJ;AAAQ,UAAIO,CAAC,GAAG,CAAR;AAAW,aAAO,YAAY;AAAE,YAAIA,CAAC,IAAIT,CAAC,CAACQ,MAAX,EAAmB,OAAO;AAAEE,UAAAA,IAAI,EAAE;AAAR,SAAP;AAAuB,eAAO;AAAEA,UAAAA,IAAI,EAAE,KAAR;AAAeC,UAAAA,KAAK,EAAEX,CAAC,CAACS,CAAC,EAAF;AAAvB,SAAP;AAAwC,OAAvG;AAA0G;;AAAC,UAAM,IAAIG,SAAJ,CAAc,uIAAd,CAAN;AAA+J;;AAACV,EAAAA,EAAE,GAAGF,CAAC,CAACG,MAAM,CAACC,QA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AemB,MAAf,CAAsBL,KAAtB,EAA6B,CAA7B;;AAEA,QAAI,KAAKd,SAAL,CAAenC,MAAf,KAA0B,CAA9B,EAAiC;AAC/B,WAAKuD,QAAL;AACD;AACF,GAjBD;;AAmBAnB,EAAAA,MAAM,CAACoB,aAAP,GAAuB,SAASA,aAAT,GAAyB;AAC9C,WAAO,KAAKrB,SAAZ;AACD,GAFD;;AAIAC,EAAAA,MAAM,CAACqB,eAAP,GAAyB,SAASA,eAAT,CAAyBtD,KAAzB,EAAgC;AACvD8B,IAAAA,aAAa,CAACtB,SAAd,CAAwB8C,eAAxB,CAAwC5C,IAAxC,CAA6C,IAA7C,EAAmDV,KAAnD;;AAEA,QAAI,CAAC,KAAKmC,UAAV,EAAsB;AACpB,WAAK,IAAIoB,UAAU,GAAGnE,+BAA+B,CAAC,KAAK4C,SAAN,CAAhD,EAAkEwB,MAAvE,EAA+E,CAAC,CAACA,MAAM,GAAGD,UAAU,EAApB,EAAwBxD,IAAxG,GAA+G;AAC7G,YAAIuC,KAAK,GAAGkB,MAAM,CAACxD,KAAnB;;AAEA,YAAIsC,KAAK,CAACmB,UAAV,EAAsB;AACpBnB,UAAAA,KAAK,CAACgB,eAAN,CAAsBhB,KAAK,CAACmB,UAAN,EAAtB;AACD;AACF;AACF;AACF,GAZD;;AAcA,SAAO5B,oBAAP;AACD,CAlFuC,CAkFtCF,YAlFsC,CAAxC;;AAoFA,eAAeE,oBAAf","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 _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } it = o[Symbol.iterator](); return it.next.bind(it); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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 AnimatedNode from './AnimatedNode';\nimport NativeAnimatedHelper from '../NativeAnimatedHelper';\n\nvar AnimatedWithChildren = /*#__PURE__*/function (_AnimatedNode) {\n  _inheritsLoose(AnimatedWithChildren, _AnimatedNode);\n\n  function AnimatedWithChildren() {\n    var _this;\n\n    _this = _AnimatedNode.call(this) || this;\n    _this._children = [];\n    return _this;\n  }\n\n  var _proto = AnimatedWithChildren.prototype;\n\n  _proto.__makeNative = function __makeNative() {\n    if (!this.__isNative) {\n      this.__isNative = true;\n\n      for (var _iterator = _createForOfIteratorHelperLoose(this._children), _step; !(_step = _iterator()).done;) {\n        var child = _step.value;\n\n        child.__makeNative();\n\n        NativeAnimatedHelper.API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag());\n      }\n    }\n\n    _AnimatedNode.prototype.__makeNative.call(this);\n  };\n\n  _proto.__addChild = function __addChild(child) {\n    if (this._children.length === 0) {\n      this.__attach();\n    }\n\n    this._children.push(child);\n\n    if (this.__isNative) {\n      // Only accept \"native\" animated nodes as children\n      child.__makeNative();\n\n      NativeAnimatedHelper.API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag());\n    }\n  };\n\n  _proto.__removeChild = function __removeChild(child) {\n    var index = this._children.indexOf(child);\n\n    if (index === -1) {\n      console.warn(\"Trying to remove a child that doesn't exist\");\n      return;\n    }\n\n    if (this.__isNative && child.__isNative) {\n      NativeAnimatedHelper.API.disconnectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag());\n    }\n\n    this._children.splice(index, 1);\n\n    if (this._children.length === 0) {\n      this.__detach();\n    }\n  };\n\n  _proto.__getChildren = function __getChildren() {\n    return this._children;\n  };\n\n  _proto.__callListeners = function __callListeners(value) {\n    _AnimatedNode.prototype.__callListeners.call(this, value);\n\n    if (!this.__isNative) {\n      for (var _iterator2 = _createForOfIteratorHelperLoose(this._children), _step2; !(_step2 = _iterator2()).done;) {\n        var child = _step2.value;\n\n        if (child.__getValue) {\n          child.__callListeners(child.__getValue());\n        }\n      }\n    }\n  };\n\n  return AnimatedWithChildren;\n}(AnimatedNode);\n\nexport default AnimatedWithChildren;"]},"metadata":{},"sourceType":"module"}