@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,47 @@
|
|
|
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 { D as DRepDetails } from './DRepDetails-CYIa-mBG.js';
|
|
5
|
+
import './exports-DAzLyLdf.js';
|
|
6
|
+
import './XIcon-CVu59ZTD.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.updates) data.updates = [];
|
|
15
|
+
let showDetails = false;
|
|
16
|
+
let selectedDRep = {};
|
|
17
|
+
activeUrl = store_get($$store_subs ??= {}, "$page", page).url.searchParams.get("page");
|
|
18
|
+
{
|
|
19
|
+
pages.forEach((page2) => {
|
|
20
|
+
let splitUrl = page2.href.split("?");
|
|
21
|
+
let queryString = splitUrl.slice(1).join("?");
|
|
22
|
+
const hrefParams = new URLSearchParams(queryString);
|
|
23
|
+
let hrefValue = hrefParams.get("page");
|
|
24
|
+
if (hrefValue === activeUrl) {
|
|
25
|
+
page2.active = true;
|
|
26
|
+
} else {
|
|
27
|
+
page2.active = false;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
pages = pages;
|
|
31
|
+
}
|
|
32
|
+
const each_array = ensure_array_like(data.updates);
|
|
33
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">DRep Updates</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><!--[-->`;
|
|
34
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
35
|
+
let drep = each_array[index];
|
|
36
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4"><a href="#" class="text-blue-500"><span class="ml-2">${escape_html(drep.drep_id)}</span></a></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>`;
|
|
37
|
+
}
|
|
38
|
+
$$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> `;
|
|
39
|
+
DRepDetails($$payload, { drep: selectedDRep, show: showDetails });
|
|
40
|
+
$$payload.out += `<!---->`;
|
|
41
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
42
|
+
bind_props($$props, { data });
|
|
43
|
+
pop();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { _page as default };
|
|
47
|
+
//# sourceMappingURL=_page.svelte-DVgnfrhX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-DVgnfrhX.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/governance/drep-updates/_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 { D as DRepDetails } from \"../../../../chunks/DRepDetails.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.updates) data.updates = [];\n let showDetails = false;\n let selectedDRep = {};\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.updates);\n $$payload.out += `<section class=\"container mx-auto text-sm\"><h2 class=\"text-xl font-bold text-center text-gray-500 mb-4\">DRep Updates</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\"><a href=\"#\" class=\"text-blue-500\"><span class=\"ml-2\">${escape_html(drep.drep_id)}</span></a></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 DRepDetails($$payload, { drep: selectedDRep, show: showDetails });\n $$payload.out += `<!---->`;\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,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAG,EAAE;AACtC,EAAE,IAAI,WAAW,GAAG,KAAK;AACzB,EAAE,IAAI,YAAY,GAAG,EAAE;AACvB,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,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,CAAC;AAC3Z,EAAE,WAAW,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AACnE,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;AAC5B,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,51 @@
|
|
|
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 { 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.votes) data.votes = [];
|
|
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.votes);
|
|
31
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">Votes</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">Block</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Gov Action Id</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Voter Type</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Vote</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Voter Hash</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Anchor URL</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Anchor Hash</th></tr></thead><tbody><!--[-->`;
|
|
32
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
33
|
+
let vote = each_array[index];
|
|
34
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4"><a${attr("href", `/transactions/${stringify(vote.tx_hash)}`)} class="text-blue-500"><span class="ml-2">${escape_html(truncate(vote.tx_hash, 30, "..."))}</span></a></td><td class="py-2 px-4 text-center"><a${attr("href", `/blocks/${stringify(vote.block_number)}`)} class="text-blue-500">${escape_html(vote.block_number)}</a></td><td class="py-2 px-4">${escape_html(vote.gov_action_tx_hash)}#${escape_html(vote.gov_action_index)}</td><td class="py-2 px-4 text-center">${escape_html(vote.voter_type)}</td><td class="py-2 px-4 text-center">${escape_html(vote.vote)}</td><td class="py-2 px-4">${escape_html(truncate(vote.voter_hash, 30, "..."))}</td>`;
|
|
35
|
+
if (vote.anchor_url) {
|
|
36
|
+
$$payload.out += "<!--[-->";
|
|
37
|
+
$$payload.out += `<td class="py-2 px-4"><a${attr("href", vote.anchor_url)} target="_blank">${escape_html(vote.anchor_url)}</a></td> <td class="py-2 px-4">${escape_html(vote.anchor_hash)}</td>`;
|
|
38
|
+
} else {
|
|
39
|
+
$$payload.out += "<!--[!-->";
|
|
40
|
+
$$payload.out += `<td class="py-2 px-4 text-center">_</td> <td class="py-2 px-4 text-center">_</td>`;
|
|
41
|
+
}
|
|
42
|
+
$$payload.out += `<!--]--></tr>`;
|
|
43
|
+
}
|
|
44
|
+
$$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>`;
|
|
45
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
46
|
+
bind_props($$props, { data });
|
|
47
|
+
pop();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { _page as default };
|
|
51
|
+
//# sourceMappingURL=_page.svelte-DaBGRG1h.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-DaBGRG1h.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/governance/votes/_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\";\nimport { 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.votes) data.votes = [];\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.votes);\n $$payload.out += `<section class=\"container mx-auto text-sm\"><h2 class=\"text-xl font-bold text-center text-gray-500 mb-4\">Votes</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\">Block</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Gov Action Id</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Voter Type</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Vote</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Voter Hash</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Anchor URL</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Anchor Hash</th></tr></thead><tbody><!--[-->`;\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let vote = 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(vote.tx_hash)}`)} class=\"text-blue-500\"><span class=\"ml-2\">${escape_html(truncate(vote.tx_hash, 30, \"...\"))}</span></a></td><td class=\"py-2 px-4 text-center\"><a${attr(\"href\", `/blocks/${stringify(vote.block_number)}`)} class=\"text-blue-500\">${escape_html(vote.block_number)}</a></td><td class=\"py-2 px-4\">${escape_html(vote.gov_action_tx_hash)}#${escape_html(vote.gov_action_index)}</td><td class=\"py-2 px-4 text-center\">${escape_html(vote.voter_type)}</td><td class=\"py-2 px-4 text-center\">${escape_html(vote.vote)}</td><td class=\"py-2 px-4\">${escape_html(truncate(vote.voter_hash, 30, \"...\"))}</td>`;\n if (vote.anchor_url) {\n $$payload.out += \"<!--[-->\";\n $$payload.out += `<td class=\"py-2 px-4\"><a${attr(\"href\", vote.anchor_url)} target=\"_blank\">${escape_html(vote.anchor_url)}</a></td> <td class=\"py-2 px-4\">${escape_html(vote.anchor_hash)}</td>`;\n } else {\n $$payload.out += \"<!--[!-->\";\n $$payload.out += `<td class=\"py-2 px-4 text-center\">_</td> <td class=\"py-2 px-4 text-center\">_</td>`;\n }\n $$payload.out += `<!--]--></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,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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,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 { 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.delegations) data.delegations = [];
|
|
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.delegations);
|
|
31
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">Delegations</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">Pool Id</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 delegation = 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(delegation.address)}</td><td class="py-2 px-4">${escape_html(delegation.pool_id)}</td><td class="py-2 px-4 text-center"><a${attr("href", `/blocks/${stringify(delegation.block_number)}`)} class="text-blue-500">${escape_html(delegation.block_number)}</a></td><td class="py-2 px-4"><a${attr("href", `/transactions/${stringify(delegation.tx_hash)}`)} class="text-blue-500"><span class="ml-2">${escape_html(truncate(delegation.tx_hash, 30, "..."))}</span></a></td></tr>`;
|
|
35
|
+
}
|
|
36
|
+
$$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>`;
|
|
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-DdI4_4kY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-DdI4_4kY.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/certificates/delegations/_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\";\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.delegations) data.delegations = [];\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.delegations);\n $$payload.out += `<section class=\"container mx-auto text-sm\"><h2 class=\"text-xl font-bold text-center text-gray-500 mb-4\">Delegations</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\">Pool Id</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 delegation = 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(delegation.address)}</td><td class=\"py-2 px-4\">${escape_html(delegation.pool_id)}</td><td class=\"py-2 px-4 text-center\"><a${attr(\"href\", `/blocks/${stringify(delegation.block_number)}`)} class=\"text-blue-500\">${escape_html(delegation.block_number)}</a></td><td class=\"py-2 px-4\"><a${attr(\"href\", `/transactions/${stringify(delegation.tx_hash)}`)} class=\"text-blue-500\"><span class=\"ml-2\">${escape_html(truncate(delegation.tx_hash, 30, \"...\"))}</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 _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,WAAW,EAAE,IAAI,CAAC,WAAW,GAAG,EAAE;AAC9C,EAAE,SAAS,GAAG,SAAS,CAAC,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AAO,CAAC,CAAC,yCAAyC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,uBAAuB,EAAE,WAAW,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,iCAAiC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,0CAA0C,EAAE,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC;AAC5kB;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,47 @@
|
|
|
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 { D as DRepDetails } from './DRepDetails-CYIa-mBG.js';
|
|
5
|
+
import './exports-DAzLyLdf.js';
|
|
6
|
+
import './XIcon-CVu59ZTD.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
|
+
let showDetails = false;
|
|
16
|
+
let selectedDRep = {};
|
|
17
|
+
activeUrl = store_get($$store_subs ??= {}, "$page", page).url.searchParams.get("page");
|
|
18
|
+
{
|
|
19
|
+
pages.forEach((page2) => {
|
|
20
|
+
let splitUrl = page2.href.split("?");
|
|
21
|
+
let queryString = splitUrl.slice(1).join("?");
|
|
22
|
+
const hrefParams = new URLSearchParams(queryString);
|
|
23
|
+
let hrefValue = hrefParams.get("page");
|
|
24
|
+
if (hrefValue === activeUrl) {
|
|
25
|
+
page2.active = true;
|
|
26
|
+
} else {
|
|
27
|
+
page2.active = false;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
pages = pages;
|
|
31
|
+
}
|
|
32
|
+
const each_array = ensure_array_like(data.registrations);
|
|
33
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">DRep 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><!--[-->`;
|
|
34
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
35
|
+
let registration = each_array[index];
|
|
36
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4"><a href="#" class="text-blue-500"><span class="ml-2">${escape_html(registration.drep_id)}</span></a></td><td class="py-2 px-4">${escape_html(registration.cred_type)}</td><td class="py-2 px-4"><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">${escape_html(registration.tx_hash)}</a></td></tr>`;
|
|
37
|
+
}
|
|
38
|
+
$$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> `;
|
|
39
|
+
DRepDetails($$payload, { drep: selectedDRep, show: showDetails });
|
|
40
|
+
$$payload.out += `<!---->`;
|
|
41
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
42
|
+
bind_props($$props, { data });
|
|
43
|
+
pop();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { _page as default };
|
|
47
|
+
//# sourceMappingURL=_page.svelte-DqQbI85h.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-DqQbI85h.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/governance/drep-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 { D as DRepDetails } from \"../../../../chunks/DRepDetails.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 let showDetails = false;\n let selectedDRep = {};\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\">DRep 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 registration = each_array[index];\n $$payload.out += `<tr${attr(\"class\", index % 2 === 0 ? \"bg-gray-50\" : \"bg-white\")}><td class=\"py-2 px-4\"><a href=\"#\" class=\"text-blue-500\"><span class=\"ml-2\">${escape_html(registration.drep_id)}</span></a></td><td class=\"py-2 px-4\">${escape_html(registration.cred_type)}</td><td class=\"py-2 px-4\"><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\">${escape_html(registration.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 DRepDetails($$payload, { drep: selectedDRep, show: showDetails });\n $$payload.out += `<!---->`;\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,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,aAAa,GAAG,EAAE;AAClD,EAAE,IAAI,WAAW,GAAG,KAAK;AACzB,EAAE,IAAI,YAAY,GAAG,EAAE;AACvB,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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OAAO,CAAC;AAC5B,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,49 @@
|
|
|
1
|
+
import { X as escape_html, a0 as ensure_array_like, Z as attr, _ as stringify, a1 as bind_props, x as pop, v as push } from './index-vBtQgGkr.js';
|
|
2
|
+
import moment from 'moment';
|
|
3
|
+
import { l as lovelaceToAda } from './ada_util-BMIfqJSl.js';
|
|
4
|
+
import { t as truncate } from './util-C18qA3ke.js';
|
|
5
|
+
|
|
6
|
+
function _page($$payload, $$props) {
|
|
7
|
+
push();
|
|
8
|
+
let data = $$props["data"];
|
|
9
|
+
let { block, txs } = data;
|
|
10
|
+
function getDate(time) {
|
|
11
|
+
if (!time) return "";
|
|
12
|
+
const date = new Date(time * 1e3);
|
|
13
|
+
const options = {
|
|
14
|
+
year: "numeric",
|
|
15
|
+
month: "long",
|
|
16
|
+
day: "numeric",
|
|
17
|
+
hour: "numeric",
|
|
18
|
+
minute: "numeric",
|
|
19
|
+
second: "numeric",
|
|
20
|
+
hour12: false
|
|
21
|
+
};
|
|
22
|
+
return date.toLocaleString(void 0, options);
|
|
23
|
+
}
|
|
24
|
+
$$payload.out += `<section class="container mx-auto text-sm"><div class="grid grid-cols-1 sm:grid-cols-2 gap-4"><article class="bg-gray-50 rounded-lg shadow-md p-4"><div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong>Hash</strong></div> <div class="bg-gray-100 py-2 px-4 break-words"><p><small>${escape_html(block.hash)}</small></p></div></div> <div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong>Number</strong></div> <div class="bg-gray-100 py-2 px-4"><p><small>${escape_html(block.number)}</small></p></div></div> <div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong>Epoch</strong></div> <div class="bg-gray-100 py-2 px-4"><p><small>${escape_html(block.epoch)}</small></p></div></div> <div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong>Slot</strong></div> <div class="bg-gray-100 py-2 px-4"><p><small>${escape_html(block.slot)}</small></p></div></div> <div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong>Era</strong></div> <div class="bg-gray-100 py-2 px-4"><p><small>${escape_html(block.era)}</small></p></div></div></article> <article class="bg-gray-50 rounded-lg shadow-md p-4"><div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong>Prev Hash</strong></div> <div class="bg-gray-100 py-2 px-4 break-words"><p><small>${escape_html(block.previous_block)}</small></p></div></div> <div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong># of Txs</strong></div> <div class="bg-gray-100 py-2 px-4"><p><small>${escape_html(block.tx_count)}</small></p></div></div> <div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong>Size</strong></div> <div class="bg-gray-100 py-2 px-4"><p><small>${escape_html(block.size)}</small></p></div></div> <div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong>Protocol version</strong></div> <div class="bg-gray-100 py-2 px-4"><p><small>${escape_html(block.protocol_version)}</small></p></div></div> <div class="flex flex-col"><div class="bg-gray-200 py-2 px-4 mb-2"><strong>Timestamp</strong></div> <div class="bg-gray-100 py-2 px-4"><p><small>${escape_html(getDate(block.time))}, ${escape_html(moment(block.time * 1e3).fromNow())}</small></p></div></div></article></div></section> `;
|
|
25
|
+
if (txs.length > 0) {
|
|
26
|
+
$$payload.out += "<!--[-->";
|
|
27
|
+
const each_array = ensure_array_like(txs);
|
|
28
|
+
$$payload.out += `<section class="container mx-auto text-sm mt-10 mb-10"><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">Tx Hash</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Total Output (Ada)</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Fee (Ada)</th><th class="py-2 px-4 bg-gray-100 font-bold">Output Addresses</th></tr></thead><tbody><!--[-->`;
|
|
29
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
30
|
+
let tx = each_array[index];
|
|
31
|
+
const each_array_1 = ensure_array_like(tx.output_addresses);
|
|
32
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4"><a${attr("href", `/transactions/${stringify(tx.tx_hash)}`)} class="text-blue-500">${escape_html(tx.tx_hash)}</a></td><td class="py-2 px-4 text-center">${escape_html(lovelaceToAda(tx.total_output))}</td><td class="py-2 px-4 text-center">${escape_html(lovelaceToAda(tx.fee))}</td><td class="py-2 px-4"><!--[-->`;
|
|
33
|
+
for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {
|
|
34
|
+
let address = each_array_1[$$index];
|
|
35
|
+
$$payload.out += `<!---->${escape_html(truncate(address, 25, "..."))}<br>`;
|
|
36
|
+
}
|
|
37
|
+
$$payload.out += `<!--]--></td></tr>`;
|
|
38
|
+
}
|
|
39
|
+
$$payload.out += `<!--]--></tbody></table></div></section>`;
|
|
40
|
+
} else {
|
|
41
|
+
$$payload.out += "<!--[!-->";
|
|
42
|
+
}
|
|
43
|
+
$$payload.out += `<!--]-->`;
|
|
44
|
+
bind_props($$props, { data });
|
|
45
|
+
pop();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { _page as default };
|
|
49
|
+
//# sourceMappingURL=_page.svelte-aF-4mYR9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-aF-4mYR9.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/blocks/_number_/_page.svelte.js"],"sourcesContent":["import { Y as escape_html, _ as ensure_array_like, $ as attr, a0 as stringify, a1 as bind_props, S as pop, Q as push } from \"../../../../chunks/index.js\";\nimport moment from \"moment\";\nimport { l as lovelaceToAda } from \"../../../../chunks/ada_util.js\";\nimport { t as truncate } from \"../../../../chunks/util.js\";\nfunction _page($$payload, $$props) {\n push();\n let data = $$props[\"data\"];\n let { block, txs } = data;\n function getDate(time) {\n if (!time) return \"\";\n const date = new Date(time * 1e3);\n const options = {\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\",\n hour12: false\n };\n return date.toLocaleString(void 0, options);\n }\n $$payload.out += `<section class=\"container mx-auto text-sm\"><div class=\"grid grid-cols-1 sm:grid-cols-2 gap-4\"><article class=\"bg-gray-50 rounded-lg shadow-md p-4\"><div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong>Hash</strong></div> <div class=\"bg-gray-100 py-2 px-4 break-words\"><p><small>${escape_html(block.hash)}</small></p></div></div> <div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong>Number</strong></div> <div class=\"bg-gray-100 py-2 px-4\"><p><small>${escape_html(block.number)}</small></p></div></div> <div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong>Epoch</strong></div> <div class=\"bg-gray-100 py-2 px-4\"><p><small>${escape_html(block.epoch)}</small></p></div></div> <div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong>Slot</strong></div> <div class=\"bg-gray-100 py-2 px-4\"><p><small>${escape_html(block.slot)}</small></p></div></div> <div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong>Era</strong></div> <div class=\"bg-gray-100 py-2 px-4\"><p><small>${escape_html(block.era)}</small></p></div></div></article> <article class=\"bg-gray-50 rounded-lg shadow-md p-4\"><div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong>Prev Hash</strong></div> <div class=\"bg-gray-100 py-2 px-4 break-words\"><p><small>${escape_html(block.previous_block)}</small></p></div></div> <div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong># of Txs</strong></div> <div class=\"bg-gray-100 py-2 px-4\"><p><small>${escape_html(block.tx_count)}</small></p></div></div> <div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong>Size</strong></div> <div class=\"bg-gray-100 py-2 px-4\"><p><small>${escape_html(block.size)}</small></p></div></div> <div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong>Protocol version</strong></div> <div class=\"bg-gray-100 py-2 px-4\"><p><small>${escape_html(block.protocol_version)}</small></p></div></div> <div class=\"flex flex-col\"><div class=\"bg-gray-200 py-2 px-4 mb-2\"><strong>Timestamp</strong></div> <div class=\"bg-gray-100 py-2 px-4\"><p><small>${escape_html(getDate(block.time))}, ${escape_html(moment(block.time * 1e3).fromNow())}</small></p></div></div></article></div></section> `;\n if (txs.length > 0) {\n $$payload.out += \"<!--[-->\";\n const each_array = ensure_array_like(txs);\n $$payload.out += `<section class=\"container mx-auto text-sm mt-10 mb-10\"><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\">Tx Hash</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Total Output (Ada)</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Fee (Ada)</th><th class=\"py-2 px-4 bg-gray-100 font-bold\">Output Addresses</th></tr></thead><tbody><!--[-->`;\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let tx = each_array[index];\n const each_array_1 = ensure_array_like(tx.output_addresses);\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(tx.tx_hash)}`)} class=\"text-blue-500\">${escape_html(tx.tx_hash)}</a></td><td class=\"py-2 px-4 text-center\">${escape_html(lovelaceToAda(tx.total_output))}</td><td class=\"py-2 px-4 text-center\">${escape_html(lovelaceToAda(tx.fee))}</td><td class=\"py-2 px-4\"><!--[-->`;\n for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {\n let address = each_array_1[$$index];\n $$payload.out += `<!---->${escape_html(truncate(address, 25, \"...\"))}<br>`;\n }\n $$payload.out += `<!--]--></td></tr>`;\n }\n $$payload.out += `<!--]--></tbody></table></div></section>`;\n } else {\n $$payload.out += \"<!--[!-->\";\n }\n $$payload.out += `<!--]-->`;\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,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;AAC5B,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;AAC3B,EAAE,SAAS,OAAO,CAAC,IAAI,EAAE;AACzB,IAAI,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE;AACxB,IAAI,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;AACrC,IAAI,MAAM,OAAO,GAAG;AACpB,MAAM,IAAI,EAAE,SAAS;AACrB,MAAM,KAAK,EAAE,MAAM;AACnB,MAAM,GAAG,EAAE,SAAS;AACpB,MAAM,IAAI,EAAE,SAAS;AACrB,MAAM,MAAM,EAAE,SAAS;AACvB,MAAM,MAAM,EAAE,SAAS;AACvB,MAAM,MAAM,EAAE;AACd,KAAK;AACL,IAAI,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;AAC/C;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,2SAA2S,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,uKAAuK,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,sKAAsK,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,qKAAqK,EAAE,WA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,CAAC,CAAC,uBAAuB,EAAE,WAAW,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,2CAA2C,EAAE,WAAW,CAAC,aAAa,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,uCAAuC,EAAE,WAAW,CAAC,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,mCAAmC,CAAC;AACpa,MAAM,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,EAAE,OAAO,EAAE,EAAE;AAC7F,QAAQ,IAAI,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;AAC3C,QAAQ,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AAClF;AACA,MAAM,SAAS,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;AAC3C;AACA,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,wCAAwC,CAAC;AAC/D,GAAG,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,CAAC;AAC/B,EAAE,GAAG,EAAE;AACP;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { 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.votes) data.votes = [];
|
|
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.votes);
|
|
31
|
+
$$payload.out += `<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-gray-500 mb-4">Votes</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">Block</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Gov Action Id</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Voter Type</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Vote</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Voter Hash</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Anchor URL</th><th class="py-2 px-4 bg-gray-100 font-bold text-center">Anchor Hash</th></tr></thead><tbody><!--[-->`;
|
|
32
|
+
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
33
|
+
let vote = each_array[index];
|
|
34
|
+
$$payload.out += `<tr${attr("class", index % 2 === 0 ? "bg-gray-50" : "bg-white")}><td class="py-2 px-4"><a${attr("href", `/transactions/${stringify(vote.tx_hash)}`)} class="text-blue-500"><span class="ml-2">${escape_html(truncate(vote.tx_hash, 30, "..."))}</span></a></td><td class="py-2 px-4 text-center"><a${attr("href", `/blocks/${stringify(vote.block_number)}`)} class="text-blue-500">${escape_html(vote.block_number)}</a></td><td class="py-2 px-4">${escape_html(vote.gov_action_tx_hash)}#${escape_html(vote.gov_action_index)}</td><td class="py-2 px-4 text-center">${escape_html(vote.voter_type)}</td><td class="py-2 px-4 text-center">${escape_html(vote.vote)}</td><td class="py-2 px-4">${escape_html(truncate(vote.voter_hash, 30, "..."))}</td>`;
|
|
35
|
+
if (vote.anchor_url) {
|
|
36
|
+
$$payload.out += "<!--[-->";
|
|
37
|
+
$$payload.out += `<td class="py-2 px-4"><a${attr("href", vote.anchor_url)} target="_blank">${escape_html(vote.anchor_url)}</a></td> <td class="py-2 px-4">${escape_html(vote.anchor_hash)}</td>`;
|
|
38
|
+
} else {
|
|
39
|
+
$$payload.out += "<!--[!-->";
|
|
40
|
+
$$payload.out += `<td class="py-2 px-4 text-center">_</td> <td class="py-2 px-4 text-center">_</td>`;
|
|
41
|
+
}
|
|
42
|
+
$$payload.out += `<!--]--></tr>`;
|
|
43
|
+
}
|
|
44
|
+
$$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>`;
|
|
45
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
46
|
+
bind_props($$props, { data });
|
|
47
|
+
pop();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { _page as default };
|
|
51
|
+
//# sourceMappingURL=_page.svelte-jWMiLGnn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-jWMiLGnn.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/governance/_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\";\nimport { 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.votes) data.votes = [];\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.votes);\n $$payload.out += `<section class=\"container mx-auto text-sm\"><h2 class=\"text-xl font-bold text-center text-gray-500 mb-4\">Votes</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\">Block</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Gov Action Id</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Voter Type</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Vote</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Voter Hash</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Anchor URL</th><th class=\"py-2 px-4 bg-gray-100 font-bold text-center\">Anchor Hash</th></tr></thead><tbody><!--[-->`;\n for (let index = 0, $$length = each_array.length; index < $$length; index++) {\n let vote = 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(vote.tx_hash)}`)} class=\"text-blue-500\"><span class=\"ml-2\">${escape_html(truncate(vote.tx_hash, 30, \"...\"))}</span></a></td><td class=\"py-2 px-4 text-center\"><a${attr(\"href\", `/blocks/${stringify(vote.block_number)}`)} class=\"text-blue-500\">${escape_html(vote.block_number)}</a></td><td class=\"py-2 px-4\">${escape_html(vote.gov_action_tx_hash)}#${escape_html(vote.gov_action_index)}</td><td class=\"py-2 px-4 text-center\">${escape_html(vote.voter_type)}</td><td class=\"py-2 px-4 text-center\">${escape_html(vote.vote)}</td><td class=\"py-2 px-4\">${escape_html(truncate(vote.voter_hash, 30, \"...\"))}</td>`;\n if (vote.anchor_url) {\n $$payload.out += \"<!--[-->\";\n $$payload.out += `<td class=\"py-2 px-4\"><a${attr(\"href\", vote.anchor_url)} target=\"_blank\">${escape_html(vote.anchor_url)}</a></td> <td class=\"py-2 px-4\">${escape_html(vote.anchor_hash)}</td>`;\n } else {\n $$payload.out += \"<!--[!-->\";\n $$payload.out += `<td class=\"py-2 px-4 text-center\">_</td> <td class=\"py-2 px-4 text-center\">_</td>`;\n }\n $$payload.out += `<!--]--></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,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,KAAK,EAAE,IAAI,CAAC,KAAK,GAAG,EAAE;AAClC,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,OA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AAC,UAAU,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;AAClvB,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,SAAS,CAAC,GAAG,IAAI,UAAU;AACjC,MAAM,SAAS,CAAC,GAAG,IAAI,CAAC,wBAAwB,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,iBAAiB,EAAE,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,gCAAgC,EAAE,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC;AACtM,KAAK,MAAM;AACX,MAAM,SAAS,CAAC,GAAG,IAAI,WAAW;AAClC,MAAM,SAAS,CAAC,GAAG,IAAI,CAAC,iFAAiF,CAAC;AAC1G;AACA,IAAI,SAAS,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;AACpC;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,11 @@
|
|
|
1
|
+
function lovelaceToAda(num, decimalPlaces) {
|
|
2
|
+
if (!decimalPlaces)
|
|
3
|
+
return num / Math.pow(10, 6);
|
|
4
|
+
else {
|
|
5
|
+
let ada = num / Math.pow(10, 6);
|
|
6
|
+
return ada.toFixed(decimalPlaces);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { lovelaceToAda as l };
|
|
11
|
+
//# sourceMappingURL=ada_util-BMIfqJSl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ada_util-BMIfqJSl.js","sources":["../../../.svelte-kit/adapter-node/chunks/ada_util.js"],"sourcesContent":["function lovelaceToAda(num, decimalPlaces) {\n if (!decimalPlaces)\n return num / Math.pow(10, 6);\n else {\n let ada = num / Math.pow(10, 6);\n return ada.toFixed(decimalPlaces);\n }\n}\nexport {\n lovelaceToAda as l\n};\n"],"names":[],"mappings":"AAAA,SAAS,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;AAC3C,EAAE,IAAI,CAAC,aAAa;AACpB,IAAI,OAAO,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AAChC,OAAO;AACP,IAAI,IAAI,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACnC,IAAI,OAAO,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC;AACrC;AACA;;;;"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { w as writable } from './exports-DAzLyLdf.js';
|
|
2
|
+
import { a2 as noop } from './index-vBtQgGkr.js';
|
|
3
|
+
|
|
4
|
+
function get(key, parse = JSON.parse) {
|
|
5
|
+
try {
|
|
6
|
+
return parse(sessionStorage[key]);
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const SNAPSHOT_KEY = "sveltekit:snapshot";
|
|
11
|
+
const SCROLL_KEY = "sveltekit:scroll";
|
|
12
|
+
function notifiable_store(value) {
|
|
13
|
+
const store = writable(value);
|
|
14
|
+
let ready = true;
|
|
15
|
+
function notify() {
|
|
16
|
+
ready = true;
|
|
17
|
+
store.update((val) => val);
|
|
18
|
+
}
|
|
19
|
+
function set(new_value) {
|
|
20
|
+
ready = false;
|
|
21
|
+
store.set(new_value);
|
|
22
|
+
}
|
|
23
|
+
function subscribe(run) {
|
|
24
|
+
let old_value;
|
|
25
|
+
return store.subscribe((new_value) => {
|
|
26
|
+
if (old_value === void 0 || ready && new_value !== old_value) {
|
|
27
|
+
run(old_value = new_value);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return { notify, set, subscribe };
|
|
32
|
+
}
|
|
33
|
+
function create_updated_store() {
|
|
34
|
+
const { set, subscribe } = writable(false);
|
|
35
|
+
{
|
|
36
|
+
return {
|
|
37
|
+
subscribe,
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
39
|
+
check: async () => false
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
let updated;
|
|
44
|
+
const is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
|
45
|
+
if (is_legacy) {
|
|
46
|
+
({
|
|
47
|
+
data: {},
|
|
48
|
+
form: null,
|
|
49
|
+
error: null,
|
|
50
|
+
params: {},
|
|
51
|
+
route: { id: null },
|
|
52
|
+
state: {},
|
|
53
|
+
status: -1,
|
|
54
|
+
url: new URL("https://example.com")
|
|
55
|
+
});
|
|
56
|
+
updated = { current: false };
|
|
57
|
+
} else {
|
|
58
|
+
updated = new class Updated {
|
|
59
|
+
current = false;
|
|
60
|
+
}();
|
|
61
|
+
}
|
|
62
|
+
get(SCROLL_KEY) ?? {};
|
|
63
|
+
get(SNAPSHOT_KEY) ?? {};
|
|
64
|
+
const stores = {
|
|
65
|
+
url: /* @__PURE__ */ notifiable_store({}),
|
|
66
|
+
page: /* @__PURE__ */ notifiable_store({}),
|
|
67
|
+
navigating: /* @__PURE__ */ writable(
|
|
68
|
+
/** @type {import('@sveltejs/kit').Navigation | null} */
|
|
69
|
+
null
|
|
70
|
+
),
|
|
71
|
+
updated: /* @__PURE__ */ create_updated_store()
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export { stores as s, updated as u };
|
|
75
|
+
//# sourceMappingURL=client-x9PZM0zh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-x9PZM0zh.js","sources":["../../../.svelte-kit/adapter-node/chunks/client.js"],"sourcesContent":["import \"clsx\";\nimport { w as writable } from \"./exports.js\";\nimport { a2 as noop } from \"./index.js\";\nfunction get(key, parse = JSON.parse) {\n try {\n return parse(sessionStorage[key]);\n } catch {\n }\n}\nconst SNAPSHOT_KEY = \"sveltekit:snapshot\";\nconst SCROLL_KEY = \"sveltekit:scroll\";\nfunction notifiable_store(value) {\n const store = writable(value);\n let ready = true;\n function notify() {\n ready = true;\n store.update((val) => val);\n }\n function set(new_value) {\n ready = false;\n store.set(new_value);\n }\n function subscribe(run) {\n let old_value;\n return store.subscribe((new_value) => {\n if (old_value === void 0 || ready && new_value !== old_value) {\n run(old_value = new_value);\n }\n });\n }\n return { notify, set, subscribe };\n}\nfunction create_updated_store() {\n const { set, subscribe } = writable(false);\n {\n return {\n subscribe,\n // eslint-disable-next-line @typescript-eslint/require-await\n check: async () => false\n };\n }\n}\nlet updated;\nconst is_legacy = noop.toString().includes(\"$$\") || /function \\w+\\(\\) \\{\\}/.test(noop.toString());\nif (is_legacy) {\n ({\n data: {},\n form: null,\n error: null,\n params: {},\n route: { id: null },\n state: {},\n status: -1,\n url: new URL(\"https://example.com\")\n });\n updated = { current: false };\n} else {\n updated = new class Updated {\n current = false;\n }();\n}\nget(SCROLL_KEY) ?? {};\nget(SNAPSHOT_KEY) ?? {};\nconst stores = {\n url: /* @__PURE__ */ notifiable_store({}),\n page: /* @__PURE__ */ notifiable_store({}),\n navigating: /* @__PURE__ */ writable(\n /** @type {import('@sveltejs/kit').Navigation | null} */\n null\n ),\n updated: /* @__PURE__ */ create_updated_store()\n};\nexport {\n stores as s,\n updated as u\n};\n"],"names":[],"mappings":";;;AAGA,SAAS,GAAG,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE;AACtC,EAAE,IAAI;AACN,IAAI,OAAO,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AACrC,GAAG,CAAC,MAAM;AACV;AACA;AACA,MAAM,YAAY,GAAG,oBAAoB;AACzC,MAAM,UAAU,GAAG,kBAAkB;AACrC,SAAS,gBAAgB,CAAC,KAAK,EAAE;AACjC,EAAE,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AAE,EAAE,EAAE,EAAE,IAAI,EAAE;AACvB,IAAI,KAAK,EAAE,EAAE;AACb,IAAI,MAAM,EAAE,CAAC,CAAC;AACd,IAAI,GAAG,EAAE,IAAI,GAAG,CAAC,qBAAqB;AACtC,GAAG;AACH,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE;AAC9B,CAAC,MAAM;AACP,EAAE,OAAO,GAAG,IAAI,MAAM,OAAO,CAAC;AAC9B,IAAI,OAAO,GAAG,KAAK;AACnB,GAAG,EAAE;AACL;AACA,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE;AACrB,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE;AAClB,MAAC,MAAM,GAAG;AACf,EAAE,GAAG,kBAAkB,gBAAgB,CAAC,EAAE,CAAC;AAC3C,EAAE,IAAI,kBAAkB,gBAAgB,CAAC,EAAE,CAAC;AAC5C,EAAE,UAAU,kBAAkB,QAAQ;AACtC;AACA,IAAI;AACJ,GAAG;AACH,EAAE,OAAO,kBAAkB,oBAAoB;AAC/C;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { X as escape_html, x as pop, v as push, Y as getContext } from './index-vBtQgGkr.js';
|
|
2
|
+
import { u as updated, s as stores } from './client-x9PZM0zh.js';
|
|
3
|
+
import './exports-DAzLyLdf.js';
|
|
4
|
+
|
|
5
|
+
({
|
|
6
|
+
get current() {
|
|
7
|
+
return updated.current;
|
|
8
|
+
},
|
|
9
|
+
check: stores.updated.check
|
|
10
|
+
});
|
|
11
|
+
function context() {
|
|
12
|
+
return getContext("__request__");
|
|
13
|
+
}
|
|
14
|
+
const page$1 = {
|
|
15
|
+
get data() {
|
|
16
|
+
return context().page.data;
|
|
17
|
+
},
|
|
18
|
+
get error() {
|
|
19
|
+
return context().page.error;
|
|
20
|
+
},
|
|
21
|
+
get form() {
|
|
22
|
+
return context().page.form;
|
|
23
|
+
},
|
|
24
|
+
get params() {
|
|
25
|
+
return context().page.params;
|
|
26
|
+
},
|
|
27
|
+
get route() {
|
|
28
|
+
return context().page.route;
|
|
29
|
+
},
|
|
30
|
+
get state() {
|
|
31
|
+
return context().page.state;
|
|
32
|
+
},
|
|
33
|
+
get status() {
|
|
34
|
+
return context().page.status;
|
|
35
|
+
},
|
|
36
|
+
get url() {
|
|
37
|
+
return context().page.url;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const page = page$1;
|
|
41
|
+
function Error$1($$payload, $$props) {
|
|
42
|
+
push();
|
|
43
|
+
$$payload.out += `<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`;
|
|
44
|
+
pop();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { Error$1 as default };
|
|
48
|
+
//# sourceMappingURL=error.svelte-Bin-JAI8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.svelte-Bin-JAI8.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import { X as getContext, Y as escape_html, S as pop, Q as push } from \"../../chunks/index.js\";\nimport \"clsx\";\nimport { u as updated, s as stores } from \"../../chunks/client.js\";\n({\n get current() {\n return updated.current;\n },\n check: stores.updated.check\n});\nfunction context() {\n return getContext(\"__request__\");\n}\nconst page$1 = {\n get data() {\n return context().page.data;\n },\n get error() {\n return context().page.error;\n },\n get form() {\n return context().page.form;\n },\n get params() {\n return context().page.params;\n },\n get route() {\n return context().page.route;\n },\n get state() {\n return context().page.state;\n },\n get status() {\n return context().page.status;\n },\n get url() {\n return context().page.url;\n }\n};\nconst page = page$1;\nfunction Error$1($$payload, $$props) {\n push();\n $$payload.out += `<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`;\n pop();\n}\nexport {\n Error$1 as default\n};\n"],"names":[],"mappings":";;;;AAGA,CAAC;AACD,EAAE,IAAI,OAAO,GAAG;AAChB,IAAI,OAAO,OAAO,CAAC,OAAO;AAC1B,GAAG;AACH,EAAE,K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