mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 10:01:02 +00:00
1 line
7.8 KiB
Plaintext
1 line
7.8 KiB
Plaintext
{"dependencies":[{"name":"@react-navigation/core","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":15},"end":{"line":3,"column":69,"index":84}}],"key":"Wm75LgE4xYscVWo0KoLFlflJQCo=","exportNames":["*"]}},{"name":"react","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":85},"end":{"line":4,"column":31,"index":116}}],"key":"RtGiGa+/H7VrI7GDQDLhO1UbpU8=","exportNames":["*"]}}],"output":[{"data":{"code":"__d(function(g,_r,_i,a,m,_e,d){\"use strict\";Object.defineProperty(_e,\"__esModule\",{value:!0}),_e.useScrollToTop=function(o){const n=t.useContext(e.NavigationContext),l=(0,e.useRoute)();if(void 0===n)throw new Error(\"Couldn't find a navigation object. Is your component inside NavigationContainer?\");t.useEffect(()=>{const e=[];let t=n;for(;t;)'tab'===t.getState().type&&e.push(t),t=t.getParent();if(0===e.length)return;const c=e.map(t=>t.addListener('tabPress',t=>{const c=n.isFocused(),s=e.includes(n)||n.getState().routes[0].key===l.key;requestAnimationFrame(()=>{const e=r(o);c&&s&&e&&!t.defaultPrevented&&('scrollToTop'in e?e.scrollToTop():'scrollTo'in e?e.scrollTo({y:0,animated:!0}):'scrollToOffset'in e?e.scrollToOffset({offset:0,animated:!0}):'scrollResponderScrollTo'in e&&e.scrollResponderScrollTo({y:0,animated:!0}))})}));return()=>{c.forEach(e=>e())}},[n,o,l.key])};var e=_r(d[0]),t=(function(e,t){if(\"function\"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var n,l,c={__proto__:null,default:e};if(null===e||\"object\"!=typeof e&&\"function\"!=typeof e)return c;if(n=t?o:r){if(n.has(e))return n.get(e);n.set(e,c)}for(const t in e)\"default\"!==t&&{}.hasOwnProperty.call(e,t)&&((l=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(l.get||l.set)?n(c,t,l):c[t]=e[t]);return c})(e,t)})(_r(d[1]));function r(e){return null==e.current?null:'scrollToTop'in e.current||'scrollTo'in e.current||'scrollToOffset'in e.current||'scrollResponderScrollTo'in e.current?e.current:'getScrollResponder'in e.current?e.current.getScrollResponder():'getNode'in e.current?e.current.getNode():e.current}});","lineCount":1,"map":[[1,31,1,0],[1,44,1,13,"Object"],[1,51,1,13,"defineProperty"],[1,66,1,13,"_e"],[1,69,1,13],[1,83,1,13,"value"],[1,90,1,13],[1,94,1,13,"_e"],[1,97,1,13,"useScrollToTop"],[1,112,26,7],[1,121,26,31,"ref"],[1,124,27,2],[1,130,27,8,"navigation"],[1,132,27,21,"React"],[1,134,27,27,"useContext"],[1,145,27,38,"NavigationContext"],[1,166,28,8,"route"],[1,169,28,16],[1,171,28,16,"useRoute"],[1,185,29,2],[1,193,29,21,"undefined"],[1,197,29,6,"navigation"],[1,199,30,4],[1,205,30,10],[1,209,30,14,"Error"],[1,215,30,20],[1,299,32,2,"React"],[1,301,32,8,"useEffect"],[1,311,32,18],[1,316,33,4],[1,322,33,10,"tabNavigations"],[1,324,33,27],[1,327,34,4],[1,331,34,8,"currentNavigation"],[1,333,34,28,"navigation"],[1,335,37,4],[1,340,37,11,"currentNavigation"],[1,343,38,48],[1,351,38,10,"currentNavigation"],[1,353,38,28,"getState"],[1,364,38,39,"type"],[1,370,39,8,"tabNavigations"],[1,372,39,23,"push"],[1,377,39,28,"currentNavigation"],[1,380,41,6,"currentNavigation"],[1,382,41,26,"currentNavigation"],[1,384,41,44,"getParent"],[1,396,43,4],[1,399,43,34],[1,403,43,8,"tabNavigations"],[1,405,43,23,"length"],[1,412,44,6],[1,419,46,4],[1,425,46,10,"unsubscribers"],[1,427,46,26,"tabNavigations"],[1,429,46,41,"map"],[1,433,46,45,"tab"],[1,436,47,13,"tab"],[1,438,47,17,"addListener"],[1,450,51,6],[1,461,51,18,"e"],[1,465,53,8],[1,471,53,14,"isFocused"],[1,473,53,26,"navigation"],[1,475,53,37,"isFocused"],[1,487,57,14,"isFirst"],[1,489,57,24,"tabNavigations"],[1,491,57,39,"includes"],[1,500,57,48,"navigation"],[1,504,57,63,"navigation"],[1,506,57,74,"getState"],[1,517,57,85,"routes"],[1,524,57,92],[1,527,57,95,"key"],[1,533,57,103,"route"],[1,535,57,109,"key"],[1,539,61,8,"requestAnimationFrame"],[1,561,61,30],[1,566,62,10],[1,572,62,16,"scrollable"],[1,574,62,29,"getScrollableNode"],[1,576,62,47,"ref"],[1,579,63,14,"isFocused"],[1,582,63,27,"isFirst"],[1,585,63,38,"scrollable"],[1,589,63,53,"e"],[1,591,63,55,"defaultPrevented"],[1,610,64,16],[1,626,64,33,"scrollable"],[1,628,65,14,"scrollable"],[1,630,65,25,"scrollToTop"],[1,644,66,23],[1,657,66,37,"scrollable"],[1,659,67,14,"scrollable"],[1,661,67,25,"scrollTo"],[1,670,67,34],[1,671,68,16,"y"],[1,673,68,19],[1,675,69,16,"animated"],[1,685,69,26],[1,689,71,23],[1,708,71,43,"scrollable"],[1,710,72,14,"scrollable"],[1,712,72,25,"scrollToOffset"],[1,727,72,40],[1,728,73,16,"offset"],[1,735,73,24],[1,737,74,16,"animated"],[1,747,74,26],[1,751,76,23],[1,779,76,52,"scrollable"],[1,782,77,14,"scrollable"],[1,784,77,25,"scrollResponderScrollTo"],[1,808,77,49],[1,809,78,16,"y"],[1,811,78,19],[1,813,79,16,"animated"],[1,823,79,26],[1,833,86,4],[1,839,86,11],[1,844,87,6,"unsubscribers"],[1,846,87,20,"forEach"],[1,854,87,28,"unsubscribe"],[1,857,87,43,"unsubscribe"],[1,864,89,5],[1,865,89,6,"navigation"],[1,867,89,18,"ref"],[1,869,89,23,"route"],[1,871,89,29,"key"],[1,876,90,0],[1,878,3,0],[1,882,3,0,"_core"],[1,884,3,0,"_r"],[1,887,3,0,"d"],[1,889,3,0],[1,893,4,0,"React"],[1,896,4,31],[1,905,4,31,"e"],[1,907,4,31,"t"],[1,910,4,31],[1,932,4,31,"WeakMap"],[1,940,4,31],[1,944,4,31,"r"],[1,946,4,31],[1,950,4,31,"WeakMap"],[1,958,4,31,"n"],[1,960,4,31],[1,964,4,31,"WeakMap"],[1,972,4,31],[1,988,4,31,"e"],[1,990,4,31,"t"],[1,993,4,31],[1,997,4,31,"t"],[1,1000,4,31,"e"],[1,1005,4,31,"__esModule"],[1,1016,4,31],[1,1023,4,31,"e"],[1,1025,4,31],[1,1029,4,31,"o"],[1,1031,4,31,"i"],[1,1033,4,31,"f"],[1,1035,4,31],[1,1036,4,31,"__proto__"],[1,1046,4,31],[1,1051,4,31,"default"],[1,1059,4,31,"e"],[1,1062,4,31],[1,1072,4,31,"e"],[1,1075,4,31],[1,1092,4,31,"e"],[1,1095,4,31],[1,1114,4,31,"e"],[1,1116,4,31],[1,1123,4,31,"f"],[1,1125,4,31],[1,1128,4,31,"o"],[1,1130,4,31,"t"],[1,1132,4,31,"n"],[1,1134,4,31,"r"],[1,1136,4,31],[1,1140,4,31,"o"],[1,1142,4,31,"has"],[1,1146,4,31,"e"],[1,1149,4,31],[1,1156,4,31,"o"],[1,1158,4,31,"get"],[1,1162,4,31,"e"],[1,1165,4,31,"o"],[1,1167,4,31,"set"],[1,1171,4,31,"e"],[1,1173,4,31,"f"],[1,1175,4,31],[1,1186,4,31,"t"],[1,1191,4,31,"e"],[1,1193,4,31],[1,1205,4,31,"t"],[1,1208,4,31],[1,1211,4,31,"hasOwnProperty"],[1,1226,4,31,"call"],[1,1231,4,31,"e"],[1,1233,4,31,"t"],[1,1239,4,31,"i"],[1,1242,4,31,"o"],[1,1244,4,31,"Object"],[1,1251,4,31,"defineProperty"],[1,1268,4,31,"Object"],[1,1275,4,31,"getOwnPropertyDescriptor"],[1,1300,4,31,"e"],[1,1302,4,31,"t"],[1,1308,4,31,"i"],[1,1310,4,31,"get"],[1,1315,4,31,"i"],[1,1317,4,31,"set"],[1,1322,4,31,"o"],[1,1324,4,31,"f"],[1,1326,4,31,"t"],[1,1328,4,31,"i"],[1,1331,4,31,"f"],[1,1333,4,31,"t"],[1,1336,4,31,"e"],[1,1338,4,31,"t"],[1,1342,4,31],[1,1349,4,31,"f"],[1,1350,4,31],[1,1353,4,31,"e"],[1,1355,4,31,"t"],[1,1357,4,31],[1,1359,4,0,"_interopRequireWildcard"],[1,1360,4,0,"_r"],[1,1363,4,0,"d"],[1,1365,4,0],[1,1370,5,0],[1,1379,5,9,"getScrollableNode"],[1,1381,5,27,"ref"],[1,1384,6,2],[1,1391,6,21],[1,1397,6,6,"ref"],[1,1399,6,10,"current"],[1,1407,7,11],[1,1412,9,6],[1,1428,9,23,"ref"],[1,1430,9,27,"current"],[1,1439,9,38],[1,1452,9,52,"ref"],[1,1454,9,56,"current"],[1,1463,9,67],[1,1482,9,87,"ref"],[1,1484,9,91,"current"],[1,1493,9,102],[1,1521,9,131,"ref"],[1,1523,9,135,"current"],[1,1531,11,11,"ref"],[1,1533,11,15,"current"],[1,1541,12,13],[1,1564,12,37,"ref"],[1,1566,12,41,"current"],[1,1574,15,11,"ref"],[1,1576,15,15,"current"],[1,1584,15,23,"getScrollResponder"],[1,1605,16,13],[1,1617,16,26,"ref"],[1,1619,16,30,"current"],[1,1627,21,11,"ref"],[1,1629,21,15,"current"],[1,1637,21,23,"getNode"],[1,1647,23,11,"ref"],[1,1649,23,15,"current"],[1,1656,25,0],[1,1657,90,1],[1,1660]],"functionMap":{"names":["<global>","getScrollableNode","useScrollToTop","React.useEffect$argument_0","tabNavigations.map$argument_0","tab.addListener$argument_1","requestAnimationFrame$argument_0","<anonymous>","unsubscribers.forEach$argument_0"],"mappings":"AAA;ACI;CDoB;OEC;kBCM;6CCc;kBCK;8BCU;SDsB;ODC;KDC;WIC;4BCC,4BD;KJC;GDC;CFC"}},"type":"js/module"}]} |