mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 21:31:02 +00:00
1 line
6.7 KiB
Plaintext
1 line
6.7 KiB
Plaintext
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n /* eslint-env browser */\n\n // Setup websocket messages for reloading the page from the command line.\n // This is normally setup on the native client.\n\n const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws';\n const messageSocket = new WebSocket(`${protocol}://${window.location.host}/message`);\n messageSocket.onmessage = message => {\n const data = JSON.parse(String(message.data));\n switch (data.method) {\n case 'sendDevCommand':\n switch (data.params.name) {\n case 'reload':\n window.location.reload();\n break;\n case 'rsc-reload':\n if (data.params.platform && data.params.platform !== \"web\") {\n return;\n }\n globalThis.__EXPO_RSC_RELOAD_LISTENERS__?.forEach(l => l());\n break;\n // Inject CSS modules from server components into the root client bundle in development.\n case 'module-import':\n {\n const {\n data: moduleData\n } = data.params;\n // remove element with the same 'expo-module-id'\n const id = `expo-module-id=\"${moduleData.id}\"`;\n const style = document.querySelector(`style[${id}]`);\n document.querySelector(`script[${id}]`)?.remove();\n const code = moduleData.code;\n const script = document.createElement('script');\n script.type = 'module';\n script.text = code;\n script.setAttribute('expo-module-id', moduleData.id);\n document.head.appendChild(script);\n if (style) {\n // remove the previous block after the new one is loaded to mitigate FOUC.\n queueMicrotask(() => style.parentElement?.removeChild(style));\n }\n }\n break;\n }\n break;\n case 'reload':\n window.location.reload();\n break;\n case 'devMenu':\n // no-op\n break;\n }\n };\n});","lineCount":55,"map":[[2,2,1,0],[4,2,3,0],[5,2,4,0],[7,2,10,0],[7,8,10,6,"protocol"],[7,16,10,14],[7,19,10,17,"window"],[7,25,10,23],[7,26,10,24,"location"],[7,34,10,32],[7,35,10,33,"protocol"],[7,43,10,41],[7,48,10,46],[7,56,10,54],[7,59,10,57],[7,64,10,62],[7,67,10,65],[7,71,10,69],[8,2,11,0],[8,8,11,6,"messageSocket"],[8,21,11,19],[8,24,11,22],[8,28,11,26,"WebSocket"],[8,37,11,35],[8,38,11,36],[8,41,11,39,"protocol"],[8,49,11,47],[8,55,11,53,"window"],[8,61,11,59],[8,62,11,60,"location"],[8,70,11,68],[8,71,11,69,"host"],[8,75,11,73],[8,85,11,83],[8,86,11,84],[9,2,12,0,"messageSocket"],[9,15,12,13],[9,16,12,14,"onmessage"],[9,25,12,23],[9,28,12,27,"message"],[9,35,12,34],[9,39,12,39],[10,4,13,2],[10,10,13,8,"data"],[10,14,13,12],[10,17,13,15,"JSON"],[10,21,13,19],[10,22,13,20,"parse"],[10,27,13,25],[10,28,13,26,"String"],[10,34,13,32],[10,35,13,33,"message"],[10,42,13,40],[10,43,13,41,"data"],[10,47,13,45],[10,48,13,46],[10,49,13,47],[11,4,14,2],[11,12,14,10,"data"],[11,16,14,14],[11,17,14,15,"method"],[11,23,14,21],[12,6,15,4],[12,11,15,9],[12,27,15,25],[13,8,16,6],[13,16,16,14,"data"],[13,20,16,18],[13,21,16,19,"params"],[13,27,16,25],[13,28,16,26,"name"],[13,32,16,30],[14,10,17,8],[14,15,17,13],[14,23,17,21],[15,12,18,10,"window"],[15,18,18,16],[15,19,18,17,"location"],[15,27,18,25],[15,28,18,26,"reload"],[15,34,18,32],[15,35,18,33],[15,36,18,34],[16,12,19,10],[17,10,20,8],[17,15,20,13],[17,27,20,25],[18,12,21,10],[18,16,21,14,"data"],[18,20,21,18],[18,21,21,19,"params"],[18,27,21,25],[18,28,21,26,"platform"],[18,36,21,34],[18,40,21,38,"data"],[18,44,21,42],[18,45,21,43,"params"],[18,51,21,49],[18,52,21,50,"platform"],[18,60,21,58],[18,70,21,82],[18,72,21,84],[19,14,22,12],[20,12,23,10],[21,12,24,10,"globalThis"],[21,22,24,20],[21,23,24,21,"__EXPO_RSC_RELOAD_LISTENERS__"],[21,52,24,50],[21,54,24,52,"forEach"],[21,61,24,59],[21,62,24,61,"l"],[21,63,24,62],[21,67,24,67,"l"],[21,68,24,68],[21,69,24,69],[21,70,24,70],[21,71,24,71],[22,12,25,10],[23,10,26,8],[24,10,27,8],[24,15,27,13],[24,30,27,28],[25,12,28,10],[26,14,29,12],[26,20,29,18],[27,16,29,20,"data"],[27,20,29,24],[27,22,29,26,"moduleData"],[28,14,29,37],[28,15,29,38],[28,18,29,41,"data"],[28,22,29,45],[28,23,29,46,"params"],[28,29,29,52],[29,14,30,12],[30,14,31,12],[30,20,31,18,"id"],[30,22,31,20],[30,25,31,23],[30,44,31,42,"moduleData"],[30,54,31,52],[30,55,31,53,"id"],[30,57,31,55],[30,60,31,58],[31,14,32,12],[31,20,32,18,"style"],[31,25,32,23],[31,28,32,26,"document"],[31,36,32,34],[31,37,32,35,"querySelector"],[31,50,32,48],[31,51,32,49],[31,60,32,58,"id"],[31,62,32,60],[31,65,32,63],[31,66,32,64],[32,14,33,12,"document"],[32,22,33,20],[32,23,33,21,"querySelector"],[32,36,33,34],[32,37,33,35],[32,47,33,45,"id"],[32,49,33,47],[32,52,33,50],[32,53,33,51],[32,55,33,53,"remove"],[32,61,33,59],[32,62,33,60],[32,63,33,61],[33,14,34,12],[33,20,34,18,"code"],[33,24,34,22],[33,27,34,25,"moduleData"],[33,37,34,35],[33,38,34,36,"code"],[33,42,34,40],[34,14,35,12],[34,20,35,18,"script"],[34,26,35,24],[34,29,35,27,"document"],[34,37,35,35],[34,38,35,36,"createElement"],[34,51,35,49],[34,52,35,50],[34,60,35,58],[34,61,35,59],[35,14,36,12,"script"],[35,20,36,18],[35,21,36,19,"type"],[35,25,36,23],[35,28,36,26],[35,36,36,34],[36,14,37,12,"script"],[36,20,37,18],[36,21,37,19,"text"],[36,25,37,23],[36,28,37,26,"code"],[36,32,37,30],[37,14,38,12,"script"],[37,20,38,18],[37,21,38,19,"setAttribute"],[37,33,38,31],[37,34,38,32],[37,50,38,48],[37,52,38,50,"moduleData"],[37,62,38,60],[37,63,38,61,"id"],[37,65,38,63],[37,66,38,64],[38,14,39,12,"document"],[38,22,39,20],[38,23,39,21,"head"],[38,27,39,25],[38,28,39,26,"appendChild"],[38,39,39,37],[38,40,39,38,"script"],[38,46,39,44],[38,47,39,45],[39,14,40,12],[39,18,40,16,"style"],[39,23,40,21],[39,25,40,23],[40,16,41,14],[41,16,42,14,"queueMicrotask"],[41,30,42,28],[41,31,42,29],[41,37,42,35,"style"],[41,42,42,40],[41,43,42,41,"parentElement"],[41,56,42,54],[41,58,42,56,"removeChild"],[41,69,42,67],[41,70,42,68,"style"],[41,75,42,73],[41,76,42,74],[41,77,42,75],[42,14,43,12],[43,12,44,10],[44,12,45,10],[45,8,46,6],[46,8,47,6],[47,6,48,4],[47,11,48,9],[47,19,48,17],[48,8,49,6,"window"],[48,14,49,12],[48,15,49,13,"location"],[48,23,49,21],[48,24,49,22,"reload"],[48,30,49,28],[48,31,49,29],[48,32,49,30],[49,8,50,6],[50,6,51,4],[50,11,51,9],[50,20,51,18],[51,8,52,6],[52,8,53,6],[53,4,54,2],[54,2,55,0],[54,3,55,1],[55,0,55,2],[55,3]],"functionMap":{"names":["<global>","onmessage","globalThis.__EXPO_RSC_RELOAD_LISTENERS__.forEach$argument_0","queueMicrotask$argument_0"],"mappings":"AAA;0BCW;4DCY,UD;6BEkB,6CF;CDa"}},"type":"js/module"}]} |