mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 20:21:01 +00:00
1 line
5.1 KiB
Plaintext
1 line
5.1 KiB
Plaintext
{"dependencies":[{"name":"valtio","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}}],"key":"QS/s3I3dpzUou32XrKY5Z5Z48Ms=","exportNames":["*"],"imports":1}},{"name":"../utils/UiUtil","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":41,"index":73}}],"key":"N0S2gElwBARFcQy6QDw7Ms3ACoo=","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, \"RouterCtrl\", {\n enumerable: true,\n get: function () {\n return RouterCtrl;\n }\n });\n var _valtio = require(_dependencyMap[0], \"valtio\");\n var _utilsUiUtil = require(_dependencyMap[1], \"../utils/UiUtil\");\n // -- Types ---------------------------------------- //\n\n // -- State ---------------------------------------- //\n const state = (0, _valtio.proxy)({\n history: ['ConnectWallet'],\n view: 'ConnectWallet',\n data: undefined\n });\n\n // -- Controller ---------------------------------------- //\n const RouterCtrl = {\n state,\n push(view, data) {\n if (view !== state.view) {\n _utilsUiUtil.UiUtil.layoutAnimation();\n state.view = view;\n if (data) {\n state.data = data;\n }\n state.history.push(view);\n }\n },\n replace(view) {\n state.view = view;\n state.history = [view];\n },\n goBack() {\n if (state.history.length > 1) {\n _utilsUiUtil.UiUtil.layoutAnimation();\n state.history.pop();\n const [last] = state.history.slice(-1);\n state.view = last || 'ConnectWallet';\n }\n }\n };\n});","lineCount":50,"map":[[7,2,14,0,"Object"],[7,8,14,0],[7,9,14,0,"defineProperty"],[7,23,14,0],[7,24,14,0,"exports"],[7,31,14,0],[8,4,14,0,"enumerable"],[8,14,14,0],[9,4,14,0,"get"],[9,7,14,0],[9,18,14,0,"get"],[9,19,14,0],[10,6,14,0],[10,13,14,0,"RouterCtrl"],[10,23,14,0],[11,4,14,0],[12,2,14,0],[13,2,1,0],[13,6,1,0,"_valtio"],[13,13,1,0],[13,16,1,0,"require"],[13,23,1,0],[13,24,1,0,"_dependencyMap"],[13,38,1,0],[14,2,2,0],[14,6,2,0,"_utilsUiUtil"],[14,18,2,0],[14,21,2,0,"require"],[14,28,2,0],[14,29,2,0,"_dependencyMap"],[14,43,2,0],[15,2,4,0],[17,2,6,0],[18,2,7,0],[18,8,7,6,"state"],[18,13,7,11],[18,16,7,14],[18,20,7,14,"proxy"],[18,27,7,19],[18,28,7,19,"proxy"],[18,33,7,19],[18,35,7,20],[19,4,8,2,"history"],[19,11,8,9],[19,13,8,11],[19,14,8,12],[19,29,8,27],[19,30,8,28],[20,4,9,2,"view"],[20,8,9,6],[20,10,9,8],[20,25,9,23],[21,4,10,2,"data"],[21,8,10,6],[21,10,10,8,"undefined"],[22,2,11,0],[22,3,11,1],[22,4,11,2],[24,2,13,0],[25,2,14,7],[25,8,14,13,"RouterCtrl"],[25,18,14,23],[25,21,14,26],[26,4,15,2,"state"],[26,9,15,7],[27,4,16,2,"push"],[27,8,16,6,"push"],[27,9,16,7,"view"],[27,13,16,11],[27,15,16,13,"data"],[27,19,16,17],[27,21,16,19],[28,6,17,4],[28,10,17,8,"view"],[28,14,17,12],[28,19,17,17,"state"],[28,24,17,22],[28,25,17,23,"view"],[28,29,17,27],[28,31,17,29],[29,8,18,6,"UiUtil"],[29,20,18,12],[29,21,18,12,"UiUtil"],[29,27,18,12],[29,28,18,13,"layoutAnimation"],[29,43,18,28],[29,44,18,29],[29,45,18,30],[30,8,19,6,"state"],[30,13,19,11],[30,14,19,12,"view"],[30,18,19,16],[30,21,19,19,"view"],[30,25,19,23],[31,8,20,6],[31,12,20,10,"data"],[31,16,20,14],[31,18,20,16],[32,10,21,8,"state"],[32,15,21,13],[32,16,21,14,"data"],[32,20,21,18],[32,23,21,21,"data"],[32,27,21,25],[33,8,22,6],[34,8,23,6,"state"],[34,13,23,11],[34,14,23,12,"history"],[34,21,23,19],[34,22,23,20,"push"],[34,26,23,24],[34,27,23,25,"view"],[34,31,23,29],[34,32,23,30],[35,6,24,4],[36,4,25,2],[36,5,25,3],[37,4,26,2,"replace"],[37,11,26,9,"replace"],[37,12,26,10,"view"],[37,16,26,14],[37,18,26,16],[38,6,27,4,"state"],[38,11,27,9],[38,12,27,10,"view"],[38,16,27,14],[38,19,27,17,"view"],[38,23,27,21],[39,6,28,4,"state"],[39,11,28,9],[39,12,28,10,"history"],[39,19,28,17],[39,22,28,20],[39,23,28,21,"view"],[39,27,28,25],[39,28,28,26],[40,4,29,2],[40,5,29,3],[41,4,30,2,"goBack"],[41,10,30,8,"goBack"],[41,11,30,8],[41,13,30,11],[42,6,31,4],[42,10,31,8,"state"],[42,15,31,13],[42,16,31,14,"history"],[42,23,31,21],[42,24,31,22,"length"],[42,30,31,28],[42,33,31,31],[42,34,31,32],[42,36,31,34],[43,8,32,6,"UiUtil"],[43,20,32,12],[43,21,32,12,"UiUtil"],[43,27,32,12],[43,28,32,13,"layoutAnimation"],[43,43,32,28],[43,44,32,29],[43,45,32,30],[44,8,33,6,"state"],[44,13,33,11],[44,14,33,12,"history"],[44,21,33,19],[44,22,33,20,"pop"],[44,25,33,23],[44,26,33,24],[44,27,33,25],[45,8,34,6],[45,14,34,12],[45,15,34,13,"last"],[45,19,34,17],[45,20,34,18],[45,23,34,21,"state"],[45,28,34,26],[45,29,34,27,"history"],[45,36,34,34],[45,37,34,35,"slice"],[45,42,34,40],[45,43,34,41],[45,44,34,42],[45,45,34,43],[45,46,34,44],[46,8,35,6,"state"],[46,13,35,11],[46,14,35,12,"view"],[46,18,35,16],[46,21,35,19,"last"],[46,25,35,23],[46,29,35,27],[46,44,35,42],[47,6,36,4],[48,4,37,2],[49,2,38,0],[49,3,38,1],[50,0,38,2],[50,3]],"functionMap":{"names":["<global>","push","replace","goBack"],"mappings":"AAA;ECe;GDS;EEC;GFG;EGC;GHO"},"hasCjsExports":false},"type":"js/module"}]} |