mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 03:01:04 +00:00
1 line
6.9 KiB
Plaintext
1 line
6.9 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 if (__DEV__) {\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 }\n});","lineCount":57,"map":[[2,2,1,0],[4,2,3,0],[5,2,4,0],[7,2,10,0],[7,6,10,4,"__DEV__"],[7,13,10,11],[7,15,10,13],[8,4,11,2],[8,10,11,8,"protocol"],[8,18,11,16],[8,21,11,19,"window"],[8,27,11,25],[8,28,11,26,"location"],[8,36,11,34],[8,37,11,35,"protocol"],[8,45,11,43],[8,50,11,48],[8,58,11,56],[8,61,11,59],[8,66,11,64],[8,69,11,67],[8,73,11,71],[9,4,12,2],[9,10,12,8,"messageSocket"],[9,23,12,21],[9,26,12,24],[9,30,12,28,"WebSocket"],[9,39,12,37],[9,40,12,38],[9,43,12,41,"protocol"],[9,51,12,49],[9,57,12,55,"window"],[9,63,12,61],[9,64,12,62,"location"],[9,72,12,70],[9,73,12,71,"host"],[9,77,12,75],[9,87,12,85],[9,88,12,86],[10,4,13,2,"messageSocket"],[10,17,13,15],[10,18,13,16,"onmessage"],[10,27,13,25],[10,30,13,29,"message"],[10,37,13,36],[10,41,13,41],[11,6,14,4],[11,12,14,10,"data"],[11,16,14,14],[11,19,14,17,"JSON"],[11,23,14,21],[11,24,14,22,"parse"],[11,29,14,27],[11,30,14,28,"String"],[11,36,14,34],[11,37,14,35,"message"],[11,44,14,42],[11,45,14,43,"data"],[11,49,14,47],[11,50,14,48],[11,51,14,49],[12,6,15,4],[12,14,15,12,"data"],[12,18,15,16],[12,19,15,17,"method"],[12,25,15,23],[13,8,16,6],[13,13,16,11],[13,29,16,27],[14,10,17,8],[14,18,17,16,"data"],[14,22,17,20],[14,23,17,21,"params"],[14,29,17,27],[14,30,17,28,"name"],[14,34,17,32],[15,12,18,10],[15,17,18,15],[15,25,18,23],[16,14,19,12,"window"],[16,20,19,18],[16,21,19,19,"location"],[16,29,19,27],[16,30,19,28,"reload"],[16,36,19,34],[16,37,19,35],[16,38,19,36],[17,14,20,12],[18,12,21,10],[18,17,21,15],[18,29,21,27],[19,14,22,12],[19,18,22,16,"data"],[19,22,22,20],[19,23,22,21,"params"],[19,29,22,27],[19,30,22,28,"platform"],[19,38,22,36],[19,42,22,40,"data"],[19,46,22,44],[19,47,22,45,"params"],[19,53,22,51],[19,54,22,52,"platform"],[19,62,22,60],[19,72,22,84],[19,74,22,86],[20,16,23,14],[21,14,24,12],[22,14,25,12,"globalThis"],[22,24,25,22],[22,25,25,23,"__EXPO_RSC_RELOAD_LISTENERS__"],[22,54,25,52],[22,56,25,54,"forEach"],[22,63,25,61],[22,64,25,63,"l"],[22,65,25,64],[22,69,25,69,"l"],[22,70,25,70],[22,71,25,71],[22,72,25,72],[22,73,25,73],[23,14,26,12],[24,12,27,10],[25,12,28,10],[25,17,28,15],[25,32,28,30],[26,14,29,12],[27,16,30,14],[27,22,30,20],[28,18,30,22,"data"],[28,22,30,26],[28,24,30,28,"moduleData"],[29,16,30,39],[29,17,30,40],[29,20,30,43,"data"],[29,24,30,47],[29,25,30,48,"params"],[29,31,30,54],[30,16,31,14],[31,16,32,14],[31,22,32,20,"id"],[31,24,32,22],[31,27,32,25],[31,46,32,44,"moduleData"],[31,56,32,54],[31,57,32,55,"id"],[31,59,32,57],[31,62,32,60],[32,16,33,14],[32,22,33,20,"style"],[32,27,33,25],[32,30,33,28,"document"],[32,38,33,36],[32,39,33,37,"querySelector"],[32,52,33,50],[32,53,33,51],[32,62,33,60,"id"],[32,64,33,62],[32,67,33,65],[32,68,33,66],[33,16,34,14,"document"],[33,24,34,22],[33,25,34,23,"querySelector"],[33,38,34,36],[33,39,34,37],[33,49,34,47,"id"],[33,51,34,49],[33,54,34,52],[33,55,34,53],[33,57,34,55,"remove"],[33,63,34,61],[33,64,34,62],[33,65,34,63],[34,16,35,14],[34,22,35,20,"code"],[34,26,35,24],[34,29,35,27,"moduleData"],[34,39,35,37],[34,40,35,38,"code"],[34,44,35,42],[35,16,36,14],[35,22,36,20,"script"],[35,28,36,26],[35,31,36,29,"document"],[35,39,36,37],[35,40,36,38,"createElement"],[35,53,36,51],[35,54,36,52],[35,62,36,60],[35,63,36,61],[36,16,37,14,"script"],[36,22,37,20],[36,23,37,21,"type"],[36,27,37,25],[36,30,37,28],[36,38,37,36],[37,16,38,14,"script"],[37,22,38,20],[37,23,38,21,"text"],[37,27,38,25],[37,30,38,28,"code"],[37,34,38,32],[38,16,39,14,"script"],[38,22,39,20],[38,23,39,21,"setAttribute"],[38,35,39,33],[38,36,39,34],[38,52,39,50],[38,54,39,52,"moduleData"],[38,64,39,62],[38,65,39,63,"id"],[38,67,39,65],[38,68,39,66],[39,16,40,14,"document"],[39,24,40,22],[39,25,40,23,"head"],[39,29,40,27],[39,30,40,28,"appendChild"],[39,41,40,39],[39,42,40,40,"script"],[39,48,40,46],[39,49,40,47],[40,16,41,14],[40,20,41,18,"style"],[40,25,41,23],[40,27,41,25],[41,18,42,16],[42,18,43,16,"queueMicrotask"],[42,32,43,30],[42,33,43,31],[42,39,43,37,"style"],[42,44,43,42],[42,45,43,43,"parentElement"],[42,58,43,56],[42,60,43,58,"removeChild"],[42,71,43,69],[42,72,43,70,"style"],[42,77,43,75],[42,78,43,76],[42,79,43,77],[43,16,44,14],[44,14,45,12],[45,14,46,12],[46,10,47,8],[47,10,48,8],[48,8,49,6],[48,13,49,11],[48,21,49,19],[49,10,50,8,"window"],[49,16,50,14],[49,17,50,15,"location"],[49,25,50,23],[49,26,50,24,"reload"],[49,32,50,30],[49,33,50,31],[49,34,50,32],[50,10,51,8],[51,8,52,6],[51,13,52,11],[51,22,52,20],[52,10,53,8],[53,10,54,8],[54,6,55,4],[55,4,56,2],[55,5,56,3],[56,2,57,0],[57,0,57,1],[57,3]],"functionMap":{"names":["<global>","onmessage","globalThis.__EXPO_RSC_RELOAD_LISTENERS__.forEach$argument_0","queueMicrotask$argument_0"],"mappings":"AAA;4BCY;8DCY,UD;+BEkB,6CF;GDa"},"hasCjsExports":false},"type":"js/module"}]} |