@bloxbean/yaci-viewer 0.10.0-preview4
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.
- package/README.md +69 -0
- package/build/client/_app/immutable/assets/0.KBfFyqh2.css +1 -0
- package/build/client/_app/immutable/assets/0.KBfFyqh2.css.br +0 -0
- package/build/client/_app/immutable/assets/0.KBfFyqh2.css.gz +0 -0
- package/build/client/_app/immutable/assets/_layout.B3tYZf95.css +1 -0
- package/build/client/_app/immutable/assets/_layout.B3tYZf95.css.br +0 -0
- package/build/client/_app/immutable/assets/_layout.B3tYZf95.css.gz +0 -0
- package/build/client/_app/immutable/chunks/DRepDetails.BflGaRUd.js +1 -0
- package/build/client/_app/immutable/chunks/DRepDetails.BflGaRUd.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRepDetails.BflGaRUd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/JsonContent.ClmH9GuZ.js +1 -0
- package/build/client/_app/immutable/chunks/JsonContent.ClmH9GuZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/JsonContent.ClmH9GuZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XIcon.j6LjJLAc.js +1 -0
- package/build/client/_app/immutable/chunks/XIcon.j6LjJLAc.js.br +0 -0
- package/build/client/_app/immutable/chunks/XIcon.j6LjJLAc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ada_util.zWFYliEg.js +1 -0
- package/build/client/_app/immutable/chunks/ada_util.zWFYliEg.js.br +0 -0
- package/build/client/_app/immutable/chunks/ada_util.zWFYliEg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/attributes.CqauuZ_8.js +1 -0
- package/build/client/_app/immutable/chunks/attributes.CqauuZ_8.js.br +0 -0
- package/build/client/_app/immutable/chunks/attributes.CqauuZ_8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/class.DCW6ehBg.js +1 -0
- package/build/client/_app/immutable/chunks/class.DCW6ehBg.js.br +1 -0
- package/build/client/_app/immutable/chunks/class.DCW6ehBg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/disclose-version.BTC8Bk4r.js +1 -0
- package/build/client/_app/immutable/chunks/disclose-version.BTC8Bk4r.js.br +0 -0
- package/build/client/_app/immutable/chunks/disclose-version.BTC8Bk4r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/each.e-7RQQYD.js +1 -0
- package/build/client/_app/immutable/chunks/each.e-7RQQYD.js.br +0 -0
- package/build/client/_app/immutable/chunks/each.e-7RQQYD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/entry.BavFBsHx.js +3 -0
- package/build/client/_app/immutable/chunks/entry.BavFBsHx.js.br +0 -0
- package/build/client/_app/immutable/chunks/entry.BavFBsHx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/event-modifiers.nqz-IwUY.js +1 -0
- package/build/client/_app/immutable/chunks/event-modifiers.nqz-IwUY.js.br +0 -0
- package/build/client/_app/immutable/chunks/event-modifiers.nqz-IwUY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/if.DkuB8BPo.js +1 -0
- package/build/client/_app/immutable/chunks/if.DkuB8BPo.js.br +2 -0
- package/build/client/_app/immutable/chunks/if.DkuB8BPo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index-client.TDQqURXd.js +1 -0
- package/build/client/_app/immutable/chunks/index-client.TDQqURXd.js.br +0 -0
- package/build/client/_app/immutable/chunks/index-client.TDQqURXd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index.DQ_X5mOz.js +1 -0
- package/build/client/_app/immutable/chunks/index.DQ_X5mOz.js.br +0 -0
- package/build/client/_app/immutable/chunks/index.DQ_X5mOz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/legacy.DKpsC3nd.js +1 -0
- package/build/client/_app/immutable/chunks/legacy.DKpsC3nd.js.br +2 -0
- package/build/client/_app/immutable/chunks/legacy.DKpsC3nd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/lifecycle.BF-zkLgr.js +1 -0
- package/build/client/_app/immutable/chunks/lifecycle.BF-zkLgr.js.br +0 -0
- package/build/client/_app/immutable/chunks/lifecycle.BF-zkLgr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/moment.C5S46NFB.js +10 -0
- package/build/client/_app/immutable/chunks/moment.C5S46NFB.js.br +0 -0
- package/build/client/_app/immutable/chunks/moment.C5S46NFB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/preload-helper.C1FmrZbK.js +1 -0
- package/build/client/_app/immutable/chunks/preload-helper.C1FmrZbK.js.br +0 -0
- package/build/client/_app/immutable/chunks/preload-helper.C1FmrZbK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/props.Btle0pBM.js +1 -0
- package/build/client/_app/immutable/chunks/props.Btle0pBM.js.br +0 -0
- package/build/client/_app/immutable/chunks/props.Btle0pBM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/render.Dr_6zaa7.js +1 -0
- package/build/client/_app/immutable/chunks/render.Dr_6zaa7.js.br +0 -0
- package/build/client/_app/immutable/chunks/render.Dr_6zaa7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/runtime.NVyxXVLy.js +1 -0
- package/build/client/_app/immutable/chunks/runtime.NVyxXVLy.js.br +0 -0
- package/build/client/_app/immutable/chunks/runtime.NVyxXVLy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/store.D42UBjno.js +1 -0
- package/build/client/_app/immutable/chunks/store.D42UBjno.js.br +0 -0
- package/build/client/_app/immutable/chunks/store.D42UBjno.js.gz +0 -0
- package/build/client/_app/immutable/chunks/store.EL_7F1Fq.js +1 -0
- package/build/client/_app/immutable/chunks/store.EL_7F1Fq.js.br +0 -0
- package/build/client/_app/immutable/chunks/store.EL_7F1Fq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/stores.BERIfr1Y.js +1 -0
- package/build/client/_app/immutable/chunks/stores.BERIfr1Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/stores.BERIfr1Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/util.8sVtkjoC.js +1 -0
- package/build/client/_app/immutable/chunks/util.8sVtkjoC.js.br +1 -0
- package/build/client/_app/immutable/chunks/util.8sVtkjoC.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DtSnFNKb.js +2 -0
- package/build/client/_app/immutable/entry/app.DtSnFNKb.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DtSnFNKb.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.1WCmVn3u.js +1 -0
- package/build/client/_app/immutable/entry/start.1WCmVn3u.js.br +2 -0
- package/build/client/_app/immutable/entry/start.1WCmVn3u.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.D5ND1BH2.js +1 -0
- package/build/client/_app/immutable/nodes/0.D5ND1BH2.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.D5ND1BH2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.tfHa1aYD.js +1 -0
- package/build/client/_app/immutable/nodes/1.tfHa1aYD.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.tfHa1aYD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.D0ZOSrx3.js +1 -0
- package/build/client/_app/immutable/nodes/10.D0ZOSrx3.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.D0ZOSrx3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BMh4QutD.js +1 -0
- package/build/client/_app/immutable/nodes/11.BMh4QutD.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BMh4QutD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.Bvj3X21_.js +1 -0
- package/build/client/_app/immutable/nodes/12.Bvj3X21_.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.Bvj3X21_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.UnkfQXEF.js +1 -0
- package/build/client/_app/immutable/nodes/13.UnkfQXEF.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.UnkfQXEF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.C73mEAEY.js +1 -0
- package/build/client/_app/immutable/nodes/14.C73mEAEY.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.C73mEAEY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.BFTPDoLz.js +1 -0
- package/build/client/_app/immutable/nodes/15.BFTPDoLz.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.BFTPDoLz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.D0ZOSrx3.js +1 -0
- package/build/client/_app/immutable/nodes/16.D0ZOSrx3.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.D0ZOSrx3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CgGiEgru.js +1 -0
- package/build/client/_app/immutable/nodes/17.CgGiEgru.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CgGiEgru.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.8Ryenz77.js +1 -0
- package/build/client/_app/immutable/nodes/18.8Ryenz77.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.8Ryenz77.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.3rSPoBKE.js +2 -0
- package/build/client/_app/immutable/nodes/2.3rSPoBKE.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.3rSPoBKE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BCFWWA4A.js +1 -0
- package/build/client/_app/immutable/nodes/3.BCFWWA4A.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BCFWWA4A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.COODWaiN.js +1 -0
- package/build/client/_app/immutable/nodes/4.COODWaiN.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.COODWaiN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.Dp2MMBtX.js +1 -0
- package/build/client/_app/immutable/nodes/5.Dp2MMBtX.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.Dp2MMBtX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CIN0pV_t.js +1 -0
- package/build/client/_app/immutable/nodes/6.CIN0pV_t.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CIN0pV_t.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.B-tU6_qA.js +1 -0
- package/build/client/_app/immutable/nodes/7.B-tU6_qA.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.B-tU6_qA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.C-WJxpqr.js +1 -0
- package/build/client/_app/immutable/nodes/8.C-WJxpqr.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.C-WJxpqr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DZ3wzZoV.js +1 -0
- package/build/client/_app/immutable/nodes/9.DZ3wzZoV.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DZ3wzZoV.js.gz +0 -0
- package/build/client/_app/version.json +1 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/favicon.png +0 -0
- package/build/env.js +45 -0
- package/build/handler.js +1375 -0
- package/build/index.js +334 -0
- package/build/server/chunks/0-BhAqfn71.js +9 -0
- package/build/server/chunks/0-BhAqfn71.js.map +1 -0
- package/build/server/chunks/1-W7CTdavr.js +9 -0
- package/build/server/chunks/1-W7CTdavr.js.map +1 -0
- package/build/server/chunks/10-BEXZQ-Ow.js +43 -0
- package/build/server/chunks/10-BEXZQ-Ow.js.map +1 -0
- package/build/server/chunks/11-M1qe58Wy.js +43 -0
- package/build/server/chunks/11-M1qe58Wy.js.map +1 -0
- package/build/server/chunks/12-Bp40FnxJ.js +43 -0
- package/build/server/chunks/12-Bp40FnxJ.js.map +1 -0
- package/build/server/chunks/13-DuFdQo9j.js +43 -0
- package/build/server/chunks/13-DuFdQo9j.js.map +1 -0
- package/build/server/chunks/14-BE9aRZSL.js +43 -0
- package/build/server/chunks/14-BE9aRZSL.js.map +1 -0
- package/build/server/chunks/15-BVH_afIM.js +43 -0
- package/build/server/chunks/15-BVH_afIM.js.map +1 -0
- package/build/server/chunks/16-6_R0ueEC.js +43 -0
- package/build/server/chunks/16-6_R0ueEC.js.map +1 -0
- package/build/server/chunks/17-CvYN4BAX.js +43 -0
- package/build/server/chunks/17-CvYN4BAX.js.map +1 -0
- package/build/server/chunks/18-1Q-gWmnz.js +44 -0
- package/build/server/chunks/18-1Q-gWmnz.js.map +1 -0
- package/build/server/chunks/2-ChsuR4FZ.js +9 -0
- package/build/server/chunks/2-ChsuR4FZ.js.map +1 -0
- package/build/server/chunks/3-C7C1HLzz.js +43 -0
- package/build/server/chunks/3-C7C1HLzz.js.map +1 -0
- package/build/server/chunks/4-BGZIFO5E.js +38 -0
- package/build/server/chunks/4-BGZIFO5E.js.map +1 -0
- package/build/server/chunks/5-miRiF-My.js +43 -0
- package/build/server/chunks/5-miRiF-My.js.map +1 -0
- package/build/server/chunks/6-BeAhV9qo.js +43 -0
- package/build/server/chunks/6-BeAhV9qo.js.map +1 -0
- package/build/server/chunks/7-KStlWytD.js +43 -0
- package/build/server/chunks/7-KStlWytD.js.map +1 -0
- package/build/server/chunks/8-BElIvgIl.js +43 -0
- package/build/server/chunks/8-BElIvgIl.js.map +1 -0
- package/build/server/chunks/9-BLhcDSPx.js +43 -0
- package/build/server/chunks/9-BLhcDSPx.js.map +1 -0
- package/build/server/chunks/DRepDetails-CYIa-mBG.js +43 -0
- package/build/server/chunks/DRepDetails-CYIa-mBG.js.map +1 -0
- package/build/server/chunks/JsonContent-DjhJhAEL.js +34 -0
- package/build/server/chunks/JsonContent-DjhJhAEL.js.map +1 -0
- package/build/server/chunks/XIcon-CVu59ZTD.js +17 -0
- package/build/server/chunks/XIcon-CVu59ZTD.js.map +1 -0
- package/build/server/chunks/_layout.svelte-BEbVEyFb.js +28 -0
- package/build/server/chunks/_layout.svelte-BEbVEyFb.js.map +1 -0
- package/build/server/chunks/_page.svelte-BBZ9_sZ-.js +49 -0
- package/build/server/chunks/_page.svelte-BBZ9_sZ-.js.map +1 -0
- package/build/server/chunks/_page.svelte-Blhun9M6.js +41 -0
- package/build/server/chunks/_page.svelte-Blhun9M6.js.map +1 -0
- package/build/server/chunks/_page.svelte-Bmp-eX78.js +41 -0
- package/build/server/chunks/_page.svelte-Bmp-eX78.js.map +1 -0
- package/build/server/chunks/_page.svelte-BtWG8tGt.js +43 -0
- package/build/server/chunks/_page.svelte-BtWG8tGt.js.map +1 -0
- package/build/server/chunks/_page.svelte-CAzLLc-T.js +57 -0
- package/build/server/chunks/_page.svelte-CAzLLc-T.js.map +1 -0
- package/build/server/chunks/_page.svelte-CHZ7J0yT.js +43 -0
- package/build/server/chunks/_page.svelte-CHZ7J0yT.js.map +1 -0
- package/build/server/chunks/_page.svelte-CK1Uo9rb.js +32 -0
- package/build/server/chunks/_page.svelte-CK1Uo9rb.js.map +1 -0
- package/build/server/chunks/_page.svelte-CaoYKKyU.js +188 -0
- package/build/server/chunks/_page.svelte-CaoYKKyU.js.map +1 -0
- package/build/server/chunks/_page.svelte-CiMPwBeZ.js +42 -0
- package/build/server/chunks/_page.svelte-CiMPwBeZ.js.map +1 -0
- package/build/server/chunks/_page.svelte-D50EPw8P.js +105 -0
- package/build/server/chunks/_page.svelte-D50EPw8P.js.map +1 -0
- package/build/server/chunks/_page.svelte-DFFatDcE.js +54 -0
- package/build/server/chunks/_page.svelte-DFFatDcE.js.map +1 -0
- package/build/server/chunks/_page.svelte-DVgnfrhX.js +47 -0
- package/build/server/chunks/_page.svelte-DVgnfrhX.js.map +1 -0
- package/build/server/chunks/_page.svelte-DaBGRG1h.js +51 -0
- package/build/server/chunks/_page.svelte-DaBGRG1h.js.map +1 -0
- package/build/server/chunks/_page.svelte-DdI4_4kY.js +43 -0
- package/build/server/chunks/_page.svelte-DdI4_4kY.js.map +1 -0
- package/build/server/chunks/_page.svelte-DqQbI85h.js +47 -0
- package/build/server/chunks/_page.svelte-DqQbI85h.js.map +1 -0
- package/build/server/chunks/_page.svelte-aF-4mYR9.js +49 -0
- package/build/server/chunks/_page.svelte-aF-4mYR9.js.map +1 -0
- package/build/server/chunks/_page.svelte-jWMiLGnn.js +51 -0
- package/build/server/chunks/_page.svelte-jWMiLGnn.js.map +1 -0
- package/build/server/chunks/ada_util-BMIfqJSl.js +11 -0
- package/build/server/chunks/ada_util-BMIfqJSl.js.map +1 -0
- package/build/server/chunks/client-x9PZM0zh.js +75 -0
- package/build/server/chunks/client-x9PZM0zh.js.map +1 -0
- package/build/server/chunks/error.svelte-Bin-JAI8.js +48 -0
- package/build/server/chunks/error.svelte-Bin-JAI8.js.map +1 -0
- package/build/server/chunks/exports-DAzLyLdf.js +190 -0
- package/build/server/chunks/exports-DAzLyLdf.js.map +1 -0
- package/build/server/chunks/index-vBtQgGkr.js +1113 -0
- package/build/server/chunks/index-vBtQgGkr.js.map +1 -0
- package/build/server/chunks/shared-server-i79vVjEm.js +11 -0
- package/build/server/chunks/shared-server-i79vVjEm.js.map +1 -0
- package/build/server/chunks/stores-B4ORdDby.js +33 -0
- package/build/server/chunks/stores-B4ORdDby.js.map +1 -0
- package/build/server/chunks/util-C18qA3ke.js +24 -0
- package/build/server/chunks/util-C18qA3ke.js.map +1 -0
- package/build/server/index.js +4858 -0
- package/build/server/index.js.map +1 -0
- package/build/server/manifest.js +170 -0
- package/build/server/manifest.js.map +1 -0
- package/build/shims.js +32 -0
- package/cli.js +43 -0
- package/package.json +64 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"9-BLhcDSPx.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/certificates/stakekey-registrations/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/9.js"],"sourcesContent":["import { p as public_env } from \"../../../../chunks/shared-server.js\";\nconst load = async ({ params, url }) => {\n let page = url.searchParams.get(\"page\");\n if (!page) page = 0;\n const count = 20;\n const INDEXER_BASE_URL = public_env.PUBLIC_INDEXER_BASE_URL;\n const apiUrl = `${INDEXER_BASE_URL}/stake/registrations?page=${page}&count=${count}`;\n console.log(apiUrl);\n const res = await fetch(apiUrl);\n const data = await res.json();\n const registrations = data;\n console.log(data);\n if (res.ok) {\n return {\n registrations,\n total: 0,\n total_pages: 0,\n page,\n count\n };\n }\n return {\n status: 404,\n body: { error: \"Can not fetch stake registrations.\" }\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/certificates/stakekey-registrations/_page.server.ts.js';\n\nexport const index = 9;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/certificates/stakekey-registrations/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/certificates/stakekey-registrations/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/9.DZ3wzZoV.js\",\"_app/immutable/chunks/disclose-version.BTC8Bk4r.js\",\"_app/immutable/chunks/runtime.NVyxXVLy.js\",\"_app/immutable/chunks/legacy.DKpsC3nd.js\",\"_app/immutable/chunks/render.Dr_6zaa7.js\",\"_app/immutable/chunks/each.e-7RQQYD.js\",\"_app/immutable/chunks/attributes.CqauuZ_8.js\",\"_app/immutable/chunks/class.DCW6ehBg.js\",\"_app/immutable/chunks/lifecycle.BF-zkLgr.js\",\"_app/immutable/chunks/props.Btle0pBM.js\",\"_app/immutable/chunks/store.EL_7F1Fq.js\",\"_app/immutable/chunks/entry.BavFBsHx.js\",\"_app/immutable/chunks/index.DQ_X5mOz.js\",\"_app/immutable/chunks/index-client.TDQqURXd.js\",\"_app/immutable/chunks/stores.BERIfr1Y.js\",\"_app/immutable/chunks/util.8sVtkjoC.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;AACA,MAAM,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK;AACxC,EAAE,IAAI,IAAI,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;AACzC,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,CAAC;AACrB,EAAE,MAAM,KAAK,GAAG,EAAE;AAClB,EAAE,MAAM,gBAAgB,GAAG,UAAU,CAAC,uBAAuB;AAC7D,EAAE,MAAM,MAAM,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on } from './XIcon-CVu59ZTD.js';
|
|
3
|
+
|
|
4
|
+
function DRepDetails($$payload, $$props) {
|
|
5
|
+
push();
|
|
6
|
+
let drep = fallback($$props["drep"], () => ({}), true);
|
|
7
|
+
let show = fallback($$props["show"], false);
|
|
8
|
+
if (show) {
|
|
9
|
+
$$payload.out += "<!--[-->";
|
|
10
|
+
$$payload.out += `<div class="fixed inset-0 bg-gray-600 bg-opacity-50 flex justify-center items-center"><div class="bg-white p-4 rounded shadow-lg mx-auto flex flex-col items-center"><div class="text-right w-full"><button>`;
|
|
11
|
+
XIcon($$payload, { class: "cursor-pointer" });
|
|
12
|
+
$$payload.out += `<!----></button></div> <div class="mt-4 text-sm text-gray-700 break-words w-full"><div class="text-lg font-medium text-gray-700">DRep Id :</div> <div>${escape_html(drep.drep_id)}</div></div> <div class="mt-4 text-sm text-gray-700 break-words w-full"><div class="text-lg font-medium text-gray-700">DRep Hash :</div> <div>${escape_html(drep.drep_hash)}</div></div> `;
|
|
13
|
+
if (drep.deposit) {
|
|
14
|
+
$$payload.out += "<!--[-->";
|
|
15
|
+
$$payload.out += `<div class="mt-4 text-sm text-gray-700 break-words w-full"><div class="text-lg font-medium text-gray-700">Deposit :</div> <div>${escape_html(drep.deposit)}</div></div>`;
|
|
16
|
+
} else {
|
|
17
|
+
$$payload.out += "<!--[!-->";
|
|
18
|
+
}
|
|
19
|
+
$$payload.out += `<!--]--> `;
|
|
20
|
+
if (drep.anchor_hash) {
|
|
21
|
+
$$payload.out += "<!--[-->";
|
|
22
|
+
$$payload.out += `<div class="mt-4 text-sm text-gray-700 break-words w-full"><div class="text-lg font-medium text-gray-700">Anchor Hash :</div> <div>${escape_html(drep.anchor_hash)}</div></div>`;
|
|
23
|
+
} else {
|
|
24
|
+
$$payload.out += "<!--[!-->";
|
|
25
|
+
}
|
|
26
|
+
$$payload.out += `<!--]--> `;
|
|
27
|
+
if (drep.anchor_url) {
|
|
28
|
+
$$payload.out += "<!--[-->";
|
|
29
|
+
$$payload.out += `<div class="mt-4 text-sm text-gray-700 break-words w-full"><div class="text-lg font-medium text-gray-700">Anchor URL :</div> <div><a${attr("href", drep.anchor_url)} target="_blank" class="text-blue-500">${escape_html(drep.anchor_url)}</a></div></div>`;
|
|
30
|
+
} else {
|
|
31
|
+
$$payload.out += "<!--[!-->";
|
|
32
|
+
}
|
|
33
|
+
$$payload.out += `<!--]--></div></div>`;
|
|
34
|
+
} else {
|
|
35
|
+
$$payload.out += "<!--[!-->";
|
|
36
|
+
}
|
|
37
|
+
$$payload.out += `<!--]-->`;
|
|
38
|
+
bind_props($$props, { drep, show });
|
|
39
|
+
pop();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { DRepDetails as D };
|
|
43
|
+
//# sourceMappingURL=DRepDetails-CYIa-mBG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DRepDetails-CYIa-mBG.js","sources":["../../../.svelte-kit/adapter-node/chunks/DRepDetails.js"],"sourcesContent":["import { Z as fallback, Y as escape_html, $ as attr, a1 as bind_props, S as pop, Q as push } from \"./index.js\";\nimport { X as XIcon } from \"./XIcon.js\";\nfunction DRepDetails($$payload, $$props) {\n push();\n let drep = fallback($$props[\"drep\"], () => ({}), true);\n let show = fallback($$props[\"show\"], false);\n if (show) {\n $$payload.out += \"<!--[-->\";\n $$payload.out += `<div class=\"fixed inset-0 bg-gray-600 bg-opacity-50 flex justify-center items-center\"><div class=\"bg-white p-4 rounded shadow-lg mx-auto flex flex-col items-center\"><div class=\"text-right w-full\"><button>`;\n XIcon($$payload, { class: \"cursor-pointer\" });\n $$payload.out += `<!----></button></div> <div class=\"mt-4 text-sm text-gray-700 break-words w-full\"><div class=\"text-lg font-medium text-gray-700\">DRep Id :</div> <div>${escape_html(drep.drep_id)}</div></div> <div class=\"mt-4 text-sm text-gray-700 break-words w-full\"><div class=\"text-lg font-medium text-gray-700\">DRep Hash :</div> <div>${escape_html(drep.drep_hash)}</div></div> `;\n if (drep.deposit) {\n $$payload.out += \"<!--[-->\";\n $$payload.out += `<div class=\"mt-4 text-sm text-gray-700 break-words w-full\"><div class=\"text-lg font-medium text-gray-700\">Deposit :</div> <div>${escape_html(drep.deposit)}</div></div>`;\n } else {\n $$payload.out += \"<!--[!-->\";\n }\n $$payload.out += `<!--]--> `;\n if (drep.anchor_hash) {\n $$payload.out += \"<!--[-->\";\n $$payload.out += `<div class=\"mt-4 text-sm text-gray-700 break-words w-full\"><div class=\"text-lg font-medium text-gray-700\">Anchor Hash :</div> <div>${escape_html(drep.anchor_hash)}</div></div>`;\n } else {\n $$payload.out += \"<!--[!-->\";\n }\n $$payload.out += `<!--]--> `;\n if (drep.anchor_url) {\n $$payload.out += \"<!--[-->\";\n $$payload.out += `<div class=\"mt-4 text-sm text-gray-700 break-words w-full\"><div class=\"text-lg font-medium text-gray-700\">Anchor URL :</div> <div><a${attr(\"href\", drep.anchor_url)} target=\"_blank\" class=\"text-blue-500\">${escape_html(drep.anchor_url)}</a></div></div>`;\n } else {\n $$payload.out += \"<!--[!-->\";\n }\n $$payload.out += `<!--]--></div></div>`;\n } else {\n $$payload.out += \"<!--[!-->\";\n }\n $$payload.out += `<!--]-->`;\n bind_props($$props, { drep, show });\n pop();\n}\nexport {\n DRepDetails as D\n};\n"],"names":[],"mappings":";;;AAEA,SAAS,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE;AACzC,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,CAAC;AACxD,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;AAC7C,EAAE,IAAI,IAAI,EAAE;AACZ,IAAI,SAAS,CAAC,GAAG,IAAI,UAAU;AAC/B,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,4MAA4M,CAAC;AACnO,IAAI,KAAK,CAAC,SAAS,EA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AAG,MAAM;AACT,IAAI,SAAS,CAAC,GAAG,IAAI,WAAW;AAChC;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;AAC7B,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACrC,EAAE,GAAG,EAAE;AACP;;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { $ as fallback, a3 as spread_attributes, X as escape_html, a1 as bind_props } from './index-vBtQgGkr.js';
|
|
2
|
+
|
|
3
|
+
function JsonContent($$payload, $$props) {
|
|
4
|
+
let textareaprops = {
|
|
5
|
+
id: "message",
|
|
6
|
+
name: "message",
|
|
7
|
+
label: "Your message",
|
|
8
|
+
rows: 30,
|
|
9
|
+
cols: 100,
|
|
10
|
+
placeholder: "Leave a comment..."
|
|
11
|
+
};
|
|
12
|
+
let text = fallback($$props["text"], () => ({}), true);
|
|
13
|
+
let rows = fallback($$props["rows"], 30);
|
|
14
|
+
let cols = fallback($$props["cols"], 100);
|
|
15
|
+
function toPrettyJson(obj) {
|
|
16
|
+
if (!obj) return "{}";
|
|
17
|
+
return JSON.stringify(obj, null, 2);
|
|
18
|
+
}
|
|
19
|
+
textareaprops = { ...textareaprops, rows, cols };
|
|
20
|
+
$$payload.out += `<div class="p-4 w-full w"><div class="flex flex-col mt-4"><div class="md:flex-grow"><textarea${spread_attributes({
|
|
21
|
+
...textareaprops,
|
|
22
|
+
class: "w-full h-max textarea-info text-sm md:text-base",
|
|
23
|
+
disabled: true
|
|
24
|
+
})}>`;
|
|
25
|
+
const $$body = escape_html(toPrettyJson(text));
|
|
26
|
+
if ($$body) {
|
|
27
|
+
$$payload.out += `${$$body}`;
|
|
28
|
+
}
|
|
29
|
+
$$payload.out += `</textarea></div></div></div>`;
|
|
30
|
+
bind_props($$props, { text, rows, cols });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { JsonContent as J };
|
|
34
|
+
//# sourceMappingURL=JsonContent-DjhJhAEL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonContent-DjhJhAEL.js","sources":["../../../.svelte-kit/adapter-node/chunks/JsonContent.js"],"sourcesContent":["import { Z as fallback, a3 as spread_attributes, Y as escape_html, a1 as bind_props } from \"./index.js\";\nfunction JsonContent($$payload, $$props) {\n let textareaprops = {\n id: \"message\",\n name: \"message\",\n label: \"Your message\",\n rows: 30,\n cols: 100,\n placeholder: \"Leave a comment...\"\n };\n let text = fallback($$props[\"text\"], () => ({}), true);\n let rows = fallback($$props[\"rows\"], 30);\n let cols = fallback($$props[\"cols\"], 100);\n function toPrettyJson(obj) {\n if (!obj) return \"{}\";\n return JSON.stringify(obj, null, 2);\n }\n textareaprops = { ...textareaprops, rows, cols };\n $$payload.out += `<div class=\"p-4 w-full w\"><div class=\"flex flex-col mt-4\"><div class=\"md:flex-grow\"><textarea${spread_attributes({\n ...textareaprops,\n class: \"w-full h-max textarea-info text-sm md:text-base\",\n disabled: true\n })}>`;\n const $$body = escape_html(toPrettyJson(text));\n if ($$body) {\n $$payload.out += `${$$body}`;\n }\n $$payload.out += `</textarea></div></div></div>`;\n bind_props($$props, { text, rows, cols });\n}\nexport {\n JsonContent as J\n};\n"],"names":[],"mappings":";;AACA,SAAS,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE;AACzC,EAAE,IAAI,aAAa,GAAG;AACtB,IAAI,EAAE,EAAE,SAAS;AACjB,IAAI,IAAI,EAAE,SAAS;AACnB,IAAI,KAAK,EAAE,cAAc;AACzB,IAAI,IAAI,EAAE,EAAE;AACZ,IAAI,IAAI,EAAE,GAAG;AACb,IAAI,WAAW,EAAE;AACjB,GAAG;AACH,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,CAAC;AACxD,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;AAC1C,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC;AAC3C,EAAE,SAAS,YAAY,CAAC,GAAG,EAAE;AAC7B,IAAI,IAAI,CAAC,GAAG,EAAE,OAAO,IAAI;AACzB,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;AACvC;AACA,EAAE,aAAa,GAAG,EAAE,GAAG,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE;AAClD,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,6FAA6F,EAAE,iBAAiB,CAAC;AACrI,IAAI,GAAG,aAAa;AACpB,IAAI,KAAK,EAAE,iDAAiD;AAC5D,IAAI,QAAQ,EAAE;AACd,GAAG,CAAC,CAAC,CAAC,CAAC;AACP,EAAE,MAAM,MAAM,GAAG,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AAChD,EAAE,IAAI,MAAM,EAAE;AACd,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;AAChC;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,6BAA6B,CAAC;AAClD,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC3C;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { v as push, $ as fallback, Z as attr, _ as stringify, a1 as bind_props, x as pop } from './index-vBtQgGkr.js';
|
|
2
|
+
|
|
3
|
+
function XIcon($$payload, $$props) {
|
|
4
|
+
push();
|
|
5
|
+
let size = fallback($$props["size"], "24");
|
|
6
|
+
let strokeWidth = fallback($$props["strokeWidth"], 2);
|
|
7
|
+
let customClass = fallback($$props["class"], "");
|
|
8
|
+
if (size !== "100%") {
|
|
9
|
+
size = size.slice(-1) === "x" ? size.slice(0, size.length - 1) + "em" : parseInt(size) + "px";
|
|
10
|
+
}
|
|
11
|
+
$$payload.out += `<svg xmlns="http://www.w3.org/2000/svg"${attr("width", size)}${attr("height", size)} fill="none" viewBox="0 0 24 24" stroke="currentColor"${attr("stroke-width", strokeWidth)} stroke-linecap="round" stroke-linejoin="round"${attr("class", `feather feather-x ${stringify(customClass)}`)}><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`;
|
|
12
|
+
bind_props($$props, { size, strokeWidth, class: customClass });
|
|
13
|
+
pop();
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { XIcon as X };
|
|
17
|
+
//# sourceMappingURL=XIcon-CVu59ZTD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XIcon-CVu59ZTD.js","sources":["../../../.svelte-kit/adapter-node/chunks/XIcon.js"],"sourcesContent":["import { Z as fallback, $ as attr, a1 as bind_props, S as pop, a0 as stringify, Q as push } from \"./index.js\";\nfunction XIcon($$payload, $$props) {\n push();\n let size = fallback($$props[\"size\"], \"24\");\n let strokeWidth = fallback($$props[\"strokeWidth\"], 2);\n let customClass = fallback($$props[\"class\"], \"\");\n if (size !== \"100%\") {\n size = size.slice(-1) === \"x\" ? size.slice(0, size.length - 1) + \"em\" : parseInt(size) + \"px\";\n }\n $$payload.out += `<svg xmlns=\"http://www.w3.org/2000/svg\"${attr(\"width\", size)}${attr(\"height\", size)} fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\"${attr(\"stroke-width\", strokeWidth)} stroke-linecap=\"round\" stroke-linejoin=\"round\"${attr(\"class\", `feather feather-x ${stringify(customClass)}`)}><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg>`;\n bind_props($$props, { size, strokeWidth, class: customClass });\n pop();\n}\nexport {\n XIcon as X\n};\n"],"names":[],"mappings":";;AACA,SAAS,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE;AACnC,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;AAC5C,EAAE,IAAI,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;AACvD,EAAE,IAAI,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;AAClD,EAAE,IAAI,IAAI,KAAK,MAAM,EAAE;AACvB,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI;AACjG;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,uCAAuC,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,sDAAsD,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC,+CAA+C,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,6FAA6F,CAAC;AAC9Y,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAChE,EAAE,GAAG,EAAE;AACP;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { T as store_get, V as slot, W as unsubscribe_stores } from './index-vBtQgGkr.js';
|
|
2
|
+
import { n as navigating } from './stores-B4ORdDby.js';
|
|
3
|
+
import './client-x9PZM0zh.js';
|
|
4
|
+
import './exports-DAzLyLdf.js';
|
|
5
|
+
|
|
6
|
+
function Nav($$payload) {
|
|
7
|
+
$$payload.out += `<div class="navbar bg-base-100"><div class="flex-1"><a class="btn btn-ghost normal-case text-xl" href="/">Yaci Viewer</a></div> <div class="flex-none"><div class="dropdown dropdown-end lg:hidden"><label tabindex="0" class="btn btn-ghost lg:hidden"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7"></path></svg></label> <ul tabindex="0" class="menu menu-compact dropdown-content mt-3 p-2 shadow bg-base-100 rounded-box w-52"><li><a href="/">Home</a></li> <li><details id="mobile-certificate-menu"><summary>Certificates</summary> <ul class="p-2 bg-base-100"><li><a href="/certificates/stakekey-registrations">Stake Registration</a></li> <li><a href="/certificates/stakekey-deregistrations">Stake DeRegistration</a></li> <li><a href="/certificates/pool-registrations">Pool Registration</a></li> <li><a href="/certificates/pool-retirements">Pool Retirements</a></li> <li><a href="/certificates/delegations">Delegations</a></li></ul></details></li> <li><details id="mobile-governance-menu"><summary>Governance</summary> <ul class="p-2 bg-base-100"><li><a href="/governance/drep-registrations">DRep Registrations</a></li> <li><a href="/governance/drep-updates">DRep Updates</a></li> <li><a href="/governance/drep-deregistrations">DRep DeRegistrations</a></li> <li><a href="/governance/govactions">Proposals</a></li> <li><a href="/governance/votes">Votes</a></li></ul></details></li> <li><a href="/blocks">Blocks</a></li> <li><a href="/transactions">Transactions</a></li></ul></div> <ul class="menu menu-horizontal px-1 hidden lg:flex"><li><a href="/">Home</a></li> <li><details id="certificate-menu"><summary>Certificates</summary> <ul class="p-2 bg-base-100"><li><a href="/certificates/stakekey-registrations">Stake Registration</a></li> <li><a href="/certificates/stakekey-deregistrations">Stake DeRegistration</a></li> <li><a href="/certificates/pool-registrations">Pool Registration</a></li> <li><a href="/certificates/pool-retirements">Pool Retirements</a></li> <li><a href="/certificates/delegations">Delegations</a></li></ul></details></li> <li><details id="governance-menu"><summary>Governance</summary> <ul class="p-2 bg-base-100"><li><a href="/governance/drep-registrations">DRep Registrations</a></li> <li><a href="/governance/drep-updates">DRep Updates</a></li> <li><a href="/governance/drep-deregistrations">DRep DeRegistrations</a></li> <li><a href="/governance/govactions">Proposals</a></li> <li><a href="/governance/votes">Votes</a></li></ul></details></li> <li><a href="/blocks">Blocks</a></li> <li><a href="/transactions">Transactions</a></li></ul></div></div>`;
|
|
8
|
+
}
|
|
9
|
+
function _layout($$payload, $$props) {
|
|
10
|
+
var $$store_subs;
|
|
11
|
+
$$payload.out += `<div class="flex flex-col min-h-screen"><main class="container mx-auto flex-grow px-4">`;
|
|
12
|
+
Nav($$payload);
|
|
13
|
+
$$payload.out += `<!----> `;
|
|
14
|
+
if (store_get($$store_subs ??= {}, "$navigating", navigating)) {
|
|
15
|
+
$$payload.out += "<!--[-->";
|
|
16
|
+
$$payload.out += `<section class="flex justify-center h-screen"><span class="loading loading-ring loading-lg mx-auto"></span></section>`;
|
|
17
|
+
} else {
|
|
18
|
+
$$payload.out += "<!--[!-->";
|
|
19
|
+
$$payload.out += `<!---->`;
|
|
20
|
+
slot($$payload, $$props, "default", {});
|
|
21
|
+
$$payload.out += `<!---->`;
|
|
22
|
+
}
|
|
23
|
+
$$payload.out += `<!--]--></main> <footer class="bg-gray-900 py-4 text-center bottom-0 left-0 w-full"><div class="container mx-auto"><p class="text-gray-300">Open-source with ❤️ by <a href="https://github.com/bloxbean/yaci-viewer" target="_blank" rel="noopener noreferrer">BloxBean</a></p></div></footer></div>`;
|
|
24
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { _layout as default };
|
|
28
|
+
//# sourceMappingURL=_layout.svelte-BEbVEyFb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.svelte-BEbVEyFb.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { T as store_get, V as slot, W as unsubscribe_stores } from \"../../chunks/index.js\";\nimport { n as navigating } from \"../../chunks/stores.js\";\nimport \"clsx\";\nfunction Nav($$payload) {\n $$payload.out += `<div class=\"navbar bg-base-100\"><div class=\"flex-1\"><a class=\"btn btn-ghost normal-case text-xl\" href=\"/\">Yaci Viewer</a></div> <div class=\"flex-none\"><div class=\"dropdown dropdown-end lg:hidden\"><label tabindex=\"0\" class=\"btn btn-ghost lg:hidden\"><svg xmlns=\"http://www.w3.org/2000/svg\" class=\"h-5 w-5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 6h16M4 12h16m-7 6h7\"></path></svg></label> <ul tabindex=\"0\" class=\"menu menu-compact dropdown-content mt-3 p-2 shadow bg-base-100 rounded-box w-52\"><li><a href=\"/\">Home</a></li> <li><details id=\"mobile-certificate-menu\"><summary>Certificates</summary> <ul class=\"p-2 bg-base-100\"><li><a href=\"/certificates/stakekey-registrations\">Stake Registration</a></li> <li><a href=\"/certificates/stakekey-deregistrations\">Stake DeRegistration</a></li> <li><a href=\"/certificates/pool-registrations\">Pool Registration</a></li> <li><a href=\"/certificates/pool-retirements\">Pool Retirements</a></li> <li><a href=\"/certificates/delegations\">Delegations</a></li></ul></details></li> <li><details id=\"mobile-governance-menu\"><summary>Governance</summary> <ul class=\"p-2 bg-base-100\"><li><a href=\"/governance/drep-registrations\">DRep Registrations</a></li> <li><a href=\"/governance/drep-updates\">DRep Updates</a></li> <li><a href=\"/governance/drep-deregistrations\">DRep DeRegistrations</a></li> <li><a href=\"/governance/govactions\">Proposals</a></li> <li><a href=\"/governance/votes\">Votes</a></li></ul></details></li> <li><a href=\"/blocks\">Blocks</a></li> <li><a href=\"/transactions\">Transactions</a></li></ul></div> <ul class=\"menu menu-horizontal px-1 hidden lg:flex\"><li><a href=\"/\">Home</a></li> <li><details id=\"certificate-menu\"><summary>Certificates</summary> <ul class=\"p-2 bg-base-100\"><li><a href=\"/certificates/stakekey-registrations\">Stake Registration</a></li> <li><a href=\"/certificates/stakekey-deregistrations\">Stake DeRegistration</a></li> <li><a href=\"/certificates/pool-registrations\">Pool Registration</a></li> <li><a href=\"/certificates/pool-retirements\">Pool Retirements</a></li> <li><a href=\"/certificates/delegations\">Delegations</a></li></ul></details></li> <li><details id=\"governance-menu\"><summary>Governance</summary> <ul class=\"p-2 bg-base-100\"><li><a href=\"/governance/drep-registrations\">DRep Registrations</a></li> <li><a href=\"/governance/drep-updates\">DRep Updates</a></li> <li><a href=\"/governance/drep-deregistrations\">DRep DeRegistrations</a></li> <li><a href=\"/governance/govactions\">Proposals</a></li> <li><a href=\"/governance/votes\">Votes</a></li></ul></details></li> <li><a href=\"/blocks\">Blocks</a></li> <li><a href=\"/transactions\">Transactions</a></li></ul></div></div>`;\n}\nfunction _layout($$payload, $$props) {\n var $$store_subs;\n $$payload.out += `<div class=\"flex flex-col min-h-screen\"><main class=\"container mx-auto flex-grow px-4\">`;\n Nav($$payload);\n $$payload.out += `<!----> `;\n if (store_get($$store_subs ??= {}, \"$navigating\", navigating)) {\n $$payload.out += \"<!--[-->\";\n $$payload.out += `<section class=\"flex justify-center h-screen\"><span class=\"loading loading-ring loading-lg mx-auto\"></span></section>`;\n } else {\n $$payload.out += \"<!--[!-->\";\n $$payload.out += `<!---->`;\n slot($$payload, $$props, \"default\", {});\n $$payload.out += `<!---->`;\n }\n $$payload.out += `<!--]--></main> <footer class=\"bg-gray-900 py-4 text-center bottom-0 left-0 w-full\"><div class=\"container mx-auto\"><p class=\"text-gray-300\">Open-source with ❤️ by <a href=\"https://github.com/bloxbean/yaci-viewer\" target=\"_blank\" rel=\"noopener noreferrer\">BloxBean</a></p></div></footer></div>`;\n if ($$store_subs) unsubscribe_stores($$store_subs);\n}\nexport {\n _layout as default\n};\n"],"names":[],"mappings":";;;;;AAGA,SAAS,GAAG,CAAC,SAAS,EAAE;AACxB,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,0qFAA0qF,CAAC;AAC/rF;AACA,SAAS,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE;AACrC,EAAE,IAAI,YAAY;AAClB,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,uFAAuF,CAAC;AAC5G,EAAE,GAAG,CAAC,SAAS,CAAC;AAChB,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;AAC7B,EAAE,IAAI,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,CAAC,EAAE;AACjE,IAAI,SAAS,CAAC,GAAG,IAAI,UAAU;AAC/B,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,qHAAqH,CAAC;AAC5I,GAAG,MAAM;AACT,IAAI,SAAS,CAAC,GAAG,IAAI,WAAW;AAChC,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;AAC9B,IAAI,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC;AAC3C,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;AAC9B;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,oSAAoS,CAAC;AACzT,EAAE,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACpD;;;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { T as store_get, a0 as ensure_array_like, Z as attr, X as escape_html, _ as stringify, W as unsubscribe_stores, a1 as bind_props, x as pop, v as push } from './index-vBtQgGkr.js';
|
|
2
|
+
import './client-x9PZM0zh.js';
|
|
3
|
+
import { p as page } from './stores-B4ORdDby.js';
|
|
4
|
+
import { t as truncate } from './util-C18qA3ke.js';
|
|
5
|
+
import { l as lovelaceToAda } from './ada_util-BMIfqJSl.js';
|
|
6
|
+
import './exports-DAzLyLdf.js';
|
|
7
|
+
|
|
8
|
+
function _page($$payload, $$props) {
|
|
9
|
+
push();
|
|
10
|
+
var $$store_subs;
|
|
11
|
+
let activeUrl;
|
|
12
|
+
let data = $$props["data"];
|
|
13
|
+
let pages = [];
|
|
14
|
+
if (!data.registrations) data.registrations = [];
|
|
15
|
+
activeUrl = store_get($$store_subs ??= {}, "$page", page).url.searchParams.get("page");
|
|
16
|
+
{
|
|
17
|
+
pages.forEach((page2) => {
|
|
18
|
+
let splitUrl = page2.href.split("?");
|
|
19
|
+
let queryString = splitUrl.slice(1).join("?");
|
|
20
|
+
const hrefParams = new URLSearchParams(queryString);
|
|
21
|
+
let hrefValue = hrefParams.get("page");
|
|
22
|
+
if (hrefValue === activeUrl) {
|
|
23
|
+
page2.active = true;
|
|
24
|
+
} else {
|
|
25
|
+
page2.active = false;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
pages = pages;
|
|
29
|
+
}
|
|
30
|
+
const each_array = ensure_array_like(data.registrations);
|
|
31
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">Pool Registrations</h2> <div class="flex flex-wrap justify-between mt-4 mb-2"><a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</a> <a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></a></div> <div class="overflow-x-auto"><table class="w-full bg-white border border-gray-300"><thead><tr><th class="py-2 px-4 bg-gray-100 font-bold text-center">Pool</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Pledge</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Cost</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Margin</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Owner(s)</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Block</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Transaction Hash</th></tr></thead><tbody><!--[-->`;
|
|
32
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
33
|
+
let registration = each_array[index];
|
|
34
|
+
const each_array_1 = ensure_array_like(registration.pool_owners);
|
|
35
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4">${escape_html(truncate(registration.pool_id_bech32, 35, "..."))}</td><td class="py-2 px-4 text-center">${escape_html(lovelaceToAda(registration.pledge, 2))}</td><td class="py-2 px-4 text-center">${escape_html(lovelaceToAda(registration.cost, 0))}</td><td class="py-2 px-4 text-center">${escape_html(registration.margin * 100)}%</td><td class="py-2 px-4"><!--[-->`;
|
|
36
|
+
for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {
|
|
37
|
+
let owner = each_array_1[$$index];
|
|
38
|
+
$$payload.out += `<div>${escape_html(truncate(owner, 20, "..."))}</div>`;
|
|
39
|
+
}
|
|
40
|
+
$$payload.out += `<!--]--></td><td class="py-2 px-4 text-center"><a${attr("href", `/blocks/${stringify(registration.block_number)}`)} class="text-blue-500">${escape_html(registration.block_number)}</a></td><td class="py-2 px-4"><a${attr("href", `/transactions/${stringify(registration.tx_hash)}`)} class="text-blue-500"><span class="ml-2">${escape_html(truncate(registration.tx_hash, 20))}</span></a></td></tr>`;
|
|
41
|
+
}
|
|
42
|
+
$$payload.out += `<!--]--></tbody></table></div> <div class="flex flex-wrap justify-between mt-2 mb-2"><a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</a> <a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></a></div></section>`;
|
|
43
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
44
|
+
bind_props($$props, { data });
|
|
45
|
+
pop();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { _page as default };
|
|
49
|
+
//# sourceMappingURL=_page.svelte-BBZ9_sZ-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-BBZ9_sZ-.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/certificates/pool-registrations/_page.svelte.js"],"sourcesContent":["import { T as store_get, _ as ensure_array_like, $ as attr, Y as escape_html, a0 as stringify, W as unsubscribe_stores, a1 as bind_props, S as pop, Q as push } from \"../../../../chunks/index.js\";\nimport \"../../../../chunks/client.js\";\nimport { p as page } from \"../../../../chunks/stores.js\";\nimport { t as truncate } from \"../../../../chunks/util.js\";\nimport { l as lovelaceToAda } from \"../../../../chunks/ada_util.js\";\nfunction _page($$payload, $$props) {\n push();\n var $$store_subs;\n let activeUrl;\n let data = $$props[\"data\"];\n let pages = [];\n if (!data.registrations) data.registrations = [];\n activeUrl = store_get($$store_subs ??= {}, \"$page\", page).url.searchParams.get(\"page\");\n {\n pages.forEach((page2) => {\n let splitUrl = page2.href.split(\"?\");\n let queryString = splitUrl.slice(1).join(\"?\");\n const hrefParams = new URLSearchParams(queryString);\n let hrefValue = hrefParams.get(\"page\");\n if (hrefValue === activeUrl) {\n page2.active = true;\n } else {\n page2.active = false;\n }\n });\n pages = pages;\n }\n const each_array = ensure_array_like(data.registrations);\n $$payload.out += `<section class=\"container mx-auto text-sm\"><h2 class=\"text-xl font-bold text-center text-gray-500 mb-4\">Pool Registrations</h2> <div class=\"flex flex-wrap justify-between mt-4 mb-2\"><a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</a> <a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></a></div> <div class=\"overflow-x-auto\"><table class=\"w-full bg-white border border-gray-300\"><thead><tr><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Pool</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Pledge</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Cost</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Margin</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Owner(s)</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Block</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Transaction Hash</th></tr></thead><tbody><!--[-->`;\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let registration = each_array[index];\n const each_array_1 = ensure_array_like(registration.pool_owners);\n $$payload.out += `<tr${attr(\"class\", index % 2 === 0 ? \"bg-gray-50\" : \"bg-white\")}><td class=\"py-2 px-4\">${escape_html(truncate(registration.pool_id_bech32, 35, \"...\"))}</td><td class=\"py-2 px-4 text-center\">${escape_html(lovelaceToAda(registration.pledge, 2))}</td><td class=\"py-2 px-4 text-center\">${escape_html(lovelaceToAda(registration.cost, 0))}</td><td class=\"py-2 px-4 text-center\">${escape_html(registration.margin * 100)}%</td><td class=\"py-2 px-4\"><!--[-->`;\n for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {\n let owner = each_array_1[$$index];\n $$payload.out += `<div>${escape_html(truncate(owner, 20, \"...\"))}</div>`;\n }\n $$payload.out += `<!--]--></td><td class=\"py-2 px-4 text-center\"><a${attr(\"href\", `/blocks/${stringify(registration.block_number)}`)} class=\"text-blue-500\">${escape_html(registration.block_number)}</a></td><td class=\"py-2 px-4\"><a${attr(\"href\", `/transactions/${stringify(registration.tx_hash)}`)} class=\"text-blue-500\"><span class=\"ml-2\">${escape_html(truncate(registration.tx_hash, 20))}</span></a></td></tr>`;\n }\n $$payload.out += `<!--]--></tbody></table></div> <div class=\"flex flex-wrap justify-between mt-2 mb-2\"><a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</a> <a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></a></div></section>`;\n if ($$store_subs) unsubscribe_stores($$store_subs);\n bind_props($$props, { data });\n pop();\n}\nexport {\n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AAiC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,0CAA0C,EAAE,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC;AAC/Z;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,mYAAmY,CAAC;AACxZ,EAAE,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACpD,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC;AAC/B,EAAE,GAAG,EAAE;AACP;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { T as store_get, a0 as ensure_array_like, Z as attr, _ as stringify, X as escape_html, W as unsubscribe_stores, a1 as bind_props, x as pop, v as push } from './index-vBtQgGkr.js';
|
|
2
|
+
import './client-x9PZM0zh.js';
|
|
3
|
+
import { p as page } from './stores-B4ORdDby.js';
|
|
4
|
+
import './exports-DAzLyLdf.js';
|
|
5
|
+
|
|
6
|
+
function _page($$payload, $$props) {
|
|
7
|
+
push();
|
|
8
|
+
var $$store_subs;
|
|
9
|
+
let activeUrl;
|
|
10
|
+
let data = $$props["data"];
|
|
11
|
+
let pages = [];
|
|
12
|
+
let blockNo = "";
|
|
13
|
+
activeUrl = store_get($$store_subs ??= {}, "$page", page).url.searchParams.get("page");
|
|
14
|
+
{
|
|
15
|
+
pages.forEach((page2) => {
|
|
16
|
+
let splitUrl = page2.href.split("?");
|
|
17
|
+
let queryString = splitUrl.slice(1).join("?");
|
|
18
|
+
const hrefParams = new URLSearchParams(queryString);
|
|
19
|
+
let hrefValue = hrefParams.get("page");
|
|
20
|
+
if (hrefValue === activeUrl) {
|
|
21
|
+
page2.active = true;
|
|
22
|
+
} else {
|
|
23
|
+
page2.active = false;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
pages = pages;
|
|
27
|
+
}
|
|
28
|
+
const each_array = ensure_array_like(data.blocks);
|
|
29
|
+
$$payload.out += `<section class="container mx-auto mt-4 text-sm"><div class="mb-4 flex justify-center"><form class="flex items-center w-full max-w-lg"><input type="search" id="search"${attr("value", blockNo)} placeholder="Block Number" required class="px-4 py-2 border border-gray-300 rounded-l-md focus:outline-none focus:ring-2 focus:ring-blue-500 w-96 mr-2"> <button type="submit" class="px-4 py-2 bg-blue-500 text-white rounded-r-md hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500">Search</button></form></div></section> <section class="container mx-auto text-sm"><div class="flex flex-wrap justify-between mb-2"><a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</a> <a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></a></div> <div class="overflow-x-auto"><table class="w-full bg-white border border-gray-300"><thead><tr><th class="py-2 px-4 bg-gray-100 font-bold text-center">Blocks</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Slot</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Pool</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Size (kb)</th><th class="py-2 px-4 bg-gray-100 font-bold text-center"># of Txs</th></tr></thead><tbody><!--[-->`;
|
|
30
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
31
|
+
let block = each_array[index];
|
|
32
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4 text-center"><a${attr("href", `/blocks/${stringify(block.number)}`)} class="text-blue-500">${escape_html(block.number)}</a></td><td class="py-2 px-4 text-center">${escape_html(block.slot)}</td><td class="py-2 px-4 text-center">${escape_html(block.slot_leader)}</td><td class="py-2 px-4 text-center">${escape_html(block.size / 1e3)}</td><td class="py-2 px-4 text-center">${escape_html(block.tx_count)}</td></tr>`;
|
|
33
|
+
}
|
|
34
|
+
$$payload.out += `<!--]--></tbody></table></div> <div class="flex flex-wrap justify-between mt-2 mb-4"><a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</a> <a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></a></div></section>`;
|
|
35
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
36
|
+
bind_props($$props, { data });
|
|
37
|
+
pop();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { _page as default };
|
|
41
|
+
//# sourceMappingURL=_page.svelte-Blhun9M6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-Blhun9M6.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/blocks/_page.svelte.js"],"sourcesContent":["import { T as store_get, _ as ensure_array_like, $ as attr, a0 as stringify, Y as escape_html, W as unsubscribe_stores, a1 as bind_props, S as pop, Q as push } from \"../../../chunks/index.js\";\nimport \"../../../chunks/client.js\";\nimport { p as page } from \"../../../chunks/stores.js\";\nfunction _page($$payload, $$props) {\n push();\n var $$store_subs;\n let activeUrl;\n let data = $$props[\"data\"];\n let pages = [];\n let blockNo = \"\";\n activeUrl = store_get($$store_subs ??= {}, \"$page\", page).url.searchParams.get(\"page\");\n {\n pages.forEach((page2) => {\n let splitUrl = page2.href.split(\"?\");\n let queryString = splitUrl.slice(1).join(\"?\");\n const hrefParams = new URLSearchParams(queryString);\n let hrefValue = hrefParams.get(\"page\");\n if (hrefValue === activeUrl) {\n page2.active = true;\n } else {\n page2.active = false;\n }\n });\n pages = pages;\n }\n const each_array = ensure_array_like(data.blocks);\n $$payload.out += `<section class=\"container mx-auto mt-4 text-sm\"><div class=\"mb-4 flex justify-center\"><form class=\"flex items-center w-full max-w-lg\"><input type=\"search\" id=\"search\"${attr(\"value\", blockNo)} placeholder=\"Block Number\" required class=\"px-4 py-2 border border-gray-300 rounded-l-md focus:outline-none focus:ring-2 focus:ring-blue-500 w-96 mr-2\"> <button type=\"submit\" class=\"px-4 py-2 bg-blue-500 text-white rounded-r-md hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500\">Search</button></form></div></section> <section class=\"container mx-auto text-sm\"><div class=\"flex flex-wrap justify-between mb-2\"><a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</a> <a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></a></div> <div class=\"overflow-x-auto\"><table class=\"w-full bg-white border border-gray-300\"><thead><tr><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Blocks</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Slot</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Pool</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Size (kb)</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\"># of Txs</th></tr></thead><tbody><!--[-->`;\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let block = each_array[index];\n $$payload.out += `<tr${attr(\"class\", index % 2 === 0 ? \"bg-gray-50\" : \"bg-white\")}><td class=\"py-2 px-4 text-center\"><a${attr(\"href\", `/blocks/${stringify(block.number)}`)} class=\"text-blue-500\">${escape_html(block.number)}</a></td><td class=\"py-2 px-4 text-center\">${escape_html(block.slot)}</td><td class=\"py-2 px-4 text-center\">${escape_html(block.slot_leader)}</td><td class=\"py-2 px-4 text-center\">${escape_html(block.size / 1e3)}</td><td class=\"py-2 px-4 text-center\">${escape_html(block.tx_count)}</td></tr>`;\n }\n $$payload.out += `<!--]--></tbody></table></div> <div class=\"flex flex-wrap justify-between mt-2 mb-4\"><a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</a> <a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></a></div></section>`;\n if ($$store_subs) unsubscribe_stores($$store_subs);\n bind_props($$props, { data });\n pop();\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;AAGA,SAAS,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE;AACnC,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,YAAY;AAClB,EAAE,IAAI,SAAS;AACf,EAAE,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;AAC5B,EAAE,IAAI,KAAK,GAAG,EAAE;AAChB,EAAE,IAAI,OAAO,GAAG,EAAE;AAClB,EAAE,SAAS,GAAG,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;AACxF,EAAE;AACF,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,KAAK;AAC7B,MAAM,IAAI,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;AAC1C,MAAM,IAAI,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AACnD,MAAM,MAAM,UAAU,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC;AACzD,MAAM,IAAI,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC;AAC5C,MAAM,IAAI,SAAS,KAAK,SAAS,EAAE;AACnC,QAAQ,KAAK,CAAC,MAAM,GAAG,IAAI;AAC3B,OAAO,MAAM;AACb,QAAQ,KAAK,CAAC,MAAM,GAAG,KAAK;AAC5B;AACA,KAAK,CAAC;AACN,IAAI,KAAK,GAAG,KAAK;AACjB;AACA,EAAE,MAAM,UAAU,GAAG,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC;AACnD,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,sKAAsK,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,8pCAA8pC,CAAC;AACl3C,EAAE,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC,MAAM,EAAE,KAAK,GAAG,QAAQ,EAAE,KAAK,EAAE,EAAE;AAC/E,IAAI,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;AACjC,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,GAAG,CAAC,KAAK,CAAC,GAAG,YAAY,GAAG,UAAU,CAAC,CAAC,qCAAqC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,2CAA2C,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,uCAAuC,EAAE,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,uCAAuC,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,uCAAuC,EAAE,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC;AACvgB;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,mYAAmY,CAAC;AACxZ,EAAE,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACpD,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC;AAC/B,EAAE,GAAG,EAAE;AACP;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { T as store_get, a0 as ensure_array_like, Z as attr, X as escape_html, _ as stringify, W as unsubscribe_stores, a1 as bind_props, x as pop, v as push } from './index-vBtQgGkr.js';
|
|
2
|
+
import './client-x9PZM0zh.js';
|
|
3
|
+
import { p as page } from './stores-B4ORdDby.js';
|
|
4
|
+
import './exports-DAzLyLdf.js';
|
|
5
|
+
|
|
6
|
+
function _page($$payload, $$props) {
|
|
7
|
+
push();
|
|
8
|
+
var $$store_subs;
|
|
9
|
+
let activeUrl;
|
|
10
|
+
let data = $$props["data"];
|
|
11
|
+
let pages = [];
|
|
12
|
+
if (!data.deregistrations) data.deregistrations = [];
|
|
13
|
+
activeUrl = store_get($$store_subs ??= {}, "$page", page).url.searchParams.get("page");
|
|
14
|
+
{
|
|
15
|
+
pages.forEach((page2) => {
|
|
16
|
+
let splitUrl = page2.href.split("?");
|
|
17
|
+
let queryString = splitUrl.slice(1).join("?");
|
|
18
|
+
const hrefParams = new URLSearchParams(queryString);
|
|
19
|
+
let hrefValue = hrefParams.get("page");
|
|
20
|
+
if (hrefValue === activeUrl) {
|
|
21
|
+
page2.active = true;
|
|
22
|
+
} else {
|
|
23
|
+
page2.active = false;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
pages = pages;
|
|
27
|
+
}
|
|
28
|
+
const each_array = ensure_array_like(data.deregistrations);
|
|
29
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">DRep De-registrations</h2> <div class="flex flex-wrap justify-between mt-4 mb-2"><button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</button> <button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></button></div> <div class="overflow-x-auto"><table class="w-full bg-white border border-gray-300"><thead><tr><th class="py-2 px-4 bg-gray-100 font-bold text-center">DRep Id</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Type</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Block</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Txn Hash</th></tr></thead><tbody><!--[-->`;
|
|
30
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
31
|
+
let drep = each_array[index];
|
|
32
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4"><span class="ml-2">${escape_html(drep.drep_id)}</span></td><td class="py-2 px-4">${escape_html(drep.cred_type)}</td><td class="py-2 px-4"><a${attr("href", `/blocks/${stringify(drep.block_number)}`)} class="text-blue-500">${escape_html(drep.block_number)}</a></td><td class="py-2 px-4"><a${attr("href", `/transactions/${stringify(drep.tx_hash)}`)} class="text-blue-500">${escape_html(drep.tx_hash)}</a></td></tr>`;
|
|
33
|
+
}
|
|
34
|
+
$$payload.out += `<!--]--></tbody></table></div> <div class="flex flex-wrap justify-between mt-2 mb-2"><button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</button> <button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></button></div></section>`;
|
|
35
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
36
|
+
bind_props($$props, { data });
|
|
37
|
+
pop();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { _page as default };
|
|
41
|
+
//# sourceMappingURL=_page.svelte-Bmp-eX78.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-Bmp-eX78.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/governance/drep-deregistrations/_page.svelte.js"],"sourcesContent":["import { T as store_get, _ as ensure_array_like, $ as attr, Y as escape_html, a0 as stringify, W as unsubscribe_stores, a1 as bind_props, S as pop, Q as push } from \"../../../../chunks/index.js\";\nimport \"../../../../chunks/client.js\";\nimport { p as page } from \"../../../../chunks/stores.js\";\nfunction _page($$payload, $$props) {\n push();\n var $$store_subs;\n let activeUrl;\n let data = $$props[\"data\"];\n let pages = [];\n if (!data.deregistrations) data.deregistrations = [];\n activeUrl = store_get($$store_subs ??= {}, \"$page\", page).url.searchParams.get(\"page\");\n {\n pages.forEach((page2) => {\n let splitUrl = page2.href.split(\"?\");\n let queryString = splitUrl.slice(1).join(\"?\");\n const hrefParams = new URLSearchParams(queryString);\n let hrefValue = hrefParams.get(\"page\");\n if (hrefValue === activeUrl) {\n page2.active = true;\n } else {\n page2.active = false;\n }\n });\n pages = pages;\n }\n const each_array = ensure_array_like(data.deregistrations);\n $$payload.out += `<section class=\"container mx-auto text-sm\"><h2 class=\"text-xl font-bold text-center text-gray-500 mb-4\">DRep De-registrations</h2> <div class=\"flex flex-wrap justify-between mt-4 mb-2\"><button class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</button> <button class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></button></div> <div class=\"overflow-x-auto\"><table class=\"w-full bg-white border border-gray-300\"><thead><tr><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">DRep Id</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Type</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Block</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Txn Hash</th></tr></thead><tbody><!--[-->`;\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let drep = each_array[index];\n $$payload.out += `<tr${attr(\"class\", index % 2 === 0 ? \"bg-gray-50\" : \"bg-white\")}><td class=\"py-2 px-4\"><span class=\"ml-2\">${escape_html(drep.drep_id)}</span></td><td class=\"py-2 px-4\">${escape_html(drep.cred_type)}</td><td class=\"py-2 px-4\"><a${attr(\"href\", `/blocks/${stringify(drep.block_number)}`)} class=\"text-blue-500\">${escape_html(drep.block_number)}</a></td><td class=\"py-2 px-4\"><a${attr(\"href\", `/transactions/${stringify(drep.tx_hash)}`)} class=\"text-blue-500\">${escape_html(drep.tx_hash)}</a></td></tr>`;\n }\n $$payload.out += `<!--]--></tbody></table></div> <div class=\"flex flex-wrap justify-between mt-2 mb-2\"><button class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</button> <button class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></button></div></section>`;\n if ($$store_subs) unsubscribe_stores($$store_subs);\n bind_props($$props, { data });\n pop();\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;AAGA,SAAS,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE;AACnC,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,YAAY;AAClB,EAAE,IAAI,SAAS;AACf,EAAE,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;AAC5B,EAAE,IAAI,KAAK,GAAG,EAAE;AAChB,EAAE,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,eAAe,GAAG,EAAE;AACtD,EAAE,SAAS,GAAG,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;AACxF,EAAE;AACF,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,KAAK;AAC7B,MAAM,IAAI,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;AAC1C,MAAM,IAAI,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AACnD,MAAM,MAAM,UAAU,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC;AACzD,MAAM,IAAI,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC;AAC5C,MAAM,IAAI,SAAS,KAAK,SAAS,EAAE;AACnC,QAAQ,KAAK,CAAC,MAAM,GAAG,IAAI;AAC3B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,EAAE,GAAG,EAAE;AACP;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { T as store_get, a0 as ensure_array_like, Z as attr, X as escape_html, _ as stringify, W as unsubscribe_stores, a1 as bind_props, x as pop, v as push } from './index-vBtQgGkr.js';
|
|
2
|
+
import './client-x9PZM0zh.js';
|
|
3
|
+
import { p as page } from './stores-B4ORdDby.js';
|
|
4
|
+
import { g as getDate, t as truncate } from './util-C18qA3ke.js';
|
|
5
|
+
import './exports-DAzLyLdf.js';
|
|
6
|
+
|
|
7
|
+
function _page($$payload, $$props) {
|
|
8
|
+
push();
|
|
9
|
+
var $$store_subs;
|
|
10
|
+
let activeUrl;
|
|
11
|
+
let data = $$props["data"];
|
|
12
|
+
let pages = [];
|
|
13
|
+
console.log(data);
|
|
14
|
+
if (!data.deregistrations) data.deregistrations = [];
|
|
15
|
+
activeUrl = store_get($$store_subs ??= {}, "$page", page).url.searchParams.get("page");
|
|
16
|
+
{
|
|
17
|
+
pages.forEach((page2) => {
|
|
18
|
+
let splitUrl = page2.href.split("?");
|
|
19
|
+
let queryString = splitUrl.slice(1).join("?");
|
|
20
|
+
const hrefParams = new URLSearchParams(queryString);
|
|
21
|
+
let hrefValue = hrefParams.get("page");
|
|
22
|
+
if (hrefValue === activeUrl) {
|
|
23
|
+
page2.active = true;
|
|
24
|
+
} else {
|
|
25
|
+
page2.active = false;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
pages = pages;
|
|
29
|
+
}
|
|
30
|
+
const each_array = ensure_array_like(data.deregistrations);
|
|
31
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">Stake Key De-registrations</h2> <div class="flex flex-wrap justify-between mt-4 mb-2"><a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</a> <a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></a></div> <div class="overflow-x-auto"><table class="w-full bg-white border border-gray-300"><thead><tr><th class="py-2 px-4 bg-gray-100 font-bold text-center">Address</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Block</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Time</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Transaction Hash</th></tr></thead><tbody><!--[-->`;
|
|
32
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
33
|
+
let deregistration = each_array[index];
|
|
34
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4">${escape_html(deregistration.address)}</td><td class="py-2 px-4 text-center"><a${attr("href", `/blocks/${stringify(deregistration.block_number)}`)} class="text-blue-500">${escape_html(deregistration.block_number)}</a></td><td class="py-2 px-4 text-center">${escape_html(getDate(deregistration.block_time))}</td><td class="py-2 px-4"><a${attr("href", `/transactions/${stringify(deregistration.tx_hash)}`)} class="text-blue-500"><span class="ml-2">${escape_html(truncate(deregistration.tx_hash, 30, "..."))}</span></a></td></tr>`;
|
|
35
|
+
}
|
|
36
|
+
$$payload.out += `<!--]--></tbody></table></div> <div class="flex flex-wrap justify-between mb-2"><a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</a> <a href="#" class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></a></div></section>`;
|
|
37
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
38
|
+
bind_props($$props, { data });
|
|
39
|
+
pop();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { _page as default };
|
|
43
|
+
//# sourceMappingURL=_page.svelte-BtWG8tGt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-BtWG8tGt.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/certificates/stakekey-deregistrations/_page.svelte.js"],"sourcesContent":["import { T as store_get, _ as ensure_array_like, $ as attr, Y as escape_html, a0 as stringify, W as unsubscribe_stores, a1 as bind_props, S as pop, Q as push } from \"../../../../chunks/index.js\";\nimport \"../../../../chunks/client.js\";\nimport { p as page } from \"../../../../chunks/stores.js\";\nimport { g as getDate, t as truncate } from \"../../../../chunks/util.js\";\nfunction _page($$payload, $$props) {\n push();\n var $$store_subs;\n let activeUrl;\n let data = $$props[\"data\"];\n let pages = [];\n console.log(data);\n if (!data.deregistrations) data.deregistrations = [];\n activeUrl = store_get($$store_subs ??= {}, \"$page\", page).url.searchParams.get(\"page\");\n {\n pages.forEach((page2) => {\n let splitUrl = page2.href.split(\"?\");\n let queryString = splitUrl.slice(1).join(\"?\");\n const hrefParams = new URLSearchParams(queryString);\n let hrefValue = hrefParams.get(\"page\");\n if (hrefValue === activeUrl) {\n page2.active = true;\n } else {\n page2.active = false;\n }\n });\n pages = pages;\n }\n const each_array = ensure_array_like(data.deregistrations);\n $$payload.out += `<section class=\"container mx-auto text-sm\"><h2 class=\"text-xl font-bold text-center text-gray-500 mb-4\">Stake Key De-registrations</h2> <div class=\"flex flex-wrap justify-between mt-4 mb-2\"><a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</a> <a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></a></div> <div class=\"overflow-x-auto\"><table class=\"w-full bg-white border border-gray-300\"><thead><tr><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Address</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Block</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Time</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Transaction Hash</th></tr></thead><tbody><!--[-->`;\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let deregistration = each_array[index];\n $$payload.out += `<tr${attr(\"class\", index % 2 === 0 ? \"bg-gray-50\" : \"bg-white\")}><td class=\"py-2 px-4\">${escape_html(deregistration.address)}</td><td class=\"py-2 px-4 text-center\"><a${attr(\"href\", `/blocks/${stringify(deregistration.block_number)}`)} class=\"text-blue-500\">${escape_html(deregistration.block_number)}</a></td><td class=\"py-2 px-4 text-center\">${escape_html(getDate(deregistration.block_time))}</td><td class=\"py-2 px-4\"><a${attr(\"href\", `/transactions/${stringify(deregistration.tx_hash)}`)} class=\"text-blue-500\"><span class=\"ml-2\">${escape_html(truncate(deregistration.tx_hash, 30, \"...\"))}</span></a></td></tr>`;\n }\n $$payload.out += `<!--]--></tbody></table></div> <div class=\"flex flex-wrap justify-between mb-2\"><a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</a> <a href=\"#\" class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></a></div></section>`;\n if ($$store_subs) unsubscribe_stores($$store_subs);\n bind_props($$props, { data });\n pop();\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;AAIA,SAAS,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE;AACnC,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,YAAY;AAClB,EAAE,IAAI,SAAS;AACf,EAAE,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;AAC5B,EAAE,IAAI,KAAK,GAAG,EAAE;AAChB,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;AACnB,EAAE,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,eAAe,GAAG,EAAE;AACtD,EAAE,SAAS,GAAG,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;AACx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,cAAc,CAAC,YAAY,CAAC,CAAC,2CAA2C,EAAE,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,6BAA6B,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,0CAA0C,EAAE,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC;AAC5nB;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,8XAA8X,CAAC;AACnZ,EAAE,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACpD,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC;AAC/B,EAAE,GAAG,EAAE;AACP;;;;"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { T as store_get, a0 as ensure_array_like, Z as attr, _ as stringify, X as escape_html, W as unsubscribe_stores, a1 as bind_props, x as pop, $ as fallback, v as push } from './index-vBtQgGkr.js';
|
|
2
|
+
import './client-x9PZM0zh.js';
|
|
3
|
+
import { p as page } from './stores-B4ORdDby.js';
|
|
4
|
+
import { t as truncate } from './util-C18qA3ke.js';
|
|
5
|
+
import './exports-DAzLyLdf.js';
|
|
6
|
+
|
|
7
|
+
function EyeIcon($$payload, $$props) {
|
|
8
|
+
push();
|
|
9
|
+
let size = fallback($$props["size"], "24");
|
|
10
|
+
let strokeWidth = fallback($$props["strokeWidth"], 2);
|
|
11
|
+
let customClass = fallback($$props["class"], "");
|
|
12
|
+
if (size !== "100%") {
|
|
13
|
+
size = size.slice(-1) === "x" ? size.slice(0, size.length - 1) + "em" : parseInt(size) + "px";
|
|
14
|
+
}
|
|
15
|
+
$$payload.out += `<svg xmlns="http://www.w3.org/2000/svg"${attr("width", size)}${attr("height", size)} fill="none" viewBox="0 0 24 24" stroke="currentColor"${attr("stroke-width", strokeWidth)} stroke-linecap="round" stroke-linejoin="round"${attr("class", `feather feather-eye ${stringify(customClass)}`)}><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>`;
|
|
16
|
+
bind_props($$props, { size, strokeWidth, class: customClass });
|
|
17
|
+
pop();
|
|
18
|
+
}
|
|
19
|
+
function _page($$payload, $$props) {
|
|
20
|
+
push();
|
|
21
|
+
var $$store_subs;
|
|
22
|
+
let activeUrl;
|
|
23
|
+
let data = $$props["data"];
|
|
24
|
+
let pages = [];
|
|
25
|
+
console.log(data);
|
|
26
|
+
if (!data.govactions) data.govactions = [];
|
|
27
|
+
activeUrl = store_get($$store_subs ??= {}, "$page", page).url.searchParams.get("page");
|
|
28
|
+
{
|
|
29
|
+
pages.forEach((page2) => {
|
|
30
|
+
let splitUrl = page2.href.split("?");
|
|
31
|
+
let queryString = splitUrl.slice(1).join("?");
|
|
32
|
+
const hrefParams = new URLSearchParams(queryString);
|
|
33
|
+
let hrefValue = hrefParams.get("page");
|
|
34
|
+
if (hrefValue === activeUrl) {
|
|
35
|
+
page2.active = true;
|
|
36
|
+
} else {
|
|
37
|
+
page2.active = false;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
pages = pages;
|
|
41
|
+
}
|
|
42
|
+
const each_array = ensure_array_like(data.govactions);
|
|
43
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">Proposals</h2> <div class="flex flex-wrap justify-between mt-4 mb-2"><button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</button> <button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></button></div> <div class="overflow-x-auto"><table class="w-full bg-white border border-gray-300"><thead><tr><th class="py-2 px-4 bg-gray-100 font-bold text-center">Transaction Hash</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Index</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Block</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Action Type</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Return Address</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Details</th></tr></thead><tbody><!--[-->`;
|
|
44
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
45
|
+
let govaction = each_array[index];
|
|
46
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4"><a${attr("href", `/transactions/${stringify(govaction.tx_hash)}`)} class="text-blue-500"><span class="ml-2">${escape_html(truncate(govaction.tx_hash, 30, "..."))}</span></a></td><td class="py-2 px-4 text-center">${escape_html(govaction.index)}</td><td class="py-2 px-4 text-center"><a${attr("href", `/blocks/${stringify(govaction.block_number)}`)} class="text-blue-500">${escape_html(govaction.block_number)}</a></td><td class="py-2 px-4 text-center">${escape_html(govaction.type)}</td><td class="py-2 px-4 tex">${escape_html(govaction.return_address)}</td><td class="py-2 px-4 text-center"><a${attr("href", `/governance/govactions/${stringify(govaction.tx_hash)}_${stringify(govaction.index)}`)} target="_blank">`;
|
|
47
|
+
EyeIcon($$payload, { size: "1.5x" });
|
|
48
|
+
$$payload.out += `<!----></a></td></tr>`;
|
|
49
|
+
}
|
|
50
|
+
$$payload.out += `<!--]--></tbody></table></div> <div class="flex flex-wrap justify-between mt-2 mb-2"><button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">< Previous</button> <button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors" role="button">Next ></button></div></section>`;
|
|
51
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
52
|
+
bind_props($$props, { data });
|
|
53
|
+
pop();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { _page as default };
|
|
57
|
+
//# sourceMappingURL=_page.svelte-CAzLLc-T.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-CAzLLc-T.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/governance/govactions/_page.svelte.js"],"sourcesContent":["import { Z as fallback, $ as attr, a1 as bind_props, S as pop, a0 as stringify, Q as push, T as store_get, _ as ensure_array_like, Y as escape_html, W as unsubscribe_stores } from \"../../../../chunks/index.js\";\nimport \"../../../../chunks/client.js\";\nimport { p as page } from \"../../../../chunks/stores.js\";\nimport { t as truncate } from \"../../../../chunks/util.js\";\nfunction EyeIcon($$payload, $$props) {\n push();\n let size = fallback($$props[\"size\"], \"24\");\n let strokeWidth = fallback($$props[\"strokeWidth\"], 2);\n let customClass = fallback($$props[\"class\"], \"\");\n if (size !== \"100%\") {\n size = size.slice(-1) === \"x\" ? size.slice(0, size.length - 1) + \"em\" : parseInt(size) + \"px\";\n }\n $$payload.out += `<svg xmlns=\"http://www.w3.org/2000/svg\"${attr(\"width\", size)}${attr(\"height\", size)} fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\"${attr(\"stroke-width\", strokeWidth)} stroke-linecap=\"round\" stroke-linejoin=\"round\"${attr(\"class\", `feather feather-eye ${stringify(customClass)}`)}><path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"></path><circle cx=\"12\" cy=\"12\" r=\"3\"></circle></svg>`;\n bind_props($$props, { size, strokeWidth, class: customClass });\n pop();\n}\nfunction _page($$payload, $$props) {\n push();\n var $$store_subs;\n let activeUrl;\n let data = $$props[\"data\"];\n let pages = [];\n console.log(data);\n if (!data.govactions) data.govactions = [];\n activeUrl = store_get($$store_subs ??= {}, \"$page\", page).url.searchParams.get(\"page\");\n {\n pages.forEach((page2) => {\n let splitUrl = page2.href.split(\"?\");\n let queryString = splitUrl.slice(1).join(\"?\");\n const hrefParams = new URLSearchParams(queryString);\n let hrefValue = hrefParams.get(\"page\");\n if (hrefValue === activeUrl) {\n page2.active = true;\n } else {\n page2.active = false;\n }\n });\n pages = pages;\n }\n const each_array = ensure_array_like(data.govactions);\n $$payload.out += `<section class=\"container mx-auto text-sm\"><h2 class=\"text-xl font-bold text-center text-gray-500 mb-4\">Proposals</h2> <div class=\"flex flex-wrap justify-between mt-4 mb-2\"><button class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</button> <button class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></button></div> <div class=\"overflow-x-auto\"><table class=\"w-full bg-white border border-gray-300\"><thead><tr><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Transaction Hash</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Index</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Block</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Action Type</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Return Address</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Details</th></tr></thead><tbody><!--[-->`;\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let govaction = each_array[index];\n $$payload.out += `<tr${attr(\"class\", index % 2 === 0 ? \"bg-gray-50\" : \"bg-white\")}><td class=\"py-2 px-4\"><a${attr(\"href\", `/transactions/${stringify(govaction.tx_hash)}`)} class=\"text-blue-500\"><span class=\"ml-2\">${escape_html(truncate(govaction.tx_hash, 30, \"...\"))}</span></a></td><td class=\"py-2 px-4 text-center\">${escape_html(govaction.index)}</td><td class=\"py-2 px-4 text-center\"><a${attr(\"href\", `/blocks/${stringify(govaction.block_number)}`)} class=\"text-blue-500\">${escape_html(govaction.block_number)}</a></td><td class=\"py-2 px-4 text-center\">${escape_html(govaction.type)}</td><td class=\"py-2 px-4 tex\">${escape_html(govaction.return_address)}</td><td class=\"py-2 px-4 text-center\"><a${attr(\"href\", `/governance/govactions/${stringify(govaction.tx_hash)}_${stringify(govaction.index)}`)} target=\"_blank\">`;\n EyeIcon($$payload, { size: \"1.5x\" });\n $$payload.out += `<!----></a></td></tr>`;\n }\n $$payload.out += `<!--]--></tbody></table></div> <div class=\"flex flex-wrap justify-between mt-2 mb-2\"><button class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">< Previous</button> <button class=\"px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors\" role=\"button\">Next ></button></div></section>`;\n if ($$store_subs) unsubscribe_stores($$store_subs);\n bind_props($$props, { data });\n pop();\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;AAIA,SAAS,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE;AACrC,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;AAC5C,EAAE,IAAI,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;AACvD,EAAE,IAAI,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;AAClD,EAAE,IAAI,IAAI,KAAK,MAAM,EAAE;AACvB,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI;AACjG;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,uCAAuC,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,sDAAsD,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,C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K,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;AACvzB,IAAI,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACxC,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;AAC5C;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,qYAAqY,CAAC;AAC1Z,EAAE,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACpD,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC;AAC/B,EAAE,GAAG,EAAE;AACP;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { T as store_get, a0 as ensure_array_like, Z as attr, X as escape_html, _ as stringify, W as unsubscribe_stores, a1 as bind_props, x as pop, v as push } from './index-vBtQgGkr.js';
|
|
2
|
+
import './client-x9PZM0zh.js';
|
|
3
|
+
import { p as page } from './stores-B4ORdDby.js';
|
|
4
|
+
import { g as getDate, t as truncate } from './util-C18qA3ke.js';
|
|
5
|
+
import './exports-DAzLyLdf.js';
|
|
6
|
+
|
|
7
|
+
function _page($$payload, $$props) {
|
|
8
|
+
push();
|
|
9
|
+
var $$store_subs;
|
|
10
|
+
let activeUrl;
|
|
11
|
+
let data = $$props["data"];
|
|
12
|
+
let pages = [];
|
|
13
|
+
console.log(data);
|
|
14
|
+
if (!data.registrations) data.registrations = [];
|
|
15
|
+
activeUrl = store_get($$store_subs ??= {}, "$page", page).url.searchParams.get("page");
|
|
16
|
+
{
|
|
17
|
+
pages.forEach((page2) => {
|
|
18
|
+
let splitUrl = page2.href.split("?");
|
|
19
|
+
let queryString = splitUrl.slice(1).join("?");
|
|
20
|
+
const hrefParams = new URLSearchParams(queryString);
|
|
21
|
+
let hrefValue = hrefParams.get("page");
|
|
22
|
+
if (hrefValue === activeUrl) {
|
|
23
|
+
page2.active = true;
|
|
24
|
+
} else {
|
|
25
|
+
page2.active = false;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
pages = pages;
|
|
29
|
+
}
|
|
30
|
+
const each_array = ensure_array_like(data.registrations);
|
|
31
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">Stake Key Registrations</h2> <div class="flex flex-wrap justify-between mb-2"><button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors">< Previous</button> <button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors">Next ></button></div> <div class="overflow-x-auto"><table class="w-full bg-white border border-gray-300"><thead><tr><th class="py-2 px-4 bg-gray-100 font-bold text-center">Address</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Block</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Time</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Transaction Hash</th></tr></thead><tbody><!--[-->`;
|
|
32
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
33
|
+
let registration = each_array[index];
|
|
34
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4">${escape_html(registration.address)}</td><td class="py-2 px-4 text-center"><a${attr("href", `/blocks/${stringify(registration.block_number)}`)} class="text-blue-500">${escape_html(registration.block_number)}</a></td><td class="py-2 px-4 text-center">${escape_html(getDate(registration.block_time))}</td><td class="py-2 px-4"><a${attr("href", `/transactions/${stringify(registration.tx_hash)}`)} class="text-blue-500"><span class="ml-2">${escape_html(truncate(registration.tx_hash, 30, "..."))}</span></a></td></tr>`;
|
|
35
|
+
}
|
|
36
|
+
$$payload.out += `<!--]--></tbody></table></div> <div class="flex flex-wrap justify-between mt-2 mb-4"><button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors">< Previous</button> <button class="px-4 py-2 text-blue-500 font-medium rounded-md bg-gray-100 hover:bg-gray-200 transition-colors">Next ></button></div></section>`;
|
|
37
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
38
|
+
bind_props($$props, { data });
|
|
39
|
+
pop();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { _page as default };
|
|
43
|
+
//# sourceMappingURL=_page.svelte-CHZ7J0yT.js.map
|