@powerhousedao/ph-clint-app 0.1.0-dev.104 → 0.1.0-dev.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/connect/assets/{ClearStorageModal-DyU-FIgY-EmyEVbqJ.js → ClearStorageModal-DyU-FIgY-C2SQvwxh.js} +2 -2
  2. package/dist/connect/assets/{ClearStorageModal-DyU-FIgY-EmyEVbqJ.js.map → ClearStorageModal-DyU-FIgY-C2SQvwxh.js.map} +1 -1
  3. package/dist/connect/assets/{DebugSettingsModal-CwUN9gIr-DU3Ify9i.js → DebugSettingsModal-CwUN9gIr-C27CiPQG.js} +2 -2
  4. package/dist/connect/assets/{DebugSettingsModal-CwUN9gIr-DU3Ify9i.js.map → DebugSettingsModal-CwUN9gIr-C27CiPQG.js.map} +1 -1
  5. package/dist/connect/assets/{InspectorModal-Cd8kbCV8-oAxF19f2.js → InspectorModal-Cd8kbCV8-D9TUaRon.js} +2 -2
  6. package/dist/connect/assets/{InspectorModal-Cd8kbCV8-oAxF19f2.js.map → InspectorModal-Cd8kbCV8-D9TUaRon.js.map} +1 -1
  7. package/dist/connect/assets/{OpenFileDocumentsModal-BQsaBP4x-F5oIaNhF.js → OpenFileDocumentsModal-BQsaBP4x-HmKTWcS8.js} +2 -2
  8. package/dist/connect/assets/{OpenFileDocumentsModal-BQsaBP4x-F5oIaNhF.js.map → OpenFileDocumentsModal-BQsaBP4x-HmKTWcS8.js.map} +1 -1
  9. package/dist/connect/assets/{SettingsModal-CgjW-M2a-cl02gX0W.js → SettingsModal-CgjW-M2a-BbUA87ne.js} +2 -2
  10. package/dist/connect/assets/{SettingsModal-CgjW-M2a-cl02gX0W.js.map → SettingsModal-CgjW-M2a-BbUA87ne.js.map} +1 -1
  11. package/dist/connect/assets/{app-loader-l5wtQh5z-De20QMC5.js → app-loader-l5wtQh5z-BCq0Ui4Q.js} +4 -4
  12. package/dist/connect/assets/{app-loader-l5wtQh5z-De20QMC5.js.map → app-loader-l5wtQh5z-BCq0Ui4Q.js.map} +1 -1
  13. package/dist/connect/assets/{components-BH57lxCU-WIjGNcs_.js → components-BH57lxCU-CXFU4DBE.js} +2 -2
  14. package/dist/connect/assets/{components-BH57lxCU-WIjGNcs_.js.map → components-BH57lxCU-CXFU4DBE.js.map} +1 -1
  15. package/dist/connect/assets/{connect.config-CaXMoB42-VqdFwuy8.js → connect.config-CaXMoB42-DPDK2YJi.js} +2 -2
  16. package/dist/connect/assets/{connect.config-CaXMoB42-VqdFwuy8.js.map → connect.config-CaXMoB42-DPDK2YJi.js.map} +1 -1
  17. package/dist/connect/assets/{connection-state-Eqc2izmt-DTKlEPf8.js → connection-state-Eqc2izmt-DYeEdoBH.js} +2 -2
  18. package/dist/connect/assets/{connection-state-Eqc2izmt-DTKlEPf8.js.map → connection-state-Eqc2izmt-DYeEdoBH.js.map} +1 -1
  19. package/dist/connect/assets/{cookie-banner-BxXvPdIY-CasEfo4n.js → cookie-banner-BxXvPdIY-DciefBm4.js} +2 -2
  20. package/dist/connect/assets/{cookie-banner-BxXvPdIY-CasEfo4n.js.map → cookie-banner-BxXvPdIY-DciefBm4.js.map} +1 -1
  21. package/dist/connect/assets/{index-CgAuDZM-.js → index-CCrGK-st.js} +3 -3
  22. package/dist/connect/assets/{index-CgAuDZM-.js.map → index-CCrGK-st.js.map} +1 -1
  23. package/dist/connect/assets/{load-ftpCX1HI-sPDToliw.js → load-ftpCX1HI-C4L1Z5YI.js} +2 -2
  24. package/dist/connect/assets/{load-ftpCX1HI-sPDToliw.js.map → load-ftpCX1HI-C4L1Z5YI.js.map} +1 -1
  25. package/dist/connect/assets/{pglite-seed-Cl2d-iyl-BBapDDmK.js → pglite-seed-Cl2d-iyl-Abmu_EqV.js} +2 -2
  26. package/dist/connect/assets/{pglite-seed-Cl2d-iyl-BBapDDmK.js.map → pglite-seed-Cl2d-iyl-Abmu_EqV.js.map} +1 -1
  27. package/dist/connect/assets/{preferences-store-DZUIAkHE-BymxR2vb.js → preferences-store-DZUIAkHE-BwJzNFRa.js} +2 -2
  28. package/dist/connect/assets/{preferences-store-DZUIAkHE-BymxR2vb.js.map → preferences-store-DZUIAkHE-BwJzNFRa.js.map} +1 -1
  29. package/dist/connect/assets/{reactor-CItc8KaF-C82-SArQ.js → reactor-CItc8KaF-DIjxfM4l.js} +2 -2
  30. package/dist/connect/assets/{reactor-CItc8KaF-C82-SArQ.js.map → reactor-CItc8KaF-DIjxfM4l.js.map} +1 -1
  31. package/dist/connect/assets/{registerServiceWorker-smkROQhm-5rfjT0ui.js → registerServiceWorker-smkROQhm-Qbc3RMCx.js} +2 -2
  32. package/dist/connect/assets/{registerServiceWorker-smkROQhm-5rfjT0ui.js.map → registerServiceWorker-smkROQhm-Qbc3RMCx.js.map} +1 -1
  33. package/dist/connect/index.html +1 -1
  34. package/dist/connect/powerhouse.config.json +1 -1
  35. package/dist/connect/service-worker.js +1 -1
  36. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{r as e,t}from"./runtime-config-DtJIUgYw-yncHpou3.js";import{n}from"./reactor-CItc8KaF-C82-SArQ.js";import{a as r,o as i}from"./connection-state-Eqc2izmt-DTKlEPf8.js";import{r as a}from"./connect.config-CaXMoB42-VqdFwuy8.js";import{t as o}from"./build-info-BV8UtyA4-vnk7Wd-i.js";import"./i18n-CTgT1HG--BR9YMkIu.js";import{n as s}from"./pglite-seed-Cl2d-iyl-BBapDDmK.js";import{n as c}from"./sentry-jfDyrxdX-gJF7KOR3.js";import{logger as l}from"document-model";import{initTheme as u,useUser as d}from"@powerhousedao/reactor-browser";import{useEffect as f}from"react";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`804744e8-a0d5-55a5-bf30-ddcfd29772eb`)}catch{}})();var p=`ph-reloaded-for-build-hash`;async function m(){try{if(!(`caches`in window))return;let e=await window.caches.keys();await Promise.all(e.filter(e=>e.includes(`precache`)||e.includes(`ph-shell`)).map(e=>window.caches.delete(e)))}catch(e){l.warn(`Failed to clear stale caches before update reload @error`,e)}}var h=()=>{f(()=>{if(a.studioMode||!a.warnOutdatedApp)return;let e=async()=>{let e=await g();e&&!e.isCurrent&&window.sessionStorage.getItem(p)!==e.deployedHash&&(window.sessionStorage.setItem(p,e.deployedHash),l.info(`New deploy detected — reloading from build @currentHash to @deployedHash`,e.currentHash,e.deployedHash),await m(),window.location.reload())};e();let t=()=>{document.visibilityState===`visible`&&e()};return document.addEventListener(`visibilitychange`,t),()=>{document.removeEventListener(`visibilitychange`,t)}},[])};window.navigator.appVersion.includes(`Mac`);var g=async()=>{let e=o();if(!e||e===`unknown`)return null;try{let t=await fetch(`/build-hash.json`,{cache:`no-cache`});if(!t.ok)return null;let n=await t.json();return typeof n.hash!=`string`||!n.hash?null:{currentHash:e,deployedHash:n.hash,isCurrent:n.hash===e}}catch{return null}};function _(){let e=d();f(()=>{let t=null;if(e){let{credential:n,...r}=e;t={id:r.did,username:r.ens?.name,...r}}c(t)},[e])}async function v(a){await s(),await Promise.all([i(),r()]);let o=await e();return t(o),await n(a),{default:({children:e})=>(u(),_(),h(),e)}}export{v as loadComponent};
2
- //# sourceMappingURL=load-ftpCX1HI-sPDToliw.js.map
1
+ import{r as e,t}from"./runtime-config-DtJIUgYw-yncHpou3.js";import{n}from"./reactor-CItc8KaF-DIjxfM4l.js";import{a as r,o as i}from"./connection-state-Eqc2izmt-DYeEdoBH.js";import{r as a}from"./connect.config-CaXMoB42-DPDK2YJi.js";import{t as o}from"./build-info-BV8UtyA4-vnk7Wd-i.js";import"./i18n-CTgT1HG--BR9YMkIu.js";import{n as s}from"./pglite-seed-Cl2d-iyl-Abmu_EqV.js";import{n as c}from"./sentry-jfDyrxdX-gJF7KOR3.js";import{logger as l}from"document-model";import{initTheme as u,useUser as d}from"@powerhousedao/reactor-browser";import{useEffect as f}from"react";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`804744e8-a0d5-55a5-bf30-ddcfd29772eb`)}catch{}})();var p=`ph-reloaded-for-build-hash`;async function m(){try{if(!(`caches`in window))return;let e=await window.caches.keys();await Promise.all(e.filter(e=>e.includes(`precache`)||e.includes(`ph-shell`)).map(e=>window.caches.delete(e)))}catch(e){l.warn(`Failed to clear stale caches before update reload @error`,e)}}var h=()=>{f(()=>{if(a.studioMode||!a.warnOutdatedApp)return;let e=async()=>{let e=await g();e&&!e.isCurrent&&window.sessionStorage.getItem(p)!==e.deployedHash&&(window.sessionStorage.setItem(p,e.deployedHash),l.info(`New deploy detected — reloading from build @currentHash to @deployedHash`,e.currentHash,e.deployedHash),await m(),window.location.reload())};e();let t=()=>{document.visibilityState===`visible`&&e()};return document.addEventListener(`visibilitychange`,t),()=>{document.removeEventListener(`visibilitychange`,t)}},[])};window.navigator.appVersion.includes(`Mac`);var g=async()=>{let e=o();if(!e||e===`unknown`)return null;try{let t=await fetch(`/build-hash.json`,{cache:`no-cache`});if(!t.ok)return null;let n=await t.json();return typeof n.hash!=`string`||!n.hash?null:{currentHash:e,deployedHash:n.hash,isCurrent:n.hash===e}}catch{return null}};function _(){let e=d();f(()=>{let t=null;if(e){let{credential:n,...r}=e;t={id:r.did,username:r.ens?.name,...r}}c(t)},[e])}async function v(a){await s(),await Promise.all([i(),r()]);let o=await e();return t(o),await n(a),{default:({children:e})=>(u(),_(),h(),e)}}export{v as loadComponent};
2
+ //# sourceMappingURL=load-ftpCX1HI-C4L1Z5YI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"load-ftpCX1HI-sPDToliw.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/load-ftpCX1HI.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"804744e8-a0d5-55a5-bf30-ddcfd29772eb\")}catch(e){}}();\nimport { r as loadRuntimeConfig, t as applyConnectBranding } from \"./runtime-config-DtJIUgYw.js\";\nimport \"./i18n-CTgT1HG-.js\";\nimport { r as connectConfig } from \"./connect.config-CaXMoB42.js\";\nimport { n as setUser } from \"./sentry-jfDyrxdX.js\";\nimport { t as getBuildHash } from \"./build-info-BV8UtyA4.js\";\nimport { a as detectReactorPgMajor, i as detectMigrationMajor } from \"./connection-state-Eqc2izmt.js\";\nimport { n as seedPendingPgVersion } from \"./pglite-seed-Cl2d-iyl.js\";\nimport { n as createReactor } from \"./reactor-CItc8KaF.js\";\nimport { useEffect } from \"react\";\nimport { initTheme, useUser } from \"@powerhousedao/reactor-browser\";\nimport { logger } from \"document-model\";\n//#region src/hooks/useCheckLatestVersion.ts\nconst RELOADED_FOR_KEY = \"ph-reloaded-for-build-hash\";\n/**\n* Drop the service worker's stale caches (precache + the NetworkFirst shell\n* cache) before reloading onto a new deploy, so the post-reload navigation\n* is answered from the network / fresh build instead of leftovers of the\n* build we are leaving. Best-effort: if the Caches API is unavailable or a\n* delete fails, the reload still picks up the new shell (the navigation\n* route is NetworkFirst).\n*/\nasync function clearStaleCaches() {\n\ttry {\n\t\tif (!(\"caches\" in window)) return;\n\t\tconst keys = await window.caches.keys();\n\t\tawait Promise.all(keys.filter((key) => key.includes(\"precache\") || key.includes(\"ph-shell\")).map((key) => window.caches.delete(key)));\n\t} catch (error) {\n\t\tlogger.warn(\"Failed to clear stale caches before update reload @error\", error);\n\t}\n}\n/**\n* Detects that the server is serving a different build than the one this\n* page was loaded from (a new deploy) and reloads onto it — once per session\n* per deployed hash. Checked on mount and whenever the tab returns to the\n* foreground, so a deploy that lands while the tab sits open is picked up on\n* the next focus without a manual reload. The in-tab \"new version available\"\n* service-worker prompt (ServiceWorkerUpdatePrompt) remains the opt-in path\n* for workers that are waiting but not yet controlling.\n*/\nconst useCheckLatestVersion = () => {\n\tuseEffect(() => {\n\t\tif (import.meta.env.MODE === \"development\" || connectConfig.studioMode || !connectConfig.warnOutdatedApp) return;\n\t\tconst checkBuildHash = async () => {\n\t\t\tconst status = await getBuildHashStatus();\n\t\t\tif (!status || status.isCurrent) return;\n\t\t\tif (window.sessionStorage.getItem(RELOADED_FOR_KEY) === status.deployedHash) return;\n\t\t\twindow.sessionStorage.setItem(RELOADED_FOR_KEY, status.deployedHash);\n\t\t\tlogger.info(\"New deploy detected — reloading from build @currentHash to @deployedHash\", status.currentHash, status.deployedHash);\n\t\t\tawait clearStaleCaches();\n\t\t\twindow.location.reload();\n\t\t};\n\t\tcheckBuildHash();\n\t\tconst onVisibilityChange = () => {\n\t\t\tif (document.visibilityState === \"visible\") checkBuildHash();\n\t\t};\n\t\tdocument.addEventListener(\"visibilitychange\", onVisibilityChange);\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"visibilitychange\", onVisibilityChange);\n\t\t};\n\t}, []);\n};\nwindow.navigator.appVersion.includes(\"Mac\");\n/**\n* Same-origin build-identity probe. The build bakes a hash of the inputs that\n* determine the deployed content into the bundle (define\n* `PH_CONNECT_BUILD_HASH`, see builder-tools' connectBuildHashPlugin) and\n* emits `build-hash.json` next to the app (served no-cache). Comparing the\n* two tells us whether the server is serving a different build than the one\n* this page was loaded from — the reliable \"a new deploy went out\" signal.\n* Unlike the old GitHub-raw version check it works on localhost (it compares\n* against what the origin actually serves, not a remote branch head) and\n* needs no network beyond the app's own origin.\n*\n* Returns null when there is nothing to compare: dev/studio builds (no hash\n* baked), a server predating `build-hash.json`, an offline fetch, or a\n* malformed body.\n*/\nconst getBuildHashStatus = async () => {\n\tconst currentHash = getBuildHash();\n\tif (!currentHash || currentHash === \"unknown\") return null;\n\ttry {\n\t\tconst result = await fetch(`${import.meta.env.BASE_URL}build-hash.json`, { cache: \"no-cache\" });\n\t\tif (!result.ok) return null;\n\t\tconst data = await result.json();\n\t\tif (typeof data.hash !== \"string\" || !data.hash) return null;\n\t\treturn {\n\t\t\tcurrentHash,\n\t\t\tdeployedHash: data.hash,\n\t\t\tisCurrent: data.hash === currentHash\n\t\t};\n\t} catch {\n\t\treturn null;\n\t}\n};\n//#endregion\n//#region src/store/user.ts\nfunction useSetSentryUser() {\n\tconst user = useUser();\n\tuseEffect(() => {\n\t\tlet sentryUser = null;\n\t\tif (user) {\n\t\t\tconst { credential: _credential, ...rest } = user;\n\t\t\tsentryUser = {\n\t\t\t\tid: rest.did,\n\t\t\t\tusername: rest.ens?.name,\n\t\t\t\t...rest\n\t\t\t};\n\t\t}\n\t\tsetUser(sentryUser);\n\t}, [user]);\n}\n//#endregion\n//#region src/components/load.tsx\nasync function loadComponent(localPackage) {\n\tawait seedPendingPgVersion();\n\tawait Promise.all([detectReactorPgMajor(), detectMigrationMajor()]);\n\tconst runtimeConfig = await loadRuntimeConfig();\n\tapplyConnectBranding(runtimeConfig);\n\tawait createReactor(localPackage);\n\treturn { default: ({ children }) => {\n\t\tinitTheme();\n\t\tuseSetSentryUser();\n\t\tuseCheckLatestVersion();\n\t\treturn children;\n\t} };\n}\n//#endregion\nexport { loadComponent };\n\n//# sourceMappingURL=load-ftpCX1HI.js.map\n//# debugId=804744e8-a0d5-55a5-bf30-ddcfd29772eb\n"],"x_google_ignoreList":[0],"mappings":"6jBACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,EAAA,CAAE,EAahT,IAAM,EAAmB,6BASzB,eAAe,GAAmB,CACjC,GAAI,CACH,GAAI,EAAE,WAAY,QAAS,OAC3B,IAAM,EAAO,MAAM,OAAO,OAAO,KAAK,EACtC,MAAM,QAAQ,IAAI,EAAK,OAAQ,GAAQ,EAAI,SAAS,UAAU,GAAK,EAAI,SAAS,UAAU,CAAC,CAAC,CAAC,IAAK,GAAQ,OAAO,OAAO,OAAO,CAAG,CAAC,CAAC,CACrI,OAAS,EAAO,CACf,EAAO,KAAK,2DAA4D,CAAK,CAC9E,CACD,CAUA,IAAM,MAA8B,CACnC,MAAgB,CACf,GAA8C,EAAc,YAAc,CAAC,EAAc,gBAAiB,OAC1G,IAAM,EAAiB,SAAY,CAClC,IAAM,EAAS,MAAM,EAAmB,EACnC,GAAU,GAAO,WAClB,OAAO,eAAe,QAAQ,CAAgB,IAAM,EAAO,eAC/D,OAAO,eAAe,QAAQ,EAAkB,EAAO,YAAY,EACnE,EAAO,KAAK,2EAA4E,EAAO,YAAa,EAAO,YAAY,EAC/H,MAAM,EAAiB,EACvB,OAAO,SAAS,OAAO,EACxB,EACA,EAAe,EACf,IAAM,MAA2B,CAC5B,SAAS,kBAAoB,WAAW,EAAe,CAC5D,EAEA,OADA,SAAS,iBAAiB,mBAAoB,CAAkB,MACnD,CACZ,SAAS,oBAAoB,mBAAoB,CAAkB,CACpE,CACD,EAAG,CAAC,CAAC,CACN,EACA,OAAO,UAAU,WAAW,SAAS,KAAK,EAgB1C,IAAM,EAAqB,SAAY,CACtC,IAAM,EAAc,EAAa,EACjC,GAAI,CAAC,GAAe,IAAgB,UAAW,OAAO,KACtD,GAAI,CACH,IAAM,EAAS,MAAM,MAAM,mBAA8C,CAAE,MAAO,UAAW,CAAC,EAC9F,GAAI,CAAC,EAAO,GAAI,OAAO,KACvB,IAAM,EAAO,MAAM,EAAO,KAAK,EAE/B,OADI,OAAO,EAAK,MAAS,UAAY,CAAC,EAAK,KAAa,KACjD,CACN,cACA,aAAc,EAAK,KACnB,UAAW,EAAK,OAAS,CAC1B,CACD,MAAQ,CACP,OAAO,IACR,CACD,EAGA,SAAS,GAAmB,CAC3B,IAAM,EAAO,EAAQ,EACrB,MAAgB,CACf,IAAI,EAAa,KACjB,GAAI,EAAM,CACT,GAAM,CAAE,WAAY,EAAa,GAAG,GAAS,EAC7C,EAAa,CACZ,GAAI,EAAK,IACT,SAAU,EAAK,KAAK,KACpB,GAAG,CACJ,CACD,CACA,EAAQ,CAAU,CACnB,EAAG,CAAC,CAAI,CAAC,CACV,CAGA,eAAe,EAAc,EAAc,CAC1C,MAAM,EAAqB,EAC3B,MAAM,QAAQ,IAAI,CAAC,EAAqB,EAAG,EAAqB,CAAC,CAAC,EAClE,IAAM,EAAgB,MAAM,EAAkB,EAG9C,OAFA,EAAqB,CAAa,EAClC,MAAM,EAAc,CAAY,EACzB,CAAE,SAAU,CAAE,eACpB,EAAU,EACV,EAAiB,EACjB,EAAsB,EACf,EACN,CACH"}
1
+ {"version":3,"file":"load-ftpCX1HI-C4L1Z5YI.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/load-ftpCX1HI.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"804744e8-a0d5-55a5-bf30-ddcfd29772eb\")}catch(e){}}();\nimport { r as loadRuntimeConfig, t as applyConnectBranding } from \"./runtime-config-DtJIUgYw.js\";\nimport \"./i18n-CTgT1HG-.js\";\nimport { r as connectConfig } from \"./connect.config-CaXMoB42.js\";\nimport { n as setUser } from \"./sentry-jfDyrxdX.js\";\nimport { t as getBuildHash } from \"./build-info-BV8UtyA4.js\";\nimport { a as detectReactorPgMajor, i as detectMigrationMajor } from \"./connection-state-Eqc2izmt.js\";\nimport { n as seedPendingPgVersion } from \"./pglite-seed-Cl2d-iyl.js\";\nimport { n as createReactor } from \"./reactor-CItc8KaF.js\";\nimport { useEffect } from \"react\";\nimport { initTheme, useUser } from \"@powerhousedao/reactor-browser\";\nimport { logger } from \"document-model\";\n//#region src/hooks/useCheckLatestVersion.ts\nconst RELOADED_FOR_KEY = \"ph-reloaded-for-build-hash\";\n/**\n* Drop the service worker's stale caches (precache + the NetworkFirst shell\n* cache) before reloading onto a new deploy, so the post-reload navigation\n* is answered from the network / fresh build instead of leftovers of the\n* build we are leaving. Best-effort: if the Caches API is unavailable or a\n* delete fails, the reload still picks up the new shell (the navigation\n* route is NetworkFirst).\n*/\nasync function clearStaleCaches() {\n\ttry {\n\t\tif (!(\"caches\" in window)) return;\n\t\tconst keys = await window.caches.keys();\n\t\tawait Promise.all(keys.filter((key) => key.includes(\"precache\") || key.includes(\"ph-shell\")).map((key) => window.caches.delete(key)));\n\t} catch (error) {\n\t\tlogger.warn(\"Failed to clear stale caches before update reload @error\", error);\n\t}\n}\n/**\n* Detects that the server is serving a different build than the one this\n* page was loaded from (a new deploy) and reloads onto it — once per session\n* per deployed hash. Checked on mount and whenever the tab returns to the\n* foreground, so a deploy that lands while the tab sits open is picked up on\n* the next focus without a manual reload. The in-tab \"new version available\"\n* service-worker prompt (ServiceWorkerUpdatePrompt) remains the opt-in path\n* for workers that are waiting but not yet controlling.\n*/\nconst useCheckLatestVersion = () => {\n\tuseEffect(() => {\n\t\tif (import.meta.env.MODE === \"development\" || connectConfig.studioMode || !connectConfig.warnOutdatedApp) return;\n\t\tconst checkBuildHash = async () => {\n\t\t\tconst status = await getBuildHashStatus();\n\t\t\tif (!status || status.isCurrent) return;\n\t\t\tif (window.sessionStorage.getItem(RELOADED_FOR_KEY) === status.deployedHash) return;\n\t\t\twindow.sessionStorage.setItem(RELOADED_FOR_KEY, status.deployedHash);\n\t\t\tlogger.info(\"New deploy detected — reloading from build @currentHash to @deployedHash\", status.currentHash, status.deployedHash);\n\t\t\tawait clearStaleCaches();\n\t\t\twindow.location.reload();\n\t\t};\n\t\tcheckBuildHash();\n\t\tconst onVisibilityChange = () => {\n\t\t\tif (document.visibilityState === \"visible\") checkBuildHash();\n\t\t};\n\t\tdocument.addEventListener(\"visibilitychange\", onVisibilityChange);\n\t\treturn () => {\n\t\t\tdocument.removeEventListener(\"visibilitychange\", onVisibilityChange);\n\t\t};\n\t}, []);\n};\nwindow.navigator.appVersion.includes(\"Mac\");\n/**\n* Same-origin build-identity probe. The build bakes a hash of the inputs that\n* determine the deployed content into the bundle (define\n* `PH_CONNECT_BUILD_HASH`, see builder-tools' connectBuildHashPlugin) and\n* emits `build-hash.json` next to the app (served no-cache). Comparing the\n* two tells us whether the server is serving a different build than the one\n* this page was loaded from — the reliable \"a new deploy went out\" signal.\n* Unlike the old GitHub-raw version check it works on localhost (it compares\n* against what the origin actually serves, not a remote branch head) and\n* needs no network beyond the app's own origin.\n*\n* Returns null when there is nothing to compare: dev/studio builds (no hash\n* baked), a server predating `build-hash.json`, an offline fetch, or a\n* malformed body.\n*/\nconst getBuildHashStatus = async () => {\n\tconst currentHash = getBuildHash();\n\tif (!currentHash || currentHash === \"unknown\") return null;\n\ttry {\n\t\tconst result = await fetch(`${import.meta.env.BASE_URL}build-hash.json`, { cache: \"no-cache\" });\n\t\tif (!result.ok) return null;\n\t\tconst data = await result.json();\n\t\tif (typeof data.hash !== \"string\" || !data.hash) return null;\n\t\treturn {\n\t\t\tcurrentHash,\n\t\t\tdeployedHash: data.hash,\n\t\t\tisCurrent: data.hash === currentHash\n\t\t};\n\t} catch {\n\t\treturn null;\n\t}\n};\n//#endregion\n//#region src/store/user.ts\nfunction useSetSentryUser() {\n\tconst user = useUser();\n\tuseEffect(() => {\n\t\tlet sentryUser = null;\n\t\tif (user) {\n\t\t\tconst { credential: _credential, ...rest } = user;\n\t\t\tsentryUser = {\n\t\t\t\tid: rest.did,\n\t\t\t\tusername: rest.ens?.name,\n\t\t\t\t...rest\n\t\t\t};\n\t\t}\n\t\tsetUser(sentryUser);\n\t}, [user]);\n}\n//#endregion\n//#region src/components/load.tsx\nasync function loadComponent(localPackage) {\n\tawait seedPendingPgVersion();\n\tawait Promise.all([detectReactorPgMajor(), detectMigrationMajor()]);\n\tconst runtimeConfig = await loadRuntimeConfig();\n\tapplyConnectBranding(runtimeConfig);\n\tawait createReactor(localPackage);\n\treturn { default: ({ children }) => {\n\t\tinitTheme();\n\t\tuseSetSentryUser();\n\t\tuseCheckLatestVersion();\n\t\treturn children;\n\t} };\n}\n//#endregion\nexport { loadComponent };\n\n//# sourceMappingURL=load-ftpCX1HI.js.map\n//# debugId=804744e8-a0d5-55a5-bf30-ddcfd29772eb\n"],"x_google_ignoreList":[0],"mappings":"6jBACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,EAAA,CAAE,EAahT,IAAM,EAAmB,6BASzB,eAAe,GAAmB,CACjC,GAAI,CACH,GAAI,EAAE,WAAY,QAAS,OAC3B,IAAM,EAAO,MAAM,OAAO,OAAO,KAAK,EACtC,MAAM,QAAQ,IAAI,EAAK,OAAQ,GAAQ,EAAI,SAAS,UAAU,GAAK,EAAI,SAAS,UAAU,CAAC,CAAC,CAAC,IAAK,GAAQ,OAAO,OAAO,OAAO,CAAG,CAAC,CAAC,CACrI,OAAS,EAAO,CACf,EAAO,KAAK,2DAA4D,CAAK,CAC9E,CACD,CAUA,IAAM,MAA8B,CACnC,MAAgB,CACf,GAA8C,EAAc,YAAc,CAAC,EAAc,gBAAiB,OAC1G,IAAM,EAAiB,SAAY,CAClC,IAAM,EAAS,MAAM,EAAmB,EACnC,GAAU,GAAO,WAClB,OAAO,eAAe,QAAQ,CAAgB,IAAM,EAAO,eAC/D,OAAO,eAAe,QAAQ,EAAkB,EAAO,YAAY,EACnE,EAAO,KAAK,2EAA4E,EAAO,YAAa,EAAO,YAAY,EAC/H,MAAM,EAAiB,EACvB,OAAO,SAAS,OAAO,EACxB,EACA,EAAe,EACf,IAAM,MAA2B,CAC5B,SAAS,kBAAoB,WAAW,EAAe,CAC5D,EAEA,OADA,SAAS,iBAAiB,mBAAoB,CAAkB,MACnD,CACZ,SAAS,oBAAoB,mBAAoB,CAAkB,CACpE,CACD,EAAG,CAAC,CAAC,CACN,EACA,OAAO,UAAU,WAAW,SAAS,KAAK,EAgB1C,IAAM,EAAqB,SAAY,CACtC,IAAM,EAAc,EAAa,EACjC,GAAI,CAAC,GAAe,IAAgB,UAAW,OAAO,KACtD,GAAI,CACH,IAAM,EAAS,MAAM,MAAM,mBAA8C,CAAE,MAAO,UAAW,CAAC,EAC9F,GAAI,CAAC,EAAO,GAAI,OAAO,KACvB,IAAM,EAAO,MAAM,EAAO,KAAK,EAE/B,OADI,OAAO,EAAK,MAAS,UAAY,CAAC,EAAK,KAAa,KACjD,CACN,cACA,aAAc,EAAK,KACnB,UAAW,EAAK,OAAS,CAC1B,CACD,MAAQ,CACP,OAAO,IACR,CACD,EAGA,SAAS,GAAmB,CAC3B,IAAM,EAAO,EAAQ,EACrB,MAAgB,CACf,IAAI,EAAa,KACjB,GAAI,EAAM,CACT,GAAM,CAAE,WAAY,EAAa,GAAG,GAAS,EAC7C,EAAa,CACZ,GAAI,EAAK,IACT,SAAU,EAAK,KAAK,KACpB,GAAG,CACJ,CACD,CACA,EAAQ,CAAU,CACnB,EAAG,CAAC,CAAI,CAAC,CACV,CAGA,eAAe,EAAc,EAAc,CAC1C,MAAM,EAAqB,EAC3B,MAAM,QAAQ,IAAI,CAAC,EAAqB,EAAG,EAAqB,CAAC,CAAC,EAClE,IAAM,EAAgB,MAAM,EAAkB,EAG9C,OAFA,EAAqB,CAAa,EAClC,MAAM,EAAc,CAAY,EACzB,CAAE,SAAU,CAAE,eACpB,EAAU,EACV,EAAiB,EACjB,EAAsB,EACf,EACN,CACH"}
@@ -1,3 +1,3 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-16wyYGXK.js","assets/rolldown-runtime-BcKkbAw3.js","assets/preload-helper-BZ1Pz5am.js","assets/chunk-BTBUZ646--Q_mGPOy.js","assets/chunk-WGR4JCLS-BXpTqGmk.js","assets/chunk-EADU5A67-BqqDB7-A.js","assets/dist-ndVYYR-C.js","assets/chunk-3WWIVTCY-1OR_t9Fm.js","assets/chunk-QY3QWFKW--Q_mGPOy.js","assets/dist-BUqafLq7.js","assets/chunk-VBDAOXYI-blTJx48l.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./preload-helper-BZ1Pz5am.js";import{d as t,r as n}from"./connection-state-Eqc2izmt-DTKlEPf8.js";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d59c69fe-5f4d-5aa8-accd-b4fbae2bd47a`)}catch{}})();var r=`ph:pending-pg-seed`;async function i(){let i=localStorage.getItem(r);if(!i)return;let a=parseInt(i,10);console.info(`[pglite-seed] Seeding fresh PG${a} data dir...`);try{if(a===16){let{PGlite:t}=await e(async()=>{let{PGlite:e}=await import(`./dist-16wyYGXK.js`);return{PGlite:e}},__vite__mapDeps([0,1,2,3,4,5])),r=new t(`idb://${n}`);try{await r.waitReady}finally{await r.close()}}else if(a===17){let{PGlite:t}=await e(async()=>{let{PGlite:e}=await import(`./dist-ndVYYR-C.js`);return{PGlite:e}},__vite__mapDeps([6,7,1,2,8,9,10])),r=new t(`idb://${n}`);try{await r.waitReady}finally{await r.close()}}else{console.warn(`[pglite-seed] Unsupported version ${i}, skipping`);return}console.info(`[pglite-seed] Seeded PG${a} data dir.`)}finally{localStorage.removeItem(r),t()}}export{i as n,r as t};
3
- //# sourceMappingURL=pglite-seed-Cl2d-iyl-BBapDDmK.js.map
2
+ import{t as e}from"./preload-helper-BZ1Pz5am.js";import{d as t,r as n}from"./connection-state-Eqc2izmt-DYeEdoBH.js";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d59c69fe-5f4d-5aa8-accd-b4fbae2bd47a`)}catch{}})();var r=`ph:pending-pg-seed`;async function i(){let i=localStorage.getItem(r);if(!i)return;let a=parseInt(i,10);console.info(`[pglite-seed] Seeding fresh PG${a} data dir...`);try{if(a===16){let{PGlite:t}=await e(async()=>{let{PGlite:e}=await import(`./dist-16wyYGXK.js`);return{PGlite:e}},__vite__mapDeps([0,1,2,3,4,5])),r=new t(`idb://${n}`);try{await r.waitReady}finally{await r.close()}}else if(a===17){let{PGlite:t}=await e(async()=>{let{PGlite:e}=await import(`./dist-ndVYYR-C.js`);return{PGlite:e}},__vite__mapDeps([6,7,1,2,8,9,10])),r=new t(`idb://${n}`);try{await r.waitReady}finally{await r.close()}}else{console.warn(`[pglite-seed] Unsupported version ${i}, skipping`);return}console.info(`[pglite-seed] Seeded PG${a} data dir.`)}finally{localStorage.removeItem(r),t()}}export{i as n,r as t};
3
+ //# sourceMappingURL=pglite-seed-Cl2d-iyl-Abmu_EqV.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":";qHACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,GAAE,EAGhT,IAAM,EAAsB,qBAQ5B,eAAe,GAAuB,CACrC,IAAM,EAAM,aAAa,QAAQ,CAAmB,EACpD,GAAI,CAAC,EAAK,OACV,IAAM,EAAQ,SAAS,EAAK,EAAE,EAC9B,QAAQ,KAAK,iCAAiC,EAAM,aAAa,EACjE,GAAI,CACH,GAAI,IAAU,GAAI,CACjB,GAAM,CAAE,4BAAF,IAAE,UAAW,MAAM,OAAO,wEAC1B,EAAK,IAAI,EAAO,SAAS,GAAqB,EACpD,GAAI,CACH,MAAM,EAAG,SACV,QAAU,CACT,MAAM,EAAG,MAAM,CAChB,CACD,MAAO,GAAI,IAAU,GAAI,CACxB,GAAM,CAAE,4BAAF,IAAE,UAAW,MAAM,OAAO,2EAC1B,EAAK,IAAI,EAAO,SAAS,GAAqB,EACpD,GAAI,CACH,MAAM,EAAG,SACV,QAAU,CACT,MAAM,EAAG,MAAM,CAChB,CACD,KAAO,CACN,QAAQ,KAAK,qCAAqC,EAAI,WAAW,EACjE,MACD,CACA,QAAQ,KAAK,0BAA0B,EAAM,WAAW,CACzD,QAAU,CACT,aAAa,WAAW,CAAmB,EAC3C,EAA8B,CAC/B,CACD","names":[],"ignoreList":[0],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/pglite-seed-Cl2d-iyl.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"d59c69fe-5f4d-5aa8-accd-b4fbae2bd47a\")}catch(e){}}();\nimport { l as invalidateReactorPgMajorCache, m as REACTOR_PGLITE_NAME } from \"./connection-state-Eqc2izmt.js\";\n//#region src/utils/pglite-seed.ts\nconst PENDING_PG_SEED_KEY = \"ph:pending-pg-seed\";\n/**\n* If the Debug Inspector requested a forced PG version reset, this runs\n* before the reactor is created on the subsequent page load: opens a fresh\n* PGlite of the requested major against the reactor data dir, lets `initdb`\n* populate `PG_VERSION`, then closes. The next step of app boot then\n* detects this fresh data dir and picks the matching runtime.\n*/\nasync function seedPendingPgVersion() {\n\tconst raw = localStorage.getItem(PENDING_PG_SEED_KEY);\n\tif (!raw) return;\n\tconst major = parseInt(raw, 10);\n\tconsole.info(`[pglite-seed] Seeding fresh PG${major} data dir...`);\n\ttry {\n\t\tif (major === 16) {\n\t\t\tconst { PGlite } = await import(\"pglite-legacy-02\");\n\t\t\tconst pg = new PGlite(`idb://${REACTOR_PGLITE_NAME}`);\n\t\t\ttry {\n\t\t\t\tawait pg.waitReady;\n\t\t\t} finally {\n\t\t\t\tawait pg.close();\n\t\t\t}\n\t\t} else if (major === 17) {\n\t\t\tconst { PGlite } = await import(\"@electric-sql/pglite\");\n\t\t\tconst pg = new PGlite(`idb://${REACTOR_PGLITE_NAME}`);\n\t\t\ttry {\n\t\t\t\tawait pg.waitReady;\n\t\t\t} finally {\n\t\t\t\tawait pg.close();\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.warn(`[pglite-seed] Unsupported version ${raw}, skipping`);\n\t\t\treturn;\n\t\t}\n\t\tconsole.info(`[pglite-seed] Seeded PG${major} data dir.`);\n\t} finally {\n\t\tlocalStorage.removeItem(PENDING_PG_SEED_KEY);\n\t\tinvalidateReactorPgMajorCache();\n\t}\n}\n//#endregion\nexport { seedPendingPgVersion as n, PENDING_PG_SEED_KEY as t };\n\n//# sourceMappingURL=pglite-seed-Cl2d-iyl.js.map\n//# debugId=d59c69fe-5f4d-5aa8-accd-b4fbae2bd47a\n"],"file":"pglite-seed-Cl2d-iyl-BBapDDmK.js"}
1
+ {"version":3,"mappings":";qHACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,GAAE,EAGhT,IAAM,EAAsB,qBAQ5B,eAAe,GAAuB,CACrC,IAAM,EAAM,aAAa,QAAQ,CAAmB,EACpD,GAAI,CAAC,EAAK,OACV,IAAM,EAAQ,SAAS,EAAK,EAAE,EAC9B,QAAQ,KAAK,iCAAiC,EAAM,aAAa,EACjE,GAAI,CACH,GAAI,IAAU,GAAI,CACjB,GAAM,CAAE,4BAAF,IAAE,UAAW,MAAM,OAAO,wEAC1B,EAAK,IAAI,EAAO,SAAS,GAAqB,EACpD,GAAI,CACH,MAAM,EAAG,SACV,QAAU,CACT,MAAM,EAAG,MAAM,CAChB,CACD,MAAO,GAAI,IAAU,GAAI,CACxB,GAAM,CAAE,4BAAF,IAAE,UAAW,MAAM,OAAO,2EAC1B,EAAK,IAAI,EAAO,SAAS,GAAqB,EACpD,GAAI,CACH,MAAM,EAAG,SACV,QAAU,CACT,MAAM,EAAG,MAAM,CAChB,CACD,KAAO,CACN,QAAQ,KAAK,qCAAqC,EAAI,WAAW,EACjE,MACD,CACA,QAAQ,KAAK,0BAA0B,EAAM,WAAW,CACzD,QAAU,CACT,aAAa,WAAW,CAAmB,EAC3C,EAA8B,CAC/B,CACD","names":[],"ignoreList":[0],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/pglite-seed-Cl2d-iyl.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"d59c69fe-5f4d-5aa8-accd-b4fbae2bd47a\")}catch(e){}}();\nimport { l as invalidateReactorPgMajorCache, m as REACTOR_PGLITE_NAME } from \"./connection-state-Eqc2izmt.js\";\n//#region src/utils/pglite-seed.ts\nconst PENDING_PG_SEED_KEY = \"ph:pending-pg-seed\";\n/**\n* If the Debug Inspector requested a forced PG version reset, this runs\n* before the reactor is created on the subsequent page load: opens a fresh\n* PGlite of the requested major against the reactor data dir, lets `initdb`\n* populate `PG_VERSION`, then closes. The next step of app boot then\n* detects this fresh data dir and picks the matching runtime.\n*/\nasync function seedPendingPgVersion() {\n\tconst raw = localStorage.getItem(PENDING_PG_SEED_KEY);\n\tif (!raw) return;\n\tconst major = parseInt(raw, 10);\n\tconsole.info(`[pglite-seed] Seeding fresh PG${major} data dir...`);\n\ttry {\n\t\tif (major === 16) {\n\t\t\tconst { PGlite } = await import(\"pglite-legacy-02\");\n\t\t\tconst pg = new PGlite(`idb://${REACTOR_PGLITE_NAME}`);\n\t\t\ttry {\n\t\t\t\tawait pg.waitReady;\n\t\t\t} finally {\n\t\t\t\tawait pg.close();\n\t\t\t}\n\t\t} else if (major === 17) {\n\t\t\tconst { PGlite } = await import(\"@electric-sql/pglite\");\n\t\t\tconst pg = new PGlite(`idb://${REACTOR_PGLITE_NAME}`);\n\t\t\ttry {\n\t\t\t\tawait pg.waitReady;\n\t\t\t} finally {\n\t\t\t\tawait pg.close();\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.warn(`[pglite-seed] Unsupported version ${raw}, skipping`);\n\t\t\treturn;\n\t\t}\n\t\tconsole.info(`[pglite-seed] Seeded PG${major} data dir.`);\n\t} finally {\n\t\tlocalStorage.removeItem(PENDING_PG_SEED_KEY);\n\t\tinvalidateReactorPgMajorCache();\n\t}\n}\n//#endregion\nexport { seedPendingPgVersion as n, PENDING_PG_SEED_KEY as t };\n\n//# sourceMappingURL=pglite-seed-Cl2d-iyl.js.map\n//# debugId=d59c69fe-5f4d-5aa8-accd-b4fbae2bd47a\n"],"file":"pglite-seed-Cl2d-iyl-Abmu_EqV.js"}
@@ -1,2 +1,2 @@
1
- import{r as e}from"./connect.config-CaXMoB42-VqdFwuy8.js";import{t}from"./useIsEmbedded-BWJ0qb7w-HnNoATlV.js";import{useSyncExternalStore as n}from"react";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ee33d4d1-ef09-5b2c-8c8a-cf207add5ce2`)}catch{}})();var r=e.routerBasename,i=`${r}:acceptedCookies`,a={analytics:!1,marketing:!1,functional:!1},o=new Set,s=c();function c(){try{let e=localStorage.getItem(i);return e?JSON.parse(e):a}catch{return a}}function l(e){return o.add(e),()=>{o.delete(e)}}function u(){return s}function d(e){s=e(s),localStorage.setItem(i,JSON.stringify(s)),o.forEach(e=>e())}var f=()=>[n(l,u,u),d],p=`${r}:display-cookie-banner`,m=new Set,h=g();function g(){if(t())return!1;try{return localStorage.getItem(p)!==`false`}catch(e){return console.error(e),!0}}function _(e){return m.add(e),()=>{m.delete(e)}}function v(){return h}function y(e){h=e,localStorage.setItem(p,JSON.stringify(e)),m.forEach(e=>e())}var b=()=>[n(_,v,v),y];export{f as n,b as r,y as t};
2
- //# sourceMappingURL=preferences-store-DZUIAkHE-BymxR2vb.js.map
1
+ import{r as e}from"./connect.config-CaXMoB42-DPDK2YJi.js";import{t}from"./useIsEmbedded-BWJ0qb7w-HnNoATlV.js";import{useSyncExternalStore as n}from"react";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ee33d4d1-ef09-5b2c-8c8a-cf207add5ce2`)}catch{}})();var r=e.routerBasename,i=`${r}:acceptedCookies`,a={analytics:!1,marketing:!1,functional:!1},o=new Set,s=c();function c(){try{let e=localStorage.getItem(i);return e?JSON.parse(e):a}catch{return a}}function l(e){return o.add(e),()=>{o.delete(e)}}function u(){return s}function d(e){s=e(s),localStorage.setItem(i,JSON.stringify(s)),o.forEach(e=>e())}var f=()=>[n(l,u,u),d],p=`${r}:display-cookie-banner`,m=new Set,h=g();function g(){if(t())return!1;try{return localStorage.getItem(p)!==`false`}catch(e){return console.error(e),!0}}function _(e){return m.add(e),()=>{m.delete(e)}}function v(){return h}function y(e){h=e,localStorage.setItem(p,JSON.stringify(e)),m.forEach(e=>e())}var b=()=>[n(_,v,v),y];export{f as n,b as r,y as t};
2
+ //# sourceMappingURL=preferences-store-DZUIAkHE-BwJzNFRa.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"preferences-store-DZUIAkHE-BymxR2vb.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/preferences-store-DZUIAkHE.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"ee33d4d1-ef09-5b2c-8c8a-cf207add5ce2\")}catch(e){}}();\nimport { t as getIsEmbedded } from \"./useIsEmbedded-BWJ0qb7w.js\";\nimport { r as connectConfig } from \"./connect.config-CaXMoB42.js\";\nimport { useSyncExternalStore } from \"react\";\n//#region src/hooks/preferences-store.ts\nconst namespace = connectConfig.routerBasename;\n/**\n* Block-proof home for Connect's consent and banner state.\n*\n* The file name deliberately avoids words that appear in ad-blocker\n* filter lists (cookie, banner, consent, analytics, ...). Modules in the\n* app's critical import chain import from here, never from files whose\n* URLs match those filters. If an ad blocker blocks the lazy-loaded\n* cookie-banner chunk instead, the app simply never shows the banner —\n* which leaves the flags at their rejected defaults (analytics off) —\n* and everything else keeps working.\n*/\nconst ACCEPTED_COOKIES_KEY_STORAGE = `${namespace}:acceptedCookies`;\nconst REJECTED_COOKIES = {\n\tanalytics: false,\n\tmarketing: false,\n\tfunctional: false\n};\nconst cookieListeners = /* @__PURE__ */ new Set();\nlet acceptedCookies = getInitialAcceptedCookies();\nfunction getInitialAcceptedCookies() {\n\ttry {\n\t\tconst value = localStorage.getItem(ACCEPTED_COOKIES_KEY_STORAGE);\n\t\treturn value ? JSON.parse(value) : REJECTED_COOKIES;\n\t} catch {\n\t\treturn REJECTED_COOKIES;\n\t}\n}\nfunction subscribeAcceptedCookies(fn) {\n\tcookieListeners.add(fn);\n\treturn () => {\n\t\tcookieListeners.delete(fn);\n\t};\n}\nfunction getAcceptedCookies() {\n\treturn acceptedCookies;\n}\nfunction setAcceptedCookies(setter) {\n\tacceptedCookies = setter(acceptedCookies);\n\tlocalStorage.setItem(ACCEPTED_COOKIES_KEY_STORAGE, JSON.stringify(acceptedCookies));\n\tcookieListeners.forEach((fn) => fn());\n}\nconst useAcceptedCookies = () => {\n\treturn [useSyncExternalStore(subscribeAcceptedCookies, getAcceptedCookies, getAcceptedCookies), setAcceptedCookies];\n};\nconst COOKIE_BANNER_KEY_STORAGE = `${namespace}:display-cookie-banner`;\nconst bannerListeners = /* @__PURE__ */ new Set();\nlet bannerShown = getInitialBannerShown();\nfunction getInitialBannerShown() {\n\tif (getIsEmbedded()) return false;\n\ttry {\n\t\treturn localStorage.getItem(COOKIE_BANNER_KEY_STORAGE) !== \"false\";\n\t} catch (error) {\n\t\tconsole.error(error);\n\t\treturn true;\n\t}\n}\nfunction subscribeBannerShown(fn) {\n\tbannerListeners.add(fn);\n\treturn () => {\n\t\tbannerListeners.delete(fn);\n\t};\n}\nfunction getBannerShown() {\n\treturn bannerShown;\n}\nfunction setBannerShown(state) {\n\tbannerShown = state;\n\tlocalStorage.setItem(COOKIE_BANNER_KEY_STORAGE, JSON.stringify(state));\n\tbannerListeners.forEach((fn) => fn());\n}\nconst useCookieBanner = () => {\n\treturn [useSyncExternalStore(subscribeBannerShown, getBannerShown, getBannerShown), setBannerShown];\n};\n//#endregion\nexport { useAcceptedCookies as n, useCookieBanner as r, setBannerShown as t };\n\n//# sourceMappingURL=preferences-store-DZUIAkHE.js.map\n//# debugId=ee33d4d1-ef09-5b2c-8c8a-cf207add5ce2\n"],"x_google_ignoreList":[0],"mappings":"4JACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,EAAA,CAAE,EAKhT,IAAM,EAAY,EAAc,eAY1B,EAA+B,GAAG,EAAU,kBAC5C,EAAmB,CACxB,UAAW,GACX,UAAW,GACX,WAAY,EACb,EACM,EAAkC,IAAI,IACxC,EAAkB,EAA0B,EAChD,SAAS,GAA4B,CACpC,GAAI,CACH,IAAM,EAAQ,aAAa,QAAQ,CAA4B,EAC/D,OAAO,EAAQ,KAAK,MAAM,CAAK,EAAI,CACpC,MAAQ,CACP,OAAO,CACR,CACD,CACA,SAAS,EAAyB,EAAI,CAErC,OADA,EAAgB,IAAI,CAAE,MACT,CACZ,EAAgB,OAAO,CAAE,CAC1B,CACD,CACA,SAAS,GAAqB,CAC7B,OAAO,CACR,CACA,SAAS,EAAmB,EAAQ,CACnC,EAAkB,EAAO,CAAe,EACxC,aAAa,QAAQ,EAA8B,KAAK,UAAU,CAAe,CAAC,EAClF,EAAgB,QAAS,GAAO,EAAG,CAAC,CACrC,CACA,IAAM,MACE,CAAC,EAAqB,EAA0B,EAAoB,CAAkB,EAAG,CAAkB,EAE7G,EAA4B,GAAG,EAAU,wBACzC,EAAkC,IAAI,IACxC,EAAc,EAAsB,EACxC,SAAS,GAAwB,CAChC,GAAI,EAAc,EAAG,MAAO,GAC5B,GAAI,CACH,OAAO,aAAa,QAAQ,CAAyB,IAAM,OAC5D,OAAS,EAAO,CAEf,OADA,QAAQ,MAAM,CAAK,EACZ,EACR,CACD,CACA,SAAS,EAAqB,EAAI,CAEjC,OADA,EAAgB,IAAI,CAAE,MACT,CACZ,EAAgB,OAAO,CAAE,CAC1B,CACD,CACA,SAAS,GAAiB,CACzB,OAAO,CACR,CACA,SAAS,EAAe,EAAO,CAC9B,EAAc,EACd,aAAa,QAAQ,EAA2B,KAAK,UAAU,CAAK,CAAC,EACrE,EAAgB,QAAS,GAAO,EAAG,CAAC,CACrC,CACA,IAAM,MACE,CAAC,EAAqB,EAAsB,EAAgB,CAAc,EAAG,CAAc"}
1
+ {"version":3,"file":"preferences-store-DZUIAkHE-BwJzNFRa.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.3_031a39ff375233beffe5df359486f16d/node_modules/@powerhousedao/connect/dist/preferences-store-DZUIAkHE.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"ee33d4d1-ef09-5b2c-8c8a-cf207add5ce2\")}catch(e){}}();\nimport { t as getIsEmbedded } from \"./useIsEmbedded-BWJ0qb7w.js\";\nimport { r as connectConfig } from \"./connect.config-CaXMoB42.js\";\nimport { useSyncExternalStore } from \"react\";\n//#region src/hooks/preferences-store.ts\nconst namespace = connectConfig.routerBasename;\n/**\n* Block-proof home for Connect's consent and banner state.\n*\n* The file name deliberately avoids words that appear in ad-blocker\n* filter lists (cookie, banner, consent, analytics, ...). Modules in the\n* app's critical import chain import from here, never from files whose\n* URLs match those filters. If an ad blocker blocks the lazy-loaded\n* cookie-banner chunk instead, the app simply never shows the banner —\n* which leaves the flags at their rejected defaults (analytics off) —\n* and everything else keeps working.\n*/\nconst ACCEPTED_COOKIES_KEY_STORAGE = `${namespace}:acceptedCookies`;\nconst REJECTED_COOKIES = {\n\tanalytics: false,\n\tmarketing: false,\n\tfunctional: false\n};\nconst cookieListeners = /* @__PURE__ */ new Set();\nlet acceptedCookies = getInitialAcceptedCookies();\nfunction getInitialAcceptedCookies() {\n\ttry {\n\t\tconst value = localStorage.getItem(ACCEPTED_COOKIES_KEY_STORAGE);\n\t\treturn value ? JSON.parse(value) : REJECTED_COOKIES;\n\t} catch {\n\t\treturn REJECTED_COOKIES;\n\t}\n}\nfunction subscribeAcceptedCookies(fn) {\n\tcookieListeners.add(fn);\n\treturn () => {\n\t\tcookieListeners.delete(fn);\n\t};\n}\nfunction getAcceptedCookies() {\n\treturn acceptedCookies;\n}\nfunction setAcceptedCookies(setter) {\n\tacceptedCookies = setter(acceptedCookies);\n\tlocalStorage.setItem(ACCEPTED_COOKIES_KEY_STORAGE, JSON.stringify(acceptedCookies));\n\tcookieListeners.forEach((fn) => fn());\n}\nconst useAcceptedCookies = () => {\n\treturn [useSyncExternalStore(subscribeAcceptedCookies, getAcceptedCookies, getAcceptedCookies), setAcceptedCookies];\n};\nconst COOKIE_BANNER_KEY_STORAGE = `${namespace}:display-cookie-banner`;\nconst bannerListeners = /* @__PURE__ */ new Set();\nlet bannerShown = getInitialBannerShown();\nfunction getInitialBannerShown() {\n\tif (getIsEmbedded()) return false;\n\ttry {\n\t\treturn localStorage.getItem(COOKIE_BANNER_KEY_STORAGE) !== \"false\";\n\t} catch (error) {\n\t\tconsole.error(error);\n\t\treturn true;\n\t}\n}\nfunction subscribeBannerShown(fn) {\n\tbannerListeners.add(fn);\n\treturn () => {\n\t\tbannerListeners.delete(fn);\n\t};\n}\nfunction getBannerShown() {\n\treturn bannerShown;\n}\nfunction setBannerShown(state) {\n\tbannerShown = state;\n\tlocalStorage.setItem(COOKIE_BANNER_KEY_STORAGE, JSON.stringify(state));\n\tbannerListeners.forEach((fn) => fn());\n}\nconst useCookieBanner = () => {\n\treturn [useSyncExternalStore(subscribeBannerShown, getBannerShown, getBannerShown), setBannerShown];\n};\n//#endregion\nexport { useAcceptedCookies as n, useCookieBanner as r, setBannerShown as t };\n\n//# sourceMappingURL=preferences-store-DZUIAkHE.js.map\n//# debugId=ee33d4d1-ef09-5b2c-8c8a-cf207add5ce2\n"],"x_google_ignoreList":[0],"mappings":"4JACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,CAAC,EAAE,EAAG,IAAI,EAAE,MAAI,CAAC,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,GAAG,uCAAuC,MAAS,CAAC,CAAC,EAAA,CAAE,EAKhT,IAAM,EAAY,EAAc,eAY1B,EAA+B,GAAG,EAAU,kBAC5C,EAAmB,CACxB,UAAW,GACX,UAAW,GACX,WAAY,EACb,EACM,EAAkC,IAAI,IACxC,EAAkB,EAA0B,EAChD,SAAS,GAA4B,CACpC,GAAI,CACH,IAAM,EAAQ,aAAa,QAAQ,CAA4B,EAC/D,OAAO,EAAQ,KAAK,MAAM,CAAK,EAAI,CACpC,MAAQ,CACP,OAAO,CACR,CACD,CACA,SAAS,EAAyB,EAAI,CAErC,OADA,EAAgB,IAAI,CAAE,MACT,CACZ,EAAgB,OAAO,CAAE,CAC1B,CACD,CACA,SAAS,GAAqB,CAC7B,OAAO,CACR,CACA,SAAS,EAAmB,EAAQ,CACnC,EAAkB,EAAO,CAAe,EACxC,aAAa,QAAQ,EAA8B,KAAK,UAAU,CAAe,CAAC,EAClF,EAAgB,QAAS,GAAO,EAAG,CAAC,CACrC,CACA,IAAM,MACE,CAAC,EAAqB,EAA0B,EAAoB,CAAkB,EAAG,CAAkB,EAE7G,EAA4B,GAAG,EAAU,wBACzC,EAAkC,IAAI,IACxC,EAAc,EAAsB,EACxC,SAAS,GAAwB,CAChC,GAAI,EAAc,EAAG,MAAO,GAC5B,GAAI,CACH,OAAO,aAAa,QAAQ,CAAyB,IAAM,OAC5D,OAAS,EAAO,CAEf,OADA,QAAQ,MAAM,CAAK,EACZ,EACR,CACD,CACA,SAAS,EAAqB,EAAI,CAEjC,OADA,EAAgB,IAAI,CAAE,MACT,CACZ,EAAgB,OAAO,CAAE,CAC1B,CACD,CACA,SAAS,GAAiB,CACzB,OAAO,CACR,CACA,SAAS,EAAe,EAAO,CAC9B,EAAc,EACd,aAAa,QAAQ,EAA2B,KAAK,UAAU,CAAK,CAAC,EACrE,EAAgB,QAAS,GAAO,EAAG,CAAC,CACrC,CACA,IAAM,MACE,CAAC,EAAqB,EAAsB,EAAgB,CAAc,EAAG,CAAc"}