mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"dependencies":[{"name":"react-native-web/dist/exports/Dimensions","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"ySrYx/xxJL+A+Ie+sLy/r/EEnF8=","exportNames":["*"],"imports":1}},{"name":"react-native-animatable","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":54,"index":97}}],"key":"R8TYMNLGfPqIXjSysC+cPLZnlyQ=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n function _interopNamespace(e) {\n if (e && e.__esModule) return e;\n var n = {};\n if (e) Object.keys(e).forEach(function (k) {\n var d = Object.getOwnPropertyDescriptor(e, k);\n Object.defineProperty(n, k, d.get ? d : {\n enumerable: true,\n get: function () {\n return e[k];\n }\n });\n });\n n.default = e;\n return n;\n }\n Object.defineProperty(exports, \"initializeAnimations\", {\n enumerable: true,\n get: function () {\n return initializeAnimations;\n }\n });\n Object.defineProperty(exports, \"makeSlideTranslation\", {\n enumerable: true,\n get: function () {\n return makeSlideTranslation;\n }\n });\n Object.defineProperty(exports, \"buildAnimations\", {\n enumerable: true,\n get: function () {\n return buildAnimations;\n }\n });\n Object.defineProperty(exports, \"reversePercentage\", {\n enumerable: true,\n get: function () {\n return reversePercentage;\n }\n });\n var _reactNativeWebDistExportsDimensions = require(_dependencyMap[0], \"react-native-web/dist/exports/Dimensions\");\n var Dimensions = _interopDefault(_reactNativeWebDistExportsDimensions);\n var _reactNativeAnimatable = require(_dependencyMap[1], \"react-native-animatable\");\n var animatable = _interopNamespace(_reactNativeAnimatable);\n const {\n height,\n width\n } = Dimensions.default.get('window');\n const initializeAnimations = () => {\n // Since react-native-animatable applies by default a margin of 100 to its\n // sliding animation, we reset them here overriding the margin to 0.\n const animationDefinitions = {\n slideInDown: makeSlideTranslation('translateY', -height, 0),\n slideInUp: makeSlideTranslation('translateY', height, 0),\n slideInLeft: makeSlideTranslation('translateX', -width, 0),\n slideInRight: makeSlideTranslation('translateX', width, 0),\n slideOutDown: makeSlideTranslation('translateY', 0, height),\n slideOutUp: makeSlideTranslation('translateY', 0, -height),\n slideOutLeft: makeSlideTranslation('translateX', 0, -width),\n slideOutRight: makeSlideTranslation('translateX', 0, width)\n };\n animatable.initializeRegistryWithDefinitions(animationDefinitions);\n };\n const makeSlideTranslation = (translationType, fromValue, toValue) => ({\n from: {\n [translationType]: fromValue\n },\n to: {\n [translationType]: toValue\n }\n });\n // User can define custom react-native-animatable animations, see PR #72\n // Utility for creating our own custom react-native-animatable animations\n const buildAnimations = ({\n animationIn,\n animationOut\n }) => {\n let updatedAnimationIn;\n let updatedAnimationOut;\n if (isObject(animationIn)) {\n const animationName = JSON.stringify(animationIn);\n makeAnimation(animationName, animationIn);\n updatedAnimationIn = animationName;\n } else {\n updatedAnimationIn = animationIn;\n }\n if (isObject(animationOut)) {\n const animationName = JSON.stringify(animationOut);\n makeAnimation(animationName, animationOut);\n updatedAnimationOut = animationName;\n } else {\n updatedAnimationOut = animationOut;\n }\n return {\n animationIn: updatedAnimationIn,\n animationOut: updatedAnimationOut\n };\n };\n const reversePercentage = x => -(x - 1);\n const makeAnimation = (name, obj) => {\n animatable.registerAnimation(name, animatable.createAnimation(obj));\n };\n const isObject = obj => {\n return obj !== null && typeof obj === 'object';\n };\n});","lineCount":116,"map":[[27,2,4,0,"Object"],[27,8,4,0],[27,9,4,0,"defineProperty"],[27,23,4,0],[27,24,4,0,"exports"],[27,31,4,0],[28,4,4,0,"enumerable"],[28,14,4,0],[29,4,4,0,"get"],[29,7,4,0],[29,18,4,0,"get"],[29,19,4,0],[30,6,4,0],[30,13,4,0,"initializeAnimations"],[30,33,4,0],[31,4,4,0],[32,2,4,0],[33,2,19,0,"Object"],[33,8,19,0],[33,9,19,0,"defineProperty"],[33,23,19,0],[33,24,19,0,"exports"],[33,31,19,0],[34,4,19,0,"enumerable"],[34,14,19,0],[35,4,19,0,"get"],[35,7,19,0],[35,18,19,0,"get"],[35,19,19,0],[36,6,19,0],[36,13,19,0,"makeSlideTranslation"],[36,33,19,0],[37,4,19,0],[38,2,19,0],[39,2,29,0,"Object"],[39,8,29,0],[39,9,29,0,"defineProperty"],[39,23,29,0],[39,24,29,0,"exports"],[39,31,29,0],[40,4,29,0,"enumerable"],[40,14,29,0],[41,4,29,0,"get"],[41,7,29,0],[41,18,29,0,"get"],[41,19,29,0],[42,6,29,0],[42,13,29,0,"buildAnimations"],[42,28,29,0],[43,4,29,0],[44,2,29,0],[45,2,53,0,"Object"],[45,8,53,0],[45,9,53,0,"defineProperty"],[45,23,53,0],[45,24,53,0,"exports"],[45,31,53,0],[46,4,53,0,"enumerable"],[46,14,53,0],[47,4,53,0,"get"],[47,7,53,0],[47,18,53,0,"get"],[47,19,53,0],[48,6,53,0],[48,13,53,0,"reversePercentage"],[48,30,53,0],[49,4,53,0],[50,2,53,0],[51,2,53,49],[51,6,53,49,"_reactNativeWebDistExportsDimensions"],[51,42,53,49],[51,45,53,49,"require"],[51,52,53,49],[51,53,53,49,"_dependencyMap"],[51,67,53,49],[52,2,53,49],[52,6,53,49,"Dimensions"],[52,16,53,49],[52,19,53,49,"_interopDefault"],[52,34,53,49],[52,35,53,49,"_reactNativeWebDistExportsDimensions"],[52,71,53,49],[53,2,2,0],[53,6,2,0,"_reactNativeAnimatable"],[53,28,2,0],[53,31,2,0,"require"],[53,38,2,0],[53,39,2,0,"_dependencyMap"],[53,53,2,0],[54,2,2,0],[54,6,2,0,"animatable"],[54,16,2,0],[54,19,2,0,"_interopNamespace"],[54,36,2,0],[54,37,2,0,"_reactNativeAnimatable"],[54,59,2,0],[55,2,3,0],[55,8,3,6],[56,4,3,8,"height"],[56,10,3,14],[57,4,3,16,"width"],[58,2,3,22],[58,3,3,23],[58,6,3,26,"Dimensions"],[58,16,3,36],[58,17,3,36,"default"],[58,24,3,36],[58,25,3,37,"get"],[58,28,3,40],[58,29,3,41],[58,37,3,49],[58,38,3,50],[59,2,4,7],[59,8,4,13,"initializeAnimations"],[59,28,4,33],[59,31,4,36,"initializeAnimations"],[59,32,4,36],[59,37,4,42],[60,4,5,4],[61,4,6,4],[62,4,7,4],[62,10,7,10,"animationDefinitions"],[62,30,7,30],[62,33,7,33],[63,6,8,8,"slideInDown"],[63,17,8,19],[63,19,8,21,"makeSlideTranslation"],[63,39,8,41],[63,40,8,42],[63,52,8,54],[63,54,8,56],[63,55,8,57,"height"],[63,61,8,63],[63,63,8,65],[63,64,8,66],[63,65,8,67],[64,6,9,8,"slideInUp"],[64,15,9,17],[64,17,9,19,"makeSlideTranslation"],[64,37,9,39],[64,38,9,40],[64,50,9,52],[64,52,9,54,"height"],[64,58,9,60],[64,60,9,62],[64,61,9,63],[64,62,9,64],[65,6,10,8,"slideInLeft"],[65,17,10,19],[65,19,10,21,"makeSlideTranslation"],[65,39,10,41],[65,40,10,42],[65,52,10,54],[65,54,10,56],[65,55,10,57,"width"],[65,60,10,62],[65,62,10,64],[65,63,10,65],[65,64,10,66],[66,6,11,8,"slideInRight"],[66,18,11,20],[66,20,11,22,"makeSlideTranslation"],[66,40,11,42],[66,41,11,43],[66,53,11,55],[66,55,11,57,"width"],[66,60,11,62],[66,62,11,64],[66,63,11,65],[66,64,11,66],[67,6,12,8,"slideOutDown"],[67,18,12,20],[67,20,12,22,"makeSlideTranslation"],[67,40,12,42],[67,41,12,43],[67,53,12,55],[67,55,12,57],[67,56,12,58],[67,58,12,60,"height"],[67,64,12,66],[67,65,12,67],[68,6,13,8,"slideOutUp"],[68,16,13,18],[68,18,13,20,"makeSlideTranslation"],[68,38,13,40],[68,39,13,41],[68,51,13,53],[68,53,13,55],[68,54,13,56],[68,56,13,58],[68,57,13,59,"height"],[68,63,13,65],[68,64,13,66],[69,6,14,8,"slideOutLeft"],[69,18,14,20],[69,20,14,22,"makeSlideTranslation"],[69,40,14,42],[69,41,14,43],[69,53,14,55],[69,55,14,57],[69,56,14,58],[69,58,14,60],[69,59,14,61,"width"],[69,64,14,66],[69,65,14,67],[70,6,15,8,"slideOutRight"],[70,19,15,21],[70,21,15,23,"makeSlideTranslation"],[70,41,15,43],[70,42,15,44],[70,54,15,56],[70,56,15,58],[70,57,15,59],[70,59,15,61,"width"],[70,64,15,66],[71,4,16,4],[71,5,16,5],[72,4,17,4,"animatable"],[72,14,17,14],[72,15,17,15,"initializeRegistryWithDefinitions"],[72,48,17,48],[72,49,17,49,"animationDefinitions"],[72,69,17,69],[72,70,17,70],[73,2,18,0],[73,3,18,1],[74,2,19,7],[74,8,19,13,"makeSlideTranslation"],[74,28,19,33],[74,31,19,36,"makeSlideTranslation"],[74,32,19,37,"translationType"],[74,47,19,52],[74,49,19,54,"fromValue"],[74,58,19,63],[74,60,19,65,"toValue"],[74,67,19,72],[74,73,19,78],[75,4,20,4,"from"],[75,8,20,8],[75,10,20,10],[76,6,21,8],[76,7,21,9,"translationType"],[76,22,21,24],[76,25,21,27,"fromValue"],[77,4,22,4],[77,5,22,5],[78,4,23,4,"to"],[78,6,23,6],[78,8,23,8],[79,6,24,8],[79,7,24,9,"translationType"],[79,22,24,24],[79,25,24,27,"toValue"],[80,4,25,4],[81,2,26,0],[81,3,26,1],[81,4,26,2],[82,2,27,0],[83,2,28,0],[84,2,29,7],[84,8,29,13,"buildAnimations"],[84,23,29,28],[84,26,29,31,"buildAnimations"],[84,27,29,32],[85,4,29,34,"animationIn"],[85,15,29,45],[86,4,29,47,"animationOut"],[87,2,29,61],[87,3,29,62],[87,8,29,67],[88,4,30,4],[88,8,30,8,"updatedAnimationIn"],[88,26,30,26],[89,4,31,4],[89,8,31,8,"updatedAnimationOut"],[89,27,31,27],[90,4,32,4],[90,8,32,8,"isObject"],[90,16,32,16],[90,17,32,17,"animationIn"],[90,28,32,28],[90,29,32,29],[90,31,32,31],[91,6,33,8],[91,12,33,14,"animationName"],[91,25,33,27],[91,28,33,30,"JSON"],[91,32,33,34],[91,33,33,35,"stringify"],[91,42,33,44],[91,43,33,45,"animationIn"],[91,54,33,56],[91,55,33,57],[92,6,34,8,"makeAnimation"],[92,19,34,21],[92,20,34,22,"animationName"],[92,33,34,35],[92,35,34,37,"animationIn"],[92,46,34,48],[92,47,34,49],[93,6,35,8,"updatedAnimationIn"],[93,24,35,26],[93,27,35,29,"animationName"],[93,40,35,42],[94,4,36,4],[94,5,36,5],[94,11,37,9],[95,6,38,8,"updatedAnimationIn"],[95,24,38,26],[95,27,38,29,"animationIn"],[95,38,38,40],[96,4,39,4],[97,4,40,4],[97,8,40,8,"isObject"],[97,16,40,16],[97,17,40,17,"animationOut"],[97,29,40,29],[97,30,40,30],[97,32,40,32],[98,6,41,8],[98,12,41,14,"animationName"],[98,25,41,27],[98,28,41,30,"JSON"],[98,32,41,34],[98,33,41,35,"stringify"],[98,42,41,44],[98,43,41,45,"animationOut"],[98,55,41,57],[98,56,41,58],[99,6,42,8,"makeAnimation"],[99,19,42,21],[99,20,42,22,"animationName"],[99,33,42,35],[99,35,42,37,"animationOut"],[99,47,42,49],[99,48,42,50],[100,6,43,8,"updatedAnimationOut"],[100,25,43,27],[100,28,43,30,"animationName"],[100,41,43,43],[101,4,44,4],[101,5,44,5],[101,11,45,9],[102,6,46,8,"updatedAnimationOut"],[102,25,46,27],[102,28,46,30,"animationOut"],[102,40,46,42],[103,4,47,4],[104,4,48,4],[104,11,48,11],[105,6,49,8,"animationIn"],[105,17,49,19],[105,19,49,21,"updatedAnimationIn"],[105,37,49,39],[106,6,50,8,"animationOut"],[106,18,50,20],[106,20,50,22,"updatedAnimationOut"],[107,4,51,4],[107,5,51,5],[108,2,52,0],[108,3,52,1],[109,2,53,7],[109,8,53,13,"reversePercentage"],[109,25,53,30],[109,28,53,34,"x"],[109,29,53,35],[109,33,53,40],[109,35,53,42,"x"],[109,36,53,43],[109,39,53,46],[109,40,53,47],[109,41,53,48],[110,2,54,0],[110,8,54,6,"makeAnimation"],[110,21,54,19],[110,24,54,22,"makeAnimation"],[110,25,54,23,"name"],[110,29,54,27],[110,31,54,29,"obj"],[110,34,54,32],[110,39,54,37],[111,4,55,4,"animatable"],[111,14,55,14],[111,15,55,15,"registerAnimation"],[111,32,55,32],[111,33,55,33,"name"],[111,37,55,37],[111,39,55,39,"animatable"],[111,49,55,49],[111,50,55,50,"createAnimation"],[111,65,55,65],[111,66,55,66,"obj"],[111,69,55,69],[111,70,55,70],[111,71,55,71],[112,2,56,0],[112,3,56,1],[113,2,57,0],[113,8,57,6,"isObject"],[113,16,57,14],[113,19,57,18,"obj"],[113,22,57,21],[113,26,57,26],[114,4,58,4],[114,11,58,11,"obj"],[114,14,58,14],[114,19,58,19],[114,23,58,23],[114,27,58,27],[114,34,58,34,"obj"],[114,37,58,37],[114,42,58,42],[114,50,58,50],[115,2,59,0],[115,3,59,1],[116,0,59,2],[116,3]],"functionMap":{"names":["<global>","initializeAnimations","makeSlideTranslation","buildAnimations","reversePercentage","makeAnimation","isObject"],"mappings":"AAA;oCCG;CDc;oCEC;EFO;+BGG;CHuB;iCIC,eJ;sBKC;CLE;iBMC;CNE"},"hasCjsExports":false},"type":"js/module"}]} |