mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 21:31:02 +00:00
1 line
5.9 KiB
Plaintext
1 line
5.9 KiB
Plaintext
{"dependencies":[{"name":"react-native-web/dist/exports/PixelRatio","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"5rdRioKC4qvLVlVTyxLOiQm3IeU=","exportNames":["*"],"imports":1}},{"name":"react-native-web/dist/exports/Platform","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"dV3bI3NOD8bfMzaIniMaFGy/nn8=","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 exports.getDefaultHeaderHeight = getDefaultHeaderHeight;\n var _reactNativeWebDistExportsPixelRatio = require(_dependencyMap[0], \"react-native-web/dist/exports/PixelRatio\");\n var PixelRatio = _interopDefault(_reactNativeWebDistExportsPixelRatio);\n var _reactNativeWebDistExportsPlatform = require(_dependencyMap[1], \"react-native-web/dist/exports/Platform\");\n var Platform = _interopDefault(_reactNativeWebDistExportsPlatform);\n function getDefaultHeaderHeight(layout, modalPresentation, topInset) {\n let headerHeight;\n\n // On models with Dynamic Island the status bar height is smaller than the safe area top inset.\n const hasDynamicIsland = Platform.default.OS === 'ios' && topInset > 50;\n const statusBarHeight = hasDynamicIsland ? topInset - (5 + 1 / PixelRatio.default.get()) : topInset;\n const isLandscape = layout.width > layout.height;\n if (Platform.default.OS === 'ios') {\n if (Platform.default.isPad || Platform.default.isTV) {\n if (modalPresentation) {\n headerHeight = 56;\n } else {\n headerHeight = 50;\n }\n } else {\n if (isLandscape) {\n headerHeight = 32;\n } else {\n if (modalPresentation) {\n headerHeight = 56;\n } else {\n headerHeight = 44;\n }\n }\n }\n } else {\n headerHeight = 64;\n }\n return headerHeight + statusBarHeight;\n }\n});","lineCount":47,"map":[[2,2,1,0],[2,14,1,12],[4,2,1,13,"Object"],[4,8,1,13],[4,9,1,13,"defineProperty"],[4,23,1,13],[4,24,1,13,"exports"],[4,31,1,13],[5,4,1,13,"value"],[5,9,1,13],[6,2,1,13],[7,2,1,13],[7,11,1,13,"_interopDefault"],[7,27,1,13,"e"],[7,28,1,13],[8,4,1,13],[8,11,1,13,"e"],[8,12,1,13],[8,16,1,13,"e"],[8,17,1,13],[8,18,1,13,"__esModule"],[8,28,1,13],[8,31,1,13,"e"],[8,32,1,13],[9,6,1,13,"default"],[9,13,1,13],[9,15,1,13,"e"],[10,4,1,13],[11,2,1,13],[12,2,4,0,"exports"],[12,9,4,0],[12,10,4,0,"getDefaultHeaderHeight"],[12,32,4,0],[12,35,4,0,"getDefaultHeaderHeight"],[12,57,4,0],[13,2,33,1],[13,6,33,1,"_reactNativeWebDistExportsPixelRatio"],[13,42,33,1],[13,45,33,1,"require"],[13,52,33,1],[13,53,33,1,"_dependencyMap"],[13,67,33,1],[14,2,33,1],[14,6,33,1,"PixelRatio"],[14,16,33,1],[14,19,33,1,"_interopDefault"],[14,34,33,1],[14,35,33,1,"_reactNativeWebDistExportsPixelRatio"],[14,71,33,1],[15,2,33,1],[15,6,33,1,"_reactNativeWebDistExportsPlatform"],[15,40,33,1],[15,43,33,1,"require"],[15,50,33,1],[15,51,33,1,"_dependencyMap"],[15,65,33,1],[16,2,33,1],[16,6,33,1,"Platform"],[16,14,33,1],[16,17,33,1,"_interopDefault"],[16,32,33,1],[16,33,33,1,"_reactNativeWebDistExportsPlatform"],[16,67,33,1],[17,2,4,7],[17,11,4,16,"getDefaultHeaderHeight"],[17,33,4,38,"getDefaultHeaderHeight"],[17,34,4,39,"layout"],[17,40,4,45],[17,42,4,47,"modalPresentation"],[17,59,4,64],[17,61,4,66,"topInset"],[17,69,4,74],[17,71,4,76],[18,4,5,2],[18,8,5,6,"headerHeight"],[18,20,5,18],[20,4,7,2],[21,4,8,2],[21,10,8,8,"hasDynamicIsland"],[21,26,8,24],[21,29,8,27,"Platform"],[21,37,8,35],[21,38,8,35,"default"],[21,45,8,35],[21,46,8,36,"OS"],[21,48,8,38],[21,53,8,43],[21,58,8,48],[21,62,8,52,"topInset"],[21,70,8,60],[21,73,8,63],[21,75,8,65],[22,4,9,2],[22,10,9,8,"statusBarHeight"],[22,25,9,23],[22,28,9,26,"hasDynamicIsland"],[22,44,9,42],[22,47,9,45,"topInset"],[22,55,9,53],[22,59,9,57],[22,60,9,58],[22,63,9,61],[22,64,9,62],[22,67,9,65,"PixelRatio"],[22,77,9,75],[22,78,9,75,"default"],[22,85,9,75],[22,86,9,76,"get"],[22,89,9,79],[22,90,9,80],[22,91,9,81],[22,92,9,82],[22,95,9,85,"topInset"],[22,103,9,93],[23,4,10,2],[23,10,10,8,"isLandscape"],[23,21,10,19],[23,24,10,22,"layout"],[23,30,10,28],[23,31,10,29,"width"],[23,36,10,34],[23,39,10,37,"layout"],[23,45,10,43],[23,46,10,44,"height"],[23,52,10,50],[24,4,11,2],[24,8,11,6,"Platform"],[24,16,11,14],[24,17,11,14,"default"],[24,24,11,14],[24,25,11,15,"OS"],[24,27,11,17],[24,32,11,22],[24,37,11,27],[24,39,11,29],[25,6,12,4],[25,10,12,8,"Platform"],[25,18,12,16],[25,19,12,16,"default"],[25,26,12,16],[25,27,12,17,"isPad"],[25,32,12,22],[25,36,12,26,"Platform"],[25,44,12,34],[25,45,12,34,"default"],[25,52,12,34],[25,53,12,35,"isTV"],[25,57,12,39],[25,59,12,41],[26,8,13,6],[26,12,13,10,"modalPresentation"],[26,29,13,27],[26,31,13,29],[27,10,14,8,"headerHeight"],[27,22,14,20],[27,25,14,23],[27,27,14,25],[28,8,15,6],[28,9,15,7],[28,15,15,13],[29,10,16,8,"headerHeight"],[29,22,16,20],[29,25,16,23],[29,27,16,25],[30,8,17,6],[31,6,18,4],[31,7,18,5],[31,13,18,11],[32,8,19,6],[32,12,19,10,"isLandscape"],[32,23,19,21],[32,25,19,23],[33,10,20,8,"headerHeight"],[33,22,20,20],[33,25,20,23],[33,27,20,25],[34,8,21,6],[34,9,21,7],[34,15,21,13],[35,10,22,8],[35,14,22,12,"modalPresentation"],[35,31,22,29],[35,33,22,31],[36,12,23,10,"headerHeight"],[36,24,23,22],[36,27,23,25],[36,29,23,27],[37,10,24,8],[37,11,24,9],[37,17,24,15],[38,12,25,10,"headerHeight"],[38,24,25,22],[38,27,25,25],[38,29,25,27],[39,10,26,8],[40,8,27,6],[41,6,28,4],[42,4,29,2],[42,5,29,3],[42,11,29,9],[43,6,30,4,"headerHeight"],[43,18,30,16],[43,21,30,19],[43,23,30,21],[44,4,31,2],[45,4,32,2],[45,11,32,9,"headerHeight"],[45,23,32,21],[45,26,32,24,"statusBarHeight"],[45,41,32,39],[46,2,33,0],[47,0,33,1],[47,3]],"functionMap":{"names":["<global>","getDefaultHeaderHeight"],"mappings":"AAA;OCG;CD6B"},"hasCjsExports":false},"type":"js/module"}]} |