Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/51/9c67398842b91fcdbff7991db152e08c04975740c86fda025a1965c40b13ebdb310618
T
2025-10-24 02:46:57 +00:00

1 line
17 KiB
Plaintext

{"dependencies":[{"name":"nanoid/non-secure","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":15},"end":{"line":3,"column":43,"index":58}}],"key":"SN8WVal79eAEDQEpzmVqVAy5JJs=","exportNames":["*"],"imports":1}},{"name":"./TabRouter.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":59},"end":{"line":4,"column":55,"index":114}}],"key":"jC/Bg2g+cpTuZwE6Bq9LoiYVdNc=","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 Object.defineProperty(exports, \"DrawerActions\", {\n enumerable: true,\n get: function () {\n return DrawerActions;\n }\n });\n exports.DrawerRouter = DrawerRouter;\n var _nanoidNonSecure = require(_dependencyMap[0], \"nanoid/non-secure\");\n var _TabRouterJs = require(_dependencyMap[1], \"./TabRouter.js\");\n const DrawerActions = {\n ..._TabRouterJs.TabActions,\n openDrawer() {\n return {\n type: 'OPEN_DRAWER'\n };\n },\n closeDrawer() {\n return {\n type: 'CLOSE_DRAWER'\n };\n },\n toggleDrawer() {\n return {\n type: 'TOGGLE_DRAWER'\n };\n }\n };\n function DrawerRouter({\n defaultStatus = 'closed',\n ...rest\n }) {\n const router = (0, _TabRouterJs.TabRouter)(rest);\n const isDrawerInHistory = state => Boolean(state.history?.some(it => it.type === 'drawer'));\n const addDrawerToHistory = state => {\n if (isDrawerInHistory(state)) {\n return state;\n }\n return {\n ...state,\n history: [...state.history, {\n type: 'drawer',\n status: defaultStatus === 'open' ? 'closed' : 'open'\n }]\n };\n };\n const removeDrawerFromHistory = state => {\n if (!isDrawerInHistory(state)) {\n return state;\n }\n return {\n ...state,\n history: state.history.filter(it => it.type !== 'drawer')\n };\n };\n const openDrawer = state => {\n if (defaultStatus === 'open') {\n return removeDrawerFromHistory(state);\n }\n return addDrawerToHistory(state);\n };\n const closeDrawer = state => {\n if (defaultStatus === 'open') {\n return addDrawerToHistory(state);\n }\n return removeDrawerFromHistory(state);\n };\n return {\n ...router,\n type: 'drawer',\n getInitialState({\n routeNames,\n routeParamList,\n routeGetIdList\n }) {\n const state = router.getInitialState({\n routeNames,\n routeParamList,\n routeGetIdList\n });\n return {\n ...state,\n default: defaultStatus,\n stale: false,\n type: 'drawer',\n key: `drawer-${(0, _nanoidNonSecure.nanoid)()}`\n };\n },\n getRehydratedState(partialState, {\n routeNames,\n routeParamList,\n routeGetIdList\n }) {\n if (partialState.stale === false) {\n return partialState;\n }\n let state = router.getRehydratedState(partialState, {\n routeNames,\n routeParamList,\n routeGetIdList\n });\n if (isDrawerInHistory(partialState)) {\n // Re-sync the drawer entry in history to correct it if it was wrong\n state = removeDrawerFromHistory(state);\n state = addDrawerToHistory(state);\n }\n return {\n ...state,\n default: defaultStatus,\n type: 'drawer',\n key: `drawer-${(0, _nanoidNonSecure.nanoid)()}`\n };\n },\n getStateForRouteFocus(state, key) {\n const result = router.getStateForRouteFocus(state, key);\n return closeDrawer(result);\n },\n getStateForAction(state, action, options) {\n switch (action.type) {\n case 'OPEN_DRAWER':\n return openDrawer(state);\n case 'CLOSE_DRAWER':\n return closeDrawer(state);\n case 'TOGGLE_DRAWER':\n if (isDrawerInHistory(state)) {\n return removeDrawerFromHistory(state);\n }\n return addDrawerToHistory(state);\n case 'JUMP_TO':\n case 'NAVIGATE':\n case 'NAVIGATE_DEPRECATED':\n {\n const result = router.getStateForAction(state, action, options);\n if (result != null && result.index !== state.index) {\n return closeDrawer(result);\n }\n return result;\n }\n case 'GO_BACK':\n if (isDrawerInHistory(state)) {\n return removeDrawerFromHistory(state);\n }\n return router.getStateForAction(state, action, options);\n default:\n return router.getStateForAction(state, action, options);\n }\n },\n actionCreators: DrawerActions\n };\n }\n});","lineCount":156,"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,5,0,"Object"],[7,8,5,0],[7,9,5,0,"defineProperty"],[7,23,5,0],[7,24,5,0,"exports"],[7,31,5,0],[8,4,5,0,"enumerable"],[8,14,5,0],[9,4,5,0,"get"],[9,7,5,0],[9,18,5,0,"get"],[9,19,5,0],[10,6,5,0],[10,13,5,0,"DrawerActions"],[10,26,5,0],[11,4,5,0],[12,2,5,0],[13,2,23,0,"exports"],[13,9,23,0],[13,10,23,0,"DrawerRouter"],[13,22,23,0],[13,25,23,0,"DrawerRouter"],[13,37,23,0],[14,2,3,0],[14,6,3,0,"_nanoidNonSecure"],[14,22,3,0],[14,25,3,0,"require"],[14,32,3,0],[14,33,3,0,"_dependencyMap"],[14,47,3,0],[15,2,4,0],[15,6,4,0,"_TabRouterJs"],[15,18,4,0],[15,21,4,0,"require"],[15,28,4,0],[15,29,4,0,"_dependencyMap"],[15,43,4,0],[16,2,5,7],[16,8,5,13,"DrawerActions"],[16,21,5,26],[16,24,5,29],[17,4,6,2],[17,7,6,5,"TabActions"],[17,19,6,15],[17,20,6,15,"TabActions"],[17,30,6,15],[18,4,7,2,"openDrawer"],[18,14,7,12,"openDrawer"],[18,15,7,12],[18,17,7,15],[19,6,8,4],[19,13,8,11],[20,8,9,6,"type"],[20,12,9,10],[20,14,9,12],[21,6,10,4],[21,7,10,5],[22,4,11,2],[22,5,11,3],[23,4,12,2,"closeDrawer"],[23,15,12,13,"closeDrawer"],[23,16,12,13],[23,18,12,16],[24,6,13,4],[24,13,13,11],[25,8,14,6,"type"],[25,12,14,10],[25,14,14,12],[26,6,15,4],[26,7,15,5],[27,4,16,2],[27,5,16,3],[28,4,17,2,"toggleDrawer"],[28,16,17,14,"toggleDrawer"],[28,17,17,14],[28,19,17,17],[29,6,18,4],[29,13,18,11],[30,8,19,6,"type"],[30,12,19,10],[30,14,19,12],[31,6,20,4],[31,7,20,5],[32,4,21,2],[33,2,22,0],[33,3,22,1],[34,2,23,7],[34,11,23,16,"DrawerRouter"],[34,23,23,28,"DrawerRouter"],[34,24,23,29],[35,4,24,2,"defaultStatus"],[35,17,24,15],[35,20,24,18],[35,28,24,26],[36,4,25,2],[36,7,25,5,"rest"],[37,2,26,0],[37,3,26,1],[37,5,26,3],[38,4,27,2],[38,10,27,8,"router"],[38,16,27,14],[38,19,27,17],[38,23,27,17,"TabRouter"],[38,35,27,26],[38,36,27,26,"TabRouter"],[38,45,27,26],[38,47,27,27,"rest"],[38,51,27,31],[38,52,27,32],[39,4,28,2],[39,10,28,8,"isDrawerInHistory"],[39,27,28,25],[39,30,28,28,"state"],[39,35,28,33],[39,39,28,37,"Boolean"],[39,46,28,44],[39,47,28,45,"state"],[39,52,28,50],[39,53,28,51,"history"],[39,60,28,58],[39,62,28,60,"some"],[39,66,28,64],[39,67,28,65,"it"],[39,69,28,67],[39,73,28,71,"it"],[39,75,28,73],[39,76,28,74,"type"],[39,80,28,78],[39,85,28,83],[39,93,28,91],[39,94,28,92],[39,95,28,93],[40,4,29,2],[40,10,29,8,"addDrawerToHistory"],[40,28,29,26],[40,31,29,29,"state"],[40,36,29,34],[40,40,29,38],[41,6,30,4],[41,10,30,8,"isDrawerInHistory"],[41,27,30,25],[41,28,30,26,"state"],[41,33,30,31],[41,34,30,32],[41,36,30,34],[42,8,31,6],[42,15,31,13,"state"],[42,20,31,18],[43,6,32,4],[44,6,33,4],[44,13,33,11],[45,8,34,6],[45,11,34,9,"state"],[45,16,34,14],[46,8,35,6,"history"],[46,15,35,13],[46,17,35,15],[46,18,35,16],[46,21,35,19,"state"],[46,26,35,24],[46,27,35,25,"history"],[46,34,35,32],[46,36,35,34],[47,10,36,8,"type"],[47,14,36,12],[47,16,36,14],[47,24,36,22],[48,10,37,8,"status"],[48,16,37,14],[48,18,37,16,"defaultStatus"],[48,31,37,29],[48,36,37,34],[48,42,37,40],[48,45,37,43],[48,53,37,51],[48,56,37,54],[49,8,38,6],[49,9,38,7],[50,6,39,4],[50,7,39,5],[51,4,40,2],[51,5,40,3],[52,4,41,2],[52,10,41,8,"removeDrawerFromHistory"],[52,33,41,31],[52,36,41,34,"state"],[52,41,41,39],[52,45,41,43],[53,6,42,4],[53,10,42,8],[53,11,42,9,"isDrawerInHistory"],[53,28,42,26],[53,29,42,27,"state"],[53,34,42,32],[53,35,42,33],[53,37,42,35],[54,8,43,6],[54,15,43,13,"state"],[54,20,43,18],[55,6,44,4],[56,6,45,4],[56,13,45,11],[57,8,46,6],[57,11,46,9,"state"],[57,16,46,14],[58,8,47,6,"history"],[58,15,47,13],[58,17,47,15,"state"],[58,22,47,20],[58,23,47,21,"history"],[58,30,47,28],[58,31,47,29,"filter"],[58,37,47,35],[58,38,47,36,"it"],[58,40,47,38],[58,44,47,42,"it"],[58,46,47,44],[58,47,47,45,"type"],[58,51,47,49],[58,56,47,54],[58,64,47,62],[59,6,48,4],[59,7,48,5],[60,4,49,2],[60,5,49,3],[61,4,50,2],[61,10,50,8,"openDrawer"],[61,20,50,18],[61,23,50,21,"state"],[61,28,50,26],[61,32,50,30],[62,6,51,4],[62,10,51,8,"defaultStatus"],[62,23,51,21],[62,28,51,26],[62,34,51,32],[62,36,51,34],[63,8,52,6],[63,15,52,13,"removeDrawerFromHistory"],[63,38,52,36],[63,39,52,37,"state"],[63,44,52,42],[63,45,52,43],[64,6,53,4],[65,6,54,4],[65,13,54,11,"addDrawerToHistory"],[65,31,54,29],[65,32,54,30,"state"],[65,37,54,35],[65,38,54,36],[66,4,55,2],[66,5,55,3],[67,4,56,2],[67,10,56,8,"closeDrawer"],[67,21,56,19],[67,24,56,22,"state"],[67,29,56,27],[67,33,56,31],[68,6,57,4],[68,10,57,8,"defaultStatus"],[68,23,57,21],[68,28,57,26],[68,34,57,32],[68,36,57,34],[69,8,58,6],[69,15,58,13,"addDrawerToHistory"],[69,33,58,31],[69,34,58,32,"state"],[69,39,58,37],[69,40,58,38],[70,6,59,4],[71,6,60,4],[71,13,60,11,"removeDrawerFromHistory"],[71,36,60,34],[71,37,60,35,"state"],[71,42,60,40],[71,43,60,41],[72,4,61,2],[72,5,61,3],[73,4,62,2],[73,11,62,9],[74,6,63,4],[74,9,63,7,"router"],[74,15,63,13],[75,6,64,4,"type"],[75,10,64,8],[75,12,64,10],[75,20,64,18],[76,6,65,4,"getInitialState"],[76,21,65,19,"getInitialState"],[76,22,65,20],[77,8,66,6,"routeNames"],[77,18,66,16],[78,8,67,6,"routeParamList"],[78,22,67,20],[79,8,68,6,"routeGetIdList"],[80,6,69,4],[80,7,69,5],[80,9,69,7],[81,8,70,6],[81,14,70,12,"state"],[81,19,70,17],[81,22,70,20,"router"],[81,28,70,26],[81,29,70,27,"getInitialState"],[81,44,70,42],[81,45,70,43],[82,10,71,8,"routeNames"],[82,20,71,18],[83,10,72,8,"routeParamList"],[83,24,72,22],[84,10,73,8,"routeGetIdList"],[85,8,74,6],[85,9,74,7],[85,10,74,8],[86,8,75,6],[86,15,75,13],[87,10,76,8],[87,13,76,11,"state"],[87,18,76,16],[88,10,77,8,"default"],[88,17,77,15],[88,19,77,17,"defaultStatus"],[88,32,77,30],[89,10,78,8,"stale"],[89,15,78,13],[89,17,78,15],[89,22,78,20],[90,10,79,8,"type"],[90,14,79,12],[90,16,79,14],[90,24,79,22],[91,10,80,8,"key"],[91,13,80,11],[91,15,80,13],[91,25,80,23],[91,29,80,23,"nanoid"],[91,45,80,29],[91,46,80,29,"nanoid"],[91,52,80,29],[91,54,80,30],[91,55,80,31],[92,8,81,6],[92,9,81,7],[93,6,82,4],[93,7,82,5],[94,6,83,4,"getRehydratedState"],[94,24,83,22,"getRehydratedState"],[94,25,83,23,"partialState"],[94,37,83,35],[94,39,83,37],[95,8,84,6,"routeNames"],[95,18,84,16],[96,8,85,6,"routeParamList"],[96,22,85,20],[97,8,86,6,"routeGetIdList"],[98,6,87,4],[98,7,87,5],[98,9,87,7],[99,8,88,6],[99,12,88,10,"partialState"],[99,24,88,22],[99,25,88,23,"stale"],[99,30,88,28],[99,35,88,33],[99,40,88,38],[99,42,88,40],[100,10,89,8],[100,17,89,15,"partialState"],[100,29,89,27],[101,8,90,6],[102,8,91,6],[102,12,91,10,"state"],[102,17,91,15],[102,20,91,18,"router"],[102,26,91,24],[102,27,91,25,"getRehydratedState"],[102,45,91,43],[102,46,91,44,"partialState"],[102,58,91,56],[102,60,91,58],[103,10,92,8,"routeNames"],[103,20,92,18],[104,10,93,8,"routeParamList"],[104,24,93,22],[105,10,94,8,"routeGetIdList"],[106,8,95,6],[106,9,95,7],[106,10,95,8],[107,8,96,6],[107,12,96,10,"isDrawerInHistory"],[107,29,96,27],[107,30,96,28,"partialState"],[107,42,96,40],[107,43,96,41],[107,45,96,43],[108,10,97,8],[109,10,98,8,"state"],[109,15,98,13],[109,18,98,16,"removeDrawerFromHistory"],[109,41,98,39],[109,42,98,40,"state"],[109,47,98,45],[109,48,98,46],[110,10,99,8,"state"],[110,15,99,13],[110,18,99,16,"addDrawerToHistory"],[110,36,99,34],[110,37,99,35,"state"],[110,42,99,40],[110,43,99,41],[111,8,100,6],[112,8,101,6],[112,15,101,13],[113,10,102,8],[113,13,102,11,"state"],[113,18,102,16],[114,10,103,8,"default"],[114,17,103,15],[114,19,103,17,"defaultStatus"],[114,32,103,30],[115,10,104,8,"type"],[115,14,104,12],[115,16,104,14],[115,24,104,22],[116,10,105,8,"key"],[116,13,105,11],[116,15,105,13],[116,25,105,23],[116,29,105,23,"nanoid"],[116,45,105,29],[116,46,105,29,"nanoid"],[116,52,105,29],[116,54,105,30],[116,55,105,31],[117,8,106,6],[117,9,106,7],[118,6,107,4],[118,7,107,5],[119,6,108,4,"getStateForRouteFocus"],[119,27,108,25,"getStateForRouteFocus"],[119,28,108,26,"state"],[119,33,108,31],[119,35,108,33,"key"],[119,38,108,36],[119,40,108,38],[120,8,109,6],[120,14,109,12,"result"],[120,20,109,18],[120,23,109,21,"router"],[120,29,109,27],[120,30,109,28,"getStateForRouteFocus"],[120,51,109,49],[120,52,109,50,"state"],[120,57,109,55],[120,59,109,57,"key"],[120,62,109,60],[120,63,109,61],[121,8,110,6],[121,15,110,13,"closeDrawer"],[121,26,110,24],[121,27,110,25,"result"],[121,33,110,31],[121,34,110,32],[122,6,111,4],[122,7,111,5],[123,6,112,4,"getStateForAction"],[123,23,112,21,"getStateForAction"],[123,24,112,22,"state"],[123,29,112,27],[123,31,112,29,"action"],[123,37,112,35],[123,39,112,37,"options"],[123,46,112,44],[123,48,112,46],[124,8,113,6],[124,16,113,14,"action"],[124,22,113,20],[124,23,113,21,"type"],[124,27,113,25],[125,10,114,8],[125,15,114,13],[125,28,114,26],[126,12,115,10],[126,19,115,17,"openDrawer"],[126,29,115,27],[126,30,115,28,"state"],[126,35,115,33],[126,36,115,34],[127,10,116,8],[127,15,116,13],[127,29,116,27],[128,12,117,10],[128,19,117,17,"closeDrawer"],[128,30,117,28],[128,31,117,29,"state"],[128,36,117,34],[128,37,117,35],[129,10,118,8],[129,15,118,13],[129,30,118,28],[130,12,119,10],[130,16,119,14,"isDrawerInHistory"],[130,33,119,31],[130,34,119,32,"state"],[130,39,119,37],[130,40,119,38],[130,42,119,40],[131,14,120,12],[131,21,120,19,"removeDrawerFromHistory"],[131,44,120,42],[131,45,120,43,"state"],[131,50,120,48],[131,51,120,49],[132,12,121,10],[133,12,122,10],[133,19,122,17,"addDrawerToHistory"],[133,37,122,35],[133,38,122,36,"state"],[133,43,122,41],[133,44,122,42],[134,10,123,8],[134,15,123,13],[134,24,123,22],[135,10,124,8],[135,15,124,13],[135,25,124,23],[136,10,125,8],[136,15,125,13],[136,36,125,34],[137,12,126,10],[138,14,127,12],[138,20,127,18,"result"],[138,26,127,24],[138,29,127,27,"router"],[138,35,127,33],[138,36,127,34,"getStateForAction"],[138,53,127,51],[138,54,127,52,"state"],[138,59,127,57],[138,61,127,59,"action"],[138,67,127,65],[138,69,127,67,"options"],[138,76,127,74],[138,77,127,75],[139,14,128,12],[139,18,128,16,"result"],[139,24,128,22],[139,28,128,26],[139,32,128,30],[139,36,128,34,"result"],[139,42,128,40],[139,43,128,41,"index"],[139,48,128,46],[139,53,128,51,"state"],[139,58,128,56],[139,59,128,57,"index"],[139,64,128,62],[139,66,128,64],[140,16,129,14],[140,23,129,21,"closeDrawer"],[140,34,129,32],[140,35,129,33,"result"],[140,41,129,39],[140,42,129,40],[141,14,130,12],[142,14,131,12],[142,21,131,19,"result"],[142,27,131,25],[143,12,132,10],[144,10,133,8],[144,15,133,13],[144,24,133,22],[145,12,134,10],[145,16,134,14,"isDrawerInHistory"],[145,33,134,31],[145,34,134,32,"state"],[145,39,134,37],[145,40,134,38],[145,42,134,40],[146,14,135,12],[146,21,135,19,"removeDrawerFromHistory"],[146,44,135,42],[146,45,135,43,"state"],[146,50,135,48],[146,51,135,49],[147,12,136,10],[148,12,137,10],[148,19,137,17,"router"],[148,25,137,23],[148,26,137,24,"getStateForAction"],[148,43,137,41],[148,44,137,42,"state"],[148,49,137,47],[148,51,137,49,"action"],[148,57,137,55],[148,59,137,57,"options"],[148,66,137,64],[148,67,137,65],[149,10,138,8],[150,12,139,10],[150,19,139,17,"router"],[150,25,139,23],[150,26,139,24,"getStateForAction"],[150,43,139,41],[150,44,139,42,"state"],[150,49,139,47],[150,51,139,49,"action"],[150,57,139,55],[150,59,139,57,"options"],[150,66,139,64],[150,67,139,65],[151,8,140,6],[152,6,141,4],[152,7,141,5],[153,6,142,4,"actionCreators"],[153,20,142,18],[153,22,142,20,"DrawerActions"],[154,4,143,2],[154,5,143,3],[155,2,144,0],[156,0,144,1],[156,3]],"functionMap":{"names":["<global>","DrawerActions.openDrawer","DrawerActions.closeDrawer","DrawerActions.toggleDrawer","DrawerRouter","isDrawerInHistory","state.history.some$argument_0","addDrawerToHistory","removeDrawerFromHistory","state.history.filter$argument_0","openDrawer","closeDrawer","getInitialState","getRehydratedState","getStateForRouteFocus","getStateForAction"],"mappings":"AAA;ECM;GDI;EEC;GFI;EGC;GHI;OIE;4BCK,qCC,0BD,ED;6BGC;GHW;kCIC;oCCM,0BD;GJE;qBMC;GNK;sBOC;GPK;IQI;KRiB;ISC;KTwB;IUC;KVG;IWC;KX6B;CJG"},"hasCjsExports":false},"type":"js/module"}]}