@bloxbean/yaci-viewer 0.12.0-beta2 → 0.12.0-beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/build/client/_app/immutable/chunks/{entry.CCc6ivWK.js → entry.CIxqEXQ4.js} +1 -1
  2. package/build/client/_app/immutable/chunks/entry.CIxqEXQ4.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/entry.CIxqEXQ4.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/public.Cg9ABQSF.js +1 -0
  5. package/build/client/_app/immutable/chunks/public.Cg9ABQSF.js.br +2 -0
  6. package/build/client/_app/immutable/chunks/public.Cg9ABQSF.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{store.B6ZMmWK9.js → store.VkFxTXoZ.js} +1 -1
  8. package/build/client/_app/immutable/chunks/store.VkFxTXoZ.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/store.VkFxTXoZ.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{stores.YYNNEhuW.js → stores.CVJU6lLm.js} +1 -1
  11. package/build/client/_app/immutable/chunks/stores.CVJU6lLm.js.br +5 -0
  12. package/build/client/_app/immutable/chunks/stores.CVJU6lLm.js.gz +0 -0
  13. package/build/client/_app/immutable/entry/{app.vg2ej5nF.js → app.CmFYXRt4.js} +2 -2
  14. package/build/client/_app/immutable/entry/app.CmFYXRt4.js.br +0 -0
  15. package/build/client/_app/immutable/entry/app.CmFYXRt4.js.gz +0 -0
  16. package/build/client/_app/immutable/entry/start.BSC8oH7I.js +1 -0
  17. package/build/client/_app/immutable/entry/start.BSC8oH7I.js.br +2 -0
  18. package/build/client/_app/immutable/entry/start.BSC8oH7I.js.gz +0 -0
  19. package/build/client/_app/immutable/nodes/{0.DO8fnKyK.js → 0.CnhlbXlG.js} +1 -1
  20. package/build/client/_app/immutable/nodes/0.CnhlbXlG.js.br +0 -0
  21. package/build/client/_app/immutable/nodes/0.CnhlbXlG.js.gz +0 -0
  22. package/build/client/_app/immutable/nodes/{1.CnqgkFYO.js → 1.CEfPfrDT.js} +1 -1
  23. package/build/client/_app/immutable/nodes/1.CEfPfrDT.js.br +0 -0
  24. package/build/client/_app/immutable/nodes/1.CEfPfrDT.js.gz +0 -0
  25. package/build/client/_app/immutable/nodes/{10.p0VNPfQv.js → 10.Kjz5TWFJ.js} +1 -1
  26. package/build/client/_app/immutable/nodes/10.Kjz5TWFJ.js.br +0 -0
  27. package/build/client/_app/immutable/nodes/10.Kjz5TWFJ.js.gz +0 -0
  28. package/build/client/_app/immutable/nodes/{11.BxUpM7Iz.js → 11.0TcWaSTP.js} +1 -1
  29. package/build/client/_app/immutable/nodes/11.0TcWaSTP.js.br +0 -0
  30. package/build/client/_app/immutable/nodes/11.0TcWaSTP.js.gz +0 -0
  31. package/build/client/_app/immutable/nodes/{12.2LMqwzMV.js → 12.DN2FDZhL.js} +1 -1
  32. package/build/client/_app/immutable/nodes/12.DN2FDZhL.js.br +0 -0
  33. package/build/client/_app/immutable/nodes/12.DN2FDZhL.js.gz +0 -0
  34. package/build/client/_app/immutable/nodes/{14.ClWyd-Vk.js → 14.BNuH-Eu_.js} +1 -1
  35. package/build/client/_app/immutable/nodes/14.BNuH-Eu_.js.br +0 -0
  36. package/build/client/_app/immutable/nodes/14.BNuH-Eu_.js.gz +0 -0
  37. package/build/client/_app/immutable/nodes/{15.DkgombJf.js → 15.BqKqeP3q.js} +1 -1
  38. package/build/client/_app/immutable/nodes/15.BqKqeP3q.js.br +0 -0
  39. package/build/client/_app/immutable/nodes/15.BqKqeP3q.js.gz +0 -0
  40. package/build/client/_app/immutable/nodes/{16.Dvth-7uZ.js → 16.DWQxSzTJ.js} +1 -1
  41. package/build/client/_app/immutable/nodes/16.DWQxSzTJ.js.br +0 -0
  42. package/build/client/_app/immutable/nodes/16.DWQxSzTJ.js.gz +0 -0
  43. package/build/client/_app/immutable/nodes/{17.Dp-gPboV.js → 17.BOJMH0D3.js} +1 -1
  44. package/build/client/_app/immutable/nodes/17.BOJMH0D3.js.br +0 -0
  45. package/build/client/_app/immutable/nodes/17.BOJMH0D3.js.gz +0 -0
  46. package/build/client/_app/immutable/nodes/{18.D0Py8O5g.js → 18.DNgJ539U.js} +1 -1
  47. package/build/client/_app/immutable/nodes/18.DNgJ539U.js.br +0 -0
  48. package/build/client/_app/immutable/nodes/18.DNgJ539U.js.gz +0 -0
  49. package/build/client/_app/immutable/nodes/{19.B8YP-0em.js → 19.wWcxh7D5.js} +1 -1
  50. package/build/client/_app/immutable/nodes/19.wWcxh7D5.js.br +0 -0
  51. package/build/client/_app/immutable/nodes/19.wWcxh7D5.js.gz +0 -0
  52. package/build/client/_app/immutable/nodes/{2.D36vxkNn.js → 2.BNyBm7as.js} +2 -2
  53. package/build/client/_app/immutable/nodes/2.BNyBm7as.js.br +0 -0
  54. package/build/client/_app/immutable/nodes/{2.D36vxkNn.js.gz → 2.BNyBm7as.js.gz} +0 -0
  55. package/build/client/_app/immutable/nodes/{20.B-_oOl1E.js → 20.BJMNFeeL.js} +1 -1
  56. package/build/client/_app/immutable/nodes/20.BJMNFeeL.js.br +0 -0
  57. package/build/client/_app/immutable/nodes/20.BJMNFeeL.js.gz +0 -0
  58. package/build/client/_app/immutable/nodes/{22.DL8qvNAW.js → 22.D68JOgTs.js} +1 -1
  59. package/build/client/_app/immutable/nodes/22.D68JOgTs.js.br +0 -0
  60. package/build/client/_app/immutable/nodes/22.D68JOgTs.js.gz +0 -0
  61. package/build/client/_app/immutable/nodes/{23.CBw5C_0j.js → 23.DnyBOdU1.js} +1 -1
  62. package/build/client/_app/immutable/nodes/23.DnyBOdU1.js.br +0 -0
  63. package/build/client/_app/immutable/nodes/23.DnyBOdU1.js.gz +0 -0
  64. package/build/client/_app/immutable/nodes/{24.CBv9jMbW.js → 24.DBMeWY9F.js} +1 -1
  65. package/build/client/_app/immutable/nodes/24.DBMeWY9F.js.br +0 -0
  66. package/build/client/_app/immutable/nodes/24.DBMeWY9F.js.gz +0 -0
  67. package/build/client/_app/immutable/nodes/{29.57wevVyz.js → 29.DsO9mtnA.js} +1 -1
  68. package/build/client/_app/immutable/nodes/29.DsO9mtnA.js.br +0 -0
  69. package/build/client/_app/immutable/nodes/29.DsO9mtnA.js.gz +0 -0
  70. package/build/client/_app/immutable/nodes/{3.BdzQthDt.js → 3.D5Z-D7cg.js} +1 -1
  71. package/build/client/_app/immutable/nodes/3.D5Z-D7cg.js.br +0 -0
  72. package/build/client/_app/immutable/nodes/3.D5Z-D7cg.js.gz +0 -0
  73. package/build/client/_app/immutable/nodes/{30.DERDxRu1.js → 30.B1M9pyvz.js} +1 -1
  74. package/build/client/_app/immutable/nodes/30.B1M9pyvz.js.br +0 -0
  75. package/build/client/_app/immutable/nodes/30.B1M9pyvz.js.gz +0 -0
  76. package/build/client/_app/immutable/nodes/{31.C8O6Gt-Y.js → 31.Dl3JxBXC.js} +1 -1
  77. package/build/client/_app/immutable/nodes/31.Dl3JxBXC.js.br +0 -0
  78. package/build/client/_app/immutable/nodes/31.Dl3JxBXC.js.gz +0 -0
  79. package/build/client/_app/immutable/nodes/{32.Duqv-ETD.js → 32._coQsal9.js} +1 -1
  80. package/build/client/_app/immutable/nodes/32._coQsal9.js.br +0 -0
  81. package/build/client/_app/immutable/nodes/32._coQsal9.js.gz +0 -0
  82. package/build/client/_app/immutable/nodes/{33.BLbFkvp4.js → 33.Fna2TYYz.js} +1 -1
  83. package/build/client/_app/immutable/nodes/33.Fna2TYYz.js.br +0 -0
  84. package/build/client/_app/immutable/nodes/33.Fna2TYYz.js.gz +0 -0
  85. package/build/client/_app/immutable/nodes/{34.nySJyjVu.js → 34.DUX5kztm.js} +1 -1
  86. package/build/client/_app/immutable/nodes/34.DUX5kztm.js.br +0 -0
  87. package/build/client/_app/immutable/nodes/34.DUX5kztm.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/{36.YCCz-AQy.js → 36.DU1WZKXu.js} +1 -1
  89. package/build/client/_app/immutable/nodes/36.DU1WZKXu.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/36.DU1WZKXu.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/{37.CTr5-7Hs.js → 37.DQK_g37o.js} +1 -1
  92. package/build/client/_app/immutable/nodes/37.DQK_g37o.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/37.DQK_g37o.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/{39.DnNtti8A.js → 39.BF29E_1V.js} +1 -1
  95. package/build/client/_app/immutable/nodes/39.BF29E_1V.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/39.BF29E_1V.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/{40.B6s3kiIA.js → 40.B0iQ1rVo.js} +1 -1
  98. package/build/client/_app/immutable/nodes/40.B0iQ1rVo.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/40.B0iQ1rVo.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/{41.BJ0CJVst.js → 41.Dapk_1fO.js} +1 -1
  101. package/build/client/_app/immutable/nodes/41.Dapk_1fO.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/41.Dapk_1fO.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/{42.CP7meNtd.js → 42.qVcwCg2f.js} +1 -1
  104. package/build/client/_app/immutable/nodes/42.qVcwCg2f.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/42.qVcwCg2f.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/{43.CwrjIyYj.js → 43.B-WhBojc.js} +1 -1
  107. package/build/client/_app/immutable/nodes/43.B-WhBojc.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/43.B-WhBojc.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/{45.CQTWEKC-.js → 45.DCDbXoAQ.js} +1 -1
  110. package/build/client/_app/immutable/nodes/45.DCDbXoAQ.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/45.DCDbXoAQ.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/{46.CB8Ukxx9.js → 46.BWmFs_Wn.js} +1 -1
  113. package/build/client/_app/immutable/nodes/46.BWmFs_Wn.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/46.BWmFs_Wn.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/{48.1sEUGiLV.js → 48.Dd3bZtJ7.js} +1 -1
  116. package/build/client/_app/immutable/nodes/48.Dd3bZtJ7.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/48.Dd3bZtJ7.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/{5.DHtSaMm3.js → 5.CwWpmAcP.js} +1 -1
  119. package/build/client/_app/immutable/nodes/5.CwWpmAcP.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/5.CwWpmAcP.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/{6.CUJzwM8x.js → 6.DDW84NXf.js} +1 -1
  122. package/build/client/_app/immutable/nodes/6.DDW84NXf.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/6.DDW84NXf.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/{7.B4ohbnGa.js → 7.CcxXkyC-.js} +1 -1
  125. package/build/client/_app/immutable/nodes/7.CcxXkyC-.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/7.CcxXkyC-.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/{8.B268U1yc.js → 8.BtODz6me.js} +1 -1
  128. package/build/client/_app/immutable/nodes/8.BtODz6me.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/8.BtODz6me.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/{9.DKx9YH97.js → 9.DUgj7B4l.js} +1 -1
  131. package/build/client/_app/immutable/nodes/9.DUgj7B4l.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/9.DUgj7B4l.js.gz +0 -0
  133. package/build/client/_app/version.json +1 -1
  134. package/build/client/_app/version.json.br +0 -0
  135. package/build/client/_app/version.json.gz +0 -0
  136. package/build/server/chunks/{0-BPmNDSCo.js → 0-B-jD0b8l.js} +2 -2
  137. package/build/server/chunks/{0-BPmNDSCo.js.map → 0-B-jD0b8l.js.map} +1 -1
  138. package/build/server/chunks/{1-DNKybLYv.js → 1-BEHpiGQa.js} +2 -2
  139. package/build/server/chunks/{1-DNKybLYv.js.map → 1-BEHpiGQa.js.map} +1 -1
  140. package/build/server/chunks/{10-Dq7gAqoq.js → 10-NBMnL_95.js} +2 -2
  141. package/build/server/chunks/{10-Dq7gAqoq.js.map → 10-NBMnL_95.js.map} +1 -1
  142. package/build/server/chunks/{11-BAHGEGol.js → 11-DguI1Izx.js} +2 -2
  143. package/build/server/chunks/{11-BAHGEGol.js.map → 11-DguI1Izx.js.map} +1 -1
  144. package/build/server/chunks/{12-TLehdMQC.js → 12-Ci1Q8tGV.js} +2 -2
  145. package/build/server/chunks/{12-TLehdMQC.js.map → 12-Ci1Q8tGV.js.map} +1 -1
  146. package/build/server/chunks/{14-DvBwY9yE.js → 14-D01NuJ2X.js} +2 -2
  147. package/build/server/chunks/{14-DvBwY9yE.js.map → 14-D01NuJ2X.js.map} +1 -1
  148. package/build/server/chunks/{15-A1SSsrCa.js → 15-CG6ngC96.js} +2 -2
  149. package/build/server/chunks/{15-A1SSsrCa.js.map → 15-CG6ngC96.js.map} +1 -1
  150. package/build/server/chunks/{16-Ba6NHqrs.js → 16-BQkO_qS1.js} +2 -2
  151. package/build/server/chunks/{16-Ba6NHqrs.js.map → 16-BQkO_qS1.js.map} +1 -1
  152. package/build/server/chunks/{17-Cb6mg_9H.js → 17-C5h083IT.js} +2 -2
  153. package/build/server/chunks/{17-Cb6mg_9H.js.map → 17-C5h083IT.js.map} +1 -1
  154. package/build/server/chunks/{18-CvxdMFRr.js → 18-C3rBqHLW.js} +2 -2
  155. package/build/server/chunks/{18-CvxdMFRr.js.map → 18-C3rBqHLW.js.map} +1 -1
  156. package/build/server/chunks/{19-BK_WrpMF.js → 19-DHc7Hd7_.js} +2 -2
  157. package/build/server/chunks/{19-BK_WrpMF.js.map → 19-DHc7Hd7_.js.map} +1 -1
  158. package/build/server/chunks/{2-B24FTIng.js → 2-C3d6mDjj.js} +2 -2
  159. package/build/server/chunks/{2-B24FTIng.js.map → 2-C3d6mDjj.js.map} +1 -1
  160. package/build/server/chunks/{20-D5fUm8Rz.js → 20-_sGrhVel.js} +2 -2
  161. package/build/server/chunks/{20-D5fUm8Rz.js.map → 20-_sGrhVel.js.map} +1 -1
  162. package/build/server/chunks/{22-CTGUyhm1.js → 22-CUr3WPKE.js} +2 -2
  163. package/build/server/chunks/{22-CTGUyhm1.js.map → 22-CUr3WPKE.js.map} +1 -1
  164. package/build/server/chunks/{23-CncQaz_v.js → 23-BCUkL9Sf.js} +2 -2
  165. package/build/server/chunks/{23-CncQaz_v.js.map → 23-BCUkL9Sf.js.map} +1 -1
  166. package/build/server/chunks/{24-d_TPQ78x.js → 24-DI1fhdx0.js} +2 -2
  167. package/build/server/chunks/{24-d_TPQ78x.js.map → 24-DI1fhdx0.js.map} +1 -1
  168. package/build/server/chunks/{29-BsIbKTRA.js → 29-DlRURN1K.js} +2 -2
  169. package/build/server/chunks/{29-BsIbKTRA.js.map → 29-DlRURN1K.js.map} +1 -1
  170. package/build/server/chunks/{3-CdfoJf5H.js → 3-BcfxDQh2.js} +2 -2
  171. package/build/server/chunks/{3-CdfoJf5H.js.map → 3-BcfxDQh2.js.map} +1 -1
  172. package/build/server/chunks/{30-BpWw5Ky0.js → 30-BFD2M8zr.js} +2 -2
  173. package/build/server/chunks/{30-BpWw5Ky0.js.map → 30-BFD2M8zr.js.map} +1 -1
  174. package/build/server/chunks/{31-Pr8JP76i.js → 31-DQlQtMjY.js} +2 -2
  175. package/build/server/chunks/{31-Pr8JP76i.js.map → 31-DQlQtMjY.js.map} +1 -1
  176. package/build/server/chunks/{32-BxSooCYO.js → 32-v9ohEyS5.js} +2 -2
  177. package/build/server/chunks/{32-BxSooCYO.js.map → 32-v9ohEyS5.js.map} +1 -1
  178. package/build/server/chunks/{33-CtR0V1dp.js → 33-BUgObxkp.js} +2 -2
  179. package/build/server/chunks/{33-CtR0V1dp.js.map → 33-BUgObxkp.js.map} +1 -1
  180. package/build/server/chunks/{34-5a4UbH0A.js → 34-CJlNx86l.js} +2 -2
  181. package/build/server/chunks/{34-5a4UbH0A.js.map → 34-CJlNx86l.js.map} +1 -1
  182. package/build/server/chunks/{36-DszVExsY.js → 36-B-HvX6eT.js} +2 -2
  183. package/build/server/chunks/{36-DszVExsY.js.map → 36-B-HvX6eT.js.map} +1 -1
  184. package/build/server/chunks/{37-CrLgKgc0.js → 37-CNBOlPUP.js} +2 -2
  185. package/build/server/chunks/{37-CrLgKgc0.js.map → 37-CNBOlPUP.js.map} +1 -1
  186. package/build/server/chunks/{39-CgEXNfxM.js → 39-B7XokB2k.js} +2 -2
  187. package/build/server/chunks/{39-CgEXNfxM.js.map → 39-B7XokB2k.js.map} +1 -1
  188. package/build/server/chunks/{40-BHPqAFma.js → 40-CkeZrvkf.js} +2 -2
  189. package/build/server/chunks/{40-BHPqAFma.js.map → 40-CkeZrvkf.js.map} +1 -1
  190. package/build/server/chunks/{41-BgFx4GGX.js → 41-D6_i1YBm.js} +2 -2
  191. package/build/server/chunks/{41-BgFx4GGX.js.map → 41-D6_i1YBm.js.map} +1 -1
  192. package/build/server/chunks/{42-170ee8I4.js → 42-BgVLfrZU.js} +2 -2
  193. package/build/server/chunks/{42-170ee8I4.js.map → 42-BgVLfrZU.js.map} +1 -1
  194. package/build/server/chunks/{43-CBQ7ATW3.js → 43-Dxf5xDaU.js} +2 -2
  195. package/build/server/chunks/{43-CBQ7ATW3.js.map → 43-Dxf5xDaU.js.map} +1 -1
  196. package/build/server/chunks/{45-4oOU-G5K.js → 45-BG3GfnsW.js} +2 -2
  197. package/build/server/chunks/{45-4oOU-G5K.js.map → 45-BG3GfnsW.js.map} +1 -1
  198. package/build/server/chunks/{46-TkRkvNpF.js → 46-CFMXBZj5.js} +2 -2
  199. package/build/server/chunks/{46-TkRkvNpF.js.map → 46-CFMXBZj5.js.map} +1 -1
  200. package/build/server/chunks/{48-H8O-tbrS.js → 48-DHYqd7Xu.js} +2 -2
  201. package/build/server/chunks/{48-H8O-tbrS.js.map → 48-DHYqd7Xu.js.map} +1 -1
  202. package/build/server/chunks/{5-BtPLgLL5.js → 5-DxGpi2xM.js} +2 -2
  203. package/build/server/chunks/{5-BtPLgLL5.js.map → 5-DxGpi2xM.js.map} +1 -1
  204. package/build/server/chunks/{6-BymolBCU.js → 6-CIhXIJNi.js} +2 -2
  205. package/build/server/chunks/{6-BymolBCU.js.map → 6-CIhXIJNi.js.map} +1 -1
  206. package/build/server/chunks/{7-DQKv55W-.js → 7-DBhty_3X.js} +2 -2
  207. package/build/server/chunks/{7-DQKv55W-.js.map → 7-DBhty_3X.js.map} +1 -1
  208. package/build/server/chunks/{8-1TzM2iIY.js → 8-kBgwTncD.js} +2 -2
  209. package/build/server/chunks/{8-1TzM2iIY.js.map → 8-kBgwTncD.js.map} +1 -1
  210. package/build/server/chunks/{9-DyaojOOv.js → 9-xTwokvGT.js} +2 -2
  211. package/build/server/chunks/{9-DyaojOOv.js.map → 9-xTwokvGT.js.map} +1 -1
  212. package/build/server/index.js +1 -1
  213. package/build/server/index.js.map +1 -1
  214. package/build/server/manifest.js +39 -39
  215. package/build/server/manifest.js.map +1 -1
  216. package/package.json +1 -1
  217. package/build/client/_app/immutable/chunks/entry.CCc6ivWK.js.br +0 -0
  218. package/build/client/_app/immutable/chunks/entry.CCc6ivWK.js.gz +0 -0
  219. package/build/client/_app/immutable/chunks/public.CY0-pQ-D.js +0 -1
  220. package/build/client/_app/immutable/chunks/public.CY0-pQ-D.js.br +0 -2
  221. package/build/client/_app/immutable/chunks/public.CY0-pQ-D.js.gz +0 -0
  222. package/build/client/_app/immutable/chunks/store.B6ZMmWK9.js.br +0 -0
  223. package/build/client/_app/immutable/chunks/store.B6ZMmWK9.js.gz +0 -0
  224. package/build/client/_app/immutable/chunks/stores.YYNNEhuW.js.br +0 -1
  225. package/build/client/_app/immutable/chunks/stores.YYNNEhuW.js.gz +0 -0
  226. package/build/client/_app/immutable/entry/app.vg2ej5nF.js.br +0 -0
  227. package/build/client/_app/immutable/entry/app.vg2ej5nF.js.gz +0 -0
  228. package/build/client/_app/immutable/entry/start.CeVj_syZ.js +0 -1
  229. package/build/client/_app/immutable/entry/start.CeVj_syZ.js.br +0 -2
  230. package/build/client/_app/immutable/entry/start.CeVj_syZ.js.gz +0 -0
  231. package/build/client/_app/immutable/nodes/0.DO8fnKyK.js.br +0 -0
  232. package/build/client/_app/immutable/nodes/0.DO8fnKyK.js.gz +0 -0
  233. package/build/client/_app/immutable/nodes/1.CnqgkFYO.js.br +0 -0
  234. package/build/client/_app/immutable/nodes/1.CnqgkFYO.js.gz +0 -0
  235. package/build/client/_app/immutable/nodes/10.p0VNPfQv.js.br +0 -0
  236. package/build/client/_app/immutable/nodes/10.p0VNPfQv.js.gz +0 -0
  237. package/build/client/_app/immutable/nodes/11.BxUpM7Iz.js.br +0 -0
  238. package/build/client/_app/immutable/nodes/11.BxUpM7Iz.js.gz +0 -0
  239. package/build/client/_app/immutable/nodes/12.2LMqwzMV.js.br +0 -0
  240. package/build/client/_app/immutable/nodes/12.2LMqwzMV.js.gz +0 -0
  241. package/build/client/_app/immutable/nodes/14.ClWyd-Vk.js.br +0 -0
  242. package/build/client/_app/immutable/nodes/14.ClWyd-Vk.js.gz +0 -0
  243. package/build/client/_app/immutable/nodes/15.DkgombJf.js.br +0 -0
  244. package/build/client/_app/immutable/nodes/15.DkgombJf.js.gz +0 -0
  245. package/build/client/_app/immutable/nodes/16.Dvth-7uZ.js.br +0 -0
  246. package/build/client/_app/immutable/nodes/16.Dvth-7uZ.js.gz +0 -0
  247. package/build/client/_app/immutable/nodes/17.Dp-gPboV.js.br +0 -0
  248. package/build/client/_app/immutable/nodes/17.Dp-gPboV.js.gz +0 -0
  249. package/build/client/_app/immutable/nodes/18.D0Py8O5g.js.br +0 -0
  250. package/build/client/_app/immutable/nodes/18.D0Py8O5g.js.gz +0 -0
  251. package/build/client/_app/immutable/nodes/19.B8YP-0em.js.br +0 -0
  252. package/build/client/_app/immutable/nodes/19.B8YP-0em.js.gz +0 -0
  253. package/build/client/_app/immutable/nodes/2.D36vxkNn.js.br +0 -0
  254. package/build/client/_app/immutable/nodes/20.B-_oOl1E.js.br +0 -0
  255. package/build/client/_app/immutable/nodes/20.B-_oOl1E.js.gz +0 -0
  256. package/build/client/_app/immutable/nodes/22.DL8qvNAW.js.br +0 -0
  257. package/build/client/_app/immutable/nodes/22.DL8qvNAW.js.gz +0 -0
  258. package/build/client/_app/immutable/nodes/23.CBw5C_0j.js.br +0 -0
  259. package/build/client/_app/immutable/nodes/23.CBw5C_0j.js.gz +0 -0
  260. package/build/client/_app/immutable/nodes/24.CBv9jMbW.js.br +0 -0
  261. package/build/client/_app/immutable/nodes/24.CBv9jMbW.js.gz +0 -0
  262. package/build/client/_app/immutable/nodes/29.57wevVyz.js.br +0 -0
  263. package/build/client/_app/immutable/nodes/29.57wevVyz.js.gz +0 -0
  264. package/build/client/_app/immutable/nodes/3.BdzQthDt.js.br +0 -0
  265. package/build/client/_app/immutable/nodes/3.BdzQthDt.js.gz +0 -0
  266. package/build/client/_app/immutable/nodes/30.DERDxRu1.js.br +0 -0
  267. package/build/client/_app/immutable/nodes/30.DERDxRu1.js.gz +0 -0
  268. package/build/client/_app/immutable/nodes/31.C8O6Gt-Y.js.br +0 -0
  269. package/build/client/_app/immutable/nodes/31.C8O6Gt-Y.js.gz +0 -0
  270. package/build/client/_app/immutable/nodes/32.Duqv-ETD.js.br +0 -0
  271. package/build/client/_app/immutable/nodes/32.Duqv-ETD.js.gz +0 -0
  272. package/build/client/_app/immutable/nodes/33.BLbFkvp4.js.br +0 -0
  273. package/build/client/_app/immutable/nodes/33.BLbFkvp4.js.gz +0 -0
  274. package/build/client/_app/immutable/nodes/34.nySJyjVu.js.br +0 -0
  275. package/build/client/_app/immutable/nodes/34.nySJyjVu.js.gz +0 -0
  276. package/build/client/_app/immutable/nodes/36.YCCz-AQy.js.br +0 -0
  277. package/build/client/_app/immutable/nodes/36.YCCz-AQy.js.gz +0 -0
  278. package/build/client/_app/immutable/nodes/37.CTr5-7Hs.js.br +0 -0
  279. package/build/client/_app/immutable/nodes/37.CTr5-7Hs.js.gz +0 -0
  280. package/build/client/_app/immutable/nodes/39.DnNtti8A.js.br +0 -0
  281. package/build/client/_app/immutable/nodes/39.DnNtti8A.js.gz +0 -0
  282. package/build/client/_app/immutable/nodes/40.B6s3kiIA.js.br +0 -0
  283. package/build/client/_app/immutable/nodes/40.B6s3kiIA.js.gz +0 -0
  284. package/build/client/_app/immutable/nodes/41.BJ0CJVst.js.br +0 -0
  285. package/build/client/_app/immutable/nodes/41.BJ0CJVst.js.gz +0 -0
  286. package/build/client/_app/immutable/nodes/42.CP7meNtd.js.br +0 -0
  287. package/build/client/_app/immutable/nodes/42.CP7meNtd.js.gz +0 -0
  288. package/build/client/_app/immutable/nodes/43.CwrjIyYj.js.br +0 -0
  289. package/build/client/_app/immutable/nodes/43.CwrjIyYj.js.gz +0 -0
  290. package/build/client/_app/immutable/nodes/45.CQTWEKC-.js.br +0 -0
  291. package/build/client/_app/immutable/nodes/45.CQTWEKC-.js.gz +0 -0
  292. package/build/client/_app/immutable/nodes/46.CB8Ukxx9.js.br +0 -0
  293. package/build/client/_app/immutable/nodes/46.CB8Ukxx9.js.gz +0 -0
  294. package/build/client/_app/immutable/nodes/48.1sEUGiLV.js.br +0 -0
  295. package/build/client/_app/immutable/nodes/48.1sEUGiLV.js.gz +0 -0
  296. package/build/client/_app/immutable/nodes/5.DHtSaMm3.js.br +0 -0
  297. package/build/client/_app/immutable/nodes/5.DHtSaMm3.js.gz +0 -0
  298. package/build/client/_app/immutable/nodes/6.CUJzwM8x.js.br +0 -0
  299. package/build/client/_app/immutable/nodes/6.CUJzwM8x.js.gz +0 -0
  300. package/build/client/_app/immutable/nodes/7.B4ohbnGa.js.br +0 -0
  301. package/build/client/_app/immutable/nodes/7.B4ohbnGa.js.gz +0 -0
  302. package/build/client/_app/immutable/nodes/8.B268U1yc.js.br +0 -0
  303. package/build/client/_app/immutable/nodes/8.B268U1yc.js.gz +0 -0
  304. package/build/client/_app/immutable/nodes/9.DKx9YH97.js.br +0 -0
  305. package/build/client/_app/immutable/nodes/9.DKx9YH97.js.gz +0 -0
@@ -1 +1 @@
1
- import{e as g,a as c,t as m,c as qt}from"../chunks/disclose-version.B6I0FcgD.js";import{i as Gt}from"../chunks/legacy.B5O3fKqs.js";import{p as Ht,l as jt,d as Lt,a as Qt,b as p,g as s,s as o,c as e,m as I,n as Wt,r as t,t as u,f as Tt,e as Bt}from"../chunks/runtime.D0obI1Oe.js";import{s as l}from"../chunks/render.BulRu2sY.js";import{i as K}from"../chunks/if.zgWENsz3.js";import{e as Ct}from"../chunks/each.B_0_gCHG.js";import{h as H}from"../chunks/html.n0lH0LsT.js";import{r as Yt,s as L}from"../chunks/attributes.DHvUyCc8.js";import{b as Jt}from"../chunks/input.DNQYXVMt.js";import{p as Ot}from"../chunks/event-modifiers.CWmzcjye.js";import{p as Ut}from"../chunks/props.URi5AcUs.js";import{s as Xt,a as Zt}from"../chunks/store.0paeW0RT.js";import{t as St}from"../chunks/util.BtMo5KOn.js";import{g as zt}from"../chunks/entry.CCc6ivWK.js";import{p as te}from"../chunks/stores.YYNNEhuW.js";import{o as ee}from"../chunks/index-client.cZmOdYbP.js";var se=m('<div class="fixed bottom-6 right-6 bg-neutral text-neutral-content px-5 py-3 rounded-lg shadow-xl flex items-center gap-2 z-50 animate-fade-up svelte-1hro3it"><svg class="w-5 h-5 text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium text-sm">Copied to clipboard</span></div>'),ae=m('<div class="flex justify-end mt-4 mb-4"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div>'),oe=m('<div class="alert alert-error bg-red-50 text-red-600 border border-red-200 mt-4"><svg xmlns="http://www.w3.org/2000/svg" class="stroke-current shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span> </span></div>'),re=m('<div class="bg-base-100 rounded-xl shadow-sm border border-base-300 p-12 text-center mt-4"><h3 class="text-lg font-medium text-base-content">No blocks found</h3> <p class="mt-1 text-sm text-base-content/60">Waiting for new blocks to be produced...</p></div>'),ne=m('<div class="absolute inset-0 bg-base-100/60 backdrop-blur-sm flex justify-center items-center z-10 rounded-xl"><span class="loading loading-spinner loading-lg text-blue-600"></span></div>'),ie=m('<tr class="hover:bg-base-200/50 transition-colors group"><td class="py-4 px-6 align-middle"><div class="flex items-center gap-2"><span class="text-base-content/50"><!></span> <a class="font-mono text-sm text-blue-600 hover:text-blue-800 hover:underline font-medium"> </a> <button class="text-base-content/50 hover:text-base-content/80 opacity-0 group-hover:opacity-100 transition-opacity" title="Copy block number"><!></button></div></td><td class="py-4 px-6 align-middle"><span class="text-sm text-base-content/70"> </span></td><td class="py-4 px-6 align-middle"><div class="flex items-center gap-2"><span class="font-mono text-sm text-base-content/80"> </span> <button class="text-base-content/50 hover:text-base-content/80 opacity-0 group-hover:opacity-100 transition-opacity" title="Copy pool ID"><!></button></div></td><td class="py-4 px-6 align-middle"><span class="text-sm text-base-content/70"> </span></td><td class="py-4 px-6 align-middle"><span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-50 text-blue-700"> </span></td></tr>'),le=m('<div class="p-4 hover:bg-base-200/50 transition-colors"><div class="flex justify-between items-start mb-3"><div><div class="text-xs font-bold text-base-content/50 uppercase tracking-wider mb-1">Block</div> <a class="font-mono text-sm text-blue-600 hover:underline font-medium"> </a></div> <button class="p-2 bg-base-200 text-base-content/70 rounded-md active:bg-base-300 shrink-0"><!></button></div> <div class="grid grid-cols-2 gap-3 mb-3"><div class="bg-base-200 p-3 rounded-lg border border-base-200"><div class="text-xs text-base-content/60 mb-1">Slot</div> <div class="text-sm font-medium text-base-content"> </div></div> <div class="bg-base-200 p-3 rounded-lg border border-base-200"><div class="text-xs text-base-content/60 mb-1"># of Txs</div> <div class="text-sm font-medium text-base-content"> </div></div></div> <div class="flex justify-between items-center text-xs text-base-content/60 border-t border-base-200 pt-3"><div class="truncate mr-4">Pool: <span class="font-mono font-medium text-base-content/80"> </span></div> <div class="shrink-0">Size: <span class="font-medium text-base-content/80"> </span></div></div></div>'),de=m('<div class="bg-base-100 rounded-xl shadow-sm border border-base-300 relative"><!> <div class="hidden lg:block overflow-x-auto"><table class="w-full text-left border-collapse"><thead><tr class="bg-base-200/80 border-b border-base-200 text-xs font-bold text-base-content/60 uppercase tracking-wider"><th class="py-4 px-6">Block</th><th class="py-4 px-6">Slot</th><th class="py-4 px-6">Pool</th><th class="py-4 px-6">Size (KB)</th><th class="py-4 px-6"># of Txs</th></tr></thead><tbody class="divide-y divide-base-200"></tbody></table></div> <div class="lg:hidden divide-y divide-base-200"></div></div> <div class="flex justify-end mt-4 mb-4"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div>',1),ve=m('<section class="py-8 px-4 md:px-6 min-h-screen"><div class="container mx-auto px-4 py-8"><!> <div class="flex flex-col md:flex-row justify-between items-start md:items-end mb-6 gap-4"><div><h1 class="text-3xl font-bold mb-1">Recent Blocks</h1></div> <form class="w-full md:w-[400px] relative"><input type="text" placeholder="Search by block number..." class="input input-bordered w-full bg-base-100 text-base-content pr-10 focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500 transition-shadow" spellcheck="false"> <button type="submit" class="absolute right-3 top-1/2 -translate-y-1/2 text-base-content/50 hover:text-blue-600 transition-colors" aria-label="Search"><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="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></button></form></div> <!> <!></div></section>');function Ce(Mt,lt){Ht(lt,!1);const Pt=Xt(),dt=()=>Zt(te,"$page",Pt),Q=I();let n=Ut(lt,"data",8);function E(a){return(a==null?void 0:a.status)!==void 0&&a.status>=400}let W=I(!1),F,b=I(!1),v=I(1),Y=I("");const vt=15;async function J(a){try{await navigator.clipboard.writeText(a),p(W,!0),F&&clearTimeout(F),F=setTimeout(()=>p(W,!1),2e3)}catch(i){console.error("Failed to copy text: ",i)}}function R(a){a<1||s(b)||(p(b,!0),zt(`/blocks?page=${a}&count=${vt}`))}function $t(){const a=s(Y).trim();a&&/^\d+$/.test(a)&&zt(`/blocks/${a}`)}ee(()=>(E(n())||p(v,Number(n().page)||1),p(b,!1),()=>{F&&clearTimeout(F)}));const O='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>',Et='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>';jt(()=>Bt(n()),()=>{p(Q,!E(n())&&n().blocks&&n().blocks.length===vt)}),jt(()=>(Bt(n()),dt()),()=>{n()&&dt()&&(E(n())||p(v,Number(n().page)||1),p(b,!1))}),Lt(),Gt();var U=ve(),ct=e(U),bt=e(ct);{var Ft=a=>{var i=se();c(a,i)};K(bt,a=>{s(W)&&a(Ft)})}var X=o(bt,2),Z=o(e(X),2),pt=e(Z);Yt(pt),Wt(2),t(Z),t(X);var ut=o(X,2);{var At=a=>{var i=ae(),h=e(i),y=e(h),x=o(y,2),f=e(x);t(x);var w=o(x,2);t(h),t(i),u(()=>{y.disabled=s(v)<=1||s(b),l(f,`Page ${s(v)??""}`),w.disabled=!s(Q)||s(b)}),g("click",y,()=>R(s(v)-1)),g("click",w,()=>R(s(v)+1)),c(a,i)};K(ut,a=>{!E(n())&&n().blocks&&n().blocks.length>0&&a(At)})}var Dt=o(ut,2);{var Nt=a=>{var i=oe(),h=o(e(i),2),y=e(h,!0);t(h),t(i),u(()=>{var x;return l(y,((x=n().body)==null?void 0:x.error)||"Failed to load blocks. Please check your connection to the Yaci node.")}),c(a,i)},It=a=>{var i=qt(),h=Tt(i);{var y=f=>{var w=re();c(f,w)},x=f=>{var w=de(),tt=Tt(w),mt=e(tt);{var Kt=d=>{var r=ne();c(d,r)};K(mt,d=>{s(b)&&d(Kt)})}var et=o(mt,2),xt=e(et),ft=o(e(xt));Ct(ft,5,()=>n().blocks,d=>d.number,(d,r)=>{var k=ie(),j=e(k),z=e(j),T=e(z),ot=e(T);H(ot,()=>Et),t(T);var _=o(T,2),rt=e(_,!0);t(_);var B=o(_,2),A=e(B);H(A,()=>O),t(B),t(z),t(j);var M=o(j),V=e(M),q=e(V,!0);t(V),t(M);var P=o(M),G=e(P),C=e(G),D=e(C,!0);u(()=>l(D,St(s(r).slot_leader,20))),t(C);var S=o(C,2),nt=e(S);H(nt,()=>O),t(S),t(G),t(P);var $=o(P),N=e($),it=e(N,!0);u(()=>l(it,(s(r).size/1024).toFixed(2))),t(N),t($);var wt=o($),kt=e(wt),Vt=e(kt,!0);t(kt),t(wt),t(k),u(()=>{L(_,"href",`/blocks/${s(r).number??""}`),l(rt,s(r).number),l(q,s(r).slot),L(C,"title",s(r).slot_leader),l(Vt,s(r).tx_count)}),g("click",B,()=>J(String(s(r).number))),g("click",S,()=>J(s(r).slot_leader)),c(d,k)}),t(ft),t(xt),t(et);var _t=o(et,2);Ct(_t,5,()=>n().blocks,d=>d.number,(d,r)=>{var k=le(),j=e(k),z=e(j),T=o(e(z),2),ot=e(T,!0);t(T),t(z);var _=o(z,2),rt=e(_);H(rt,()=>O),t(_),t(j);var B=o(j,2),A=e(B),M=o(e(A),2),V=e(M,!0);t(M),t(A);var q=o(A,2),P=o(e(q),2),G=e(P,!0);t(P),t(q),t(B);var C=o(B,2),D=e(C),S=o(e(D)),nt=e(S,!0);u(()=>l(nt,St(s(r).slot_leader,20))),t(S),t(D);var $=o(D,2),N=o(e($)),it=e(N);u(()=>l(it,`${(s(r).size/1024).toFixed(2)??""} KB`)),t(N),t($),t(C),t(k),u(()=>{L(T,"href",`/blocks/${s(r).number??""}`),l(ot,s(r).number),l(V,s(r).slot),l(G,s(r).tx_count),L(S,"title",s(r).slot_leader)}),g("click",_,()=>J(String(s(r).number))),c(d,k)}),t(_t),t(tt);var gt=o(tt,2),ht=e(gt),st=e(ht),at=o(st,2),Rt=e(at);t(at);var yt=o(at,2);t(ht),t(gt),u(()=>{st.disabled=s(v)<=1||s(b),l(Rt,`Page ${s(v)??""}`),yt.disabled=!s(Q)||s(b)}),g("click",st,()=>R(s(v)-1)),g("click",yt,()=>R(s(v)+1)),c(f,w)};K(h,f=>{!n().blocks||n().blocks.length===0?f(y):f(x,!1)},!0)}c(a,i)};K(Dt,a=>{E(n())?a(Nt):a(It,!1)})}t(ct),t(U),Jt(pt,()=>s(Y),a=>p(Y,a)),g("submit",Z,Ot($t)),c(Mt,U),Qt()}export{Ce as component};
1
+ import{e as g,a as c,t as m,c as qt}from"../chunks/disclose-version.B6I0FcgD.js";import{i as Gt}from"../chunks/legacy.B5O3fKqs.js";import{p as Ht,l as jt,d as Lt,a as Qt,b as p,g as s,s as o,c as e,m as I,n as Wt,r as t,t as u,f as Tt,e as Bt}from"../chunks/runtime.D0obI1Oe.js";import{s as l}from"../chunks/render.BulRu2sY.js";import{i as K}from"../chunks/if.zgWENsz3.js";import{e as Ct}from"../chunks/each.B_0_gCHG.js";import{h as H}from"../chunks/html.n0lH0LsT.js";import{r as Yt,s as L}from"../chunks/attributes.DHvUyCc8.js";import{b as Jt}from"../chunks/input.DNQYXVMt.js";import{p as Ot}from"../chunks/event-modifiers.CWmzcjye.js";import{p as Ut}from"../chunks/props.URi5AcUs.js";import{s as Xt,a as Zt}from"../chunks/store.0paeW0RT.js";import{t as St}from"../chunks/util.BtMo5KOn.js";import{g as zt}from"../chunks/entry.CIxqEXQ4.js";import{p as te}from"../chunks/stores.CVJU6lLm.js";import{o as ee}from"../chunks/index-client.cZmOdYbP.js";var se=m('<div class="fixed bottom-6 right-6 bg-neutral text-neutral-content px-5 py-3 rounded-lg shadow-xl flex items-center gap-2 z-50 animate-fade-up svelte-1hro3it"><svg class="w-5 h-5 text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium text-sm">Copied to clipboard</span></div>'),ae=m('<div class="flex justify-end mt-4 mb-4"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div>'),oe=m('<div class="alert alert-error bg-red-50 text-red-600 border border-red-200 mt-4"><svg xmlns="http://www.w3.org/2000/svg" class="stroke-current shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span> </span></div>'),re=m('<div class="bg-base-100 rounded-xl shadow-sm border border-base-300 p-12 text-center mt-4"><h3 class="text-lg font-medium text-base-content">No blocks found</h3> <p class="mt-1 text-sm text-base-content/60">Waiting for new blocks to be produced...</p></div>'),ne=m('<div class="absolute inset-0 bg-base-100/60 backdrop-blur-sm flex justify-center items-center z-10 rounded-xl"><span class="loading loading-spinner loading-lg text-blue-600"></span></div>'),ie=m('<tr class="hover:bg-base-200/50 transition-colors group"><td class="py-4 px-6 align-middle"><div class="flex items-center gap-2"><span class="text-base-content/50"><!></span> <a class="font-mono text-sm text-blue-600 hover:text-blue-800 hover:underline font-medium"> </a> <button class="text-base-content/50 hover:text-base-content/80 opacity-0 group-hover:opacity-100 transition-opacity" title="Copy block number"><!></button></div></td><td class="py-4 px-6 align-middle"><span class="text-sm text-base-content/70"> </span></td><td class="py-4 px-6 align-middle"><div class="flex items-center gap-2"><span class="font-mono text-sm text-base-content/80"> </span> <button class="text-base-content/50 hover:text-base-content/80 opacity-0 group-hover:opacity-100 transition-opacity" title="Copy pool ID"><!></button></div></td><td class="py-4 px-6 align-middle"><span class="text-sm text-base-content/70"> </span></td><td class="py-4 px-6 align-middle"><span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-50 text-blue-700"> </span></td></tr>'),le=m('<div class="p-4 hover:bg-base-200/50 transition-colors"><div class="flex justify-between items-start mb-3"><div><div class="text-xs font-bold text-base-content/50 uppercase tracking-wider mb-1">Block</div> <a class="font-mono text-sm text-blue-600 hover:underline font-medium"> </a></div> <button class="p-2 bg-base-200 text-base-content/70 rounded-md active:bg-base-300 shrink-0"><!></button></div> <div class="grid grid-cols-2 gap-3 mb-3"><div class="bg-base-200 p-3 rounded-lg border border-base-200"><div class="text-xs text-base-content/60 mb-1">Slot</div> <div class="text-sm font-medium text-base-content"> </div></div> <div class="bg-base-200 p-3 rounded-lg border border-base-200"><div class="text-xs text-base-content/60 mb-1"># of Txs</div> <div class="text-sm font-medium text-base-content"> </div></div></div> <div class="flex justify-between items-center text-xs text-base-content/60 border-t border-base-200 pt-3"><div class="truncate mr-4">Pool: <span class="font-mono font-medium text-base-content/80"> </span></div> <div class="shrink-0">Size: <span class="font-medium text-base-content/80"> </span></div></div></div>'),de=m('<div class="bg-base-100 rounded-xl shadow-sm border border-base-300 relative"><!> <div class="hidden lg:block overflow-x-auto"><table class="w-full text-left border-collapse"><thead><tr class="bg-base-200/80 border-b border-base-200 text-xs font-bold text-base-content/60 uppercase tracking-wider"><th class="py-4 px-6">Block</th><th class="py-4 px-6">Slot</th><th class="py-4 px-6">Pool</th><th class="py-4 px-6">Size (KB)</th><th class="py-4 px-6"># of Txs</th></tr></thead><tbody class="divide-y divide-base-200"></tbody></table></div> <div class="lg:hidden divide-y divide-base-200"></div></div> <div class="flex justify-end mt-4 mb-4"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div>',1),ve=m('<section class="py-8 px-4 md:px-6 min-h-screen"><div class="container mx-auto px-4 py-8"><!> <div class="flex flex-col md:flex-row justify-between items-start md:items-end mb-6 gap-4"><div><h1 class="text-3xl font-bold mb-1">Recent Blocks</h1></div> <form class="w-full md:w-[400px] relative"><input type="text" placeholder="Search by block number..." class="input input-bordered w-full bg-base-100 text-base-content pr-10 focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500 transition-shadow" spellcheck="false"> <button type="submit" class="absolute right-3 top-1/2 -translate-y-1/2 text-base-content/50 hover:text-blue-600 transition-colors" aria-label="Search"><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="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></button></form></div> <!> <!></div></section>');function Ce(Mt,lt){Ht(lt,!1);const Pt=Xt(),dt=()=>Zt(te,"$page",Pt),Q=I();let n=Ut(lt,"data",8);function E(a){return(a==null?void 0:a.status)!==void 0&&a.status>=400}let W=I(!1),F,b=I(!1),v=I(1),Y=I("");const vt=15;async function J(a){try{await navigator.clipboard.writeText(a),p(W,!0),F&&clearTimeout(F),F=setTimeout(()=>p(W,!1),2e3)}catch(i){console.error("Failed to copy text: ",i)}}function R(a){a<1||s(b)||(p(b,!0),zt(`/blocks?page=${a}&count=${vt}`))}function $t(){const a=s(Y).trim();a&&/^\d+$/.test(a)&&zt(`/blocks/${a}`)}ee(()=>(E(n())||p(v,Number(n().page)||1),p(b,!1),()=>{F&&clearTimeout(F)}));const O='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>',Et='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>';jt(()=>Bt(n()),()=>{p(Q,!E(n())&&n().blocks&&n().blocks.length===vt)}),jt(()=>(Bt(n()),dt()),()=>{n()&&dt()&&(E(n())||p(v,Number(n().page)||1),p(b,!1))}),Lt(),Gt();var U=ve(),ct=e(U),bt=e(ct);{var Ft=a=>{var i=se();c(a,i)};K(bt,a=>{s(W)&&a(Ft)})}var X=o(bt,2),Z=o(e(X),2),pt=e(Z);Yt(pt),Wt(2),t(Z),t(X);var ut=o(X,2);{var At=a=>{var i=ae(),h=e(i),y=e(h),x=o(y,2),f=e(x);t(x);var w=o(x,2);t(h),t(i),u(()=>{y.disabled=s(v)<=1||s(b),l(f,`Page ${s(v)??""}`),w.disabled=!s(Q)||s(b)}),g("click",y,()=>R(s(v)-1)),g("click",w,()=>R(s(v)+1)),c(a,i)};K(ut,a=>{!E(n())&&n().blocks&&n().blocks.length>0&&a(At)})}var Dt=o(ut,2);{var Nt=a=>{var i=oe(),h=o(e(i),2),y=e(h,!0);t(h),t(i),u(()=>{var x;return l(y,((x=n().body)==null?void 0:x.error)||"Failed to load blocks. Please check your connection to the Yaci node.")}),c(a,i)},It=a=>{var i=qt(),h=Tt(i);{var y=f=>{var w=re();c(f,w)},x=f=>{var w=de(),tt=Tt(w),mt=e(tt);{var Kt=d=>{var r=ne();c(d,r)};K(mt,d=>{s(b)&&d(Kt)})}var et=o(mt,2),xt=e(et),ft=o(e(xt));Ct(ft,5,()=>n().blocks,d=>d.number,(d,r)=>{var k=ie(),j=e(k),z=e(j),T=e(z),ot=e(T);H(ot,()=>Et),t(T);var _=o(T,2),rt=e(_,!0);t(_);var B=o(_,2),A=e(B);H(A,()=>O),t(B),t(z),t(j);var M=o(j),V=e(M),q=e(V,!0);t(V),t(M);var P=o(M),G=e(P),C=e(G),D=e(C,!0);u(()=>l(D,St(s(r).slot_leader,20))),t(C);var S=o(C,2),nt=e(S);H(nt,()=>O),t(S),t(G),t(P);var $=o(P),N=e($),it=e(N,!0);u(()=>l(it,(s(r).size/1024).toFixed(2))),t(N),t($);var wt=o($),kt=e(wt),Vt=e(kt,!0);t(kt),t(wt),t(k),u(()=>{L(_,"href",`/blocks/${s(r).number??""}`),l(rt,s(r).number),l(q,s(r).slot),L(C,"title",s(r).slot_leader),l(Vt,s(r).tx_count)}),g("click",B,()=>J(String(s(r).number))),g("click",S,()=>J(s(r).slot_leader)),c(d,k)}),t(ft),t(xt),t(et);var _t=o(et,2);Ct(_t,5,()=>n().blocks,d=>d.number,(d,r)=>{var k=le(),j=e(k),z=e(j),T=o(e(z),2),ot=e(T,!0);t(T),t(z);var _=o(z,2),rt=e(_);H(rt,()=>O),t(_),t(j);var B=o(j,2),A=e(B),M=o(e(A),2),V=e(M,!0);t(M),t(A);var q=o(A,2),P=o(e(q),2),G=e(P,!0);t(P),t(q),t(B);var C=o(B,2),D=e(C),S=o(e(D)),nt=e(S,!0);u(()=>l(nt,St(s(r).slot_leader,20))),t(S),t(D);var $=o(D,2),N=o(e($)),it=e(N);u(()=>l(it,`${(s(r).size/1024).toFixed(2)??""} KB`)),t(N),t($),t(C),t(k),u(()=>{L(T,"href",`/blocks/${s(r).number??""}`),l(ot,s(r).number),l(V,s(r).slot),l(G,s(r).tx_count),L(S,"title",s(r).slot_leader)}),g("click",_,()=>J(String(s(r).number))),c(d,k)}),t(_t),t(tt);var gt=o(tt,2),ht=e(gt),st=e(ht),at=o(st,2),Rt=e(at);t(at);var yt=o(at,2);t(ht),t(gt),u(()=>{st.disabled=s(v)<=1||s(b),l(Rt,`Page ${s(v)??""}`),yt.disabled=!s(Q)||s(b)}),g("click",st,()=>R(s(v)-1)),g("click",yt,()=>R(s(v)+1)),c(f,w)};K(h,f=>{!n().blocks||n().blocks.length===0?f(y):f(x,!1)},!0)}c(a,i)};K(Dt,a=>{E(n())?a(Nt):a(It,!1)})}t(ct),t(U),Jt(pt,()=>s(Y),a=>p(Y,a)),g("submit",Z,Ot($t)),c(Mt,U),Qt()}export{Ce as component};
@@ -1 +1 @@
1
- import{e as b,a as u,t as x}from"../chunks/disclose-version.B6I0FcgD.js";import{i as Ct}from"../chunks/legacy.B5O3fKqs.js";import{p as Ht,l as M,d as It,t as h,a as St,b as l,g as t,s as o,m,c as r,r as a,e as ct}from"../chunks/runtime.D0obI1Oe.js";import{s as f}from"../chunks/render.BulRu2sY.js";import{i as g}from"../chunks/if.zgWENsz3.js";import{e as Dt,i as Et}from"../chunks/each.B_0_gCHG.js";import{s as C}from"../chunks/attributes.DHvUyCc8.js";import{p as Ut}from"../chunks/props.URi5AcUs.js";import{s as At,a as Bt}from"../chunks/store.0paeW0RT.js";import{g as zt}from"../chunks/entry.CCc6ivWK.js";import{p as Rt}from"../chunks/stores.YYNNEhuW.js";import{o as dt}from"../chunks/index-client.cZmOdYbP.js";var Vt=x('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300 z-50 svelte-1d7vbtm"> </div>'),qt=x('<div class="absolute inset-0 bg-base-100 bg-opacity-75 flex justify-center items-center z-10"><span class="loading loading-spinner loading-lg"></span></div>'),Ft=x('<button class="text-base-content/50 hover:text-base-content/70" title="Copy stake address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button>'),Gt=x('<button class="text-base-content/50 hover:text-base-content/70" title="Copy pool ID"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button>'),Jt=x('<button class="text-base-content/50 hover:text-base-content/70" title="Copy transaction hash"><i class="fas fa-copy text-xs"></i></button>'),Kt=x('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <!></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <!></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <!></div></td></tr>'),Nt=x('<section class="container mx-auto text-sm"><!> <h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Delegations</h2> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4 relative"><!> <table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Stake Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Pool ID</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function oe(vt,K){Ht(K,!1);const pt=At(),w=()=>Bt(Rt,"$page",pt),H=m(),I=m();let n=Ut(K,"data",12),S=m(!1),_,N=m("");async function D(e,s){try{await navigator.clipboard.writeText(e),l(S,!0),l(N,s),_&&clearTimeout(_),_=setTimeout(()=>{l(S,!1)},2e3)}catch(v){console.error("Failed to copy text: ",v)}}dt(()=>()=>{_&&clearTimeout(_)});let y=m([]),d=m(!1),c=m(1);const bt=15;dt(()=>{l(c,parseInt(n().page||"1",10)),l(d,!1)});function k(e){if(e<1||t(d))return;l(d,!0);const s=`/certificates/delegations?page=${e}&count=${bt}`;zt(s)}n().delegations||n(n().delegations=[],!0);function O(e){return e?e.length>15?`${e.substring(0,8)}...${e.substring(e.length-7)}`:e:""}function ut(e){return e?e.length>15?`${e.substring(0,8)}...${e.substring(e.length-7)}`:e:""}M(()=>w(),()=>{l(H,w().url.searchParams.get("page"))}),M(()=>(t(y),t(H)),()=>{t(y).forEach(e=>{let v=e.href.split("?").slice(1).join("?");new URLSearchParams(v).get("page")===t(H)?e.active=!0:e.active=!1}),l(y,t(y))}),M(()=>ct(n()),()=>{l(I,n().delegations&&n().delegations.length>0)}),M(()=>(ct(n()),w()),()=>{n()&&w()&&(l(c,parseInt(n().page||"1",10)),l(d,!1))}),It(),Ct();var E=Nt(),Q=r(E);{var mt=e=>{var s=Vt(),v=r(s,!0);a(s),h(()=>f(v,t(N))),u(e,s)};g(Q,e=>{t(S)&&e(mt)})}var U=o(Q,4),W=r(U),A=r(W),B=o(A,2),ft=r(B);a(B);var X=o(B,2);a(W),a(U);var z=o(U,2),Y=r(z);{var xt=e=>{var s=qt();u(e,s)};g(Y,e=>{t(d)&&e(xt)})}var Z=o(Y,2),L=o(r(Z));Dt(L,5,()=>n().delegations,Et,(e,s)=>{var v=Kt(),j=r(v),q=r(j),$=r(q),st=r($),_t=r(st,!0);h(()=>f(_t,ut(t(s).address))),a(st),a($);var gt=o($,2);{var wt=i=>{var p=Ft();b("click",p,()=>{D(t(s).address,"Stake address copied to clipboard")}),u(i,p)};g(gt,i=>{t(s).address&&i(wt)})}a(q),a(j);var F=o(j),rt=r(F),P=r(rt),ot=r(P),yt=r(ot,!0);h(()=>f(yt,O(t(s).pool_id))),a(ot),a(P);var kt=o(P,2);{var jt=i=>{var p=Gt();b("click",p,()=>{D(t(s).pool_id,"Pool ID copied to clipboard")}),u(i,p)};g(kt,i=>{t(s).pool_id&&i(jt)})}a(rt),a(F);var G=o(F),J=r(G),$t=r(J,!0);a(J),a(G);var nt=o(G),it=r(nt),T=r(it),lt=r(T),Pt=r(lt,!0);h(()=>f(Pt,O(t(s).tx_hash))),a(lt),a(T);var Tt=o(T,2);{var Mt=i=>{var p=Jt();b("click",p,()=>{D(t(s).tx_hash,"Transaction hash copied to clipboard")}),u(i,p)};g(Tt,i=>{t(s).tx_hash&&i(Mt)})}a(it),a(nt),a(v),h(()=>{C($,"href",`/rewards/account/${t(s).address??""}`),C(P,"href",`/pools/${t(s).pool_id??""}`),C(J,"href",`/blocks/${t(s).block_number??""}`),f($t,t(s).block_number),C(T,"href",`/transactions/${t(s).tx_hash??""}`)}),u(e,v)}),a(L),a(Z),a(z);var tt=o(z,2),et=r(tt),R=r(et),V=o(R,2),ht=r(V);a(V);var at=o(V,2);a(et),a(tt),a(E),h(()=>{A.disabled=t(c)<=1||t(d),f(ft,`Page ${t(c)??""}`),X.disabled=!t(I)||t(d),R.disabled=t(c)<=1||t(d),f(ht,`Page ${t(c)??""}`),at.disabled=!t(I)||t(d)}),b("click",A,()=>k(t(c)-1)),b("click",X,()=>k(t(c)+1)),b("click",R,()=>k(t(c)-1)),b("click",at,()=>k(t(c)+1)),u(vt,E),St()}export{oe as component};
1
+ import{e as b,a as u,t as x}from"../chunks/disclose-version.B6I0FcgD.js";import{i as Ct}from"../chunks/legacy.B5O3fKqs.js";import{p as Ht,l as M,d as It,t as h,a as St,b as l,g as t,s as o,m,c as r,r as a,e as ct}from"../chunks/runtime.D0obI1Oe.js";import{s as f}from"../chunks/render.BulRu2sY.js";import{i as g}from"../chunks/if.zgWENsz3.js";import{e as Dt,i as Et}from"../chunks/each.B_0_gCHG.js";import{s as C}from"../chunks/attributes.DHvUyCc8.js";import{p as Ut}from"../chunks/props.URi5AcUs.js";import{s as At,a as Bt}from"../chunks/store.0paeW0RT.js";import{g as zt}from"../chunks/entry.CIxqEXQ4.js";import{p as Rt}from"../chunks/stores.CVJU6lLm.js";import{o as dt}from"../chunks/index-client.cZmOdYbP.js";var Vt=x('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300 z-50 svelte-1d7vbtm"> </div>'),qt=x('<div class="absolute inset-0 bg-base-100 bg-opacity-75 flex justify-center items-center z-10"><span class="loading loading-spinner loading-lg"></span></div>'),Ft=x('<button class="text-base-content/50 hover:text-base-content/70" title="Copy stake address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button>'),Gt=x('<button class="text-base-content/50 hover:text-base-content/70" title="Copy pool ID"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button>'),Jt=x('<button class="text-base-content/50 hover:text-base-content/70" title="Copy transaction hash"><i class="fas fa-copy text-xs"></i></button>'),Kt=x('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <!></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <!></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <!></div></td></tr>'),Nt=x('<section class="container mx-auto text-sm"><!> <h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Delegations</h2> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4 relative"><!> <table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Stake Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Pool ID</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function oe(vt,K){Ht(K,!1);const pt=At(),w=()=>Bt(Rt,"$page",pt),H=m(),I=m();let n=Ut(K,"data",12),S=m(!1),_,N=m("");async function D(e,s){try{await navigator.clipboard.writeText(e),l(S,!0),l(N,s),_&&clearTimeout(_),_=setTimeout(()=>{l(S,!1)},2e3)}catch(v){console.error("Failed to copy text: ",v)}}dt(()=>()=>{_&&clearTimeout(_)});let y=m([]),d=m(!1),c=m(1);const bt=15;dt(()=>{l(c,parseInt(n().page||"1",10)),l(d,!1)});function k(e){if(e<1||t(d))return;l(d,!0);const s=`/certificates/delegations?page=${e}&count=${bt}`;zt(s)}n().delegations||n(n().delegations=[],!0);function O(e){return e?e.length>15?`${e.substring(0,8)}...${e.substring(e.length-7)}`:e:""}function ut(e){return e?e.length>15?`${e.substring(0,8)}...${e.substring(e.length-7)}`:e:""}M(()=>w(),()=>{l(H,w().url.searchParams.get("page"))}),M(()=>(t(y),t(H)),()=>{t(y).forEach(e=>{let v=e.href.split("?").slice(1).join("?");new URLSearchParams(v).get("page")===t(H)?e.active=!0:e.active=!1}),l(y,t(y))}),M(()=>ct(n()),()=>{l(I,n().delegations&&n().delegations.length>0)}),M(()=>(ct(n()),w()),()=>{n()&&w()&&(l(c,parseInt(n().page||"1",10)),l(d,!1))}),It(),Ct();var E=Nt(),Q=r(E);{var mt=e=>{var s=Vt(),v=r(s,!0);a(s),h(()=>f(v,t(N))),u(e,s)};g(Q,e=>{t(S)&&e(mt)})}var U=o(Q,4),W=r(U),A=r(W),B=o(A,2),ft=r(B);a(B);var X=o(B,2);a(W),a(U);var z=o(U,2),Y=r(z);{var xt=e=>{var s=qt();u(e,s)};g(Y,e=>{t(d)&&e(xt)})}var Z=o(Y,2),L=o(r(Z));Dt(L,5,()=>n().delegations,Et,(e,s)=>{var v=Kt(),j=r(v),q=r(j),$=r(q),st=r($),_t=r(st,!0);h(()=>f(_t,ut(t(s).address))),a(st),a($);var gt=o($,2);{var wt=i=>{var p=Ft();b("click",p,()=>{D(t(s).address,"Stake address copied to clipboard")}),u(i,p)};g(gt,i=>{t(s).address&&i(wt)})}a(q),a(j);var F=o(j),rt=r(F),P=r(rt),ot=r(P),yt=r(ot,!0);h(()=>f(yt,O(t(s).pool_id))),a(ot),a(P);var kt=o(P,2);{var jt=i=>{var p=Gt();b("click",p,()=>{D(t(s).pool_id,"Pool ID copied to clipboard")}),u(i,p)};g(kt,i=>{t(s).pool_id&&i(jt)})}a(rt),a(F);var G=o(F),J=r(G),$t=r(J,!0);a(J),a(G);var nt=o(G),it=r(nt),T=r(it),lt=r(T),Pt=r(lt,!0);h(()=>f(Pt,O(t(s).tx_hash))),a(lt),a(T);var Tt=o(T,2);{var Mt=i=>{var p=Jt();b("click",p,()=>{D(t(s).tx_hash,"Transaction hash copied to clipboard")}),u(i,p)};g(Tt,i=>{t(s).tx_hash&&i(Mt)})}a(it),a(nt),a(v),h(()=>{C($,"href",`/rewards/account/${t(s).address??""}`),C(P,"href",`/pools/${t(s).pool_id??""}`),C(J,"href",`/blocks/${t(s).block_number??""}`),f($t,t(s).block_number),C(T,"href",`/transactions/${t(s).tx_hash??""}`)}),u(e,v)}),a(L),a(Z),a(z);var tt=o(z,2),et=r(tt),R=r(et),V=o(R,2),ht=r(V);a(V);var at=o(V,2);a(et),a(tt),a(E),h(()=>{A.disabled=t(c)<=1||t(d),f(ft,`Page ${t(c)??""}`),X.disabled=!t(I)||t(d),R.disabled=t(c)<=1||t(d),f(ht,`Page ${t(c)??""}`),at.disabled=!t(I)||t(d)}),b("click",A,()=>k(t(c)-1)),b("click",X,()=>k(t(c)+1)),b("click",R,()=>k(t(c)-1)),b("click",at,()=>k(t(c)+1)),u(vt,E),St()}export{oe as component};
@@ -1 +1 @@
1
- import{e as u,a as v,t as x,c as mt}from"../chunks/disclose-version.B6I0FcgD.js";import{i as Ot}from"../chunks/legacy.B5O3fKqs.js";import{p as Gt,l as bt,d as Jt,t as c,a as Kt,g as s,s as r,m as h,c as e,r as t,f as ht,b as i}from"../chunks/runtime.D0obI1Oe.js";import{s as p}from"../chunks/render.BulRu2sY.js";import{i as T}from"../chunks/if.zgWENsz3.js";import{e as ft,i as gt}from"../chunks/each.B_0_gCHG.js";import{s as _}from"../chunks/attributes.DHvUyCc8.js";import{p as Qt}from"../chunks/props.URi5AcUs.js";import{s as Wt,a as Xt}from"../chunks/store.0paeW0RT.js";import{g as _t}from"../chunks/entry.CCc6ivWK.js";import{p as Yt}from"../chunks/stores.YYNNEhuW.js";import{t as K,l as wt}from"../chunks/util.BtMo5KOn.js";import{o as Zt}from"../chunks/index-client.cZmOdYbP.js";var Lt=x('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300 z-50 svelte-1d7vbtm"> </div>'),te=x('<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative mb-4" role="alert"><span class="block sm:inline"> </span></div>'),ee=x('<tr><td colspan="7" class="px-6 py-4 text-center"><div class="flex justify-center items-center"><svg class="animate-spin h-8 w-8 text-blue-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></div></td></tr>'),ae=x('<tr><td colspan="7" class="px-6 py-4 text-center text-base-content/60">No pool registrations found</td></tr>'),se=x('<div class="flex items-center gap-2 mb-1 last:mb-0"><span> </span> <button class="text-base-content/50 hover:text-base-content/70 transition-colors duration-150" title="Copy stake address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div>'),oe=x('<tr class="hover:bg-base-200 transition-colors duration-150"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline" title="View pool details"><span> </span></a> <button class="text-base-content/50 hover:text-base-content/70 transition-colors duration-150" title="Copy pool ID"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline" title="View block details"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline" title="View transaction details"><span> </span></a> <button class="text-base-content/50 hover:text-base-content/70 transition-colors duration-150" title="Copy transaction hash"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td></tr>'),re=x('<section class="container mx-auto text-sm"><!> <h2 class="text-xl font-bold text-center text-base-content/60 mb-6">Pool Registrations</h2> <!> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Pool</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Pledge (ADA)</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Cost (ADA)</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Margin (%)</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Owner(s)</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"><!></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function ge(yt,Q){Gt(Q,!1);const kt=Wt(),W=()=>Xt(Yt,"$page",kt),$=h();let n=Qt(Q,"data",12),f=h(!1),m=h(null),H=h(!1),g,X=h("");async function A(a,o){try{await navigator.clipboard.writeText(a),i(H,!0),i(X,o),g&&clearTimeout(g),g=setTimeout(()=>{i(H,!1)},2e3)}catch(d){console.error("Failed to copy text: ",d)}}Zt(()=>()=>{g&&clearTimeout(g)});let w=h([]);const Y=async()=>{i(f,!0),i(m,null);try{let o=parseInt(n().page)-1;o<=0&&(o=1),await _t(`/certificates/pool-registrations?page=${o}&count=${n().count}`)}catch(a){i(m,"Failed to load previous page"),console.error(a)}finally{i(f,!1)}},Z=async()=>{i(f,!0),i(m,null);try{let a=parseInt(n().page),o=a+1;n().registrations.length==0&&(o=a),await _t(`/certificates/pool-registrations?page=${o}&count=${n().count}`)}catch(a){i(m,"Failed to load next page"),console.error(a)}finally{i(f,!1)}};n().registrations||n(n().registrations=[],!0),bt(()=>W(),()=>{i($,W().url.searchParams.get("page"))}),bt(()=>(s(w),s($)),()=>{s(w).forEach(a=>{let d=a.href.split("?").slice(1).join("?");new URLSearchParams(d).get("page")===s($)?a.active=!0:a.active=!1}),i(w,s(w))}),Jt(),Ot();var I=re(),L=e(I);{var jt=a=>{var o=Lt(),d=e(o,!0);t(o),c(()=>p(d,s(X))),v(a,o)};T(L,a=>{s(H)&&a(jt)})}var tt=r(L,4);{var Pt=a=>{var o=te(),d=e(o),y=e(d,!0);t(d),t(o),c(()=>p(y,s(m))),v(a,o)};T(tt,a=>{s(m)&&a(Pt)})}var V=r(tt,2),et=e(V),B=e(et);c(()=>B.disabled=parseInt(n().page)===1);var D=r(B,2),Mt=e(D);t(D);var at=r(D,2);t(et),t(V);var F=r(V,2),st=e(F),ot=r(e(st)),Ct=e(ot);{var Tt=a=>{var o=ee();v(a,o)},$t=a=>{var o=mt(),d=ht(o);{var y=b=>{var k=ae();v(b,k)},it=b=>{var k=mt(),At=ht(k);ft(At,1,()=>n().registrations,gt,(It,l)=>{var S=oe(),R=e(S),ct=e(R),j=e(ct),pt=e(j),Vt=e(pt,!0);c(()=>p(Vt,K(s(l).pool_id_bech32,35,"..."))),t(pt),t(j);var Bt=r(j,2);t(ct),t(R);var P=r(R),Dt=e(P,!0);c(()=>p(Dt,wt(s(l).pledge,2))),t(P);var M=r(P),Ft=e(M,!0);c(()=>p(Ft,wt(s(l).cost,0))),t(M);var q=r(M),Ut=e(q,!0);c(()=>p(Ut,(s(l).margin*100).toFixed(2))),t(q);var E=r(q);ft(E,5,()=>s(l).pool_owners,gt,(qt,xt)=>{var G=se(),J=e(G),Et=e(J,!0);c(()=>p(Et,K(s(xt),20,"..."))),t(J);var Nt=r(J,2);t(G),u("click",Nt,()=>A(s(xt),"Stake address copied to clipboard!")),v(qt,G)}),t(E);var N=r(E),O=e(N),zt=e(O,!0);t(O),t(N);var dt=r(N),vt=e(dt),C=e(vt),ut=e(C),St=e(ut,!0);c(()=>p(St,K(s(l).tx_hash,20))),t(ut),t(C);var Rt=r(C,2);t(vt),t(dt),t(S),c(()=>{_(j,"href",`/pools/${s(l).pool_id_bech32??""}`),_(P,"title",`${s(l).pledge??""} lovelace`),_(M,"title",`${s(l).cost??""} lovelace`),_(O,"href",`/blocks/${s(l).block_number??""}`),p(zt,s(l).block_number),_(C,"href",`/transactions/${s(l).tx_hash??""}`)}),u("click",Bt,()=>A(s(l).pool_id_bech32,"Pool ID copied to clipboard!")),u("click",Rt,()=>A(s(l).tx_hash,"Transaction hash copied to clipboard!")),v(It,S)}),v(b,k)};T(d,b=>{n().registrations.length===0?b(y):b(it,!1)},!0)}v(a,o)};T(Ct,a=>{s(f)?a(Tt):a($t,!1)})}t(ot),t(st),t(F);var rt=r(F,2),nt=e(rt),U=e(nt);c(()=>U.disabled=parseInt(n().page)===1);var z=r(U,2),Ht=e(z);t(z);var lt=r(z,2);t(nt),t(rt),t(I),c(()=>{p(Mt,`Page ${n().page??""}`),at.disabled=n().registrations.length===0,p(Ht,`Page ${n().page??""}`),lt.disabled=n().registrations.length===0}),u("click",B,Y),u("click",at,Z),u("click",U,Y),u("click",lt,Z),v(yt,I),Kt()}export{ge as component};
1
+ import{e as u,a as v,t as x,c as mt}from"../chunks/disclose-version.B6I0FcgD.js";import{i as Ot}from"../chunks/legacy.B5O3fKqs.js";import{p as Gt,l as bt,d as Jt,t as c,a as Kt,g as s,s as r,m as h,c as e,r as t,f as ht,b as i}from"../chunks/runtime.D0obI1Oe.js";import{s as p}from"../chunks/render.BulRu2sY.js";import{i as T}from"../chunks/if.zgWENsz3.js";import{e as ft,i as gt}from"../chunks/each.B_0_gCHG.js";import{s as _}from"../chunks/attributes.DHvUyCc8.js";import{p as Qt}from"../chunks/props.URi5AcUs.js";import{s as Wt,a as Xt}from"../chunks/store.0paeW0RT.js";import{g as _t}from"../chunks/entry.CIxqEXQ4.js";import{p as Yt}from"../chunks/stores.CVJU6lLm.js";import{t as K,l as wt}from"../chunks/util.BtMo5KOn.js";import{o as Zt}from"../chunks/index-client.cZmOdYbP.js";var Lt=x('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300 z-50 svelte-1d7vbtm"> </div>'),te=x('<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative mb-4" role="alert"><span class="block sm:inline"> </span></div>'),ee=x('<tr><td colspan="7" class="px-6 py-4 text-center"><div class="flex justify-center items-center"><svg class="animate-spin h-8 w-8 text-blue-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></div></td></tr>'),ae=x('<tr><td colspan="7" class="px-6 py-4 text-center text-base-content/60">No pool registrations found</td></tr>'),se=x('<div class="flex items-center gap-2 mb-1 last:mb-0"><span> </span> <button class="text-base-content/50 hover:text-base-content/70 transition-colors duration-150" title="Copy stake address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div>'),oe=x('<tr class="hover:bg-base-200 transition-colors duration-150"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline" title="View pool details"><span> </span></a> <button class="text-base-content/50 hover:text-base-content/70 transition-colors duration-150" title="Copy pool ID"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline" title="View block details"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline" title="View transaction details"><span> </span></a> <button class="text-base-content/50 hover:text-base-content/70 transition-colors duration-150" title="Copy transaction hash"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td></tr>'),re=x('<section class="container mx-auto text-sm"><!> <h2 class="text-xl font-bold text-center text-base-content/60 mb-6">Pool Registrations</h2> <!> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Pool</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Pledge (ADA)</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Cost (ADA)</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Margin (%)</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Owner(s)</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"><!></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function ge(yt,Q){Gt(Q,!1);const kt=Wt(),W=()=>Xt(Yt,"$page",kt),$=h();let n=Qt(Q,"data",12),f=h(!1),m=h(null),H=h(!1),g,X=h("");async function A(a,o){try{await navigator.clipboard.writeText(a),i(H,!0),i(X,o),g&&clearTimeout(g),g=setTimeout(()=>{i(H,!1)},2e3)}catch(d){console.error("Failed to copy text: ",d)}}Zt(()=>()=>{g&&clearTimeout(g)});let w=h([]);const Y=async()=>{i(f,!0),i(m,null);try{let o=parseInt(n().page)-1;o<=0&&(o=1),await _t(`/certificates/pool-registrations?page=${o}&count=${n().count}`)}catch(a){i(m,"Failed to load previous page"),console.error(a)}finally{i(f,!1)}},Z=async()=>{i(f,!0),i(m,null);try{let a=parseInt(n().page),o=a+1;n().registrations.length==0&&(o=a),await _t(`/certificates/pool-registrations?page=${o}&count=${n().count}`)}catch(a){i(m,"Failed to load next page"),console.error(a)}finally{i(f,!1)}};n().registrations||n(n().registrations=[],!0),bt(()=>W(),()=>{i($,W().url.searchParams.get("page"))}),bt(()=>(s(w),s($)),()=>{s(w).forEach(a=>{let d=a.href.split("?").slice(1).join("?");new URLSearchParams(d).get("page")===s($)?a.active=!0:a.active=!1}),i(w,s(w))}),Jt(),Ot();var I=re(),L=e(I);{var jt=a=>{var o=Lt(),d=e(o,!0);t(o),c(()=>p(d,s(X))),v(a,o)};T(L,a=>{s(H)&&a(jt)})}var tt=r(L,4);{var Pt=a=>{var o=te(),d=e(o),y=e(d,!0);t(d),t(o),c(()=>p(y,s(m))),v(a,o)};T(tt,a=>{s(m)&&a(Pt)})}var V=r(tt,2),et=e(V),B=e(et);c(()=>B.disabled=parseInt(n().page)===1);var D=r(B,2),Mt=e(D);t(D);var at=r(D,2);t(et),t(V);var F=r(V,2),st=e(F),ot=r(e(st)),Ct=e(ot);{var Tt=a=>{var o=ee();v(a,o)},$t=a=>{var o=mt(),d=ht(o);{var y=b=>{var k=ae();v(b,k)},it=b=>{var k=mt(),At=ht(k);ft(At,1,()=>n().registrations,gt,(It,l)=>{var S=oe(),R=e(S),ct=e(R),j=e(ct),pt=e(j),Vt=e(pt,!0);c(()=>p(Vt,K(s(l).pool_id_bech32,35,"..."))),t(pt),t(j);var Bt=r(j,2);t(ct),t(R);var P=r(R),Dt=e(P,!0);c(()=>p(Dt,wt(s(l).pledge,2))),t(P);var M=r(P),Ft=e(M,!0);c(()=>p(Ft,wt(s(l).cost,0))),t(M);var q=r(M),Ut=e(q,!0);c(()=>p(Ut,(s(l).margin*100).toFixed(2))),t(q);var E=r(q);ft(E,5,()=>s(l).pool_owners,gt,(qt,xt)=>{var G=se(),J=e(G),Et=e(J,!0);c(()=>p(Et,K(s(xt),20,"..."))),t(J);var Nt=r(J,2);t(G),u("click",Nt,()=>A(s(xt),"Stake address copied to clipboard!")),v(qt,G)}),t(E);var N=r(E),O=e(N),zt=e(O,!0);t(O),t(N);var dt=r(N),vt=e(dt),C=e(vt),ut=e(C),St=e(ut,!0);c(()=>p(St,K(s(l).tx_hash,20))),t(ut),t(C);var Rt=r(C,2);t(vt),t(dt),t(S),c(()=>{_(j,"href",`/pools/${s(l).pool_id_bech32??""}`),_(P,"title",`${s(l).pledge??""} lovelace`),_(M,"title",`${s(l).cost??""} lovelace`),_(O,"href",`/blocks/${s(l).block_number??""}`),p(zt,s(l).block_number),_(C,"href",`/transactions/${s(l).tx_hash??""}`)}),u("click",Bt,()=>A(s(l).pool_id_bech32,"Pool ID copied to clipboard!")),u("click",Rt,()=>A(s(l).tx_hash,"Transaction hash copied to clipboard!")),v(It,S)}),v(b,k)};T(d,b=>{n().registrations.length===0?b(y):b(it,!1)},!0)}v(a,o)};T(Ct,a=>{s(f)?a(Tt):a($t,!1)})}t(ot),t(st),t(F);var rt=r(F,2),nt=e(rt),U=e(nt);c(()=>U.disabled=parseInt(n().page)===1);var z=r(U,2),Ht=e(z);t(z);var lt=r(z,2);t(nt),t(rt),t(I),c(()=>{p(Mt,`Page ${n().page??""}`),at.disabled=n().registrations.length===0,p(Ht,`Page ${n().page??""}`),lt.disabled=n().registrations.length===0}),u("click",B,Y),u("click",at,Z),u("click",U,Y),u("click",lt,Z),v(yt,I),Kt()}export{ge as component};
@@ -1 +1 @@
1
- import{e as m,a as D,t as O}from"../chunks/disclose-version.B6I0FcgD.js";import{i as at}from"../chunks/legacy.B5O3fKqs.js";import{p as st,l as F,d as rt,t as c,a as nt,s as r,c as e,r as t,b as G,g as n,m as J}from"../chunks/runtime.D0obI1Oe.js";import{s as i}from"../chunks/render.BulRu2sY.js";import{e as ot,i as it}from"../chunks/each.B_0_gCHG.js";import{s as K}from"../chunks/attributes.DHvUyCc8.js";import{p as ct}from"../chunks/props.URi5AcUs.js";import{s as lt,a as pt}from"../chunks/store.0paeW0RT.js";import{g as M}from"../chunks/entry.CCc6ivWK.js";import{p as dt}from"../chunks/stores.YYNNEhuW.js";import{t as N}from"../chunks/util.BtMo5KOn.js";var mt=O('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><a class="text-blue-500 hover:underline"><span> </span></a></td></tr>'),bt=O('<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Pool Retirements</h2> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Pool</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Epoch</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Retirement Epoch</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function kt(Q,$){st($,!1);const W=lt(),I=()=>pt(dt,"$page",W),b=J();let s=ct($,"data",12),p=J([]);const U=()=>{let a=parseInt(s().page||"1")-1;a<=0&&(a=1),M(`/certificates/pool-retirements?page=${a}&count=15`)},E=()=>{let o=parseInt(s().page||"1"),a=o+1;s().retirements.length==0&&(a=o),M(`/certificates/pool-retirements?page=${a}&count=15`)};s().retirements||s(s().retirements=[],!0),F(()=>I(),()=>{G(b,I().url.searchParams.get("page"))}),F(()=>(n(p),n(b)),()=>{n(p).forEach(o=>{let l=o.href.split("?").slice(1).join("?");new URLSearchParams(l).get("page")===n(b)?o.active=!0:o.active=!1}),G(p,n(p))}),rt(),at();var u=bt(),x=r(e(u),2),R=e(x),v=e(R);c(()=>v.disabled=parseInt(s().page)===1);var f=r(v,2),X=e(f);t(f);var S=r(f,2);t(R),t(x);var h=r(x,2),V=e(h),q=r(e(V));ot(q,5,()=>s().retirements,it,(o,a)=>{var l=mt(),d=e(l),z=e(d,!0);c(()=>i(z,N(n(a).pool_id_bech32,35,"..."))),t(d);var y=r(d),Z=e(y,!0);t(y);var w=r(y),L=e(w,!0);t(w);var P=r(w),j=e(P),tt=e(j,!0);t(j),t(P);var A=r(P),k=e(A),C=e(k),et=e(C,!0);c(()=>i(et,N(n(a).tx_hash,30))),t(C),t(k),t(A),t(l),c(()=>{i(Z,n(a).epoch),i(L,n(a).retirement_epoch),K(j,"href",`/blocks/${n(a).block_number??""}`),i(tt,n(a).block_number),K(k,"href",`/transactions/${n(a).tx_hash??""}`)}),D(o,l)}),t(q),t(V),t(h);var B=r(h,2),H=e(B),g=e(H);c(()=>g.disabled=parseInt(s().page)===1);var _=r(g,2),Y=e(_);t(_);var T=r(_,2);t(H),t(B),t(u),c(()=>{i(X,`Page ${s().page??""}`),S.disabled=s().retirements.length===0,i(Y,`Page ${s().page??""}`),T.disabled=s().retirements.length===0}),m("click",v,U),m("click",S,E),m("click",g,U),m("click",T,E),D(Q,u),nt()}export{kt as component};
1
+ import{e as m,a as D,t as O}from"../chunks/disclose-version.B6I0FcgD.js";import{i as at}from"../chunks/legacy.B5O3fKqs.js";import{p as st,l as F,d as rt,t as c,a as nt,s as r,c as e,r as t,b as G,g as n,m as J}from"../chunks/runtime.D0obI1Oe.js";import{s as i}from"../chunks/render.BulRu2sY.js";import{e as ot,i as it}from"../chunks/each.B_0_gCHG.js";import{s as K}from"../chunks/attributes.DHvUyCc8.js";import{p as ct}from"../chunks/props.URi5AcUs.js";import{s as lt,a as pt}from"../chunks/store.0paeW0RT.js";import{g as M}from"../chunks/entry.CIxqEXQ4.js";import{p as dt}from"../chunks/stores.CVJU6lLm.js";import{t as N}from"../chunks/util.BtMo5KOn.js";var mt=O('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><a class="text-blue-500 hover:underline"><span> </span></a></td></tr>'),bt=O('<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Pool Retirements</h2> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Pool</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Epoch</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Retirement Epoch</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function kt(Q,$){st($,!1);const W=lt(),I=()=>pt(dt,"$page",W),b=J();let s=ct($,"data",12),p=J([]);const U=()=>{let a=parseInt(s().page||"1")-1;a<=0&&(a=1),M(`/certificates/pool-retirements?page=${a}&count=15`)},E=()=>{let o=parseInt(s().page||"1"),a=o+1;s().retirements.length==0&&(a=o),M(`/certificates/pool-retirements?page=${a}&count=15`)};s().retirements||s(s().retirements=[],!0),F(()=>I(),()=>{G(b,I().url.searchParams.get("page"))}),F(()=>(n(p),n(b)),()=>{n(p).forEach(o=>{let l=o.href.split("?").slice(1).join("?");new URLSearchParams(l).get("page")===n(b)?o.active=!0:o.active=!1}),G(p,n(p))}),rt(),at();var u=bt(),x=r(e(u),2),R=e(x),v=e(R);c(()=>v.disabled=parseInt(s().page)===1);var f=r(v,2),X=e(f);t(f);var S=r(f,2);t(R),t(x);var h=r(x,2),V=e(h),q=r(e(V));ot(q,5,()=>s().retirements,it,(o,a)=>{var l=mt(),d=e(l),z=e(d,!0);c(()=>i(z,N(n(a).pool_id_bech32,35,"..."))),t(d);var y=r(d),Z=e(y,!0);t(y);var w=r(y),L=e(w,!0);t(w);var P=r(w),j=e(P),tt=e(j,!0);t(j),t(P);var A=r(P),k=e(A),C=e(k),et=e(C,!0);c(()=>i(et,N(n(a).tx_hash,30))),t(C),t(k),t(A),t(l),c(()=>{i(Z,n(a).epoch),i(L,n(a).retirement_epoch),K(j,"href",`/blocks/${n(a).block_number??""}`),i(tt,n(a).block_number),K(k,"href",`/transactions/${n(a).tx_hash??""}`)}),D(o,l)}),t(q),t(V),t(h);var B=r(h,2),H=e(B),g=e(H);c(()=>g.disabled=parseInt(s().page)===1);var _=r(g,2),Y=e(_);t(_);var T=r(_,2);t(H),t(B),t(u),c(()=>{i(X,`Page ${s().page??""}`),S.disabled=s().retirements.length===0,i(Y,`Page ${s().page??""}`),T.disabled=s().retirements.length===0}),m("click",v,U),m("click",S,E),m("click",g,U),m("click",T,E),D(Q,u),nt()}export{kt as component};
@@ -1 +1 @@
1
- import{a as f,t as _,e as z}from"../chunks/disclose-version.B6I0FcgD.js";import{i as O}from"../chunks/legacy.B5O3fKqs.js";import{p as Q,l as R,d as V,a as W,g as s,s as n,m as g,c as e,r as t,t as l,b as p}from"../chunks/runtime.D0obI1Oe.js";import{s as d}from"../chunks/render.BulRu2sY.js";import{i as X}from"../chunks/if.zgWENsz3.js";import{e as Y,i as Z}from"../chunks/each.B_0_gCHG.js";import{s as F}from"../chunks/attributes.DHvUyCc8.js";import{p as tt}from"../chunks/props.URi5AcUs.js";import{s as et,a as at}from"../chunks/store.0paeW0RT.js";import"../chunks/entry.CCc6ivWK.js";import{p as st}from"../chunks/stores.YYNNEhuW.js";import{t as P}from"../chunks/util.BtMo5KOn.js";import{o as ot}from"../chunks/index-client.cZmOdYbP.js";var rt=_('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300 z-50 svelte-1d7vbtm"> </div>'),nt=_('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><span> </span> <button class="text-base-content/50 hover:text-base-content/70" title="Copy address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <button class="text-base-content/50 hover:text-base-content/70" title="Copy transaction hash"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td></tr>'),it=_('<section class="container mx-auto text-sm"><!> <h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Stake Deregistrations</h2> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div></section>');function wt(S,w){Q(w,!1);const U=et(),y=()=>at(st,"$page",U),q=g();let E=tt(w,"data",8),m=g(!1),i,k=g("");async function T(o,a){try{await navigator.clipboard.writeText(o),p(m,!0),p(k,a),i&&clearTimeout(i),i=setTimeout(()=>{p(m,!1)},2e3)}catch(r){console.error("Failed to copy text: ",r)}}ot(()=>()=>{i&&clearTimeout(i)}),R(()=>y(),()=>{p(q,y().url.searchParams.get("page"))}),V(),O();var v=it(),M=e(v);{var G=o=>{var a=rt(),r=e(a,!0);t(a),l(()=>d(r,s(k))),f(o,a)};X(M,o=>{s(m)&&o(G)})}var C=n(M,4),H=e(C),$=n(e(H));Y($,5,()=>E().stakeDeregistrations,Z,(o,a)=>{var r=nt(),h=e(r),B=e(h),x=e(B),I=e(x,!0);l(()=>d(I,P(s(a).address,20,"..."))),t(x);var J=n(x,2);t(B),t(h);var b=n(h),u=e(b),K=e(u,!0);t(u),t(b);var j=n(b),A=e(j),c=e(A),D=e(c),L=e(D,!0);l(()=>d(L,P(s(a).tx_hash,20))),t(D),t(c);var N=n(c,2);t(A),t(j),t(r),l(()=>{F(u,"href",`/blocks/${s(a).block_number??""}`),d(K,s(a).block_number),F(c,"href",`/transactions/${s(a).tx_hash??""}`)}),z("click",J,()=>T(s(a).address,"Address copied to clipboard!")),z("click",N,()=>T(s(a).tx_hash,"Transaction hash copied to clipboard!")),f(o,r)}),t($),t(H),t(C),t(v),f(S,v),W()}export{wt as component};
1
+ import{a as f,t as _,e as z}from"../chunks/disclose-version.B6I0FcgD.js";import{i as O}from"../chunks/legacy.B5O3fKqs.js";import{p as Q,l as R,d as V,a as W,g as s,s as n,m as g,c as e,r as t,t as l,b as p}from"../chunks/runtime.D0obI1Oe.js";import{s as d}from"../chunks/render.BulRu2sY.js";import{i as X}from"../chunks/if.zgWENsz3.js";import{e as Y,i as Z}from"../chunks/each.B_0_gCHG.js";import{s as F}from"../chunks/attributes.DHvUyCc8.js";import{p as tt}from"../chunks/props.URi5AcUs.js";import{s as et,a as at}from"../chunks/store.0paeW0RT.js";import"../chunks/entry.CIxqEXQ4.js";import{p as st}from"../chunks/stores.CVJU6lLm.js";import{t as P}from"../chunks/util.BtMo5KOn.js";import{o as ot}from"../chunks/index-client.cZmOdYbP.js";var rt=_('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300 z-50 svelte-1d7vbtm"> </div>'),nt=_('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><span> </span> <button class="text-base-content/50 hover:text-base-content/70" title="Copy address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <button class="text-base-content/50 hover:text-base-content/70" title="Copy transaction hash"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td></tr>'),it=_('<section class="container mx-auto text-sm"><!> <h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Stake Deregistrations</h2> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div></section>');function wt(S,w){Q(w,!1);const U=et(),y=()=>at(st,"$page",U),q=g();let E=tt(w,"data",8),m=g(!1),i,k=g("");async function T(o,a){try{await navigator.clipboard.writeText(o),p(m,!0),p(k,a),i&&clearTimeout(i),i=setTimeout(()=>{p(m,!1)},2e3)}catch(r){console.error("Failed to copy text: ",r)}}ot(()=>()=>{i&&clearTimeout(i)}),R(()=>y(),()=>{p(q,y().url.searchParams.get("page"))}),V(),O();var v=it(),M=e(v);{var G=o=>{var a=rt(),r=e(a,!0);t(a),l(()=>d(r,s(k))),f(o,a)};X(M,o=>{s(m)&&o(G)})}var C=n(M,4),H=e(C),$=n(e(H));Y($,5,()=>E().stakeDeregistrations,Z,(o,a)=>{var r=nt(),h=e(r),B=e(h),x=e(B),I=e(x,!0);l(()=>d(I,P(s(a).address,20,"..."))),t(x);var J=n(x,2);t(B),t(h);var b=n(h),u=e(b),K=e(u,!0);t(u),t(b);var j=n(b),A=e(j),c=e(A),D=e(c),L=e(D,!0);l(()=>d(L,P(s(a).tx_hash,20))),t(D),t(c);var N=n(c,2);t(A),t(j),t(r),l(()=>{F(u,"href",`/blocks/${s(a).block_number??""}`),d(K,s(a).block_number),F(c,"href",`/transactions/${s(a).tx_hash??""}`)}),z("click",J,()=>T(s(a).address,"Address copied to clipboard!")),z("click",N,()=>T(s(a).tx_hash,"Transaction hash copied to clipboard!")),f(o,r)}),t($),t(H),t(C),t(v),f(S,v),W()}export{wt as component};
@@ -1 +1 @@
1
- import{a as f,t as _,e as z}from"../chunks/disclose-version.B6I0FcgD.js";import{i as N}from"../chunks/legacy.B5O3fKqs.js";import{p as O,l as Q,d as V,a as W,g as s,s as n,m as g,c as e,r as t,t as l,b as d}from"../chunks/runtime.D0obI1Oe.js";import{s as p}from"../chunks/render.BulRu2sY.js";import{i as X}from"../chunks/if.zgWENsz3.js";import{e as Y,i as Z}from"../chunks/each.B_0_gCHG.js";import{s as F}from"../chunks/attributes.DHvUyCc8.js";import{p as tt}from"../chunks/props.URi5AcUs.js";import{s as et,a as at}from"../chunks/store.0paeW0RT.js";import"../chunks/entry.CCc6ivWK.js";import{p as st}from"../chunks/stores.YYNNEhuW.js";import{t as P}from"../chunks/util.BtMo5KOn.js";import{o as ot}from"../chunks/index-client.cZmOdYbP.js";var rt=_('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300 z-50 svelte-1d7vbtm"> </div>'),nt=_('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><span> </span> <button class="text-base-content/50 hover:text-base-content/70" title="Copy address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <button class="text-base-content/50 hover:text-base-content/70" title="Copy transaction hash"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td></tr>'),it=_('<section class="container mx-auto text-sm"><!> <h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Stake Registrations</h2> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div></section>');function wt(S,w){O(w,!1);const U=et(),y=()=>at(st,"$page",U),q=g();let D=tt(w,"data",8),m=g(!1),i,k=g("");async function T(o,a){try{await navigator.clipboard.writeText(o),d(m,!0),d(k,a),i&&clearTimeout(i),i=setTimeout(()=>{d(m,!1)},2e3)}catch(r){console.error("Failed to copy text: ",r)}}ot(()=>()=>{i&&clearTimeout(i)}),Q(()=>y(),()=>{d(q,y().url.searchParams.get("page"))}),V(),N();var v=it(),M=e(v);{var E=o=>{var a=rt(),r=e(a,!0);t(a),l(()=>p(r,s(k))),f(o,a)};X(M,o=>{s(m)&&o(E)})}var C=n(M,4),H=e(C),$=n(e(H));Y($,5,()=>D().stakeRegistrations,Z,(o,a)=>{var r=nt(),h=e(r),B=e(h),x=e(B),G=e(x,!0);l(()=>p(G,P(s(a).address,20,"..."))),t(x);var I=n(x,2);t(B),t(h);var b=n(h),u=e(b),J=e(u,!0);t(u),t(b);var j=n(b),A=e(j),c=e(A),R=e(c),K=e(R,!0);l(()=>p(K,P(s(a).tx_hash,20))),t(R),t(c);var L=n(c,2);t(A),t(j),t(r),l(()=>{F(u,"href",`/blocks/${s(a).block_number??""}`),p(J,s(a).block_number),F(c,"href",`/transactions/${s(a).tx_hash??""}`)}),z("click",I,()=>T(s(a).address,"Address copied to clipboard!")),z("click",L,()=>T(s(a).tx_hash,"Transaction hash copied to clipboard!")),f(o,r)}),t($),t(H),t(C),t(v),f(S,v),W()}export{wt as component};
1
+ import{a as f,t as _,e as z}from"../chunks/disclose-version.B6I0FcgD.js";import{i as N}from"../chunks/legacy.B5O3fKqs.js";import{p as O,l as Q,d as V,a as W,g as s,s as n,m as g,c as e,r as t,t as l,b as d}from"../chunks/runtime.D0obI1Oe.js";import{s as p}from"../chunks/render.BulRu2sY.js";import{i as X}from"../chunks/if.zgWENsz3.js";import{e as Y,i as Z}from"../chunks/each.B_0_gCHG.js";import{s as F}from"../chunks/attributes.DHvUyCc8.js";import{p as tt}from"../chunks/props.URi5AcUs.js";import{s as et,a as at}from"../chunks/store.0paeW0RT.js";import"../chunks/entry.CIxqEXQ4.js";import{p as st}from"../chunks/stores.CVJU6lLm.js";import{t as P}from"../chunks/util.BtMo5KOn.js";import{o as ot}from"../chunks/index-client.cZmOdYbP.js";var rt=_('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300 z-50 svelte-1d7vbtm"> </div>'),nt=_('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><span> </span> <button class="text-base-content/50 hover:text-base-content/70" title="Copy address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><div class="flex items-center gap-2"><a class="text-blue-500 hover:underline"><span> </span></a> <button class="text-base-content/50 hover:text-base-content/70" title="Copy transaction hash"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></td></tr>'),it=_('<section class="container mx-auto text-sm"><!> <h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Stake Registrations</h2> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div></section>');function wt(S,w){O(w,!1);const U=et(),y=()=>at(st,"$page",U),q=g();let D=tt(w,"data",8),m=g(!1),i,k=g("");async function T(o,a){try{await navigator.clipboard.writeText(o),d(m,!0),d(k,a),i&&clearTimeout(i),i=setTimeout(()=>{d(m,!1)},2e3)}catch(r){console.error("Failed to copy text: ",r)}}ot(()=>()=>{i&&clearTimeout(i)}),Q(()=>y(),()=>{d(q,y().url.searchParams.get("page"))}),V(),N();var v=it(),M=e(v);{var E=o=>{var a=rt(),r=e(a,!0);t(a),l(()=>p(r,s(k))),f(o,a)};X(M,o=>{s(m)&&o(E)})}var C=n(M,4),H=e(C),$=n(e(H));Y($,5,()=>D().stakeRegistrations,Z,(o,a)=>{var r=nt(),h=e(r),B=e(h),x=e(B),G=e(x,!0);l(()=>p(G,P(s(a).address,20,"..."))),t(x);var I=n(x,2);t(B),t(h);var b=n(h),u=e(b),J=e(u,!0);t(u),t(b);var j=n(b),A=e(j),c=e(A),R=e(c),K=e(R,!0);l(()=>p(K,P(s(a).tx_hash,20))),t(R),t(c);var L=n(c,2);t(A),t(j),t(r),l(()=>{F(u,"href",`/blocks/${s(a).block_number??""}`),p(J,s(a).block_number),F(c,"href",`/transactions/${s(a).tx_hash??""}`)}),z("click",I,()=>T(s(a).address,"Address copied to clipboard!")),z("click",L,()=>T(s(a).tx_hash,"Transaction hash copied to clipboard!")),f(o,r)}),t($),t(H),t(C),t(v),f(S,v),W()}export{wt as component};
@@ -1 +1 @@
1
- import{e as b,a as R,t as M}from"../chunks/disclose-version.B6I0FcgD.js";import{i as L}from"../chunks/legacy.B5O3fKqs.js";import{p as tt,l as z,d as et,t as i,a as at,s as r,c as e,r as t,b as C,g as n,m as F}from"../chunks/runtime.D0obI1Oe.js";import{s as c}from"../chunks/render.BulRu2sY.js";import{e as st,i as rt}from"../chunks/each.B_0_gCHG.js";import{s as G}from"../chunks/attributes.DHvUyCc8.js";import{p as nt}from"../chunks/props.URi5AcUs.js";import{s as ot,a as it}from"../chunks/store.0paeW0RT.js";import{g as J}from"../chunks/entry.CCc6ivWK.js";import{p as ct}from"../chunks/stores.YYNNEhuW.js";import{g as lt,t as pt}from"../chunks/util.BtMo5KOn.js";var dt=M('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><a class="text-blue-500 hover:underline"><span> </span></a></td></tr>'),bt=M('<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Stake Key De-registrations</h2> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Time</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function jt(N,P){tt(P,!1);const O=ot(),$=()=>it(ct,"$page",O),m=F();let a=nt(P,"data",12),p=F([]);const I=()=>{let s=parseInt(a().page||"1")-1;s<=0&&(s=1),J(`/certificates/stakekey-deregistrations?page=${s}&count=15`)},U=()=>{let o=parseInt(a().page||"1"),s=o+1;a().deregistrations.length==0&&(s=o),J(`/certificates/stakekey-deregistrations?page=${s}&count=15`)};console.log(a()),a().deregistrations||a(a().deregistrations=[],!0),z(()=>$(),()=>{C(m,$().url.searchParams.get("page"))}),z(()=>(n(p),n(m)),()=>{n(p).forEach(o=>{let l=o.href.split("?").slice(1).join("?");new URLSearchParams(l).get("page")===n(m)?o.active=!0:o.active=!1}),C(p,n(p))}),et(),L();var u=bt(),v=r(e(u),2),S=e(v),x=e(S);i(()=>x.disabled=parseInt(a().page)===1);var f=r(x,2),Q=e(f);t(f);var D=r(f,2);t(S),t(v);var g=r(v,2),T=e(g),V=r(e(T));st(V,5,()=>a().deregistrations,rt,(o,s)=>{var l=dt(),d=e(l),E=e(d,!0);t(d);var y=r(d),k=e(y),X=e(k,!0);t(k),t(y);var w=r(y),Y=e(w,!0);i(()=>c(Y,lt(n(s).block_time))),t(w);var H=r(w),j=e(H),K=e(j),Z=e(K,!0);i(()=>c(Z,pt(n(s).tx_hash,30,"..."))),t(K),t(j),t(H),t(l),i(()=>{c(E,n(s).address),G(k,"href",`/blocks/${n(s).block_number??""}`),c(X,n(s).block_number),G(j,"href",`/transactions/${n(s).tx_hash??""}`)}),R(o,l)}),t(V),t(T),t(g);var q=r(g,2),A=e(q),h=e(A);i(()=>h.disabled=parseInt(a().page)===1);var _=r(h,2),W=e(_);t(_);var B=r(_,2);t(A),t(q),t(u),i(()=>{c(Q,`Page ${a().page??""}`),D.disabled=a().deregistrations.length===0,c(W,`Page ${a().page??""}`),B.disabled=a().deregistrations.length===0}),b("click",x,I),b("click",D,U),b("click",h,I),b("click",B,U),R(N,u),at()}export{jt as component};
1
+ import{e as b,a as R,t as M}from"../chunks/disclose-version.B6I0FcgD.js";import{i as L}from"../chunks/legacy.B5O3fKqs.js";import{p as tt,l as z,d as et,t as i,a as at,s as r,c as e,r as t,b as C,g as n,m as F}from"../chunks/runtime.D0obI1Oe.js";import{s as c}from"../chunks/render.BulRu2sY.js";import{e as st,i as rt}from"../chunks/each.B_0_gCHG.js";import{s as G}from"../chunks/attributes.DHvUyCc8.js";import{p as nt}from"../chunks/props.URi5AcUs.js";import{s as ot,a as it}from"../chunks/store.0paeW0RT.js";import{g as J}from"../chunks/entry.CIxqEXQ4.js";import{p as ct}from"../chunks/stores.CVJU6lLm.js";import{g as lt,t as pt}from"../chunks/util.BtMo5KOn.js";var dt=M('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><a class="text-blue-500 hover:underline"><span> </span></a></td></tr>'),bt=M('<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Stake Key De-registrations</h2> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4"><table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Time</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function jt(N,P){tt(P,!1);const O=ot(),$=()=>it(ct,"$page",O),m=F();let a=nt(P,"data",12),p=F([]);const I=()=>{let s=parseInt(a().page||"1")-1;s<=0&&(s=1),J(`/certificates/stakekey-deregistrations?page=${s}&count=15`)},U=()=>{let o=parseInt(a().page||"1"),s=o+1;a().deregistrations.length==0&&(s=o),J(`/certificates/stakekey-deregistrations?page=${s}&count=15`)};console.log(a()),a().deregistrations||a(a().deregistrations=[],!0),z(()=>$(),()=>{C(m,$().url.searchParams.get("page"))}),z(()=>(n(p),n(m)),()=>{n(p).forEach(o=>{let l=o.href.split("?").slice(1).join("?");new URLSearchParams(l).get("page")===n(m)?o.active=!0:o.active=!1}),C(p,n(p))}),et(),L();var u=bt(),v=r(e(u),2),S=e(v),x=e(S);i(()=>x.disabled=parseInt(a().page)===1);var f=r(x,2),Q=e(f);t(f);var D=r(f,2);t(S),t(v);var g=r(v,2),T=e(g),V=r(e(T));st(V,5,()=>a().deregistrations,rt,(o,s)=>{var l=dt(),d=e(l),E=e(d,!0);t(d);var y=r(d),k=e(y),X=e(k,!0);t(k),t(y);var w=r(y),Y=e(w,!0);i(()=>c(Y,lt(n(s).block_time))),t(w);var H=r(w),j=e(H),K=e(j),Z=e(K,!0);i(()=>c(Z,pt(n(s).tx_hash,30,"..."))),t(K),t(j),t(H),t(l),i(()=>{c(E,n(s).address),G(k,"href",`/blocks/${n(s).block_number??""}`),c(X,n(s).block_number),G(j,"href",`/transactions/${n(s).tx_hash??""}`)}),R(o,l)}),t(V),t(T),t(g);var q=r(g,2),A=e(q),h=e(A);i(()=>h.disabled=parseInt(a().page)===1);var _=r(h,2),W=e(_);t(_);var B=r(_,2);t(A),t(q),t(u),i(()=>{c(Q,`Page ${a().page??""}`),D.disabled=a().deregistrations.length===0,c(W,`Page ${a().page??""}`),B.disabled=a().deregistrations.length===0}),b("click",x,I),b("click",D,U),b("click",h,I),b("click",B,U),R(N,u),at()}export{jt as component};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/store.B6ZMmWK9.js","../chunks/index.DXwpZH-3.js","../chunks/runtime.D0obI1Oe.js","../chunks/public.CY0-pQ-D.js"])))=>i.map(i=>d[i]);
2
- import{_ as Q}from"../chunks/preload-helper.C1FmrZbK.js";import{c as ct,a as v,t as _}from"../chunks/disclose-version.B6I0FcgD.js";import{i as q}from"../chunks/legacy.B5O3fKqs.js";import{p as z,s as l,c as o,f as K,g as s,r as e,a as H,t as h,i as lt,b as U,m as Y,aI as A}from"../chunks/runtime.D0obI1Oe.js";import{i as L}from"../chunks/if.zgWENsz3.js";import{o as Z,a as xt}from"../chunks/index-client.cZmOdYbP.js";import{s as b}from"../chunks/render.BulRu2sY.js";import{e as et,i as at}from"../chunks/each.B_0_gCHG.js";import{s as O}from"../chunks/attributes.DHvUyCc8.js";import{p as M}from"../chunks/props.URi5AcUs.js";import{h as gt}from"../chunks/moment.C5S46NFB.js";import{g as ut,t as nt}from"../chunks/util.8sVtkjoC.js";import{l as wt}from"../chunks/ada_util.zWFYliEg.js";import{f as G,a as J}from"../chunks/util.BtMo5KOn.js";import{e as it}from"../chunks/public.CY0-pQ-D.js";var kt=_('<div class="bg-base-200 p-4 rounded-md"><h3 class="text-sm font-bold"><span class="font-bold">Block</span> <a class="text-blue-500 hover:underline"> </a></h3> <p class="text-sm text-base-content/70"><span class="font-bold">Slot</span> </p> <p class="text-sm text-base-content/70"><span class="font-bold">Txs</span> </p> <p class="text-sm text-base-content/70"><span class="font-bold">Size</span> </p> <p class="text-sm text-base-content/70 break-words"><span class="font-bold">Pool</span> </p> <p class="text-sm text-base-content/70"><span class="text-xs text-base-content/60"> </span></p></div>'),yt=_('<div class="bg-base-100 rounded-lg shadow-lg p-6"><h2 class="text-xl font-bold mb-4">Recent Blocks</h2> <div class="space-y-4"></div></div>');function Et(k,m){z(m,!1);let t=M(m,"blocks",8),d=M(m,"noOfBlocks",8,10);q();var c=yt(),f=l(o(c),2);et(f,5,()=>[...t()].slice(0,d()),at,($,n)=>{var p=ct(),y=K(p);{var T=g=>{var u=kt(),x=o(u),E=l(o(x),2),S=o(E,!0);e(E),e(x);var w=l(x,2),D=l(o(w));e(w);var I=l(w,2),j=l(o(I));e(I);var P=l(I,2),V=l(o(P));h(()=>b(V,` ${(s(n).size/1024).toFixed(2)??""} kb`)),e(P);var B=l(P,2),X=l(o(B));e(B);var N=l(B,2),F=o(N);const R=lt(()=>ut(s(n).block_time)??""),W=lt(()=>gt(s(n).block_time*1e3).fromNow()??"");var tt=o(F);h(()=>b(tt,`${s(R)}, ${s(W)}`)),e(F),e(N),e(u),h(()=>{O(E,"href",`/blocks/${s(n).number??""}`),b(S,s(n).number),b(D,` ${s(n).slot??""}`),b(j,` ${s(n).ntx??""}`),b(X,` ${s(n).slot_leader??""}`)}),v(g,u)};L(y,g=>{s(n).number&&g(T)})}v($,p)}),e(f),e(c),v(k,c),H()}function At(k,m){z(m,!1);let t=Y([]);Z(async()=>{const d=await Q(()=>import("../chunks/store.B6ZMmWK9.js"),__vite__mapDeps([0,1,2,3]),import.meta.url);console.log(d.subscribe),U(t,d.blocksCache),d.blocksStore.subscribe(c=>{c&&c.number!=null&&U(t,[c,...s(t).filter(f=>f.number!==c.number)].slice(0,30))}),d.aggregateStore.subscribe(c=>{})}),q(),Et(k,{get blocks(){return s(t)},noOfBlocks:"10"}),H()}var Tt=_('<p class="text-sm text-base-content/70"> </p>'),St=_('<div class="bg-base-200 p-4 rounded-md"><p class="text-sm text-base-content/70 py-1"><span class="font-bold">Tx Hash</span> <span class="text-base-content/70 text-right overflow-auto md:overflow-hidden"><a class="text-blue-500 hover:underline"> </a></span></p> <p class="text-sm text-base-content/70 py-1"><span class="font-bold">Block / Slot</span> <a class="text-blue-500 hover:underline"> </a> </p> <p class="text-sm text-base-content/70"><span class="font-bold">Output Addresses</span></p> <div class="flex flex-col items-begin py-1 break-words"></div> <p class="text-sm text-base-content/70 py-1"><span class="font-bold">Output</span> </p></div>'),It=_('<div class="bg-base-100 rounded-lg shadow-lg p-6"><h2 class="text-xl font-bold mb-4">Transactions</h2> <div class="space-y-4"></div></div>');function Bt(k,m){z(m,!1);let t=M(m,"txs",8),d=M(m,"noOfTxs",8,10);q();var c=It(),f=l(o(c),2);et(f,5,()=>[...t()].slice(0,d()),at,($,n)=>{var p=ct(),y=K(p);{var T=g=>{var u=St(),x=o(u),E=l(o(x),2),S=o(E),w=o(S,!0);h(()=>b(w,nt(s(n).hash,38,"..."))),e(S),e(E),e(x);var D=l(x,2),I=l(o(D),2),j=o(I,!0);e(I);var P=l(I);e(D);var V=l(D,4);et(V,5,()=>s(n).output_addresses,at,(N,F)=>{var R=Tt(),W=o(R,!0);h(()=>b(W,nt(s(F),60,"..."))),e(R),v(N,R)}),e(V);var B=l(V,2),X=l(o(B));h(()=>b(X,` ${wt(s(n).output,2)??""} Ada`)),e(B),e(u),h(()=>{O(S,"href",`/transactions/${s(n).hash??""}`),O(I,"href",`/blocks/${s(n).block??""}`),b(j,s(n).block),b(P,` / ${s(n).slot??""}`)}),v(g,u)};L(y,g=>{s(n).hash&&g(T)})}v($,p)}),e(f),e(c),v(k,c),H()}function Dt(k,m){z(m,!1);let t=Y([]);Z(async()=>{const d=await Q(()=>import("../chunks/store.B6ZMmWK9.js"),__vite__mapDeps([0,1,2,3]),import.meta.url);console.log(d.subscribe),U(t,d.txCache),d.recentTxStore.subscribe(c=>{c&&c.hash&&U(t,[c,...s(t).filter(f=>f.hash!==c.hash)].slice(0,30))})}),q(),Bt(k,{get txs(){return s(t)},noOfTxs:"10"}),H()}var Rt=_('<p class="text-base-content/80"> </p>'),Ct=_('<div class="flex items-center"><div class="w-3/4 bg-base-300 rounded-lg overflow-hidden"><div class="bg-blue-500 h-2"></div></div> <p class="ml-2 text-base-content/80"> </p></div>'),Lt=_('<div class="tooltip"><p class="text-base-content/80"> </p></div>'),Ot=_("<span>-</span>"),$t=_('<div class="tooltip"><p class="text-base-content/80"> </p></div>'),jt=_("<span>-</span>"),Pt=_('<div class="tooltip"><p class="text-base-content/80"> </p></div>'),Vt=_("<span>-</span>"),Nt=_('<div class="tooltip"><p class="text-base-content/80"> </p></div>'),Ft=_("<span>-</span>"),Ut=_('<section class="bg-base-100 py-12"><div class="container mx-auto grid grid-cols-1 md:grid-cols-4 gap-4 svelte-gqvhw5"><div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Epoch</h3> <p class="text-base-content/80"> </p></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Current Block</h3> <p class="text-base-content/80"> </p></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Slot</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Epoch Progress</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Total Active Stake</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Treasury</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Reserves</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Circulating Supply</h3> <!></div></div></section>');function qt(k,m){z(m,!1);let t=Y({epoch:0,number:0,block_time:0,slot:0,epoch_slot:0,slots_per_epoch:0}),d=0,c,f=null;async function $(){try{console.log("Fetching network data");const a=it.PUBLIC_INDEXER_CLIENT_BASE_URL||it.PUBLIC_INDEXER_BASE_URL,r=await fetch(`${a}/network`);if(!r.ok)throw console.error("Failed to fetch network data:",r.status,r.statusText),new Error(`Failed to fetch network data: ${r.status} ${r.statusText}`);const i=await r.json();return console.log("Network data response:",i),i}catch(a){return console.error("Error fetching network data:",a),null}}async function n(a){if(a&&typeof a=="object"){const r=a.epoch||0;if(console.log("New epoch received:",r),A(t,s(t).epoch=r),A(t,s(t).number=a.number||0),A(t,s(t).block_time=a.block_time||0),A(t,s(t).slot=a.slot||0),A(t,s(t).epoch_slot=a.epoch_slot||0),A(t,s(t).slots_per_epoch=a.slots_per_epoch||0),s(t).epoch_slot&&s(t).slots_per_epoch&&A(t,s(t).epoch_progress=(s(t).epoch_slot/s(t).slots_per_epoch*100).toFixed(2)),r!==d){console.log("Epoch changed, fetching new data. Last epoch:",d,"New epoch:",r);const i=await $();i&&(A(t,s(t).total_active_stake=i.stake.active.toString()),A(t,s(t).treasury=i.supply.treasury.toString()),A(t,s(t).reserves=i.supply.reserves.toString()),A(t,s(t).circulating_supply=i.supply.circulating.toString())),d=r}}}Z(async()=>{c=await Q(()=>import("../chunks/store.B6ZMmWK9.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),f=c.blocksStore.subscribe(n)}),xt(()=>{f&&f()}),q();var p=Ut(),y=o(p),T=o(y),g=l(o(T),2),u=o(g,!0);e(g),e(T);var x=l(T,2),E=l(o(x),2),S=o(E,!0);e(E),e(x);var w=l(x,2),D=l(o(w),2);{var I=a=>{var r=Rt(),i=o(r);e(r),h(()=>b(i,`${s(t).epoch_slot??""}/${s(t).slots_per_epoch??""}`)),v(a,r)};L(D,a=>{s(t).epoch_slot&&a(I)})}e(w);var j=l(w,2),P=l(o(j),2);{var V=a=>{var r=Ct(),i=o(r),C=o(i);e(i);var rt=l(i,2),ft=o(rt);e(rt),e(r),h(()=>{O(C,"style",`width: ${s(t).epoch_progress??""}%;`),b(ft,`${s(t).epoch_progress??""}%`)}),v(a,r)};L(P,a=>{s(t).epoch_progress&&a(V)})}e(j);var B=l(j,2),X=l(o(B),2);{var N=a=>{var r=Lt();h(()=>O(r,"data-tip",G(parseInt(s(t).total_active_stake))));var i=o(r),C=o(i);h(()=>b(C,`${J(parseInt(s(t).total_active_stake))??""} ADA`)),e(i),e(r),v(a,r)},F=a=>{var r=Ot();v(a,r)};L(X,a=>{s(t).total_active_stake?a(N):a(F,!1)})}e(B);var R=l(B,2),W=l(o(R),2);{var tt=a=>{var r=$t();h(()=>O(r,"data-tip",G(parseInt(s(t).treasury))));var i=o(r),C=o(i);h(()=>b(C,`${J(parseInt(s(t).treasury))??""} ADA`)),e(i),e(r),v(a,r)},vt=a=>{var r=jt();v(a,r)};L(W,a=>{s(t).treasury?a(tt):a(vt,!1)})}e(R);var st=l(R,2),dt=l(o(st),2);{var pt=a=>{var r=Pt();h(()=>O(r,"data-tip",G(parseInt(s(t).reserves))));var i=o(r),C=o(i);h(()=>b(C,`${J(parseInt(s(t).reserves))??""} ADA`)),e(i),e(r),v(a,r)},bt=a=>{var r=Vt();v(a,r)};L(dt,a=>{s(t).reserves?a(pt):a(bt,!1)})}e(st);var ot=l(st,2),_t=l(o(ot),2);{var ht=a=>{var r=Nt();h(()=>O(r,"data-tip",G(parseInt(s(t).circulating_supply))));var i=o(r),C=o(i);h(()=>b(C,`${J(parseInt(s(t).circulating_supply))??""} ADA`)),e(i),e(r),v(a,r)},mt=a=>{var r=Ft();v(a,r)};L(_t,a=>{s(t).circulating_supply?a(ht):a(mt,!1)})}e(ot),e(y),e(p),h(()=>{b(u,s(t).epoch),b(S,s(t).number)}),v(k,p),H()}var zt=_('<section class="flex flex-col items-center mt-24"><div class="card bg-base-100 shadow-xl w-96"><div class="card-body items-center text-center"><span class="text-xl font-bold mb-2 text-base-content">Waiting for live data</span> <span class="loading loading-ring loading-lg text-base-content"></span></div></div></section>'),Ht=_('<!> <section class="container mx-auto px-4 py-12 svelte-gqvhw5"><div class="grid grid-cols-1 lg:grid-cols-2 gap-8"><div class="bg-base-100 rounded-lg"><div class="p-6"><div class="flex items-center mb-4"><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg> <h2 class="text-2xl font-bold text-base-content">Recent Blocks</h2></div> <!></div></div> <div class="bg-base-100 rounded-lg"><div class="p-6"><div class="flex items-center mb-4"><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg> <h2 class="text-2xl font-bold text-base-content">Recent Transactions</h2></div> <!></div></div></div></section>',1),Xt=_('<section class="bg-gradient-to-br from-gray-900 via-gray-800 to-black text-white py-16"><div class="container mx-auto px-4 svelte-gqvhw5"><div class="max-w-4xl mx-auto text-center"><div class="flex justify-center mb-4"><svg xmlns="http://www.w3.org/2000/svg" class="h-12 w-12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path></svg></div> <h1 class="text-4xl font-bold mb-4">Blockchain DataViewer</h1> <p class="text-lg opacity-90 mb-6">Explore real-time blockchain data with our developer-friendly interface</p> <div class="flex flex-wrap justify-center gap-4"><a href="/blocks" class="btn btn-lg bg-white text-gray-900 hover:bg-gray-100"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg> View Blocks</a> <a href="/transactions" class="btn btn-outline btn-lg text-white border-white hover:bg-white hover:text-gray-900"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg> View Transactions</a></div></div></div></section> <!>',1);function ns(k,m){z(m,!1);let t=Y([]);Z(async()=>{const n=await Q(()=>import("../chunks/store.B6ZMmWK9.js"),__vite__mapDeps([0,1,2,3]),import.meta.url);U(t,n.blocksCache),n.blocksStore.subscribe(p=>{p&&p.number!=null&&U(t,[p,...s(t).filter(y=>y.number!==p.number)].slice(0,30))})}),q();var d=Xt(),c=l(K(d),2);{var f=n=>{var p=zt();v(n,p)},$=n=>{var p=Ht(),y=K(p);qt(y,{});var T=l(y,2),g=o(T),u=o(g),x=o(u),E=l(o(x),2);At(E,{}),e(x),e(u);var S=l(u,2),w=o(S),D=l(o(w),2);Dt(D,{}),e(w),e(S),e(g),e(T),v(n,p)};L(c,n=>{s(t).length==0||s(t).length>0&&Object.keys(s(t)[0]).length===0?n(f):n($,!1)})}v(k,d),H()}export{ns as component};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/store.VkFxTXoZ.js","../chunks/index.DXwpZH-3.js","../chunks/runtime.D0obI1Oe.js","../chunks/public.Cg9ABQSF.js"])))=>i.map(i=>d[i]);
2
+ import{_ as Q}from"../chunks/preload-helper.C1FmrZbK.js";import{c as ct,a as v,t as _}from"../chunks/disclose-version.B6I0FcgD.js";import{i as q}from"../chunks/legacy.B5O3fKqs.js";import{p as z,s as l,c as o,f as K,g as s,r as e,a as H,t as h,i as lt,b as U,m as Y,aI as A}from"../chunks/runtime.D0obI1Oe.js";import{i as L}from"../chunks/if.zgWENsz3.js";import{o as Z,a as xt}from"../chunks/index-client.cZmOdYbP.js";import{s as b}from"../chunks/render.BulRu2sY.js";import{e as et,i as at}from"../chunks/each.B_0_gCHG.js";import{s as O}from"../chunks/attributes.DHvUyCc8.js";import{p as M}from"../chunks/props.URi5AcUs.js";import{h as gt}from"../chunks/moment.C5S46NFB.js";import{g as ut,t as nt}from"../chunks/util.8sVtkjoC.js";import{l as wt}from"../chunks/ada_util.zWFYliEg.js";import{f as G,a as J}from"../chunks/util.BtMo5KOn.js";import{e as it}from"../chunks/public.Cg9ABQSF.js";var kt=_('<div class="bg-base-200 p-4 rounded-md"><h3 class="text-sm font-bold"><span class="font-bold">Block</span> <a class="text-blue-500 hover:underline"> </a></h3> <p class="text-sm text-base-content/70"><span class="font-bold">Slot</span> </p> <p class="text-sm text-base-content/70"><span class="font-bold">Txs</span> </p> <p class="text-sm text-base-content/70"><span class="font-bold">Size</span> </p> <p class="text-sm text-base-content/70 break-words"><span class="font-bold">Pool</span> </p> <p class="text-sm text-base-content/70"><span class="text-xs text-base-content/60"> </span></p></div>'),yt=_('<div class="bg-base-100 rounded-lg shadow-lg p-6"><h2 class="text-xl font-bold mb-4">Recent Blocks</h2> <div class="space-y-4"></div></div>');function Et(k,m){z(m,!1);let t=M(m,"blocks",8),d=M(m,"noOfBlocks",8,10);q();var c=yt(),f=l(o(c),2);et(f,5,()=>[...t()].slice(0,d()),at,($,n)=>{var p=ct(),y=K(p);{var T=g=>{var u=kt(),x=o(u),E=l(o(x),2),S=o(E,!0);e(E),e(x);var w=l(x,2),D=l(o(w));e(w);var I=l(w,2),j=l(o(I));e(I);var P=l(I,2),V=l(o(P));h(()=>b(V,` ${(s(n).size/1024).toFixed(2)??""} kb`)),e(P);var B=l(P,2),X=l(o(B));e(B);var N=l(B,2),F=o(N);const R=lt(()=>ut(s(n).block_time)??""),W=lt(()=>gt(s(n).block_time*1e3).fromNow()??"");var tt=o(F);h(()=>b(tt,`${s(R)}, ${s(W)}`)),e(F),e(N),e(u),h(()=>{O(E,"href",`/blocks/${s(n).number??""}`),b(S,s(n).number),b(D,` ${s(n).slot??""}`),b(j,` ${s(n).ntx??""}`),b(X,` ${s(n).slot_leader??""}`)}),v(g,u)};L(y,g=>{s(n).number&&g(T)})}v($,p)}),e(f),e(c),v(k,c),H()}function At(k,m){z(m,!1);let t=Y([]);Z(async()=>{const d=await Q(()=>import("../chunks/store.VkFxTXoZ.js"),__vite__mapDeps([0,1,2,3]),import.meta.url);console.log(d.subscribe),U(t,d.blocksCache),d.blocksStore.subscribe(c=>{c&&c.number!=null&&U(t,[c,...s(t).filter(f=>f.number!==c.number)].slice(0,30))}),d.aggregateStore.subscribe(c=>{})}),q(),Et(k,{get blocks(){return s(t)},noOfBlocks:"10"}),H()}var Tt=_('<p class="text-sm text-base-content/70"> </p>'),St=_('<div class="bg-base-200 p-4 rounded-md"><p class="text-sm text-base-content/70 py-1"><span class="font-bold">Tx Hash</span> <span class="text-base-content/70 text-right overflow-auto md:overflow-hidden"><a class="text-blue-500 hover:underline"> </a></span></p> <p class="text-sm text-base-content/70 py-1"><span class="font-bold">Block / Slot</span> <a class="text-blue-500 hover:underline"> </a> </p> <p class="text-sm text-base-content/70"><span class="font-bold">Output Addresses</span></p> <div class="flex flex-col items-begin py-1 break-words"></div> <p class="text-sm text-base-content/70 py-1"><span class="font-bold">Output</span> </p></div>'),It=_('<div class="bg-base-100 rounded-lg shadow-lg p-6"><h2 class="text-xl font-bold mb-4">Transactions</h2> <div class="space-y-4"></div></div>');function Bt(k,m){z(m,!1);let t=M(m,"txs",8),d=M(m,"noOfTxs",8,10);q();var c=It(),f=l(o(c),2);et(f,5,()=>[...t()].slice(0,d()),at,($,n)=>{var p=ct(),y=K(p);{var T=g=>{var u=St(),x=o(u),E=l(o(x),2),S=o(E),w=o(S,!0);h(()=>b(w,nt(s(n).hash,38,"..."))),e(S),e(E),e(x);var D=l(x,2),I=l(o(D),2),j=o(I,!0);e(I);var P=l(I);e(D);var V=l(D,4);et(V,5,()=>s(n).output_addresses,at,(N,F)=>{var R=Tt(),W=o(R,!0);h(()=>b(W,nt(s(F),60,"..."))),e(R),v(N,R)}),e(V);var B=l(V,2),X=l(o(B));h(()=>b(X,` ${wt(s(n).output,2)??""} Ada`)),e(B),e(u),h(()=>{O(S,"href",`/transactions/${s(n).hash??""}`),O(I,"href",`/blocks/${s(n).block??""}`),b(j,s(n).block),b(P,` / ${s(n).slot??""}`)}),v(g,u)};L(y,g=>{s(n).hash&&g(T)})}v($,p)}),e(f),e(c),v(k,c),H()}function Dt(k,m){z(m,!1);let t=Y([]);Z(async()=>{const d=await Q(()=>import("../chunks/store.VkFxTXoZ.js"),__vite__mapDeps([0,1,2,3]),import.meta.url);console.log(d.subscribe),U(t,d.txCache),d.recentTxStore.subscribe(c=>{c&&c.hash&&U(t,[c,...s(t).filter(f=>f.hash!==c.hash)].slice(0,30))})}),q(),Bt(k,{get txs(){return s(t)},noOfTxs:"10"}),H()}var Rt=_('<p class="text-base-content/80"> </p>'),Ct=_('<div class="flex items-center"><div class="w-3/4 bg-base-300 rounded-lg overflow-hidden"><div class="bg-blue-500 h-2"></div></div> <p class="ml-2 text-base-content/80"> </p></div>'),Lt=_('<div class="tooltip"><p class="text-base-content/80"> </p></div>'),Ot=_("<span>-</span>"),$t=_('<div class="tooltip"><p class="text-base-content/80"> </p></div>'),jt=_("<span>-</span>"),Pt=_('<div class="tooltip"><p class="text-base-content/80"> </p></div>'),Vt=_("<span>-</span>"),Nt=_('<div class="tooltip"><p class="text-base-content/80"> </p></div>'),Ft=_("<span>-</span>"),Ut=_('<section class="bg-base-100 py-12"><div class="container mx-auto grid grid-cols-1 md:grid-cols-4 gap-4 svelte-gqvhw5"><div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Epoch</h3> <p class="text-base-content/80"> </p></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Current Block</h3> <p class="text-base-content/80"> </p></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Slot</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Epoch Progress</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Total Active Stake</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Treasury</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Reserves</h3> <!></div> <div class="bg-base-200 rounded-lg p-4"><h3 class="text-xl font-semibold mb-2">Circulating Supply</h3> <!></div></div></section>');function qt(k,m){z(m,!1);let t=Y({epoch:0,number:0,block_time:0,slot:0,epoch_slot:0,slots_per_epoch:0}),d=0,c,f=null;async function $(){try{console.log("Fetching network data");const a=it.PUBLIC_INDEXER_CLIENT_BASE_URL||it.PUBLIC_INDEXER_BASE_URL,r=await fetch(`${a}/network`);if(!r.ok)throw console.error("Failed to fetch network data:",r.status,r.statusText),new Error(`Failed to fetch network data: ${r.status} ${r.statusText}`);const i=await r.json();return console.log("Network data response:",i),i}catch(a){return console.error("Error fetching network data:",a),null}}async function n(a){if(a&&typeof a=="object"){const r=a.epoch||0;if(console.log("New epoch received:",r),A(t,s(t).epoch=r),A(t,s(t).number=a.number||0),A(t,s(t).block_time=a.block_time||0),A(t,s(t).slot=a.slot||0),A(t,s(t).epoch_slot=a.epoch_slot||0),A(t,s(t).slots_per_epoch=a.slots_per_epoch||0),s(t).epoch_slot&&s(t).slots_per_epoch&&A(t,s(t).epoch_progress=(s(t).epoch_slot/s(t).slots_per_epoch*100).toFixed(2)),r!==d){console.log("Epoch changed, fetching new data. Last epoch:",d,"New epoch:",r);const i=await $();i&&(A(t,s(t).total_active_stake=i.stake.active.toString()),A(t,s(t).treasury=i.supply.treasury.toString()),A(t,s(t).reserves=i.supply.reserves.toString()),A(t,s(t).circulating_supply=i.supply.circulating.toString())),d=r}}}Z(async()=>{c=await Q(()=>import("../chunks/store.VkFxTXoZ.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),f=c.blocksStore.subscribe(n)}),xt(()=>{f&&f()}),q();var p=Ut(),y=o(p),T=o(y),g=l(o(T),2),u=o(g,!0);e(g),e(T);var x=l(T,2),E=l(o(x),2),S=o(E,!0);e(E),e(x);var w=l(x,2),D=l(o(w),2);{var I=a=>{var r=Rt(),i=o(r);e(r),h(()=>b(i,`${s(t).epoch_slot??""}/${s(t).slots_per_epoch??""}`)),v(a,r)};L(D,a=>{s(t).epoch_slot&&a(I)})}e(w);var j=l(w,2),P=l(o(j),2);{var V=a=>{var r=Ct(),i=o(r),C=o(i);e(i);var rt=l(i,2),ft=o(rt);e(rt),e(r),h(()=>{O(C,"style",`width: ${s(t).epoch_progress??""}%;`),b(ft,`${s(t).epoch_progress??""}%`)}),v(a,r)};L(P,a=>{s(t).epoch_progress&&a(V)})}e(j);var B=l(j,2),X=l(o(B),2);{var N=a=>{var r=Lt();h(()=>O(r,"data-tip",G(parseInt(s(t).total_active_stake))));var i=o(r),C=o(i);h(()=>b(C,`${J(parseInt(s(t).total_active_stake))??""} ADA`)),e(i),e(r),v(a,r)},F=a=>{var r=Ot();v(a,r)};L(X,a=>{s(t).total_active_stake?a(N):a(F,!1)})}e(B);var R=l(B,2),W=l(o(R),2);{var tt=a=>{var r=$t();h(()=>O(r,"data-tip",G(parseInt(s(t).treasury))));var i=o(r),C=o(i);h(()=>b(C,`${J(parseInt(s(t).treasury))??""} ADA`)),e(i),e(r),v(a,r)},vt=a=>{var r=jt();v(a,r)};L(W,a=>{s(t).treasury?a(tt):a(vt,!1)})}e(R);var st=l(R,2),dt=l(o(st),2);{var pt=a=>{var r=Pt();h(()=>O(r,"data-tip",G(parseInt(s(t).reserves))));var i=o(r),C=o(i);h(()=>b(C,`${J(parseInt(s(t).reserves))??""} ADA`)),e(i),e(r),v(a,r)},bt=a=>{var r=Vt();v(a,r)};L(dt,a=>{s(t).reserves?a(pt):a(bt,!1)})}e(st);var ot=l(st,2),_t=l(o(ot),2);{var ht=a=>{var r=Nt();h(()=>O(r,"data-tip",G(parseInt(s(t).circulating_supply))));var i=o(r),C=o(i);h(()=>b(C,`${J(parseInt(s(t).circulating_supply))??""} ADA`)),e(i),e(r),v(a,r)},mt=a=>{var r=Ft();v(a,r)};L(_t,a=>{s(t).circulating_supply?a(ht):a(mt,!1)})}e(ot),e(y),e(p),h(()=>{b(u,s(t).epoch),b(S,s(t).number)}),v(k,p),H()}var zt=_('<section class="flex flex-col items-center mt-24"><div class="card bg-base-100 shadow-xl w-96"><div class="card-body items-center text-center"><span class="text-xl font-bold mb-2 text-base-content">Waiting for live data</span> <span class="loading loading-ring loading-lg text-base-content"></span></div></div></section>'),Ht=_('<!> <section class="container mx-auto px-4 py-12 svelte-gqvhw5"><div class="grid grid-cols-1 lg:grid-cols-2 gap-8"><div class="bg-base-100 rounded-lg"><div class="p-6"><div class="flex items-center mb-4"><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg> <h2 class="text-2xl font-bold text-base-content">Recent Blocks</h2></div> <!></div></div> <div class="bg-base-100 rounded-lg"><div class="p-6"><div class="flex items-center mb-4"><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg> <h2 class="text-2xl font-bold text-base-content">Recent Transactions</h2></div> <!></div></div></div></section>',1),Xt=_('<section class="bg-gradient-to-br from-gray-900 via-gray-800 to-black text-white py-16"><div class="container mx-auto px-4 svelte-gqvhw5"><div class="max-w-4xl mx-auto text-center"><div class="flex justify-center mb-4"><svg xmlns="http://www.w3.org/2000/svg" class="h-12 w-12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path></svg></div> <h1 class="text-4xl font-bold mb-4">Blockchain DataViewer</h1> <p class="text-lg opacity-90 mb-6">Explore real-time blockchain data with our developer-friendly interface</p> <div class="flex flex-wrap justify-center gap-4"><a href="/blocks" class="btn btn-lg bg-white text-gray-900 hover:bg-gray-100"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path></svg> View Blocks</a> <a href="/transactions" class="btn btn-outline btn-lg text-white border-white hover:bg-white hover:text-gray-900"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg> View Transactions</a></div></div></div></section> <!>',1);function ns(k,m){z(m,!1);let t=Y([]);Z(async()=>{const n=await Q(()=>import("../chunks/store.VkFxTXoZ.js"),__vite__mapDeps([0,1,2,3]),import.meta.url);U(t,n.blocksCache),n.blocksStore.subscribe(p=>{p&&p.number!=null&&U(t,[p,...s(t).filter(y=>y.number!==p.number)].slice(0,30))})}),q();var d=Xt(),c=l(K(d),2);{var f=n=>{var p=zt();v(n,p)},$=n=>{var p=Ht(),y=K(p);qt(y,{});var T=l(y,2),g=o(T),u=o(g),x=o(u),E=l(o(x),2);At(E,{}),e(x),e(u);var S=l(u,2),w=o(S),D=l(o(w),2);Dt(D,{}),e(w),e(S),e(g),e(T),v(n,p)};L(c,n=>{s(t).length==0||s(t).length>0&&Object.keys(s(t)[0]).length===0?n(f):n($,!1)})}v(k,d),H()}export{ns as component};
@@ -1 +1 @@
1
- import{e as x,a as R,t as A}from"../chunks/disclose-version.B6I0FcgD.js";import{i as rt}from"../chunks/legacy.B5O3fKqs.js";import{p as ot,l as g,d as nt,t as _,a as it,b as l,s as r,c as a,g as t,m as b,r as e,e as O}from"../chunks/runtime.D0obI1Oe.js";import{s as d}from"../chunks/render.BulRu2sY.js";import{i as ct}from"../chunks/if.zgWENsz3.js";import{e as lt,i as dt}from"../chunks/each.B_0_gCHG.js";import{s as Q}from"../chunks/attributes.DHvUyCc8.js";import{p as pt}from"../chunks/props.URi5AcUs.js";import{s as bt,a as mt}from"../chunks/store.0paeW0RT.js";import{g as vt}from"../chunks/entry.CCc6ivWK.js";import{p as ut}from"../chunks/stores.YYNNEhuW.js";import{g as ft,t as xt}from"../chunks/util.BtMo5KOn.js";import{o as gt}from"../chunks/index-client.cZmOdYbP.js";var _t=A('<div class="absolute inset-0 bg-base-100 bg-opacity-75 flex justify-center items-center z-10"><span class="loading loading-spinner loading-lg"></span></div>'),ht=A('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><a class="text-blue-500 hover:underline"><span> </span></a></td></tr>'),yt=A('<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Stake Key Registrations</h2> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4 relative"><!> <table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Time</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function Vt(W,V){ot(V,!1);const X=bt(),m=()=>mt(ut,"$page",X),h=b(),y=b();let o=pt(V,"data",12),v=b([]),c=b(!1),i=b(1);const Y=15;gt(()=>{l(i,parseInt(o().page||"1",10)),l(c,!1)});function u(s){if(s<1||t(c))return;l(c,!0);const n=`/certificates/stakekey-registrations?page=${s}&count=${Y}`;vt(n)}o().registrations||o(o().registrations=[],!0),g(()=>m(),()=>{l(h,m().url.searchParams.get("page"))}),g(()=>(t(v),t(h)),()=>{t(v).forEach(s=>{let p=s.href.split("?").slice(1).join("?");new URLSearchParams(p).get("page")===t(h)?s.active=!0:s.active=!1}),l(v,t(v))}),g(()=>O(o()),()=>{l(y,o().registrations&&o().registrations.length>0)}),g(()=>(O(o()),m()),()=>{o()&&m()&&(l(i,parseInt(o().page||"1",10)),l(c,!1))}),nt(),rt();var w=yt(),k=r(a(w),2),q=a(k),j=a(q),P=r(j,2),Z=a(P);e(P);var z=r(P,2);e(q),e(k);var $=r(k,2),B=a($);{var L=s=>{var n=_t();R(s,n)};ct(B,s=>{t(c)&&s(L)})}var D=r(B,2),G=r(a(D));lt(G,5,()=>o().registrations,dt,(s,n)=>{var p=ht(),f=a(p),F=a(f,!0);e(f);var T=r(f),U=a(T),et=a(U,!0);e(U),e(T);var I=r(T),at=a(I,!0);_(()=>d(at,ft(t(n).block_time))),e(I);var J=r(I),M=a(J),N=a(M),st=a(N,!0);_(()=>d(st,xt(t(n).tx_hash,30,"..."))),e(N),e(M),e(J),e(p),_(()=>{d(F,t(n).address),Q(U,"href",`/blocks/${t(n).block_number??""}`),d(et,t(n).block_number),Q(M,"href",`/transactions/${t(n).tx_hash??""}`)}),R(s,p)}),e(G),e(D),e($);var H=r($,2),K=a(H),E=a(K),S=r(E,2),tt=a(S);e(S);var C=r(S,2);e(K),e(H),e(w),_(()=>{j.disabled=t(i)<=1||t(c),d(Z,`Page ${t(i)??""}`),z.disabled=!t(y)||t(c),E.disabled=t(i)<=1||t(c),d(tt,`Page ${t(i)??""}`),C.disabled=!t(y)||t(c)}),x("click",j,()=>u(t(i)-1)),x("click",z,()=>u(t(i)+1)),x("click",E,()=>u(t(i)-1)),x("click",C,()=>u(t(i)+1)),R(W,w),it()}export{Vt as component};
1
+ import{e as x,a as R,t as A}from"../chunks/disclose-version.B6I0FcgD.js";import{i as rt}from"../chunks/legacy.B5O3fKqs.js";import{p as ot,l as g,d as nt,t as _,a as it,b as l,s as r,c as a,g as t,m as b,r as e,e as O}from"../chunks/runtime.D0obI1Oe.js";import{s as d}from"../chunks/render.BulRu2sY.js";import{i as ct}from"../chunks/if.zgWENsz3.js";import{e as lt,i as dt}from"../chunks/each.B_0_gCHG.js";import{s as Q}from"../chunks/attributes.DHvUyCc8.js";import{p as pt}from"../chunks/props.URi5AcUs.js";import{s as bt,a as mt}from"../chunks/store.0paeW0RT.js";import{g as vt}from"../chunks/entry.CIxqEXQ4.js";import{p as ut}from"../chunks/stores.CVJU6lLm.js";import{g as ft,t as xt}from"../chunks/util.BtMo5KOn.js";import{o as gt}from"../chunks/index-client.cZmOdYbP.js";var _t=A('<div class="absolute inset-0 bg-base-100 bg-opacity-75 flex justify-center items-center z-10"><span class="loading loading-spinner loading-lg"></span></div>'),ht=A('<tr class="hover:bg-base-200"><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"><a class="text-blue-500 hover:underline"> </a></td><td class="px-6 py-4 whitespace-nowrap text-sm text-base-content/60"> </td><td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-base-content"><a class="text-blue-500 hover:underline"><span> </span></a></td></tr>'),yt=A('<section class="container mx-auto text-sm"><h2 class="text-xl font-bold text-center text-base-content/60 mb-4">Stake Key Registrations</h2> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto bg-base-100 shadow-md rounded-lg mb-4 relative"><!> <table class="min-w-full divide-y divide-base-300"><thead class="bg-base-200"><tr><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Address</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Block</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Time</th><th class="px-6 py-3 text-left text-xs font-medium text-base-content/60 uppercase tracking-wider">Transaction Hash</th></tr></thead><tbody class="bg-base-100 divide-y divide-base-300"></tbody></table></div> <div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div></section>');function Vt(W,V){ot(V,!1);const X=bt(),m=()=>mt(ut,"$page",X),h=b(),y=b();let o=pt(V,"data",12),v=b([]),c=b(!1),i=b(1);const Y=15;gt(()=>{l(i,parseInt(o().page||"1",10)),l(c,!1)});function u(s){if(s<1||t(c))return;l(c,!0);const n=`/certificates/stakekey-registrations?page=${s}&count=${Y}`;vt(n)}o().registrations||o(o().registrations=[],!0),g(()=>m(),()=>{l(h,m().url.searchParams.get("page"))}),g(()=>(t(v),t(h)),()=>{t(v).forEach(s=>{let p=s.href.split("?").slice(1).join("?");new URLSearchParams(p).get("page")===t(h)?s.active=!0:s.active=!1}),l(v,t(v))}),g(()=>O(o()),()=>{l(y,o().registrations&&o().registrations.length>0)}),g(()=>(O(o()),m()),()=>{o()&&m()&&(l(i,parseInt(o().page||"1",10)),l(c,!1))}),nt(),rt();var w=yt(),k=r(a(w),2),q=a(k),j=a(q),P=r(j,2),Z=a(P);e(P);var z=r(P,2);e(q),e(k);var $=r(k,2),B=a($);{var L=s=>{var n=_t();R(s,n)};ct(B,s=>{t(c)&&s(L)})}var D=r(B,2),G=r(a(D));lt(G,5,()=>o().registrations,dt,(s,n)=>{var p=ht(),f=a(p),F=a(f,!0);e(f);var T=r(f),U=a(T),et=a(U,!0);e(U),e(T);var I=r(T),at=a(I,!0);_(()=>d(at,ft(t(n).block_time))),e(I);var J=r(I),M=a(J),N=a(M),st=a(N,!0);_(()=>d(st,xt(t(n).tx_hash,30,"..."))),e(N),e(M),e(J),e(p),_(()=>{d(F,t(n).address),Q(U,"href",`/blocks/${t(n).block_number??""}`),d(et,t(n).block_number),Q(M,"href",`/transactions/${t(n).tx_hash??""}`)}),R(s,p)}),e(G),e(D),e($);var H=r($,2),K=a(H),E=a(K),S=r(E,2),tt=a(S);e(S);var C=r(S,2);e(K),e(H),e(w),_(()=>{j.disabled=t(i)<=1||t(c),d(Z,`Page ${t(i)??""}`),z.disabled=!t(y)||t(c),E.disabled=t(i)<=1||t(c),d(tt,`Page ${t(i)??""}`),C.disabled=!t(y)||t(c)}),x("click",j,()=>u(t(i)-1)),x("click",z,()=>u(t(i)+1)),x("click",E,()=>u(t(i)-1)),x("click",C,()=>u(t(i)+1)),R(W,w),it()}export{Vt as component};
@@ -1 +1 @@
1
- import{e as L,a as v,t as m,c as Rt}from"../chunks/disclose-version.B6I0FcgD.js";import{i as jt}from"../chunks/legacy.B5O3fKqs.js";import{p as At,m as h,l as ct,d as Ut,t as x,a as Bt,s as l,c as o,g as t,b as r,r as s,f as it}from"../chunks/runtime.D0obI1Oe.js";import{s as u}from"../chunks/render.BulRu2sY.js";import{i as N}from"../chunks/if.zgWENsz3.js";import{e as Dt,i as Ft}from"../chunks/each.B_0_gCHG.js";import{r as Tt,s as dt}from"../chunks/attributes.DHvUyCc8.js";import{b as Xt}from"../chunks/input.DNQYXVMt.js";import{p as Ct}from"../chunks/props.URi5AcUs.js";import{s as Mt,a as Kt}from"../chunks/store.0paeW0RT.js";import{g as G}from"../chunks/entry.CCc6ivWK.js";import{p as qt}from"../chunks/stores.YYNNEhuW.js";import{o as zt}from"../chunks/index-client.cZmOdYbP.js";import{a as pt}from"../chunks/util.BtMo5KOn.js";import{e as H}from"../chunks/public.CY0-pQ-D.js";var Gt=m('<div class="alert alert-error mb-6"><span> </span></div>'),Ht=m('<div class="bg-base-100 rounded-lg shadow-md p-6 mb-6"><h2 class="text-lg font-semibold text-base-content mb-2">Total Active Stake</h2> <p class="text-3xl font-bold text-primary"> </p></div>'),Jt=m('<div class="flex justify-center items-center h-32"><span class="loading loading-spinner loading-lg"></span></div>'),Ot=m('<div class="text-center py-8"><p class="text-base-content/70">No stake data available for this epoch.</p></div>'),Qt=m('<tr class="hover:bg-base-200"><td class="text-sm"><a class="text-primary hover:underline"> </a></td><td class="text-right"> </td><td><a class="text-primary hover:underline"> </a></td><td class="text-center"> </td></tr>'),Vt=m('<div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto"><table class="table w-full"><thead><tr><th class="text-left">Stake Address</th><th class="text-right">Amount (₳)</th><th class="text-left">Pool ID</th><th class="text-center">Delegation Epoch</th></tr></thead><tbody></tbody></table></div>',1),Wt=m('<div class="container mx-auto px-4 py-8"><h1 class="text-2xl font-bold mb-6">Epoch Stakes</h1> <div class="bg-base-100 rounded-lg shadow-md p-6 mb-6"><div class="flex items-end gap-2"><div class="w-48"><label for="epoch" class="block text-sm font-medium text-base-content/80 mb-2">Epoch Number</label> <div class="flex gap-2"><input type="number" id="epoch" class="input input-bordered input-sm w-full h-8" placeholder="Enter epoch number" min="0"> <button class="btn btn-primary btn-sm h-8 min-h-0"> </button></div></div></div></div> <!> <!> <div class="bg-base-100 rounded-lg shadow-md overflow-hidden"><!></div></div>');function he(vt,J){var et;At(J,!1);const ht=Mt(),y=()=>Kt(qt,"$page",ht),R=h();let j=Ct(J,"data",8),p=h(!1),f=h(null),w=((et=j())==null?void 0:et.currentEpoch)||0,k=h(w.toString()),c=h(w),A=h(null),_=h([]),d=h(parseInt(j().page));const E=parseInt(j().count);async function ut(e){try{const a=`${H.PUBLIC_INDEXER_BASE_URL}/epochs/${e}/total-stake`;console.log("Fetching total stake:",a);const n=await fetch(a);if(console.log("Total stake response status:",n.status),!n.ok)throw new Error("Failed to fetch total stake");const i=await n.json();console.log("Total stake data:",i),r(A,i),r(f,null)}catch(a){console.error("Total stake error:",a),r(f,"Failed to fetch total stake data")}}async function mt(e,a){r(p,!0);try{const n=`${H.PUBLIC_INDEXER_BASE_URL}/epochs/${e}/stake?count=${E}&page=${a}`;console.log("Fetching stakes:",n);const i=await fetch(n);if(console.log("Stakes response status:",i.status),!i.ok)throw new Error("Failed to fetch stakes");const I=await i.json();console.log("Stakes data:",I),r(_,I),r(f,null)}catch(n){console.error("Stakes error:",n),r(f,"Failed to fetch stake data"),r(_,[])}finally{r(p,!1)}}async function O(){const e=parseInt(t(k));if(isNaN(e))return;r(c,e);const a=`/epoch-stakes?epoch=${t(c)}&page=1&count=${E}`;G(a)}function ft(e){e.key==="Enter"&&O()}const _t=()=>{if(t(d)<=1||t(p))return;const e=`/epoch-stakes?epoch=${t(c)}&page=${t(d)-1}&count=${E}`;G(e)},bt=()=>{if(!t(R)||t(p))return;const e=`/epoch-stakes?epoch=${t(c)}&page=${t(d)+1}&count=${E}`;G(e)};zt(()=>{console.log("INDEXER_BASE_URL:",H.PUBLIC_INDEXER_BASE_URL)}),ct(()=>(y(),t(c),t(d)),()=>{if(y().url.searchParams){const e=y().url.searchParams.get("epoch"),a=y().url.searchParams.get("page")||"1";e?(r(c,parseInt(e)),r(k,e),r(d,parseInt(a)),console.log("URL changed, fetching data for epoch:",t(c),"page:",t(d)),Promise.all([ut(t(c)),mt(t(c),t(d))])):(r(c,w),r(k,w.toString()),r(d,parseInt(a)))}}),ct(()=>t(_),()=>{r(R,t(_).length===E)}),Ut(),jt();var U=Wt(),B=l(o(U),2),Q=o(B),V=o(Q),W=l(o(V),2),$=o(W);Tt($);var S=l($,2),gt=o(S,!0);s(S),s(W),s(V),s(Q),s(B);var Y=l(B,2);{var xt=e=>{var a=Gt(),n=o(a),i=o(n,!0);s(n),s(a),x(()=>u(i,t(f))),v(e,a)};N(Y,e=>{t(f)&&e(xt)})}var Z=l(Y,2);{var kt=e=>{var a=Ht(),n=l(o(a),2),i=o(n);x(()=>u(i,`${pt(t(A).active_stake)??""} ₳`)),s(n),s(a),v(e,a)};N(Z,e=>{t(A)!==null&&e(kt)})}var tt=l(Z,2),Et=o(tt);{var yt=e=>{var a=Jt();v(e,a)},wt=e=>{var a=Rt(),n=it(a);{var i=b=>{var P=Ot();v(b,P)},I=b=>{var P=Vt(),D=it(P),at=o(D),F=o(at),T=l(F,2),$t=o(T);s(T);var st=l(T,2);s(at),s(D);var ot=l(D,2),rt=o(ot),nt=l(o(rt));Dt(nt,5,()=>t(_),Ft,(St,g)=>{var X=Qt(),C=o(X),M=o(C),It=o(M,!0);s(M),s(C);var K=l(C),Pt=o(K,!0);x(()=>u(Pt,pt(t(g).amount))),s(K);var q=l(K),z=o(q),Lt=o(z,!0);s(z),s(q);var lt=l(q),Nt=o(lt,!0);s(lt),s(X),x(()=>{dt(M,"href",`/epoch-stakes/accounts?address=${t(g).address??""}&epoch=${t(c)??""}`),u(It,t(g).address),dt(z,"href",`/epoch-stakes/pools?id=${t(g).pool_id??""}&epoch=${t(c)??""}`),u(Lt,t(g).pool_id),u(Nt,t(g).delegation_epoch)}),v(St,X)}),s(nt),s(rt),s(ot),x(()=>{F.disabled=t(d)<=1||t(p),u($t,`Page ${t(d)??""}`),st.disabled=!t(R)||t(p)}),L("click",F,_t),L("click",st,bt),v(b,P)};N(n,b=>{t(_).length===0?b(i):b(I,!1)},!0)}v(e,a)};N(Et,e=>{t(p)?e(yt):e(wt,!1)})}s(tt),s(U),x(()=>{S.disabled=t(p),u(gt,t(p)?"Loading...":"Search")}),Xt($,()=>t(k),e=>r(k,e)),L("keydown",$,ft),L("click",S,O),v(vt,U),Bt()}export{he as component};
1
+ import{e as L,a as v,t as m,c as Rt}from"../chunks/disclose-version.B6I0FcgD.js";import{i as jt}from"../chunks/legacy.B5O3fKqs.js";import{p as At,m as h,l as ct,d as Ut,t as x,a as Bt,s as l,c as o,g as t,b as r,r as s,f as it}from"../chunks/runtime.D0obI1Oe.js";import{s as u}from"../chunks/render.BulRu2sY.js";import{i as N}from"../chunks/if.zgWENsz3.js";import{e as Dt,i as Ft}from"../chunks/each.B_0_gCHG.js";import{r as Tt,s as dt}from"../chunks/attributes.DHvUyCc8.js";import{b as Xt}from"../chunks/input.DNQYXVMt.js";import{p as Ct}from"../chunks/props.URi5AcUs.js";import{s as Mt,a as Kt}from"../chunks/store.0paeW0RT.js";import{g as G}from"../chunks/entry.CIxqEXQ4.js";import{p as qt}from"../chunks/stores.CVJU6lLm.js";import{o as zt}from"../chunks/index-client.cZmOdYbP.js";import{a as pt}from"../chunks/util.BtMo5KOn.js";import{e as H}from"../chunks/public.Cg9ABQSF.js";var Gt=m('<div class="alert alert-error mb-6"><span> </span></div>'),Ht=m('<div class="bg-base-100 rounded-lg shadow-md p-6 mb-6"><h2 class="text-lg font-semibold text-base-content mb-2">Total Active Stake</h2> <p class="text-3xl font-bold text-primary"> </p></div>'),Jt=m('<div class="flex justify-center items-center h-32"><span class="loading loading-spinner loading-lg"></span></div>'),Ot=m('<div class="text-center py-8"><p class="text-base-content/70">No stake data available for this epoch.</p></div>'),Qt=m('<tr class="hover:bg-base-200"><td class="text-sm"><a class="text-primary hover:underline"> </a></td><td class="text-right"> </td><td><a class="text-primary hover:underline"> </a></td><td class="text-center"> </td></tr>'),Vt=m('<div class="flex justify-end mt-6"><div class="join"><button class="join-item btn btn-sm">«</button> <button class="join-item btn btn-sm"> </button> <button class="join-item btn btn-sm">»</button></div></div> <div class="overflow-x-auto"><table class="table w-full"><thead><tr><th class="text-left">Stake Address</th><th class="text-right">Amount (₳)</th><th class="text-left">Pool ID</th><th class="text-center">Delegation Epoch</th></tr></thead><tbody></tbody></table></div>',1),Wt=m('<div class="container mx-auto px-4 py-8"><h1 class="text-2xl font-bold mb-6">Epoch Stakes</h1> <div class="bg-base-100 rounded-lg shadow-md p-6 mb-6"><div class="flex items-end gap-2"><div class="w-48"><label for="epoch" class="block text-sm font-medium text-base-content/80 mb-2">Epoch Number</label> <div class="flex gap-2"><input type="number" id="epoch" class="input input-bordered input-sm w-full h-8" placeholder="Enter epoch number" min="0"> <button class="btn btn-primary btn-sm h-8 min-h-0"> </button></div></div></div></div> <!> <!> <div class="bg-base-100 rounded-lg shadow-md overflow-hidden"><!></div></div>');function he(vt,J){var et;At(J,!1);const ht=Mt(),y=()=>Kt(qt,"$page",ht),R=h();let j=Ct(J,"data",8),p=h(!1),f=h(null),w=((et=j())==null?void 0:et.currentEpoch)||0,k=h(w.toString()),c=h(w),A=h(null),_=h([]),d=h(parseInt(j().page));const E=parseInt(j().count);async function ut(e){try{const a=`${H.PUBLIC_INDEXER_BASE_URL}/epochs/${e}/total-stake`;console.log("Fetching total stake:",a);const n=await fetch(a);if(console.log("Total stake response status:",n.status),!n.ok)throw new Error("Failed to fetch total stake");const i=await n.json();console.log("Total stake data:",i),r(A,i),r(f,null)}catch(a){console.error("Total stake error:",a),r(f,"Failed to fetch total stake data")}}async function mt(e,a){r(p,!0);try{const n=`${H.PUBLIC_INDEXER_BASE_URL}/epochs/${e}/stake?count=${E}&page=${a}`;console.log("Fetching stakes:",n);const i=await fetch(n);if(console.log("Stakes response status:",i.status),!i.ok)throw new Error("Failed to fetch stakes");const I=await i.json();console.log("Stakes data:",I),r(_,I),r(f,null)}catch(n){console.error("Stakes error:",n),r(f,"Failed to fetch stake data"),r(_,[])}finally{r(p,!1)}}async function O(){const e=parseInt(t(k));if(isNaN(e))return;r(c,e);const a=`/epoch-stakes?epoch=${t(c)}&page=1&count=${E}`;G(a)}function ft(e){e.key==="Enter"&&O()}const _t=()=>{if(t(d)<=1||t(p))return;const e=`/epoch-stakes?epoch=${t(c)}&page=${t(d)-1}&count=${E}`;G(e)},bt=()=>{if(!t(R)||t(p))return;const e=`/epoch-stakes?epoch=${t(c)}&page=${t(d)+1}&count=${E}`;G(e)};zt(()=>{console.log("INDEXER_BASE_URL:",H.PUBLIC_INDEXER_BASE_URL)}),ct(()=>(y(),t(c),t(d)),()=>{if(y().url.searchParams){const e=y().url.searchParams.get("epoch"),a=y().url.searchParams.get("page")||"1";e?(r(c,parseInt(e)),r(k,e),r(d,parseInt(a)),console.log("URL changed, fetching data for epoch:",t(c),"page:",t(d)),Promise.all([ut(t(c)),mt(t(c),t(d))])):(r(c,w),r(k,w.toString()),r(d,parseInt(a)))}}),ct(()=>t(_),()=>{r(R,t(_).length===E)}),Ut(),jt();var U=Wt(),B=l(o(U),2),Q=o(B),V=o(Q),W=l(o(V),2),$=o(W);Tt($);var S=l($,2),gt=o(S,!0);s(S),s(W),s(V),s(Q),s(B);var Y=l(B,2);{var xt=e=>{var a=Gt(),n=o(a),i=o(n,!0);s(n),s(a),x(()=>u(i,t(f))),v(e,a)};N(Y,e=>{t(f)&&e(xt)})}var Z=l(Y,2);{var kt=e=>{var a=Ht(),n=l(o(a),2),i=o(n);x(()=>u(i,`${pt(t(A).active_stake)??""} ₳`)),s(n),s(a),v(e,a)};N(Z,e=>{t(A)!==null&&e(kt)})}var tt=l(Z,2),Et=o(tt);{var yt=e=>{var a=Jt();v(e,a)},wt=e=>{var a=Rt(),n=it(a);{var i=b=>{var P=Ot();v(b,P)},I=b=>{var P=Vt(),D=it(P),at=o(D),F=o(at),T=l(F,2),$t=o(T);s(T);var st=l(T,2);s(at),s(D);var ot=l(D,2),rt=o(ot),nt=l(o(rt));Dt(nt,5,()=>t(_),Ft,(St,g)=>{var X=Qt(),C=o(X),M=o(C),It=o(M,!0);s(M),s(C);var K=l(C),Pt=o(K,!0);x(()=>u(Pt,pt(t(g).amount))),s(K);var q=l(K),z=o(q),Lt=o(z,!0);s(z),s(q);var lt=l(q),Nt=o(lt,!0);s(lt),s(X),x(()=>{dt(M,"href",`/epoch-stakes/accounts?address=${t(g).address??""}&epoch=${t(c)??""}`),u(It,t(g).address),dt(z,"href",`/epoch-stakes/pools?id=${t(g).pool_id??""}&epoch=${t(c)??""}`),u(Lt,t(g).pool_id),u(Nt,t(g).delegation_epoch)}),v(St,X)}),s(nt),s(rt),s(ot),x(()=>{F.disabled=t(d)<=1||t(p),u($t,`Page ${t(d)??""}`),st.disabled=!t(R)||t(p)}),L("click",F,_t),L("click",st,bt),v(b,P)};N(n,b=>{t(_).length===0?b(i):b(I,!1)},!0)}v(e,a)};N(Et,e=>{t(p)?e(yt):e(wt,!1)})}s(tt),s(U),x(()=>{S.disabled=t(p),u(gt,t(p)?"Loading...":"Search")}),Xt($,()=>t(k),e=>r(k,e)),L("keydown",$,ft),L("click",S,O),v(vt,U),Bt()}export{he as component};
@@ -1 +1 @@
1
- import{e as u,a as I,t as F}from"../chunks/disclose-version.B6I0FcgD.js";import{i as gt}from"../chunks/legacy.B5O3fKqs.js";import{p as kt,l as wt,d as yt,t as c,a as St,g as t,s as o,c as a,b as d,m as p,r as s,e as At}from"../chunks/runtime.D0obI1Oe.js";import{s as l}from"../chunks/render.BulRu2sY.js";import{i as et}from"../chunks/if.zgWENsz3.js";import{r as at,s as L}from"../chunks/attributes.DHvUyCc8.js";import{b as st}from"../chunks/input.DNQYXVMt.js";import{p as Dt}from"../chunks/props.URi5AcUs.js";import{a as Et}from"../chunks/index-client.cZmOdYbP.js";import{g as Mt}from"../chunks/entry.CCc6ivWK.js";import{t as ot,f as Tt}from"../chunks/hash.UMrA3fXV.js";var Ht=F('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300"> </div>'),Pt=F('<div class="bg-base-100 rounded-lg shadow-md p-6"><h2 class="text-2xl font-semibold mb-4">Stake Address Details</h2> <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"><div><p class="text-sm text-base-content/70">Stake Address</p> <div class="flex items-center gap-2"><p class="font-medium max-w-full overflow-hidden"><span class="block md:hidden"> </span> <span class="hidden md:block"> </span></p> <button class="text-primary hover:text-primary-focus flex-shrink-0" title="Copy Stake Address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></div> <div><p class="text-sm text-base-content/70">Epoch</p> <p class="font-medium"> </p></div> <div><p class="text-sm text-base-content/70">Amount</p> <p class="font-medium"> </p></div> <div><p class="text-sm text-base-content/70">Delegation Epoch</p> <p class="font-medium"> </p></div> <div class="md:col-span-2"><p class="text-sm text-base-content/70">Pool ID</p> <div class="flex items-center gap-2"><a class="text-primary hover:text-primary-focus max-w-full overflow-hidden"><span class="block md:hidden"> </span> <span class="hidden md:block"> </span></a> <button class="text-primary hover:text-primary-focus flex-shrink-0" title="Copy Pool ID"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></div></div></div>'),Ct=F('<div class="container mx-auto px-4 py-8"><!> <div class="bg-base-100 rounded-lg shadow-md p-6 mb-6 max-w-2xl mx-auto"><h2 class="text-2xl font-semibold mb-6">Search Stake Address</h2> <form id="searchForm" class="space-y-4"><div><label for="address" class="block text-sm font-medium text-base-content/80 mb-2">Stake Address</label> <input type="text" id="address" class="input input-bordered w-full h-8" placeholder="Enter stake address"></div> <div><label for="epoch" class="block text-sm font-medium text-base-content/80 mb-2">Epoch Number</label> <div class="flex gap-2 items-center"><input type="number" id="epoch" class="input input-bordered w-32 h-8" placeholder="Enter epoch" min="0"> <button type="submit" class="btn btn-primary px-4 h-8 min-h-0 flex items-center"> </button></div></div></form></div> <!></div>');function zt(rt,j){kt(j,!1);const r=p(),q=p(),K=p();let N=Dt(j,"data",8),f=p(!1),R=p(""),g=p(!1),m,h=p(""),b=p("");function k(e){m&&clearTimeout(m),d(R,e),d(g,!0),m=setTimeout(()=>{d(g,!1)},3e3)}async function U(e,i){try{await navigator.clipboard.writeText(e),k(`${i} copied to clipboard`)}catch(n){console.error("Failed to copy:",n),k("Failed to copy to clipboard")}}function it(e){if(e.preventDefault(),!t(h)||!t(b)){k("Please enter both Stake Address and Epoch");return}d(f,!0);const i=new URL(window.location.href);i.searchParams.set("address",t(h)),i.searchParams.set("epoch",t(b)),Mt(i.toString()).finally(()=>{d(f,!1)})}function V(e){if(e.key==="Enter"&&e.target instanceof HTMLInputElement){e.preventDefault();const i=e.target.closest("form");if(i){const n=i.querySelector('button[type="submit"]');n instanceof HTMLButtonElement&&n.click()}}}Et(()=>{m&&clearTimeout(m)}),wt(()=>(t(r),t(q),t(K),At(N())),()=>{(e=>(d(r,e.stakeData),d(q,e.address),d(K,e.epoch)))(N())}),yt(),gt();var w=Ct(),z=a(w);{var dt=e=>{var i=Ht(),n=a(i,!0);s(i),c(()=>l(n,t(R))),I(e,i)};et(z,e=>{t(g)&&e(dt)})}var y=o(z,2),S=o(a(y),2),A=a(S),D=o(a(A),2);at(D),s(A);var G=o(A,2),J=o(a(G),2),x=a(J);at(x);var E=o(x,2),nt=a(E,!0);s(E),s(J),s(G),s(S),s(y);var lt=o(y,2);{var pt=e=>{var i=Pt(),n=o(a(i),2),M=a(n),O=o(a(M),2),_=a(O),T=a(_),ct=a(T,!0);c(()=>l(ct,ot(t(r).address,12,12))),s(T);var Q=o(T,2),mt=a(Q,!0);s(Q),s(_);var vt=o(_,2);s(O),s(M);var H=o(M,2),W=o(a(H),2),ut=a(W,!0);s(W),s(H);var P=o(H,2),X=o(a(P),2),ft=a(X);c(()=>l(ft,`${Tt(t(r).amount)??""} ₳`)),s(X),s(P);var C=o(P,2),Y=o(a(C),2),ht=a(Y,!0);s(Y),s(C);var Z=o(C,2),$=o(a(Z),2),v=a($),B=a(v),bt=a(B,!0);c(()=>l(bt,ot(t(r).pool_id,12,12))),s(B);var tt=o(B,2),xt=a(tt,!0);s(tt),s(v);var _t=o(v,2);s($),s(Z),s(n),s(i),c(()=>{L(_,"title",t(r).address),l(mt,t(r).address),l(ut,t(r).epoch),l(ht,t(r).delegation_epoch),L(v,"href",`/epoch-stakes/pools?id=${t(r).pool_id}&epoch=${t(r).epoch}`),L(v,"title",t(r).pool_id),l(xt,t(r).pool_id)}),u("click",vt,()=>U(t(r).address,"Stake Address")),u("click",_t,()=>U(t(r).pool_id,"Pool ID")),I(e,i)};et(lt,e=>{t(r)&&e(pt)})}s(w),c(()=>{E.disabled=t(f),l(nt,t(f)?"Loading...":"Search")}),st(D,()=>t(h),e=>d(h,e)),u("keydown",D,V),st(x,()=>t(b),e=>d(b,e)),u("keydown",x,V),u("submit",S,it),I(rt,w),St()}export{zt as component};
1
+ import{e as u,a as I,t as F}from"../chunks/disclose-version.B6I0FcgD.js";import{i as gt}from"../chunks/legacy.B5O3fKqs.js";import{p as kt,l as wt,d as yt,t as c,a as St,g as t,s as o,c as a,b as d,m as p,r as s,e as At}from"../chunks/runtime.D0obI1Oe.js";import{s as l}from"../chunks/render.BulRu2sY.js";import{i as et}from"../chunks/if.zgWENsz3.js";import{r as at,s as L}from"../chunks/attributes.DHvUyCc8.js";import{b as st}from"../chunks/input.DNQYXVMt.js";import{p as Dt}from"../chunks/props.URi5AcUs.js";import{a as Et}from"../chunks/index-client.cZmOdYbP.js";import{g as Mt}from"../chunks/entry.CIxqEXQ4.js";import{t as ot,f as Tt}from"../chunks/hash.UMrA3fXV.js";var Ht=F('<div class="fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg transition-opacity duration-300"> </div>'),Pt=F('<div class="bg-base-100 rounded-lg shadow-md p-6"><h2 class="text-2xl font-semibold mb-4">Stake Address Details</h2> <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"><div><p class="text-sm text-base-content/70">Stake Address</p> <div class="flex items-center gap-2"><p class="font-medium max-w-full overflow-hidden"><span class="block md:hidden"> </span> <span class="hidden md:block"> </span></p> <button class="text-primary hover:text-primary-focus flex-shrink-0" title="Copy Stake Address"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></div> <div><p class="text-sm text-base-content/70">Epoch</p> <p class="font-medium"> </p></div> <div><p class="text-sm text-base-content/70">Amount</p> <p class="font-medium"> </p></div> <div><p class="text-sm text-base-content/70">Delegation Epoch</p> <p class="font-medium"> </p></div> <div class="md:col-span-2"><p class="text-sm text-base-content/70">Pool ID</p> <div class="flex items-center gap-2"><a class="text-primary hover:text-primary-focus max-w-full overflow-hidden"><span class="block md:hidden"> </span> <span class="hidden md:block"> </span></a> <button class="text-primary hover:text-primary-focus flex-shrink-0" title="Copy Pool ID"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"></path></svg></button></div></div></div></div>'),Ct=F('<div class="container mx-auto px-4 py-8"><!> <div class="bg-base-100 rounded-lg shadow-md p-6 mb-6 max-w-2xl mx-auto"><h2 class="text-2xl font-semibold mb-6">Search Stake Address</h2> <form id="searchForm" class="space-y-4"><div><label for="address" class="block text-sm font-medium text-base-content/80 mb-2">Stake Address</label> <input type="text" id="address" class="input input-bordered w-full h-8" placeholder="Enter stake address"></div> <div><label for="epoch" class="block text-sm font-medium text-base-content/80 mb-2">Epoch Number</label> <div class="flex gap-2 items-center"><input type="number" id="epoch" class="input input-bordered w-32 h-8" placeholder="Enter epoch" min="0"> <button type="submit" class="btn btn-primary px-4 h-8 min-h-0 flex items-center"> </button></div></div></form></div> <!></div>');function zt(rt,j){kt(j,!1);const r=p(),q=p(),K=p();let N=Dt(j,"data",8),f=p(!1),R=p(""),g=p(!1),m,h=p(""),b=p("");function k(e){m&&clearTimeout(m),d(R,e),d(g,!0),m=setTimeout(()=>{d(g,!1)},3e3)}async function U(e,i){try{await navigator.clipboard.writeText(e),k(`${i} copied to clipboard`)}catch(n){console.error("Failed to copy:",n),k("Failed to copy to clipboard")}}function it(e){if(e.preventDefault(),!t(h)||!t(b)){k("Please enter both Stake Address and Epoch");return}d(f,!0);const i=new URL(window.location.href);i.searchParams.set("address",t(h)),i.searchParams.set("epoch",t(b)),Mt(i.toString()).finally(()=>{d(f,!1)})}function V(e){if(e.key==="Enter"&&e.target instanceof HTMLInputElement){e.preventDefault();const i=e.target.closest("form");if(i){const n=i.querySelector('button[type="submit"]');n instanceof HTMLButtonElement&&n.click()}}}Et(()=>{m&&clearTimeout(m)}),wt(()=>(t(r),t(q),t(K),At(N())),()=>{(e=>(d(r,e.stakeData),d(q,e.address),d(K,e.epoch)))(N())}),yt(),gt();var w=Ct(),z=a(w);{var dt=e=>{var i=Ht(),n=a(i,!0);s(i),c(()=>l(n,t(R))),I(e,i)};et(z,e=>{t(g)&&e(dt)})}var y=o(z,2),S=o(a(y),2),A=a(S),D=o(a(A),2);at(D),s(A);var G=o(A,2),J=o(a(G),2),x=a(J);at(x);var E=o(x,2),nt=a(E,!0);s(E),s(J),s(G),s(S),s(y);var lt=o(y,2);{var pt=e=>{var i=Pt(),n=o(a(i),2),M=a(n),O=o(a(M),2),_=a(O),T=a(_),ct=a(T,!0);c(()=>l(ct,ot(t(r).address,12,12))),s(T);var Q=o(T,2),mt=a(Q,!0);s(Q),s(_);var vt=o(_,2);s(O),s(M);var H=o(M,2),W=o(a(H),2),ut=a(W,!0);s(W),s(H);var P=o(H,2),X=o(a(P),2),ft=a(X);c(()=>l(ft,`${Tt(t(r).amount)??""} ₳`)),s(X),s(P);var C=o(P,2),Y=o(a(C),2),ht=a(Y,!0);s(Y),s(C);var Z=o(C,2),$=o(a(Z),2),v=a($),B=a(v),bt=a(B,!0);c(()=>l(bt,ot(t(r).pool_id,12,12))),s(B);var tt=o(B,2),xt=a(tt,!0);s(tt),s(v);var _t=o(v,2);s($),s(Z),s(n),s(i),c(()=>{L(_,"title",t(r).address),l(mt,t(r).address),l(ut,t(r).epoch),l(ht,t(r).delegation_epoch),L(v,"href",`/epoch-stakes/pools?id=${t(r).pool_id}&epoch=${t(r).epoch}`),L(v,"title",t(r).pool_id),l(xt,t(r).pool_id)}),u("click",vt,()=>U(t(r).address,"Stake Address")),u("click",_t,()=>U(t(r).pool_id,"Pool ID")),I(e,i)};et(lt,e=>{t(r)&&e(pt)})}s(w),c(()=>{E.disabled=t(f),l(nt,t(f)?"Loading...":"Search")}),st(D,()=>t(h),e=>d(h,e)),u("keydown",D,V),st(x,()=>t(b),e=>d(b,e)),u("keydown",x,V),u("submit",S,it),I(rt,w),St()}export{zt as component};