mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
9.0 KiB
Plaintext
1 line
9.0 KiB
Plaintext
{"dependencies":[{"name":"@react-navigation/native","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":17,"index":162},"end":{"line":6,"column":52,"index":197}}],"key":"uE+cRVNnMKkS9OYKR5fpRqPul5s=","exportNames":["*"]}},{"name":"react","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":16,"index":215},"end":{"line":7,"column":32,"index":231}}],"key":"XN65eZP/QkNMzaBAXbG/zPyidpY=","exportNames":["*"]}},{"name":"../useNavigation","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":24,"index":257},"end":{"line":8,"column":51,"index":284}}],"key":"nFiiMee2XlMdkOHJ+S1TapgG670=","exportNames":["*"]}},{"name":"./useSafeLayoutEffect","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":9,"column":30,"index":316},"end":{"line":9,"column":62,"index":348}}],"key":"DgK4EW9vxfU0hXysJkrIKDeratc=","exportNames":["*"]}},{"name":"../utils/stack","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":10,"column":16,"index":366},"end":{"line":10,"column":41,"index":391}}],"key":"q4lAZStT1Ta6lX47jBQzNx3GJJo=","exportNames":["*"]}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n 'use client';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.Screen = Screen;\n exports.isScreen = isScreen;\n const native_1 = require(_dependencyMap[0], \"@react-navigation/native\");\n const react_1 = require(_dependencyMap[1], \"react\");\n const useNavigation_1 = require(_dependencyMap[2], \"../useNavigation\");\n const useSafeLayoutEffect_1 = require(_dependencyMap[3], \"./useSafeLayoutEffect\");\n const stack_1 = require(_dependencyMap[4], \"../utils/stack\");\n /** Component for setting the current screen's options dynamically. */\n function Screen({\n name,\n options\n }) {\n const route = (0, native_1.useRoute)();\n const navigation = (0, useNavigation_1.useNavigation)(name);\n const isFocused = navigation.isFocused();\n const isPreloaded = (0, stack_1.isRoutePreloadedInStack)(navigation.getState(), route);\n (0, useSafeLayoutEffect_1.useSafeLayoutEffect)(() => {\n if (options && Object.keys(options).length) {\n // React Navigation will infinitely loop in some cases if an empty object is passed to setOptions.\n // https://github.com/expo/router/issues/452\n if (!isPreloaded || isPreloaded && isFocused) {\n navigation.setOptions(options);\n }\n }\n }, [isFocused, isPreloaded, navigation, options]);\n return null;\n }\n function isScreen(child, contextKey) {\n if ((0, react_1.isValidElement)(child) && child && child.type === Screen) {\n if (typeof child.props === 'object' && child.props && 'name' in child.props && !child.props.name) {\n throw new Error(`<Screen /> component in \\`default export\\` at \\`app${contextKey}/_layout\\` must have a \\`name\\` prop when used as a child of a Layout Route.`);\n }\n if (process.env.NODE_ENV !== 'production') {\n if (['children', 'component', 'getComponent'].some(key => child.props && typeof child.props === 'object' && key in child.props)) {\n throw new Error(`<Screen /> component in \\`default export\\` at \\`app${contextKey}/_layout\\` must not have a \\`children\\`, \\`component\\`, or \\`getComponent\\` prop when used as a child of a Layout Route`);\n }\n }\n return true;\n }\n return false;\n }\n});","lineCount":49,"map":[[2,2,1,0],[2,14,1,12],[3,2,2,0],[3,14,2,12],[5,2,3,0,"Object"],[5,8,3,6],[5,9,3,7,"defineProperty"],[5,23,3,21],[5,24,3,22,"exports"],[5,31,3,29],[5,33,3,31],[5,45,3,43],[5,47,3,45],[6,4,3,47,"value"],[6,9,3,52],[6,11,3,54],[7,2,3,59],[7,3,3,60],[7,4,3,61],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"Screen"],[8,16,4,14],[8,19,4,17,"Screen"],[8,25,4,23],[9,2,5,0,"exports"],[9,9,5,7],[9,10,5,8,"isScreen"],[9,18,5,16],[9,21,5,19,"isScreen"],[9,29,5,27],[10,2,6,0],[10,8,6,6,"native_1"],[10,16,6,14],[10,19,6,17,"require"],[10,26,6,24],[10,27,6,24,"_dependencyMap"],[10,41,6,24],[10,72,6,51],[10,73,6,52],[11,2,7,0],[11,8,7,6,"react_1"],[11,15,7,13],[11,18,7,16,"require"],[11,25,7,23],[11,26,7,23,"_dependencyMap"],[11,40,7,23],[11,52,7,31],[11,53,7,32],[12,2,8,0],[12,8,8,6,"useNavigation_1"],[12,23,8,21],[12,26,8,24,"require"],[12,33,8,31],[12,34,8,31,"_dependencyMap"],[12,48,8,31],[12,71,8,50],[12,72,8,51],[13,2,9,0],[13,8,9,6,"useSafeLayoutEffect_1"],[13,29,9,27],[13,32,9,30,"require"],[13,39,9,37],[13,40,9,37,"_dependencyMap"],[13,54,9,37],[13,82,9,61],[13,83,9,62],[14,2,10,0],[14,8,10,6,"stack_1"],[14,15,10,13],[14,18,10,16,"require"],[14,25,10,23],[14,26,10,23,"_dependencyMap"],[14,40,10,23],[14,61,10,40],[14,62,10,41],[15,2,11,0],[16,2,12,0],[16,11,12,9,"Screen"],[16,17,12,15,"Screen"],[16,18,12,16],[17,4,12,18,"name"],[17,8,12,22],[18,4,12,24,"options"],[19,2,12,32],[19,3,12,33],[19,5,12,35],[20,4,13,4],[20,10,13,10,"route"],[20,15,13,15],[20,18,13,18],[20,19,13,19],[20,20,13,20],[20,22,13,22,"native_1"],[20,30,13,30],[20,31,13,31,"useRoute"],[20,39,13,39],[20,41,13,41],[20,42,13,42],[21,4,14,4],[21,10,14,10,"navigation"],[21,20,14,20],[21,23,14,23],[21,24,14,24],[21,25,14,25],[21,27,14,27,"useNavigation_1"],[21,42,14,42],[21,43,14,43,"useNavigation"],[21,56,14,56],[21,58,14,58,"name"],[21,62,14,62],[21,63,14,63],[22,4,15,4],[22,10,15,10,"isFocused"],[22,19,15,19],[22,22,15,22,"navigation"],[22,32,15,32],[22,33,15,33,"isFocused"],[22,42,15,42],[22,43,15,43],[22,44,15,44],[23,4,16,4],[23,10,16,10,"isPreloaded"],[23,21,16,21],[23,24,16,24],[23,25,16,25],[23,26,16,26],[23,28,16,28,"stack_1"],[23,35,16,35],[23,36,16,36,"isRoutePreloadedInStack"],[23,59,16,59],[23,61,16,61,"navigation"],[23,71,16,71],[23,72,16,72,"getState"],[23,80,16,80],[23,81,16,81],[23,82,16,82],[23,84,16,84,"route"],[23,89,16,89],[23,90,16,90],[24,4,17,4],[24,5,17,5],[24,6,17,6],[24,8,17,8,"useSafeLayoutEffect_1"],[24,29,17,29],[24,30,17,30,"useSafeLayoutEffect"],[24,49,17,49],[24,51,17,51],[24,57,17,57],[25,6,18,8],[25,10,18,12,"options"],[25,17,18,19],[25,21,18,23,"Object"],[25,27,18,29],[25,28,18,30,"keys"],[25,32,18,34],[25,33,18,35,"options"],[25,40,18,42],[25,41,18,43],[25,42,18,44,"length"],[25,48,18,50],[25,50,18,52],[26,8,19,12],[27,8,20,12],[28,8,21,12],[28,12,21,16],[28,13,21,17,"isPreloaded"],[28,24,21,28],[28,28,21,33,"isPreloaded"],[28,39,21,44],[28,43,21,48,"isFocused"],[28,52,21,58],[28,54,21,60],[29,10,22,16,"navigation"],[29,20,22,26],[29,21,22,27,"setOptions"],[29,31,22,37],[29,32,22,38,"options"],[29,39,22,45],[29,40,22,46],[30,8,23,12],[31,6,24,8],[32,4,25,4],[32,5,25,5],[32,7,25,7],[32,8,25,8,"isFocused"],[32,17,25,17],[32,19,25,19,"isPreloaded"],[32,30,25,30],[32,32,25,32,"navigation"],[32,42,25,42],[32,44,25,44,"options"],[32,51,25,51],[32,52,25,52],[32,53,25,53],[33,4,26,4],[33,11,26,11],[33,15,26,15],[34,2,27,0],[35,2,28,0],[35,11,28,9,"isScreen"],[35,19,28,17,"isScreen"],[35,20,28,18,"child"],[35,25,28,23],[35,27,28,25,"contextKey"],[35,37,28,35],[35,39,28,37],[36,4,29,4],[36,8,29,8],[36,9,29,9],[36,10,29,10],[36,12,29,12,"react_1"],[36,19,29,19],[36,20,29,20,"isValidElement"],[36,34,29,34],[36,36,29,36,"child"],[36,41,29,41],[36,42,29,42],[36,46,29,46,"child"],[36,51,29,51],[36,55,29,55,"child"],[36,60,29,60],[36,61,29,61,"type"],[36,65,29,65],[36,70,29,70,"Screen"],[36,76,29,76],[36,78,29,78],[37,6,30,8],[37,10,30,12],[37,17,30,19,"child"],[37,22,30,24],[37,23,30,25,"props"],[37,28,30,30],[37,33,30,35],[37,41,30,43],[37,45,31,12,"child"],[37,50,31,17],[37,51,31,18,"props"],[37,56,31,23],[37,60,32,12],[37,66,32,18],[37,70,32,22,"child"],[37,75,32,27],[37,76,32,28,"props"],[37,81,32,33],[37,85,33,12],[37,86,33,13,"child"],[37,91,33,18],[37,92,33,19,"props"],[37,97,33,24],[37,98,33,25,"name"],[37,102,33,29],[37,104,33,31],[38,8,34,12],[38,14,34,18],[38,18,34,22,"Error"],[38,23,34,27],[38,24,34,28],[38,78,34,82,"contextKey"],[38,88,34,92],[38,166,34,170],[38,167,34,171],[39,6,35,8],[40,6,36,8],[40,10,36,12,"process"],[40,17,36,19],[40,18,36,20,"env"],[40,21,36,23],[40,22,36,24,"NODE_ENV"],[40,30,36,32],[40,35,36,37],[40,47,36,49],[40,49,36,51],[41,8,37,12],[41,12,37,16],[41,13,37,17],[41,23,37,27],[41,25,37,29],[41,36,37,40],[41,38,37,42],[41,52,37,56],[41,53,37,57],[41,54,37,58,"some"],[41,58,37,62],[41,59,37,64,"key"],[41,62,37,67],[41,66,37,72,"child"],[41,71,37,77],[41,72,37,78,"props"],[41,77,37,83],[41,81,37,87],[41,88,37,94,"child"],[41,93,37,99],[41,94,37,100,"props"],[41,99,37,105],[41,104,37,110],[41,112,37,118],[41,116,37,122,"key"],[41,119,37,125],[41,123,37,129,"child"],[41,128,37,134],[41,129,37,135,"props"],[41,134,37,140],[41,135,37,141],[41,137,37,143],[42,10,38,16],[42,16,38,22],[42,20,38,26,"Error"],[42,25,38,31],[42,26,38,32],[42,80,38,86,"contextKey"],[42,90,38,96],[42,211,38,217],[42,212,38,218],[43,8,39,12],[44,6,40,8],[45,6,41,8],[45,13,41,15],[45,17,41,19],[46,4,42,4],[47,4,43,4],[47,11,43,11],[47,16,43,16],[48,2,44,0],[49,0,44,1],[49,3]],"functionMap":{"names":["<global>","Screen","<anonymous>","isScreen","some$argument_0"],"mappings":"AAA;ACW;mDCK;KDQ;CDE;AGC;+DCS,6ED;CHO"}},"type":"js/module"}]} |