UNPKG

@bloxbean/yaci-viewer

Version:

A Cardano blockchain data viewer for developers. It works with the Yaci-Store backend, supporting both a local devnet and public networks.

2 lines (1 loc) 489 B
import{h as y,i,j as A,E as I,H as N,k as p,o as R,q as o,u as _,v as u,w as h,x as g,U as k}from"./runtime.NVyxXVLy.js";function S(d,v,E=!1){i&&A();var e=d,a=null,s=null,f=k,T=E?I:0,r=!1;const b=(l,t=!0)=>{r=!0,n(t,l)},n=(l,t)=>{if(f===(f=l))return;let c=!1;if(i){const m=e.data===N;!!f===m&&(e=p(),R(e),o(!1),c=!0)}f?(a?_(a):t&&(a=u(()=>t(e))),s&&h(s,()=>{s=null})):(s?_(s):t&&(s=u(()=>t(e))),a&&h(a,()=>{a=null})),c&&o(!0)};y(()=>{r=!1,v(b),r||n(null,null)},T),i&&(e=g)}export{S as i};