{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport Easing from \"react-native-web/dist/exports/Easing\";\n\nfunction makeZoomInTranslation(translationType, pivotPoint) {\n  var modifier = Math.min(1, Math.max(-1, pivotPoint));\n  return {\n    easing: Easing.bezier(0.175, 0.885, 0.32, 1),\n    0: _defineProperty({\n      opacity: 0,\n      scale: 0.1\n    }, translationType, modifier * -1000),\n    0.6: _defineProperty({\n      opacity: 1,\n      scale: 0.457\n    }, translationType, pivotPoint),\n    1: _defineProperty({\n      scale: 1\n    }, translationType, 0)\n  };\n}\n\nexport var zoomIn = {\n  from: {\n    opacity: 0,\n    scale: 0.3\n  },\n  0.5: {\n    opacity: 1\n  },\n  to: {\n    opacity: 1,\n    scale: 1\n  }\n};\nexport var zoomInDown = makeZoomInTranslation('translateY', 60);\nexport var zoomInUp = makeZoomInTranslation('translateY', -60);\nexport var zoomInLeft = makeZoomInTranslation('translateX', 10);\nexport var zoomInRight = makeZoomInTranslation('translateX', -10);","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-animatable/definitions/zooming-entrances.js"],"names":["makeZoomInTranslation","translationType","pivotPoint","modifier","Math","min","max","easing","Easing","bezier","opacity","scale","zoomIn","from","to","zoomInDown","zoomInUp","zoomInLeft","zoomInRight"],"mappings":";;;AAEA,SAASA,qBAAT,CAA+BC,eAA/B,EAAgDC,UAAhD,EAA4D;AAC1D,MAAMC,QAAQ,GAAGC,IAAI,CAACC,GAAL,CAAS,CAAT,EAAYD,IAAI,CAACE,GAAL,CAAS,CAAC,CAAV,EAAaJ,UAAb,CAAZ,CAAjB;AACA,SAAO;AACLK,IAAAA,MAAM,EAAEC,MAAM,CAACC,MAAP,CAAc,KAAd,EAAqB,KAArB,EAA4B,IAA5B,EAAkC,CAAlC,CADH;AAEL;AACEC,MAAAA,OAAO,EAAE,CADX;AAEEC,MAAAA,KAAK,EAAE;AAFT,OAGGV,eAHH,EAGqBE,QAAQ,GAAG,CAAC,IAHjC,CAFK;AAOL;AACEO,MAAAA,OAAO,EAAE,CADX;AAEEC,MAAAA,KAAK,EAAE;AAFT,OAGGV,eAHH,EAGqBC,UAHrB,CAPK;AAYL;AACES,MAAAA,KAAK,EAAE;AADT,OAEGV,eAFH,EAEqB,CAFrB;AAZK,GAAP;AAiBD;;AAED,OAAO,IAAMW,MAAM,GAAG;AACpBC,EAAAA,IAAI,EAAE;AACJH,IAAAA,OAAO,EAAE,CADL;AAEJC,IAAAA,KAAK,EAAE;AAFH,GADc;AAKpB,OAAK;AACHD,IAAAA,OAAO,EAAE;AADN,GALe;AAQpBI,EAAAA,EAAE,EAAE;AACFJ,IAAAA,OAAO,EAAE,CADP;AAEFC,IAAAA,KAAK,EAAE;AAFL;AARgB,CAAf;AAcP,OAAO,IAAMI,UAAU,GAAGf,qBAAqB,CAAC,YAAD,EAAe,EAAf,CAAxC;AAEP,OAAO,IAAMgB,QAAQ,GAAGhB,qBAAqB,CAAC,YAAD,EAAe,CAAC,EAAhB,CAAtC;AAEP,OAAO,IAAMiB,UAAU,GAAGjB,qBAAqB,CAAC,YAAD,EAAe,EAAf,CAAxC;AAEP,OAAO,IAAMkB,WAAW,GAAGlB,qBAAqB,CAAC,YAAD,EAAe,CAAC,EAAhB,CAAzC","sourcesContent":["import { Easing } from 'react-native';\n\nfunction makeZoomInTranslation(translationType, pivotPoint) {\n  const modifier = Math.min(1, Math.max(-1, pivotPoint));\n  return {\n    easing: Easing.bezier(0.175, 0.885, 0.32, 1),\n    0: {\n      opacity: 0,\n      scale: 0.1,\n      [translationType]: modifier * -1000,\n    },\n    0.6: {\n      opacity: 1,\n      scale: 0.457,\n      [translationType]: pivotPoint,\n    },\n    1: {\n      scale: 1,\n      [translationType]: 0,\n    },\n  };\n}\n\nexport const zoomIn = {\n  from: {\n    opacity: 0,\n    scale: 0.3,\n  },\n  0.5: {\n    opacity: 1,\n  },\n  to: {\n    opacity: 1,\n    scale: 1,\n  },\n};\n\nexport const zoomInDown = makeZoomInTranslation('translateY', 60);\n\nexport const zoomInUp = makeZoomInTranslation('translateY', -60);\n\nexport const zoomInLeft = makeZoomInTranslation('translateX', 10);\n\nexport const zoomInRight = makeZoomInTranslation('translateX', -10);\n"]},"metadata":{},"sourceType":"module"}