61b813deb04ec63a4b101f7c3df5bcc2.json
3 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.createAnimatedStartClock=createAnimatedStartClock;var _classCallCheck2=_interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));var _createClass2=_interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));var _possibleConstructorReturn2=_interopRequireDefault(require(\"@babel/runtime/helpers/possibleConstructorReturn\"));var _getPrototypeOf2=_interopRequireDefault(require(\"@babel/runtime/helpers/getPrototypeOf\"));var _inherits2=_interopRequireDefault(require(\"@babel/runtime/helpers/inherits\"));var _AnimatedNode2=_interopRequireDefault(require(\"./AnimatedNode\"));var _AnimatedClock=_interopRequireDefault(require(\"./AnimatedClock\"));var _invariant=_interopRequireDefault(require(\"fbjs/lib/invariant\"));var AnimatedStartClock=function(_AnimatedNode){(0,_inherits2.default)(AnimatedStartClock,_AnimatedNode);function AnimatedStartClock(clockNode){var _this;(0,_classCallCheck2.default)(this,AnimatedStartClock);_this=(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(AnimatedStartClock).call(this,{type:'clockStart',clock:clockNode.__nodeID}));(0,_invariant.default)(clockNode instanceof _AnimatedClock.default,'Node is not of an AnimatedClock type');_this._clockNode=clockNode;return _this;}(0,_createClass2.default)(AnimatedStartClock,[{key:\"__onEvaluate\",value:function __onEvaluate(){this._clockNode.start();return 0;}}]);return AnimatedStartClock;}(_AnimatedNode2.default);function createAnimatedStartClock(clock){return new AnimatedStartClock(clock);}","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-reanimated/src/core/AnimatedStartClock.js"],"names":["AnimatedStartClock","clockNode","type","clock","__nodeID","AnimatedClock","_clockNode","start","AnimatedNode","createAnimatedStartClock"],"mappings":"gqBAAA,qEACA,sEACA,qE,GAEMA,CAAAA,kB,kFAGJ,4BAAYC,SAAZ,CAAuB,iEACrB,8GAAM,CAAEC,IAAI,CAAE,YAAR,CAAsBC,KAAK,CAAEF,SAAS,CAACG,QAAvC,CAAN,GACA,uBACEH,SAAS,WAAYI,uBADvB,CAEE,sCAFF,EAIA,MAAKC,UAAL,CAAkBL,SAAlB,CANqB,aAOtB,C,+FAEc,CACb,KAAKK,UAAL,CAAgBC,KAAhB,GACA,MAAO,EAAP,CACD,C,gCAf8BC,sB,EAkB1B,QAASC,CAAAA,wBAAT,CAAkCN,KAAlC,CAAyC,CAC9C,MAAO,IAAIH,CAAAA,kBAAJ,CAAuBG,KAAvB,CAAP,CACD","sourcesContent":["import AnimatedNode from './AnimatedNode';\nimport AnimatedClock from './AnimatedClock';\nimport invariant from 'fbjs/lib/invariant';\n\nclass AnimatedStartClock extends AnimatedNode {\n _clockNode;\n\n constructor(clockNode) {\n super({ type: 'clockStart', clock: clockNode.__nodeID });\n invariant(\n clockNode instanceof AnimatedClock,\n 'Node is not of an AnimatedClock type'\n );\n this._clockNode = clockNode;\n }\n\n __onEvaluate() {\n this._clockNode.start();\n return 0;\n }\n}\n\nexport function createAnimatedStartClock(clock) {\n return new AnimatedStartClock(clock);\n}\n"]},"metadata":{},"sourceType":"script"}