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) 2.39 kB
import{c as K,a as o,e as M,t as f}from"./disclose-version.BTC8Bk4r.js";import"./legacy.DKpsC3nd.js";import{p as N,f as O,b as P,d as t,r as a,s as i,t as m}from"./runtime.NVyxXVLy.js";import{s as l}from"./render.Dr_6zaa7.js";import{i as c}from"./if.DkuB8BPo.js";import{s as Q}from"./attributes.CqauuZ_8.js";import{i as S}from"./lifecycle.BF-zkLgr.js";import{p as A}from"./props.Btle0pBM.js";import{c as T}from"./index-client.TDQqURXd.js";import{X as V}from"./XIcon.j6LjJLAc.js";var W=f('<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> </div></div>'),Y=f('<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> </div></div>'),Z=f('<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 target="_blank" class="text-blue-500"> </a></div></div>'),$=f('<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><!></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> </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> </div></div> <!> <!> <!></div></div>');function mt(H,n){N(n,!1);let s=A(n,"drep",24,()=>({})),I=A(n,"show",8,!1);const X=T();function j(){X("closeDetails")}S();var b=K(),E=O(b);{var L=_=>{var x=$(),w=t(x),p=t(w),u=t(p),U=t(u);V(U,{class:"cursor-pointer"}),a(u),a(p);var h=i(p,2),y=i(t(h),2),q=t(y,!0);a(y),a(h);var g=i(h,2),k=i(t(g),2),z=t(k,!0);a(k),a(g);var D=i(g,2);{var B=r=>{var e=W(),v=i(t(e),2),d=t(v,!0);a(v),a(e),m(()=>l(d,s().deposit)),o(r,e)};c(D,r=>{s().deposit&&r(B)})}var R=i(D,2);{var C=r=>{var e=Y(),v=i(t(e),2),d=t(v,!0);a(v),a(e),m(()=>l(d,s().anchor_hash)),o(r,e)};c(R,r=>{s().anchor_hash&&r(C)})}var F=i(R,2);{var G=r=>{var e=Z(),v=i(t(e),2),d=t(v),J=t(d,!0);a(d),a(v),a(e),m(()=>{Q(d,"href",s().anchor_url),l(J,s().anchor_url)}),o(r,e)};c(F,r=>{s().anchor_url&&r(G)})}a(w),a(x),m(()=>{l(q,s().drep_id),l(z,s().drep_hash)}),M("click",u,j),o(_,x)};c(E,_=>{I()&&_(L)})}o(H,b),P()}export{mt as D};